vuesp-components 2.1.6 → 2.1.7
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/components/script/editor/ScriptEditor.vue.d.ts +2 -0
- package/dist/components/script/editor/ScriptEditor.vue.d.ts.map +1 -1
- package/dist/components/script/editor/types.d.ts +2 -1
- package/dist/components/script/editor/types.d.ts.map +1 -1
- package/dist/composables/index.es.js +50 -49
- package/dist/composables/types.d.ts +1 -0
- package/dist/composables/types.d.ts.map +1 -1
- package/dist/composables/useForms.d.ts.map +1 -1
- package/dist/index.es.js +1259 -1308
- package/dist/{useSwipeDown-CZyt34x6.js → useSwipeDown-BctVX4c1.js} +150 -164
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { getDataValue as
|
|
2
|
-
import { dashboardCards as
|
|
3
|
-
import { openBlock as f, createElementBlock as p, createStaticVNode as
|
|
4
|
-
import { u as
|
|
5
|
-
import { dateUtcToString as
|
|
6
|
-
const
|
|
7
|
-
mounted(e,
|
|
8
|
-
e.clickOutsideEvent = function(
|
|
9
|
-
e ===
|
|
1
|
+
import { getDataValue as dt } from "./dashboard/index.es.js";
|
|
2
|
+
import { dashboardCards as ei, getFunction as ti, getParamsData as li, getStateItem as ni, setStateItem as si } from "./dashboard/index.es.js";
|
|
3
|
+
import { openBlock as f, createElementBlock as p, createStaticVNode as ut, createElementVNode as o, defineComponent as V, resolveComponent as He, Fragment as O, createCommentVNode as T, normalizeClass as B, createVNode as b, withCtx as y, createBlock as M, renderSlot as _, markRaw as F, computed as L, resolveDynamicComponent as de, mergeProps as P, shallowRef as Me, Teleport as Ne, Transition as ie, unref as E, withModifiers as N, normalizeStyle as Z, ref as D, resolveDirective as ft, withDirectives as Ce, renderList as U, createTextVNode as I, toDisplayString as k, TransitionGroup as Pe, watch as ue, normalizeProps as R, guardReactiveProps as W, withKeys as mt, createPropsRestProxy as vt, onMounted as fe, onUnmounted as Fe, reactive as pt, useTemplateRef as Ue, vShow as ht, vModelText as gt, createSlots as bt } from "vue";
|
|
4
|
+
import { u as Re, a as yt, b as We, c as Ke, d as ze, e as xt, o as _t } from "./useSwipeDown-BctVX4c1.js";
|
|
5
|
+
import { dateUtcToString as kt, timeUtcToString as $t, findMenuItem as wt, toByte as pe, secToTime as Ct, clone as zt } from "./helpers/index.es.js";
|
|
6
|
+
const St = {
|
|
7
|
+
mounted(e, l) {
|
|
8
|
+
e.clickOutsideEvent = function(n) {
|
|
9
|
+
e === n.target || e.contains(n.target) || l.value(n, e);
|
|
10
10
|
}, document.addEventListener("click", e.clickOutsideEvent);
|
|
11
11
|
},
|
|
12
12
|
unmounted(e) {
|
|
13
13
|
document.removeEventListener("click", e.clickOutsideEvent), delete e.clickOutsideEvent;
|
|
14
14
|
}
|
|
15
|
-
},
|
|
16
|
-
const
|
|
17
|
-
for (const [s,
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
},
|
|
15
|
+
}, Vt = [{ name: "outside", directive: St }], ge = (e, l) => {
|
|
16
|
+
const n = e.__vccOpts || e;
|
|
17
|
+
for (const [s, t] of l)
|
|
18
|
+
n[s] = t;
|
|
19
|
+
return n;
|
|
20
|
+
}, Bt = {}, Tt = {
|
|
21
21
|
viewBox: "0 0 179 40",
|
|
22
22
|
fill: "currentColor"
|
|
23
23
|
};
|
|
24
|
-
function
|
|
25
|
-
return f(), p("svg",
|
|
26
|
-
|
|
24
|
+
function Et(e, l) {
|
|
25
|
+
return f(), p("svg", Tt, [...l[0] || (l[0] = [
|
|
26
|
+
ut('<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 Se = /* @__PURE__ */ ge(
|
|
29
|
+
const Se = /* @__PURE__ */ ge(Bt, [["render", Et]]), Lt = {}, Mt = {
|
|
30
30
|
width: "40",
|
|
31
31
|
height: "40",
|
|
32
32
|
viewBox: "0 0 40 40",
|
|
33
33
|
fill: "currentColor"
|
|
34
34
|
};
|
|
35
|
-
function
|
|
36
|
-
return f(), p("svg",
|
|
37
|
-
|
|
38
|
-
|
|
35
|
+
function At(e, l) {
|
|
36
|
+
return f(), p("svg", Mt, [...l[0] || (l[0] = [
|
|
37
|
+
o("g", { transform: "matrix(0.13287749,0,0,0.13643171,26.823508,13.407673)" }, [
|
|
38
|
+
o("path", { d: "m -19.25933,-16.057909 c 0,39.1906 -14.287,86.055995 -38.669,116.999999 -7.898,10.024 -30.4718,32.819 -43.7731,17.695 -9.4823,-10.781 -3.53183,-36.917714 -0.86893,-48.907714 9.1618,-41.251693 19.72123,-78.8733849 30.31103,-119.787285 -27.50968,14.537655 -68.26323,-24.154322 -70.36602,-2.214449 -12.32038,69.23655 -28.82323,204.245118 16.36602,215.925448 81.802,10.63 120.333,-82.698004 129.4249996,-148.710999 2.182,-15.84009991 4.123,-31.9832 2.401,-48 -2.342,-21.78506 -24.7959996,-32.68227 -43.7859996,-21.58643 -11.424,6.67523 -12.148,29.93713 -1.935,38.01393 5.462,4.3199 14.927,3.091 20.895,0.5725 z" })
|
|
39
39
|
], -1)
|
|
40
40
|
])]);
|
|
41
41
|
}
|
|
42
|
-
const
|
|
42
|
+
const qe = /* @__PURE__ */ ge(Lt, [["render", At]]), Dt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Ca = /* @__PURE__ */ V({
|
|
43
43
|
__name: "AppAside",
|
|
44
44
|
props: {
|
|
45
45
|
isSidebar: { type: Boolean, default: !1 }
|
|
46
46
|
},
|
|
47
47
|
emits: ["sidebar"],
|
|
48
|
-
setup(e, { emit:
|
|
49
|
-
const
|
|
50
|
-
e.isSidebar &&
|
|
48
|
+
setup(e, { emit: l }) {
|
|
49
|
+
const n = l, s = () => {
|
|
50
|
+
e.isSidebar && n("sidebar", !e.isSidebar);
|
|
51
51
|
};
|
|
52
|
-
return (
|
|
53
|
-
const
|
|
52
|
+
return (t, a) => {
|
|
53
|
+
const r = He("router-link");
|
|
54
54
|
return f(), p(O, null, [
|
|
55
55
|
e.isSidebar ? (f(), p("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
58
|
onClick: s
|
|
59
59
|
})) : T("", !0),
|
|
60
|
-
|
|
60
|
+
o("aside", {
|
|
61
61
|
class: B([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
|
+
o("div", {
|
|
64
64
|
class: B([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 pt-6 pb-6 justify-between"])
|
|
65
65
|
}, [
|
|
66
|
-
b(
|
|
66
|
+
b(r, { to: "/" }, {
|
|
67
67
|
default: y(() => [
|
|
68
|
-
e.isSidebar ? (f(), M(
|
|
68
|
+
e.isSidebar ? (f(), M(qe, {
|
|
69
69
|
key: 0,
|
|
70
70
|
class: "h-[30px] text-primary"
|
|
71
71
|
})) : (f(), M(Se, {
|
|
@@ -76,99 +76,99 @@ const Je = /* @__PURE__ */ ge(Dt, [["render", Ot]]), jt = { class: "no-scrollbar
|
|
|
76
76
|
_: 1
|
|
77
77
|
})
|
|
78
78
|
], 2),
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
o("div", Dt, [
|
|
80
|
+
_(t.$slots, "default")
|
|
81
81
|
])
|
|
82
82
|
], 2)
|
|
83
83
|
], 64);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
86
|
+
}), It = {
|
|
87
87
|
viewBox: "0 0 24 24",
|
|
88
88
|
width: "1.2em",
|
|
89
89
|
height: "1.2em"
|
|
90
90
|
};
|
|
91
|
-
function
|
|
92
|
-
return f(), p("svg",
|
|
93
|
-
|
|
91
|
+
function Ot(e, l) {
|
|
92
|
+
return f(), p("svg", It, [...l[0] || (l[0] = [
|
|
93
|
+
o("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
|
|
99
|
+
const Ge = F({ name: "ri-more-line", render: Ot }), jt = {
|
|
100
100
|
viewBox: "0 0 24 24",
|
|
101
101
|
width: "1.2em",
|
|
102
102
|
height: "1.2em"
|
|
103
103
|
};
|
|
104
|
-
function
|
|
105
|
-
return f(), p("svg",
|
|
106
|
-
|
|
104
|
+
function Ht(e, l) {
|
|
105
|
+
return f(), p("svg", jt, [...l[0] || (l[0] = [
|
|
106
|
+
o("path", {
|
|
107
107
|
fill: "currentColor",
|
|
108
108
|
d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
|
|
109
109
|
}, null, -1)
|
|
110
110
|
])]);
|
|
111
111
|
}
|
|
112
|
-
const
|
|
112
|
+
const Nt = F({ name: "ri-logout-box-line", render: Ht }), Pt = {
|
|
113
113
|
viewBox: "0 0 24 24",
|
|
114
114
|
width: "1.2em",
|
|
115
115
|
height: "1.2em"
|
|
116
116
|
};
|
|
117
|
-
function
|
|
118
|
-
return f(), p("svg",
|
|
119
|
-
|
|
117
|
+
function Ft(e, l) {
|
|
118
|
+
return f(), p("svg", Pt, [...l[0] || (l[0] = [
|
|
119
|
+
o("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
|
|
125
|
+
const Je = F({ name: "ri-notification-line", render: Ft }), Ut = {
|
|
126
126
|
viewBox: "0 0 24 24",
|
|
127
127
|
width: "1.2em",
|
|
128
128
|
height: "1.2em"
|
|
129
129
|
};
|
|
130
|
-
function
|
|
131
|
-
return f(), p("svg",
|
|
132
|
-
|
|
130
|
+
function Rt(e, l) {
|
|
131
|
+
return f(), p("svg", Ut, [...l[0] || (l[0] = [
|
|
132
|
+
o("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 Wt = F({ name: "ri-moon-line", render: Rt }), Kt = {
|
|
139
139
|
viewBox: "0 0 24 24",
|
|
140
140
|
width: "1.2em",
|
|
141
141
|
height: "1.2em"
|
|
142
142
|
};
|
|
143
|
-
function
|
|
144
|
-
return f(), p("svg",
|
|
145
|
-
|
|
143
|
+
function qt(e, l) {
|
|
144
|
+
return f(), p("svg", Kt, [...l[0] || (l[0] = [
|
|
145
|
+
o("path", {
|
|
146
146
|
fill: "currentColor",
|
|
147
147
|
d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
|
|
148
148
|
}, null, -1)
|
|
149
149
|
])]);
|
|
150
150
|
}
|
|
151
|
-
const
|
|
151
|
+
const Gt = F({ name: "ri-sun-line", render: qt }), Jt = {
|
|
152
152
|
viewBox: "0 0 24 24",
|
|
153
153
|
width: "1.2em",
|
|
154
154
|
height: "1.2em"
|
|
155
155
|
};
|
|
156
|
-
function
|
|
157
|
-
return f(), p("svg",
|
|
158
|
-
|
|
156
|
+
function Xt(e, l) {
|
|
157
|
+
return f(), p("svg", Jt, [...l[0] || (l[0] = [
|
|
158
|
+
o("path", {
|
|
159
159
|
fill: "currentColor",
|
|
160
160
|
d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
|
|
161
161
|
}, null, -1)
|
|
162
162
|
])]);
|
|
163
163
|
}
|
|
164
|
-
const
|
|
164
|
+
const Yt = F({ name: "ri-menu-line", render: Xt }), Qt = {}, Zt = {
|
|
165
165
|
class: "animate-spin h-6 w-6",
|
|
166
166
|
fill: "none",
|
|
167
167
|
viewBox: "0 0 24 24"
|
|
168
168
|
};
|
|
169
|
-
function
|
|
170
|
-
return f(), p("svg",
|
|
171
|
-
|
|
169
|
+
function el(e, l) {
|
|
170
|
+
return f(), p("svg", Zt, [...l[0] || (l[0] = [
|
|
171
|
+
o("circle", {
|
|
172
172
|
class: "opacity-25",
|
|
173
173
|
cx: "12",
|
|
174
174
|
cy: "12",
|
|
@@ -176,14 +176,14 @@ function ln(e, t) {
|
|
|
176
176
|
stroke: "currentColor",
|
|
177
177
|
"stroke-width": "2"
|
|
178
178
|
}, null, -1),
|
|
179
|
-
|
|
179
|
+
o("path", {
|
|
180
180
|
class: "opacity-75",
|
|
181
181
|
fill: "currentColor",
|
|
182
182
|
d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
|
|
183
183
|
}, null, -1)
|
|
184
184
|
])]);
|
|
185
185
|
}
|
|
186
|
-
const Ve = /* @__PURE__ */ ge(
|
|
186
|
+
const Ve = /* @__PURE__ */ ge(Qt, [["render", el]]), tl = "relative flex justify-center items-center transition not-disabled:cursor-pointer not-disabled:hover:opacity-90 disabled:opacity-40 rounded", A = /* @__PURE__ */ V({
|
|
187
187
|
__name: "VButton",
|
|
188
188
|
props: {
|
|
189
189
|
outline: { type: Boolean, default: !1 },
|
|
@@ -195,17 +195,17 @@ const Ve = /* @__PURE__ */ ge(tn, [["render", ln]]), sn = "relative flex justify
|
|
|
195
195
|
loading: { type: Boolean, default: !1 }
|
|
196
196
|
},
|
|
197
197
|
emits: ["click"],
|
|
198
|
-
setup(e, { emit:
|
|
199
|
-
const
|
|
198
|
+
setup(e, { emit: l }) {
|
|
199
|
+
const n = l, s = (C) => n("click", C), t = e.outline ? "dark:text-white border border-green-600 text-green-600" : "text-white bg-green-600 dark:bg-green-800", a = e.outline ? "dark:text-white border border-red-600 text-red-600" : "text-white bg-red-600 dark:bg-red-800", r = e.outline ? "dark:text-white border border-gray-600 text-gray-600" : "bg-gray-100 dark:bg-gray-800", d = e.outline ? "dark:text-white border border-blue-600 text-blue-600" : "text-white bg-blue-700 dark:bg-blue-800", u = (e.outline, ""), i = { green: t, red: a, gray: r, blue: d, transparent: u }, c = {
|
|
200
200
|
button: "px-3",
|
|
201
201
|
icon: "rounded-full border border-gray-200 dark:border-gray-800"
|
|
202
202
|
}, m = {
|
|
203
203
|
button: { sm: "h-8", md: "h-10", lg: "h-12", xl: "h-14" },
|
|
204
204
|
icon: { sm: "size-8", md: "size-10", lg: "size-12", xl: "size-14" }
|
|
205
|
-
}, v = L(() => [
|
|
205
|
+
}, v = L(() => [tl, $(e.color), x(e.type), h(e.type, e.size)]), g = L(() => e.href || e.to ? "router-link" : "button"), h = (C, z) => {
|
|
206
206
|
var j;
|
|
207
207
|
return ((j = m[C]) == null ? void 0 : j[z]) || "";
|
|
208
|
-
}, x = (C) => (c == null ? void 0 : c[C]) || "", $ = (C) =>
|
|
208
|
+
}, x = (C) => (c == null ? void 0 : c[C]) || "", $ = (C) => i == null ? void 0 : i[C];
|
|
209
209
|
return (C, z) => (f(), M(de(g.value), P(C.$attrs, {
|
|
210
210
|
href: e.href,
|
|
211
211
|
to: e.to,
|
|
@@ -213,10 +213,10 @@ const Ve = /* @__PURE__ */ ge(tn, [["render", ln]]), sn = "relative flex justify
|
|
|
213
213
|
onClick: s
|
|
214
214
|
}), {
|
|
215
215
|
default: y(() => [
|
|
216
|
-
|
|
216
|
+
o("span", {
|
|
217
217
|
class: B(e.loading ? "opacity-0" : "")
|
|
218
218
|
}, [
|
|
219
|
-
|
|
219
|
+
_(C.$slots, "default")
|
|
220
220
|
], 2),
|
|
221
221
|
e.loading ? (f(), M(Ve, {
|
|
222
222
|
key: 0,
|
|
@@ -226,31 +226,31 @@ const Ve = /* @__PURE__ */ ge(tn, [["render", ln]]), sn = "relative flex justify
|
|
|
226
226
|
_: 3
|
|
227
227
|
}, 16, ["href", "to", "class"]));
|
|
228
228
|
}
|
|
229
|
-
}),
|
|
229
|
+
}), ll = {
|
|
230
230
|
viewBox: "0 0 24 24",
|
|
231
231
|
width: "1.2em",
|
|
232
232
|
height: "1.2em"
|
|
233
233
|
};
|
|
234
|
-
function
|
|
235
|
-
return f(), p("svg",
|
|
236
|
-
|
|
234
|
+
function nl(e, l) {
|
|
235
|
+
return f(), p("svg", ll, [...l[0] || (l[0] = [
|
|
236
|
+
o("path", {
|
|
237
237
|
fill: "currentColor",
|
|
238
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"
|
|
239
239
|
}, null, -1)
|
|
240
240
|
])]);
|
|
241
241
|
}
|
|
242
|
-
const
|
|
242
|
+
const le = F({ name: "ri-close-line", render: nl }), sl = { class: "flex items-center absolute right-3 top-5 z-10" }, Xe = /* @__PURE__ */ V({
|
|
243
243
|
__name: "VPopup",
|
|
244
244
|
props: {
|
|
245
245
|
hiddenCloser: { type: Boolean },
|
|
246
246
|
size: { default: "auto" }
|
|
247
247
|
},
|
|
248
248
|
emits: ["close", "click", "open"],
|
|
249
|
-
setup(e, { emit:
|
|
250
|
-
const
|
|
251
|
-
|
|
252
|
-
}, open:
|
|
253
|
-
$ ?
|
|
249
|
+
setup(e, { emit: l }) {
|
|
250
|
+
const n = l, { show: s, overlay: t, onClose: a, onOpen: r } = Re(n), d = Me(null), u = Me(null), { opacity: i, transform: c } = yt(d, u, a), g = { click: ($) => {
|
|
251
|
+
n("click", $);
|
|
252
|
+
}, open: r, set: ($) => {
|
|
253
|
+
$ ? r() : a(new Event("hide"));
|
|
254
254
|
} }, h = L(() => ({
|
|
255
255
|
auto: "max-h-[calc(100dvh-50px)]",
|
|
256
256
|
full: "h-[calc(100dvh-24px)] md:h-[calc(100dvh-100px)]",
|
|
@@ -261,8 +261,8 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
261
261
|
screen: "h-[calc(100dvh-16px)]"
|
|
262
262
|
}));
|
|
263
263
|
return ($, C) => {
|
|
264
|
-
const z =
|
|
265
|
-
return f(), M(
|
|
264
|
+
const z = le, j = A;
|
|
265
|
+
return f(), M(Ne, { to: "body" }, [
|
|
266
266
|
b(ie, {
|
|
267
267
|
"enter-active-class": "duration-300 ease-out",
|
|
268
268
|
"enter-from-class": "transform opacity-0 translate-y-full xl:-translate-y-2",
|
|
@@ -278,22 +278,22 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
278
278
|
ref: u,
|
|
279
279
|
class: "fixed bottom-0 left-0 w-full z-15"
|
|
280
280
|
}, [
|
|
281
|
-
E(
|
|
281
|
+
E(t) ? (f(), p("div", {
|
|
282
282
|
key: 0,
|
|
283
283
|
class: "fixed h-full w-full top-0 left-0 bg-black/40 bg-blur xl:hidden animate-opacity overscroll-contain",
|
|
284
|
-
style: Z({ opacity: E(
|
|
284
|
+
style: Z({ opacity: E(i) }),
|
|
285
285
|
onClick: C[0] || (C[0] = //@ts-ignore
|
|
286
|
-
(...X) => E(
|
|
286
|
+
(...X) => E(a) && E(a)(...X)),
|
|
287
287
|
onWheel: C[1] || (C[1] = N(() => {
|
|
288
288
|
}, ["prevent"])),
|
|
289
289
|
onTouchmove: C[2] || (C[2] = N(() => {
|
|
290
290
|
}, ["prevent"]))
|
|
291
291
|
}, null, 36)) : T("", !0),
|
|
292
|
-
|
|
292
|
+
o("div", {
|
|
293
293
|
class: B(["bg-white dark:bg-gray-900 w-full shadow-nav relative", h.value[e.size]]),
|
|
294
294
|
style: Z({ transform: E(c) })
|
|
295
295
|
}, [
|
|
296
|
-
|
|
296
|
+
o("div", {
|
|
297
297
|
ref_key: "target",
|
|
298
298
|
ref: d,
|
|
299
299
|
class: "flex justify-center py-3 md:pb-6",
|
|
@@ -302,17 +302,17 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
302
302
|
onTouchmove: C[4] || (C[4] = N(() => {
|
|
303
303
|
}, ["prevent"]))
|
|
304
304
|
}, [...C[5] || (C[5] = [
|
|
305
|
-
|
|
305
|
+
o("div", { class: "self-end h-1 w-12 bg-gray-400" }, null, -1)
|
|
306
306
|
])], 544),
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
o("div", sl, [
|
|
308
|
+
_($.$slots, "button", { close: E(a) }),
|
|
309
309
|
b(j, {
|
|
310
310
|
class: "size-5 md:size-6",
|
|
311
311
|
color: "transparent",
|
|
312
312
|
size: "none",
|
|
313
313
|
icon: "",
|
|
314
314
|
"aria-label": "Close",
|
|
315
|
-
onClick: E(
|
|
315
|
+
onClick: E(a)
|
|
316
316
|
}, {
|
|
317
317
|
default: y(() => [
|
|
318
318
|
b(z, { class: "size-5" })
|
|
@@ -320,11 +320,11 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
320
320
|
_: 1
|
|
321
321
|
}, 8, ["onClick"])
|
|
322
322
|
]),
|
|
323
|
-
|
|
323
|
+
o("div", {
|
|
324
324
|
class: B(["overflow-y-auto max-h-[calc(100dvh-24px-16px)] overscroll-contain scrollbar", x.value[e.size]])
|
|
325
325
|
}, [
|
|
326
|
-
|
|
327
|
-
close: E(
|
|
326
|
+
_($.$slots, "default", {
|
|
327
|
+
close: E(a),
|
|
328
328
|
on: g
|
|
329
329
|
})
|
|
330
330
|
], 2)
|
|
@@ -336,7 +336,7 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
336
336
|
]);
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
|
-
}),
|
|
339
|
+
}), ol = { class: "relative" }, al = { class: "flex items-center cursor-pointer" }, be = /* @__PURE__ */ V({
|
|
340
340
|
__name: "VDropdown",
|
|
341
341
|
props: {
|
|
342
342
|
title: { default: "" },
|
|
@@ -350,30 +350,30 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
350
350
|
isPopup: { type: Boolean }
|
|
351
351
|
},
|
|
352
352
|
emits: ["click", "show", "close"],
|
|
353
|
-
setup(e, { emit:
|
|
354
|
-
const
|
|
355
|
-
|
|
353
|
+
setup(e, { emit: l }) {
|
|
354
|
+
const n = l, t = We(Ke).greaterOrEqual("lg"), a = D(!1), r = L(() => ({ top: e.top, left: e.left, right: e.right, bottom: e.bottom, "max-height": e.height })), d = (h) => {
|
|
355
|
+
t.value && a.value && c(h);
|
|
356
356
|
}, u = (h) => {
|
|
357
|
-
|
|
358
|
-
},
|
|
359
|
-
|
|
357
|
+
n("click", a.value), !e.disabled && (a.value ? e.hideOnClick && c(h) : i(h));
|
|
358
|
+
}, i = (h) => {
|
|
359
|
+
a.value = !0, n("show", h);
|
|
360
360
|
}, c = (h) => {
|
|
361
|
-
|
|
361
|
+
a.value = !1, n("close", h);
|
|
362
362
|
}, m = (h) => {
|
|
363
|
-
h ?
|
|
363
|
+
h ? i(new Event("show")) : c(new Event("hide"));
|
|
364
364
|
}, v = () => {
|
|
365
365
|
c(new Event("hide"));
|
|
366
|
-
}, g = { click: u, open:
|
|
366
|
+
}, g = { click: u, open: i, set: m };
|
|
367
367
|
return (h, x) => {
|
|
368
|
-
const $ =
|
|
369
|
-
return Ce((f(), p("div",
|
|
370
|
-
|
|
371
|
-
|
|
368
|
+
const $ = ft("outside");
|
|
369
|
+
return Ce((f(), p("div", ol, [
|
|
370
|
+
o("div", al, [
|
|
371
|
+
_(h.$slots, "activator", {
|
|
372
372
|
on: g,
|
|
373
|
-
isShow:
|
|
373
|
+
isShow: a.value
|
|
374
374
|
})
|
|
375
375
|
]),
|
|
376
|
-
E(
|
|
376
|
+
E(t) ? (f(), M(ie, {
|
|
377
377
|
key: 0,
|
|
378
378
|
"enter-active-class": "duration-300 ease-out",
|
|
379
379
|
"enter-from-class": "transform opacity-0 -translate-y-2",
|
|
@@ -383,32 +383,32 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
383
383
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
384
384
|
}, {
|
|
385
385
|
default: y(() => [
|
|
386
|
-
|
|
386
|
+
a.value ? (f(), p("div", {
|
|
387
387
|
key: 0,
|
|
388
388
|
class: "z-30 min-w-full absolute",
|
|
389
|
-
style: Z(
|
|
389
|
+
style: Z(r.value)
|
|
390
390
|
}, [
|
|
391
|
-
|
|
391
|
+
_(h.$slots, "default", {
|
|
392
392
|
on: g,
|
|
393
|
-
show:
|
|
393
|
+
show: i,
|
|
394
394
|
hide: c,
|
|
395
|
-
isShow:
|
|
395
|
+
isShow: a.value
|
|
396
396
|
})
|
|
397
397
|
], 4)) : T("", !0)
|
|
398
398
|
]),
|
|
399
399
|
_: 3
|
|
400
400
|
})) : T("", !0),
|
|
401
|
-
!E(
|
|
401
|
+
!E(t) && a.value ? (f(), M(Xe, {
|
|
402
402
|
key: 1,
|
|
403
403
|
title: e.title,
|
|
404
404
|
onClose: v
|
|
405
405
|
}, {
|
|
406
406
|
default: y(({ on: C }) => [
|
|
407
|
-
|
|
407
|
+
_(h.$slots, "default", {
|
|
408
408
|
on: C,
|
|
409
|
-
show:
|
|
409
|
+
show: i,
|
|
410
410
|
hide: c,
|
|
411
|
-
isShow:
|
|
411
|
+
isShow: a.value
|
|
412
412
|
})
|
|
413
413
|
]),
|
|
414
414
|
_: 3
|
|
@@ -418,59 +418,59 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
418
418
|
]);
|
|
419
419
|
};
|
|
420
420
|
}
|
|
421
|
-
}),
|
|
421
|
+
}), il = { class: "bg-white dark:bg-gray-900 ring-1 ring-gray-200 dark:ring-gray-800" }, rl = ["onClick"], me = /* @__PURE__ */ V({
|
|
422
422
|
__name: "VList",
|
|
423
423
|
props: {
|
|
424
424
|
items: {}
|
|
425
425
|
},
|
|
426
426
|
emits: ["click"],
|
|
427
|
-
setup(e, { emit:
|
|
428
|
-
const
|
|
429
|
-
return (
|
|
430
|
-
(f(!0), p(O, null,
|
|
431
|
-
key:
|
|
427
|
+
setup(e, { emit: l }) {
|
|
428
|
+
const n = l, s = (t, a) => n("click", t, a);
|
|
429
|
+
return (t, a) => (f(), p("ul", il, [
|
|
430
|
+
(f(!0), p(O, null, U(e.items, (r) => (f(), p("li", {
|
|
431
|
+
key: r.name,
|
|
432
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",
|
|
433
|
-
onClick: (d) => s(
|
|
433
|
+
onClick: (d) => s(r, d)
|
|
434
434
|
}, [
|
|
435
|
-
|
|
436
|
-
I(
|
|
435
|
+
_(t.$slots, "default", { item: r }, () => [
|
|
436
|
+
I(k(r.name), 1)
|
|
437
437
|
])
|
|
438
|
-
], 8,
|
|
438
|
+
], 8, rl))), 128))
|
|
439
439
|
]));
|
|
440
440
|
}
|
|
441
|
-
}),
|
|
441
|
+
}), cl = { 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" }, dl = { class: "px-4 py-4 sm:px-6 lg:px-8" }, ul = { class: "container mx-auto flex flex-auto items-center" }, fl = { class: "lg:hidden h-[30px]" }, ml = { class: "gap-4 hidden lg:flex" }, vl = { class: "lg:hidden flex gap-4" }, pl = { class: "ms-2" }, za = /* @__PURE__ */ V({
|
|
442
442
|
__name: "AppHeader",
|
|
443
443
|
props: {
|
|
444
444
|
changeTheme: { type: Function },
|
|
445
445
|
notifications: {}
|
|
446
446
|
},
|
|
447
447
|
emits: ["sidebar", "notif"],
|
|
448
|
-
setup(e, { emit:
|
|
449
|
-
const
|
|
448
|
+
setup(e, { emit: l }) {
|
|
449
|
+
const n = l, s = [
|
|
450
450
|
{ name: "Theme", value: 1 },
|
|
451
451
|
{ name: "Notification", value: 2 },
|
|
452
452
|
{ name: "Logout", value: 3 }
|
|
453
|
-
],
|
|
453
|
+
], t = L(() => !!e.notifications.find((c) => c.isNew)), a = (c) => n("sidebar", c), r = (c) => n("notif", c), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), u = () => {
|
|
454
454
|
e.changeTheme && e.changeTheme();
|
|
455
|
-
},
|
|
456
|
-
c == 1 && u(), c == 2 &&
|
|
455
|
+
}, i = ({ value: c }, m) => {
|
|
456
|
+
c == 1 && u(), c == 2 && r(m), c == 3 && d();
|
|
457
457
|
};
|
|
458
458
|
return (c, m) => {
|
|
459
|
-
const v =
|
|
460
|
-
return f(), p("header",
|
|
461
|
-
|
|
462
|
-
|
|
459
|
+
const v = Yt, g = He("router-link"), h = Gt, x = Wt, $ = Je, C = Nt, z = Ge;
|
|
460
|
+
return f(), p("header", cl, [
|
|
461
|
+
o("div", dl, [
|
|
462
|
+
o("div", ul, [
|
|
463
463
|
b(A, {
|
|
464
464
|
type: "icon",
|
|
465
|
-
onClick:
|
|
465
|
+
onClick: a
|
|
466
466
|
}, {
|
|
467
467
|
default: y(() => [
|
|
468
468
|
b(v, { class: "size-5" })
|
|
469
469
|
]),
|
|
470
470
|
_: 1
|
|
471
471
|
}),
|
|
472
|
-
m[1] || (m[1] =
|
|
473
|
-
|
|
472
|
+
m[1] || (m[1] = o("div", { class: "lg:hidden flex-auto" }, null, -1)),
|
|
473
|
+
o("div", fl, [
|
|
474
474
|
b(g, { to: "/" }, {
|
|
475
475
|
default: y(() => [
|
|
476
476
|
b(Se, { class: "h-[30px] text-primary" })
|
|
@@ -478,8 +478,8 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
478
478
|
_: 1
|
|
479
479
|
})
|
|
480
480
|
]),
|
|
481
|
-
m[2] || (m[2] =
|
|
482
|
-
|
|
481
|
+
m[2] || (m[2] = o("div", { class: "flex-auto" }, null, -1)),
|
|
482
|
+
o("div", ml, [
|
|
483
483
|
b(A, {
|
|
484
484
|
type: "icon",
|
|
485
485
|
onClick: u
|
|
@@ -492,13 +492,13 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
492
492
|
}),
|
|
493
493
|
b(A, {
|
|
494
494
|
type: "icon",
|
|
495
|
-
onClick:
|
|
495
|
+
onClick: r
|
|
496
496
|
}, {
|
|
497
497
|
default: y(() => [
|
|
498
|
-
|
|
499
|
-
class: B([
|
|
498
|
+
o("span", {
|
|
499
|
+
class: B([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
500
500
|
}, [...m[0] || (m[0] = [
|
|
501
|
-
|
|
501
|
+
o("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
502
502
|
])], 2),
|
|
503
503
|
b($, { class: "size-5" })
|
|
504
504
|
]),
|
|
@@ -514,7 +514,7 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
514
514
|
_: 1
|
|
515
515
|
})
|
|
516
516
|
]),
|
|
517
|
-
|
|
517
|
+
o("div", vl, [
|
|
518
518
|
b(be, {
|
|
519
519
|
left: "unset",
|
|
520
520
|
right: "0",
|
|
@@ -535,10 +535,10 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
535
535
|
default: y(() => [
|
|
536
536
|
b(me, {
|
|
537
537
|
items: s,
|
|
538
|
-
onClick:
|
|
538
|
+
onClick: i
|
|
539
539
|
}, {
|
|
540
540
|
default: y(({ item: j }) => [
|
|
541
|
-
|
|
541
|
+
o("span", pl, k(j.name), 1)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
544
|
})
|
|
@@ -551,7 +551,7 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
551
551
|
]);
|
|
552
552
|
};
|
|
553
553
|
}
|
|
554
|
-
}),
|
|
554
|
+
}), hl = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, gl = { class: "flex-auto text-xs" }, bl = { class: "text-gray-500 dark:text-gray-400 mt-1" }, yl = /* @__PURE__ */ V({
|
|
555
555
|
__name: "CardNotification",
|
|
556
556
|
props: {
|
|
557
557
|
empty: {},
|
|
@@ -563,13 +563,13 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
563
563
|
text: {}
|
|
564
564
|
},
|
|
565
565
|
emits: ["remove", "read"],
|
|
566
|
-
setup(e, { emit:
|
|
567
|
-
const
|
|
568
|
-
return (u,
|
|
569
|
-
const c =
|
|
570
|
-
return f(), p("div",
|
|
571
|
-
|
|
572
|
-
class: B(["absolute left-0 top-0 w-[3px] h-full",
|
|
566
|
+
setup(e, { emit: l }) {
|
|
567
|
+
const n = e, s = l, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], a = (u) => t[u], r = (u) => s("remove", u), d = (u) => s("read", u);
|
|
568
|
+
return (u, i) => {
|
|
569
|
+
const c = Je, m = le;
|
|
570
|
+
return f(), p("div", hl, [
|
|
571
|
+
o("div", {
|
|
572
|
+
class: B(["absolute left-0 top-0 w-[3px] h-full", a(n.color)])
|
|
573
573
|
}, null, 2),
|
|
574
574
|
b(A, {
|
|
575
575
|
class: "shrink-0",
|
|
@@ -577,24 +577,24 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
577
577
|
onClick: d
|
|
578
578
|
}, {
|
|
579
579
|
default: y(() => [
|
|
580
|
-
|
|
581
|
-
class: B([
|
|
582
|
-
}, [...
|
|
583
|
-
|
|
580
|
+
o("span", {
|
|
581
|
+
class: B([n.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
|
|
582
|
+
}, [...i[0] || (i[0] = [
|
|
583
|
+
o("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
|
|
584
584
|
])], 2),
|
|
585
585
|
b(c, { class: "size-5" })
|
|
586
586
|
]),
|
|
587
587
|
_: 1
|
|
588
588
|
}),
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
589
|
+
o("div", gl, [
|
|
590
|
+
o("div", null, k(n.text), 1),
|
|
591
|
+
o("div", bl, k(E(kt)(n.date)) + " (" + k(E($t)(n.date)) + ")", 1)
|
|
592
592
|
]),
|
|
593
593
|
b(A, {
|
|
594
594
|
class: "shrink-0",
|
|
595
595
|
type: "icon",
|
|
596
596
|
size: "sm",
|
|
597
|
-
onClick:
|
|
597
|
+
onClick: r
|
|
598
598
|
}, {
|
|
599
599
|
default: y(() => [
|
|
600
600
|
b(m, { class: "size-4" })
|
|
@@ -604,31 +604,31 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
604
604
|
]);
|
|
605
605
|
};
|
|
606
606
|
}
|
|
607
|
-
}),
|
|
607
|
+
}), xl = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, _l = {
|
|
608
608
|
key: 0,
|
|
609
609
|
class: "flex flex-col gap-2 p-2"
|
|
610
|
-
},
|
|
610
|
+
}, Sa = /* @__PURE__ */ V({
|
|
611
611
|
__name: "AppNotification",
|
|
612
612
|
props: {
|
|
613
613
|
value: { type: Boolean },
|
|
614
614
|
notifications: {}
|
|
615
615
|
},
|
|
616
616
|
emits: ["close", "remove", "read"],
|
|
617
|
-
setup(e, { emit:
|
|
618
|
-
const
|
|
619
|
-
return (
|
|
620
|
-
|
|
617
|
+
setup(e, { emit: l }) {
|
|
618
|
+
const n = e, s = l, t = L(() => !!n.notifications.find((i) => i.isNew)), a = L(() => !!n.notifications.length), r = (i) => s("close", i), d = (i) => s("remove", i), u = (i) => s("read", i);
|
|
619
|
+
return (i, c) => (f(), p(O, null, [
|
|
620
|
+
n.value ? (f(), p("div", {
|
|
621
621
|
key: 0,
|
|
622
622
|
class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
|
|
623
|
-
onClick:
|
|
623
|
+
onClick: r
|
|
624
624
|
})) : T("", !0),
|
|
625
|
-
|
|
626
|
-
class: B([
|
|
625
|
+
o("aside", {
|
|
626
|
+
class: B([n.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"])
|
|
627
627
|
}, [
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
b(
|
|
628
|
+
o("div", xl, [
|
|
629
|
+
_(i.$slots, "header", { isNew: t.value }),
|
|
630
|
+
a.value ? (f(), p("div", _l, [
|
|
631
|
+
b(Pe, {
|
|
632
632
|
"enter-active-class": "transition-all duration-300 ",
|
|
633
633
|
"enter-from-class": "opacity-0 translate-x-1/2",
|
|
634
634
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -637,12 +637,12 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
637
637
|
"leave-to-class": "opacity-0 translate-x-1/2"
|
|
638
638
|
}, {
|
|
639
639
|
default: y(() => [
|
|
640
|
-
(f(!0), p(O, null,
|
|
640
|
+
(f(!0), p(O, null, U(n.notifications, (m) => (f(), p("div", {
|
|
641
641
|
key: m.date,
|
|
642
642
|
class: "relative"
|
|
643
643
|
}, [
|
|
644
|
-
|
|
645
|
-
b(
|
|
644
|
+
_(i.$slots, "card", { item: m }, () => [
|
|
645
|
+
b(yl, P({ ref_for: !0 }, m, {
|
|
646
646
|
class: "bg-gray-200/50 dark:bg-gray-800/50 rounded-md",
|
|
647
647
|
onRemove: (v) => d(m),
|
|
648
648
|
onRead: (v) => u(m)
|
|
@@ -652,34 +652,34 @@ const ne = F({ name: "ri-close-line", render: an }), rn = { class: "flex items-c
|
|
|
652
652
|
]),
|
|
653
653
|
_: 3
|
|
654
654
|
})
|
|
655
|
-
])) :
|
|
655
|
+
])) : _(i.$slots, "empty", {}, void 0, void 0, 1)
|
|
656
656
|
])
|
|
657
657
|
], 2)
|
|
658
658
|
], 64));
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
661
|
-
function
|
|
662
|
-
return f(), p("div",
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
660
|
+
}), kl = {}, $l = { class: "fixed h-full w-full top-0 left-0 z-20" }, wl = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
|
|
661
|
+
function Cl(e, l) {
|
|
662
|
+
return f(), p("div", $l, [
|
|
663
|
+
l[0] || (l[0] = o("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
|
|
664
|
+
o("div", wl, [
|
|
665
|
+
_(e.$slots, "default")
|
|
666
666
|
])
|
|
667
667
|
]);
|
|
668
668
|
}
|
|
669
|
-
const
|
|
669
|
+
const Va = /* @__PURE__ */ ge(kl, [["render", Cl]]), zl = {
|
|
670
670
|
viewBox: "0 0 24 24",
|
|
671
671
|
width: "1.2em",
|
|
672
672
|
height: "1.2em"
|
|
673
673
|
};
|
|
674
|
-
function
|
|
675
|
-
return f(), p("svg",
|
|
676
|
-
|
|
674
|
+
function Sl(e, l) {
|
|
675
|
+
return f(), p("svg", zl, [...l[0] || (l[0] = [
|
|
676
|
+
o("path", {
|
|
677
677
|
fill: "currentColor",
|
|
678
678
|
d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
|
|
679
679
|
}, null, -1)
|
|
680
680
|
])]);
|
|
681
681
|
}
|
|
682
|
-
const
|
|
682
|
+
const Vl = F({ name: "ri-arrow-right-s-line", render: Sl }), Bl = { class: "mb-4 flex flex-col gap-2" }, Tl = { class: "size-6 flex-[0_0_24px] opacity-60" }, El = ["onClick"], Ll = { class: "flex flex-col gap-2" }, Ml = { class: "flex gap-2 ms-8" }, Al = { class: "size-5 flex-[0_0_24px]" }, Dl = { class: "flex-1 first-letter:uppercase text-sm" }, Ba = /* @__PURE__ */ V({
|
|
683
683
|
__name: "AppNav",
|
|
684
684
|
props: {
|
|
685
685
|
menu: { default: () => [] },
|
|
@@ -687,62 +687,62 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
687
687
|
isSidebar: { type: Boolean, default: !1 }
|
|
688
688
|
},
|
|
689
689
|
emits: ["sidebar"],
|
|
690
|
-
setup(e, { emit:
|
|
691
|
-
const
|
|
692
|
-
e.isSidebar &&
|
|
693
|
-
},
|
|
690
|
+
setup(e, { emit: l }) {
|
|
691
|
+
const n = l, s = D(""), t = ({ name: r }) => {
|
|
692
|
+
e.isSidebar && n("sidebar", !e.isSidebar), s.value !== r && (s.value = s.value === r ? "" : r);
|
|
693
|
+
}, a = (r) => e.fullPath === r;
|
|
694
694
|
return ue(
|
|
695
695
|
() => e.menu,
|
|
696
696
|
() => {
|
|
697
|
-
var
|
|
698
|
-
return s.value = ((
|
|
697
|
+
var r;
|
|
698
|
+
return s.value = ((r = wt(e.menu, e.fullPath)) == null ? void 0 : r.name) || "";
|
|
699
699
|
}
|
|
700
|
-
), (
|
|
701
|
-
const u =
|
|
700
|
+
), (r, d) => {
|
|
701
|
+
const u = Vl;
|
|
702
702
|
return f(), p("nav", null, [
|
|
703
|
-
|
|
704
|
-
(f(!0), p(O, null,
|
|
705
|
-
key:
|
|
703
|
+
o("ul", Bl, [
|
|
704
|
+
(f(!0), p(O, null, U(e.menu, (i) => (f(), p("li", {
|
|
705
|
+
key: i.name
|
|
706
706
|
}, [
|
|
707
|
-
(f(), M(de(
|
|
708
|
-
to:
|
|
709
|
-
class: B(["flex gap-2 items-center px-3 py-2 rounded",
|
|
710
|
-
onClick: N((c) =>
|
|
707
|
+
(f(), M(de(i.path ? "router-link" : "span"), {
|
|
708
|
+
to: i.path,
|
|
709
|
+
class: B(["flex gap-2 items-center px-3 py-2 rounded", a(i.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
|
|
710
|
+
onClick: N((c) => t(i), ["prevent", "stop"])
|
|
711
711
|
}, {
|
|
712
712
|
default: y(() => [
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
o("div", Tl, [
|
|
714
|
+
_(r.$slots, "icon", { item: i })
|
|
715
715
|
]),
|
|
716
|
-
|
|
716
|
+
o("span", {
|
|
717
717
|
class: B(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
|
|
718
|
-
},
|
|
719
|
-
|
|
718
|
+
}, k(i.name), 3),
|
|
719
|
+
o("button", {
|
|
720
720
|
class: B(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
|
|
721
|
-
onClick: N((c) =>
|
|
721
|
+
onClick: N((c) => t(i), ["prevent", "stop"])
|
|
722
722
|
}, [
|
|
723
|
-
|
|
724
|
-
], 10,
|
|
723
|
+
i.children ? (f(), M(u, { key: 0 })) : T("", !0)
|
|
724
|
+
], 10, El)
|
|
725
725
|
]),
|
|
726
726
|
_: 2
|
|
727
727
|
}, 1032, ["to", "class", "onClick"])),
|
|
728
|
-
|
|
728
|
+
i.children ? (f(), p("div", {
|
|
729
729
|
key: 0,
|
|
730
|
-
class: B(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value ===
|
|
730
|
+
class: B(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value === i.name ? "block" : "hidden"]])
|
|
731
731
|
}, [
|
|
732
|
-
|
|
733
|
-
(f(!0), p(O, null,
|
|
732
|
+
o("ul", Ll, [
|
|
733
|
+
(f(!0), p(O, null, U(i.children, ({ name: c, path: m, icon: v }) => (f(), p("li", { key: c }, [
|
|
734
734
|
(f(), M(de(m ? "router-link" : "span"), {
|
|
735
735
|
to: m,
|
|
736
|
-
class: B(["flex gap-2 items-center px-3 py-2 rounded",
|
|
736
|
+
class: B(["flex gap-2 items-center px-3 py-2 rounded", a(m) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
|
|
737
737
|
}, {
|
|
738
738
|
default: y(() => [
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
739
|
+
o("div", Ml, [
|
|
740
|
+
o("div", Al, [
|
|
741
|
+
_(r.$slots, "icon-children", {
|
|
742
742
|
item: { name: c, path: m, icon: v }
|
|
743
743
|
})
|
|
744
744
|
]),
|
|
745
|
-
|
|
745
|
+
o("span", Dl, k(c), 1)
|
|
746
746
|
])
|
|
747
747
|
]),
|
|
748
748
|
_: 2
|
|
@@ -755,17 +755,17 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
755
755
|
]);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), Il = {
|
|
759
759
|
key: 0,
|
|
760
760
|
class: "w-full min-w-[260px] max-w-xs p-4 bg-white rounded shadow-lg dark:bg-gray-800",
|
|
761
761
|
role: "alert"
|
|
762
|
-
},
|
|
762
|
+
}, Ol = { class: "flex items-center gap-4 text-sm" }, jl = {
|
|
763
763
|
key: 0,
|
|
764
764
|
class: "text-green-600"
|
|
765
|
-
},
|
|
765
|
+
}, Hl = {
|
|
766
766
|
key: 1,
|
|
767
767
|
class: "relative block h-4 w-full rounded overflow-hidden bg-gray-200 dark:bg-gray-900/50 select-none mt-2"
|
|
768
|
-
},
|
|
768
|
+
}, Nl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Pl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Ta = /* @__PURE__ */ V({
|
|
769
769
|
__name: "AppProgress",
|
|
770
770
|
props: {
|
|
771
771
|
timeout: { default: 5e3 },
|
|
@@ -776,16 +776,16 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
776
776
|
length: { default: 0 }
|
|
777
777
|
},
|
|
778
778
|
setup(e) {
|
|
779
|
-
const
|
|
780
|
-
|
|
779
|
+
const l = D(!1), n = L(() => !!e.length), s = L(() => !!(n.value && t.value === 100 && !e.status)), t = L(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), a = ze(() => {
|
|
780
|
+
l.value = !1;
|
|
781
781
|
}, e.timeout);
|
|
782
782
|
return ue(
|
|
783
783
|
() => [e.size, e.status],
|
|
784
784
|
() => {
|
|
785
|
-
|
|
785
|
+
l.value = !0, a();
|
|
786
786
|
}
|
|
787
|
-
), (
|
|
788
|
-
const u =
|
|
787
|
+
), (r, d) => {
|
|
788
|
+
const u = le;
|
|
789
789
|
return f(), M(ie, {
|
|
790
790
|
"enter-active-class": "duration-300 ease-out",
|
|
791
791
|
"enter-from-class": "transform opacity-0 translate-x-full",
|
|
@@ -795,31 +795,31 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
795
795
|
"leave-to-class": "transform opacity-0 -translate-y-8"
|
|
796
796
|
}, {
|
|
797
797
|
default: y(() => [
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
d[1] || (d[1] =
|
|
802
|
-
s.value ? (f(), p("span",
|
|
798
|
+
l.value ? (f(), p("div", Il, [
|
|
799
|
+
o("div", Ol, [
|
|
800
|
+
_(r.$slots, "default", { isDone: s.value }, () => [
|
|
801
|
+
d[1] || (d[1] = o("div", { class: "flex-auto" }, "Progress...", -1)),
|
|
802
|
+
s.value ? (f(), p("span", jl, "Done")) : T("", !0)
|
|
803
803
|
]),
|
|
804
|
-
|
|
804
|
+
o("button", {
|
|
805
805
|
class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
|
|
806
|
-
onClick: d[0] || (d[0] = (
|
|
806
|
+
onClick: d[0] || (d[0] = (i) => l.value = !1)
|
|
807
807
|
}, [
|
|
808
808
|
b(u, { class: "size-4" })
|
|
809
809
|
])
|
|
810
810
|
]),
|
|
811
|
-
|
|
811
|
+
n.value ? (f(), p("div", {
|
|
812
812
|
key: 0,
|
|
813
813
|
class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
|
|
814
|
-
style: Z(`width: ${
|
|
814
|
+
style: Z(`width: ${t.value}%`)
|
|
815
815
|
}, null, 4)) : T("", !0),
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
816
|
+
n.value ? (f(), p("div", Hl, [
|
|
817
|
+
o("div", Nl, k(t.value) + "%", 1),
|
|
818
|
+
o("div", {
|
|
819
819
|
class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
|
|
820
|
-
style: Z(`width: ${
|
|
820
|
+
style: Z(`width: ${t.value}%`)
|
|
821
821
|
}, [
|
|
822
|
-
|
|
822
|
+
o("div", Pl, k(t.value) + "%", 1)
|
|
823
823
|
], 4)
|
|
824
824
|
])) : T("", !0)
|
|
825
825
|
])) : T("", !0)
|
|
@@ -828,7 +828,7 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
828
828
|
});
|
|
829
829
|
};
|
|
830
830
|
}
|
|
831
|
-
}),
|
|
831
|
+
}), Fl = { class: "my-4 text-gray-700 dark:text-gray-400" }, Ul = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Rl = { class: "flex gap-2" }, Wl = { class: "text-gray-700 dark:text-gray-400" }, Kl = { class: "flex gap-2" }, ql = { class: "flex gap-2" }, Gl = { class: "text-gray-700 dark:text-gray-400" }, Jl = { class: "flex gap-2" }, Xl = { class: "text-gray-700 dark:text-gray-400" }, Yl = { class: "flex flex-col gap-4 text-sm" }, Ql = { class: "flex gap-4" }, Ea = /* @__PURE__ */ V({
|
|
832
832
|
__name: "BlockInfo",
|
|
833
833
|
props: {
|
|
834
834
|
pkg: {},
|
|
@@ -842,103 +842,103 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
842
842
|
board: {}
|
|
843
843
|
},
|
|
844
844
|
setup(e) {
|
|
845
|
-
const
|
|
846
|
-
var
|
|
845
|
+
const l = L(() => e.firmware.join(".")), n = L(() => {
|
|
846
|
+
var t, a, r, d, u, i, c;
|
|
847
847
|
const s = [];
|
|
848
|
-
return (
|
|
848
|
+
return (t = e.pkg) != null && t.homepage && s.push({ name: "homepage", href: e.pkg.homepage }), (r = (a = e.pkg) == null ? void 0 : a.repository) != null && r.url && s.push({ name: "repository", href: e.pkg.repository.url }), (u = (d = e.pkg) == null ? void 0 : d.bugs) != null && u.url && s.push({ name: "bugs", href: e.pkg.bugs.url }), (i = e.pkg) != null && i.author && s.push({ name: "author", href: `mailto:${(c = e.pkg) == null ? void 0 : c.author}` }), s;
|
|
849
849
|
});
|
|
850
|
-
return (s,
|
|
851
|
-
var
|
|
850
|
+
return (s, t) => {
|
|
851
|
+
var a, r;
|
|
852
852
|
return f(), p("div", null, [
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
853
|
+
o("p", Fl, k((a = e.pkg) == null ? void 0 : a.description), 1),
|
|
854
|
+
o("div", Ul, [
|
|
855
|
+
o("div", Rl, [
|
|
856
|
+
t[0] || (t[0] = I(" Firmware (hw): ", -1)),
|
|
857
|
+
o("span", Wl, k(l.value), 1)
|
|
858
858
|
]),
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
859
|
+
o("div", Kl, [
|
|
860
|
+
o("div", ql, [
|
|
861
|
+
t[1] || (t[1] = I(" Version (web): ", -1)),
|
|
862
|
+
o("span", Gl, k((r = e.pkg) == null ? void 0 : r.version), 1)
|
|
863
863
|
])
|
|
864
864
|
]),
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
865
|
+
t[3] || (t[3] = o("div", { class: "flex-auto" }, null, -1)),
|
|
866
|
+
o("div", Jl, [
|
|
867
|
+
t[2] || (t[2] = I(" ID: ", -1)),
|
|
868
|
+
o("span", Xl, k(e.id.toString(16)), 1)
|
|
869
869
|
])
|
|
870
870
|
]),
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
871
|
+
t[4] || (t[4] = o("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
|
|
872
|
+
o("div", Yl, [
|
|
873
|
+
o("div", Ql, [
|
|
874
|
+
_(s.$slots, "links", { links: n.value })
|
|
875
875
|
])
|
|
876
876
|
])
|
|
877
877
|
]);
|
|
878
878
|
};
|
|
879
879
|
}
|
|
880
|
-
}),
|
|
880
|
+
}), Zl = { class: "relative flex items-end gap-0.5 w-10" }, en = ["title"], tn = { class: "absolute -top-1 -left-1 text-xs text-gray-600 dark:text-gray-300" }, Ye = /* @__PURE__ */ V({
|
|
881
881
|
__name: "VWifiIcon",
|
|
882
882
|
props: {
|
|
883
883
|
rssi: { default: 0 },
|
|
884
884
|
channel: { default: 0 }
|
|
885
885
|
},
|
|
886
886
|
setup(e) {
|
|
887
|
-
const
|
|
888
|
-
return (s,
|
|
889
|
-
(f(), p(O, null,
|
|
890
|
-
key:
|
|
891
|
-
class: B(["w-1 h-5 rounded-lg", [
|
|
892
|
-
style: Z(`height: ${(
|
|
887
|
+
const l = 2 * (e.rssi + 100), n = (s) => s < l;
|
|
888
|
+
return (s, t) => (f(), p("div", Zl, [
|
|
889
|
+
(f(), p(O, null, U([10, 15, 25, 40, 70], (a, r) => o("div", {
|
|
890
|
+
key: a,
|
|
891
|
+
class: B(["w-1 h-5 rounded-lg", [n(a) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
|
|
892
|
+
style: Z(`height: ${(r + 1) * 5}px`),
|
|
893
893
|
title: `rssi: ${e.rssi} channel: ${e.channel}`
|
|
894
|
-
}, null, 14,
|
|
895
|
-
|
|
894
|
+
}, null, 14, en)), 64)),
|
|
895
|
+
o("div", tn, k(e.channel), 1)
|
|
896
896
|
]));
|
|
897
897
|
}
|
|
898
|
-
}),
|
|
898
|
+
}), ln = ["onClick"], nn = { class: "mr-2" }, sn = { class: "text-sm" }, on = { class: "text-gray-400 text-xs" }, an = {
|
|
899
899
|
key: 0,
|
|
900
900
|
class: "flex justify-center"
|
|
901
|
-
},
|
|
901
|
+
}, rn = { class: "flex justify-end mt-4" }, La = /* @__PURE__ */ V({
|
|
902
902
|
__name: "BlockScan",
|
|
903
903
|
props: {
|
|
904
904
|
items: { default: () => [] }
|
|
905
905
|
},
|
|
906
906
|
emits: ["scan", "select"],
|
|
907
|
-
setup(e, { emit:
|
|
908
|
-
const
|
|
909
|
-
return (
|
|
910
|
-
const u =
|
|
907
|
+
setup(e, { emit: l }) {
|
|
908
|
+
const n = l, s = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (r) => n("select", r), a = (r) => n("scan", r);
|
|
909
|
+
return (r, d) => {
|
|
910
|
+
const u = Ye, i = me, c = Ve, m = A;
|
|
911
911
|
return f(), p("div", null, [
|
|
912
|
-
b(
|
|
912
|
+
b(i, {
|
|
913
913
|
items: e.items,
|
|
914
914
|
class: "bg-transparent! ring-0!"
|
|
915
915
|
}, {
|
|
916
916
|
default: y(({ item: v }) => [
|
|
917
|
-
|
|
917
|
+
o("div", {
|
|
918
918
|
class: "flex items-center w-full",
|
|
919
|
-
onClick: (g) =>
|
|
919
|
+
onClick: (g) => t(v)
|
|
920
920
|
}, [
|
|
921
|
-
|
|
922
|
-
b(u,
|
|
921
|
+
o("div", nn, [
|
|
922
|
+
b(u, R(W(v)), null, 16)
|
|
923
923
|
]),
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
924
|
+
o("div", null, [
|
|
925
|
+
o("div", sn, k(v.ssid), 1),
|
|
926
|
+
o("div", on, k(r.$t("security")) + " : " + k(s[v.encryptionType] || "unknown"), 1)
|
|
927
927
|
])
|
|
928
|
-
], 8,
|
|
928
|
+
], 8, ln)
|
|
929
929
|
]),
|
|
930
930
|
_: 1
|
|
931
931
|
}, 8, ["items"]),
|
|
932
|
-
e.items.length ? T("", !0) : (f(), p("div",
|
|
932
|
+
e.items.length ? T("", !0) : (f(), p("div", an, [
|
|
933
933
|
b(c, { class: "text-primary" })
|
|
934
934
|
])),
|
|
935
|
-
|
|
935
|
+
o("div", rn, [
|
|
936
936
|
b(m, {
|
|
937
937
|
color: "blue",
|
|
938
|
-
onClick:
|
|
938
|
+
onClick: a
|
|
939
939
|
}, {
|
|
940
940
|
default: y(() => [
|
|
941
|
-
I(
|
|
941
|
+
I(k(r.$t("scan")), 1)
|
|
942
942
|
]),
|
|
943
943
|
_: 1
|
|
944
944
|
})
|
|
@@ -946,23 +946,23 @@ const Ln = F({ name: "ri-arrow-right-s-line", render: En }), Mn = { class: "mb-4
|
|
|
946
946
|
]);
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
}),
|
|
949
|
+
}), cn = {
|
|
950
950
|
viewBox: "0 0 24 24",
|
|
951
951
|
width: "1.2em",
|
|
952
952
|
height: "1.2em"
|
|
953
953
|
};
|
|
954
|
-
function
|
|
955
|
-
return f(), p("svg",
|
|
956
|
-
|
|
954
|
+
function dn(e, l) {
|
|
955
|
+
return f(), p("svg", cn, [...l[0] || (l[0] = [
|
|
956
|
+
o("path", {
|
|
957
957
|
fill: "currentColor",
|
|
958
958
|
d: "m12 10.828l-4.95 4.95l-1.414-1.414L12 8l6.364 6.364l-1.414 1.414z"
|
|
959
959
|
}, null, -1)
|
|
960
960
|
])]);
|
|
961
961
|
}
|
|
962
|
-
const
|
|
962
|
+
const un = F({ name: "ri-arrow-up-s-line", render: dn }), fn = { class: "w-full relative" }, mn = ["disabled"], vn = {
|
|
963
963
|
key: 0,
|
|
964
964
|
class: "text-red-400 h-[24px] px-2 text-xs"
|
|
965
|
-
},
|
|
965
|
+
}, pn = "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", J = /* @__PURE__ */ V({
|
|
966
966
|
__name: "VTextField",
|
|
967
967
|
props: {
|
|
968
968
|
modelValue: { default: null },
|
|
@@ -976,41 +976,41 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
976
976
|
hideMessage: { type: Boolean, default: !1 }
|
|
977
977
|
},
|
|
978
978
|
emits: ["update:modelValue", "click", "on-icon", "enter", "blur", "focus"],
|
|
979
|
-
setup(e, { emit:
|
|
980
|
-
const
|
|
979
|
+
setup(e, { emit: l }) {
|
|
980
|
+
const n = l, s = {
|
|
981
981
|
input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
|
|
982
982
|
textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
|
|
983
|
-
},
|
|
983
|
+
}, t = D(!1), a = L(() => [
|
|
984
984
|
e.component === "input" ? "h-[40px]" : "min-h-[40px]",
|
|
985
985
|
e.message ? "border-red-500 hover:border-red-400" : "",
|
|
986
986
|
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"
|
|
987
|
-
]),
|
|
988
|
-
|
|
987
|
+
]), r = L(() => s[e.component]), d = ($) => $ || $ === 0, u = L(() => [pn, t.value || d(e.modelValue) || e.active ? "top-0 left-3 text-xs" : "top-1/2"]), i = L(() => e.component === "input"), c = ($) => {
|
|
988
|
+
t.value = !1, n("blur", $);
|
|
989
989
|
}, m = ($) => {
|
|
990
|
-
|
|
991
|
-
}, v = ({ target: $ }) =>
|
|
992
|
-
e.disabled ||
|
|
990
|
+
t.value = !0, n("focus", $);
|
|
991
|
+
}, v = ({ target: $ }) => n("update:modelValue", $.value), g = ($) => n("enter", $), h = ($) => n("click", $), x = ($) => {
|
|
992
|
+
e.disabled || n("on-icon", $);
|
|
993
993
|
};
|
|
994
|
-
return ($, C) => (f(), p("div",
|
|
995
|
-
|
|
996
|
-
class: B(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800",
|
|
994
|
+
return ($, C) => (f(), p("div", fn, [
|
|
995
|
+
o("label", {
|
|
996
|
+
class: B(["relative w-full border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", a.value])
|
|
997
997
|
}, [
|
|
998
|
-
|
|
998
|
+
o("span", {
|
|
999
999
|
class: B(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", u.value])
|
|
1000
|
-
},
|
|
1000
|
+
}, k(e.label), 3),
|
|
1001
1001
|
(f(), M(de(e.component), P($.$attrs, {
|
|
1002
1002
|
value: e.modelValue,
|
|
1003
1003
|
disabled: !!e.disabled,
|
|
1004
1004
|
type: e.type,
|
|
1005
1005
|
readonly: e.readonly,
|
|
1006
|
-
rows:
|
|
1007
|
-
wrap:
|
|
1008
|
-
class:
|
|
1006
|
+
rows: i.value ? null : "2",
|
|
1007
|
+
wrap: i.value ? null : "soft",
|
|
1008
|
+
class: r.value,
|
|
1009
1009
|
onFocus: m,
|
|
1010
1010
|
onBlur: c,
|
|
1011
1011
|
onInput: v,
|
|
1012
1012
|
onClick: h,
|
|
1013
|
-
onKeypress:
|
|
1013
|
+
onKeypress: mt(g, ["enter"])
|
|
1014
1014
|
}), null, 16, ["value", "disabled", "type", "readonly", "rows", "wrap", "class"])),
|
|
1015
1015
|
$.$slots.icon ? (f(), p("button", {
|
|
1016
1016
|
key: 0,
|
|
@@ -1018,20 +1018,20 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1018
1018
|
class: B([{ "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"]),
|
|
1019
1019
|
onClick: x
|
|
1020
1020
|
}, [
|
|
1021
|
-
|
|
1022
|
-
], 10,
|
|
1021
|
+
_($.$slots, "icon")
|
|
1022
|
+
], 10, mn)) : T("", !0)
|
|
1023
1023
|
], 2),
|
|
1024
|
-
e.hideMessage ? T("", !0) : (f(), p("div",
|
|
1025
|
-
|
|
1026
|
-
I(
|
|
1024
|
+
e.hideMessage ? T("", !0) : (f(), p("div", vn, [
|
|
1025
|
+
_($.$slots, "message", {}, () => [
|
|
1026
|
+
I(k(e.message), 1)
|
|
1027
1027
|
])
|
|
1028
1028
|
]))
|
|
1029
1029
|
]));
|
|
1030
1030
|
}
|
|
1031
|
-
}),
|
|
1031
|
+
}), hn = { class: "bg-white dark:bg-gray-900 rounded min-w-50 shadow-nav transition-all duration-400 dark:shadow-lg dark:shadow-primary/20 pb-6 lg:pb-0" }, gn = {
|
|
1032
1032
|
key: 0,
|
|
1033
1033
|
class: "lg:hidden text-title-md font-bold mb-4 uppercase px-4 sticky top-0"
|
|
1034
|
-
},
|
|
1034
|
+
}, bn = { class: "h-full h-hull lg:max-h-44 lg:overflow-auto scrollbar lg:overscroll-contain" }, te = /* @__PURE__ */ V({
|
|
1035
1035
|
inheritAttrs: !1,
|
|
1036
1036
|
__name: "VSelect",
|
|
1037
1037
|
props: {
|
|
@@ -1049,19 +1049,19 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1049
1049
|
isPopup: { type: Boolean }
|
|
1050
1050
|
},
|
|
1051
1051
|
emits: ["change"],
|
|
1052
|
-
setup(e, { emit:
|
|
1053
|
-
const
|
|
1054
|
-
function
|
|
1055
|
-
s("change",
|
|
1052
|
+
setup(e, { emit: l }) {
|
|
1053
|
+
const n = vt(e, ["modelValue", "label", "items", "disabled"]), s = l;
|
|
1054
|
+
function t(a, r) {
|
|
1055
|
+
s("change", a), r == null || r.set(!1);
|
|
1056
1056
|
}
|
|
1057
|
-
return (
|
|
1058
|
-
const d =
|
|
1059
|
-
return f(), M(be, P(
|
|
1057
|
+
return (a, r) => {
|
|
1058
|
+
const d = un;
|
|
1059
|
+
return f(), M(be, P(n, {
|
|
1060
1060
|
"hide-on-click": !1,
|
|
1061
1061
|
class: "relative"
|
|
1062
1062
|
}), {
|
|
1063
|
-
activator: y(({ on: u, isShow:
|
|
1064
|
-
|
|
1063
|
+
activator: y(({ on: u, isShow: i }) => [
|
|
1064
|
+
_(a.$slots, "activator", R(W({ on: u, isShow: i })), () => [
|
|
1065
1065
|
b(J, {
|
|
1066
1066
|
"model-value": e.modelValue,
|
|
1067
1067
|
disabled: e.disabled,
|
|
@@ -1074,7 +1074,7 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1074
1074
|
}, {
|
|
1075
1075
|
icon: y(() => [
|
|
1076
1076
|
b(d, {
|
|
1077
|
-
class: B(["transition duration-300",
|
|
1077
|
+
class: B(["transition duration-300", i ? "rotate-x-180" : ""])
|
|
1078
1078
|
}, null, 8, ["class"])
|
|
1079
1079
|
]),
|
|
1080
1080
|
_: 2
|
|
@@ -1082,16 +1082,16 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1082
1082
|
])
|
|
1083
1083
|
]),
|
|
1084
1084
|
default: y(({ on: u }) => [
|
|
1085
|
-
|
|
1086
|
-
e.label ? (f(), p("h4",
|
|
1087
|
-
|
|
1085
|
+
o("div", hn, [
|
|
1086
|
+
e.label ? (f(), p("h4", gn, k(e.label), 1)) : T("", !0),
|
|
1087
|
+
o("div", bn, [
|
|
1088
1088
|
b(me, {
|
|
1089
1089
|
items: e.items,
|
|
1090
|
-
onClick: (
|
|
1090
|
+
onClick: (i) => t(i, u)
|
|
1091
1091
|
}, {
|
|
1092
|
-
default: y(({ item:
|
|
1093
|
-
|
|
1094
|
-
I(
|
|
1092
|
+
default: y(({ item: i }) => [
|
|
1093
|
+
_(a.$slots, "item", { item: i }, () => [
|
|
1094
|
+
I(k(i.name), 1)
|
|
1095
1095
|
])
|
|
1096
1096
|
]),
|
|
1097
1097
|
_: 3
|
|
@@ -1103,55 +1103,55 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1103
1103
|
}, 16);
|
|
1104
1104
|
};
|
|
1105
1105
|
}
|
|
1106
|
-
}),
|
|
1106
|
+
}), yn = { class: "md:flex items-center mb-4" }, xn = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, _n = { class: "md:max-w-50" }, kn = { class: "flex items-center mb-4" }, $n = { class: "flex-auto text-gray-600 bg:text-gray-400" }, wn = { class: "flex items-center mb-4" }, Cn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Ma = /* @__PURE__ */ V({
|
|
1107
1107
|
__name: "BlockService",
|
|
1108
1108
|
props: {
|
|
1109
1109
|
locale: {},
|
|
1110
1110
|
locales: {}
|
|
1111
1111
|
},
|
|
1112
1112
|
emits: ["reboot", "reset", "locale"],
|
|
1113
|
-
setup(e, { emit:
|
|
1114
|
-
const
|
|
1115
|
-
var
|
|
1116
|
-
return (
|
|
1113
|
+
setup(e, { emit: l }) {
|
|
1114
|
+
const n = l, s = (a) => n("locale", a), t = (a) => {
|
|
1115
|
+
var r;
|
|
1116
|
+
return (r = e.locales.find((d) => d.value === a)) == null ? void 0 : r.name;
|
|
1117
1117
|
};
|
|
1118
|
-
return (
|
|
1118
|
+
return (a, r) => {
|
|
1119
1119
|
const d = te, u = A;
|
|
1120
1120
|
return f(), p(O, null, [
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1121
|
+
o("div", yn, [
|
|
1122
|
+
o("div", xn, k(a.$t("selectLang")), 1),
|
|
1123
|
+
o("div", _n, [
|
|
1124
1124
|
b(d, {
|
|
1125
|
-
"model-value":
|
|
1126
|
-
label:
|
|
1125
|
+
"model-value": t(e.locale),
|
|
1126
|
+
label: a.$t("lang"),
|
|
1127
1127
|
items: e.locales,
|
|
1128
1128
|
onChange: s
|
|
1129
1129
|
}, null, 8, ["model-value", "label", "items"])
|
|
1130
1130
|
])
|
|
1131
1131
|
]),
|
|
1132
|
-
|
|
1133
|
-
|
|
1132
|
+
o("div", kn, [
|
|
1133
|
+
o("div", $n, k(a.$t("rebootDev")), 1),
|
|
1134
1134
|
b(u, {
|
|
1135
1135
|
class: "min-w-[100px]",
|
|
1136
1136
|
color: "red",
|
|
1137
1137
|
outline: "",
|
|
1138
|
-
onClick:
|
|
1138
|
+
onClick: r[0] || (r[0] = (i) => n("reboot", i))
|
|
1139
1139
|
}, {
|
|
1140
1140
|
default: y(() => [
|
|
1141
|
-
I(
|
|
1141
|
+
I(k(a.$t("reboot")), 1)
|
|
1142
1142
|
]),
|
|
1143
1143
|
_: 1
|
|
1144
1144
|
})
|
|
1145
1145
|
]),
|
|
1146
|
-
|
|
1147
|
-
|
|
1146
|
+
o("div", wn, [
|
|
1147
|
+
o("div", Cn, k(a.$t("resetConf")), 1),
|
|
1148
1148
|
b(u, {
|
|
1149
1149
|
class: "min-w-[100px]",
|
|
1150
1150
|
color: "red",
|
|
1151
|
-
onClick:
|
|
1151
|
+
onClick: r[1] || (r[1] = (i) => n("reset", i))
|
|
1152
1152
|
}, {
|
|
1153
1153
|
default: y(() => [
|
|
1154
|
-
I(
|
|
1154
|
+
I(k(a.$t("reset")), 1)
|
|
1155
1155
|
]),
|
|
1156
1156
|
_: 1
|
|
1157
1157
|
})
|
|
@@ -1159,7 +1159,7 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1159
1159
|
], 64);
|
|
1160
1160
|
};
|
|
1161
1161
|
}
|
|
1162
|
-
}),
|
|
1162
|
+
}), zn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, Sn = { class: "flex flex-col w-full items-center gap-2" }, Vn = ["title"], Bn = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Tn = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, En = { class: "flex justify-between w-full text-xs" }, Ln = { class: "text-gray-500 dark:text-gray-400" }, Mn = { class: "text-sm" }, An = { class: "text-gray-500 dark:text-gray-400 text-left" }, Dn = { class: "text-right text-xs" }, Aa = /* @__PURE__ */ V({
|
|
1163
1163
|
__name: "BlockStatus",
|
|
1164
1164
|
props: {
|
|
1165
1165
|
pkg: {},
|
|
@@ -1173,68 +1173,68 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1173
1173
|
board: {}
|
|
1174
1174
|
},
|
|
1175
1175
|
setup(e) {
|
|
1176
|
-
const
|
|
1177
|
-
let
|
|
1178
|
-
const s = L(() => e.firmware.join(".")),
|
|
1176
|
+
const l = D(e.uptime);
|
|
1177
|
+
let n = null;
|
|
1178
|
+
const s = L(() => e.firmware.join(".")), t = L(() => [
|
|
1179
1179
|
{ name: "used", value: pe(e.usedBytes) },
|
|
1180
1180
|
{ name: "available", value: pe(e.totalBytes - e.usedBytes) },
|
|
1181
1181
|
{ name: "total", value: pe(e.totalBytes) }
|
|
1182
|
-
]),
|
|
1182
|
+
]), a = L(() => {
|
|
1183
1183
|
var u;
|
|
1184
1184
|
return [
|
|
1185
|
-
{ name: "uptime", value:
|
|
1185
|
+
{ name: "uptime", value: Ct(l.value) },
|
|
1186
1186
|
{ name: "id", value: `${e.id.toString(16)} (${e.id})` },
|
|
1187
1187
|
{ name: "firmware", value: s.value },
|
|
1188
1188
|
{ name: "version", value: (u = e.pkg) == null ? void 0 : u.version }
|
|
1189
1189
|
];
|
|
1190
|
-
}),
|
|
1191
|
-
|
|
1190
|
+
}), r = L(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
|
|
1191
|
+
l.value++, n = setTimeout(d, 1e3);
|
|
1192
1192
|
};
|
|
1193
1193
|
return fe(() => {
|
|
1194
1194
|
d();
|
|
1195
|
-
}),
|
|
1196
|
-
|
|
1197
|
-
}), (u,
|
|
1195
|
+
}), Fe(() => {
|
|
1196
|
+
l.value = 0, n && clearTimeout(n);
|
|
1197
|
+
}), (u, i) => {
|
|
1198
1198
|
var c, m, v;
|
|
1199
|
-
return f(), p("div",
|
|
1200
|
-
|
|
1201
|
-
|
|
1199
|
+
return f(), p("div", zn, [
|
|
1200
|
+
o("div", Sn, [
|
|
1201
|
+
o("div", {
|
|
1202
1202
|
class: "relative block h-4 w-full rounded overflow-hidden bg-gray-200 dark:bg-gray-800 select-none",
|
|
1203
|
-
title: `${
|
|
1203
|
+
title: `${r.value}%`
|
|
1204
1204
|
}, [
|
|
1205
|
-
|
|
1206
|
-
|
|
1205
|
+
o("div", Bn, k(r.value) + "%", 1),
|
|
1206
|
+
o("div", {
|
|
1207
1207
|
class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
|
|
1208
|
-
style: Z(`width: ${
|
|
1208
|
+
style: Z(`width: ${r.value}%`)
|
|
1209
1209
|
}, [
|
|
1210
|
-
|
|
1210
|
+
o("div", Tn, k(r.value) + "%", 1)
|
|
1211
1211
|
], 4)
|
|
1212
|
-
], 8,
|
|
1213
|
-
|
|
1214
|
-
(f(!0), p(O, null,
|
|
1212
|
+
], 8, Vn),
|
|
1213
|
+
o("div", En, [
|
|
1214
|
+
(f(!0), p(O, null, U(t.value, (g) => (f(), p("div", {
|
|
1215
1215
|
key: g.name,
|
|
1216
1216
|
class: "flex-auto"
|
|
1217
1217
|
}, [
|
|
1218
|
-
|
|
1219
|
-
|
|
1218
|
+
o("div", Ln, [
|
|
1219
|
+
_(u.$slots, "name", { item: g })
|
|
1220
1220
|
]),
|
|
1221
|
-
|
|
1221
|
+
o("div", null, k(g.value), 1)
|
|
1222
1222
|
]))), 128))
|
|
1223
1223
|
])
|
|
1224
1224
|
]),
|
|
1225
|
-
|
|
1226
|
-
(f(!0), p(O, null,
|
|
1225
|
+
o("div", Mn, [
|
|
1226
|
+
(f(!0), p(O, null, U(a.value, (g) => (f(), p("div", {
|
|
1227
1227
|
key: g.name,
|
|
1228
1228
|
class: "flex justify-between items-center"
|
|
1229
1229
|
}, [
|
|
1230
|
-
|
|
1231
|
-
|
|
1230
|
+
o("div", An, [
|
|
1231
|
+
_(u.$slots, "name", { item: g })
|
|
1232
1232
|
]),
|
|
1233
|
-
|
|
1233
|
+
o("div", Dn, k(g.value), 1)
|
|
1234
1234
|
]))), 128))
|
|
1235
1235
|
]),
|
|
1236
|
-
|
|
1237
|
-
|
|
1236
|
+
o("div", null, [
|
|
1237
|
+
_(u.$slots, "default", {
|
|
1238
1238
|
home: (c = e.pkg) == null ? void 0 : c.homepage,
|
|
1239
1239
|
repo: (v = (m = e.pkg) == null ? void 0 : m.repository) == null ? void 0 : v.url
|
|
1240
1240
|
})
|
|
@@ -1242,69 +1242,69 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1242
1242
|
]);
|
|
1243
1243
|
};
|
|
1244
1244
|
}
|
|
1245
|
-
}),
|
|
1245
|
+
}), In = { class: "flex items-center cursor-pointer" }, On = /* @__PURE__ */ V({
|
|
1246
1246
|
__name: "VFile",
|
|
1247
1247
|
emits: ["change"],
|
|
1248
|
-
setup(e, { emit:
|
|
1249
|
-
const
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1248
|
+
setup(e, { emit: l }) {
|
|
1249
|
+
const n = l, s = async (t) => {
|
|
1250
|
+
const a = t.target;
|
|
1251
|
+
a.files && n("change", a.files);
|
|
1252
1252
|
};
|
|
1253
|
-
return (
|
|
1254
|
-
|
|
1253
|
+
return (t, a) => (f(), p("label", In, [
|
|
1254
|
+
o("input", P({
|
|
1255
1255
|
type: "file",
|
|
1256
1256
|
class: "hidden"
|
|
1257
|
-
},
|
|
1258
|
-
|
|
1257
|
+
}, t.$attrs, { onChange: s }), null, 16),
|
|
1258
|
+
_(t.$slots, "default")
|
|
1259
1259
|
]));
|
|
1260
1260
|
}
|
|
1261
|
-
}),
|
|
1261
|
+
}), jn = { class: "md:flex" }, Hn = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, Da = /* @__PURE__ */ V({
|
|
1262
1262
|
__name: "BlockUpdate",
|
|
1263
1263
|
emits: ["update"],
|
|
1264
|
-
setup(e, { emit:
|
|
1265
|
-
const
|
|
1266
|
-
const
|
|
1264
|
+
setup(e, { emit: l }) {
|
|
1265
|
+
const n = l, s = pt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((u) => `${u.name} (${pe(u.size)})`).join("") : "", a = (d, u) => {
|
|
1266
|
+
const i = new FormData();
|
|
1267
1267
|
for (let c = 0; c < d.length; c++) {
|
|
1268
1268
|
const m = d.item(c);
|
|
1269
1269
|
if (!m) return;
|
|
1270
|
-
|
|
1270
|
+
i.append(`file[${c}]`, m, u);
|
|
1271
1271
|
}
|
|
1272
|
-
return
|
|
1273
|
-
},
|
|
1272
|
+
return i;
|
|
1273
|
+
}, r = (d, u) => {
|
|
1274
1274
|
if (!u) return;
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1275
|
+
const i = a(u, d);
|
|
1276
|
+
i && n("update", d, i);
|
|
1277
1277
|
};
|
|
1278
1278
|
return (d, u) => {
|
|
1279
|
-
const
|
|
1279
|
+
const i = A;
|
|
1280
1280
|
return f(), p("div", null, [
|
|
1281
|
-
(f(!0), p(O, null,
|
|
1281
|
+
(f(!0), p(O, null, U(s, (c, m) => (f(), p("div", {
|
|
1282
1282
|
key: m,
|
|
1283
1283
|
class: "mb-4 flex items-center"
|
|
1284
1284
|
}, [
|
|
1285
|
-
b(
|
|
1285
|
+
b(On, {
|
|
1286
1286
|
accept: ".bin",
|
|
1287
1287
|
onChange: (v) => s[m] = v,
|
|
1288
1288
|
class: "flex-auto"
|
|
1289
1289
|
}, {
|
|
1290
1290
|
default: y(() => [
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
file:
|
|
1291
|
+
o("div", jn, [
|
|
1292
|
+
o("h6", Hn, k(m) + ":", 1),
|
|
1293
|
+
_(d.$slots, "default", {
|
|
1294
|
+
file: t(c)
|
|
1295
1295
|
})
|
|
1296
1296
|
])
|
|
1297
1297
|
]),
|
|
1298
1298
|
_: 2
|
|
1299
1299
|
}, 1032, ["onChange"]),
|
|
1300
|
-
b(
|
|
1300
|
+
b(i, {
|
|
1301
1301
|
class: "min-w-[100px]",
|
|
1302
1302
|
color: "blue",
|
|
1303
1303
|
disabled: !c,
|
|
1304
|
-
onClick: (v) =>
|
|
1304
|
+
onClick: (v) => r(`${m}.bin`, c)
|
|
1305
1305
|
}, {
|
|
1306
1306
|
default: y(() => [
|
|
1307
|
-
I(
|
|
1307
|
+
I(k(d.$t("btnUpdate")), 1)
|
|
1308
1308
|
]),
|
|
1309
1309
|
_: 1
|
|
1310
1310
|
}, 8, ["disabled", "onClick"])
|
|
@@ -1312,47 +1312,47 @@ const vl = F({ name: "ri-arrow-up-s-line", render: ml }), pl = { class: "w-full
|
|
|
1312
1312
|
]);
|
|
1313
1313
|
};
|
|
1314
1314
|
}
|
|
1315
|
-
}),
|
|
1315
|
+
}), Nn = {
|
|
1316
1316
|
viewBox: "0 0 24 24",
|
|
1317
1317
|
width: "1.2em",
|
|
1318
1318
|
height: "1.2em"
|
|
1319
1319
|
};
|
|
1320
|
-
function
|
|
1321
|
-
return f(), p("svg",
|
|
1322
|
-
|
|
1320
|
+
function Pn(e, l) {
|
|
1321
|
+
return f(), p("svg", Nn, [...l[0] || (l[0] = [
|
|
1322
|
+
o("path", {
|
|
1323
1323
|
fill: "currentColor",
|
|
1324
1324
|
d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
|
|
1325
1325
|
}, null, -1)
|
|
1326
1326
|
])]);
|
|
1327
1327
|
}
|
|
1328
|
-
const
|
|
1328
|
+
const Qe = F({ name: "ri-arrow-drop-right-line", render: Pn }), Fn = { class: "flex items-center gap-1.5" }, Ia = /* @__PURE__ */ V({
|
|
1329
1329
|
__name: "BlockBreadcrumb",
|
|
1330
1330
|
props: {
|
|
1331
1331
|
items: { default: () => [] }
|
|
1332
1332
|
},
|
|
1333
1333
|
emits: ["click"],
|
|
1334
|
-
setup(e, { emit:
|
|
1335
|
-
const
|
|
1336
|
-
return (
|
|
1337
|
-
const
|
|
1334
|
+
setup(e, { emit: l }) {
|
|
1335
|
+
const n = l, s = (t) => n("click", t);
|
|
1336
|
+
return (t, a) => {
|
|
1337
|
+
const r = Qe;
|
|
1338
1338
|
return f(), p("nav", null, [
|
|
1339
|
-
|
|
1340
|
-
(f(!0), p(O, null,
|
|
1339
|
+
o("ol", Fn, [
|
|
1340
|
+
(f(!0), p(O, null, U(e.items, (d, u) => (f(), p("li", {
|
|
1341
1341
|
key: u,
|
|
1342
1342
|
class: B(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", d.path ? "" : "text-gray-800 dark:text-white/90"])
|
|
1343
1343
|
}, [
|
|
1344
|
-
|
|
1344
|
+
_(t.$slots, "default", { item: d }, () => [
|
|
1345
1345
|
(f(), M(de(d.path ? "a" : "span"), {
|
|
1346
1346
|
href: d.path,
|
|
1347
|
-
onClick: (
|
|
1347
|
+
onClick: (i) => s(d)
|
|
1348
1348
|
}, {
|
|
1349
1349
|
default: y(() => [
|
|
1350
|
-
I(
|
|
1350
|
+
I(k(d.name), 1)
|
|
1351
1351
|
]),
|
|
1352
1352
|
_: 2
|
|
1353
1353
|
}, 1032, ["href", "onClick"]))
|
|
1354
1354
|
]),
|
|
1355
|
-
d.path ? (f(), M(
|
|
1355
|
+
d.path ? (f(), M(r, {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
class: "rotate-270"
|
|
1358
1358
|
})) : T("", !0)
|
|
@@ -1361,52 +1361,52 @@ const et = F({ name: "ri-arrow-drop-right-line", render: Ul }), Rl = { class: "f
|
|
|
1361
1361
|
]);
|
|
1362
1362
|
};
|
|
1363
1363
|
}
|
|
1364
|
-
}),
|
|
1364
|
+
}), Un = {
|
|
1365
1365
|
key: 0,
|
|
1366
1366
|
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]"
|
|
1367
|
-
},
|
|
1367
|
+
}, Rn = {
|
|
1368
1368
|
key: 1,
|
|
1369
1369
|
class: "absolute top-0 left-0 w-full h-full bg-gray-50 dark:bg-gray-900 z-10 opacity-50"
|
|
1370
|
-
},
|
|
1370
|
+
}, Wn = {
|
|
1371
1371
|
key: 2,
|
|
1372
1372
|
class: "mb-4 flex items-center justify-between"
|
|
1373
|
-
},
|
|
1373
|
+
}, Kn = { class: "text-lg font-semibold text-gray-800 dark:text-white/90 mb-0" }, qn = { class: "max-w-full" }, Gn = /* @__PURE__ */ V({
|
|
1374
1374
|
__name: "CardMain",
|
|
1375
1375
|
props: {
|
|
1376
1376
|
title: {},
|
|
1377
1377
|
loading: { type: Boolean }
|
|
1378
1378
|
},
|
|
1379
1379
|
setup(e) {
|
|
1380
|
-
return (
|
|
1380
|
+
return (l, n) => (f(), p("div", {
|
|
1381
1381
|
class: B(["relative rounded-md border border-gray-200 dark:border-gray-800 bg-white dark:bg-white/[0.03] p-5 sm:p-6 hover-effect", { "overflow-hidden": e.loading }])
|
|
1382
1382
|
}, [
|
|
1383
|
-
e.loading ? (f(), p("div",
|
|
1384
|
-
e.loading ? (f(), p("div",
|
|
1385
|
-
e.title ? (f(), p("div",
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1383
|
+
e.loading ? (f(), p("div", Un)) : T("", !0),
|
|
1384
|
+
e.loading ? (f(), p("div", Rn)) : T("", !0),
|
|
1385
|
+
e.title ? (f(), p("div", Wn, [
|
|
1386
|
+
o("h3", Kn, k(e.title), 1),
|
|
1387
|
+
o("div", null, [
|
|
1388
|
+
_(l.$slots, "header")
|
|
1389
1389
|
])
|
|
1390
1390
|
])) : T("", !0),
|
|
1391
|
-
|
|
1392
|
-
|
|
1391
|
+
o("div", qn, [
|
|
1392
|
+
_(l.$slots, "default")
|
|
1393
1393
|
])
|
|
1394
1394
|
], 2));
|
|
1395
1395
|
}
|
|
1396
|
-
}),
|
|
1396
|
+
}), Jn = {
|
|
1397
1397
|
viewBox: "0 0 24 24",
|
|
1398
1398
|
width: "1.2em",
|
|
1399
1399
|
height: "1.2em"
|
|
1400
1400
|
};
|
|
1401
|
-
function
|
|
1402
|
-
return f(), p("svg",
|
|
1403
|
-
|
|
1401
|
+
function Xn(e, l) {
|
|
1402
|
+
return f(), p("svg", Jn, [...l[0] || (l[0] = [
|
|
1403
|
+
o("path", {
|
|
1404
1404
|
fill: "currentColor",
|
|
1405
1405
|
d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9zm-2 5h6v2H7zm0 4h6v2H7z"
|
|
1406
1406
|
}, null, -1)
|
|
1407
1407
|
])]);
|
|
1408
1408
|
}
|
|
1409
|
-
const
|
|
1409
|
+
const Yn = F({ name: "ri-file-copy2-line", render: Xn }), Qn = { class: "text-title-md uppercase font-bold flex-auto" }, Zn = { class: "px-4 pb-4 md:px-6" }, es = {
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
class: "text-title-md uppercase font-bold"
|
|
1412
1412
|
}, Be = /* @__PURE__ */ V({
|
|
@@ -1422,23 +1422,23 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1422
1422
|
timeout: {}
|
|
1423
1423
|
},
|
|
1424
1424
|
emits: ["close", "click", "open"],
|
|
1425
|
-
setup(e, { expose:
|
|
1426
|
-
const s =
|
|
1425
|
+
setup(e, { expose: l, emit: n }) {
|
|
1426
|
+
const s = n, t = We(Ke), { show: a, onClose: r, onOpen: d } = Re(s, e.timeout), u = {
|
|
1427
1427
|
sm: "max-w-full md:max-w-[330px] h-full md:h-[unset]",
|
|
1428
1428
|
md: "max-w-full md:max-w-[672px] h-full md:h-[unset]",
|
|
1429
1429
|
lg: "max-w-full md:max-w-[960px] h-full md:h-[unset]",
|
|
1430
1430
|
full: "relative max-w-full w-full h-3/4 "
|
|
1431
|
-
},
|
|
1431
|
+
}, i = {
|
|
1432
1432
|
none: "",
|
|
1433
1433
|
white: "bg-white dark:bg-gray-900",
|
|
1434
1434
|
gray: ""
|
|
1435
|
-
}, c = L(() => [u[e.size],
|
|
1436
|
-
return
|
|
1437
|
-
show:
|
|
1438
|
-
onClose:
|
|
1435
|
+
}, c = L(() => [u[e.size], i[e.color]]), m = t.greaterOrEqual("lg");
|
|
1436
|
+
return l({
|
|
1437
|
+
show: a,
|
|
1438
|
+
onClose: r
|
|
1439
1439
|
}), (v, g) => {
|
|
1440
|
-
const h =
|
|
1441
|
-
return e.isOnlyDialog || E(m) ? (f(), M(
|
|
1440
|
+
const h = le;
|
|
1441
|
+
return e.isOnlyDialog || E(m) ? (f(), M(Ne, {
|
|
1442
1442
|
key: 0,
|
|
1443
1443
|
to: "body"
|
|
1444
1444
|
}, [
|
|
@@ -1452,36 +1452,36 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1452
1452
|
onAfterEnter: E(d)
|
|
1453
1453
|
}, {
|
|
1454
1454
|
default: y(() => [
|
|
1455
|
-
E(
|
|
1455
|
+
E(a) ? (f(), p("div", {
|
|
1456
1456
|
key: 0,
|
|
1457
1457
|
class: "z-20 fixed top-0 h-dvh w-full left-0 flex flex-col",
|
|
1458
1458
|
onWheel: g[4] || (g[4] = N(() => {
|
|
1459
1459
|
}, ["stop"]))
|
|
1460
1460
|
}, [
|
|
1461
|
-
|
|
1461
|
+
o("div", {
|
|
1462
1462
|
class: "absolute h-full w-full top-0 left-0 bg-black/40 bg-blur",
|
|
1463
1463
|
onClick: g[0] || (g[0] = //@ts-ignore
|
|
1464
|
-
(...x) => E(
|
|
1464
|
+
(...x) => E(r) && E(r)(...x))
|
|
1465
1465
|
}),
|
|
1466
|
-
|
|
1466
|
+
o("div", {
|
|
1467
1467
|
class: B(["flex-auto flex align-center overflow-y-auto overscroll-contain", (e.size === "full", "")])
|
|
1468
1468
|
}, [
|
|
1469
|
-
|
|
1469
|
+
o("div", {
|
|
1470
1470
|
class: B(["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", c.value])
|
|
1471
1471
|
}, [
|
|
1472
|
-
|
|
1472
|
+
o("div", {
|
|
1473
1473
|
class: B(["flex items-center min-h-14 ps-6 pe-3", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
1474
1474
|
onWheel: g[1] || (g[1] = N(() => {
|
|
1475
1475
|
}, ["prevent"])),
|
|
1476
1476
|
onTouchmove: g[2] || (g[2] = N(() => {
|
|
1477
1477
|
}, ["prevent"]))
|
|
1478
1478
|
}, [
|
|
1479
|
-
|
|
1480
|
-
|
|
1479
|
+
o("h4", Qn, k(e.title), 1),
|
|
1480
|
+
_(v.$slots, "header-btn", { close: E(r) }),
|
|
1481
1481
|
b(A, {
|
|
1482
1482
|
color: "transparent",
|
|
1483
1483
|
size: "md",
|
|
1484
|
-
onClick: E(
|
|
1484
|
+
onClick: E(r)
|
|
1485
1485
|
}, {
|
|
1486
1486
|
default: y(() => [
|
|
1487
1487
|
b(h)
|
|
@@ -1489,12 +1489,12 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1489
1489
|
_: 1
|
|
1490
1490
|
}, 8, ["onClick"])
|
|
1491
1491
|
], 34),
|
|
1492
|
-
|
|
1492
|
+
o("div", {
|
|
1493
1493
|
class: B(["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"]),
|
|
1494
1494
|
onClose: g[3] || (g[3] = //@ts-ignore
|
|
1495
|
-
(...x) => E(
|
|
1495
|
+
(...x) => E(r) && E(r)(...x))
|
|
1496
1496
|
}, [
|
|
1497
|
-
|
|
1497
|
+
_(v.$slots, "default", { close: E(r) })
|
|
1498
1498
|
], 34)
|
|
1499
1499
|
], 2)
|
|
1500
1500
|
], 2)
|
|
@@ -1502,36 +1502,36 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1502
1502
|
]),
|
|
1503
1503
|
_: 3
|
|
1504
1504
|
}, 8, ["onAfterEnter"])
|
|
1505
|
-
])) : (f(), M(
|
|
1505
|
+
])) : (f(), M(Xe, {
|
|
1506
1506
|
key: 1,
|
|
1507
1507
|
size: e.popupSize,
|
|
1508
|
-
onClose: E(
|
|
1508
|
+
onClose: E(r)
|
|
1509
1509
|
}, {
|
|
1510
1510
|
button: y(() => [
|
|
1511
|
-
|
|
1511
|
+
_(v.$slots, "header-btn", { close: E(r) })
|
|
1512
1512
|
]),
|
|
1513
1513
|
default: y(({ close: x }) => [
|
|
1514
|
-
|
|
1515
|
-
|
|
1514
|
+
o("div", Zn, [
|
|
1515
|
+
o("div", {
|
|
1516
1516
|
class: B(["flex items-center mb-4", e.size === "full" ? "absolute top-0 right-4" : ""]),
|
|
1517
1517
|
onWheel: g[5] || (g[5] = N(() => {
|
|
1518
1518
|
}, ["prevent"])),
|
|
1519
1519
|
onTouchmove: g[6] || (g[6] = N(() => {
|
|
1520
1520
|
}, ["prevent"]))
|
|
1521
1521
|
}, [
|
|
1522
|
-
e.title ? (f(), p("h4",
|
|
1522
|
+
e.title ? (f(), p("h4", es, k(e.title), 1)) : T("", !0)
|
|
1523
1523
|
], 34),
|
|
1524
|
-
|
|
1524
|
+
_(v.$slots, "default", { close: x })
|
|
1525
1525
|
])
|
|
1526
1526
|
]),
|
|
1527
1527
|
_: 3
|
|
1528
1528
|
}, 8, ["size", "onClose"]));
|
|
1529
1529
|
};
|
|
1530
1530
|
}
|
|
1531
|
-
}),
|
|
1531
|
+
}), ts = { class: "flex-auto flex justify-between" }, ls = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, ns = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, ss = {
|
|
1532
1532
|
key: 0,
|
|
1533
1533
|
class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
|
|
1534
|
-
},
|
|
1534
|
+
}, os = { class: "min-h-60 relative" }, as = { class: "pt-6" }, is = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, rs = { class: "text-center text-xl mt-4" }, re = /* @__PURE__ */ V({
|
|
1535
1535
|
__name: "CardBase",
|
|
1536
1536
|
props: {
|
|
1537
1537
|
size: {},
|
|
@@ -1548,52 +1548,52 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1548
1548
|
getTo: {}
|
|
1549
1549
|
},
|
|
1550
1550
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1551
|
-
setup(e, { emit:
|
|
1552
|
-
const
|
|
1553
|
-
|
|
1551
|
+
setup(e, { emit: l }) {
|
|
1552
|
+
const n = e, s = l, t = D(!1), a = L(() => ["button", "dimmer"].includes(n.type || "") && n.value ? "text-amber-500" : "text-gray-400"), r = (m) => s("edit", m), d = (m) => s("clone", m), u = () => t.value = !0, i = (m) => s("open", m), c = (m) => {
|
|
1553
|
+
t.value = !1, s("close", m);
|
|
1554
1554
|
};
|
|
1555
1555
|
return (m, v) => {
|
|
1556
|
-
const g =
|
|
1556
|
+
const g = Ge, h = Yn;
|
|
1557
1557
|
return f(), p("div", {
|
|
1558
1558
|
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-effect transition-all cursor-pointer",
|
|
1559
1559
|
onClick: u
|
|
1560
1560
|
}, [
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
class: B([
|
|
1561
|
+
o("div", ts, [
|
|
1562
|
+
o("div", {
|
|
1563
|
+
class: B([a.value, "size-8 animate-shake"])
|
|
1564
1564
|
}, [
|
|
1565
|
-
|
|
1565
|
+
_(m.$slots, "icon", R(W(n)))
|
|
1566
1566
|
], 2),
|
|
1567
|
-
|
|
1567
|
+
_(m.$slots, "header", R(W(n)))
|
|
1568
1568
|
]),
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
I(
|
|
1569
|
+
o("div", null, [
|
|
1570
|
+
_(m.$slots, "body", R(W(n)), () => [
|
|
1571
|
+
o("h6", ls, [
|
|
1572
|
+
_(m.$slots, "name", R(W(n)), () => [
|
|
1573
|
+
I(k(n.name), 1)
|
|
1574
1574
|
])
|
|
1575
1575
|
]),
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
I(
|
|
1576
|
+
o("div", ns, [
|
|
1577
|
+
_(m.$slots, "value", R(W(n)), () => [
|
|
1578
|
+
I(k(n.valueTo || n.value), 1)
|
|
1579
1579
|
])
|
|
1580
1580
|
])
|
|
1581
1581
|
])
|
|
1582
1582
|
]),
|
|
1583
|
-
|
|
1584
|
-
|
|
1583
|
+
n.icon ? (f(), p("div", ss, [
|
|
1584
|
+
_(m.$slots, "icon", R(W(n)))
|
|
1585
1585
|
])) : T("", !0),
|
|
1586
|
-
|
|
1586
|
+
t.value ? (f(), M(Be, {
|
|
1587
1587
|
key: 1,
|
|
1588
|
-
size:
|
|
1588
|
+
size: n.size || "sm",
|
|
1589
1589
|
title: e.name,
|
|
1590
1590
|
onClose: c,
|
|
1591
|
-
onOpen:
|
|
1591
|
+
onOpen: i
|
|
1592
1592
|
}, {
|
|
1593
1593
|
"header-btn": y(() => [
|
|
1594
1594
|
b(A, {
|
|
1595
1595
|
color: "transparent",
|
|
1596
|
-
onClick:
|
|
1596
|
+
onClick: r
|
|
1597
1597
|
}, {
|
|
1598
1598
|
default: y(() => [
|
|
1599
1599
|
b(g)
|
|
@@ -1611,17 +1611,17 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1611
1611
|
})
|
|
1612
1612
|
]),
|
|
1613
1613
|
default: y(() => [
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
I(
|
|
1614
|
+
o("div", os, [
|
|
1615
|
+
o("div", as, [
|
|
1616
|
+
o("h3", is, [
|
|
1617
|
+
_(m.$slots, "dialog-name", R(W(n)), () => [
|
|
1618
|
+
I(k(n.name), 1)
|
|
1619
1619
|
])
|
|
1620
1620
|
]),
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
I(
|
|
1621
|
+
_(m.$slots, "dialog", R(W(n))),
|
|
1622
|
+
o("p", rs, [
|
|
1623
|
+
_(m.$slots, "dialog-value", R(W(n)), () => [
|
|
1624
|
+
I(k(n.valueTo || n.value), 1)
|
|
1625
1625
|
])
|
|
1626
1626
|
])
|
|
1627
1627
|
])
|
|
@@ -1632,20 +1632,20 @@ const es = F({ name: "ri-file-copy2-line", render: Zl }), ts = { class: "text-ti
|
|
|
1632
1632
|
]);
|
|
1633
1633
|
};
|
|
1634
1634
|
}
|
|
1635
|
-
}),
|
|
1635
|
+
}), cs = {
|
|
1636
1636
|
viewBox: "0 0 24 24",
|
|
1637
1637
|
width: "1.2em",
|
|
1638
1638
|
height: "1.2em"
|
|
1639
1639
|
};
|
|
1640
|
-
function
|
|
1641
|
-
return f(), p("svg",
|
|
1642
|
-
|
|
1640
|
+
function ds(e, l) {
|
|
1641
|
+
return f(), p("svg", cs, [...l[0] || (l[0] = [
|
|
1642
|
+
o("path", {
|
|
1643
1643
|
fill: "currentColor",
|
|
1644
1644
|
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"
|
|
1645
1645
|
}, null, -1)
|
|
1646
1646
|
])]);
|
|
1647
1647
|
}
|
|
1648
|
-
const
|
|
1648
|
+
const us = F({ name: "ri-shut-down-line", render: ds }), fs = { class: "flex justify-end" }, ms = { class: "flex justify-center py-4" }, Oa = /* @__PURE__ */ V({
|
|
1649
1649
|
__name: "CardButton",
|
|
1650
1650
|
props: {
|
|
1651
1651
|
size: {},
|
|
@@ -1662,27 +1662,27 @@ const vs = F({ name: "ri-shut-down-line", render: ms }), ps = { class: "flex jus
|
|
|
1662
1662
|
getTo: {}
|
|
1663
1663
|
},
|
|
1664
1664
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1665
|
-
setup(e, { emit:
|
|
1666
|
-
const
|
|
1667
|
-
const { disabled: d } =
|
|
1665
|
+
setup(e, { emit: l }) {
|
|
1666
|
+
const n = e, s = l, t = ({ opts: r = {} }) => {
|
|
1667
|
+
const { disabled: d } = r;
|
|
1668
1668
|
return { disabled: d };
|
|
1669
|
-
},
|
|
1670
|
-
return (
|
|
1671
|
-
const u =
|
|
1672
|
-
return f(), M(re, P(
|
|
1673
|
-
onClick: d[0] || (d[0] = (
|
|
1674
|
-
onEdit: d[1] || (d[1] = (
|
|
1675
|
-
onClone: d[2] || (d[2] = (
|
|
1669
|
+
}, a = () => s("setState", !n.value);
|
|
1670
|
+
return (r, d) => {
|
|
1671
|
+
const u = us;
|
|
1672
|
+
return f(), M(re, P(n, {
|
|
1673
|
+
onClick: d[0] || (d[0] = (i) => s("click", i)),
|
|
1674
|
+
onEdit: d[1] || (d[1] = (i) => s("edit", i)),
|
|
1675
|
+
onClone: d[2] || (d[2] = (i) => s("clone", i))
|
|
1676
1676
|
}), {
|
|
1677
|
-
icon: y((
|
|
1678
|
-
|
|
1677
|
+
icon: y((i) => [
|
|
1678
|
+
_(r.$slots, "icon", R(W(i)))
|
|
1679
1679
|
]),
|
|
1680
|
-
header: y((
|
|
1681
|
-
|
|
1682
|
-
b(A, P(
|
|
1680
|
+
header: y((i) => [
|
|
1681
|
+
o("div", fs, [
|
|
1682
|
+
b(A, P(t(i), {
|
|
1683
1683
|
type: "icon",
|
|
1684
|
-
class:
|
|
1685
|
-
onClick: N(
|
|
1684
|
+
class: n.value ? "text-amber-500" : "text-gray-500",
|
|
1685
|
+
onClick: N(a, ["stop"])
|
|
1686
1686
|
}), {
|
|
1687
1687
|
default: y(() => [
|
|
1688
1688
|
b(u, { class: "size-8" })
|
|
@@ -1691,12 +1691,12 @@ const vs = F({ name: "ri-shut-down-line", render: ms }), ps = { class: "flex jus
|
|
|
1691
1691
|
}, 16, ["class"])
|
|
1692
1692
|
])
|
|
1693
1693
|
]),
|
|
1694
|
-
dialog: y((
|
|
1695
|
-
|
|
1696
|
-
b(A, P(
|
|
1694
|
+
dialog: y((i) => [
|
|
1695
|
+
o("div", ms, [
|
|
1696
|
+
b(A, P(t(i), {
|
|
1697
1697
|
type: "icon",
|
|
1698
|
-
class: ["size-18",
|
|
1699
|
-
onClick: N(
|
|
1698
|
+
class: ["size-18", n.value ? "text-amber-500" : "text-gray-500"],
|
|
1699
|
+
onClick: N(a, ["stop"])
|
|
1700
1700
|
}), {
|
|
1701
1701
|
default: y(() => [
|
|
1702
1702
|
b(u, { class: "size-16" })
|
|
@@ -1709,20 +1709,20 @@ const vs = F({ name: "ri-shut-down-line", render: ms }), ps = { class: "flex jus
|
|
|
1709
1709
|
}, 16);
|
|
1710
1710
|
};
|
|
1711
1711
|
}
|
|
1712
|
-
}),
|
|
1712
|
+
}), vs = {
|
|
1713
1713
|
viewBox: "0 0 24 24",
|
|
1714
1714
|
width: "1.2em",
|
|
1715
1715
|
height: "1.2em"
|
|
1716
1716
|
};
|
|
1717
|
-
function
|
|
1718
|
-
return f(), p("svg",
|
|
1719
|
-
|
|
1717
|
+
function ps(e, l) {
|
|
1718
|
+
return f(), p("svg", vs, [...l[0] || (l[0] = [
|
|
1719
|
+
o("path", {
|
|
1720
1720
|
fill: "currentColor",
|
|
1721
1721
|
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"
|
|
1722
1722
|
}, null, -1)
|
|
1723
1723
|
])]);
|
|
1724
1724
|
}
|
|
1725
|
-
const
|
|
1725
|
+
const hs = F({ name: "ri-time-line", render: ps }), gs = { class: "flex justify-center relative mx-2 my-6" }, ja = /* @__PURE__ */ V({
|
|
1726
1726
|
__name: "CardDate",
|
|
1727
1727
|
props: {
|
|
1728
1728
|
size: {},
|
|
@@ -1739,31 +1739,31 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1739
1739
|
getTo: {}
|
|
1740
1740
|
},
|
|
1741
1741
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1742
|
-
setup(e, { emit:
|
|
1743
|
-
const
|
|
1742
|
+
setup(e, { emit: l }) {
|
|
1743
|
+
const n = e, s = l, t = Ue("time"), a = (i) => new Date(+i * 1e3).toISOString().slice(0, 16), r = (i) => {
|
|
1744
1744
|
var m;
|
|
1745
|
-
const c = (m =
|
|
1745
|
+
const c = (m = i == null ? void 0 : i.target) == null ? void 0 : m.valueAsNumber;
|
|
1746
1746
|
c && s("setState", c / 1e3);
|
|
1747
|
-
}, d = ({ name:
|
|
1747
|
+
}, d = ({ name: i, value: c, opts: m = {} }) => {
|
|
1748
1748
|
const { disabled: v } = m;
|
|
1749
|
-
return { label:
|
|
1749
|
+
return { label: i, modelValue: a(c), disabled: v };
|
|
1750
1750
|
}, u = () => {
|
|
1751
1751
|
var c, m;
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1752
|
+
const i = (m = (c = t.value) == null ? void 0 : c.$el) == null ? void 0 : m.querySelector("input");
|
|
1753
|
+
i != null && i.showPicker && i.showPicker();
|
|
1754
1754
|
};
|
|
1755
|
-
return (
|
|
1756
|
-
const m =
|
|
1757
|
-
return f(), M(re, P(
|
|
1755
|
+
return (i, c) => {
|
|
1756
|
+
const m = hs;
|
|
1757
|
+
return f(), M(re, P(n, {
|
|
1758
1758
|
onClick: c[0] || (c[0] = (v) => s("click", v)),
|
|
1759
1759
|
onEdit: c[1] || (c[1] = (v) => s("edit", v)),
|
|
1760
1760
|
onClone: c[2] || (c[2] = (v) => s("clone", v))
|
|
1761
1761
|
}), {
|
|
1762
1762
|
icon: y((v) => [
|
|
1763
|
-
|
|
1763
|
+
_(i.$slots, "icon", R(W(v)))
|
|
1764
1764
|
]),
|
|
1765
1765
|
header: y((v) => [
|
|
1766
|
-
|
|
1766
|
+
o("div", null, [
|
|
1767
1767
|
b(A, {
|
|
1768
1768
|
type: "icon",
|
|
1769
1769
|
class: "text-gray-500",
|
|
@@ -1776,20 +1776,20 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1776
1776
|
}),
|
|
1777
1777
|
b(J, P({
|
|
1778
1778
|
ref_key: "time",
|
|
1779
|
-
ref:
|
|
1779
|
+
ref: t
|
|
1780
1780
|
}, d(v), {
|
|
1781
1781
|
type: "datetime-local",
|
|
1782
1782
|
class: "size-0",
|
|
1783
1783
|
hidden: "",
|
|
1784
|
-
onChange:
|
|
1784
|
+
onChange: r
|
|
1785
1785
|
}), null, 16)
|
|
1786
1786
|
])
|
|
1787
1787
|
]),
|
|
1788
1788
|
dialog: y((v) => [
|
|
1789
|
-
|
|
1789
|
+
o("div", gs, [
|
|
1790
1790
|
b(J, P(d(v), {
|
|
1791
1791
|
type: "datetime-local",
|
|
1792
|
-
onChange:
|
|
1792
|
+
onChange: r
|
|
1793
1793
|
}), null, 16)
|
|
1794
1794
|
])
|
|
1795
1795
|
]),
|
|
@@ -1797,15 +1797,15 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1797
1797
|
}, 16);
|
|
1798
1798
|
};
|
|
1799
1799
|
}
|
|
1800
|
-
}),
|
|
1800
|
+
}), bs = { class: "flex justify-end" }, ys = { class: "flex justify-end" }, xs = {
|
|
1801
1801
|
class: /* @__PURE__ */ B("text-blue-600 dark:text-blue-400")
|
|
1802
|
-
},
|
|
1802
|
+
}, _s = {
|
|
1803
1803
|
width: "30",
|
|
1804
1804
|
height: "30",
|
|
1805
1805
|
viewBox: "-7.5 -7.5 75 75",
|
|
1806
1806
|
version: "1.1",
|
|
1807
1807
|
style: { transform: "rotate(-90deg)" }
|
|
1808
|
-
},
|
|
1808
|
+
}, ks = ["stroke-dashoffset"], $s = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, Ha = /* @__PURE__ */ V({
|
|
1809
1809
|
__name: "CardDimmer",
|
|
1810
1810
|
props: {
|
|
1811
1811
|
size: {},
|
|
@@ -1822,32 +1822,32 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1822
1822
|
getTo: {}
|
|
1823
1823
|
},
|
|
1824
1824
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1825
|
-
setup(e, { emit:
|
|
1826
|
-
const
|
|
1825
|
+
setup(e, { emit: l }) {
|
|
1826
|
+
const n = e, s = l, t = D(0), a = ({ opts: c, value: m }) => Math.round(100 * +m / ((c == null ? void 0 : c.max) || 255)), r = ({ opts: c, value: m }) => Math.round(187 - +m / ((c == null ? void 0 : c.max) || 255) * 187), d = ({ value: c, opts: m }) => {
|
|
1827
1827
|
const { min: v = 0, max: g = 255, step: h = 1, disabled: x } = m || {};
|
|
1828
1828
|
return { min: v, max: g, step: h, value: c, disabled: !!x, class: x ? "" : "cursor-pointer" };
|
|
1829
|
-
}, u = (c) => s("setState", +c.target.value || 0),
|
|
1830
|
-
+c != 0 ? (
|
|
1829
|
+
}, u = (c) => s("setState", +c.target.value || 0), i = ({ value: c }) => {
|
|
1830
|
+
+c != 0 ? (t.value = +c, s("setState", 0)) : s("setState", c ? 0 : t.value || 255);
|
|
1831
1831
|
};
|
|
1832
|
-
return (c, m) => (f(), M(re, P(
|
|
1832
|
+
return (c, m) => (f(), M(re, P(n, {
|
|
1833
1833
|
onClick: m[0] || (m[0] = (v) => s("click", v)),
|
|
1834
1834
|
onEdit: m[1] || (m[1] = (v) => s("edit", v)),
|
|
1835
1835
|
onClone: m[2] || (m[2] = (v) => s("clone", v))
|
|
1836
1836
|
}), {
|
|
1837
1837
|
icon: y((v) => [
|
|
1838
|
-
|
|
1838
|
+
_(c.$slots, "icon", R(W(v)))
|
|
1839
1839
|
]),
|
|
1840
1840
|
header: y((v) => [
|
|
1841
|
-
|
|
1842
|
-
|
|
1841
|
+
o("div", bs, [
|
|
1842
|
+
o("div", ys, [
|
|
1843
1843
|
b(A, P(d(v), {
|
|
1844
1844
|
type: "icon",
|
|
1845
|
-
onClick: N((g) =>
|
|
1845
|
+
onClick: N((g) => i(v), ["stop"])
|
|
1846
1846
|
}), {
|
|
1847
1847
|
default: y(() => [
|
|
1848
|
-
|
|
1849
|
-
(f(), p("svg",
|
|
1850
|
-
m[3] || (m[3] =
|
|
1848
|
+
o("div", xs, [
|
|
1849
|
+
(f(), p("svg", _s, [
|
|
1850
|
+
m[3] || (m[3] = o("circle", {
|
|
1851
1851
|
class: "stroke-gray-300 dark:stroke-gray-700",
|
|
1852
1852
|
r: "30",
|
|
1853
1853
|
cx: "30",
|
|
@@ -1855,17 +1855,17 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1855
1855
|
fill: "transparent",
|
|
1856
1856
|
"stroke-width": "10"
|
|
1857
1857
|
}, null, -1)),
|
|
1858
|
-
|
|
1858
|
+
o("circle", {
|
|
1859
1859
|
r: "30",
|
|
1860
1860
|
cx: "30",
|
|
1861
1861
|
cy: "30",
|
|
1862
1862
|
stroke: "currentColor",
|
|
1863
1863
|
"stroke-width": "8",
|
|
1864
1864
|
"stroke-linecap": "butt",
|
|
1865
|
-
"stroke-dashoffset":
|
|
1865
|
+
"stroke-dashoffset": r(v),
|
|
1866
1866
|
fill: "transparent",
|
|
1867
1867
|
"stroke-dasharray": "187"
|
|
1868
|
-
}, null, 8,
|
|
1868
|
+
}, null, 8, ks)
|
|
1869
1869
|
]))
|
|
1870
1870
|
])
|
|
1871
1871
|
]),
|
|
@@ -1875,16 +1875,16 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1875
1875
|
])
|
|
1876
1876
|
]),
|
|
1877
1877
|
dialog: y((v) => [
|
|
1878
|
-
|
|
1878
|
+
o("div", {
|
|
1879
1879
|
class: B(["flex justify-center relative mx-2 my-6", d(v).disabled ? "opacity-40" : ""])
|
|
1880
1880
|
}, [
|
|
1881
|
-
m[4] || (m[4] =
|
|
1882
|
-
|
|
1881
|
+
m[4] || (m[4] = o("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
|
|
1882
|
+
o("div", {
|
|
1883
1883
|
class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
|
|
1884
|
-
style: Z(`width: ${
|
|
1884
|
+
style: Z(`width: ${a(v)}%`)
|
|
1885
1885
|
}, null, 4),
|
|
1886
|
-
|
|
1887
|
-
|
|
1886
|
+
o("div", $s, k(a(v)) + " %", 1),
|
|
1887
|
+
o("input", P({ type: "range" }, d(v), {
|
|
1888
1888
|
class: "w-full h-10 z-10 appearance-none opacity-0",
|
|
1889
1889
|
onChange: u
|
|
1890
1890
|
}), null, 16)
|
|
@@ -1893,7 +1893,7 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1893
1893
|
_: 3
|
|
1894
1894
|
}, 16));
|
|
1895
1895
|
}
|
|
1896
|
-
}),
|
|
1896
|
+
}), Na = /* @__PURE__ */ V({
|
|
1897
1897
|
__name: "CardInfo",
|
|
1898
1898
|
props: {
|
|
1899
1899
|
size: {},
|
|
@@ -1910,23 +1910,23 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1910
1910
|
getTo: {}
|
|
1911
1911
|
},
|
|
1912
1912
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1913
|
-
setup(e, { emit:
|
|
1914
|
-
const
|
|
1915
|
-
return (
|
|
1916
|
-
onClick:
|
|
1917
|
-
onEdit:
|
|
1918
|
-
onClone:
|
|
1913
|
+
setup(e, { emit: l }) {
|
|
1914
|
+
const n = e, s = l;
|
|
1915
|
+
return (t, a) => (f(), M(re, P(n, {
|
|
1916
|
+
onClick: a[0] || (a[0] = (r) => s("click", r)),
|
|
1917
|
+
onEdit: a[1] || (a[1] = (r) => s("edit", r)),
|
|
1918
|
+
onClone: a[2] || (a[2] = (r) => s("clone", r))
|
|
1919
1919
|
}), {
|
|
1920
|
-
icon: y((
|
|
1921
|
-
|
|
1920
|
+
icon: y((r) => [
|
|
1921
|
+
_(t.$slots, "icon", R(W(r)))
|
|
1922
1922
|
]),
|
|
1923
1923
|
default: y(() => [
|
|
1924
|
-
|
|
1924
|
+
_(t.$slots, "dialog")
|
|
1925
1925
|
]),
|
|
1926
1926
|
_: 3
|
|
1927
1927
|
}, 16));
|
|
1928
1928
|
}
|
|
1929
|
-
}),
|
|
1929
|
+
}), ws = { class: "flex justify-center relative mx-2 my-6" }, Pa = /* @__PURE__ */ V({
|
|
1930
1930
|
__name: "CardInput",
|
|
1931
1931
|
props: {
|
|
1932
1932
|
size: {},
|
|
@@ -1943,37 +1943,37 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1943
1943
|
getTo: {}
|
|
1944
1944
|
},
|
|
1945
1945
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
1946
|
-
setup(e, { emit:
|
|
1947
|
-
const
|
|
1948
|
-
const { disabled:
|
|
1949
|
-
return { label: d, disabled:
|
|
1950
|
-
},
|
|
1946
|
+
setup(e, { emit: l }) {
|
|
1947
|
+
const n = e, s = l, t = D(n.value || ""), a = ({ name: d, opts: u = {} }) => {
|
|
1948
|
+
const { disabled: i } = u;
|
|
1949
|
+
return { label: d, disabled: i };
|
|
1950
|
+
}, r = (d) => s("setState", d.target.value);
|
|
1951
1951
|
return ue(
|
|
1952
|
-
() =>
|
|
1952
|
+
() => n.value,
|
|
1953
1953
|
(d) => {
|
|
1954
|
-
|
|
1954
|
+
t.value = d;
|
|
1955
1955
|
}
|
|
1956
1956
|
), (d, u) => {
|
|
1957
|
-
const
|
|
1958
|
-
return f(), M(re, P(
|
|
1957
|
+
const i = Qe;
|
|
1958
|
+
return f(), M(re, P(n, {
|
|
1959
1959
|
onClick: u[1] || (u[1] = (c) => s("click", c)),
|
|
1960
1960
|
onEdit: u[2] || (u[2] = (c) => s("edit", c)),
|
|
1961
1961
|
onClone: u[3] || (u[3] = (c) => s("clone", c))
|
|
1962
1962
|
}), {
|
|
1963
1963
|
icon: y((c) => [
|
|
1964
|
-
|
|
1964
|
+
_(d.$slots, "icon", R(W(c)))
|
|
1965
1965
|
]),
|
|
1966
1966
|
dialog: y((c) => [
|
|
1967
|
-
|
|
1967
|
+
o("div", ws, [
|
|
1968
1968
|
b(J, P({
|
|
1969
|
-
modelValue:
|
|
1970
|
-
"onUpdate:modelValue": u[0] || (u[0] = (m) =>
|
|
1971
|
-
},
|
|
1972
|
-
onEnter:
|
|
1973
|
-
onBlur:
|
|
1969
|
+
modelValue: t.value,
|
|
1970
|
+
"onUpdate:modelValue": u[0] || (u[0] = (m) => t.value = m)
|
|
1971
|
+
}, a(c), {
|
|
1972
|
+
onEnter: r,
|
|
1973
|
+
onBlur: r
|
|
1974
1974
|
}), {
|
|
1975
1975
|
icon: y(() => [
|
|
1976
|
-
b(
|
|
1976
|
+
b(i, { class: "size-8" })
|
|
1977
1977
|
]),
|
|
1978
1978
|
_: 1
|
|
1979
1979
|
}, 16, ["modelValue"])
|
|
@@ -1983,20 +1983,20 @@ const ys = F({ name: "ri-time-line", render: bs }), xs = { class: "flex justify-
|
|
|
1983
1983
|
}, 16);
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
|
-
}),
|
|
1986
|
+
}), Cs = {
|
|
1987
1987
|
viewBox: "0 0 24 24",
|
|
1988
1988
|
width: "1.2em",
|
|
1989
1989
|
height: "1.2em"
|
|
1990
1990
|
};
|
|
1991
|
-
function
|
|
1992
|
-
return f(), p("svg",
|
|
1993
|
-
|
|
1991
|
+
function zs(e, l) {
|
|
1992
|
+
return f(), p("svg", Cs, [...l[0] || (l[0] = [
|
|
1993
|
+
o("path", {
|
|
1994
1994
|
fill: "currentColor",
|
|
1995
1995
|
d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
|
|
1996
1996
|
}, null, -1)
|
|
1997
1997
|
])]);
|
|
1998
1998
|
}
|
|
1999
|
-
const
|
|
1999
|
+
const Ss = F({ name: "ri-list-check", render: zs }), Vs = { class: "flex justify-center py-4" }, Fa = /* @__PURE__ */ V({
|
|
2000
2000
|
__name: "CardList",
|
|
2001
2001
|
props: {
|
|
2002
2002
|
size: {},
|
|
@@ -2013,41 +2013,41 @@ const Ts = F({ name: "ri-list-check", render: Bs }), Es = { class: "flex justify
|
|
|
2013
2013
|
getTo: {}
|
|
2014
2014
|
},
|
|
2015
2015
|
emits: ["edit", "close", "click", "clone", "open", "setState"],
|
|
2016
|
-
setup(e, { emit:
|
|
2017
|
-
const
|
|
2018
|
-
var
|
|
2019
|
-
return Array.isArray(d == null ? void 0 : d.items) && ((
|
|
2020
|
-
},
|
|
2016
|
+
setup(e, { emit: l }) {
|
|
2017
|
+
const n = e, s = l, t = ({ value: d }) => s("setState", d), a = ({ opts: d, value: u }) => {
|
|
2018
|
+
var i;
|
|
2019
|
+
return Array.isArray(d == null ? void 0 : d.items) && ((i = d == null ? void 0 : d.items.find((c) => c.value == u)) == null ? void 0 : i.name) || u;
|
|
2020
|
+
}, r = ({ name: d, value: u, opts: i = {} }) => {
|
|
2021
2021
|
var g;
|
|
2022
|
-
const { items: c = [], disabled: m } =
|
|
2022
|
+
const { items: c = [], disabled: m } = i, v = ((g = c.find((h) => h.value == u)) == null ? void 0 : g.name) || u;
|
|
2023
2023
|
return { label: d, modelValue: v, items: c, disabled: !!m };
|
|
2024
2024
|
};
|
|
2025
2025
|
return (d, u) => {
|
|
2026
|
-
const
|
|
2027
|
-
return f(), M(re, P(
|
|
2026
|
+
const i = Ss;
|
|
2027
|
+
return f(), M(re, P(n, {
|
|
2028
2028
|
onClick: u[1] || (u[1] = (c) => s("click", c)),
|
|
2029
2029
|
onEdit: u[2] || (u[2] = (c) => s("edit", c)),
|
|
2030
2030
|
onClone: u[3] || (u[3] = (c) => s("clone", c))
|
|
2031
2031
|
}), {
|
|
2032
2032
|
icon: y((c) => [
|
|
2033
|
-
|
|
2033
|
+
_(d.$slots, "icon", R(W(c)))
|
|
2034
2034
|
]),
|
|
2035
2035
|
value: y((c) => [
|
|
2036
|
-
I(
|
|
2036
|
+
I(k(a(c)), 1)
|
|
2037
2037
|
]),
|
|
2038
2038
|
"dialog-value": y((c) => [
|
|
2039
|
-
I(
|
|
2039
|
+
I(k(a(c)), 1)
|
|
2040
2040
|
]),
|
|
2041
2041
|
header: y((c) => [
|
|
2042
|
-
|
|
2042
|
+
o("div", {
|
|
2043
2043
|
onClick: u[0] || (u[0] = N(() => {
|
|
2044
2044
|
}, ["prevent", "stop"]))
|
|
2045
2045
|
}, [
|
|
2046
|
-
b(te, P(
|
|
2046
|
+
b(te, P(r(c), {
|
|
2047
2047
|
"is-popup": "",
|
|
2048
2048
|
top: "0",
|
|
2049
2049
|
left: "-115px",
|
|
2050
|
-
onChange:
|
|
2050
|
+
onChange: t
|
|
2051
2051
|
}), {
|
|
2052
2052
|
activator: y(({ on: m }) => [
|
|
2053
2053
|
b(A, {
|
|
@@ -2056,7 +2056,7 @@ const Ts = F({ name: "ri-list-check", render: Bs }), Es = { class: "flex justify
|
|
|
2056
2056
|
onClick: N(m.click, ["stop"])
|
|
2057
2057
|
}, {
|
|
2058
2058
|
default: y(() => [
|
|
2059
|
-
b(
|
|
2059
|
+
b(i, { class: "size-6" })
|
|
2060
2060
|
]),
|
|
2061
2061
|
_: 1
|
|
2062
2062
|
}, 8, ["onClick"])
|
|
@@ -2066,11 +2066,11 @@ const Ts = F({ name: "ri-list-check", render: Bs }), Es = { class: "flex justify
|
|
|
2066
2066
|
])
|
|
2067
2067
|
]),
|
|
2068
2068
|
dialog: y((c) => [
|
|
2069
|
-
|
|
2070
|
-
b(te, P(
|
|
2069
|
+
o("div", Vs, [
|
|
2070
|
+
b(te, P(r(c), {
|
|
2071
2071
|
top: "-50%",
|
|
2072
2072
|
left: "50%",
|
|
2073
|
-
onChange:
|
|
2073
|
+
onChange: t
|
|
2074
2074
|
}), null, 16)
|
|
2075
2075
|
])
|
|
2076
2076
|
]),
|
|
@@ -2078,33 +2078,33 @@ const Ts = F({ name: "ri-list-check", render: Bs }), Es = { class: "flex justify
|
|
|
2078
2078
|
}, 16);
|
|
2079
2079
|
};
|
|
2080
2080
|
}
|
|
2081
|
-
}),
|
|
2081
|
+
}), Bs = {
|
|
2082
2082
|
viewBox: "0 0 24 24",
|
|
2083
2083
|
width: "1.2em",
|
|
2084
2084
|
height: "1.2em"
|
|
2085
2085
|
};
|
|
2086
|
-
function
|
|
2087
|
-
return f(), p("svg",
|
|
2088
|
-
|
|
2086
|
+
function Ts(e, l) {
|
|
2087
|
+
return f(), p("svg", Bs, [...l[0] || (l[0] = [
|
|
2088
|
+
o("path", {
|
|
2089
2089
|
fill: "currentColor",
|
|
2090
2090
|
d: "M15.5 5a3.5 3.5 0 1 0 0 7a3.5 3.5 0 0 0 0-7M10 8.5a5.5 5.5 0 1 1 10.032 3.117l2.675 2.676l-1.414 1.414l-2.675-2.675A5.5 5.5 0 0 1 10 8.5M3 4h5v2H3zm0 7h5v2H3zm18 7v2H3v-2z"
|
|
2091
2091
|
}, null, -1)
|
|
2092
2092
|
])]);
|
|
2093
2093
|
}
|
|
2094
|
-
const
|
|
2094
|
+
const Es = F({ name: "ri-menu-search-line", render: Ts }), Ls = {
|
|
2095
2095
|
viewBox: "0 0 24 24",
|
|
2096
2096
|
width: "1.2em",
|
|
2097
2097
|
height: "1.2em"
|
|
2098
2098
|
};
|
|
2099
|
-
function
|
|
2100
|
-
return f(), p("svg",
|
|
2101
|
-
|
|
2099
|
+
function Ms(e, l) {
|
|
2100
|
+
return f(), p("svg", Ls, [...l[0] || (l[0] = [
|
|
2101
|
+
o("path", {
|
|
2102
2102
|
fill: "currentColor",
|
|
2103
2103
|
d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
|
|
2104
2104
|
}, null, -1)
|
|
2105
2105
|
])]);
|
|
2106
2106
|
}
|
|
2107
|
-
const ye = F({ name: "ri-add-line", render:
|
|
2107
|
+
const ye = F({ name: "ri-add-line", render: Ms }), As = { class: "flex w-full relative" }, Ds = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Is = ["disabled"], Ze = /* @__PURE__ */ V({
|
|
2108
2108
|
__name: "VTextWrapper",
|
|
2109
2109
|
props: {
|
|
2110
2110
|
active: { type: Boolean },
|
|
@@ -2113,67 +2113,67 @@ const ye = F({ name: "ri-add-line", render: Is }), Os = { class: "flex w-full re
|
|
|
2113
2113
|
hideIcon: { type: Boolean, default: !1 }
|
|
2114
2114
|
},
|
|
2115
2115
|
emits: ["icon"],
|
|
2116
|
-
setup(e, { emit:
|
|
2117
|
-
const
|
|
2118
|
-
return (
|
|
2116
|
+
setup(e, { emit: l }) {
|
|
2117
|
+
const n = l, s = L(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = L(() => [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"]);
|
|
2118
|
+
return (a, r) => {
|
|
2119
2119
|
const d = ye;
|
|
2120
|
-
return f(), p("div",
|
|
2121
|
-
|
|
2122
|
-
class: B(["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",
|
|
2120
|
+
return f(), p("div", As, [
|
|
2121
|
+
o("div", {
|
|
2122
|
+
class: B(["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])
|
|
2123
2123
|
}, [
|
|
2124
|
-
|
|
2124
|
+
o("span", {
|
|
2125
2125
|
class: B(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", s.value])
|
|
2126
|
-
},
|
|
2127
|
-
|
|
2128
|
-
|
|
2126
|
+
}, k(e.label), 3),
|
|
2127
|
+
o("div", Ds, [
|
|
2128
|
+
_(a.$slots, "default")
|
|
2129
2129
|
]),
|
|
2130
2130
|
e.hideIcon ? T("", !0) : (f(), p("button", {
|
|
2131
2131
|
key: 0,
|
|
2132
2132
|
disabled: e.disabled,
|
|
2133
2133
|
class: B([{ "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]"]),
|
|
2134
|
-
onClick:
|
|
2134
|
+
onClick: r[0] || (r[0] = (u) => n("icon", u))
|
|
2135
2135
|
}, [
|
|
2136
|
-
|
|
2136
|
+
_(a.$slots, "icon", {}, () => [
|
|
2137
2137
|
b(d, { class: "size-4" })
|
|
2138
2138
|
])
|
|
2139
|
-
], 10,
|
|
2139
|
+
], 10, Is))
|
|
2140
2140
|
], 2)
|
|
2141
2141
|
]);
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
}),
|
|
2144
|
+
}), Os = {
|
|
2145
2145
|
viewBox: "0 0 24 24",
|
|
2146
2146
|
width: "1.2em",
|
|
2147
2147
|
height: "1.2em"
|
|
2148
2148
|
};
|
|
2149
|
-
function
|
|
2150
|
-
return f(), p("svg",
|
|
2151
|
-
|
|
2149
|
+
function js(e, l) {
|
|
2150
|
+
return f(), p("svg", Os, [...l[0] || (l[0] = [
|
|
2151
|
+
o("path", {
|
|
2152
2152
|
fill: "currentColor",
|
|
2153
2153
|
d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"
|
|
2154
2154
|
}, null, -1)
|
|
2155
2155
|
])]);
|
|
2156
2156
|
}
|
|
2157
|
-
const
|
|
2157
|
+
const Hs = F({ name: "ri-file-copy-line", render: js }), Ns = {
|
|
2158
2158
|
viewBox: "0 0 24 24",
|
|
2159
2159
|
width: "1.2em",
|
|
2160
2160
|
height: "1.2em"
|
|
2161
2161
|
};
|
|
2162
|
-
function
|
|
2163
|
-
return f(), p("svg",
|
|
2164
|
-
|
|
2162
|
+
function Ps(e, l) {
|
|
2163
|
+
return f(), p("svg", Ns, [...l[0] || (l[0] = [
|
|
2164
|
+
o("path", {
|
|
2165
2165
|
fill: "currentColor",
|
|
2166
2166
|
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"
|
|
2167
2167
|
}, null, -1)
|
|
2168
2168
|
])]);
|
|
2169
2169
|
}
|
|
2170
|
-
const
|
|
2170
|
+
const Fs = F({ name: "ri-folder6-line", render: Ps }), Us = ["onClick"], Rs = {
|
|
2171
2171
|
key: 0,
|
|
2172
2172
|
class: "me-1"
|
|
2173
|
-
},
|
|
2173
|
+
}, Ws = { class: "dark:text-gray-300" }, Ks = { class: "flex gap-3 items-center z-10" }, qs = {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
class: "flex ps-5"
|
|
2176
|
-
},
|
|
2176
|
+
}, Gs = { class: "font-medium dark:text-gray-300" }, et = /* @__PURE__ */ V({
|
|
2177
2177
|
__name: "VListObject",
|
|
2178
2178
|
props: {
|
|
2179
2179
|
items: { default: () => ({}) },
|
|
@@ -2181,46 +2181,46 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2181
2181
|
onlyValue: { type: Boolean, default: !1 }
|
|
2182
2182
|
},
|
|
2183
2183
|
emits: ["click"],
|
|
2184
|
-
setup(e, { emit:
|
|
2185
|
-
const
|
|
2186
|
-
|
|
2184
|
+
setup(e, { emit: l }) {
|
|
2185
|
+
const n = l, s = () => "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 = D({}), { text: a, copy: r, copied: d, isSupported: u } = xt(), i = (g) => {
|
|
2186
|
+
t.value[g] = !t.value[g];
|
|
2187
2187
|
}, c = (g) => typeof g == "object", m = (g) => `${e.path ? e.path + "." : ""}${g}`, v = (g, h) => {
|
|
2188
|
-
|
|
2188
|
+
n("click", { key: g, path: m(g), isObject: h });
|
|
2189
2189
|
};
|
|
2190
2190
|
return (g, h) => {
|
|
2191
|
-
const x =
|
|
2191
|
+
const x = Fs, $ = Hs, C = ye;
|
|
2192
2192
|
return f(), p("ul", null, [
|
|
2193
|
-
(f(!0), p(O, null,
|
|
2193
|
+
(f(!0), p(O, null, U(e.items, (z, j) => (f(), p("li", {
|
|
2194
2194
|
key: j,
|
|
2195
2195
|
class: B(c(z) ? "" : `flex items-center ${s()}`)
|
|
2196
2196
|
}, [
|
|
2197
|
-
|
|
2197
|
+
o("div", {
|
|
2198
2198
|
class: B(["flex items-center cursor-pointer ps-2 h-8", c(z) ? `${s()}` : ""]),
|
|
2199
|
-
onClick: (X) =>
|
|
2199
|
+
onClick: (X) => i(j)
|
|
2200
2200
|
}, [
|
|
2201
|
-
c(z) ? (f(), p("div",
|
|
2201
|
+
c(z) ? (f(), p("div", Rs, [
|
|
2202
2202
|
b(x, { class: "size-5" })
|
|
2203
2203
|
])) : T("", !0),
|
|
2204
|
-
|
|
2204
|
+
o("div", Ws, k(j), 1),
|
|
2205
2205
|
E(u) ? (f(), M(A, {
|
|
2206
2206
|
key: 1,
|
|
2207
2207
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
2208
2208
|
color: "transparent",
|
|
2209
2209
|
size: "sm",
|
|
2210
|
-
onClick: N((X) => E(
|
|
2210
|
+
onClick: N((X) => E(r)(m(j)), ["stop"])
|
|
2211
2211
|
}, {
|
|
2212
2212
|
default: y(() => [
|
|
2213
2213
|
b($, { class: "size-5" })
|
|
2214
2214
|
]),
|
|
2215
2215
|
_: 1
|
|
2216
2216
|
}, 8, ["onClick"])) : T("", !0),
|
|
2217
|
-
E(
|
|
2217
|
+
E(a) === m(j) ? (f(), p("span", {
|
|
2218
2218
|
key: 2,
|
|
2219
2219
|
class: B(["text-gray-500 transition-all duration-1000 text-sm", E(d) ? "opacity-100" : "opacity-0"])
|
|
2220
|
-
},
|
|
2220
|
+
}, k(g.$t("copied")), 3)) : T("", !0),
|
|
2221
2221
|
!e.onlyValue && c(z) ? (f(), p(O, { key: 3 }, [
|
|
2222
|
-
h[1] || (h[1] =
|
|
2223
|
-
|
|
2222
|
+
h[1] || (h[1] = o("div", { class: "flex-auto" }, null, -1)),
|
|
2223
|
+
o("div", Ks, [
|
|
2224
2224
|
b(A, {
|
|
2225
2225
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
2226
2226
|
color: "transparent",
|
|
@@ -2235,20 +2235,20 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2235
2235
|
}, 8, ["title", "onClick"])
|
|
2236
2236
|
])
|
|
2237
2237
|
], 64)) : T("", !0)
|
|
2238
|
-
], 10,
|
|
2239
|
-
c(z) ? (f(), p("div",
|
|
2240
|
-
Ce(b(
|
|
2238
|
+
], 10, Us),
|
|
2239
|
+
c(z) ? (f(), p("div", qs, [
|
|
2240
|
+
Ce(b(et, {
|
|
2241
2241
|
class: "flex-auto",
|
|
2242
2242
|
path: m(j),
|
|
2243
2243
|
items: z,
|
|
2244
2244
|
onlyValue: e.onlyValue,
|
|
2245
|
-
onClick: h[0] || (h[0] = (X) =>
|
|
2245
|
+
onClick: h[0] || (h[0] = (X) => n("click", X))
|
|
2246
2246
|
}, null, 8, ["path", "items", "onlyValue"]), [
|
|
2247
|
-
[
|
|
2247
|
+
[ht, t.value[j]]
|
|
2248
2248
|
])
|
|
2249
2249
|
])) : (f(), p(O, { key: 1 }, [
|
|
2250
|
-
h[2] || (h[2] =
|
|
2251
|
-
|
|
2250
|
+
h[2] || (h[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
|
|
2251
|
+
o("div", Gs, k(z), 1),
|
|
2252
2252
|
b(A, {
|
|
2253
2253
|
class: "opacity-20 hover:opacity-70 transition-all",
|
|
2254
2254
|
color: "gray",
|
|
@@ -2266,45 +2266,45 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2266
2266
|
]);
|
|
2267
2267
|
};
|
|
2268
2268
|
}
|
|
2269
|
-
}),
|
|
2269
|
+
}), Js = { class: "" }, Xs = { class: "flex border-b border-gray-200 dark:border-gray-700" }, Ys = ["onClick"], Qs = { class: "px-4 py-2" }, Zs = { class: "relative my-4" }, eo = { key: 0 }, to = /* @__PURE__ */ V({
|
|
2270
2270
|
__name: "VTabs",
|
|
2271
2271
|
props: {
|
|
2272
2272
|
value: {},
|
|
2273
2273
|
items: {}
|
|
2274
2274
|
},
|
|
2275
2275
|
emits: ["click"],
|
|
2276
|
-
setup(e, { expose:
|
|
2277
|
-
const s =
|
|
2278
|
-
|
|
2276
|
+
setup(e, { expose: l, emit: n }) {
|
|
2277
|
+
const s = n, t = D(e.value || 0), a = (d) => [t.value === d ? "" : "before:hidden"], r = (d) => {
|
|
2278
|
+
t.value = d, s("click", d);
|
|
2279
2279
|
};
|
|
2280
|
-
return
|
|
2281
|
-
setActiveTab:
|
|
2282
|
-
activeTab:
|
|
2283
|
-
}), (d, u) => (f(), p("div",
|
|
2284
|
-
|
|
2285
|
-
(f(!0), p(O, null,
|
|
2280
|
+
return l({
|
|
2281
|
+
setActiveTab: r,
|
|
2282
|
+
activeTab: t
|
|
2283
|
+
}), (d, u) => (f(), p("div", Js, [
|
|
2284
|
+
o("div", Xs, [
|
|
2285
|
+
(f(!0), p(O, null, U(e.items, (i, c) => (f(), p("div", {
|
|
2286
2286
|
key: c,
|
|
2287
2287
|
class: "relative flex-auto"
|
|
2288
2288
|
}, [
|
|
2289
|
-
|
|
2289
|
+
o("button", {
|
|
2290
2290
|
class: "w-full",
|
|
2291
|
-
onClick: (m) =>
|
|
2291
|
+
onClick: (m) => r(c)
|
|
2292
2292
|
}, [
|
|
2293
|
-
|
|
2294
|
-
class: B([
|
|
2293
|
+
o("div", {
|
|
2294
|
+
class: B([a(c), "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"])
|
|
2295
2295
|
}, [
|
|
2296
|
-
|
|
2297
|
-
tab:
|
|
2296
|
+
_(d.$slots, "header", {
|
|
2297
|
+
tab: i,
|
|
2298
2298
|
i: c
|
|
2299
2299
|
}, () => [
|
|
2300
|
-
|
|
2300
|
+
o("div", Qs, k(i.title), 1)
|
|
2301
2301
|
])
|
|
2302
2302
|
], 2)
|
|
2303
|
-
], 8,
|
|
2303
|
+
], 8, Ys)
|
|
2304
2304
|
]))), 128))
|
|
2305
2305
|
]),
|
|
2306
|
-
|
|
2307
|
-
(f(!0), p(O, null,
|
|
2306
|
+
o("div", Zs, [
|
|
2307
|
+
(f(!0), p(O, null, U(e.items, (i, c) => (f(), p("div", {
|
|
2308
2308
|
key: c,
|
|
2309
2309
|
class: "tab-panel"
|
|
2310
2310
|
}, [
|
|
@@ -2317,8 +2317,8 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2317
2317
|
"leave-to-class": "transform opacity-0 -translate-x-2"
|
|
2318
2318
|
}, {
|
|
2319
2319
|
default: y(() => [
|
|
2320
|
-
|
|
2321
|
-
|
|
2320
|
+
t.value === c ? (f(), p("div", eo, [
|
|
2321
|
+
_(d.$slots, `tab-${c}`)
|
|
2322
2322
|
])) : T("", !0)
|
|
2323
2323
|
]),
|
|
2324
2324
|
_: 2
|
|
@@ -2327,7 +2327,7 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2327
2327
|
])
|
|
2328
2328
|
]));
|
|
2329
2329
|
}
|
|
2330
|
-
}),
|
|
2330
|
+
}), lo = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, no = ["title", "onMouseenter", "onMouseleave"], so = { class: "flex flex-auto" }, oo = ["disabled"], _e = /* @__PURE__ */ V({
|
|
2331
2331
|
__name: "VFunc",
|
|
2332
2332
|
props: {
|
|
2333
2333
|
label: {},
|
|
@@ -2337,25 +2337,25 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2337
2337
|
hideIcon: { type: Boolean, default: !1 }
|
|
2338
2338
|
},
|
|
2339
2339
|
emits: ["change", "icon", "hover"],
|
|
2340
|
-
setup(e, { emit:
|
|
2341
|
-
const
|
|
2340
|
+
setup(e, { emit: l }) {
|
|
2341
|
+
const n = l, s = ["v", "a", "b", "c"], t = D(e.value || ""), a = (u) => {
|
|
2342
2342
|
try {
|
|
2343
2343
|
return new Function(u), !0;
|
|
2344
|
-
} catch (
|
|
2345
|
-
return console.warn(
|
|
2344
|
+
} catch (i) {
|
|
2345
|
+
return console.warn(i), !1;
|
|
2346
2346
|
}
|
|
2347
|
-
},
|
|
2348
|
-
const
|
|
2349
|
-
|
|
2350
|
-
}, 500), d = (u) =>
|
|
2347
|
+
}, r = ze((u) => {
|
|
2348
|
+
const i = u.target;
|
|
2349
|
+
a(i.value) && n("change", i.value);
|
|
2350
|
+
}, 500), d = (u) => n("icon", u);
|
|
2351
2351
|
return ue(
|
|
2352
2352
|
() => e.value,
|
|
2353
2353
|
() => {
|
|
2354
|
-
e.value && (
|
|
2354
|
+
e.value && (t.value = e.value);
|
|
2355
2355
|
}
|
|
2356
|
-
), (u,
|
|
2357
|
-
const c =
|
|
2358
|
-
return f(), M(
|
|
2356
|
+
), (u, i) => {
|
|
2357
|
+
const c = le, m = ye;
|
|
2358
|
+
return f(), M(Ze, {
|
|
2359
2359
|
active: !!e.value,
|
|
2360
2360
|
disabled: e.disabled,
|
|
2361
2361
|
label: e.label,
|
|
@@ -2373,29 +2373,29 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2373
2373
|
]),
|
|
2374
2374
|
default: y(() => [
|
|
2375
2375
|
e.value ? (f(), p(O, { key: 0 }, [
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
(f(!0), p(O, null,
|
|
2379
|
-
|
|
2376
|
+
o("div", lo, [
|
|
2377
|
+
i[3] || (i[3] = I(" ( ", -1)),
|
|
2378
|
+
(f(!0), p(O, null, U(e.args, (v, g) => (f(), p(O, { key: v }, [
|
|
2379
|
+
o("span", {
|
|
2380
2380
|
class: "text-blue-400/80",
|
|
2381
2381
|
title: v,
|
|
2382
|
-
onMouseenter: (h) =>
|
|
2383
|
-
onMouseleave: (h) =>
|
|
2384
|
-
},
|
|
2385
|
-
|
|
2382
|
+
onMouseenter: (h) => n("hover", "enter", g),
|
|
2383
|
+
onMouseleave: (h) => n("hover", "leave", g)
|
|
2384
|
+
}, k(s[g]), 41, no),
|
|
2385
|
+
i[2] || (i[2] = o("span", { class: "last:hidden" }, ",", -1))
|
|
2386
2386
|
], 64))), 128)),
|
|
2387
|
-
|
|
2387
|
+
i[4] || (i[4] = I(" ) => ", -1))
|
|
2388
2388
|
]),
|
|
2389
|
-
|
|
2390
|
-
Ce(
|
|
2391
|
-
"onUpdate:modelValue":
|
|
2389
|
+
o("div", so, [
|
|
2390
|
+
Ce(o("textarea", {
|
|
2391
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => t.value = v),
|
|
2392
2392
|
class: "outline-0 w-full resize-none field-sizing-content",
|
|
2393
2393
|
type: "text",
|
|
2394
2394
|
disabled: e.disabled,
|
|
2395
|
-
onInput:
|
|
2396
|
-
(...v) => E(
|
|
2397
|
-
}, null, 40,
|
|
2398
|
-
[
|
|
2395
|
+
onInput: i[1] || (i[1] = //@ts-ignore
|
|
2396
|
+
(...v) => E(r) && E(r)(...v))
|
|
2397
|
+
}, null, 40, oo), [
|
|
2398
|
+
[gt, t.value]
|
|
2399
2399
|
])
|
|
2400
2400
|
])
|
|
2401
2401
|
], 64)) : T("", !0)
|
|
@@ -2404,56 +2404,56 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2404
2404
|
}, 8, ["active", "disabled", "label", "hideIcon"]);
|
|
2405
2405
|
};
|
|
2406
2406
|
}
|
|
2407
|
-
}),
|
|
2407
|
+
}), ao = ["checked", "disabled"], io = { class: "text-sm ms-2 peer-disabled:opacity-40" }, ro = /* @__PURE__ */ V({
|
|
2408
2408
|
__name: "VCheckbox",
|
|
2409
2409
|
props: {
|
|
2410
2410
|
modelValue: { type: [Number, Boolean], default: !1 },
|
|
2411
2411
|
disabled: { type: Boolean, default: !1 }
|
|
2412
2412
|
},
|
|
2413
2413
|
emits: ["update:modelValue", "click"],
|
|
2414
|
-
setup(e, { emit:
|
|
2415
|
-
const
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2418
|
-
},
|
|
2419
|
-
return (
|
|
2414
|
+
setup(e, { emit: l }) {
|
|
2415
|
+
const n = l, s = (a) => {
|
|
2416
|
+
const r = a.target;
|
|
2417
|
+
n("update:modelValue", r.checked);
|
|
2418
|
+
}, t = (a) => n("click", a);
|
|
2419
|
+
return (a, r) => (f(), p("label", {
|
|
2420
2420
|
class: B(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
|
|
2421
|
-
onClick:
|
|
2421
|
+
onClick: t
|
|
2422
2422
|
}, [
|
|
2423
|
-
|
|
2423
|
+
o("input", {
|
|
2424
2424
|
type: "checkbox",
|
|
2425
2425
|
checked: !!e.modelValue,
|
|
2426
2426
|
disabled: e.disabled,
|
|
2427
2427
|
class: "peer size-5 transition-all appearance-none rounded border border-gray-300 dark:border-gray-700 disabled:opacity-40 not-disabled:cursor-pointer",
|
|
2428
2428
|
onChange: s
|
|
2429
|
-
}, null, 40,
|
|
2430
|
-
|
|
2431
|
-
|
|
2429
|
+
}, null, 40, ao),
|
|
2430
|
+
r[0] || (r[0] = o("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" }, [
|
|
2431
|
+
o("svg", {
|
|
2432
2432
|
class: "h-3.5 w-3.5",
|
|
2433
2433
|
viewBox: "0 0 20 20",
|
|
2434
2434
|
fill: "currentColor",
|
|
2435
2435
|
stroke: "currentColor",
|
|
2436
2436
|
"stroke-width": "1"
|
|
2437
2437
|
}, [
|
|
2438
|
-
|
|
2438
|
+
o("path", {
|
|
2439
2439
|
"fill-rule": "evenodd",
|
|
2440
2440
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
2441
2441
|
"clip-rule": "evenodd"
|
|
2442
2442
|
})
|
|
2443
2443
|
])
|
|
2444
2444
|
], -1)),
|
|
2445
|
-
|
|
2446
|
-
|
|
2445
|
+
o("span", io, [
|
|
2446
|
+
_(a.$slots, "default")
|
|
2447
2447
|
])
|
|
2448
2448
|
], 2));
|
|
2449
2449
|
}
|
|
2450
|
-
}),
|
|
2450
|
+
}), co = { class: "flex flex-col" }, uo = { class: "flex gap-4 mb-6" }, fo = {
|
|
2451
2451
|
key: 0,
|
|
2452
2452
|
class: "flex gap-4"
|
|
2453
|
-
},
|
|
2453
|
+
}, mo = {
|
|
2454
2454
|
key: 1,
|
|
2455
2455
|
class: ""
|
|
2456
|
-
},
|
|
2456
|
+
}, vo = { class: "flex flex-col md:flex-row gap-4" }, po = { class: "flex gap-4" }, ho = { class: "flex justify-between flex-auto" }, go = ["onClick"], bo = /* @__PURE__ */ V({
|
|
2457
2457
|
__name: "ItemOptions",
|
|
2458
2458
|
props: {
|
|
2459
2459
|
min: { default: 0 },
|
|
@@ -2465,26 +2465,26 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2465
2465
|
type: {}
|
|
2466
2466
|
},
|
|
2467
2467
|
emits: ["update"],
|
|
2468
|
-
setup(e, { emit:
|
|
2469
|
-
const
|
|
2468
|
+
setup(e, { emit: l }) {
|
|
2469
|
+
const n = l, s = L(() => e.items.map((h, x) => ({ ...h, id: ++x }))), t = D({ name: "", value: "" }), a = L(() => e.items.length + 1), r = L(() => {
|
|
2470
2470
|
var h;
|
|
2471
|
-
return !((h =
|
|
2472
|
-
}), d = (h) => e.type === h, u = (h, x) =>
|
|
2473
|
-
const h =
|
|
2474
|
-
|
|
2471
|
+
return !((h = t.value) != null && h.id);
|
|
2472
|
+
}), d = (h) => e.type === h, u = (h, x) => n("update", h, x), i = (h) => h.map(({ name: x, value: $ }) => ({ name: x, value: $ })), c = ({ id: h, name: x, value: $ }) => t.value = { id: h, name: x, value: $ }, m = () => {
|
|
2473
|
+
const h = a.value;
|
|
2474
|
+
t.value = { name: `New_${h}`, value: `${h}`, id: h }, u("items", i([...s.value, t.value]));
|
|
2475
2475
|
}, v = (h) => {
|
|
2476
|
-
|
|
2476
|
+
t.value.name === h.name && (t.value = { name: "", value: "" }), u("items", i(s.value.filter((x) => x.value !== h.value)));
|
|
2477
2477
|
}, g = ze(() => {
|
|
2478
|
-
const h =
|
|
2478
|
+
const h = t.value;
|
|
2479
2479
|
if (!h.name || !h.value) return;
|
|
2480
2480
|
const x = s.value.map(($) => $.id === h.id ? h : $);
|
|
2481
|
-
u("items",
|
|
2481
|
+
u("items", i(x));
|
|
2482
2482
|
}, 300);
|
|
2483
2483
|
return (h, x) => {
|
|
2484
|
-
const $ =
|
|
2485
|
-
return f(), p("div",
|
|
2486
|
-
|
|
2487
|
-
b(
|
|
2484
|
+
const $ = le, C = ye;
|
|
2485
|
+
return f(), p("div", co, [
|
|
2486
|
+
o("div", uo, [
|
|
2487
|
+
b(ro, {
|
|
2488
2488
|
modelValue: e.disabled,
|
|
2489
2489
|
"onUpdate:modelValue": x[0] || (x[0] = (z) => u("disabled", z ? 1 : 0))
|
|
2490
2490
|
}, {
|
|
@@ -2494,7 +2494,7 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2494
2494
|
_: 1
|
|
2495
2495
|
}, 8, ["modelValue"])
|
|
2496
2496
|
]),
|
|
2497
|
-
d("dimmer") ? (f(), p("div",
|
|
2497
|
+
d("dimmer") ? (f(), p("div", fo, [
|
|
2498
2498
|
b(J, {
|
|
2499
2499
|
modelValue: e.min,
|
|
2500
2500
|
label: "Min",
|
|
@@ -2511,30 +2511,30 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2511
2511
|
"onUpdate:modelValue": x[3] || (x[3] = (z) => u("step", +z))
|
|
2512
2512
|
}, null, 8, ["modelValue"])
|
|
2513
2513
|
])) : T("", !0),
|
|
2514
|
-
d("list") ? (f(), p("div",
|
|
2515
|
-
|
|
2514
|
+
d("list") ? (f(), p("div", mo, [
|
|
2515
|
+
o("div", vo, [
|
|
2516
2516
|
b(J, {
|
|
2517
|
-
modelValue:
|
|
2517
|
+
modelValue: t.value.name,
|
|
2518
2518
|
"onUpdate:modelValue": [
|
|
2519
|
-
x[4] || (x[4] = (z) =>
|
|
2519
|
+
x[4] || (x[4] = (z) => t.value.name = z),
|
|
2520
2520
|
E(g)
|
|
2521
2521
|
],
|
|
2522
|
-
disabled:
|
|
2522
|
+
disabled: r.value,
|
|
2523
2523
|
label: "Name"
|
|
2524
2524
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
|
|
2525
2525
|
b(J, {
|
|
2526
|
-
modelValue:
|
|
2526
|
+
modelValue: t.value.value,
|
|
2527
2527
|
"onUpdate:modelValue": [
|
|
2528
|
-
x[5] || (x[5] = (z) =>
|
|
2528
|
+
x[5] || (x[5] = (z) => t.value.value = z),
|
|
2529
2529
|
E(g)
|
|
2530
2530
|
],
|
|
2531
|
-
disabled:
|
|
2531
|
+
disabled: r.value,
|
|
2532
2532
|
label: "Value"
|
|
2533
2533
|
}, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
|
|
2534
2534
|
]),
|
|
2535
|
-
|
|
2535
|
+
o("div", po, [
|
|
2536
2536
|
b(te, {
|
|
2537
|
-
"model-value":
|
|
2537
|
+
"model-value": t.value.value,
|
|
2538
2538
|
label: "List",
|
|
2539
2539
|
items: s.value,
|
|
2540
2540
|
top: "unset",
|
|
@@ -2542,14 +2542,14 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2542
2542
|
onChange: c
|
|
2543
2543
|
}, {
|
|
2544
2544
|
item: y(({ item: z }) => [
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2545
|
+
o("div", ho, [
|
|
2546
|
+
o("span", null, k(z.name), 1),
|
|
2547
|
+
o("button", {
|
|
2548
2548
|
class: "cursor-pointer size-4",
|
|
2549
2549
|
onClick: N((j) => v(z), ["prevent", "stop"])
|
|
2550
2550
|
}, [
|
|
2551
2551
|
b($)
|
|
2552
|
-
], 8,
|
|
2552
|
+
], 8, go)
|
|
2553
2553
|
])
|
|
2554
2554
|
]),
|
|
2555
2555
|
_: 1
|
|
@@ -2569,7 +2569,7 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2569
2569
|
]);
|
|
2570
2570
|
};
|
|
2571
2571
|
}
|
|
2572
|
-
}),
|
|
2572
|
+
}), yo = { class: "flex flex-col" }, xo = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, _o = { class: "flex-auto order-1" }, ko = { class: "flex-auto gap-x-2 order-1" }, $o = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, wo = { class: "flex gap-2 items-center" }, Co = { class: "flex flex-col gap-4" }, zo = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, So = { class: "relative group" }, Vo = { class: "select-none" }, Bo = ["onClick"], To = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Eo = { class: "flex-[0_0_130px] size-[130px]" }, Lo = { class: "flex gap-4 justify-end" }, Mo = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, Ua = /* @__PURE__ */ V({
|
|
2573
2573
|
__name: "ItemEdit",
|
|
2574
2574
|
props: {
|
|
2575
2575
|
items: {},
|
|
@@ -2579,8 +2579,8 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2579
2579
|
listIcons: {}
|
|
2580
2580
|
},
|
|
2581
2581
|
emits: ["button"],
|
|
2582
|
-
setup(e, { emit:
|
|
2583
|
-
const
|
|
2582
|
+
setup(e, { emit: l }) {
|
|
2583
|
+
const n = l, s = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = D({
|
|
2584
2584
|
id: "",
|
|
2585
2585
|
name: "",
|
|
2586
2586
|
type: "button",
|
|
@@ -2590,65 +2590,65 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2590
2590
|
set: "",
|
|
2591
2591
|
get: "",
|
|
2592
2592
|
getTo: ""
|
|
2593
|
-
}),
|
|
2593
|
+
}), a = D(!1), r = L(() => {
|
|
2594
2594
|
var w;
|
|
2595
2595
|
return !((w = e.item) != null && w.id);
|
|
2596
2596
|
}), d = L(() => !!e.items.filter((w) => {
|
|
2597
2597
|
var S;
|
|
2598
2598
|
return w.id !== ((S = e.item) == null ? void 0 : S.id);
|
|
2599
|
-
}).find((w) => w.id === (
|
|
2599
|
+
}).find((w) => w.id === (t == null ? void 0 : t.value.id))), u = L(() => t.value.type === "info"), i = L(() => {
|
|
2600
2600
|
var w;
|
|
2601
|
-
return (w =
|
|
2602
|
-
}), c = L(() =>
|
|
2601
|
+
return (w = t.value.args) == null ? void 0 : w.length;
|
|
2602
|
+
}), c = L(() => t.value.args.length > 3), m = L(() => {
|
|
2603
2603
|
if (d.value) return !0;
|
|
2604
|
-
const { id: w, args: S } =
|
|
2604
|
+
const { id: w, args: S } = t.value;
|
|
2605
2605
|
return !w || !S.length;
|
|
2606
|
-
}), v = ({ value: w }) =>
|
|
2606
|
+
}), v = ({ value: w }) => t.value.icon = w, g = ({ value: w }) => {
|
|
2607
2607
|
const S = w;
|
|
2608
|
-
|
|
2608
|
+
t.value.type = S, delete t.value.opts, ["button", "list", "dimmer"].includes(S) && (w === "button" && (t.value.opts = {}), w === "list" && (t.value.opts = { items: [] }), w === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
|
|
2609
2609
|
}, h = (w) => {
|
|
2610
|
-
w === "get" && (
|
|
2611
|
-
}, x = (w) =>
|
|
2612
|
-
!
|
|
2610
|
+
w === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), w === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), w === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
|
|
2611
|
+
}, x = (w) => n("button", w, t.value), $ = (w) => t.value.args = t.value.args.filter((S) => S !== w), C = ({ path: w }) => {
|
|
2612
|
+
!t.value.args.length && !t.value.id && (t.value.id = w), t.value.args.push(w), a.value = !1;
|
|
2613
2613
|
}, z = D(-1), j = (w) => z.value === w, X = (w, S) => {
|
|
2614
2614
|
w === "enter" && (z.value = S), w === "leave" && (z.value = -1);
|
|
2615
2615
|
}, xe = (w, S) => {
|
|
2616
|
-
w === "set" && (
|
|
2617
|
-
},
|
|
2618
|
-
|
|
2619
|
-
},
|
|
2620
|
-
|
|
2616
|
+
w === "set" && (t.value.set = S), w === "get" && (t.value.get = S), w === "getTo" && (t.value.getTo = S), S || delete t.value[w];
|
|
2617
|
+
}, at = () => {
|
|
2618
|
+
a.value = !0;
|
|
2619
|
+
}, it = (w, S) => {
|
|
2620
|
+
t.value.opts || (t.value.opts = {}), t.value.opts[w] = S, w === "disabled" && !S && delete t.value.opts[w];
|
|
2621
2621
|
};
|
|
2622
2622
|
return fe(() => {
|
|
2623
2623
|
var w;
|
|
2624
|
-
(w = e.item) != null && w.id && (
|
|
2624
|
+
(w = e.item) != null && w.id && (t.value = zt(e.item));
|
|
2625
2625
|
}), (w, S) => {
|
|
2626
|
-
const
|
|
2627
|
-
return f(), p("div",
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
b(
|
|
2626
|
+
const rt = Es, ct = le;
|
|
2627
|
+
return f(), p("div", yo, [
|
|
2628
|
+
o("div", xo, [
|
|
2629
|
+
o("div", _o, [
|
|
2630
|
+
b(to, {
|
|
2631
2631
|
class: "flex-auto min-h-75",
|
|
2632
2632
|
value: 0,
|
|
2633
2633
|
items: s
|
|
2634
2634
|
}, {
|
|
2635
2635
|
"tab-0": y(() => [
|
|
2636
|
-
|
|
2636
|
+
o("div", ko, [
|
|
2637
2637
|
b(J, {
|
|
2638
|
-
modelValue:
|
|
2639
|
-
"onUpdate:modelValue": S[0] || (S[0] = (H) =>
|
|
2638
|
+
modelValue: t.value.id,
|
|
2639
|
+
"onUpdate:modelValue": S[0] || (S[0] = (H) => t.value.id = H),
|
|
2640
2640
|
label: "ID",
|
|
2641
2641
|
message: d.value ? w.$t("used") : ""
|
|
2642
|
-
},
|
|
2643
|
-
|
|
2642
|
+
}, bt({ _: 2 }, [
|
|
2643
|
+
i.value ? void 0 : {
|
|
2644
2644
|
name: "icon",
|
|
2645
2645
|
fn: y(() => [
|
|
2646
2646
|
b(A, {
|
|
2647
2647
|
color: "transparent",
|
|
2648
|
-
onClick:
|
|
2648
|
+
onClick: at
|
|
2649
2649
|
}, {
|
|
2650
2650
|
default: y(() => [
|
|
2651
|
-
b(
|
|
2651
|
+
b(rt)
|
|
2652
2652
|
]),
|
|
2653
2653
|
_: 1
|
|
2654
2654
|
})
|
|
@@ -2657,13 +2657,13 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2657
2657
|
}
|
|
2658
2658
|
]), 1032, ["modelValue", "message"]),
|
|
2659
2659
|
b(J, {
|
|
2660
|
-
modelValue:
|
|
2661
|
-
"onUpdate:modelValue": S[1] || (S[1] = (H) =>
|
|
2660
|
+
modelValue: t.value.name,
|
|
2661
|
+
"onUpdate:modelValue": S[1] || (S[1] = (H) => t.value.name = H),
|
|
2662
2662
|
label: "Name"
|
|
2663
2663
|
}, null, 8, ["modelValue"]),
|
|
2664
|
-
|
|
2664
|
+
o("div", $o, [
|
|
2665
2665
|
b(te, {
|
|
2666
|
-
"model-value":
|
|
2666
|
+
"model-value": t.value.icon,
|
|
2667
2667
|
bottom: "0",
|
|
2668
2668
|
top: "unset",
|
|
2669
2669
|
label: "Icon",
|
|
@@ -2672,17 +2672,17 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2672
2672
|
onChange: v
|
|
2673
2673
|
}, {
|
|
2674
2674
|
item: y(({ item: H }) => [
|
|
2675
|
-
|
|
2676
|
-
|
|
2675
|
+
o("div", wo, [
|
|
2676
|
+
_(w.$slots, "icon", {
|
|
2677
2677
|
icon: H.value
|
|
2678
2678
|
}),
|
|
2679
|
-
|
|
2679
|
+
o("div", null, k(H.name), 1)
|
|
2680
2680
|
])
|
|
2681
2681
|
]),
|
|
2682
2682
|
_: 3
|
|
2683
2683
|
}, 8, ["model-value", "items"]),
|
|
2684
2684
|
b(te, {
|
|
2685
|
-
"model-value":
|
|
2685
|
+
"model-value": t.value.type,
|
|
2686
2686
|
bottom: "0",
|
|
2687
2687
|
top: "unset",
|
|
2688
2688
|
label: "Type",
|
|
@@ -2693,61 +2693,61 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2693
2693
|
])
|
|
2694
2694
|
]),
|
|
2695
2695
|
"tab-1": y(() => [
|
|
2696
|
-
|
|
2697
|
-
b(
|
|
2698
|
-
active: !!
|
|
2696
|
+
o("div", Co, [
|
|
2697
|
+
b(Ze, {
|
|
2698
|
+
active: !!t.value.args.length,
|
|
2699
2699
|
disabled: c.value,
|
|
2700
2700
|
label: "Arguments",
|
|
2701
|
-
onIcon: S[2] || (S[2] = (H) =>
|
|
2701
|
+
onIcon: S[2] || (S[2] = (H) => a.value = !0)
|
|
2702
2702
|
}, {
|
|
2703
2703
|
default: y(() => [
|
|
2704
|
-
|
|
2705
|
-
(f(!0), p(O, null,
|
|
2704
|
+
o("div", zo, [
|
|
2705
|
+
(f(!0), p(O, null, U(t.value.args, (H, Le) => (f(), p("div", {
|
|
2706
2706
|
key: H,
|
|
2707
2707
|
class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
|
|
2708
2708
|
}, [
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2709
|
+
o("div", So, [
|
|
2710
|
+
o("span", Vo, k(H), 1),
|
|
2711
|
+
o("div", {
|
|
2712
2712
|
class: B(["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", j(Le) ? "visible opacity-100" : ""])
|
|
2713
2713
|
}, [
|
|
2714
|
-
|
|
2714
|
+
o("pre", null, k(E(dt)(H, e.object)), 1)
|
|
2715
2715
|
], 2)
|
|
2716
2716
|
]),
|
|
2717
|
-
Le ||
|
|
2717
|
+
Le || t.value.args.length < 2 ? (f(), p("button", {
|
|
2718
2718
|
key: 0,
|
|
2719
2719
|
class: "cursor-pointer ms-1",
|
|
2720
|
-
onClick: (
|
|
2720
|
+
onClick: (xa) => $(H)
|
|
2721
2721
|
}, [
|
|
2722
|
-
b(
|
|
2723
|
-
], 8,
|
|
2722
|
+
b(ct, { class: "size-5" })
|
|
2723
|
+
], 8, Bo)) : T("", !0)
|
|
2724
2724
|
]))), 128))
|
|
2725
2725
|
])
|
|
2726
2726
|
]),
|
|
2727
2727
|
_: 1
|
|
2728
2728
|
}, 8, ["active", "disabled"]),
|
|
2729
|
-
b(
|
|
2730
|
-
value:
|
|
2731
|
-
args:
|
|
2732
|
-
disabled: !
|
|
2729
|
+
b(_e, {
|
|
2730
|
+
value: t.value.set,
|
|
2731
|
+
args: t.value.args,
|
|
2732
|
+
disabled: !i.value || u.value,
|
|
2733
2733
|
label: "Set",
|
|
2734
2734
|
onIcon: S[3] || (S[3] = (H) => h("set")),
|
|
2735
2735
|
onHover: X,
|
|
2736
2736
|
onChange: S[4] || (S[4] = (H) => xe("set", H))
|
|
2737
2737
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2738
|
-
b(
|
|
2739
|
-
value:
|
|
2740
|
-
args:
|
|
2741
|
-
disabled: !
|
|
2738
|
+
b(_e, {
|
|
2739
|
+
value: t.value.get,
|
|
2740
|
+
args: t.value.args,
|
|
2741
|
+
disabled: !i.value,
|
|
2742
2742
|
label: "Get",
|
|
2743
2743
|
onIcon: S[5] || (S[5] = (H) => h("get")),
|
|
2744
2744
|
onHover: X,
|
|
2745
2745
|
onChange: S[6] || (S[6] = (H) => xe("get", H))
|
|
2746
2746
|
}, null, 8, ["value", "args", "disabled"]),
|
|
2747
|
-
b(
|
|
2748
|
-
value:
|
|
2749
|
-
args:
|
|
2750
|
-
disabled: !
|
|
2747
|
+
b(_e, {
|
|
2748
|
+
value: t.value.getTo,
|
|
2749
|
+
args: t.value.args,
|
|
2750
|
+
disabled: !i.value,
|
|
2751
2751
|
label: "GetTo",
|
|
2752
2752
|
onIcon: S[7] || (S[7] = (H) => h("getTo")),
|
|
2753
2753
|
onHover: X,
|
|
@@ -2756,30 +2756,30 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2756
2756
|
])
|
|
2757
2757
|
]),
|
|
2758
2758
|
"tab-2": y(() => [
|
|
2759
|
-
b(
|
|
2760
|
-
value:
|
|
2761
|
-
type:
|
|
2762
|
-
onUpdate:
|
|
2759
|
+
b(bo, P(t.value.opts, {
|
|
2760
|
+
value: t.value.value,
|
|
2761
|
+
type: t.value.type,
|
|
2762
|
+
onUpdate: it
|
|
2763
2763
|
}), null, 16, ["value", "type"])
|
|
2764
2764
|
]),
|
|
2765
2765
|
_: 3
|
|
2766
2766
|
})
|
|
2767
2767
|
]),
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2768
|
+
o("div", To, [
|
|
2769
|
+
o("div", Eo, [
|
|
2770
|
+
_(w.$slots, "default", { item: t.value })
|
|
2771
2771
|
])
|
|
2772
2772
|
])
|
|
2773
2773
|
]),
|
|
2774
|
-
|
|
2774
|
+
o("div", Lo, [
|
|
2775
2775
|
b(A, {
|
|
2776
2776
|
class: "px-4",
|
|
2777
2777
|
color: "blue",
|
|
2778
2778
|
disabled: m.value,
|
|
2779
|
-
onClick: S[9] || (S[9] = (H) => x(
|
|
2779
|
+
onClick: S[9] || (S[9] = (H) => x(r.value ? "add" : "save"))
|
|
2780
2780
|
}, {
|
|
2781
2781
|
default: y(() => [
|
|
2782
|
-
I(
|
|
2782
|
+
I(k(r.value ? w.$t("add") : w.$t("save")), 1)
|
|
2783
2783
|
]),
|
|
2784
2784
|
_: 1
|
|
2785
2785
|
}, 8, ["disabled"]),
|
|
@@ -2790,22 +2790,22 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2790
2790
|
onClick: S[10] || (S[10] = (H) => x("remove"))
|
|
2791
2791
|
}, {
|
|
2792
2792
|
default: y(() => [
|
|
2793
|
-
I(
|
|
2793
|
+
I(k(w.$t("remove")), 1)
|
|
2794
2794
|
]),
|
|
2795
2795
|
_: 1
|
|
2796
2796
|
})
|
|
2797
2797
|
]),
|
|
2798
|
-
|
|
2798
|
+
a.value ? (f(), M(Be, {
|
|
2799
2799
|
key: 0,
|
|
2800
2800
|
size: "md",
|
|
2801
2801
|
title: w.$t("select"),
|
|
2802
|
-
onClose: S[11] || (S[11] = (H) =>
|
|
2802
|
+
onClose: S[11] || (S[11] = (H) => a.value = !1)
|
|
2803
2803
|
}, {
|
|
2804
2804
|
default: y(() => [
|
|
2805
|
-
|
|
2806
|
-
b(
|
|
2805
|
+
o("div", Mo, [
|
|
2806
|
+
b(et, {
|
|
2807
2807
|
items: e.object,
|
|
2808
|
-
onlyValue: !
|
|
2808
|
+
onlyValue: !i.value,
|
|
2809
2809
|
onClick: C
|
|
2810
2810
|
}, null, 8, ["items", "onlyValue"])
|
|
2811
2811
|
])
|
|
@@ -2815,139 +2815,139 @@ const Rs = F({ name: "ri-folder6-line", render: Us }), Ws = ["onClick"], qs = {
|
|
|
2815
2815
|
]);
|
|
2816
2816
|
};
|
|
2817
2817
|
}
|
|
2818
|
-
}),
|
|
2819
|
-
function
|
|
2820
|
-
const
|
|
2821
|
-
return
|
|
2818
|
+
}), Ae = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, Ao = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Do = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Io = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, tt = (e) => lt(e);
|
|
2819
|
+
function De(e) {
|
|
2820
|
+
const l = Array.isArray(e) ? e : [e];
|
|
2821
|
+
return l.length === 0 ? tt : (n) => l.reduce((s, t, a) => t(s, { html: a > 0 }), n);
|
|
2822
2822
|
}
|
|
2823
|
-
class
|
|
2824
|
-
constructor(
|
|
2825
|
-
if (this.lines = null, !
|
|
2826
|
-
if (this.root =
|
|
2827
|
-
const s = { value: "", styles: {}, plugins: [], highlighter:
|
|
2828
|
-
this.options = { ...s, ...
|
|
2823
|
+
class Oo {
|
|
2824
|
+
constructor(l, n = {}) {
|
|
2825
|
+
if (this.lines = null, !l) throw new Error("selector is not defined");
|
|
2826
|
+
if (this.root = l instanceof Node ? l : document.querySelector(l), !this.root) throw new Error(`element with "${l}" selector is not exist`);
|
|
2827
|
+
const s = { value: "", styles: {}, plugins: [], highlighter: tt }, { highlighters: t, ...a } = n;
|
|
2828
|
+
this.options = { ...s, ...a, highlighter: t ? De(t) : s.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
|
|
2829
2829
|
}
|
|
2830
2830
|
init() {
|
|
2831
2831
|
this.textarea = document.createElement("textarea"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocomplete", "off"), this.pre = document.createElement("pre");
|
|
2832
|
-
const
|
|
2832
|
+
const l = Object.keys(Ae).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
|
|
2833
2833
|
this.initialRootStyles = {};
|
|
2834
|
-
const
|
|
2835
|
-
|
|
2836
|
-
this.initialRootStyles[s] =
|
|
2837
|
-
}), Object.assign(this.root.style,
|
|
2834
|
+
const n = this.root.style;
|
|
2835
|
+
l.forEach((s) => {
|
|
2836
|
+
this.initialRootStyles[s] = n[s] || "";
|
|
2837
|
+
}), Object.assign(this.root.style, Ae, this.options.styles), Object.assign(this.textarea.style, Ao), Object.assign(this.pre.style, Do), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
|
|
2838
2838
|
}
|
|
2839
2839
|
addTextareaEvents() {
|
|
2840
|
-
this.handleEvent = (
|
|
2841
|
-
if (
|
|
2842
|
-
const
|
|
2843
|
-
if (
|
|
2844
|
-
const s = function(
|
|
2845
|
-
const { value:
|
|
2846
|
-
return
|
|
2847
|
-
}(this.options.plugins,
|
|
2840
|
+
this.handleEvent = (l) => {
|
|
2841
|
+
if (l.type === "keydown" && this.textarea.readOnly) return;
|
|
2842
|
+
const n = l;
|
|
2843
|
+
if (n.isComposing || n.keyCode === 229) return;
|
|
2844
|
+
const s = function(t, a) {
|
|
2845
|
+
const { value: r, selectionStart: d, selectionEnd: u } = a.target;
|
|
2846
|
+
return t.reduce((i, c) => ({ ...i, ...c(i, a) }), { value: r, selectionStart: d, selectionEnd: u });
|
|
2847
|
+
}(this.options.plugins, l);
|
|
2848
2848
|
this.update(s);
|
|
2849
2849
|
}, this.textarea.addEventListener("input", this.handleEvent), this.textarea.addEventListener("keydown", this.handleEvent), this.textarea.addEventListener("compositionend", this.handleEvent);
|
|
2850
2850
|
}
|
|
2851
|
-
update(
|
|
2851
|
+
update(l) {
|
|
2852
2852
|
if (!this.textarea) return;
|
|
2853
|
-
let { value:
|
|
2854
|
-
|
|
2853
|
+
let { value: n, selectionStart: s, selectionEnd: t } = l;
|
|
2854
|
+
n != null && (n = String(n), s == null && (s = this.textarea.selectionStart), t == null && (t = this.textarea.selectionEnd), this.textarea.value !== n && (this.textarea.value = n)), s != null && (this.textarea.selectionStart = s), t != null && (this.textarea.selectionEnd = t), n !== this.value && n != null && (this.value = n, this.render(), this.updateCallback && this.updateCallback(n));
|
|
2855
2855
|
}
|
|
2856
|
-
updateOptions(
|
|
2856
|
+
updateOptions(l) {
|
|
2857
2857
|
if (!this.textarea) return;
|
|
2858
|
-
const { highlighters:
|
|
2859
|
-
if (this.options = { ...this.options, ...s, highlighter:
|
|
2860
|
-
const
|
|
2861
|
-
Object.keys(
|
|
2862
|
-
|
|
2863
|
-
}), Object.assign(this.root.style,
|
|
2858
|
+
const { highlighters: n, ...s } = l;
|
|
2859
|
+
if (this.options = { ...this.options, ...s, highlighter: n ? De(n) : this.options.highlighter }, l.styles) {
|
|
2860
|
+
const t = this.root.style;
|
|
2861
|
+
Object.keys(l.styles).forEach((a) => {
|
|
2862
|
+
a in this.initialRootStyles || (this.initialRootStyles[a] = t[a] || "");
|
|
2863
|
+
}), Object.assign(this.root.style, l.styles), ("paddingLeft" in l.styles || "padding" in l.styles) && (this.basePaddingLeft = this.root.style.paddingLeft || "");
|
|
2864
2864
|
}
|
|
2865
|
-
this.lines && !this.options.lineNumbers && (ve(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft),
|
|
2865
|
+
this.lines && !this.options.lineNumbers && (ve(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), l.value != null && this.update({ value: l.value }), this.render();
|
|
2866
2866
|
}
|
|
2867
2867
|
render() {
|
|
2868
|
-
const
|
|
2869
|
-
this.pre.innerHTML =
|
|
2868
|
+
const l = this.options.highlighter(this.value);
|
|
2869
|
+
this.pre.innerHTML = l + "<br/>", this.updateLines();
|
|
2870
2870
|
}
|
|
2871
2871
|
updateLines() {
|
|
2872
2872
|
if (!this.options.lineNumbers) return;
|
|
2873
|
-
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style,
|
|
2874
|
-
const
|
|
2875
|
-
`),
|
|
2876
|
-
this.root.style.paddingLeft = `${
|
|
2873
|
+
this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Io));
|
|
2874
|
+
const l = this.value.split(`
|
|
2875
|
+
`), n = l.length.toString().length;
|
|
2876
|
+
this.root.style.paddingLeft = `${n + 1}ch`, this.lines.innerHTML = l.map((s, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${n}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${lt(s)}</span>`}`).join(`
|
|
2877
2877
|
`);
|
|
2878
2878
|
}
|
|
2879
2879
|
destroy() {
|
|
2880
2880
|
this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), ve(this.textarea), ve(this.pre), ve(this.lines), Object.assign(this.root.style, this.initialRootStyles), Object.assign(this, { textarea: null, pre: null, lines: null, updateCallback: null, handleEvent: null, initialRootStyles: null, options: null, root: null }));
|
|
2881
2881
|
}
|
|
2882
|
-
onUpdate(
|
|
2883
|
-
this.updateCallback =
|
|
2882
|
+
onUpdate(l) {
|
|
2883
|
+
this.updateCallback = l;
|
|
2884
2884
|
}
|
|
2885
2885
|
}
|
|
2886
2886
|
function ve(e) {
|
|
2887
2887
|
e && e.parentNode && e.parentNode.removeChild(e);
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function lt(e) {
|
|
2890
2890
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
2891
2891
|
}
|
|
2892
|
-
const
|
|
2893
|
-
function ce(e,
|
|
2894
|
-
const
|
|
2895
|
-
if (!
|
|
2896
|
-
const
|
|
2897
|
-
var
|
|
2898
|
-
const d = !
|
|
2899
|
-
return s && (
|
|
2892
|
+
const Ie = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, jo = { add: "=" }, Ho = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
|
|
2893
|
+
function ce(e, l) {
|
|
2894
|
+
const n = e.split("+").reduce((u, i) => Ie[i] ? (u.modifiers[Ie[i]] = !0, u) : { ...u, key: jo[i] || i.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), s = Object.keys(n.modifiers).every((u) => n.modifiers[u] ? l[u] : !l[u]);
|
|
2895
|
+
if (!n.key) return s;
|
|
2896
|
+
const t = l.key != null && l.key.toLowerCase() === n.key, a = (r = n.key, /^[a-z]$/.test(r) ? `key${r}` : /^[0-9]$/.test(r) ? `digit${r}` : Ho[r] || null);
|
|
2897
|
+
var r;
|
|
2898
|
+
const d = !l.isComposing && a != null && l.code != null && l.code.toLowerCase() === a;
|
|
2899
|
+
return s && (t || d);
|
|
2900
2900
|
}
|
|
2901
|
-
function
|
|
2902
|
-
const
|
|
2903
|
-
let s = [],
|
|
2904
|
-
const
|
|
2905
|
-
s = s.slice(0,
|
|
2901
|
+
function No(e = {}) {
|
|
2902
|
+
const l = Math.max(1, e.limit == null ? 300 : e.limit), n = e.coalesceMs == null ? 300 : e.coalesceMs;
|
|
2903
|
+
let s = [], t = null, a = null;
|
|
2904
|
+
const r = (d) => {
|
|
2905
|
+
s = s.slice(0, t + 1), s.push(d), s.length > l && (s = s.slice(s.length - l)), t = s.length - 1;
|
|
2906
2906
|
};
|
|
2907
2907
|
return (d, u) => {
|
|
2908
|
-
const
|
|
2909
|
-
if ((
|
|
2910
|
-
if (
|
|
2911
|
-
if (c) return
|
|
2912
|
-
if (u.type === "keydown") return s[
|
|
2908
|
+
const i = u.type === "keydown" && ce("ctrl/cmd+z", u), c = u.type === "keydown" && (ce("ctrl/cmd+shift+z", u) || ce("ctrl+y", u));
|
|
2909
|
+
if ((i || c) && u.preventDefault(), t === null) return s = [d], void (t = 0);
|
|
2910
|
+
if (i) return a = null, s[t].value !== d.value ? r(d) : s[t] = d, t = Math.max(0, t - 1), s[t];
|
|
2911
|
+
if (c) return a = null, s[t].value !== d.value ? void r(d) : (t = Math.min(s.length - 1, t + 1), s[t]);
|
|
2912
|
+
if (u.type === "keydown") return s[t].value !== d.value ? (a = null, void r(d)) : void (s[t] = d);
|
|
2913
2913
|
if (u.type === "input") {
|
|
2914
|
-
const m = u.timeStamp, v = m != null &&
|
|
2915
|
-
if (
|
|
2916
|
-
|
|
2914
|
+
const m = u.timeStamp, v = m != null && a != null && m - a <= n;
|
|
2915
|
+
if (a = m ?? null, v) return void (s[t] = d);
|
|
2916
|
+
r(d);
|
|
2917
2917
|
}
|
|
2918
2918
|
};
|
|
2919
2919
|
}
|
|
2920
|
-
const
|
|
2921
|
-
const { value:
|
|
2922
|
-
if (!ce("enter",
|
|
2923
|
-
const
|
|
2924
|
-
`).pop(),
|
|
2925
|
-
if (!
|
|
2926
|
-
|
|
2920
|
+
const Po = () => (e, l) => {
|
|
2921
|
+
const { value: n, selectionStart: s, selectionEnd: t } = e;
|
|
2922
|
+
if (!ce("enter", l) || l.type !== "keydown") return;
|
|
2923
|
+
const a = n.substring(0, s).split(`
|
|
2924
|
+
`).pop(), r = /^\s+/.exec(a);
|
|
2925
|
+
if (!r) return;
|
|
2926
|
+
l.preventDefault();
|
|
2927
2927
|
const d = `
|
|
2928
|
-
` +
|
|
2929
|
-
return { value:
|
|
2930
|
-
},
|
|
2931
|
-
if (!(
|
|
2928
|
+
` + r[0];
|
|
2929
|
+
return { value: n.substring(0, s) + d + n.substring(t), selectionStart: s + d.length, selectionEnd: s + d.length };
|
|
2930
|
+
}, Fo = () => (e, l) => {
|
|
2931
|
+
if (!(l instanceof KeyboardEvent) || l.key !== "Enter")
|
|
2932
2932
|
return;
|
|
2933
|
-
const { value:
|
|
2934
|
-
if (s !==
|
|
2933
|
+
const { value: n, selectionStart: s, selectionEnd: t } = e;
|
|
2934
|
+
if (s !== t)
|
|
2935
2935
|
return;
|
|
2936
|
-
const
|
|
2937
|
-
`, s - 1) + 1,
|
|
2938
|
-
`, s), d =
|
|
2939
|
-
if (
|
|
2936
|
+
const a = n.lastIndexOf(`
|
|
2937
|
+
`, s - 1) + 1, r = n.indexOf(`
|
|
2938
|
+
`, s), d = r === -1 ? n.length : r;
|
|
2939
|
+
if (n.slice(s, d).trim().length > 0)
|
|
2940
2940
|
return;
|
|
2941
|
-
const c =
|
|
2941
|
+
const c = n.substring(a, d).trimEnd();
|
|
2942
2942
|
if (c.endsWith(";") || c.length === 0)
|
|
2943
2943
|
return;
|
|
2944
|
-
const m =
|
|
2944
|
+
const m = n.slice(0, d) + ";" + n.slice(d), v = s + 1;
|
|
2945
2945
|
return {
|
|
2946
2946
|
value: m,
|
|
2947
2947
|
selectionStart: v,
|
|
2948
2948
|
selectionEnd: v
|
|
2949
2949
|
};
|
|
2950
|
-
},
|
|
2950
|
+
}, Uo = [
|
|
2951
2951
|
{ label: "if", type: "keyword", insertText: `if:\${$v0<10};
|
|
2952
2952
|
|
|
2953
2953
|
else;
|
|
@@ -2976,65 +2976,65 @@ end;`, detail: "while" },
|
|
|
2976
2976
|
{ label: "$s${0}=", type: "variable", detail: "string" },
|
|
2977
2977
|
{ label: "$p${13}=", type: "variable", detail: "gpio" }
|
|
2978
2978
|
];
|
|
2979
|
-
let Te = [], q = null,
|
|
2980
|
-
const
|
|
2981
|
-
const { customSuggestions:
|
|
2979
|
+
let Te = [], q = null, K = 0, Y = [], ee = null, ne = null, Ee, nt, G = null, ae = null;
|
|
2980
|
+
const Ro = (e) => {
|
|
2981
|
+
const { customSuggestions: l = [], minPrefixLength: n = 1, maxSuggestions: s = 20, tabSize: t = 2, tooltip: a = { enabled: !0 }, i18n: r, renderMenu: d, renderTooltip: u } = e;
|
|
2982
2982
|
if (!d || !u)
|
|
2983
2983
|
throw new Error("renderMenu and renderTooltip are required");
|
|
2984
|
-
return Te = [...
|
|
2984
|
+
return Te = [...Uo, ...l].map((i) => r(i)), Ee = d, nt = u, (i, c) => {
|
|
2985
2985
|
if (!(c instanceof KeyboardEvent))
|
|
2986
2986
|
return;
|
|
2987
|
-
const { value: m, selectionStart: v } =
|
|
2988
|
-
if (
|
|
2989
|
-
setTimeout(() =>
|
|
2987
|
+
const { value: m, selectionStart: v } = i, g = c.target;
|
|
2988
|
+
if (ne = g, a.enabled !== !1 && !g.dataset.tooltipInitialized && (g.dataset.tooltipInitialized = "true", g.addEventListener("mouseup", () => {
|
|
2989
|
+
setTimeout(() => Oe(g), 100);
|
|
2990
2990
|
}), g.addEventListener("keyup", () => {
|
|
2991
|
-
setTimeout(() =>
|
|
2991
|
+
setTimeout(() => Oe(g), 100);
|
|
2992
2992
|
})), q) {
|
|
2993
2993
|
switch (c.key) {
|
|
2994
2994
|
case "ArrowDown":
|
|
2995
|
-
return c.preventDefault(),
|
|
2995
|
+
return c.preventDefault(), K < Y.length - 1 && (K++, se()), { ...i };
|
|
2996
2996
|
case "ArrowUp":
|
|
2997
|
-
return c.preventDefault(),
|
|
2997
|
+
return c.preventDefault(), K > 0 && (K--, se()), { ...i };
|
|
2998
2998
|
case "Enter":
|
|
2999
|
-
if (c.preventDefault(), Y[
|
|
3000
|
-
const h = $e(
|
|
2999
|
+
if (c.preventDefault(), Y[K]) {
|
|
3000
|
+
const h = $e(i, Y[K]);
|
|
3001
3001
|
return Q(), h;
|
|
3002
3002
|
}
|
|
3003
3003
|
return;
|
|
3004
3004
|
case "Tab":
|
|
3005
|
-
if (c.preventDefault(), Y[
|
|
3006
|
-
const h = $e(
|
|
3005
|
+
if (c.preventDefault(), Y[K]) {
|
|
3006
|
+
const h = $e(i, Y[K]);
|
|
3007
3007
|
return Q(), h;
|
|
3008
3008
|
}
|
|
3009
3009
|
return;
|
|
3010
3010
|
case "Escape":
|
|
3011
|
-
return c.preventDefault(), Q(), { ...
|
|
3011
|
+
return c.preventDefault(), Q(), { ...i };
|
|
3012
3012
|
case "Backspace":
|
|
3013
3013
|
setTimeout(() => {
|
|
3014
|
-
if (
|
|
3015
|
-
const h =
|
|
3016
|
-
if (C.length <
|
|
3014
|
+
if (ne) {
|
|
3015
|
+
const h = ne.value, x = ne.selectionStart, $ = he(h, x), C = h.slice($, x);
|
|
3016
|
+
if (C.length < n)
|
|
3017
3017
|
Q();
|
|
3018
3018
|
else {
|
|
3019
|
-
const z =
|
|
3020
|
-
z.length === 0 ? Q() : (Y = z,
|
|
3019
|
+
const z = ke(C).slice(0, s);
|
|
3020
|
+
z.length === 0 ? Q() : (Y = z, K = 0, se());
|
|
3021
3021
|
}
|
|
3022
3022
|
}
|
|
3023
3023
|
}, 0);
|
|
3024
3024
|
return;
|
|
3025
3025
|
}
|
|
3026
3026
|
if (["ArrowDown", "ArrowUp", "Enter", "Tab", "Escape", "Backspace"].includes(c.key))
|
|
3027
|
-
return { ...
|
|
3027
|
+
return { ...i };
|
|
3028
3028
|
}
|
|
3029
3029
|
if (ce("tab", c)) {
|
|
3030
3030
|
c.preventDefault();
|
|
3031
3031
|
const h = he(m, v), x = m.slice(h, v);
|
|
3032
3032
|
if (x.length > 0) {
|
|
3033
|
-
const j =
|
|
3033
|
+
const j = ke(x);
|
|
3034
3034
|
if (j.length > 0)
|
|
3035
|
-
return $e(
|
|
3035
|
+
return $e(i, j[0]);
|
|
3036
3036
|
}
|
|
3037
|
-
const $ = " ".repeat(
|
|
3037
|
+
const $ = " ".repeat(t), C = m.slice(0, v) + $ + m.slice(v), z = v + t;
|
|
3038
3038
|
return {
|
|
3039
3039
|
value: C,
|
|
3040
3040
|
selectionStart: z,
|
|
@@ -3045,117 +3045,117 @@ const qo = (e) => {
|
|
|
3045
3045
|
return ee && clearTimeout(ee), ee = setTimeout(() => {
|
|
3046
3046
|
ee = null;
|
|
3047
3047
|
const h = g.value, x = g.selectionStart, $ = he(h, x), C = h.slice($, x);
|
|
3048
|
-
if (C.length <
|
|
3048
|
+
if (C.length < n) {
|
|
3049
3049
|
Q();
|
|
3050
3050
|
return;
|
|
3051
3051
|
}
|
|
3052
|
-
let z =
|
|
3052
|
+
let z = ke(C);
|
|
3053
3053
|
if (z = z.slice(0, s), z.length === 0) {
|
|
3054
3054
|
Q();
|
|
3055
3055
|
return;
|
|
3056
3056
|
}
|
|
3057
|
-
Y = z,
|
|
3058
|
-
}, 0), { ...
|
|
3057
|
+
Y = z, K = 0, q ? se() : Wo(g, z);
|
|
3058
|
+
}, 0), { ...i };
|
|
3059
3059
|
};
|
|
3060
3060
|
};
|
|
3061
|
-
function
|
|
3062
|
-
const
|
|
3063
|
-
return Te.filter((
|
|
3064
|
-
const s =
|
|
3065
|
-
return s.startsWith(
|
|
3066
|
-
}).sort((
|
|
3067
|
-
const
|
|
3068
|
-
if (
|
|
3069
|
-
if (!
|
|
3070
|
-
const u =
|
|
3071
|
-
return u !==
|
|
3061
|
+
function ke(e) {
|
|
3062
|
+
const l = e.toLowerCase();
|
|
3063
|
+
return Te.filter((n) => {
|
|
3064
|
+
const s = n.label.toLowerCase();
|
|
3065
|
+
return s.startsWith(l) || s.includes(l) || s.split("_").map((t) => t[0]).join("").startsWith(l);
|
|
3066
|
+
}).sort((n, s) => {
|
|
3067
|
+
const t = n.label.toLowerCase(), a = s.label.toLowerCase(), r = t.startsWith(l), d = a.startsWith(l);
|
|
3068
|
+
if (r && !d) return -1;
|
|
3069
|
+
if (!r && d) return 1;
|
|
3070
|
+
const u = t.indexOf(l), i = a.indexOf(l);
|
|
3071
|
+
return u !== i ? u - i : t.length !== a.length ? t.length - a.length : t.localeCompare(a);
|
|
3072
3072
|
});
|
|
3073
3073
|
}
|
|
3074
|
-
function he(e,
|
|
3075
|
-
let
|
|
3076
|
-
for (;
|
|
3077
|
-
|
|
3078
|
-
return
|
|
3074
|
+
function he(e, l) {
|
|
3075
|
+
let n = l;
|
|
3076
|
+
for (; n > 0 && /[a-zA-Z0-9_$]/.test(e[n - 1]); )
|
|
3077
|
+
n--;
|
|
3078
|
+
return n;
|
|
3079
3079
|
}
|
|
3080
|
-
function
|
|
3081
|
-
Q(), Y =
|
|
3082
|
-
const
|
|
3083
|
-
q = Ee(
|
|
3084
|
-
|
|
3080
|
+
function Wo(e, l) {
|
|
3081
|
+
Q(), Y = l, K = 0;
|
|
3082
|
+
const n = st(e);
|
|
3083
|
+
q = Ee(l, K, (s) => {
|
|
3084
|
+
K = s, se();
|
|
3085
3085
|
}), Object.assign(q.style, {
|
|
3086
3086
|
position: "fixed",
|
|
3087
|
-
left: `${
|
|
3088
|
-
top: `${
|
|
3087
|
+
left: `${n.left}px`,
|
|
3088
|
+
top: `${n.top + 24}px`,
|
|
3089
3089
|
zIndex: "10000"
|
|
3090
3090
|
}), document.body.appendChild(q);
|
|
3091
3091
|
}
|
|
3092
3092
|
function se() {
|
|
3093
|
-
if (!q || !
|
|
3094
|
-
const e = Ee(Y,
|
|
3095
|
-
|
|
3096
|
-
}),
|
|
3093
|
+
if (!q || !ne) return;
|
|
3094
|
+
const e = Ee(Y, K, (n) => {
|
|
3095
|
+
K = n, se();
|
|
3096
|
+
}), l = q.getBoundingClientRect();
|
|
3097
3097
|
q.replaceWith(e), q = e, Object.assign(q.style, {
|
|
3098
3098
|
position: "fixed",
|
|
3099
|
-
left: `${
|
|
3100
|
-
top: `${
|
|
3099
|
+
left: `${l.left}px`,
|
|
3100
|
+
top: `${l.top}px`,
|
|
3101
3101
|
zIndex: "10000"
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
|
-
function $e(e,
|
|
3105
|
-
const { value:
|
|
3106
|
-
let d =
|
|
3104
|
+
function $e(e, l) {
|
|
3105
|
+
const { value: n, selectionStart: s } = e, t = he(n, s), a = l.insertText || l.label, r = /\$\{([^}]*)\}/g;
|
|
3106
|
+
let d = a;
|
|
3107
3107
|
const u = [];
|
|
3108
|
-
let
|
|
3109
|
-
for (; (
|
|
3110
|
-
const h =
|
|
3108
|
+
let i;
|
|
3109
|
+
for (; (i = r.exec(a)) !== null; ) {
|
|
3110
|
+
const h = i[1], x = i.index, $ = i[0].length;
|
|
3111
3111
|
u.push({ index: x, text: h, length: $ });
|
|
3112
3112
|
}
|
|
3113
|
-
d =
|
|
3113
|
+
d = a.replace(/\$\{([^}]*)\}/g, "$1");
|
|
3114
3114
|
const c = u[0];
|
|
3115
|
-
let m =
|
|
3115
|
+
let m = t + d.length, v = t + d.length;
|
|
3116
3116
|
if (c) {
|
|
3117
3117
|
let h = 0, x = 0, $ = !1;
|
|
3118
|
-
for (; x <
|
|
3118
|
+
for (; x < a.length && !$; ) {
|
|
3119
3119
|
const C = u.find((z) => z.index === x);
|
|
3120
|
-
C ? (h += C.text.length, x += C.length, C === c && (m =
|
|
3120
|
+
C ? (h += C.text.length, x += C.length, C === c && (m = t + h - C.text.length, v = t + h, $ = !0)) : (h++, x++);
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
3123
|
return {
|
|
3124
|
-
value:
|
|
3124
|
+
value: n.slice(0, t) + d + n.slice(s),
|
|
3125
3125
|
selectionStart: m,
|
|
3126
3126
|
selectionEnd: v
|
|
3127
3127
|
};
|
|
3128
3128
|
}
|
|
3129
3129
|
function Q() {
|
|
3130
|
-
ee && (clearTimeout(ee), ee = null), q && (q.remove(), q = null, Y = [],
|
|
3130
|
+
ee && (clearTimeout(ee), ee = null), q && (q.remove(), q = null, Y = [], K = 0, ne = null);
|
|
3131
3131
|
}
|
|
3132
|
-
function
|
|
3133
|
-
const
|
|
3134
|
-
`),
|
|
3132
|
+
function st(e) {
|
|
3133
|
+
const l = e.getBoundingClientRect(), { value: n, selectionStart: s } = e, a = n.substring(0, s).split(`
|
|
3134
|
+
`), r = a.length, d = a[a.length - 1] || "", u = parseInt(getComputedStyle(e).lineHeight) || 20;
|
|
3135
3135
|
return {
|
|
3136
|
-
left:
|
|
3137
|
-
top:
|
|
3136
|
+
left: l.left + 10 + d.length * 8,
|
|
3137
|
+
top: l.top + (r - 1) * u
|
|
3138
3138
|
};
|
|
3139
3139
|
}
|
|
3140
|
-
function
|
|
3140
|
+
function Oe(e) {
|
|
3141
3141
|
ae && clearTimeout(ae), ae = setTimeout(() => {
|
|
3142
|
-
const
|
|
3143
|
-
if (
|
|
3142
|
+
const l = e.selectionStart, n = e.selectionEnd;
|
|
3143
|
+
if (l === n) {
|
|
3144
3144
|
oe();
|
|
3145
3145
|
return;
|
|
3146
3146
|
}
|
|
3147
|
-
const s = e.value.substring(
|
|
3147
|
+
const s = e.value.substring(l, n).trim();
|
|
3148
3148
|
if (!s) {
|
|
3149
3149
|
oe();
|
|
3150
3150
|
return;
|
|
3151
3151
|
}
|
|
3152
|
-
const
|
|
3153
|
-
if (!
|
|
3152
|
+
const t = Te.find((d) => d.label === s);
|
|
3153
|
+
if (!t) {
|
|
3154
3154
|
oe();
|
|
3155
3155
|
return;
|
|
3156
3156
|
}
|
|
3157
|
-
const
|
|
3158
|
-
|
|
3157
|
+
const a = st(e), r = nt(t, a);
|
|
3158
|
+
r.style.opacity = "0", G && G.remove(), G = r, document.body.appendChild(G), requestAnimationFrame(() => {
|
|
3159
3159
|
G && (G.style.opacity = "1");
|
|
3160
3160
|
}), setTimeout(() => oe(), 3e3);
|
|
3161
3161
|
}, 300);
|
|
@@ -3166,180 +3166,131 @@ function oe() {
|
|
|
3166
3166
|
}, 150));
|
|
3167
3167
|
}
|
|
3168
3168
|
document.addEventListener("mousedown", (e) => {
|
|
3169
|
-
const
|
|
3170
|
-
q && !q.contains(
|
|
3169
|
+
const l = e.target;
|
|
3170
|
+
q && !q.contains(l) && Q(), G && !G.contains(l) && oe();
|
|
3171
3171
|
});
|
|
3172
3172
|
document.addEventListener("scroll", oe, !0);
|
|
3173
|
-
const we = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
3174
|
-
let
|
|
3175
|
-
for (const s of e.matchAll(
|
|
3176
|
-
const [
|
|
3173
|
+
const we = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), Ko = /(\/\/[^\n]*)|('[^'\n]*')|(\b\d+(?:\.\d+)?\b)|(\b(?:on|call|wait|while|log|if|else|end|set|get|len|ord|chr|read_temp|read_hum|read_motion)\b)|(\$[vifsp]\d+)|(\b(?:btn_\d+_\d+|btn_\d+)\b)|([;:(){}])/g, qo = (e) => {
|
|
3174
|
+
let l = "", n = 0;
|
|
3175
|
+
for (const s of e.matchAll(Ko)) {
|
|
3176
|
+
const [t, a, r, d, u, i, c, m] = s;
|
|
3177
3177
|
let v = "";
|
|
3178
|
-
|
|
3178
|
+
a ? v = "comment" : r ? v = "string" : d ? v = "number" : u ? v = "keyword" : i ? v = "variable" : c ? v = "event" : m && (v = "operator"), l += we(e.slice(n, s.index)), l += `<span class="tok--${v}">${we(t)}</span>`, n = s.index + t.length;
|
|
3179
3179
|
}
|
|
3180
|
-
return
|
|
3181
|
-
},
|
|
3180
|
+
return l += we(e.slice(n)), l;
|
|
3181
|
+
}, ot = {
|
|
3182
3182
|
keyword: "text-blue-600 dark:text-blue-400",
|
|
3183
3183
|
function: "text-yellow-600 dark:text-yellow-400",
|
|
3184
3184
|
variable: "text-cyan-600 dark:text-cyan-400",
|
|
3185
3185
|
event: "text-purple-600 dark:text-purple-400"
|
|
3186
|
-
},
|
|
3186
|
+
}, Go = (e, l, n) => {
|
|
3187
3187
|
const s = document.createElement("div");
|
|
3188
3188
|
return s.className = `
|
|
3189
3189
|
fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
|
|
3190
3190
|
overflow-y-auto p-1 rounded-lg shadow-lg border
|
|
3191
3191
|
border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800
|
|
3192
3192
|
text-sm font-mono scrollbar pointer-events-none
|
|
3193
|
-
`, e.forEach((
|
|
3194
|
-
const
|
|
3193
|
+
`, e.forEach((t, a) => {
|
|
3194
|
+
const r = a === l, d = document.createElement("div");
|
|
3195
3195
|
d.className = `
|
|
3196
3196
|
flex items-center justify-between gap-2 px-3 py-1.5 cursor-pointer
|
|
3197
3197
|
rounded transition-colors duration-100 border-l-2
|
|
3198
|
-
${
|
|
3198
|
+
${r ? "border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/30" : "border-transparent hover:bg-gray-100 dark:hover:bg-gray-700"}
|
|
3199
3199
|
`;
|
|
3200
|
-
const u =
|
|
3200
|
+
const u = ot[t.type] || "text-gray-700 dark:text-gray-300";
|
|
3201
3201
|
d.innerHTML = `
|
|
3202
3202
|
<div class="flex items-center gap-2 flex-1">
|
|
3203
|
-
<span class="${u} font-medium">${
|
|
3204
|
-
${
|
|
3203
|
+
<span class="${u} font-medium">${t.label}</span>
|
|
3204
|
+
${t.detail ? `<span class="text-xs text-gray-500 dark:text-gray-400 ml-2">${t.detail}</span>` : ""}
|
|
3205
3205
|
</div>
|
|
3206
|
-
${
|
|
3207
|
-
`, d.addEventListener("click", () =>
|
|
3206
|
+
${t.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${t.description}</span>` : ""}
|
|
3207
|
+
`, d.addEventListener("click", () => n(a)), s.appendChild(d);
|
|
3208
3208
|
}), s;
|
|
3209
|
-
},
|
|
3210
|
-
const
|
|
3211
|
-
|
|
3209
|
+
}, Jo = (e, l) => {
|
|
3210
|
+
const n = document.createElement("div");
|
|
3211
|
+
n.className = `
|
|
3212
3212
|
fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
|
|
3213
3213
|
min-w-[50px] min-h-[20px] rounded-lg shadow-lg border
|
|
3214
3214
|
pointer-events-none transition-opacity duration-150
|
|
3215
3215
|
bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700
|
|
3216
3216
|
text-gray-700 dark:text-gray-300 pointer-events-none
|
|
3217
|
-
`,
|
|
3218
|
-
left: ${
|
|
3217
|
+
`, n.style.cssText = `
|
|
3218
|
+
left: ${l.left + 40}px; top: ${l.top - 10}px;
|
|
3219
3219
|
transform: translateX(-50%) translateY(-100%); opacity: 0;
|
|
3220
3220
|
`;
|
|
3221
|
-
let
|
|
3222
|
-
e.detail && (
|
|
3223
|
-
const
|
|
3224
|
-
return
|
|
3221
|
+
let t = `<div class="font-medium ${ot[e.type] || "text-gray-700 dark:text-gray-300"}">${e.label}</div>`;
|
|
3222
|
+
e.detail && (t += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`), n.innerHTML = t;
|
|
3223
|
+
const a = document.createElement("div");
|
|
3224
|
+
return a.className = `
|
|
3225
3225
|
absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
|
|
3226
3226
|
bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
|
|
3227
|
-
`,
|
|
3228
|
-
},
|
|
3229
|
-
let t = "", l = !1, s = "";
|
|
3230
|
-
for (let n = 0; n < e.length; n++) {
|
|
3231
|
-
const o = e[n];
|
|
3232
|
-
if ((o === '"' || o === "'") && (n === 0 || e[n - 1] !== "\\")) {
|
|
3233
|
-
l ? (o === s && (l = !1), t += o) : (l = !0, s = o, t += o);
|
|
3234
|
-
continue;
|
|
3235
|
-
}
|
|
3236
|
-
if (l) {
|
|
3237
|
-
t += o;
|
|
3238
|
-
continue;
|
|
3239
|
-
}
|
|
3240
|
-
o === " " || o === " " || o === `
|
|
3241
|
-
` || o === "\r" || (t += o);
|
|
3242
|
-
}
|
|
3243
|
-
return t;
|
|
3244
|
-
}, He = (e) => {
|
|
3245
|
-
let t = e;
|
|
3246
|
-
return t = ea(t), t = ta(t), t;
|
|
3247
|
-
};
|
|
3248
|
-
function ea(e) {
|
|
3249
|
-
let t = "";
|
|
3250
|
-
for (let l = 0; l < e.length; l++)
|
|
3251
|
-
t += e[l], (e[l] === ";" || e[l].match(/(if|while):/)) && (t += `
|
|
3252
|
-
`);
|
|
3253
|
-
return t;
|
|
3254
|
-
}
|
|
3255
|
-
function ta(e) {
|
|
3256
|
-
let t = "";
|
|
3257
|
-
const l = e.split(`
|
|
3258
|
-
`);
|
|
3259
|
-
let s = 0;
|
|
3260
|
-
const n = " ";
|
|
3261
|
-
for (let o = 0; o < l.length; o++) {
|
|
3262
|
-
const a = l[o];
|
|
3263
|
-
a.match(/^(if|while|else|on).*;/) ? a.match(/^else;/) ? (s--, s < 0 && (s = 0), t += n.repeat(s) + a + `
|
|
3264
|
-
`, s++) : (t += n.repeat(s) + a + `
|
|
3265
|
-
`, s++) : (a === "end;" && (s--, s < 0 && (s = 0)), t += n.repeat(s) + a + `
|
|
3266
|
-
`);
|
|
3267
|
-
}
|
|
3268
|
-
return t;
|
|
3269
|
-
}
|
|
3270
|
-
const Xa = /* @__PURE__ */ V({
|
|
3227
|
+
`, n.appendChild(a), n;
|
|
3228
|
+
}, Ra = /* @__PURE__ */ V({
|
|
3271
3229
|
__name: "ScriptEditor",
|
|
3272
3230
|
props: {
|
|
3273
|
-
|
|
3231
|
+
modelValue: {},
|
|
3274
3232
|
suggestions: { default: () => [] }
|
|
3275
3233
|
},
|
|
3276
|
-
emits: ["update"],
|
|
3277
|
-
setup(e, { emit:
|
|
3278
|
-
const
|
|
3234
|
+
emits: ["update:modelValue", "update"],
|
|
3235
|
+
setup(e, { emit: l }) {
|
|
3236
|
+
const n = l;
|
|
3279
3237
|
let s;
|
|
3280
|
-
ue(
|
|
3281
|
-
() => e.
|
|
3282
|
-
(
|
|
3283
|
-
s.update({ value:
|
|
3238
|
+
return ue(
|
|
3239
|
+
() => e.modelValue,
|
|
3240
|
+
(t) => {
|
|
3241
|
+
s.update({ value: t });
|
|
3284
3242
|
}
|
|
3285
3243
|
), fe(() => {
|
|
3286
|
-
s = new
|
|
3287
|
-
value: e.
|
|
3244
|
+
s = new Oo("#editor", {
|
|
3245
|
+
value: e.modelValue,
|
|
3288
3246
|
lineNumbers: !0,
|
|
3289
|
-
highlighters: [
|
|
3247
|
+
highlighters: [qo],
|
|
3290
3248
|
plugins: [
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3249
|
+
No(),
|
|
3250
|
+
Po(),
|
|
3251
|
+
Ro({
|
|
3294
3252
|
customSuggestions: e.suggestions,
|
|
3295
3253
|
minPrefixLength: 1,
|
|
3296
3254
|
maxSuggestions: 20,
|
|
3297
|
-
i18n: (
|
|
3255
|
+
i18n: (t) => t,
|
|
3298
3256
|
tooltip: {
|
|
3299
3257
|
enabled: !0
|
|
3300
3258
|
},
|
|
3301
|
-
renderMenu:
|
|
3302
|
-
renderTooltip:
|
|
3259
|
+
renderMenu: Go,
|
|
3260
|
+
renderTooltip: Jo
|
|
3303
3261
|
}),
|
|
3304
|
-
|
|
3262
|
+
Fo()
|
|
3305
3263
|
],
|
|
3306
3264
|
styles: { fontSize: "14px" }
|
|
3265
|
+
}), s.onUpdate((t) => {
|
|
3266
|
+
n("update:modelValue", t);
|
|
3307
3267
|
});
|
|
3308
|
-
})
|
|
3309
|
-
const { ctrl_s: n, ctrl_f: o } = $t({
|
|
3310
|
-
passive: !1,
|
|
3311
|
-
onEventFired(a) {
|
|
3312
|
-
a.ctrlKey && a.key === "s" && a.type === "keydown" && a.preventDefault(), a.ctrlKey && a.key === "f" && a.type === "keydown" && a.preventDefault();
|
|
3313
|
-
}
|
|
3314
|
-
});
|
|
3315
|
-
return Ae(n, () => {
|
|
3316
|
-
l("update", Zo(s.value));
|
|
3317
|
-
}), Ae(o, () => s.update({ value: He(s.value) })), Ue(() => {
|
|
3268
|
+
}), Fe(() => {
|
|
3318
3269
|
s.destroy();
|
|
3319
|
-
}), (
|
|
3320
|
-
|
|
3270
|
+
}), (t, a) => (f(), p("div", null, [...a[0] || (a[0] = [
|
|
3271
|
+
o("div", {
|
|
3321
3272
|
class: "",
|
|
3322
3273
|
id: "editor"
|
|
3323
3274
|
}, null, -1)
|
|
3324
3275
|
])]));
|
|
3325
3276
|
}
|
|
3326
|
-
}),
|
|
3277
|
+
}), Xo = { class: "max-w-4xl mx-auto" }, Yo = {
|
|
3327
3278
|
key: 0,
|
|
3328
3279
|
class: "text-sm"
|
|
3329
|
-
},
|
|
3280
|
+
}, Qo = {
|
|
3330
3281
|
key: 0,
|
|
3331
3282
|
class: "text-gray-500"
|
|
3332
|
-
},
|
|
3283
|
+
}, Zo = {
|
|
3333
3284
|
key: 1,
|
|
3334
3285
|
class: "text-red-600"
|
|
3335
|
-
},
|
|
3286
|
+
}, ea = ["innerHTML"], ta = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", la = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", Wa = /* @__PURE__ */ V({
|
|
3336
3287
|
__name: "ScriptViewDocs",
|
|
3337
3288
|
props: {
|
|
3338
3289
|
lang: { default: "en" }
|
|
3339
3290
|
},
|
|
3340
3291
|
setup(e) {
|
|
3341
|
-
const
|
|
3342
|
-
let
|
|
3292
|
+
const l = D(""), n = D(""), s = D(null), t = D(!1), a = D(null);
|
|
3293
|
+
let r = null;
|
|
3343
3294
|
const d = () => new Promise((c, m) => {
|
|
3344
3295
|
if (window.marked) {
|
|
3345
3296
|
window.marked.setOptions({
|
|
@@ -3350,7 +3301,7 @@ const Xa = /* @__PURE__ */ V({
|
|
|
3350
3301
|
return;
|
|
3351
3302
|
}
|
|
3352
3303
|
const v = document.createElement("script");
|
|
3353
|
-
v.src =
|
|
3304
|
+
v.src = la, v.async = !0, v.onload = () => {
|
|
3354
3305
|
window.marked ? (window.marked.setOptions({
|
|
3355
3306
|
gfm: !0,
|
|
3356
3307
|
breaks: !0,
|
|
@@ -3374,46 +3325,46 @@ const Xa = /* @__PURE__ */ V({
|
|
|
3374
3325
|
}
|
|
3375
3326
|
}
|
|
3376
3327
|
return v;
|
|
3377
|
-
},
|
|
3378
|
-
if (!
|
|
3379
|
-
|
|
3328
|
+
}, i = async (c) => {
|
|
3329
|
+
if (!r) {
|
|
3330
|
+
a.value = "error";
|
|
3380
3331
|
return;
|
|
3381
3332
|
}
|
|
3382
|
-
|
|
3333
|
+
t.value = !0, a.value = null, n.value = "";
|
|
3383
3334
|
try {
|
|
3384
|
-
const m = `${
|
|
3335
|
+
const m = `${ta}${c}.md`, v = await fetch(m);
|
|
3385
3336
|
if (!v.ok)
|
|
3386
3337
|
throw new Error(`HTTP ${v.status}: ${v.statusText}`);
|
|
3387
3338
|
const g = await v.text();
|
|
3388
|
-
|
|
3339
|
+
l.value = g, s.value = u(g), n.value = r.parse(g);
|
|
3389
3340
|
} catch (m) {
|
|
3390
3341
|
const v = m instanceof Error ? m.message : "";
|
|
3391
|
-
|
|
3342
|
+
a.value = v, console.error("Error loading docs:", m);
|
|
3392
3343
|
} finally {
|
|
3393
|
-
|
|
3344
|
+
t.value = !1;
|
|
3394
3345
|
}
|
|
3395
3346
|
};
|
|
3396
3347
|
return fe(async () => {
|
|
3397
3348
|
try {
|
|
3398
|
-
|
|
3349
|
+
r = await d();
|
|
3399
3350
|
const c = e.lang ? "ru" : "en";
|
|
3400
|
-
await
|
|
3351
|
+
await i(c);
|
|
3401
3352
|
} catch (c) {
|
|
3402
3353
|
const m = c instanceof Error ? c.message : "";
|
|
3403
|
-
|
|
3354
|
+
a.value = m, console.error("Initialization error:", c);
|
|
3404
3355
|
}
|
|
3405
|
-
}), (c, m) => (f(), p("div",
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3356
|
+
}), (c, m) => (f(), p("div", Xo, [
|
|
3357
|
+
t.value || a.value ? (f(), p("div", Yo, [
|
|
3358
|
+
t.value ? (f(), p("span", Qo, "⏳")) : T("", !0),
|
|
3359
|
+
a.value ? (f(), p("span", Zo, "❌ " + k(a.value), 1)) : T("", !0)
|
|
3409
3360
|
])) : T("", !0),
|
|
3410
|
-
|
|
3361
|
+
o("div", {
|
|
3411
3362
|
class: "docs-content",
|
|
3412
|
-
innerHTML:
|
|
3413
|
-
}, null, 8,
|
|
3363
|
+
innerHTML: n.value
|
|
3364
|
+
}, null, 8, ea)
|
|
3414
3365
|
]));
|
|
3415
3366
|
}
|
|
3416
|
-
}),
|
|
3367
|
+
}), Ka = /* @__PURE__ */ V({
|
|
3417
3368
|
__name: "VAutocomplete",
|
|
3418
3369
|
props: {
|
|
3419
3370
|
modelValue: { default: "" },
|
|
@@ -3423,11 +3374,11 @@ const Xa = /* @__PURE__ */ V({
|
|
|
3423
3374
|
items: {}
|
|
3424
3375
|
},
|
|
3425
3376
|
emits: ["update:modelValue", "select"],
|
|
3426
|
-
setup(e, { emit:
|
|
3427
|
-
const
|
|
3428
|
-
|
|
3377
|
+
setup(e, { emit: l }) {
|
|
3378
|
+
const n = l, s = (a) => n("update:modelValue", a), t = (a, r) => {
|
|
3379
|
+
a.click(new Event("click")), n("select", r);
|
|
3429
3380
|
};
|
|
3430
|
-
return (
|
|
3381
|
+
return (a, r) => (f(), M(be, P(a.$attrs, {
|
|
3431
3382
|
top: "50px",
|
|
3432
3383
|
"hide-on-click": ""
|
|
3433
3384
|
}), {
|
|
@@ -3444,11 +3395,11 @@ const Xa = /* @__PURE__ */ V({
|
|
|
3444
3395
|
default: y(({ on: d }) => [
|
|
3445
3396
|
b(me, {
|
|
3446
3397
|
items: e.items,
|
|
3447
|
-
onClick: (u) =>
|
|
3398
|
+
onClick: (u) => t(d, u)
|
|
3448
3399
|
}, {
|
|
3449
3400
|
default: y(({ item: u }) => [
|
|
3450
|
-
|
|
3451
|
-
I(
|
|
3401
|
+
_(a.$slots, "default", { item: u }, () => [
|
|
3402
|
+
I(k(u.name), 1)
|
|
3452
3403
|
])
|
|
3453
3404
|
]),
|
|
3454
3405
|
_: 3
|
|
@@ -3457,97 +3408,97 @@ const Xa = /* @__PURE__ */ V({
|
|
|
3457
3408
|
_: 3
|
|
3458
3409
|
}, 16));
|
|
3459
3410
|
}
|
|
3460
|
-
}),
|
|
3411
|
+
}), na = {
|
|
3461
3412
|
viewBox: "0 0 24 24",
|
|
3462
3413
|
width: "1.2em",
|
|
3463
3414
|
height: "1.2em"
|
|
3464
3415
|
};
|
|
3465
|
-
function
|
|
3466
|
-
return f(), p("svg",
|
|
3467
|
-
|
|
3416
|
+
function sa(e, l) {
|
|
3417
|
+
return f(), p("svg", na, [...l[0] || (l[0] = [
|
|
3418
|
+
o("path", {
|
|
3468
3419
|
fill: "currentColor",
|
|
3469
3420
|
d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
|
|
3470
3421
|
}, null, -1)
|
|
3471
3422
|
])]);
|
|
3472
3423
|
}
|
|
3473
|
-
const
|
|
3424
|
+
const oa = F({ name: "ri-arrow-drop-down-line", render: sa }), aa = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, ia = { class: "p-4" }, qa = /* @__PURE__ */ V({
|
|
3474
3425
|
__name: "VExpansion",
|
|
3475
3426
|
props: {
|
|
3476
3427
|
label: { default: "" },
|
|
3477
3428
|
value: { type: Boolean, default: !1 }
|
|
3478
3429
|
},
|
|
3479
3430
|
setup(e) {
|
|
3480
|
-
const
|
|
3481
|
-
if (!
|
|
3482
|
-
const
|
|
3483
|
-
|
|
3484
|
-
},
|
|
3485
|
-
|
|
3431
|
+
const l = D(null), n = D(e.value), s = () => {
|
|
3432
|
+
if (!l.value) return;
|
|
3433
|
+
const a = l.value.querySelector(".v-expansion__content");
|
|
3434
|
+
a && (a.style.maxHeight = n.value ? `${a.scrollHeight}px` : "0");
|
|
3435
|
+
}, t = () => {
|
|
3436
|
+
n.value = !n.value, s();
|
|
3486
3437
|
};
|
|
3487
3438
|
return fe(() => {
|
|
3488
3439
|
s();
|
|
3489
|
-
}), (
|
|
3490
|
-
const d =
|
|
3440
|
+
}), (a, r) => {
|
|
3441
|
+
const d = oa;
|
|
3491
3442
|
return f(), p("div", {
|
|
3492
3443
|
ref_key: "root",
|
|
3493
|
-
ref:
|
|
3444
|
+
ref: l,
|
|
3494
3445
|
class: "border-b dark:border-gray-700 border-gray-200"
|
|
3495
3446
|
}, [
|
|
3496
|
-
|
|
3447
|
+
o("div", {
|
|
3497
3448
|
class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
|
|
3498
|
-
onClick:
|
|
3449
|
+
onClick: t
|
|
3499
3450
|
}, [
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
class: B(["transition text-gray-400", { "rotate-x-180":
|
|
3451
|
+
o("h4", null, k(e.label), 1),
|
|
3452
|
+
o("div", {
|
|
3453
|
+
class: B(["transition text-gray-400", { "rotate-x-180": n.value }])
|
|
3503
3454
|
}, [
|
|
3504
3455
|
b(d, { class: "size-6" })
|
|
3505
3456
|
], 2)
|
|
3506
3457
|
]),
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3458
|
+
o("div", aa, [
|
|
3459
|
+
o("div", ia, [
|
|
3460
|
+
_(a.$slots, "default")
|
|
3510
3461
|
])
|
|
3511
3462
|
])
|
|
3512
3463
|
], 512);
|
|
3513
3464
|
};
|
|
3514
3465
|
}
|
|
3515
|
-
}),
|
|
3466
|
+
}), ra = ["onDragstart", "onDragenter"], ca = {
|
|
3516
3467
|
key: 0,
|
|
3517
3468
|
class: "absolute inset-0 border border-dashed border-blue-600 rounded"
|
|
3518
|
-
},
|
|
3469
|
+
}, Ga = /* @__PURE__ */ V({
|
|
3519
3470
|
__name: "VDragDrop",
|
|
3520
3471
|
props: {
|
|
3521
3472
|
items: {},
|
|
3522
3473
|
itemKey: { default: "id" }
|
|
3523
3474
|
},
|
|
3524
3475
|
emits: ["update:items", "order-change"],
|
|
3525
|
-
setup(e, { emit:
|
|
3526
|
-
const
|
|
3476
|
+
setup(e, { emit: l }) {
|
|
3477
|
+
const n = l, s = D(null), t = D(0), a = D(-1), r = ({ id: m }) => ({
|
|
3527
3478
|
"opacity-30 scale-105 z-10": s.value === m,
|
|
3528
3479
|
"transition-transform duration-200": s.value !== m
|
|
3529
3480
|
}), d = (m, v, g) => {
|
|
3530
|
-
s.value = v,
|
|
3481
|
+
s.value = v, t.value = g, m.dataTransfer.effectAllowed = "move";
|
|
3531
3482
|
}, u = (m) => {
|
|
3532
|
-
s.value !== null && (
|
|
3533
|
-
},
|
|
3534
|
-
s.value = null,
|
|
3483
|
+
s.value !== null && (a.value = m);
|
|
3484
|
+
}, i = () => {
|
|
3485
|
+
s.value = null, a.value = -1;
|
|
3535
3486
|
}, c = (m) => {
|
|
3536
|
-
if (m.preventDefault(), s.value &&
|
|
3537
|
-
const v = e.items.findIndex((h) => h[e.itemKey] === s.value), g =
|
|
3487
|
+
if (m.preventDefault(), s.value && a.value !== -1) {
|
|
3488
|
+
const v = e.items.findIndex((h) => h[e.itemKey] === s.value), g = a.value;
|
|
3538
3489
|
if (v !== g && g !== -1) {
|
|
3539
3490
|
const h = [...e.items], [x] = h.splice(v, 1);
|
|
3540
|
-
h.splice(g, 0, x),
|
|
3491
|
+
h.splice(g, 0, x), n("update:items", h), n("order-change", { fromIndex: v, toIndex: g, movedItem: x, newOrder: h });
|
|
3541
3492
|
}
|
|
3542
3493
|
}
|
|
3543
|
-
|
|
3494
|
+
a.value = -1;
|
|
3544
3495
|
};
|
|
3545
3496
|
return (m, v) => (f(), p("div", {
|
|
3546
3497
|
onDragover: v[1] || (v[1] = N(() => {
|
|
3547
3498
|
}, ["prevent"])),
|
|
3548
3499
|
onDrop: c
|
|
3549
3500
|
}, [
|
|
3550
|
-
b(
|
|
3501
|
+
b(Pe, {
|
|
3551
3502
|
"enter-active-class": "transition-all duration-300 ease",
|
|
3552
3503
|
"enter-from-class": "opacity-0 translate-x-8",
|
|
3553
3504
|
"enter-to-class": "opacity-100 translate-x-0",
|
|
@@ -3557,80 +3508,80 @@ const ua = F({ name: "ri-arrow-drop-down-line", render: da }), fa = { class: "v-
|
|
|
3557
3508
|
"move-class": "transition-all duration-300 ease"
|
|
3558
3509
|
}, {
|
|
3559
3510
|
default: y(() => [
|
|
3560
|
-
(f(!0), p(O, null,
|
|
3511
|
+
(f(!0), p(O, null, U(e.items, (g, h) => (f(), p("div", {
|
|
3561
3512
|
key: `${g.id}_drug`,
|
|
3562
|
-
class: B(["relative group",
|
|
3513
|
+
class: B(["relative group", r(g)]),
|
|
3563
3514
|
draggable: "true",
|
|
3564
3515
|
onDragstart: (x) => d(x, g.id, h),
|
|
3565
3516
|
onDragenter: (x) => u(h),
|
|
3566
|
-
onDragend:
|
|
3517
|
+
onDragend: i,
|
|
3567
3518
|
onDragover: v[0] || (v[0] = N(() => {
|
|
3568
3519
|
}, ["prevent"]))
|
|
3569
3520
|
}, [
|
|
3570
|
-
|
|
3521
|
+
_(m.$slots, "default", {
|
|
3571
3522
|
item: g,
|
|
3572
3523
|
key: g.id,
|
|
3573
3524
|
index: h,
|
|
3574
3525
|
isDragging: s.value === g.id
|
|
3575
3526
|
}),
|
|
3576
|
-
|
|
3577
|
-
], 42,
|
|
3527
|
+
a.value === h && s.value !== g.id ? (f(), p("div", ca)) : T("", !0)
|
|
3528
|
+
], 42, ra))), 128))
|
|
3578
3529
|
]),
|
|
3579
3530
|
_: 3
|
|
3580
3531
|
})
|
|
3581
3532
|
], 32));
|
|
3582
3533
|
}
|
|
3583
|
-
}),
|
|
3534
|
+
}), da = { class: "min-w-full" }, ua = { class: "border-y border-gray-200 py-3 dark:border-gray-800" }, fa = { class: "bg-gray-200 dark:bg-gray-800" }, ma = { class: "flex items-center" }, va = { class: "divide-y divide-gray-100 dark:divide-gray-800" }, pa = ["onClick"], ha = { class: "flex items-center text-gray-700 dark:text-gray-400" }, ga = { key: 1 }, ba = {
|
|
3584
3535
|
class: "py-3 whitespace-nowrap",
|
|
3585
3536
|
colspan: "9"
|
|
3586
|
-
},
|
|
3537
|
+
}, ya = { class: "flex items-center justify-center text-theme-sm text-gray-700 dark:text-gray-400 px-2" }, Ja = /* @__PURE__ */ V({
|
|
3587
3538
|
__name: "VTable",
|
|
3588
3539
|
props: {
|
|
3589
3540
|
headers: { default: () => [] },
|
|
3590
3541
|
items: { default: () => [] }
|
|
3591
3542
|
},
|
|
3592
3543
|
emits: ["click"],
|
|
3593
|
-
setup(e, { emit:
|
|
3594
|
-
const
|
|
3595
|
-
return (
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
(f(!0), p(O, null,
|
|
3599
|
-
key:
|
|
3600
|
-
class: B(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4",
|
|
3544
|
+
setup(e, { emit: l }) {
|
|
3545
|
+
const n = l, s = (r, d) => n("click", r, d), t = (r) => (r == null ? void 0 : r.className) || "", a = (r, { key: d }) => r == null ? void 0 : r[d];
|
|
3546
|
+
return (r, d) => (f(), p("table", da, [
|
|
3547
|
+
o("thead", ua, [
|
|
3548
|
+
o("tr", fa, [
|
|
3549
|
+
(f(!0), p(O, null, U(e.headers, (u, i) => (f(), p("th", {
|
|
3550
|
+
key: i,
|
|
3551
|
+
class: B(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", t(u)])
|
|
3601
3552
|
}, [
|
|
3602
|
-
|
|
3553
|
+
_(r.$slots, "header", {
|
|
3603
3554
|
item: u,
|
|
3604
|
-
i
|
|
3555
|
+
i
|
|
3605
3556
|
}, () => [
|
|
3606
|
-
|
|
3557
|
+
o("div", ma, k(u.name), 1)
|
|
3607
3558
|
])
|
|
3608
3559
|
], 2))), 128))
|
|
3609
3560
|
])
|
|
3610
3561
|
]),
|
|
3611
|
-
|
|
3612
|
-
e.items.length ? (f(!0), p(O, { key: 0 },
|
|
3613
|
-
key:
|
|
3562
|
+
o("tbody", va, [
|
|
3563
|
+
e.items.length ? (f(!0), p(O, { key: 0 }, U(e.items, (u, i) => (f(), p("tr", {
|
|
3564
|
+
key: i,
|
|
3614
3565
|
class: "hover:bg-gray-50/50 dark:hover:bg-gray-800/50",
|
|
3615
3566
|
onClick: (c) => s(u, c)
|
|
3616
3567
|
}, [
|
|
3617
|
-
(f(!0), p(O, null,
|
|
3568
|
+
(f(!0), p(O, null, U(e.headers, (c, m) => (f(), p("td", {
|
|
3618
3569
|
key: m,
|
|
3619
3570
|
class: "py-2 px-4"
|
|
3620
3571
|
}, [
|
|
3621
|
-
|
|
3622
|
-
|
|
3572
|
+
o("div", ha, [
|
|
3573
|
+
_(r.$slots, c.key, {
|
|
3623
3574
|
item: u,
|
|
3624
|
-
i
|
|
3575
|
+
i
|
|
3625
3576
|
}, () => [
|
|
3626
|
-
I(
|
|
3577
|
+
I(k(a(u, c)), 1)
|
|
3627
3578
|
])
|
|
3628
3579
|
])
|
|
3629
3580
|
]))), 128))
|
|
3630
|
-
], 8,
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3581
|
+
], 8, pa))), 128)) : (f(), p("tr", ga, [
|
|
3582
|
+
o("td", ba, [
|
|
3583
|
+
o("div", ya, [
|
|
3584
|
+
_(r.$slots, "empty", {}, () => [
|
|
3634
3585
|
d[0] || (d[0] = I("The list is empty", -1))
|
|
3635
3586
|
])
|
|
3636
3587
|
])
|
|
@@ -3639,29 +3590,29 @@ const ua = F({ name: "ri-arrow-drop-down-line", render: da }), fa = { class: "v-
|
|
|
3639
3590
|
])
|
|
3640
3591
|
]));
|
|
3641
3592
|
}
|
|
3642
|
-
}),
|
|
3593
|
+
}), Xa = /* @__PURE__ */ V({
|
|
3643
3594
|
__name: "VTooltip",
|
|
3644
3595
|
props: {
|
|
3645
3596
|
timeout: {},
|
|
3646
3597
|
disabled: { type: Boolean }
|
|
3647
3598
|
},
|
|
3648
3599
|
setup(e) {
|
|
3649
|
-
const
|
|
3650
|
-
e.disabled || (
|
|
3600
|
+
const l = D(!1), n = () => {
|
|
3601
|
+
e.disabled || (l.value = !0);
|
|
3651
3602
|
}, s = () => {
|
|
3652
|
-
|
|
3653
|
-
},
|
|
3654
|
-
return
|
|
3603
|
+
l.value = !1;
|
|
3604
|
+
}, t = Ue("tooltip");
|
|
3605
|
+
return _t(t, () => s()), (a, r) => (f(), p("div", {
|
|
3655
3606
|
ref: "tooltip",
|
|
3656
3607
|
class: "relative v-tooltip",
|
|
3657
|
-
onMouseenter:
|
|
3608
|
+
onMouseenter: n,
|
|
3658
3609
|
onMouseleave: s
|
|
3659
3610
|
}, [
|
|
3660
|
-
|
|
3611
|
+
o("button", {
|
|
3661
3612
|
type: "button",
|
|
3662
|
-
onClick:
|
|
3613
|
+
onClick: n
|
|
3663
3614
|
}, [
|
|
3664
|
-
|
|
3615
|
+
_(a.$slots, "activator")
|
|
3665
3616
|
]),
|
|
3666
3617
|
b(ie, {
|
|
3667
3618
|
"enter-active-class": "duration-300 ease-out",
|
|
@@ -3672,83 +3623,83 @@ const ua = F({ name: "ri-arrow-drop-down-line", render: da }), fa = { class: "v-
|
|
|
3672
3623
|
"leave-to-class": "transform opacity-0 -translate-y-2"
|
|
3673
3624
|
}, {
|
|
3674
3625
|
default: y(() => [
|
|
3675
|
-
|
|
3626
|
+
_(a.$slots, "default", { show: l.value })
|
|
3676
3627
|
]),
|
|
3677
3628
|
_: 3
|
|
3678
3629
|
})
|
|
3679
3630
|
], 544));
|
|
3680
3631
|
}
|
|
3681
|
-
}),
|
|
3632
|
+
}), je = {
|
|
3682
3633
|
VButton: A,
|
|
3683
3634
|
VLoader: Ve,
|
|
3684
3635
|
VDropdown: be,
|
|
3685
3636
|
VList: me,
|
|
3686
3637
|
VTextField: J,
|
|
3687
3638
|
VSelect: te,
|
|
3688
|
-
VWifiIcon:
|
|
3689
|
-
CardMain:
|
|
3690
|
-
VIconLogoMini:
|
|
3639
|
+
VWifiIcon: Ye,
|
|
3640
|
+
CardMain: Gn,
|
|
3641
|
+
VIconLogoMini: qe,
|
|
3691
3642
|
VIconLogo: Se,
|
|
3692
3643
|
VDialog: Be
|
|
3693
|
-
},
|
|
3644
|
+
}, Ya = {
|
|
3694
3645
|
install: (e) => {
|
|
3695
|
-
Object.keys(
|
|
3696
|
-
e.component(
|
|
3697
|
-
}),
|
|
3646
|
+
Object.keys(je).forEach((l) => {
|
|
3647
|
+
e.component(l, je[l]);
|
|
3648
|
+
}), Vt.forEach(({ name: l, directive: n }) => e.directive(l, n));
|
|
3698
3649
|
}
|
|
3699
3650
|
};
|
|
3700
3651
|
export {
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3652
|
+
Ca as AppAside,
|
|
3653
|
+
za as AppHeader,
|
|
3654
|
+
Ba as AppNav,
|
|
3655
|
+
Sa as AppNotification,
|
|
3656
|
+
Va as AppOverlay,
|
|
3657
|
+
Ta as AppProgress,
|
|
3658
|
+
Ia as BlockBreadcrumb,
|
|
3659
|
+
Ea as BlockInfo,
|
|
3660
|
+
La as BlockScan,
|
|
3661
|
+
Ma as BlockService,
|
|
3662
|
+
Aa as BlockStatus,
|
|
3663
|
+
Da as BlockUpdate,
|
|
3713
3664
|
re as CardBase,
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3665
|
+
Oa as CardButton,
|
|
3666
|
+
ja as CardDate,
|
|
3667
|
+
Ha as CardDimmer,
|
|
3668
|
+
Na as CardInfo,
|
|
3669
|
+
Pa as CardInput,
|
|
3670
|
+
Fa as CardList,
|
|
3671
|
+
Gn as CardMain,
|
|
3672
|
+
yl as CardNotification,
|
|
3673
|
+
Ua as ItemEdit,
|
|
3674
|
+
Ra as ScriptEditor,
|
|
3675
|
+
Wa as ScriptViewDocs,
|
|
3676
|
+
Ka as VAutocomplete,
|
|
3726
3677
|
A as VButton,
|
|
3727
|
-
|
|
3678
|
+
ro as VCheckbox,
|
|
3728
3679
|
Be as VDialog,
|
|
3729
|
-
|
|
3680
|
+
Ga as VDragDrop,
|
|
3730
3681
|
be as VDropdown,
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3682
|
+
qa as VExpansion,
|
|
3683
|
+
On as VFile,
|
|
3684
|
+
_e as VFunc,
|
|
3734
3685
|
Se as VIconLogo,
|
|
3735
|
-
|
|
3686
|
+
qe as VIconLogoMini,
|
|
3736
3687
|
me as VList,
|
|
3737
|
-
|
|
3688
|
+
et as VListObject,
|
|
3738
3689
|
Ve as VLoader,
|
|
3739
|
-
|
|
3690
|
+
Xe as VPopup,
|
|
3740
3691
|
te as VSelect,
|
|
3741
|
-
|
|
3742
|
-
|
|
3692
|
+
Ja as VTable,
|
|
3693
|
+
to as VTabs,
|
|
3743
3694
|
J as VTextField,
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3695
|
+
Ze as VTextWrapper,
|
|
3696
|
+
Xa as VTooltip,
|
|
3697
|
+
Ye as VWifiIcon,
|
|
3698
|
+
ei as dashboardCards,
|
|
3699
|
+
Ya as default,
|
|
3700
|
+
dt as getDataValue,
|
|
3701
|
+
ti as getFunction,
|
|
3702
|
+
li as getParamsData,
|
|
3703
|
+
ni as getStateItem,
|
|
3704
|
+
si as setStateItem
|
|
3754
3705
|
};
|