vx-vue 1.0.6 → 1.1.0
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/README.md +23 -1
- package/dist/style.css +1 -1
- package/dist/vxvue.es.js +440 -437
- package/dist/vxvue.umd.js +1 -1
- package/package.json +7 -7
package/dist/vxvue.es.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
const
|
|
1
|
+
import { useSlots as Se, ref as w, computed as L, onBeforeUpdate as Ve, openBlock as u, createElementBlock as m, Fragment as O, renderList as E, createBlock as W, resolveDynamicComponent as ie, createElementVNode as d, useAttrs as Z, normalizeClass as $, unref as A, renderSlot as D, getCurrentScope as Me, onScopeDispose as De, watch as K, onUpdated as Ae, mergeProps as j, withKeys as ae, withModifiers as N, createCommentVNode as T, toDisplayString as B, createVNode as _, Transition as ce, withCtx as te, createTextVNode as X, nextTick as ve, toValue as he, withDirectives as be, vModelText as Be, onMounted as me, normalizeStyle as xe, resolveComponent as Le, createSlots as Pe, vShow as Te, toHandlers as oe } from "vue";
|
|
2
|
+
const xl = {
|
|
3
3
|
__name: "accordion",
|
|
4
4
|
props: { activeIndex: [Number, Array] },
|
|
5
5
|
emits: ["update:activeIndex"],
|
|
6
|
-
setup(e, { emit:
|
|
7
|
-
const t = e, s =
|
|
6
|
+
setup(e, { emit: c }) {
|
|
7
|
+
const t = e, s = c, a = Se(), l = w([]), v = (f) => l.value.push(f), n = L(() => (l.value = [], a.default().reduce((f, x) => ((x.type.__name || x.type.name) === "accordion-panel" && f.push(x), f), []))), o = (f) => {
|
|
8
8
|
if (Array.isArray(t.activeIndex)) {
|
|
9
9
|
let x = [].concat(t.activeIndex), h = x.findIndex((p) => p === f);
|
|
10
10
|
h === -1 ? s("update:activeIndex", [...x, f]) : (x.splice(h, 1), s("update:activeIndex", x));
|
|
11
11
|
} else
|
|
12
12
|
s("update:activeIndex", f === t.activeIndex ? -1 : f);
|
|
13
|
-
},
|
|
13
|
+
}, i = (f) => {
|
|
14
14
|
if (f = ++f % n.value.length, !l.value[f].disabled) {
|
|
15
15
|
o(f), l.value[f].focus();
|
|
16
16
|
return;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
i(f);
|
|
19
19
|
}, r = (f) => {
|
|
20
20
|
if (f = (f || n.value.length) - 1, !l.value[f].disabled) {
|
|
21
21
|
o(f), l.value[f].focus();
|
|
@@ -23,21 +23,21 @@ const yl = {
|
|
|
23
23
|
}
|
|
24
24
|
r(f);
|
|
25
25
|
};
|
|
26
|
-
return Ve(() => l.value = []), (f, x) => (u(!0), m(
|
|
27
|
-
var
|
|
26
|
+
return Ve(() => l.value = []), (f, x) => (u(!0), m(O, null, E(n.value, (h, p) => {
|
|
27
|
+
var C;
|
|
28
28
|
return u(), W(ie(h), {
|
|
29
29
|
key: p,
|
|
30
|
-
show: Array.isArray(e.activeIndex) ? (
|
|
31
|
-
onSelect: (
|
|
32
|
-
onKeydown: (
|
|
33
|
-
onKeyup: (
|
|
30
|
+
show: Array.isArray(e.activeIndex) ? (C = e.activeIndex) == null ? void 0 : C.includes(p) : e.activeIndex === p,
|
|
31
|
+
onSelect: (I) => o(p),
|
|
32
|
+
onKeydown: (I) => i(p),
|
|
33
|
+
onKeyup: (I) => r(p),
|
|
34
34
|
ref_for: !0,
|
|
35
35
|
ref: v
|
|
36
36
|
}, null, 40, ["show", "onSelect", "onKeydown", "onKeyup"]);
|
|
37
37
|
}), 128));
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
function
|
|
40
|
+
function Ie(e, c) {
|
|
41
41
|
return u(), m("svg", {
|
|
42
42
|
xmlns: "http://www.w3.org/2000/svg",
|
|
43
43
|
viewBox: "0 0 24 24",
|
|
@@ -45,14 +45,14 @@ function Oe(e, d) {
|
|
|
45
45
|
"aria-hidden": "true",
|
|
46
46
|
"data-slot": "icon"
|
|
47
47
|
}, [
|
|
48
|
-
|
|
48
|
+
d("path", {
|
|
49
49
|
"fill-rule": "evenodd",
|
|
50
50
|
d: "M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z",
|
|
51
51
|
"clip-rule": "evenodd"
|
|
52
52
|
})
|
|
53
53
|
]);
|
|
54
54
|
}
|
|
55
|
-
function re(e,
|
|
55
|
+
function re(e, c) {
|
|
56
56
|
return u(), m("svg", {
|
|
57
57
|
xmlns: "http://www.w3.org/2000/svg",
|
|
58
58
|
viewBox: "0 0 24 24",
|
|
@@ -60,14 +60,14 @@ function re(e, d) {
|
|
|
60
60
|
"aria-hidden": "true",
|
|
61
61
|
"data-slot": "icon"
|
|
62
62
|
}, [
|
|
63
|
-
|
|
63
|
+
d("path", {
|
|
64
64
|
"fill-rule": "evenodd",
|
|
65
65
|
d: "M7.72 12.53a.75.75 0 0 1 0-1.06l7.5-7.5a.75.75 0 1 1 1.06 1.06L9.31 12l6.97 6.97a.75.75 0 1 1-1.06 1.06l-7.5-7.5Z",
|
|
66
66
|
"clip-rule": "evenodd"
|
|
67
67
|
})
|
|
68
68
|
]);
|
|
69
69
|
}
|
|
70
|
-
function ne(e,
|
|
70
|
+
function ne(e, c) {
|
|
71
71
|
return u(), m("svg", {
|
|
72
72
|
xmlns: "http://www.w3.org/2000/svg",
|
|
73
73
|
viewBox: "0 0 24 24",
|
|
@@ -75,14 +75,14 @@ function ne(e, d) {
|
|
|
75
75
|
"aria-hidden": "true",
|
|
76
76
|
"data-slot": "icon"
|
|
77
77
|
}, [
|
|
78
|
-
|
|
78
|
+
d("path", {
|
|
79
79
|
"fill-rule": "evenodd",
|
|
80
80
|
d: "M16.28 11.47a.75.75 0 0 1 0 1.06l-7.5 7.5a.75.75 0 0 1-1.06-1.06L14.69 12 7.72 5.03a.75.75 0 0 1 1.06-1.06l7.5 7.5Z",
|
|
81
81
|
"clip-rule": "evenodd"
|
|
82
82
|
})
|
|
83
83
|
]);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function Oe(e, c) {
|
|
86
86
|
return u(), m("svg", {
|
|
87
87
|
xmlns: "http://www.w3.org/2000/svg",
|
|
88
88
|
viewBox: "0 0 24 24",
|
|
@@ -90,14 +90,14 @@ function Ie(e, d) {
|
|
|
90
90
|
"aria-hidden": "true",
|
|
91
91
|
"data-slot": "icon"
|
|
92
92
|
}, [
|
|
93
|
-
|
|
93
|
+
d("path", {
|
|
94
94
|
"fill-rule": "evenodd",
|
|
95
95
|
d: "M11.47 4.72a.75.75 0 0 1 1.06 0l3.75 3.75a.75.75 0 0 1-1.06 1.06L12 6.31 8.78 9.53a.75.75 0 0 1-1.06-1.06l3.75-3.75Zm-3.75 9.75a.75.75 0 0 1 1.06 0L12 17.69l3.22-3.22a.75.75 0 1 1 1.06 1.06l-3.75 3.75a.75.75 0 0 1-1.06 0l-3.75-3.75a.75.75 0 0 1 0-1.06Z",
|
|
96
96
|
"clip-rule": "evenodd"
|
|
97
97
|
})
|
|
98
98
|
]);
|
|
99
99
|
}
|
|
100
|
-
function ze(e,
|
|
100
|
+
function ze(e, c) {
|
|
101
101
|
return u(), m("svg", {
|
|
102
102
|
xmlns: "http://www.w3.org/2000/svg",
|
|
103
103
|
viewBox: "0 0 24 24",
|
|
@@ -105,14 +105,14 @@ function ze(e, d) {
|
|
|
105
105
|
"aria-hidden": "true",
|
|
106
106
|
"data-slot": "icon"
|
|
107
107
|
}, [
|
|
108
|
-
|
|
108
|
+
d("path", {
|
|
109
109
|
"fill-rule": "evenodd",
|
|
110
110
|
d: "M11.47 7.72a.75.75 0 0 1 1.06 0l7.5 7.5a.75.75 0 1 1-1.06 1.06L12 9.31l-6.97 6.97a.75.75 0 0 1-1.06-1.06l7.5-7.5Z",
|
|
111
111
|
"clip-rule": "evenodd"
|
|
112
112
|
})
|
|
113
113
|
]);
|
|
114
114
|
}
|
|
115
|
-
function Fe(e,
|
|
115
|
+
function Fe(e, c) {
|
|
116
116
|
return u(), m("svg", {
|
|
117
117
|
xmlns: "http://www.w3.org/2000/svg",
|
|
118
118
|
viewBox: "0 0 24 24",
|
|
@@ -120,14 +120,14 @@ function Fe(e, d) {
|
|
|
120
120
|
"aria-hidden": "true",
|
|
121
121
|
"data-slot": "icon"
|
|
122
122
|
}, [
|
|
123
|
-
|
|
123
|
+
d("path", {
|
|
124
124
|
"fill-rule": "evenodd",
|
|
125
125
|
d: "M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",
|
|
126
126
|
"clip-rule": "evenodd"
|
|
127
127
|
})
|
|
128
128
|
]);
|
|
129
129
|
}
|
|
130
|
-
function Ne(e,
|
|
130
|
+
function Ne(e, c) {
|
|
131
131
|
return u(), m("svg", {
|
|
132
132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
133
133
|
viewBox: "0 0 24 24",
|
|
@@ -135,14 +135,14 @@ function Ne(e, d) {
|
|
|
135
135
|
"aria-hidden": "true",
|
|
136
136
|
"data-slot": "icon"
|
|
137
137
|
}, [
|
|
138
|
-
|
|
138
|
+
d("path", {
|
|
139
139
|
"fill-rule": "evenodd",
|
|
140
140
|
d: "M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
|
|
141
141
|
"clip-rule": "evenodd"
|
|
142
142
|
})
|
|
143
143
|
]);
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ye(e, c) {
|
|
146
146
|
return u(), m("svg", {
|
|
147
147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
148
148
|
viewBox: "0 0 24 24",
|
|
@@ -150,29 +150,29 @@ function we(e, d) {
|
|
|
150
150
|
"aria-hidden": "true",
|
|
151
151
|
"data-slot": "icon"
|
|
152
152
|
}, [
|
|
153
|
-
|
|
153
|
+
d("path", {
|
|
154
154
|
"fill-rule": "evenodd",
|
|
155
155
|
d: "M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",
|
|
156
156
|
"clip-rule": "evenodd"
|
|
157
157
|
})
|
|
158
158
|
]);
|
|
159
159
|
}
|
|
160
|
-
const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-labelledby", "id"],
|
|
160
|
+
const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-labelledby", "id"], Ye = { class: "overflow-hidden rounded-b" }, yl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
161
161
|
__name: "accordion-panel",
|
|
162
162
|
props: { show: Boolean, disabled: Boolean },
|
|
163
163
|
emits: ["select", "keyup", "keydown"],
|
|
164
|
-
setup(e, { expose:
|
|
164
|
+
setup(e, { expose: c, emit: t }) {
|
|
165
165
|
const s = t, a = e, l = Z(), v = w(null), n = Math.random().toString(20).substring(2, 8), o = (r) => {
|
|
166
166
|
if (!a.disabled) {
|
|
167
167
|
const f = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(r.keyCode);
|
|
168
168
|
f && (s(f), r.preventDefault());
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
return
|
|
172
|
-
|
|
171
|
+
return c({ focus: () => v.value.focus(), disabled: a.disabled }), (r, f) => (u(), m("div", null, [
|
|
172
|
+
d("button", {
|
|
173
173
|
onClick: f[0] || (f[0] = (x) => s("select")),
|
|
174
174
|
onKeydown: o,
|
|
175
|
-
class:
|
|
175
|
+
class: $([
|
|
176
176
|
"flex items-center w-full space-x-2 px-4 py-2 ring-vxvue",
|
|
177
177
|
e.show ? "rounded-t" : "rounded",
|
|
178
178
|
e.disabled ? "bg-slate-300 text-slate-700" : "bg-vxvue hover:bg-vxvue-600 text-white",
|
|
@@ -186,33 +186,33 @@ const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-lab
|
|
|
186
186
|
ref: v,
|
|
187
187
|
tabindex: "0"
|
|
188
188
|
}, [
|
|
189
|
-
e.disabled ? (u(), W(A(
|
|
189
|
+
e.disabled ? (u(), W(A(ye), {
|
|
190
190
|
key: 0,
|
|
191
191
|
class: "size-5"
|
|
192
192
|
})) : (u(), W(A(ne), {
|
|
193
193
|
key: 1,
|
|
194
|
-
class:
|
|
194
|
+
class: $(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
|
|
195
195
|
}, null, 8, ["class"])),
|
|
196
|
-
|
|
196
|
+
d("span", null, [
|
|
197
197
|
D(r.$slots, "header")
|
|
198
198
|
])
|
|
199
199
|
], 42, Ee),
|
|
200
|
-
|
|
201
|
-
class:
|
|
200
|
+
d("div", {
|
|
201
|
+
class: $(["grid transition-[grid-template-rows] duration-300 ease-in-out", e.show && !e.disabled ? "grid-rows-1" : "grid-rows-[repeat(1,minmax(0,0fr))]"]),
|
|
202
202
|
"aria-labelledby": "ap-control-" + A(n),
|
|
203
203
|
id: "ap-" + A(n)
|
|
204
204
|
}, [
|
|
205
|
-
|
|
205
|
+
d("div", Ye, [
|
|
206
206
|
D(r.$slots, "default")
|
|
207
207
|
])
|
|
208
208
|
], 10, je)
|
|
209
209
|
]));
|
|
210
210
|
}
|
|
211
|
-
}),
|
|
211
|
+
}), _e = ["viewBox"], Re = ["cx", "cy", "r", "stroke-width"], We = ["cx", "cy", "r", "stroke-width", "stroke-dasharray"], we = {
|
|
212
212
|
__name: "spinner",
|
|
213
213
|
props: { radius: { type: Number, default: 10 }, strokeWidth: { type: Number, default: 4 } },
|
|
214
214
|
setup(e) {
|
|
215
|
-
const
|
|
215
|
+
const c = e, t = L(() => c.radius + c.strokeWidth / 2), s = L(() => c.radius * 2 + c.strokeWidth), a = L(() => c.radius * Math.PI / 1.5);
|
|
216
216
|
return (l, v) => (u(), m("svg", {
|
|
217
217
|
class: "animate-spin",
|
|
218
218
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -220,7 +220,7 @@ const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-lab
|
|
|
220
220
|
viewBox: "0 0 " + s.value + " " + s.value,
|
|
221
221
|
role: "progressbar"
|
|
222
222
|
}, [
|
|
223
|
-
|
|
223
|
+
d("circle", {
|
|
224
224
|
class: "opacity-35",
|
|
225
225
|
cx: t.value,
|
|
226
226
|
cy: t.value,
|
|
@@ -228,7 +228,7 @@ const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-lab
|
|
|
228
228
|
stroke: "currentColor",
|
|
229
229
|
"stroke-width": e.strokeWidth
|
|
230
230
|
}, null, 8, Re),
|
|
231
|
-
|
|
231
|
+
d("circle", {
|
|
232
232
|
cx: t.value,
|
|
233
233
|
cy: t.value,
|
|
234
234
|
r: e.radius,
|
|
@@ -237,7 +237,7 @@ const Ee = ["id", "disabled", "aria-expanded", "aria-controls"], je = ["aria-lab
|
|
|
237
237
|
"stroke-dasharray": a.value + " " + e.radius * 100,
|
|
238
238
|
"stroke-linecap": "round"
|
|
239
239
|
}, null, 8, We)
|
|
240
|
-
], 8,
|
|
240
|
+
], 8, _e));
|
|
241
241
|
}
|
|
242
242
|
};
|
|
243
243
|
function He(e) {
|
|
@@ -246,26 +246,26 @@ function He(e) {
|
|
|
246
246
|
function J(e) {
|
|
247
247
|
return typeof e == "function" ? e() : A(e);
|
|
248
248
|
}
|
|
249
|
-
const
|
|
249
|
+
const ke = typeof window < "u" && typeof document < "u";
|
|
250
250
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
251
251
|
const Ue = Object.prototype.toString, Ze = (e) => Ue.call(e) === "[object Object]", ue = () => {
|
|
252
252
|
}, Ke = /* @__PURE__ */ qe();
|
|
253
253
|
function qe() {
|
|
254
|
-
var e,
|
|
255
|
-
return
|
|
254
|
+
var e, c;
|
|
255
|
+
return ke && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((c = window == null ? void 0 : window.navigator) == null ? void 0 : c.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
256
256
|
}
|
|
257
257
|
const Xe = /[YMDHhms]o|\[([^\]]+)\]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a{1,2}|A{1,2}|m{1,2}|s{1,2}|Z{1,2}|SSS/g;
|
|
258
|
-
function Ge(e,
|
|
258
|
+
function Ge(e, c, t, s) {
|
|
259
259
|
let a = e < 12 ? "AM" : "PM";
|
|
260
260
|
return s && (a = a.split("").reduce((l, v) => l += `${v}.`, "")), t ? a.toLowerCase() : a;
|
|
261
261
|
}
|
|
262
262
|
function ee(e) {
|
|
263
|
-
const
|
|
264
|
-
return e + (
|
|
263
|
+
const c = ["th", "st", "nd", "rd"], t = e % 100;
|
|
264
|
+
return e + (c[(t - 20) % 10] || c[t] || c[0]);
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function pe(e, c, t = {}) {
|
|
267
267
|
var s;
|
|
268
|
-
const a = e.getFullYear(), l = e.getMonth(), v = e.getDate(), n = e.getHours(), o = e.getMinutes(),
|
|
268
|
+
const a = e.getFullYear(), l = e.getMonth(), v = e.getDate(), n = e.getHours(), o = e.getMinutes(), i = e.getSeconds(), r = e.getMilliseconds(), f = e.getDay(), x = (s = t.customMeridiem) != null ? s : Ge, h = {
|
|
269
269
|
Yo: () => ee(a),
|
|
270
270
|
YY: () => String(a).slice(-2),
|
|
271
271
|
YYYY: () => a,
|
|
@@ -286,9 +286,9 @@ function ge(e, d, t = {}) {
|
|
|
286
286
|
m: () => String(o),
|
|
287
287
|
mo: () => ee(o),
|
|
288
288
|
mm: () => `${o}`.padStart(2, "0"),
|
|
289
|
-
s: () => String(
|
|
290
|
-
so: () => ee(
|
|
291
|
-
ss: () => `${
|
|
289
|
+
s: () => String(i),
|
|
290
|
+
so: () => ee(i),
|
|
291
|
+
ss: () => `${i}`.padStart(2, "0"),
|
|
292
292
|
SSS: () => `${r}`.padStart(3, "0"),
|
|
293
293
|
d: () => f,
|
|
294
294
|
dd: () => e.toLocaleDateString(J(t.locales), { weekday: "narrow" }),
|
|
@@ -299,26 +299,26 @@ function ge(e, d, t = {}) {
|
|
|
299
299
|
a: () => x(n, o, !0),
|
|
300
300
|
aa: () => x(n, o, !0, !0)
|
|
301
301
|
};
|
|
302
|
-
return
|
|
303
|
-
var
|
|
304
|
-
return (z =
|
|
302
|
+
return c.replace(Xe, (p, C) => {
|
|
303
|
+
var I, z;
|
|
304
|
+
return (z = C ?? ((I = h[p]) == null ? void 0 : I.call(h))) != null ? z : p;
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const $e = ke ? window : void 0;
|
|
308
308
|
function se(e) {
|
|
309
|
-
var
|
|
309
|
+
var c;
|
|
310
310
|
const t = J(e);
|
|
311
|
-
return (
|
|
311
|
+
return (c = t == null ? void 0 : t.$el) != null ? c : t;
|
|
312
312
|
}
|
|
313
313
|
function de(...e) {
|
|
314
|
-
let
|
|
315
|
-
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, s, a] = e,
|
|
314
|
+
let c, t, s, a;
|
|
315
|
+
if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, s, a] = e, c = $e) : [c, t, s, a] = e, !c)
|
|
316
316
|
return ue;
|
|
317
317
|
Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
|
|
318
318
|
const l = [], v = () => {
|
|
319
319
|
l.forEach((r) => r()), l.length = 0;
|
|
320
320
|
}, n = (r, f, x, h) => (r.addEventListener(f, x, h), () => r.removeEventListener(f, x, h)), o = K(
|
|
321
|
-
() => [se(
|
|
321
|
+
() => [se(c), J(a)],
|
|
322
322
|
([r, f]) => {
|
|
323
323
|
if (v(), !r)
|
|
324
324
|
return;
|
|
@@ -328,33 +328,33 @@ function de(...e) {
|
|
|
328
328
|
);
|
|
329
329
|
},
|
|
330
330
|
{ immediate: !0, flush: "post" }
|
|
331
|
-
),
|
|
331
|
+
), i = () => {
|
|
332
332
|
o(), v();
|
|
333
333
|
};
|
|
334
|
-
return He(
|
|
334
|
+
return He(i), i;
|
|
335
335
|
}
|
|
336
|
-
let
|
|
337
|
-
function fe(e,
|
|
338
|
-
const { window: s =
|
|
336
|
+
let ge = !1;
|
|
337
|
+
function fe(e, c, t = {}) {
|
|
338
|
+
const { window: s = $e, ignore: a = [], capture: l = !0, detectIframe: v = !1 } = t;
|
|
339
339
|
if (!s)
|
|
340
340
|
return ue;
|
|
341
|
-
Ke && !
|
|
341
|
+
Ke && !ge && (ge = !0, Array.from(s.document.body.children).forEach((h) => h.addEventListener("click", ue)), s.document.documentElement.addEventListener("click", ue));
|
|
342
342
|
let n = !0;
|
|
343
343
|
const o = (h) => J(a).some((p) => {
|
|
344
344
|
if (typeof p == "string")
|
|
345
|
-
return Array.from(s.document.querySelectorAll(p)).some((
|
|
345
|
+
return Array.from(s.document.querySelectorAll(p)).some((C) => C === h.target || h.composedPath().includes(C));
|
|
346
346
|
{
|
|
347
|
-
const
|
|
348
|
-
return
|
|
347
|
+
const C = se(p);
|
|
348
|
+
return C && (h.target === C || h.composedPath().includes(C));
|
|
349
349
|
}
|
|
350
|
-
}),
|
|
350
|
+
}), i = (h) => {
|
|
351
351
|
const p = se(e);
|
|
352
352
|
if (!(!p || p === h.target || h.composedPath().includes(p))) {
|
|
353
353
|
if (h.detail === 0 && (n = !o(h)), !n) {
|
|
354
354
|
n = !0;
|
|
355
355
|
return;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
c(h);
|
|
358
358
|
}
|
|
359
359
|
};
|
|
360
360
|
let r = !1;
|
|
@@ -362,7 +362,7 @@ function fe(e, d, t = {}) {
|
|
|
362
362
|
de(s, "click", (h) => {
|
|
363
363
|
r || (r = !0, setTimeout(() => {
|
|
364
364
|
r = !1;
|
|
365
|
-
}, 0),
|
|
365
|
+
}, 0), i(h));
|
|
366
366
|
}, { passive: !0, capture: l }),
|
|
367
367
|
de(s, "pointerdown", (h) => {
|
|
368
368
|
const p = se(e);
|
|
@@ -371,14 +371,14 @@ function fe(e, d, t = {}) {
|
|
|
371
371
|
v && de(s, "blur", (h) => {
|
|
372
372
|
setTimeout(() => {
|
|
373
373
|
var p;
|
|
374
|
-
const
|
|
375
|
-
((p = s.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !(
|
|
374
|
+
const C = se(e);
|
|
375
|
+
((p = s.document.activeElement) == null ? void 0 : p.tagName) === "IFRAME" && !(C != null && C.contains(s.document.activeElement)) && c(h);
|
|
376
376
|
}, 0);
|
|
377
377
|
})
|
|
378
378
|
].filter(Boolean);
|
|
379
379
|
return () => f.forEach((h) => h());
|
|
380
380
|
}
|
|
381
|
-
const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-0 items-center pr-3 text-vxvue-700" }, et = ["data-result-index"],
|
|
381
|
+
const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-0 items-center pr-3 text-vxvue-700" }, et = ["data-result-index"], wl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
382
382
|
__name: "autocomplete",
|
|
383
383
|
props: {
|
|
384
384
|
modelValue: { type: String, default: "" },
|
|
@@ -389,18 +389,18 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
389
389
|
autoSelect: Boolean
|
|
390
390
|
},
|
|
391
391
|
emits: ["update:modelValue", "blur", "submit"],
|
|
392
|
-
setup(e, { emit:
|
|
393
|
-
const t =
|
|
392
|
+
setup(e, { emit: c }) {
|
|
393
|
+
const t = c, s = e, a = Z(), v = (/* @__PURE__ */ (() => {
|
|
394
394
|
let V = 0;
|
|
395
395
|
return (M) => (M || "") + ++V;
|
|
396
|
-
})())((a.id || "autocomplete") + "-"), n = w([]), o = w(-1),
|
|
396
|
+
})())((a.id || "autocomplete") + "-"), n = w([]), o = w(-1), i = w(0), r = w(!1), f = w(!1), x = w("top-0 translate-y-12"), h = w(!0), p = w(null), C = w(null), I = w(null), z = L(
|
|
397
397
|
() => n.value.map((V, M) => ({
|
|
398
398
|
id: (a.id || "autocomplete") + "-item-" + M,
|
|
399
399
|
class: [s.resultItemClass, { "bg-vxvue-700 text-white": o.value === M }],
|
|
400
400
|
role: "option",
|
|
401
401
|
...o.value === M ? { "aria-selected": "true" } : {}
|
|
402
402
|
}))
|
|
403
|
-
),
|
|
403
|
+
), Y = L(() => ({
|
|
404
404
|
role: "combobox",
|
|
405
405
|
autocomplete: "off",
|
|
406
406
|
autocapitalize: "off",
|
|
@@ -421,13 +421,13 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
421
421
|
}, k = (V) => {
|
|
422
422
|
const M = s.search(V);
|
|
423
423
|
if (M instanceof Promise) {
|
|
424
|
-
const q = ++
|
|
424
|
+
const q = ++i.value;
|
|
425
425
|
f.value = !0, M.then((H) => {
|
|
426
|
-
q ===
|
|
426
|
+
q === i.value && (n.value = H, f.value = !1, n.value.length ? (o.value = s.autoSelect ? 0 : -1, r.value = !0) : U());
|
|
427
427
|
});
|
|
428
428
|
} else
|
|
429
429
|
n.value = M, n.value.length === 0 ? U() : (o.value = s.autoSelect ? 0 : -1, r.value = !0);
|
|
430
|
-
},
|
|
430
|
+
}, S = () => {
|
|
431
431
|
const V = n.value[o.value];
|
|
432
432
|
return V && t("update:modelValue", s.getResultValue(V)), U(), V;
|
|
433
433
|
}, F = (V) => {
|
|
@@ -443,13 +443,13 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
443
443
|
o.value = ((o.value + 1) % M + M) % M;
|
|
444
444
|
}, R = () => {
|
|
445
445
|
U(), t("update:modelValue", "");
|
|
446
|
-
}, le = () => t("submit",
|
|
446
|
+
}, le = () => t("submit", S()), Q = (V) => {
|
|
447
447
|
const M = V.target.closest("[data-result-index]");
|
|
448
|
-
M && (o.value = parseInt(M.dataset.resultIndex, 10), t("submit",
|
|
448
|
+
M && (o.value = parseInt(M.dataset.resultIndex, 10), t("submit", S()));
|
|
449
449
|
};
|
|
450
|
-
return fe(
|
|
450
|
+
return fe(I, U), Ae(() => {
|
|
451
451
|
if (p.value) {
|
|
452
|
-
const V =
|
|
452
|
+
const V = C.value.getBoundingClientRect(), M = p.value.getBoundingClientRect();
|
|
453
453
|
h.value && n.value.length && (h.value = !1, x.value = V.bottom + M.height > window.innerHeight && window.innerHeight - V.bottom < V.top && window.pageYOffset + V.top - M.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
|
|
454
454
|
const q = p.value.querySelector('[data-result-index="' + o.value + '"]');
|
|
455
455
|
if (q) {
|
|
@@ -458,29 +458,29 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
}), (V, M) => (u(), m("div", {
|
|
461
|
-
class:
|
|
461
|
+
class: $(["inline-block relative", V.$attrs.class]),
|
|
462
462
|
ref_key: "container",
|
|
463
|
-
ref:
|
|
463
|
+
ref: I
|
|
464
464
|
}, [
|
|
465
|
-
|
|
465
|
+
d("input", j({
|
|
466
466
|
ref_key: "input",
|
|
467
|
-
ref:
|
|
467
|
+
ref: C,
|
|
468
468
|
class: "block pr-10 w-full form-input focus:border-vxvue",
|
|
469
469
|
value: e.modelValue
|
|
470
|
-
},
|
|
470
|
+
}, Y.value, {
|
|
471
471
|
onInput: M[0] || (M[0] = (q) => F(q.target.value)),
|
|
472
472
|
onKeydown: [
|
|
473
473
|
ae(le, ["enter"]),
|
|
474
474
|
ae(R, ["esc"]),
|
|
475
|
-
ae(
|
|
475
|
+
ae(S, ["tab"]),
|
|
476
476
|
ae(N(y, ["prevent"]), ["up"]),
|
|
477
477
|
ae(N(P, ["prevent"]), ["down"])
|
|
478
478
|
],
|
|
479
479
|
onFocus: g,
|
|
480
480
|
onBlur: b
|
|
481
481
|
}), null, 16, Je),
|
|
482
|
-
|
|
483
|
-
f.value ? (u(), W(
|
|
482
|
+
d("span", Qe, [
|
|
483
|
+
f.value ? (u(), W(we, {
|
|
484
484
|
key: 0,
|
|
485
485
|
class: "size-5"
|
|
486
486
|
})) : T("", !0)
|
|
@@ -494,7 +494,7 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
494
494
|
onMousedown: M[1] || (M[1] = N(() => {
|
|
495
495
|
}, ["prevent"]))
|
|
496
496
|
}), [
|
|
497
|
-
(u(!0), m(
|
|
497
|
+
(u(!0), m(O, null, E(n.value, (q, H) => (u(), m("div", { "data-result-index": H }, [
|
|
498
498
|
D(V.$slots, "result", {
|
|
499
499
|
result: q,
|
|
500
500
|
props: z.value[H]
|
|
@@ -515,70 +515,70 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
515
515
|
}, lt = {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "overflow-y-auto fixed inset-0 z-50"
|
|
518
|
-
}, at = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, st = { key: 0 }, nt = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, ot = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, rt = { class: "flex flex-row items-center" }, ut = { class: "flex-shrink-0" }, it = { class: "flex-grow text-center" }, dt = ["onClick"],
|
|
518
|
+
}, at = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, st = { key: 0 }, nt = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, ot = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, rt = { class: "flex flex-row items-center" }, ut = { class: "flex-shrink-0" }, it = { class: "flex-grow text-center" }, dt = ["onClick"], kl = {
|
|
519
519
|
__name: "confirm",
|
|
520
520
|
props: {
|
|
521
521
|
buttons: {
|
|
522
522
|
type: [Object, Array],
|
|
523
523
|
default: { label: "Ok" },
|
|
524
|
-
validator: (e) => Array.isArray(e) && e.length <= 2 && e.filter((
|
|
524
|
+
validator: (e) => Array.isArray(e) && e.length <= 2 && e.filter((c) => c.label !== "undefined" && c.value !== "undefined").length === e.length || e.label !== void 0 && e.value !== void 0
|
|
525
525
|
},
|
|
526
526
|
headerClass: {
|
|
527
527
|
type: String,
|
|
528
|
-
default: "text-vxvue-alt-900 bg-vxvue-alt-
|
|
528
|
+
default: "text-vxvue-alt-900 bg-vxvue-alt-300"
|
|
529
529
|
},
|
|
530
530
|
buttonClass: {
|
|
531
531
|
type: String,
|
|
532
532
|
default: "button"
|
|
533
533
|
}
|
|
534
534
|
},
|
|
535
|
-
setup(e, { expose:
|
|
535
|
+
setup(e, { expose: c }) {
|
|
536
536
|
const t = e, s = w(""), a = w(""), l = w(!1);
|
|
537
537
|
let v = null, n = null;
|
|
538
|
-
const o = L(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]),
|
|
538
|
+
const o = L(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), i = w(null), r = (x, h) => {
|
|
539
539
|
l.value = !1, x.value !== void 0 ? x.value ? v() : n() : h ? n() : v();
|
|
540
540
|
};
|
|
541
|
-
return
|
|
542
|
-
v = p, n =
|
|
543
|
-
})) }), (x, h) => (u(), m(
|
|
541
|
+
return c({ open: (x, h) => (s.value = x, a.value = h, l.value = !0, ve(() => i.value.firstElementChild.focus()), new Promise((p, C) => {
|
|
542
|
+
v = p, n = C;
|
|
543
|
+
})) }), (x, h) => (u(), m(O, null, [
|
|
544
544
|
l.value ? (u(), m("div", tt)) : T("", !0),
|
|
545
|
-
|
|
545
|
+
_(ce, { name: "appear" }, {
|
|
546
546
|
default: te(() => [
|
|
547
547
|
l.value ? (u(), m("div", lt, [
|
|
548
|
-
|
|
548
|
+
d("div", at, [
|
|
549
549
|
l.value ? (u(), m("div", st, [
|
|
550
|
-
h[0] || (h[0] =
|
|
550
|
+
h[0] || (h[0] = d("span", {
|
|
551
551
|
class: "hidden sm:inline-block sm:h-screen sm:align-middle",
|
|
552
552
|
"aria-hidden": "true"
|
|
553
553
|
}, "", -1)),
|
|
554
|
-
|
|
554
|
+
d("div", nt, [
|
|
555
555
|
s.value || x.$slots.title ? (u(), m("h3", {
|
|
556
556
|
key: 0,
|
|
557
|
-
class:
|
|
557
|
+
class: $(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
|
|
558
558
|
}, [
|
|
559
559
|
D(x.$slots, "title", {}, () => [
|
|
560
560
|
X(B(s.value), 1)
|
|
561
561
|
])
|
|
562
562
|
], 2)) : T("", !0),
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
563
|
+
d("div", ot, [
|
|
564
|
+
d("div", rt, [
|
|
565
|
+
d("div", ut, [
|
|
566
566
|
D(x.$slots, "icon")
|
|
567
567
|
]),
|
|
568
|
-
|
|
568
|
+
d("p", it, [
|
|
569
569
|
D(x.$slots, "default", {}, () => [
|
|
570
570
|
X(B(a.value), 1)
|
|
571
571
|
])
|
|
572
572
|
])
|
|
573
573
|
]),
|
|
574
|
-
|
|
574
|
+
d("div", {
|
|
575
575
|
class: "flex justify-center mt-5 space-x-2 sm:mt-6",
|
|
576
576
|
ref_key: "buttonsContainer",
|
|
577
|
-
ref:
|
|
577
|
+
ref: i
|
|
578
578
|
}, [
|
|
579
|
-
(u(!0), m(
|
|
580
|
-
class:
|
|
581
|
-
onClick: N((
|
|
579
|
+
(u(!0), m(O, null, E(o.value, (p, C) => (u(), m("button", {
|
|
580
|
+
class: $([e.buttonClass, p.class]),
|
|
581
|
+
onClick: N((I) => r(p, C), ["prevent"])
|
|
582
582
|
}, B(p.label), 11, dt))), 256))
|
|
583
583
|
], 512)
|
|
584
584
|
])
|
|
@@ -592,8 +592,8 @@ const Je = ["value", "onKeydown"], Qe = { class: "flex absolute inset-y-0 right-
|
|
|
592
592
|
], 64));
|
|
593
593
|
}
|
|
594
594
|
};
|
|
595
|
-
function ct(e,
|
|
596
|
-
const t = w(!1), s =
|
|
595
|
+
function ct(e, c) {
|
|
596
|
+
const t = w(!1), s = he(c);
|
|
597
597
|
let a, l = s.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), v = [];
|
|
598
598
|
if ((a = s.match(/\bd\b/gi)) && a.length === 1)
|
|
599
599
|
l = l.replace("d", "(\\d{1,2})");
|
|
@@ -611,12 +611,12 @@ function ct(e, d) {
|
|
|
611
611
|
l = l.replace("yyyy", "(\\d{4})");
|
|
612
612
|
else
|
|
613
613
|
return { date: t };
|
|
614
|
-
if (v.push({ srcPos: s.toLowerCase().indexOf("y"), destPos: 0 }), !(a =
|
|
614
|
+
if (v.push({ srcPos: s.toLowerCase().indexOf("y"), destPos: 0 }), !(a = he(e).match(l)))
|
|
615
615
|
return { date: t };
|
|
616
616
|
a.shift(), v.sort((r, f) => r.srcPos < f.srcPos ? -1 : 1);
|
|
617
|
-
let n = [], o,
|
|
617
|
+
let n = [], o, i;
|
|
618
618
|
for (; o = a.shift(); )
|
|
619
|
-
|
|
619
|
+
i = v.shift(), n[i.destPos] = o;
|
|
620
620
|
return n = Date.parse(n.join("-")), n && (n = new Date(n), t.value = new Date(n.getFullYear(), n.getMonth(), n.getDate(), 0, 0, 0)), { date: t };
|
|
621
621
|
}
|
|
622
622
|
const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -628,30 +628,30 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
628
628
|
modelValue: Date
|
|
629
629
|
},
|
|
630
630
|
emits: ["update:modelValue", "toggle-datepicker"],
|
|
631
|
-
setup(e, { emit:
|
|
632
|
-
const t =
|
|
631
|
+
setup(e, { emit: c }) {
|
|
632
|
+
const t = c, s = e, a = w(""), l = L(() => s.modelValue ? pe(s.modelValue, s.outputFormat) : ""), v = L(() => {
|
|
633
633
|
let n = Object.assign({}, Z());
|
|
634
634
|
return delete n.class, n;
|
|
635
635
|
});
|
|
636
|
-
return K(() => s.modelValue, (n) => a.value = n ?
|
|
637
|
-
class:
|
|
636
|
+
return K(() => s.modelValue, (n) => a.value = n ? pe(n, s.outputFormat) : ""), (n, o) => (u(), m("div", {
|
|
637
|
+
class: $(["inline-block relative", n.$attrs.class])
|
|
638
638
|
}, [
|
|
639
639
|
l.value ? (u(), m("div", vt, [
|
|
640
|
-
|
|
641
|
-
class:
|
|
640
|
+
d("div", {
|
|
641
|
+
class: $(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showToggle }])
|
|
642
642
|
}, [
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
onClick: o[0] || (o[0] = (
|
|
643
|
+
d("span", mt, B(l.value), 1),
|
|
644
|
+
d("button", {
|
|
645
|
+
onClick: o[0] || (o[0] = (i) => t("update:modelValue", null)),
|
|
646
646
|
class: "inline-flex flex-shrink-0 justify-center items-center ml-2 rounded-full focus:text-white focus:outline-none size-4 text-vxvue hover:bg-vxvue-100 hover:text-vue-700 focus:bg-vxvue-700"
|
|
647
647
|
}, o[5] || (o[5] = [
|
|
648
|
-
|
|
648
|
+
d("svg", {
|
|
649
649
|
class: "size-2",
|
|
650
650
|
stroke: "currentColor",
|
|
651
651
|
fill: "none",
|
|
652
652
|
viewBox: "0 0 8 8"
|
|
653
653
|
}, [
|
|
654
|
-
|
|
654
|
+
d("path", {
|
|
655
655
|
"stroke-linecap": "round",
|
|
656
656
|
"stroke-width": "1.5",
|
|
657
657
|
d: "M1 1l6 6m0-6L1 7"
|
|
@@ -659,12 +659,12 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
659
659
|
], -1)
|
|
660
660
|
]))
|
|
661
661
|
], 2)
|
|
662
|
-
])) :
|
|
662
|
+
])) : be((u(), m("input", j({
|
|
663
663
|
key: 1,
|
|
664
664
|
type: "text",
|
|
665
665
|
class: ["block w-full form-input peer focus:border-vxvue", { "pr-10": e.showToggle }],
|
|
666
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
667
|
-
onBlur: o[2] || (o[2] = (
|
|
666
|
+
"onUpdate:modelValue": o[1] || (o[1] = (i) => a.value = i),
|
|
667
|
+
onBlur: o[2] || (o[2] = (i) => {
|
|
668
668
|
var r;
|
|
669
669
|
return t("update:modelValue", ((r = A(ct)(a.value, s.inputFormat).date) == null ? void 0 : r.value) || null);
|
|
670
670
|
}),
|
|
@@ -677,17 +677,17 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
677
677
|
key: 2,
|
|
678
678
|
class: "flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700 hover:text-vxvue",
|
|
679
679
|
"aria-label": "datepicker-toggle",
|
|
680
|
-
onClick: o[4] || (o[4] = N((
|
|
680
|
+
onClick: o[4] || (o[4] = N((i) => t("toggle-datepicker"), ["stop"])),
|
|
681
681
|
ref: "toggleButton"
|
|
682
682
|
}, o[6] || (o[6] = [
|
|
683
|
-
|
|
683
|
+
d("svg", {
|
|
684
684
|
xmlns: "http://www.w3.org/2000/svg",
|
|
685
685
|
class: "size-6",
|
|
686
686
|
fill: "none",
|
|
687
687
|
viewBox: "0 0 24 24",
|
|
688
688
|
stroke: "currentColor"
|
|
689
689
|
}, [
|
|
690
|
-
|
|
690
|
+
d("path", {
|
|
691
691
|
"stroke-linecap": "round",
|
|
692
692
|
"stroke-linejoin": "round",
|
|
693
693
|
"stroke-width": "2",
|
|
@@ -698,10 +698,10 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
698
698
|
D(n.$slots, "default")
|
|
699
699
|
], 2));
|
|
700
700
|
}
|
|
701
|
-
}), ht = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, pt = { class: "flex justify-between w-1/2" }, gt = { class: "flex justify-between w-1/2" }, bt = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, xt = ["disabled", "onClick"], yt = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, wt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, kt = { class: "text-center hover:ring-2 text-vxvue-700 hover:ring-vxvue" }, $t = ["onClick"],
|
|
701
|
+
}), ht = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, pt = { class: "flex justify-between w-1/2" }, gt = { class: "flex justify-between w-1/2" }, bt = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, xt = ["disabled", "onClick"], yt = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, wt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, kt = { class: "text-center hover:ring-2 text-vxvue-700 hover:ring-vxvue" }, $t = ["onClick"], $l = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
702
702
|
__name: "datepicker",
|
|
703
703
|
props: {
|
|
704
|
-
modelValue: { type: [Date, Array], default: null, validator: (e,
|
|
704
|
+
modelValue: { type: [Date, Array], default: null, validator: (e, c) => e instanceof Date && c.maxNumberOfValues === 1 || e.every((t) => t instanceof Date || t === null) && e.length <= c.maxNumberOfValues },
|
|
705
705
|
shownMonth: Date,
|
|
706
706
|
maxNumberOfValues: { type: Number, default: 1 },
|
|
707
707
|
validFrom: Date,
|
|
@@ -713,11 +713,11 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
713
713
|
hasInput: { type: Boolean, default: !0 }
|
|
714
714
|
},
|
|
715
715
|
emits: ["update:modelValue", "month-change", "year-change"],
|
|
716
|
-
setup(e, { emit:
|
|
717
|
-
const t = e, s =
|
|
716
|
+
setup(e, { emit: c }) {
|
|
717
|
+
const t = e, s = c, a = (() => {
|
|
718
718
|
const g = /* @__PURE__ */ new Date();
|
|
719
719
|
return new Date(g.getFullYear(), g.getMonth(), g.getDate());
|
|
720
|
-
})(), l = w(null), v = w([]), n = w(!1), o = w("days"),
|
|
720
|
+
})(), l = w(null), v = w([]), n = w(!1), o = w("days"), i = w(0), r = w({ horiz: "left-0", vert: "top-0" }), f = w(null), x = w(null), h = w(null), p = L(() => t.hasInput && t.maxNumberOfValues === 1), C = L(() => p.value ? { class: ["absolute", n.value ? "block" : "hidden"] } : {}), I = L(() => {
|
|
721
721
|
const g = [], b = l.value.getFullYear(), y = l.value.getMonth(), P = new Date(b, y + 1, 0), R = new Date(b, y, 0).getDay() + 1 - t.startOfWeekIndex, le = (6 + t.startOfWeekIndex - P.getDay()) % 7;
|
|
722
722
|
for (let Q = -R, V = P.getDate() + le; Q < V; ++Q)
|
|
723
723
|
g.push(new Date(b, y, Q + 1));
|
|
@@ -747,7 +747,7 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
747
747
|
}), fe(x, () => {
|
|
748
748
|
n.value = !1, o.value = "days";
|
|
749
749
|
}, { ignore: [h] });
|
|
750
|
-
const
|
|
750
|
+
const Y = (g) => {
|
|
751
751
|
l.value = new Date(l.value.getFullYear(), g, 1), s("month-change", l.value);
|
|
752
752
|
}, G = (g) => {
|
|
753
753
|
l.value = new Date(g, l.value.getMonth(), 1), s("year-change", l.value);
|
|
@@ -759,8 +759,8 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
759
759
|
let y = b.findIndex((P) => P.getTime() === g.getTime());
|
|
760
760
|
y !== -1 ? b.splice(y, 1) : b.length < t.maxNumberOfValues && b.push(g), s("update:modelValue", b);
|
|
761
761
|
}
|
|
762
|
-
},
|
|
763
|
-
const b = g.getMonth() !== l.value.getMonth(), y =
|
|
762
|
+
}, S = (g) => v.value.find((b) => (b == null ? void 0 : b.getTime()) === g.getTime()), F = (g) => {
|
|
763
|
+
const b = g.getMonth() !== l.value.getMonth(), y = S(g), P = g.getTime() === a.getTime(), R = t.validFrom && t.validFrom > g || t.validUntil && t.validUntil < g, le = !y && t.maxNumberOfValues > 1 && v.value.length === t.maxNumberOfValues, Q = t.highlightRange && g > Math.min(...v.value) && g < Math.max(...v.value);
|
|
764
764
|
return {
|
|
765
765
|
"cursor-not-allowed": R || le,
|
|
766
766
|
"text-vxvue-700": !R && !b && !P && !y,
|
|
@@ -776,7 +776,7 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
776
776
|
var g;
|
|
777
777
|
return h.value = (g = f.value) == null ? void 0 : g.$refs.toggleButton;
|
|
778
778
|
}), (g, b) => (u(), m("div", {
|
|
779
|
-
class:
|
|
779
|
+
class: $(["relative", g.$attrs.class])
|
|
780
780
|
}, [
|
|
781
781
|
p.value ? (u(), W(ft, j({
|
|
782
782
|
key: 0,
|
|
@@ -794,92 +794,92 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
794
794
|
]),
|
|
795
795
|
_: 3
|
|
796
796
|
}, 16, ["modelValue"])) : T("", !0),
|
|
797
|
-
|
|
797
|
+
d("div", j({ class: "overflow-hidden z-10 bg-white rounded shadow-md min-w-72 sm:min-w-80" }, C.value, {
|
|
798
798
|
ref_key: "calendar",
|
|
799
799
|
ref: x,
|
|
800
800
|
class: [r.value.horiz, r.value.vert]
|
|
801
801
|
}), [
|
|
802
|
-
o.value === "days" ? (u(), m(
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
onClick: b[1] || (b[1] = N((y) =>
|
|
802
|
+
o.value === "days" ? (u(), m(O, { key: 0 }, [
|
|
803
|
+
d("div", ht, [
|
|
804
|
+
d("div", pt, [
|
|
805
|
+
d("button", {
|
|
806
|
+
onClick: b[1] || (b[1] = N((y) => Y(l.value.getMonth() - 1), ["stop"])),
|
|
807
807
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
808
808
|
}, [
|
|
809
|
-
|
|
809
|
+
_(A(re), { class: "size-6" })
|
|
810
810
|
]),
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
onClick: b[2] || (b[2] = N((y) =>
|
|
811
|
+
d("span", null, B(l.value.toLocaleString(e.locale, { month: "long" })), 1),
|
|
812
|
+
d("button", {
|
|
813
|
+
onClick: b[2] || (b[2] = N((y) => Y(l.value.getMonth() + 1), ["stop"])),
|
|
814
814
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
815
815
|
}, [
|
|
816
|
-
|
|
816
|
+
_(A(ne), { class: "size-6" })
|
|
817
817
|
])
|
|
818
818
|
]),
|
|
819
|
-
|
|
820
|
-
|
|
819
|
+
d("div", gt, [
|
|
820
|
+
d("button", {
|
|
821
821
|
onClick: b[3] || (b[3] = N((y) => G(l.value.getFullYear() - 1), ["stop"])),
|
|
822
822
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
823
823
|
}, [
|
|
824
|
-
|
|
824
|
+
_(A(re), { class: "size-6" })
|
|
825
825
|
]),
|
|
826
|
-
|
|
826
|
+
d("button", {
|
|
827
827
|
class: "text-vxvue-100 hover:text-vxvue-50",
|
|
828
828
|
onClick: b[4] || (b[4] = (y) => {
|
|
829
|
-
o.value = "years",
|
|
829
|
+
o.value = "years", i.value = l.value.getFullYear();
|
|
830
830
|
})
|
|
831
831
|
}, B(l.value.getFullYear()), 1),
|
|
832
|
-
|
|
832
|
+
d("button", {
|
|
833
833
|
onClick: b[5] || (b[5] = N((y) => G(l.value.getFullYear() + 1), ["stop"])),
|
|
834
834
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
835
835
|
}, [
|
|
836
|
-
|
|
836
|
+
_(A(ne), { class: "size-6" })
|
|
837
837
|
])
|
|
838
838
|
])
|
|
839
839
|
]),
|
|
840
|
-
|
|
841
|
-
(u(!0), m(
|
|
840
|
+
d("div", bt, [
|
|
841
|
+
(u(!0), m(O, null, E(z.value, (y, P) => (u(), m("div", {
|
|
842
842
|
class: "py-2 text-center bg-gray-200",
|
|
843
843
|
key: P
|
|
844
844
|
}, B(y), 1))), 128)),
|
|
845
|
-
(u(!0), m(
|
|
846
|
-
class:
|
|
847
|
-
disabled: e.validFrom && e.validFrom > y || e.validUntil && e.validUntil < y || e.maxNumberOfValues > 1 && v.value.length === e.maxNumberOfValues && !
|
|
845
|
+
(u(!0), m(O, null, E(I.value, (y) => (u(), m("button", {
|
|
846
|
+
class: $(["py-2 rounded-sm block text-center", F(y)]),
|
|
847
|
+
disabled: e.validFrom && e.validFrom > y || e.validUntil && e.validUntil < y || e.maxNumberOfValues > 1 && v.value.length === e.maxNumberOfValues && !S(y),
|
|
848
848
|
onClick: N((P) => k(y), ["stop"])
|
|
849
849
|
}, B(y.getDate()), 11, xt))), 256))
|
|
850
850
|
])
|
|
851
851
|
], 64)) : T("", !0),
|
|
852
|
-
o.value === "years" ? (u(), m(
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
onClick: b[6] || (b[6] = N((y) =>
|
|
852
|
+
o.value === "years" ? (u(), m(O, { key: 1 }, [
|
|
853
|
+
d("div", yt, [
|
|
854
|
+
d("button", {
|
|
855
|
+
onClick: b[6] || (b[6] = N((y) => i.value -= 10, ["stop"])),
|
|
856
856
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
857
857
|
}, [
|
|
858
|
-
|
|
858
|
+
_(A(re), { class: "size-6" })
|
|
859
859
|
]),
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
onClick: b[7] || (b[7] = N((y) =>
|
|
860
|
+
d("span", null, B(i.value) + " - " + B(i.value + 9), 1),
|
|
861
|
+
d("button", {
|
|
862
|
+
onClick: b[7] || (b[7] = N((y) => i.value += 10, ["stop"])),
|
|
863
863
|
class: "flex-shrink-0 text-vxvue-100 hover:text-vxvue-50"
|
|
864
864
|
}, [
|
|
865
|
-
|
|
865
|
+
_(A(ne), { class: "size-6" })
|
|
866
866
|
])
|
|
867
867
|
]),
|
|
868
|
-
|
|
869
|
-
(u(), m(
|
|
870
|
-
|
|
868
|
+
d("div", wt, [
|
|
869
|
+
(u(), m(O, null, E(10, (y) => d("div", kt, [
|
|
870
|
+
d("button", {
|
|
871
871
|
class: "py-2 px-3",
|
|
872
872
|
onClick: N((P) => {
|
|
873
|
-
G(
|
|
873
|
+
G(i.value + y - 1), o.value = "days";
|
|
874
874
|
}, ["stop"])
|
|
875
|
-
}, B(
|
|
875
|
+
}, B(i.value + y - 1), 9, $t)
|
|
876
876
|
])), 64))
|
|
877
877
|
])
|
|
878
878
|
], 64)) : T("", !0)
|
|
879
879
|
], 16)
|
|
880
880
|
], 2));
|
|
881
881
|
}
|
|
882
|
-
}),
|
|
882
|
+
}), Ct = ["for"], St = ["id", "multiple", "accept"], Cl = {
|
|
883
883
|
__name: "form-file-button",
|
|
884
884
|
props: {
|
|
885
885
|
modelValue: { type: Array },
|
|
@@ -889,8 +889,8 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
889
889
|
id: { type: String, default: "form-file-button-" + Math.ceil(Math.random() * 1e3) }
|
|
890
890
|
},
|
|
891
891
|
emits: ["update:modelValue", "form-data"],
|
|
892
|
-
setup(e, { emit:
|
|
893
|
-
const t =
|
|
892
|
+
setup(e, { emit: c }) {
|
|
893
|
+
const t = c, s = e, a = (v) => {
|
|
894
894
|
const n = new FormData();
|
|
895
895
|
for (let o of v)
|
|
896
896
|
n.append(s.name, o, o.name);
|
|
@@ -906,15 +906,15 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
906
906
|
D(v.$slots, "default", {}, () => [
|
|
907
907
|
n[0] || (n[0] = X("Upload"))
|
|
908
908
|
]),
|
|
909
|
-
|
|
909
|
+
d("input", {
|
|
910
910
|
type: "file",
|
|
911
911
|
id: e.id,
|
|
912
912
|
multiple: e.multiple,
|
|
913
913
|
accept: e.accept,
|
|
914
914
|
onChange: l,
|
|
915
915
|
class: "hidden"
|
|
916
|
-
}, null, 40,
|
|
917
|
-
], 8,
|
|
916
|
+
}, null, 40, St)
|
|
917
|
+
], 8, Ct));
|
|
918
918
|
}
|
|
919
919
|
}, Vt = ["value"], Mt = {
|
|
920
920
|
key: 0,
|
|
@@ -924,45 +924,45 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
924
924
|
__name: "form-select",
|
|
925
925
|
props: { options: Array, modelValue: [String, Number], disabledLabel: String },
|
|
926
926
|
emits: ["update:modelValue"],
|
|
927
|
-
setup(e, { emit:
|
|
928
|
-
const t =
|
|
927
|
+
setup(e, { emit: c }) {
|
|
928
|
+
const t = c;
|
|
929
929
|
return (s, a) => (u(), m("select", j(s.$attrs, {
|
|
930
930
|
value: e.modelValue,
|
|
931
931
|
class: "form-select",
|
|
932
932
|
onChange: a[0] || (a[0] = (l) => t("update:modelValue", l.target.value))
|
|
933
933
|
}), [
|
|
934
934
|
e.disabledLabel ? (u(), m("option", Mt, B(e.disabledLabel), 1)) : T("", !0),
|
|
935
|
-
(u(!0), m(
|
|
935
|
+
(u(!0), m(O, null, E(e.options, (l) => (u(), m("option", {
|
|
936
936
|
value: l.key !== void 0 ? l.key : l.label || l,
|
|
937
937
|
selected: (l.key !== void 0 ? l.key : l.label || l) === e.modelValue
|
|
938
938
|
}, B(l.label || l), 9, Dt))), 256))
|
|
939
939
|
], 16, Vt));
|
|
940
940
|
}
|
|
941
|
-
}, Bt = ["aria-checked", "aria-label"], Lt = ["d"], Pt = ["checked"],
|
|
941
|
+
}, Bt = ["aria-checked", "aria-label"], Lt = ["d"], Pt = ["checked"], Sl = {
|
|
942
942
|
__name: "form-switch",
|
|
943
943
|
props: { modelValue: Boolean },
|
|
944
944
|
emits: ["update:modelValue"],
|
|
945
|
-
setup(e, { emit:
|
|
946
|
-
const t =
|
|
945
|
+
setup(e, { emit: c }) {
|
|
946
|
+
const t = c, s = L(() => {
|
|
947
947
|
let l = Object.assign({}, Z());
|
|
948
948
|
return delete l.class, l;
|
|
949
949
|
}), a = L(() => Z().disabled || Z().disabled === "");
|
|
950
950
|
return (l, v) => (u(), m("label", {
|
|
951
|
-
class:
|
|
951
|
+
class: $(l.$attrs.class),
|
|
952
952
|
tabindex: "0"
|
|
953
953
|
}, [
|
|
954
|
-
|
|
954
|
+
d("span", {
|
|
955
955
|
role: "switch",
|
|
956
|
-
class:
|
|
956
|
+
class: $([
|
|
957
957
|
"inline-flex relative flex-shrink-0 w-11 h-6 rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out cursor-pointer focus:ring-2 focus:ring-offset-2 focus:outline-none focus:ring-vxvue",
|
|
958
958
|
a.value ? "bg-slate-200" : e.modelValue ? "bg-vxvue" : "bg-slate-300"
|
|
959
959
|
]),
|
|
960
960
|
"aria-checked": e.modelValue,
|
|
961
961
|
"aria-label": l.$attrs["aria-label"]
|
|
962
962
|
}, [
|
|
963
|
-
|
|
963
|
+
d("span", {
|
|
964
964
|
"aria-hidden": "true",
|
|
965
|
-
class:
|
|
965
|
+
class: $([
|
|
966
966
|
"block relative size-5 rounded-full ring-0 shadow transition duration-200 ease-in-out transform pointer-events-none",
|
|
967
967
|
e.modelValue ? "translate-x-5" : "translate-x-0",
|
|
968
968
|
a.value ? "bg-slate-100" : "bg-white"
|
|
@@ -975,9 +975,9 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
975
975
|
viewBox: "0 0 24 24",
|
|
976
976
|
"stroke-width": "5",
|
|
977
977
|
stroke: "currentColor",
|
|
978
|
-
class:
|
|
978
|
+
class: $(["absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-3", e.modelValue && !a.value ? "text-vxvue" : "text-slate-300"])
|
|
979
979
|
}, [
|
|
980
|
-
|
|
980
|
+
d("path", {
|
|
981
981
|
"stroke-linecap": "round",
|
|
982
982
|
"stroke-linejoin": "round",
|
|
983
983
|
d: e.modelValue ? "M12 18 V6" : "m18.5 12 c0 3.5 -3 6.5 -6.5 6.5 -3.5 0 -6.5 -3 -6.5 -6.5 0 -3.5 3 -6.5 6.5 -6.5 3.5 0 6.5 3 6.5 6.5z"
|
|
@@ -985,7 +985,7 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
985
985
|
], 2))
|
|
986
986
|
])
|
|
987
987
|
], 2),
|
|
988
|
-
|
|
988
|
+
d("input", j(s.value, {
|
|
989
989
|
checked: e.modelValue,
|
|
990
990
|
class: "hidden",
|
|
991
991
|
value: "1",
|
|
@@ -996,15 +996,15 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
996
996
|
D(l.$slots, "default")
|
|
997
997
|
], 2));
|
|
998
998
|
}
|
|
999
|
-
},
|
|
999
|
+
}, Ce = (e, c) => {
|
|
1000
1000
|
const t = e.__vccOpts || e;
|
|
1001
|
-
for (const [s, a] of
|
|
1001
|
+
for (const [s, a] of c)
|
|
1002
1002
|
t[s] = a;
|
|
1003
1003
|
return t;
|
|
1004
1004
|
}, Tt = {
|
|
1005
1005
|
"aria-live": "assertive",
|
|
1006
1006
|
class: "flex fixed inset-0 z-50 items-start py-6 px-4 pointer-events-none sm:p-6"
|
|
1007
|
-
},
|
|
1007
|
+
}, It = { class: "flex flex-col items-center space-y-4 w-full" }, Ot = { class: "p-4" }, zt = { class: "flex items-start" }, Ft = { class: "flex-shrink-0" }, Nt = { class: "flex-1 pt-0.5 ml-3 w-0" }, Et = { class: "font-bold" }, jt = { class: "mt-1" }, Yt = { class: "flex flex-shrink-0 ml-4" }, _t = /* @__PURE__ */ Object.assign({
|
|
1008
1008
|
inheritAttrs: !1
|
|
1009
1009
|
}, {
|
|
1010
1010
|
__name: "message-toast",
|
|
@@ -1016,42 +1016,42 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1016
1016
|
showTimeoutProgress: { type: Boolean, default: !1 }
|
|
1017
1017
|
},
|
|
1018
1018
|
emits: ["timeout", "close"],
|
|
1019
|
-
setup(e, { emit:
|
|
1020
|
-
const t = e, s =
|
|
1019
|
+
setup(e, { emit: c }) {
|
|
1020
|
+
const t = e, s = c, a = L(() => typeof t.message == "string" ? [t.message] : t.message), l = w(0);
|
|
1021
1021
|
let v = null;
|
|
1022
1022
|
const n = () => {
|
|
1023
1023
|
window.clearTimeout(v), l.value = 100, t.active && t.timeout && (v = window.setTimeout(() => {
|
|
1024
1024
|
s("timeout");
|
|
1025
1025
|
}, t.timeout), window.setTimeout(() => l.value = 0, 0));
|
|
1026
1026
|
};
|
|
1027
|
-
return K(() => t.active, n), me(n), (o,
|
|
1028
|
-
|
|
1029
|
-
|
|
1027
|
+
return K(() => t.active, n), me(n), (o, i) => (u(), m("div", Tt, [
|
|
1028
|
+
d("div", It, [
|
|
1029
|
+
_(ce, { name: "messagetoast-fade" }, {
|
|
1030
1030
|
default: te(() => [
|
|
1031
1031
|
e.active ? (u(), m("div", {
|
|
1032
1032
|
key: 0,
|
|
1033
|
-
class:
|
|
1033
|
+
class: $(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black ring-opacity-5 shadow-lg pointer-events-auto", o.$attrs.class])
|
|
1034
1034
|
}, [
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1035
|
+
d("div", Ot, [
|
|
1036
|
+
d("div", zt, [
|
|
1037
|
+
d("div", Ft, [
|
|
1038
1038
|
D(o.$slots, "icon", {}, void 0, !0)
|
|
1039
1039
|
]),
|
|
1040
|
-
|
|
1040
|
+
d("div", Nt, [
|
|
1041
1041
|
D(o.$slots, "title", {}, () => [
|
|
1042
|
-
|
|
1042
|
+
d("div", Et, B(e.title), 1)
|
|
1043
1043
|
], !0),
|
|
1044
1044
|
D(o.$slots, "default", {}, () => [
|
|
1045
|
-
(u(!0), m(
|
|
1045
|
+
(u(!0), m(O, null, E(a.value, (r) => (u(), m("p", jt, B(r), 1))), 256))
|
|
1046
1046
|
], !0)
|
|
1047
1047
|
]),
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
onClick:
|
|
1048
|
+
d("div", Yt, [
|
|
1049
|
+
d("button", {
|
|
1050
|
+
onClick: i[0] || (i[0] = (r) => s("close")),
|
|
1051
1051
|
class: "inline-flex text-white bg-black bg-opacity-20 rounded-sm focus:ring-2 focus:outline-none hover:text-stone-200 focus:ring-stone-200"
|
|
1052
1052
|
}, [
|
|
1053
|
-
|
|
1054
|
-
|
|
1053
|
+
i[1] || (i[1] = d("span", { class: "sr-only" }, "Close", -1)),
|
|
1054
|
+
_(A(ye), { class: "size-5" })
|
|
1055
1055
|
])
|
|
1056
1056
|
])
|
|
1057
1057
|
])
|
|
@@ -1059,7 +1059,7 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1059
1059
|
e.showTimeoutProgress && e.timeout ? (u(), m("div", {
|
|
1060
1060
|
key: 0,
|
|
1061
1061
|
class: "h-1 transition-all ease-linear bg-vxvue-alt",
|
|
1062
|
-
style:
|
|
1062
|
+
style: xe({
|
|
1063
1063
|
width: l.value + "%",
|
|
1064
1064
|
"transition-duration": e.timeout + "ms"
|
|
1065
1065
|
}),
|
|
@@ -1074,14 +1074,14 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1074
1074
|
])
|
|
1075
1075
|
]));
|
|
1076
1076
|
}
|
|
1077
|
-
}),
|
|
1077
|
+
}), Vl = /* @__PURE__ */ Ce(_t, [["__scopeId", "data-v-1300160b"]]), Rt = {
|
|
1078
1078
|
key: 0,
|
|
1079
1079
|
class: "fixed inset-0 z-[9998] bg-white/50 backdrop-blur-sm",
|
|
1080
1080
|
"aria-hidden": "true"
|
|
1081
1081
|
}, Wt = {
|
|
1082
1082
|
key: 0,
|
|
1083
1083
|
class: "fixed inset-0 z-[9999]"
|
|
1084
|
-
}, Ht = { class: "flex justify-center items-center h-screen" },
|
|
1084
|
+
}, Ht = { class: "flex justify-center items-center h-screen" }, Ml = {
|
|
1085
1085
|
__name: "modal",
|
|
1086
1086
|
props: {
|
|
1087
1087
|
show: Boolean,
|
|
@@ -1090,26 +1090,26 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1090
1090
|
contentClass: { type: String, default: "" }
|
|
1091
1091
|
},
|
|
1092
1092
|
emits: ["clicked-outside"],
|
|
1093
|
-
setup(e, { emit:
|
|
1094
|
-
const t =
|
|
1095
|
-
return fe(s, () => t("clicked-outside")), (a, l) => (u(), m(
|
|
1093
|
+
setup(e, { emit: c }) {
|
|
1094
|
+
const t = c, s = w(null);
|
|
1095
|
+
return fe(s, () => t("clicked-outside")), (a, l) => (u(), m(O, null, [
|
|
1096
1096
|
e.show ? (u(), m("div", Rt)) : T("", !0),
|
|
1097
|
-
|
|
1097
|
+
_(ce, { name: "appear" }, {
|
|
1098
1098
|
default: te(() => [
|
|
1099
1099
|
e.show ? (u(), m("div", Wt, [
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
class:
|
|
1100
|
+
d("div", Ht, [
|
|
1101
|
+
d("div", {
|
|
1102
|
+
class: $(["overflow-hidden relative max-w-full bg-white rounded ring-1 ring-black ring-opacity-10 shadow-xl transition-all transform xl:max-w-screen-xl", e.containerClass]),
|
|
1103
1103
|
ref_key: "container",
|
|
1104
1104
|
ref: s
|
|
1105
1105
|
}, [
|
|
1106
|
-
|
|
1107
|
-
class:
|
|
1106
|
+
d("div", {
|
|
1107
|
+
class: $(e.headerClass)
|
|
1108
1108
|
}, [
|
|
1109
1109
|
D(a.$slots, "title")
|
|
1110
1110
|
], 2),
|
|
1111
|
-
|
|
1112
|
-
class:
|
|
1111
|
+
d("div", {
|
|
1112
|
+
class: $(["overflow-y-auto h-full pb-4 mt-16", e.contentClass])
|
|
1113
1113
|
}, [
|
|
1114
1114
|
D(a.$slots, "default")
|
|
1115
1115
|
], 2)
|
|
@@ -1121,33 +1121,21 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1121
1121
|
})
|
|
1122
1122
|
], 64));
|
|
1123
1123
|
}
|
|
1124
|
-
}, Ut = { class: "flex justify-between items-center px-4 sm:px-0" }, Zt = { class: "flex flex-1 -mt-px w-0" }, Kt = ["disabled"], qt = { class: "hidden md:flex md:-mt-px" }, Xt = { class: "flex flex-1 justify-end -mt-px w-0" }, Gt = ["disabled"],
|
|
1124
|
+
}, Ut = { class: "flex justify-between items-center px-4 sm:px-0" }, Zt = { class: "flex flex-1 -mt-px w-0" }, Kt = ["disabled"], qt = { class: "hidden md:flex md:-mt-px" }, Xt = { class: "flex flex-1 justify-end -mt-px w-0" }, Gt = ["disabled"], Dl = {
|
|
1125
1125
|
__name: "pagination",
|
|
1126
1126
|
props: {
|
|
1127
1127
|
page: { type: Number, default: 1 },
|
|
1128
1128
|
total: { type: Number, default: 1 },
|
|
1129
|
-
perPage: {
|
|
1130
|
-
type: Number,
|
|
1131
|
-
default: 20,
|
|
1132
|
-
validator(e) {
|
|
1133
|
-
return e >= 1;
|
|
1134
|
-
}
|
|
1135
|
-
},
|
|
1129
|
+
perPage: { type: Number, default: 20, validator: (e) => e >= 1 },
|
|
1136
1130
|
showNavButtons: { type: Boolean, default: !0 },
|
|
1137
1131
|
prevText: { type: String, default: "Previous" },
|
|
1138
1132
|
nextText: { type: String, default: "Next" },
|
|
1139
1133
|
showAllPages: { type: Boolean, default: !1 },
|
|
1140
|
-
markerPosition: {
|
|
1141
|
-
type: String,
|
|
1142
|
-
default: "above",
|
|
1143
|
-
validator(e) {
|
|
1144
|
-
return ["above", "below"].indexOf(e) !== -1;
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1134
|
+
markerPosition: { type: String, default: "above", validator: (e) => ["above", "below"].includes(e) }
|
|
1147
1135
|
},
|
|
1148
1136
|
emits: ["update:page"],
|
|
1149
|
-
setup(e, { emit:
|
|
1150
|
-
const t =
|
|
1137
|
+
setup(e, { emit: c }) {
|
|
1138
|
+
const t = c, s = e, a = w(Math.ceil(s.total / s.perPage)), l = w(null), v = L(() => (s.markerPosition === "above" ? "border-t-4 -mt-[4px]" : "border-b-4 -mb-[4px]") + " py-4"), n = L(() => {
|
|
1151
1139
|
let r = [1];
|
|
1152
1140
|
if (s.showAllPages || a.value <= 7) {
|
|
1153
1141
|
for (let f = 2; f <= a.value; ++f)
|
|
@@ -1157,7 +1145,7 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1157
1145
|
return l.value >= a.value ? r.push("dots", l.value - 2, l.value - 1) : l.value - 1 && l.value - 1 > 1 && (l.value > 1 && r.push("dots"), r.push(l.value - 1)), l.value > 1 && r.push(l.value), l.value + 1 < a.value && (r.push(l.value + 1), l.value <= 1 && r.push(l.value + 2), l.value + 2 < a.value && r.push("dots")), l.value < a.value && r.push(a.value), r;
|
|
1158
1146
|
}), o = () => {
|
|
1159
1147
|
l.value > 1 && t("update:page", l.value - 1);
|
|
1160
|
-
},
|
|
1148
|
+
}, i = () => {
|
|
1161
1149
|
l.value < a.value && t("update:page", l.value + 1);
|
|
1162
1150
|
};
|
|
1163
1151
|
return K(() => s.page, (r) => l.value = Math.min(Math.max(r, 1), a.value), { immediate: !0 }), K(() => s.perPage, (r) => {
|
|
@@ -1165,25 +1153,25 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1165
1153
|
}), K(() => s.total, (r) => {
|
|
1166
1154
|
a.value = Math.ceil(s.total / s.perPage), l.value > a.value && t("update:page", a.value);
|
|
1167
1155
|
}), (r, f) => (u(), m("nav", Ut, [
|
|
1168
|
-
|
|
1156
|
+
d("div", Zt, [
|
|
1169
1157
|
e.showNavButtons ? (u(), m("button", {
|
|
1170
1158
|
key: 0,
|
|
1171
1159
|
onClick: o,
|
|
1172
1160
|
disabled: l.value <= 1,
|
|
1173
|
-
class:
|
|
1161
|
+
class: $([
|
|
1174
1162
|
l.value <= 1 ? "pointer-events-none text-gray-500" : "text-vxvue-700",
|
|
1175
1163
|
"inline-flex items-center pr-1 text-sm border-transparent hover:text-vxvue"
|
|
1176
1164
|
])
|
|
1177
1165
|
}, [
|
|
1178
|
-
|
|
1166
|
+
_(A(re), { class: "size-5" }),
|
|
1179
1167
|
X(" " + B(e.prevText), 1)
|
|
1180
1168
|
], 10, Kt)) : T("", !0)
|
|
1181
1169
|
]),
|
|
1182
|
-
|
|
1183
|
-
(u(!0), m(
|
|
1170
|
+
d("div", qt, [
|
|
1171
|
+
(u(!0), m(O, null, E(n.value, (x, h) => (u(), W(ie(x !== "dots" ? "button" : "span"), {
|
|
1184
1172
|
onClick: (p) => x !== "dots" ? t("update:page", x) : null,
|
|
1185
1173
|
key: h,
|
|
1186
|
-
class:
|
|
1174
|
+
class: $([
|
|
1187
1175
|
{ "pointer-events-none": x === "dots" },
|
|
1188
1176
|
x === l.value ? "border-vxvue text-vxvue font-bold" : "border-transparent text-gray-500 hover:border-gray-300",
|
|
1189
1177
|
v.value,
|
|
@@ -1196,24 +1184,24 @@ const vt = { key: 0 }, mt = { class: "text-vxvue-700" }, ft = /* @__PURE__ */ Ob
|
|
|
1196
1184
|
_: 2
|
|
1197
1185
|
}, 1032, ["onClick", "class"]))), 128))
|
|
1198
1186
|
]),
|
|
1199
|
-
|
|
1187
|
+
d("div", Xt, [
|
|
1200
1188
|
e.showNavButtons ? (u(), m("button", {
|
|
1201
1189
|
key: 0,
|
|
1202
|
-
onClick:
|
|
1190
|
+
onClick: i,
|
|
1203
1191
|
disabled: l.value >= a.value,
|
|
1204
|
-
class:
|
|
1192
|
+
class: $([
|
|
1205
1193
|
l.value >= a.value ? "pointer-events-none text-gray-500" : "text-vxvue-700",
|
|
1206
1194
|
"inline-flex items-center pr-1 text-sm border-transparent hover:text-vxvue"
|
|
1207
1195
|
])
|
|
1208
1196
|
}, [
|
|
1209
1197
|
X(B(e.nextText) + " ", 1),
|
|
1210
|
-
|
|
1198
|
+
_(A(ne), { class: "size-5" })
|
|
1211
1199
|
], 10, Gt)) : T("", !0)
|
|
1212
1200
|
])
|
|
1213
1201
|
]));
|
|
1214
1202
|
}
|
|
1215
1203
|
};
|
|
1216
|
-
function Jt(e,
|
|
1204
|
+
function Jt(e, c) {
|
|
1217
1205
|
return u(), m("svg", {
|
|
1218
1206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1219
1207
|
fill: "none",
|
|
@@ -1223,14 +1211,14 @@ function Jt(e, d) {
|
|
|
1223
1211
|
"aria-hidden": "true",
|
|
1224
1212
|
"data-slot": "icon"
|
|
1225
1213
|
}, [
|
|
1226
|
-
|
|
1214
|
+
d("path", {
|
|
1227
1215
|
"stroke-linecap": "round",
|
|
1228
1216
|
"stroke-linejoin": "round",
|
|
1229
1217
|
d: "M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"
|
|
1230
1218
|
})
|
|
1231
1219
|
]);
|
|
1232
1220
|
}
|
|
1233
|
-
function Qt(e,
|
|
1221
|
+
function Qt(e, c) {
|
|
1234
1222
|
return u(), m("svg", {
|
|
1235
1223
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1236
1224
|
fill: "none",
|
|
@@ -1240,36 +1228,36 @@ function Qt(e, d) {
|
|
|
1240
1228
|
"aria-hidden": "true",
|
|
1241
1229
|
"data-slot": "icon"
|
|
1242
1230
|
}, [
|
|
1243
|
-
|
|
1231
|
+
d("path", {
|
|
1244
1232
|
"stroke-linecap": "round",
|
|
1245
1233
|
"stroke-linejoin": "round",
|
|
1246
1234
|
d: "M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"
|
|
1247
1235
|
}),
|
|
1248
|
-
|
|
1236
|
+
d("path", {
|
|
1249
1237
|
"stroke-linecap": "round",
|
|
1250
1238
|
"stroke-linejoin": "round",
|
|
1251
1239
|
d: "M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
1252
1240
|
})
|
|
1253
1241
|
]);
|
|
1254
1242
|
}
|
|
1255
|
-
const el = ["value", "type"], tl = ["disabled"],
|
|
1243
|
+
const el = ["value", "type"], tl = ["disabled"], Al = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1256
1244
|
__name: "password-input",
|
|
1257
1245
|
props: ["modelValue"],
|
|
1258
1246
|
emits: ["update:modelValue"],
|
|
1259
|
-
setup(e, { emit:
|
|
1260
|
-
const t =
|
|
1247
|
+
setup(e, { emit: c }) {
|
|
1248
|
+
const t = c, s = w(!1), a = L(() => {
|
|
1261
1249
|
let l = Object.assign({}, Z());
|
|
1262
1250
|
return delete l.class, l;
|
|
1263
1251
|
});
|
|
1264
1252
|
return (l, v) => (u(), m("div", {
|
|
1265
|
-
class:
|
|
1253
|
+
class: $("inline-block relative " + Z().class)
|
|
1266
1254
|
}, [
|
|
1267
|
-
|
|
1255
|
+
d("input", j({
|
|
1268
1256
|
value: e.modelValue,
|
|
1269
1257
|
type: s.value ? "text" : "password",
|
|
1270
1258
|
onInput: v[0] || (v[0] = (n) => t("update:modelValue", n.target.value))
|
|
1271
1259
|
}, a.value, { class: "block pr-12 w-full form-input peer" }), null, 16, el),
|
|
1272
|
-
|
|
1260
|
+
d("button", {
|
|
1273
1261
|
class: "flex absolute inset-y-0 right-0 items-center px-3 text-brand-700 hover:text-brand",
|
|
1274
1262
|
"aria-label": "show-password-toggle",
|
|
1275
1263
|
disabled: Z().disabled ?? !1,
|
|
@@ -1288,23 +1276,23 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1288
1276
|
}), ll = { class: "flex items-center pb-1" }, al = {
|
|
1289
1277
|
key: 0,
|
|
1290
1278
|
class: "ml-6"
|
|
1291
|
-
},
|
|
1279
|
+
}, Bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1292
1280
|
__name: "simple-tree",
|
|
1293
1281
|
props: {
|
|
1294
1282
|
branch: { type: Object, default: {} },
|
|
1295
1283
|
modelValue: { type: Object, default: null }
|
|
1296
1284
|
},
|
|
1297
1285
|
emits: ["update:modelValue", "expand"],
|
|
1298
|
-
setup(e, { emit:
|
|
1299
|
-
const t = e, s =
|
|
1286
|
+
setup(e, { emit: c }) {
|
|
1287
|
+
const t = e, s = c, a = w(!1);
|
|
1300
1288
|
return me(() => {
|
|
1301
1289
|
t.branch === t.modelValue && s("expand", !0);
|
|
1302
1290
|
}), (l, v) => {
|
|
1303
1291
|
const n = Le("simple-tree", !0);
|
|
1304
1292
|
return u(), m("div", {
|
|
1305
|
-
class:
|
|
1293
|
+
class: $([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", l.$attrs.class])
|
|
1306
1294
|
}, [
|
|
1307
|
-
|
|
1295
|
+
d("div", ll, [
|
|
1308
1296
|
e.branch.branches && e.branch.branches.length ? (u(), m("button", {
|
|
1309
1297
|
key: 0,
|
|
1310
1298
|
onClick: v[0] || (v[0] = (o) => a.value = !a.value),
|
|
@@ -1321,7 +1309,7 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1321
1309
|
key: 1,
|
|
1322
1310
|
branch: e.branch
|
|
1323
1311
|
}, () => [
|
|
1324
|
-
|
|
1312
|
+
d("strong", null, B(e.branch.label), 1)
|
|
1325
1313
|
]) : (u(), m("button", {
|
|
1326
1314
|
key: 2,
|
|
1327
1315
|
onClick: v[1] || (v[1] = (o) => s("update:modelValue", e.branch))
|
|
@@ -1331,17 +1319,17 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1331
1319
|
])
|
|
1332
1320
|
]))
|
|
1333
1321
|
]),
|
|
1334
|
-
e.branch.branches && e.branch.branches.length ?
|
|
1335
|
-
(u(!0), m(
|
|
1322
|
+
e.branch.branches && e.branch.branches.length ? be((u(), m("div", al, [
|
|
1323
|
+
(u(!0), m(O, null, E(e.branch.branches, (o) => (u(), W(n, {
|
|
1336
1324
|
key: o.id || o.key || null,
|
|
1337
1325
|
branch: o,
|
|
1338
1326
|
"model-value": e.modelValue,
|
|
1339
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
1340
|
-
onExpand: v[3] || (v[3] = (
|
|
1341
|
-
a.value =
|
|
1327
|
+
"onUpdate:modelValue": v[2] || (v[2] = (i) => s("update:modelValue", i)),
|
|
1328
|
+
onExpand: v[3] || (v[3] = (i) => {
|
|
1329
|
+
a.value = i, s("expand", i);
|
|
1342
1330
|
})
|
|
1343
1331
|
}, Pe({ _: 2 }, [
|
|
1344
|
-
E(l.$slots, (
|
|
1332
|
+
E(l.$slots, (i, r) => ({
|
|
1345
1333
|
name: r,
|
|
1346
1334
|
fn: te((f) => [
|
|
1347
1335
|
D(l.$slots, r, j({ ref_for: !0 }, f))
|
|
@@ -1354,35 +1342,35 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1354
1342
|
], 2);
|
|
1355
1343
|
};
|
|
1356
1344
|
}
|
|
1357
|
-
}),
|
|
1345
|
+
}), Ll = {
|
|
1358
1346
|
__name: "sizable",
|
|
1359
1347
|
props: { vertical: Boolean },
|
|
1360
1348
|
emits: ["dragStart", "dragStop"],
|
|
1361
|
-
setup(e, { emit:
|
|
1362
|
-
const t = e, s =
|
|
1363
|
-
let v = !1, n = {}, o = null,
|
|
1349
|
+
setup(e, { emit: c }) {
|
|
1350
|
+
const t = e, s = c, a = w(null), l = w(null);
|
|
1351
|
+
let v = !1, n = {}, o = null, i = null, r = null;
|
|
1364
1352
|
const f = (p) => {
|
|
1365
|
-
var
|
|
1353
|
+
var C;
|
|
1366
1354
|
if (v) {
|
|
1367
1355
|
p.preventDefault();
|
|
1368
|
-
const { pageX:
|
|
1369
|
-
t.vertical ? a.value.style.height = Math.min(
|
|
1356
|
+
const { pageX: I, pageY: z } = ((C = p.touches) == null ? void 0 : C[0]) ?? p;
|
|
1357
|
+
t.vertical ? a.value.style.height = Math.min(i.height - r.height - (o.y - i.y), Math.max(0, o.height + z - n.y)) + "px" : a.value.style.width = Math.min(i.width - r.width - (o.x - i.x), Math.max(0, o.width + I - n.x)) + "px";
|
|
1370
1358
|
}
|
|
1371
1359
|
}, x = (p) => {
|
|
1372
1360
|
var z;
|
|
1373
1361
|
p.preventDefault(), p.currentTarget.focus(), v = !0;
|
|
1374
|
-
const { pageX:
|
|
1375
|
-
n = { x:
|
|
1362
|
+
const { pageX: C, pageY: I } = ((z = p.touches) == null ? void 0 : z[0]) ?? p;
|
|
1363
|
+
n = { x: C, y: I }, r = l.value.getBoundingClientRect(), o = a.value.getBoundingClientRect(), i = a.value.parentElement.getBoundingClientRect(), p.type === "mousedown" ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", h)) : (document.addEventListener("touchmove", f), document.addEventListener("touchend", h)), s("dragStart");
|
|
1376
1364
|
}, h = (p) => {
|
|
1377
1365
|
v && (v = !1, p.type === "mouseup" ? (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", h)) : (document.removeEventListener("touchmove", f), document.removeEventListener("touchend", h)), setTimeout(() => s("dragStop"), 0));
|
|
1378
1366
|
};
|
|
1379
|
-
return (p,
|
|
1367
|
+
return (p, C) => (u(), m("div", {
|
|
1380
1368
|
class: "relative",
|
|
1381
1369
|
ref_key: "box",
|
|
1382
1370
|
ref: a
|
|
1383
1371
|
}, [
|
|
1384
1372
|
D(p.$slots, "default"),
|
|
1385
|
-
|
|
1373
|
+
d("div", j({
|
|
1386
1374
|
class: ["absolute flex", t.vertical ? "inset-x-0 top-full justify-center py-1 cursor-ns-resize" : "inset-y-0 left-full items-center px-1 cursor-ew-resize"]
|
|
1387
1375
|
}, oe({
|
|
1388
1376
|
touchstart: x,
|
|
@@ -1394,14 +1382,14 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1394
1382
|
ref: l
|
|
1395
1383
|
}), [
|
|
1396
1384
|
D(p.$slots, "handle", {}, () => [
|
|
1397
|
-
|
|
1398
|
-
class:
|
|
1385
|
+
d("div", {
|
|
1386
|
+
class: $(["rounded-full bg-vxvue", t.vertical ? "h-1.5 w-8" : "h-8 w-1.5"])
|
|
1399
1387
|
}, null, 2)
|
|
1400
1388
|
])
|
|
1401
1389
|
], 16)
|
|
1402
1390
|
], 512));
|
|
1403
1391
|
}
|
|
1404
|
-
}, sl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], nl = ["id"], ol = ["id", "aria-label"],
|
|
1392
|
+
}, sl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], nl = ["id"], ol = ["id", "aria-label"], Pl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1405
1393
|
__name: "slider",
|
|
1406
1394
|
props: {
|
|
1407
1395
|
min: { type: Number, default: 0 },
|
|
@@ -1409,61 +1397,61 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1409
1397
|
vertical: Boolean,
|
|
1410
1398
|
disabled: Boolean,
|
|
1411
1399
|
modelValue: { type: [Number, Array], validator(e) {
|
|
1412
|
-
return typeof e == "number" || e.every((
|
|
1400
|
+
return typeof e == "number" || e.every((c) => typeof c == "number");
|
|
1413
1401
|
} }
|
|
1414
1402
|
},
|
|
1415
1403
|
emits: ["update:modelValue", "dragStart", "dragStop"],
|
|
1416
|
-
setup(e, { emit:
|
|
1417
|
-
const t = e, s =
|
|
1404
|
+
setup(e, { emit: c }) {
|
|
1405
|
+
const t = e, s = c, a = Z(), l = { x: null, y: null }, v = { w: null, h: null };
|
|
1418
1406
|
let n = !1;
|
|
1419
|
-
const o = w(null),
|
|
1420
|
-
const k = t.max,
|
|
1421
|
-
return t.modelValue instanceof Array ? t.modelValue.map((F) => (Math.max(Math.min(F, k),
|
|
1407
|
+
const o = w(null), i = w(0), r = L(() => {
|
|
1408
|
+
const k = t.max, S = t.min;
|
|
1409
|
+
return t.modelValue instanceof Array ? t.modelValue.map((F) => (Math.max(Math.min(F, k), S) - S) * 100 / (k - S)) : (Math.max(Math.min(t.modelValue, k), S) - S) * 100 / (k - S);
|
|
1422
1410
|
}), f = L(() => {
|
|
1423
1411
|
if (t.modelValue instanceof Array) {
|
|
1424
|
-
const k = Math.min(...r.value) + "%",
|
|
1425
|
-
return t.vertical ? { bottom: k, height:
|
|
1412
|
+
const k = Math.min(...r.value) + "%", S = Math.max(...r.value) - Math.min(...r.value) + "%";
|
|
1413
|
+
return t.vertical ? { bottom: k, height: S } : { left: k, width: S };
|
|
1426
1414
|
}
|
|
1427
1415
|
return t.vertical ? { bottom: 0, height: r.value + "%" } : { width: r.value + "%" };
|
|
1428
1416
|
}), x = w({
|
|
1429
1417
|
class: (t.vertical ? "left-0 -translate-x-1.5 translate-y-2.5" : "top-0 -translate-x-2.5 -translate-y-1.5") + " touch-none absolute size-5 rounded-full border-2 bg-white transition-colors duration-200 " + (t.disabled ? "" : " focus:ring-4 focus:outline-none border-vxvue cursor-grab hover:bg-vxvue focus:ring-vxvue/50"),
|
|
1430
1418
|
tabindex: 0
|
|
1431
1419
|
}), h = (k) => {
|
|
1432
|
-
let
|
|
1433
|
-
if (
|
|
1420
|
+
let S = parseFloat(k.toFixed(10));
|
|
1421
|
+
if (S = Math.min(t.max, Math.max(t.min, S)), t.modelValue instanceof Array) {
|
|
1434
1422
|
let F = [...t.modelValue];
|
|
1435
|
-
F[
|
|
1423
|
+
F[i.value] = S, s("update:modelValue", F);
|
|
1436
1424
|
} else
|
|
1437
|
-
s("update:modelValue",
|
|
1425
|
+
s("update:modelValue", S);
|
|
1438
1426
|
}, p = (k) => {
|
|
1439
|
-
const { pageX:
|
|
1427
|
+
const { pageX: S, pageY: F } = k.touches ? k.touches[0] : k, g = t.vertical ? (-F + l.y) / v.h : (S - l.x) / v.w;
|
|
1440
1428
|
h(Math.floor((t.max - t.min) * g + t.min));
|
|
1441
|
-
},
|
|
1442
|
-
const { clientLeft: k, clientTop:
|
|
1443
|
-
l.x = b.left + F - k, l.y = b.bottom + g -
|
|
1444
|
-
},
|
|
1429
|
+
}, C = () => {
|
|
1430
|
+
const { clientLeft: k, clientTop: S, scrollLeft: F, scrollTop: g } = document.documentElement, b = o.value.getBoundingClientRect();
|
|
1431
|
+
l.x = b.left + F - k, l.y = b.bottom + g - S, v.w = o.value.offsetWidth, v.h = o.value.offsetHeight;
|
|
1432
|
+
}, I = (k) => {
|
|
1445
1433
|
n && (k.preventDefault(), p(k));
|
|
1446
1434
|
}, z = (k) => {
|
|
1447
|
-
k.preventDefault(), k.currentTarget.focus(),
|
|
1448
|
-
},
|
|
1449
|
-
n && (n = !1, k.type === "mouseup" ? (document.removeEventListener("mousemove",
|
|
1435
|
+
k.preventDefault(), k.currentTarget.focus(), C(), n = !0, k.type === "mousedown" ? (document.addEventListener("mousemove", I), document.addEventListener("mouseup", Y)) : (document.addEventListener("touchmove", I), document.addEventListener("touchend", Y)), s("dragStart");
|
|
1436
|
+
}, Y = (k) => {
|
|
1437
|
+
n && (n = !1, k.type === "mouseup" ? (document.removeEventListener("mousemove", I), document.removeEventListener("mouseup", Y)) : (document.removeEventListener("touchmove", I), document.removeEventListener("touchend", Y)), setTimeout(() => s("dragStop"), 0));
|
|
1450
1438
|
}, G = (k) => {
|
|
1451
1439
|
k.keyCode >= 33 && k.keyCode <= 40 && k.preventDefault();
|
|
1452
|
-
const
|
|
1440
|
+
const S = t.modelValue[i.value] ?? t.modelValue;
|
|
1453
1441
|
switch (k.keyCode) {
|
|
1454
1442
|
case 37:
|
|
1455
1443
|
case 40:
|
|
1456
|
-
h(
|
|
1444
|
+
h(S - 1);
|
|
1457
1445
|
break;
|
|
1458
1446
|
case 39:
|
|
1459
1447
|
case 38:
|
|
1460
|
-
h(
|
|
1448
|
+
h(S + 1);
|
|
1461
1449
|
break;
|
|
1462
1450
|
case 33:
|
|
1463
|
-
h(
|
|
1451
|
+
h(S + (t.max - t.min) / 10);
|
|
1464
1452
|
break;
|
|
1465
1453
|
case 34:
|
|
1466
|
-
h(
|
|
1454
|
+
h(S - (t.max - t.min) / 10);
|
|
1467
1455
|
break;
|
|
1468
1456
|
case 36:
|
|
1469
1457
|
h(t.min);
|
|
@@ -1472,9 +1460,9 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1472
1460
|
h(t.max);
|
|
1473
1461
|
}
|
|
1474
1462
|
}, U = (k) => {
|
|
1475
|
-
|
|
1463
|
+
C(), p(k);
|
|
1476
1464
|
};
|
|
1477
|
-
return (k,
|
|
1465
|
+
return (k, S) => (u(), m("div", j({
|
|
1478
1466
|
class: ["relative bg-slate-300", e.vertical ? "h-full w-2 rounded-t-full rounded-b-full" : "w-full h-2 rounded-r-full rounded-l-full"],
|
|
1479
1467
|
ref_key: "track",
|
|
1480
1468
|
ref: o,
|
|
@@ -1489,52 +1477,52 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1489
1477
|
}, !0)), [
|
|
1490
1478
|
e.disabled ? T("", !0) : (u(), m("div", {
|
|
1491
1479
|
key: 0,
|
|
1492
|
-
class:
|
|
1493
|
-
style:
|
|
1480
|
+
class: $(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
|
|
1481
|
+
style: xe(f.value)
|
|
1494
1482
|
}, null, 6)),
|
|
1495
|
-
e.modelValue.length ? (u(!0), m(
|
|
1483
|
+
e.modelValue.length ? (u(!0), m(O, { key: 2 }, E(e.modelValue, (F, g) => (u(), m("button", j({
|
|
1496
1484
|
id: g ? null : A(a).id,
|
|
1497
1485
|
style: e.vertical ? { bottom: r.value[g] + "%" } : { left: r.value[g] + "%" },
|
|
1498
1486
|
"aria-label": "slider-thumb-" + (g + 1)
|
|
1499
1487
|
}, oe(e.disabled ? {} : {
|
|
1500
|
-
focus: () =>
|
|
1488
|
+
focus: () => i.value = g,
|
|
1501
1489
|
keydown: G,
|
|
1502
1490
|
touchstart: (b) => {
|
|
1503
|
-
|
|
1491
|
+
i.value = g, z(b);
|
|
1504
1492
|
},
|
|
1505
1493
|
mousedown: (b) => {
|
|
1506
|
-
|
|
1494
|
+
i.value = g, z(b);
|
|
1507
1495
|
},
|
|
1508
|
-
touchend:
|
|
1509
|
-
mouseup:
|
|
1496
|
+
touchend: Y,
|
|
1497
|
+
mouseup: Y
|
|
1510
1498
|
}, !0), { ref_for: !0 }, x.value), null, 16, ol))), 256)) : (u(), m("button", j({
|
|
1511
1499
|
key: 1,
|
|
1512
1500
|
id: A(a).id,
|
|
1513
1501
|
style: e.vertical ? { bottom: r.value + "%" } : { left: r.value + "%" },
|
|
1514
1502
|
"aria-label": "slider-thumb"
|
|
1515
1503
|
}, oe(e.disabled ? {} : {
|
|
1516
|
-
focus: () =>
|
|
1504
|
+
focus: () => i.value = 0,
|
|
1517
1505
|
keydown: G,
|
|
1518
1506
|
touchstart: (F) => {
|
|
1519
|
-
|
|
1507
|
+
i.value = 0, z(F);
|
|
1520
1508
|
},
|
|
1521
1509
|
mousedown: (F) => {
|
|
1522
|
-
|
|
1510
|
+
i.value = 0, z(F);
|
|
1523
1511
|
},
|
|
1524
|
-
touchend:
|
|
1525
|
-
mouseup:
|
|
1512
|
+
touchend: Y,
|
|
1513
|
+
mouseup: Y
|
|
1526
1514
|
}, !0), x.value), null, 16, nl))
|
|
1527
1515
|
], 16, sl));
|
|
1528
1516
|
}
|
|
1529
|
-
}), rl =
|
|
1517
|
+
}), rl = ["data-active", "onClick"], ul = { class: "flex items-center space-x-1" }, il = ["data-active"], Tl = {
|
|
1530
1518
|
__name: "sortable",
|
|
1531
1519
|
props: {
|
|
1532
1520
|
columns: {
|
|
1533
1521
|
type: Array,
|
|
1534
1522
|
required: !0,
|
|
1535
1523
|
validator: (e) => {
|
|
1536
|
-
for (const
|
|
1537
|
-
if (
|
|
1524
|
+
for (const c of e)
|
|
1525
|
+
if (c.label === void 0 || c.prop === void 0)
|
|
1538
1526
|
return !1;
|
|
1539
1527
|
return !0;
|
|
1540
1528
|
}
|
|
@@ -1543,29 +1531,35 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1543
1531
|
offset: { type: Number, default: null },
|
|
1544
1532
|
count: { type: Number, default: null },
|
|
1545
1533
|
sortProp: { type: String },
|
|
1546
|
-
sortDirection: { type: String, validator: (e) => !e || ["asc", "desc"].
|
|
1547
|
-
keyProperty: { type: String, default: "key" }
|
|
1534
|
+
sortDirection: { type: String, validator: (e) => !e || ["asc", "desc"].includes(e) },
|
|
1535
|
+
keyProperty: { type: String, default: "key" },
|
|
1536
|
+
headerClass: { type: String, default: "text-white bg-vxvue-700 [&_*[data-active]]:bg-vxvue-alt-800" },
|
|
1537
|
+
bodyClass: { type: String, default: "[&>*:nth-child(even)]:bg-vxvue-50 [&>*:nth-child(even)_*[data-active]]:bg-vxvue-alt-100 [&>*:nth-child(odd)_*[data-active]]:bg-vxvue-alt-50" }
|
|
1548
1538
|
},
|
|
1549
1539
|
emits: ["before-sort", "after-sort"],
|
|
1550
|
-
setup(e, { emit:
|
|
1551
|
-
const t = e, s =
|
|
1540
|
+
setup(e, { emit: c }) {
|
|
1541
|
+
const t = e, s = c, a = w(t.sortProp), l = w(t.sortDirection), v = L(() => {
|
|
1552
1542
|
let o = t.rows.slice();
|
|
1553
|
-
const
|
|
1554
|
-
return
|
|
1543
|
+
const i = t.columns.find(({ prop: r }) => r === a.value);
|
|
1544
|
+
return i && (l.value === "asc" && i.sortAscFunction ? o.sort(i.sortAscFunction) : l.value === "desc" && i.sortDescFunction ? o.sort(i.sortDescFunction) : o.sort((r, f) => r[a.value] < f[a.value] ? l.value === "asc" ? -1 : 1 : r[a.value] > f[a.value] ? l.value === "asc" ? 1 : -1 : 0)), o.slice(t.offset || 0, (t.offset || 0) + (t.count || o.length));
|
|
1555
1545
|
}), n = (o) => {
|
|
1556
1546
|
s("before-sort", { prop: a.value, dir: l.value }), a.value === o ? l.value = l.value === "asc" ? "desc" : "asc" : (a.value = o, l.value = l.value || "asc"), ve(() => s("after-sort", { prop: a.value, dir: l.value }));
|
|
1557
1547
|
};
|
|
1558
|
-
return (o,
|
|
1559
|
-
class:
|
|
1548
|
+
return (o, i) => (u(), m("table", {
|
|
1549
|
+
class: $(o.$attrs.class || "w-full divide-y divide-y-slate-900 table-fixed")
|
|
1560
1550
|
}, [
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1551
|
+
d("thead", {
|
|
1552
|
+
class: $(e.headerClass)
|
|
1553
|
+
}, [
|
|
1554
|
+
d("tr", null, [
|
|
1555
|
+
(u(!0), m(O, null, E(e.columns, (r) => (u(), m("th", {
|
|
1564
1556
|
scope: "col",
|
|
1565
|
-
|
|
1566
|
-
|
|
1557
|
+
"data-active": a.value === r.prop ? "active" : null,
|
|
1558
|
+
class: $([
|
|
1559
|
+
"py-3 px-6 text-left",
|
|
1560
|
+
{ "cursor-pointer": r.sortable },
|
|
1567
1561
|
r.cssClass
|
|
1568
|
-
]
|
|
1562
|
+
]),
|
|
1569
1563
|
onClick: (f) => r.sortable ? n(r.prop) : null
|
|
1570
1564
|
}, [
|
|
1571
1565
|
D(o.$slots, r.prop + "-header", {
|
|
@@ -1573,69 +1567,72 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1573
1567
|
sortDir: l.value,
|
|
1574
1568
|
sortProp: a.value
|
|
1575
1569
|
}, () => [
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
r.sortable ? (u(), W(ie(a.value !== r.prop ? A(
|
|
1570
|
+
d("div", ul, [
|
|
1571
|
+
d("span", null, B(r.label), 1),
|
|
1572
|
+
r.sortable ? (u(), W(ie(a.value !== r.prop ? A(Oe) : l.value === "asc" ? A(Ie) : A(ze)), {
|
|
1579
1573
|
key: 0,
|
|
1580
1574
|
class: "size-4"
|
|
1581
1575
|
})) : T("", !0)
|
|
1582
1576
|
])
|
|
1583
|
-
]
|
|
1584
|
-
], 10,
|
|
1577
|
+
])
|
|
1578
|
+
], 10, rl))), 256))
|
|
1585
1579
|
])
|
|
1586
|
-
]),
|
|
1587
|
-
|
|
1588
|
-
|
|
1580
|
+
], 2),
|
|
1581
|
+
d("tbody", {
|
|
1582
|
+
class: $(e.bodyClass)
|
|
1583
|
+
}, [
|
|
1584
|
+
(u(!0), m(O, null, E(v.value, (r) => (u(), m("tr", {
|
|
1589
1585
|
key: r[e.keyProperty],
|
|
1590
|
-
class:
|
|
1586
|
+
class: $(r.cssClass)
|
|
1591
1587
|
}, [
|
|
1592
|
-
(u(!0), m(
|
|
1593
|
-
class:
|
|
1588
|
+
(u(!0), m(O, null, E(e.columns, (f) => (u(), m("td", {
|
|
1589
|
+
class: "overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis",
|
|
1590
|
+
"data-active": a.value === f.prop ? "active" : null
|
|
1594
1591
|
}, [
|
|
1595
1592
|
D(o.$slots, f.prop, { row: r }, () => [
|
|
1596
1593
|
X(B(r[f.prop]), 1)
|
|
1597
|
-
]
|
|
1598
|
-
],
|
|
1594
|
+
])
|
|
1595
|
+
], 8, il))), 256))
|
|
1599
1596
|
], 2))), 128))
|
|
1600
|
-
])
|
|
1597
|
+
], 2)
|
|
1601
1598
|
], 2));
|
|
1602
1599
|
}
|
|
1603
|
-
},
|
|
1600
|
+
}, dl = { class: "flex items-center space-x-2" }, cl = ["disabled"], vl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1604
1601
|
__name: "submit-button",
|
|
1605
1602
|
props: { busy: Boolean, spinnerClass: String, theme: String },
|
|
1606
1603
|
emits: ["submit"],
|
|
1607
|
-
setup(e, { emit:
|
|
1608
|
-
const t =
|
|
1609
|
-
return (s, a) => (u(), m("div",
|
|
1610
|
-
|
|
1611
|
-
class:
|
|
1604
|
+
setup(e, { emit: c }) {
|
|
1605
|
+
const t = c;
|
|
1606
|
+
return (s, a) => (u(), m("div", dl, [
|
|
1607
|
+
d("button", {
|
|
1608
|
+
class: $([s.$attrs.class, e.theme]),
|
|
1612
1609
|
disabled: s.$attrs.disabled || e.busy,
|
|
1613
1610
|
type: "button",
|
|
1614
1611
|
onClick: a[0] || (a[0] = (l) => t("submit"))
|
|
1615
1612
|
}, [
|
|
1616
1613
|
D(s.$slots, "default", {}, void 0, !0)
|
|
1617
|
-
], 10,
|
|
1618
|
-
e.busy ? (u(), W(
|
|
1614
|
+
], 10, cl),
|
|
1615
|
+
e.busy ? (u(), W(we, {
|
|
1619
1616
|
key: 0,
|
|
1620
|
-
class:
|
|
1617
|
+
class: $(e.spinnerClass || ["size-5", { error: "text-error", success: "text-success", default: "text-vxvue" }[e.theme || "default"]])
|
|
1621
1618
|
}, null, 8, ["class"])) : T("", !0)
|
|
1622
1619
|
]));
|
|
1623
1620
|
}
|
|
1624
|
-
}), Il = /* @__PURE__ */
|
|
1621
|
+
}), Il = /* @__PURE__ */ Ce(vl, [["__scopeId", "data-v-2eba6082"]]), ml = { class: "sm:hidden" }, fl = { class: "hidden sm:block" }, hl = { class: "border-b border-gray-200" }, pl = {
|
|
1625
1622
|
class: "flex -mb-px space-x-8",
|
|
1626
1623
|
"aria-label": "Tabs"
|
|
1627
|
-
},
|
|
1624
|
+
}, gl = ["onClick", "aria-current"], Ol = {
|
|
1628
1625
|
__name: "tabs",
|
|
1629
1626
|
props: {
|
|
1630
1627
|
items: { type: Array, default: [] },
|
|
1631
1628
|
activeIndex: { type: Number, default: 0 }
|
|
1632
1629
|
},
|
|
1633
1630
|
emits: ["update:active-index"],
|
|
1634
|
-
setup(e, { emit:
|
|
1635
|
-
const t = e, s =
|
|
1631
|
+
setup(e, { emit: c }) {
|
|
1632
|
+
const t = e, s = c, a = w(t.items[t.activeIndex] || {}), l = L(() => {
|
|
1636
1633
|
let n = [];
|
|
1637
|
-
return t.items.forEach((o,
|
|
1638
|
-
o.disabled || n.push({ label: o.name, key:
|
|
1634
|
+
return t.items.forEach((o, i) => {
|
|
1635
|
+
o.disabled || n.push({ label: o.name, key: i });
|
|
1639
1636
|
}), n;
|
|
1640
1637
|
});
|
|
1641
1638
|
K(() => t.activeIndex, (n) => {
|
|
@@ -1644,46 +1641,52 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1644
1641
|
const v = (n) => {
|
|
1645
1642
|
n.disabled || (a.value = n, s("update:active-index", t.items.indexOf(n)));
|
|
1646
1643
|
};
|
|
1647
|
-
return (n, o) => (u(), m(
|
|
1648
|
-
|
|
1649
|
-
|
|
1644
|
+
return (n, o) => (u(), m(O, null, [
|
|
1645
|
+
d("div", ml, [
|
|
1646
|
+
_(At, {
|
|
1650
1647
|
options: l.value,
|
|
1651
1648
|
"model-value": e.activeIndex,
|
|
1652
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1649
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => s("update:activeIndex", i)),
|
|
1653
1650
|
class: "w-full"
|
|
1654
1651
|
}, null, 8, ["options", "model-value"])
|
|
1655
1652
|
]),
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
(u(!0), m(
|
|
1660
|
-
key:
|
|
1653
|
+
d("div", fl, [
|
|
1654
|
+
d("div", hl, [
|
|
1655
|
+
d("nav", pl, [
|
|
1656
|
+
(u(!0), m(O, null, E(e.items, (i) => (u(), m("a", {
|
|
1657
|
+
key: i.name,
|
|
1661
1658
|
href: "#",
|
|
1662
|
-
onClick: N((r) => v(
|
|
1663
|
-
class:
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1659
|
+
onClick: N((r) => v(i), ["prevent"]),
|
|
1660
|
+
class: $([
|
|
1661
|
+
"group inline-flex items-center py-4 px-1 border-b-4 font-medium !no-underline border-transparent",
|
|
1662
|
+
{
|
|
1663
|
+
"border-vxvue text-vxvue": a.value === i,
|
|
1664
|
+
"cursor-not-allowed text-gray-400": i.disabled,
|
|
1665
|
+
"text-gray-900 hover:text-vxvue-600 hover:border-vxvue-600": a.value !== i && !i.disabled
|
|
1666
|
+
}
|
|
1667
1667
|
]),
|
|
1668
|
-
"aria-current": a.value ===
|
|
1668
|
+
"aria-current": a.value === i ? "page" : void 0
|
|
1669
1669
|
}, [
|
|
1670
|
-
D(n.$slots, "icon", { tab:
|
|
1671
|
-
|
|
1672
|
-
D(n.$slots, "default", { tab:
|
|
1673
|
-
X(B(
|
|
1670
|
+
D(n.$slots, "icon", { tab: i }),
|
|
1671
|
+
d("span", null, [
|
|
1672
|
+
D(n.$slots, "default", { tab: i }, () => [
|
|
1673
|
+
X(B(i.name), 1)
|
|
1674
1674
|
])
|
|
1675
1675
|
]),
|
|
1676
|
-
D(n.$slots, "badge", { tab:
|
|
1677
|
-
|
|
1676
|
+
D(n.$slots, "badge", { tab: i }, () => [
|
|
1677
|
+
i.badge ? (u(), m("span", {
|
|
1678
1678
|
key: 0,
|
|
1679
|
-
class:
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1679
|
+
class: $([
|
|
1680
|
+
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block text-current",
|
|
1681
|
+
{
|
|
1682
|
+
"bg-gray-100": i.disabled,
|
|
1683
|
+
"bg-vxvue-50": a.value === i,
|
|
1684
|
+
"bg-gray-200": a.value !== i && !i.disabled
|
|
1685
|
+
}
|
|
1683
1686
|
])
|
|
1684
|
-
}, B(
|
|
1687
|
+
}, B(i.badge), 3)) : T("", !0)
|
|
1685
1688
|
])
|
|
1686
|
-
], 10,
|
|
1689
|
+
], 10, gl))), 128))
|
|
1687
1690
|
])
|
|
1688
1691
|
])
|
|
1689
1692
|
])
|
|
@@ -1691,24 +1694,24 @@ const el = ["value", "type"], tl = ["disabled"], Bl = /* @__PURE__ */ Object.ass
|
|
|
1691
1694
|
}
|
|
1692
1695
|
};
|
|
1693
1696
|
export {
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1697
|
+
xl as Accordion,
|
|
1698
|
+
yl as AccordionPanel,
|
|
1699
|
+
wl as Autocomplete,
|
|
1700
|
+
kl as Confirm,
|
|
1698
1701
|
ft as DateInput,
|
|
1699
|
-
|
|
1702
|
+
$l as Datepicker,
|
|
1700
1703
|
Cl as FormFileButton,
|
|
1701
1704
|
At as FormSelect,
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1705
|
+
Sl as FormSwitch,
|
|
1706
|
+
Vl as MessageToast,
|
|
1707
|
+
Ml as Modal,
|
|
1708
|
+
Dl as Pagination,
|
|
1709
|
+
Al as PasswordInput,
|
|
1710
|
+
Bl as SimpleTree,
|
|
1711
|
+
Ll as Sizable,
|
|
1712
|
+
Pl as Slider,
|
|
1713
|
+
Tl as Sortable,
|
|
1714
|
+
we as Spinner,
|
|
1712
1715
|
Il as SubmitButton,
|
|
1713
|
-
|
|
1716
|
+
Ol as Tabs
|
|
1714
1717
|
};
|