vx-vue 1.3.6 → 1.3.8
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 +9 -0
- package/dist/style.css +1 -1
- package/dist/vxvue.es.js +898 -874
- package/dist/vxvue.umd.js +1 -1
- package/package.json +10 -10
package/dist/vxvue.es.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { useSlots as
|
|
2
|
-
const
|
|
1
|
+
import { useSlots as Le, ref as k, computed as B, onBeforeUpdate as Te, createElementBlock as m, openBlock as c, Fragment as O, renderList as j, createBlock as Z, resolveDynamicComponent as fe, createElementVNode as v, useAttrs as G, normalizeClass as C, unref as L, renderSlot as T, toValue as E, watch as J, getCurrentScope as Ve, onScopeDispose as ze, mergeModels as U, useModel as te, onUpdated as Pe, createCommentVNode as I, mergeProps as H, withKeys as ue, withModifiers as _, toDisplayString as P, Transition as Be, withCtx as ne, createVNode as Y, createTextVNode as ee, nextTick as ge, withDirectives as se, vShow as pe, vModelText as Ie, onMounted as be, vModelSelect as Ne, vModelCheckbox as Oe, normalizeStyle as Se, vModelDynamic as Ee, resolveComponent as Fe, createSlots as _e, toHandlers as ce } from "vue";
|
|
2
|
+
const Cl = {
|
|
3
3
|
__name: "Accordion",
|
|
4
4
|
props: { activeIndex: { type: [Number, Array], default: null } },
|
|
5
5
|
emits: ["update:activeIndex"],
|
|
6
6
|
setup(e, { emit: u }) {
|
|
7
|
-
const t = e,
|
|
8
|
-
() =>
|
|
7
|
+
const t = e, s = u, l = Le(), a = k([]), d = (f) => a.value.push(f), r = B(
|
|
8
|
+
() => l.default().reduce((f, x) => ((x.type.__name || x.type.name) === "AccordionPanel" && f.push(x), f), [])
|
|
9
9
|
), o = (f) => {
|
|
10
10
|
if (Array.isArray(t.activeIndex)) {
|
|
11
|
-
let x = [].concat(t.activeIndex),
|
|
12
|
-
|
|
11
|
+
let x = [].concat(t.activeIndex), w = x.findIndex((p) => p === f);
|
|
12
|
+
w === -1 ? s("update:activeIndex", [...x, f]) : (x.splice(w, 1), s("update:activeIndex", x));
|
|
13
13
|
} else
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
if (f = ++f %
|
|
17
|
-
o(f),
|
|
14
|
+
s("update:activeIndex", f === t.activeIndex ? -1 : f);
|
|
15
|
+
}, n = (f) => {
|
|
16
|
+
if (f = ++f % r.value.length, !a.value[f].disabled) {
|
|
17
|
+
o(f), a.value[f].focus();
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
if (f = (f ||
|
|
23
|
-
o(f),
|
|
20
|
+
n(f);
|
|
21
|
+
}, i = (f) => {
|
|
22
|
+
if (f = (f || r.value.length) - 1, !a.value[f].disabled) {
|
|
23
|
+
o(f), a.value[f].focus();
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
i(f);
|
|
27
27
|
};
|
|
28
|
-
return
|
|
29
|
-
var
|
|
30
|
-
return c(), Z(
|
|
31
|
-
key:
|
|
28
|
+
return Te(() => a.value = []), (f, x) => (c(!0), m(O, null, j(r.value, (w, p) => {
|
|
29
|
+
var M;
|
|
30
|
+
return c(), Z(fe(w), {
|
|
31
|
+
key: p,
|
|
32
32
|
ref_for: !0,
|
|
33
|
-
ref:
|
|
34
|
-
show: Array.isArray(e.activeIndex) ? (
|
|
35
|
-
onSelect: (
|
|
36
|
-
onKeydown: (
|
|
37
|
-
onKeyup: (
|
|
33
|
+
ref: d,
|
|
34
|
+
show: Array.isArray(e.activeIndex) ? (M = e.activeIndex) == null ? void 0 : M.includes(p) : e.activeIndex === p,
|
|
35
|
+
onSelect: (g) => o(p),
|
|
36
|
+
onKeydown: (g) => n(p),
|
|
37
|
+
onKeyup: (g) => i(p)
|
|
38
38
|
}, null, 40, ["show", "onSelect", "onKeydown", "onKeyup"]);
|
|
39
39
|
}), 128));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
|
-
function
|
|
42
|
+
function je(e, u) {
|
|
43
43
|
return c(), m("svg", {
|
|
44
44
|
xmlns: "http://www.w3.org/2000/svg",
|
|
45
45
|
viewBox: "0 0 24 24",
|
|
@@ -54,7 +54,7 @@ function Ie(e, u) {
|
|
|
54
54
|
})
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Ye(e, u) {
|
|
58
58
|
return c(), m("svg", {
|
|
59
59
|
xmlns: "http://www.w3.org/2000/svg",
|
|
60
60
|
viewBox: "0 0 24 24",
|
|
@@ -69,7 +69,7 @@ function Ne(e, u) {
|
|
|
69
69
|
})
|
|
70
70
|
]);
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ve(e, u) {
|
|
73
73
|
return c(), m("svg", {
|
|
74
74
|
xmlns: "http://www.w3.org/2000/svg",
|
|
75
75
|
viewBox: "0 0 24 24",
|
|
@@ -84,7 +84,7 @@ function de(e, u) {
|
|
|
84
84
|
})
|
|
85
85
|
]);
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function de(e, u) {
|
|
88
88
|
return c(), m("svg", {
|
|
89
89
|
xmlns: "http://www.w3.org/2000/svg",
|
|
90
90
|
viewBox: "0 0 24 24",
|
|
@@ -99,7 +99,7 @@ function re(e, u) {
|
|
|
99
99
|
})
|
|
100
100
|
]);
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Re(e, u) {
|
|
103
103
|
return c(), m("svg", {
|
|
104
104
|
xmlns: "http://www.w3.org/2000/svg",
|
|
105
105
|
viewBox: "0 0 24 24",
|
|
@@ -114,7 +114,7 @@ function Oe(e, u) {
|
|
|
114
114
|
})
|
|
115
115
|
]);
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function He(e, u) {
|
|
118
118
|
return c(), m("svg", {
|
|
119
119
|
xmlns: "http://www.w3.org/2000/svg",
|
|
120
120
|
viewBox: "0 0 24 24",
|
|
@@ -129,7 +129,7 @@ function Fe(e, u) {
|
|
|
129
129
|
})
|
|
130
130
|
]);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Ze(e, u) {
|
|
133
133
|
return c(), m("svg", {
|
|
134
134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
135
135
|
viewBox: "0 0 24 24",
|
|
@@ -144,7 +144,7 @@ function Ee(e, u) {
|
|
|
144
144
|
})
|
|
145
145
|
]);
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ue(e, u) {
|
|
148
148
|
return c(), m("svg", {
|
|
149
149
|
xmlns: "http://www.w3.org/2000/svg",
|
|
150
150
|
viewBox: "0 0 24 24",
|
|
@@ -159,7 +159,7 @@ function _e(e, u) {
|
|
|
159
159
|
})
|
|
160
160
|
]);
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function xe(e, u) {
|
|
163
163
|
return c(), m("svg", {
|
|
164
164
|
xmlns: "http://www.w3.org/2000/svg",
|
|
165
165
|
viewBox: "0 0 24 24",
|
|
@@ -174,67 +174,67 @@ function pe(e, u) {
|
|
|
174
174
|
})
|
|
175
175
|
]);
|
|
176
176
|
}
|
|
177
|
-
const
|
|
177
|
+
const We = ["id", "disabled", "aria-expanded", "aria-controls"], qe = ["id", "aria-labelledby"], Ke = { class: "overflow-hidden rounded-b" }, Ml = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
178
178
|
__name: "AccordionPanel",
|
|
179
179
|
props: { show: Boolean, disabled: Boolean },
|
|
180
180
|
emits: ["select", "keyup", "keydown"],
|
|
181
181
|
setup(e, { expose: u, emit: t }) {
|
|
182
|
-
const
|
|
183
|
-
if (!
|
|
184
|
-
const f = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(
|
|
185
|
-
f && (
|
|
182
|
+
const s = t, l = e, a = G(), d = k(null), r = Math.random().toString(20).substring(2, 8), o = (i) => {
|
|
183
|
+
if (!l.disabled) {
|
|
184
|
+
const f = (/* @__PURE__ */ new Map([[40, "keydown"], [38, "keyup"]])).get(i.keyCode);
|
|
185
|
+
f && (s(f), i.preventDefault());
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
|
-
return u({ focus: () =>
|
|
188
|
+
return u({ focus: () => d.value.focus(), disabled: l.disabled }), (i, f) => (c(), m("div", null, [
|
|
189
189
|
v("button", {
|
|
190
|
-
id: "ap-control-" +
|
|
190
|
+
id: "ap-control-" + L(r),
|
|
191
191
|
ref_key: "btn",
|
|
192
|
-
ref:
|
|
192
|
+
ref: d,
|
|
193
193
|
class: C([
|
|
194
194
|
"flex items-center w-full space-x-2 px-4 py-2 ring-vxvue",
|
|
195
195
|
e.show ? "rounded-t" : "rounded-sm",
|
|
196
196
|
e.disabled ? "bg-slate-300 text-slate-700" : "bg-vxvue hover:bg-vxvue-600 text-white",
|
|
197
|
-
|
|
197
|
+
L(a).class
|
|
198
198
|
]),
|
|
199
199
|
disabled: e.disabled,
|
|
200
200
|
"aria-expanded": e.show,
|
|
201
|
-
"aria-controls": "ap-" +
|
|
201
|
+
"aria-controls": "ap-" + L(r),
|
|
202
202
|
tabindex: "0",
|
|
203
|
-
onClick: f[0] || (f[0] = (x) =>
|
|
203
|
+
onClick: f[0] || (f[0] = (x) => s("select")),
|
|
204
204
|
onKeydown: o
|
|
205
205
|
}, [
|
|
206
|
-
e.disabled ? (c(), Z(
|
|
206
|
+
e.disabled ? (c(), Z(L(xe), {
|
|
207
207
|
key: 0,
|
|
208
208
|
class: "size-5"
|
|
209
|
-
})) : (c(), Z(
|
|
209
|
+
})) : (c(), Z(L(de), {
|
|
210
210
|
key: 1,
|
|
211
211
|
class: C(["size-5 transform-gpu transition-transform duration-300", { "rotate-90": e.show }])
|
|
212
212
|
}, null, 8, ["class"])),
|
|
213
213
|
v("span", null, [
|
|
214
|
-
|
|
214
|
+
T(i.$slots, "header")
|
|
215
215
|
])
|
|
216
|
-
], 42,
|
|
216
|
+
], 42, We),
|
|
217
217
|
v("div", {
|
|
218
|
-
id: "ap-" +
|
|
218
|
+
id: "ap-" + L(r),
|
|
219
219
|
class: C(["grid transition-[grid-template-rows] duration-300 ease-in-out", e.show && !e.disabled ? "grid-rows-1" : "grid-rows-[repeat(1,minmax(0,0fr))]"]),
|
|
220
|
-
"aria-labelledby": "ap-control-" +
|
|
220
|
+
"aria-labelledby": "ap-control-" + L(r)
|
|
221
221
|
}, [
|
|
222
|
-
v("div",
|
|
223
|
-
|
|
222
|
+
v("div", Ke, [
|
|
223
|
+
T(i.$slots, "default")
|
|
224
224
|
])
|
|
225
|
-
], 10,
|
|
225
|
+
], 10, qe)
|
|
226
226
|
]));
|
|
227
227
|
}
|
|
228
|
-
}),
|
|
228
|
+
}), Xe = ["viewBox"], Ge = ["cx", "cy", "r", "stroke-width"], Je = ["cx", "cy", "r", "stroke-width", "stroke-dasharray"], Ce = {
|
|
229
229
|
__name: "Spinner",
|
|
230
230
|
props: { radius: { type: Number, default: 10 }, strokeWidth: { type: Number, default: 4 } },
|
|
231
231
|
setup(e) {
|
|
232
|
-
const u = e, t =
|
|
233
|
-
return (
|
|
232
|
+
const u = e, t = B(() => u.radius + u.strokeWidth / 2), s = B(() => u.radius * 2 + u.strokeWidth), l = B(() => u.radius * Math.PI / 1.5);
|
|
233
|
+
return (a, d) => (c(), m("svg", {
|
|
234
234
|
class: "animate-spin",
|
|
235
235
|
xmlns: "http://www.w3.org/2000/svg",
|
|
236
236
|
fill: "none",
|
|
237
|
-
viewBox: "0 0 " +
|
|
237
|
+
viewBox: "0 0 " + s.value + " " + s.value,
|
|
238
238
|
role: "progressbar"
|
|
239
239
|
}, [
|
|
240
240
|
v("circle", {
|
|
@@ -244,92 +244,92 @@ const je = ["id", "disabled", "aria-expanded", "aria-controls"], Ye = ["id", "ar
|
|
|
244
244
|
r: e.radius,
|
|
245
245
|
stroke: "currentColor",
|
|
246
246
|
"stroke-width": e.strokeWidth
|
|
247
|
-
}, null, 8,
|
|
247
|
+
}, null, 8, Ge),
|
|
248
248
|
v("circle", {
|
|
249
249
|
cx: t.value,
|
|
250
250
|
cy: t.value,
|
|
251
251
|
r: e.radius,
|
|
252
252
|
stroke: "currentColor",
|
|
253
253
|
"stroke-width": e.strokeWidth,
|
|
254
|
-
"stroke-dasharray":
|
|
254
|
+
"stroke-dasharray": l.value + " " + e.radius * 100,
|
|
255
255
|
"stroke-linecap": "round"
|
|
256
|
-
}, null, 8,
|
|
257
|
-
], 8,
|
|
256
|
+
}, null, 8, Je)
|
|
257
|
+
], 8, Xe));
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
|
-
function
|
|
261
|
-
return
|
|
260
|
+
function Qe(e) {
|
|
261
|
+
return Ve() ? (ze(e), !0) : !1;
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const Me = typeof window < "u" && typeof document < "u";
|
|
264
264
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
265
|
-
const
|
|
266
|
-
},
|
|
267
|
-
function
|
|
265
|
+
const et = Object.prototype.toString, tt = (e) => et.call(e) === "[object Object]", oe = () => {
|
|
266
|
+
}, lt = /* @__PURE__ */ at();
|
|
267
|
+
function at() {
|
|
268
268
|
var e, u;
|
|
269
|
-
return
|
|
269
|
+
return Me && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((u = window == null ? void 0 : window.navigator) == null ? void 0 : u.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function me(e) {
|
|
272
272
|
return Array.isArray(e) ? e : [e];
|
|
273
273
|
}
|
|
274
|
-
const
|
|
275
|
-
function
|
|
276
|
-
let
|
|
277
|
-
return
|
|
274
|
+
const st = /[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}|z{1,4}|SSS/g;
|
|
275
|
+
function nt(e, u, t, s) {
|
|
276
|
+
let l = e < 12 ? "AM" : "PM";
|
|
277
|
+
return s && (l = l.split("").reduce((a, d) => a += `${d}.`, "")), t ? l.toLowerCase() : l;
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ae(e) {
|
|
280
280
|
const u = ["th", "st", "nd", "rd"], t = e % 100;
|
|
281
281
|
return e + (u[(t - 20) % 10] || u[t] || u[0]);
|
|
282
282
|
}
|
|
283
|
-
function
|
|
284
|
-
var
|
|
285
|
-
const
|
|
286
|
-
var
|
|
287
|
-
return (
|
|
288
|
-
},
|
|
289
|
-
Yo: () =>
|
|
290
|
-
YY: () => String(
|
|
291
|
-
YYYY: () =>
|
|
292
|
-
M: () =>
|
|
293
|
-
Mo: () =>
|
|
294
|
-
MM: () => `${
|
|
295
|
-
MMM: () => e.toLocaleDateString(
|
|
296
|
-
MMMM: () => e.toLocaleDateString(
|
|
297
|
-
D: () => String(
|
|
298
|
-
Do: () =>
|
|
299
|
-
DD: () => `${
|
|
300
|
-
H: () => String(
|
|
301
|
-
Ho: () =>
|
|
302
|
-
HH: () => `${
|
|
303
|
-
h: () => `${
|
|
304
|
-
ho: () =>
|
|
305
|
-
hh: () => `${
|
|
283
|
+
function ke(e, u, t = {}) {
|
|
284
|
+
var s;
|
|
285
|
+
const l = e.getFullYear(), a = e.getMonth(), d = e.getDate(), r = e.getHours(), o = e.getMinutes(), n = e.getSeconds(), i = e.getMilliseconds(), f = e.getDay(), x = (s = t.customMeridiem) != null ? s : nt, w = (M) => {
|
|
286
|
+
var g;
|
|
287
|
+
return (g = M.split(" ")[1]) != null ? g : "";
|
|
288
|
+
}, p = {
|
|
289
|
+
Yo: () => ae(l),
|
|
290
|
+
YY: () => String(l).slice(-2),
|
|
291
|
+
YYYY: () => l,
|
|
292
|
+
M: () => a + 1,
|
|
293
|
+
Mo: () => ae(a + 1),
|
|
294
|
+
MM: () => `${a + 1}`.padStart(2, "0"),
|
|
295
|
+
MMM: () => e.toLocaleDateString(E(t.locales), { month: "short" }),
|
|
296
|
+
MMMM: () => e.toLocaleDateString(E(t.locales), { month: "long" }),
|
|
297
|
+
D: () => String(d),
|
|
298
|
+
Do: () => ae(d),
|
|
299
|
+
DD: () => `${d}`.padStart(2, "0"),
|
|
300
|
+
H: () => String(r),
|
|
301
|
+
Ho: () => ae(r),
|
|
302
|
+
HH: () => `${r}`.padStart(2, "0"),
|
|
303
|
+
h: () => `${r % 12 || 12}`.padStart(1, "0"),
|
|
304
|
+
ho: () => ae(r % 12 || 12),
|
|
305
|
+
hh: () => `${r % 12 || 12}`.padStart(2, "0"),
|
|
306
306
|
m: () => String(o),
|
|
307
|
-
mo: () =>
|
|
307
|
+
mo: () => ae(o),
|
|
308
308
|
mm: () => `${o}`.padStart(2, "0"),
|
|
309
|
-
s: () => String(
|
|
310
|
-
so: () =>
|
|
311
|
-
ss: () => `${
|
|
312
|
-
SSS: () => `${
|
|
309
|
+
s: () => String(n),
|
|
310
|
+
so: () => ae(n),
|
|
311
|
+
ss: () => `${n}`.padStart(2, "0"),
|
|
312
|
+
SSS: () => `${i}`.padStart(3, "0"),
|
|
313
313
|
d: () => f,
|
|
314
|
-
dd: () => e.toLocaleDateString(
|
|
315
|
-
ddd: () => e.toLocaleDateString(
|
|
316
|
-
dddd: () => e.toLocaleDateString(
|
|
317
|
-
A: () => x(
|
|
318
|
-
AA: () => x(
|
|
319
|
-
a: () => x(
|
|
320
|
-
aa: () => x(
|
|
321
|
-
z: () =>
|
|
322
|
-
zz: () =>
|
|
323
|
-
zzz: () =>
|
|
324
|
-
zzzz: () =>
|
|
314
|
+
dd: () => e.toLocaleDateString(E(t.locales), { weekday: "narrow" }),
|
|
315
|
+
ddd: () => e.toLocaleDateString(E(t.locales), { weekday: "short" }),
|
|
316
|
+
dddd: () => e.toLocaleDateString(E(t.locales), { weekday: "long" }),
|
|
317
|
+
A: () => x(r, o),
|
|
318
|
+
AA: () => x(r, o, !1, !0),
|
|
319
|
+
a: () => x(r, o, !0),
|
|
320
|
+
aa: () => x(r, o, !0, !0),
|
|
321
|
+
z: () => w(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
322
|
+
zz: () => w(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
323
|
+
zzz: () => w(e.toLocaleDateString(E(t.locales), { timeZoneName: "shortOffset" })),
|
|
324
|
+
zzzz: () => w(e.toLocaleDateString(E(t.locales), { timeZoneName: "longOffset" }))
|
|
325
325
|
};
|
|
326
|
-
return u.replace(
|
|
327
|
-
var
|
|
328
|
-
return (
|
|
326
|
+
return u.replace(st, (M, g) => {
|
|
327
|
+
var $, z;
|
|
328
|
+
return (z = g ?? (($ = p[M]) == null ? void 0 : $.call(p))) != null ? z : M;
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
331
|
+
function ot(e, u, t) {
|
|
332
|
+
return J(
|
|
333
333
|
e,
|
|
334
334
|
u,
|
|
335
335
|
{
|
|
@@ -338,136 +338,138 @@ function et(e, u, t) {
|
|
|
338
338
|
}
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
function
|
|
341
|
+
const De = Me ? window : void 0;
|
|
342
|
+
function ie(e) {
|
|
343
343
|
var u;
|
|
344
|
-
const t =
|
|
344
|
+
const t = E(e);
|
|
345
345
|
return (u = t == null ? void 0 : t.$el) != null ? u : t;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function he(...e) {
|
|
348
348
|
const u = [], t = () => {
|
|
349
|
-
u.forEach((
|
|
350
|
-
},
|
|
351
|
-
const
|
|
352
|
-
return
|
|
353
|
-
}),
|
|
349
|
+
u.forEach((r) => r()), u.length = 0;
|
|
350
|
+
}, s = (r, o, n, i) => (r.addEventListener(o, n, i), () => r.removeEventListener(o, n, i)), l = B(() => {
|
|
351
|
+
const r = me(E(e[0])).filter((o) => o != null);
|
|
352
|
+
return r.every((o) => typeof o != "string") ? r : void 0;
|
|
353
|
+
}), a = ot(
|
|
354
354
|
() => {
|
|
355
|
-
var
|
|
355
|
+
var r, o;
|
|
356
356
|
return [
|
|
357
|
-
(o = (
|
|
358
|
-
|
|
359
|
-
|
|
357
|
+
(o = (r = l.value) == null ? void 0 : r.map((n) => ie(n))) != null ? o : [De].filter((n) => n != null),
|
|
358
|
+
me(E(l.value ? e[1] : e[0])),
|
|
359
|
+
me(L(l.value ? e[2] : e[1])),
|
|
360
360
|
// @ts-expect-error - TypeScript gets the correct types, but somehow still complains
|
|
361
|
-
|
|
361
|
+
E(l.value ? e[3] : e[2])
|
|
362
362
|
];
|
|
363
363
|
},
|
|
364
|
-
([
|
|
365
|
-
if (t(), !(
|
|
364
|
+
([r, o, n, i]) => {
|
|
365
|
+
if (t(), !(r != null && r.length) || !(o != null && o.length) || !(n != null && n.length))
|
|
366
366
|
return;
|
|
367
|
-
const f =
|
|
367
|
+
const f = tt(i) ? { ...i } : i;
|
|
368
368
|
u.push(
|
|
369
|
-
...
|
|
369
|
+
...r.flatMap(
|
|
370
370
|
(x) => o.flatMap(
|
|
371
|
-
(
|
|
371
|
+
(w) => n.map((p) => s(x, w, p, f))
|
|
372
372
|
)
|
|
373
373
|
)
|
|
374
374
|
);
|
|
375
375
|
},
|
|
376
376
|
{ flush: "post" }
|
|
377
|
-
),
|
|
378
|
-
|
|
377
|
+
), d = () => {
|
|
378
|
+
a(), t();
|
|
379
379
|
};
|
|
380
|
-
return
|
|
380
|
+
return Qe(t), d;
|
|
381
381
|
}
|
|
382
|
-
let
|
|
383
|
-
function
|
|
384
|
-
const { window:
|
|
385
|
-
if (!
|
|
386
|
-
return
|
|
387
|
-
if (
|
|
388
|
-
|
|
389
|
-
const
|
|
390
|
-
Array.from(
|
|
382
|
+
let $e = !1;
|
|
383
|
+
function ye(e, u, t = {}) {
|
|
384
|
+
const { window: s = De, ignore: l = [], capture: a = !0, detectIframe: d = !1, controls: r = !1 } = t;
|
|
385
|
+
if (!s)
|
|
386
|
+
return r ? { stop: oe, cancel: oe, trigger: oe } : oe;
|
|
387
|
+
if (lt && !$e) {
|
|
388
|
+
$e = !0;
|
|
389
|
+
const g = { passive: !0 };
|
|
390
|
+
Array.from(s.document.body.children).forEach(($) => $.addEventListener("click", oe, g)), s.document.documentElement.addEventListener("click", oe, g);
|
|
391
391
|
}
|
|
392
392
|
let o = !0;
|
|
393
|
-
const
|
|
394
|
-
if (typeof
|
|
395
|
-
return Array.from(
|
|
393
|
+
const n = (g) => E(l).some(($) => {
|
|
394
|
+
if (typeof $ == "string")
|
|
395
|
+
return Array.from(s.document.querySelectorAll($)).some((z) => z === g.target || g.composedPath().includes(z));
|
|
396
396
|
{
|
|
397
|
-
const
|
|
398
|
-
return
|
|
397
|
+
const z = ie($);
|
|
398
|
+
return z && (g.target === z || g.composedPath().includes(z));
|
|
399
399
|
}
|
|
400
400
|
});
|
|
401
|
-
function
|
|
402
|
-
const
|
|
403
|
-
return
|
|
401
|
+
function i(g) {
|
|
402
|
+
const $ = E(g);
|
|
403
|
+
return $ && $.$.subTree.shapeFlag === 16;
|
|
404
404
|
}
|
|
405
|
-
function f(
|
|
406
|
-
const
|
|
407
|
-
return
|
|
405
|
+
function f(g, $) {
|
|
406
|
+
const z = E(g), F = z.$.subTree && z.$.subTree.children;
|
|
407
|
+
return F == null || !Array.isArray(F) ? !1 : F.some((q) => q.el === $.target || $.composedPath().includes(q.el));
|
|
408
408
|
}
|
|
409
|
-
const x = (
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
412
|
-
if ("detail" in
|
|
409
|
+
const x = (g) => {
|
|
410
|
+
const $ = ie(e);
|
|
411
|
+
if (g.target != null && !(!($ instanceof Element) && i(e) && f(e, g)) && !(!$ || $ === g.target || g.composedPath().includes($))) {
|
|
412
|
+
if ("detail" in g && g.detail === 0 && (o = !n(g)), !o) {
|
|
413
413
|
o = !0;
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
u(
|
|
416
|
+
u(g);
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
|
-
let
|
|
420
|
-
const
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
}, 0), x(
|
|
425
|
-
}, { passive: !0, capture:
|
|
426
|
-
|
|
427
|
-
const
|
|
428
|
-
o = !
|
|
419
|
+
let w = !1;
|
|
420
|
+
const p = [
|
|
421
|
+
he(s, "click", (g) => {
|
|
422
|
+
w || (w = !0, setTimeout(() => {
|
|
423
|
+
w = !1;
|
|
424
|
+
}, 0), x(g));
|
|
425
|
+
}, { passive: !0, capture: a }),
|
|
426
|
+
he(s, "pointerdown", (g) => {
|
|
427
|
+
const $ = ie(e);
|
|
428
|
+
o = !n(g) && !!($ && !g.composedPath().includes($));
|
|
429
429
|
}, { passive: !0 }),
|
|
430
|
-
|
|
430
|
+
d && he(s, "blur", (g) => {
|
|
431
431
|
setTimeout(() => {
|
|
432
|
-
var
|
|
433
|
-
const
|
|
434
|
-
((
|
|
432
|
+
var $;
|
|
433
|
+
const z = ie(e);
|
|
434
|
+
(($ = s.document.activeElement) == null ? void 0 : $.tagName) === "IFRAME" && !(z != null && z.contains(s.document.activeElement)) && u(g);
|
|
435
435
|
}, 0);
|
|
436
436
|
}, { passive: !0 })
|
|
437
|
-
].filter(Boolean),
|
|
438
|
-
return
|
|
439
|
-
stop:
|
|
437
|
+
].filter(Boolean), M = () => p.forEach((g) => g());
|
|
438
|
+
return r ? {
|
|
439
|
+
stop: M,
|
|
440
440
|
cancel: () => {
|
|
441
441
|
o = !1;
|
|
442
442
|
},
|
|
443
|
-
trigger: (
|
|
444
|
-
o = !0, x(
|
|
443
|
+
trigger: (g) => {
|
|
444
|
+
o = !0, x(g), o = !1;
|
|
445
445
|
}
|
|
446
|
-
} :
|
|
446
|
+
} : M;
|
|
447
447
|
}
|
|
448
|
-
const
|
|
448
|
+
const rt = ["value", "onKeydown"], ut = { class: "flex absolute inset-y-0 right-0 items-center pr-3 text-vxvue-700" }, it = ["data-result-index"], Dl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
449
449
|
__name: "Autocomplete",
|
|
450
|
-
props: {
|
|
451
|
-
modelValue: { type: String, default: "" },
|
|
450
|
+
props: /* @__PURE__ */ U({
|
|
452
451
|
search: { type: Function, required: !0 },
|
|
453
452
|
resultListClass: { type: String, default: "result-list" },
|
|
454
453
|
resultItemClass: { type: String, default: "result-list-item" },
|
|
455
454
|
getResultValue: { type: Function, default: (e) => e },
|
|
456
455
|
autoSelect: Boolean
|
|
457
|
-
},
|
|
458
|
-
|
|
456
|
+
}, {
|
|
457
|
+
modelValue: { type: String, default: "" },
|
|
458
|
+
modelModifiers: {}
|
|
459
|
+
}),
|
|
460
|
+
emits: /* @__PURE__ */ U(["blur-sm", "submit"], ["update:modelValue"]),
|
|
459
461
|
setup(e, { emit: u }) {
|
|
460
|
-
const t = u,
|
|
461
|
-
let
|
|
462
|
-
return (
|
|
463
|
-
})())((a.id || "autocomplete") + "-"),
|
|
464
|
-
() =>
|
|
465
|
-
id: (a.id || "autocomplete") + "-item-" +
|
|
466
|
-
class: [
|
|
462
|
+
const t = u, s = e, l = te(e, "modelValue"), a = G(), r = (/* @__PURE__ */ (() => {
|
|
463
|
+
let A = 0;
|
|
464
|
+
return (V) => (V || "") + ++A;
|
|
465
|
+
})())((a.id || "autocomplete") + "-"), o = k([]), n = k(-1), i = k(0), f = k(!1), x = k(!1), w = k("top-0 translate-y-12"), p = k(!0), M = k(null), g = k(null), $ = k(null), z = B(
|
|
466
|
+
() => o.value.map((A, V) => ({
|
|
467
|
+
id: (a.id || "autocomplete") + "-item-" + V,
|
|
468
|
+
class: [s.resultItemClass, { "bg-vxvue-700 text-white": n.value === V }],
|
|
467
469
|
role: "option",
|
|
468
|
-
...
|
|
470
|
+
...n.value === V ? { "aria-selected": "true" } : {}
|
|
469
471
|
}))
|
|
470
|
-
),
|
|
472
|
+
), F = B(() => ({
|
|
471
473
|
role: "combobox",
|
|
472
474
|
autocomplete: "off",
|
|
473
475
|
autocapitalize: "off",
|
|
@@ -475,130 +477,130 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
475
477
|
spellcheck: "false",
|
|
476
478
|
"aria-autocomplete": "list",
|
|
477
479
|
"aria-haspopup": "listbox",
|
|
478
|
-
"aria-owns":
|
|
479
|
-
"aria-expanded":
|
|
480
|
-
"aria-activedescendant":
|
|
480
|
+
"aria-owns": r,
|
|
481
|
+
"aria-expanded": f.value ? "true" : "false",
|
|
482
|
+
"aria-activedescendant": n.value > -1 ? z.value[n.value].id : "",
|
|
481
483
|
...a
|
|
482
|
-
})),
|
|
483
|
-
id:
|
|
484
|
-
class: ["absolute min-w-full transform z-
|
|
484
|
+
})), q = B(() => ({
|
|
485
|
+
id: r,
|
|
486
|
+
class: ["absolute min-w-full transform z-[var(--zIndex-dropdown)]", s.resultListClass, w.value],
|
|
485
487
|
role: "listbox"
|
|
486
|
-
})),
|
|
487
|
-
|
|
488
|
-
}, S = (
|
|
489
|
-
const
|
|
490
|
-
if (
|
|
491
|
-
const
|
|
492
|
-
|
|
493
|
-
|
|
488
|
+
})), X = () => {
|
|
489
|
+
n.value = -1, o.value = [], f.value = !1, p.value = !0;
|
|
490
|
+
}, S = (A) => {
|
|
491
|
+
const V = s.search(A);
|
|
492
|
+
if (V instanceof Promise) {
|
|
493
|
+
const Q = ++i.value;
|
|
494
|
+
x.value = !0, V.then((K) => {
|
|
495
|
+
Q === i.value && (o.value = K, x.value = !1, o.value.length ? (n.value = s.autoSelect ? 0 : -1, f.value = !0) : X());
|
|
494
496
|
});
|
|
495
497
|
} else
|
|
496
|
-
|
|
497
|
-
},
|
|
498
|
-
const
|
|
499
|
-
return
|
|
500
|
-
},
|
|
501
|
-
|
|
502
|
-
}, h = (
|
|
503
|
-
|
|
504
|
-
},
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
}, N = (
|
|
508
|
-
|
|
509
|
-
const
|
|
510
|
-
|
|
511
|
-
},
|
|
512
|
-
|
|
513
|
-
},
|
|
514
|
-
const
|
|
515
|
-
|
|
498
|
+
o.value = V, o.value.length === 0 ? X() : (n.value = s.autoSelect ? 0 : -1, f.value = !0);
|
|
499
|
+
}, D = () => {
|
|
500
|
+
const A = o.value[n.value];
|
|
501
|
+
return A && (l.value = s.getResultValue(A)), X(), A;
|
|
502
|
+
}, R = (A) => {
|
|
503
|
+
l.value = A, S(A);
|
|
504
|
+
}, h = (A) => S(A.target.value), b = () => {
|
|
505
|
+
X(), t("blur-sm");
|
|
506
|
+
}, y = () => {
|
|
507
|
+
const A = o.value.length;
|
|
508
|
+
n.value = ((n.value - 1) % A + A) % A;
|
|
509
|
+
}, N = (A) => {
|
|
510
|
+
f.value || h(A);
|
|
511
|
+
const V = o.value.length;
|
|
512
|
+
n.value = ((n.value + 1) % V + V) % V;
|
|
513
|
+
}, W = () => {
|
|
514
|
+
X(), l.value = "";
|
|
515
|
+
}, re = () => t("submit", D()), le = (A) => {
|
|
516
|
+
const V = A.target.closest("[data-result-index]");
|
|
517
|
+
V && (n.value = parseInt(V.dataset.resultIndex, 10), t("submit", D()));
|
|
516
518
|
};
|
|
517
|
-
return
|
|
518
|
-
if (
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
const
|
|
522
|
-
if (
|
|
523
|
-
let
|
|
524
|
-
|
|
519
|
+
return ye($, X), Pe(() => {
|
|
520
|
+
if (M.value) {
|
|
521
|
+
const A = g.value.getBoundingClientRect(), V = M.value.getBoundingClientRect();
|
|
522
|
+
p.value && o.value.length && (p.value = !1, w.value = A.bottom + V.height > window.innerHeight && window.innerHeight - A.bottom < A.top && window.pageYOffset + A.top - V.height > 0 ? "bottom-0 -translate-y-12" : "top-0 translate-y-12");
|
|
523
|
+
const Q = M.value.querySelector('[data-result-index="' + n.value + '"]');
|
|
524
|
+
if (Q) {
|
|
525
|
+
let K = Q.getBoundingClientRect();
|
|
526
|
+
K.top < V.top ? M.value.scrollTop -= V.top - K.top : K.bottom > V.bottom && (M.value.scrollTop += K.bottom - V.bottom);
|
|
525
527
|
}
|
|
526
528
|
}
|
|
527
|
-
}), (
|
|
529
|
+
}), (A, V) => (c(), m("div", {
|
|
528
530
|
ref_key: "container",
|
|
529
|
-
ref:
|
|
530
|
-
class: C(["inline-block relative",
|
|
531
|
+
ref: $,
|
|
532
|
+
class: C(["inline-block relative", A.$attrs.class])
|
|
531
533
|
}, [
|
|
532
|
-
v("input",
|
|
534
|
+
v("input", H({
|
|
533
535
|
ref_key: "input",
|
|
534
|
-
ref:
|
|
536
|
+
ref: g,
|
|
535
537
|
class: "block pr-10 w-full form-input focus:border-vxvue",
|
|
536
|
-
value:
|
|
537
|
-
},
|
|
538
|
-
onInput:
|
|
538
|
+
value: l.value
|
|
539
|
+
}, F.value, {
|
|
540
|
+
onInput: V[0] || (V[0] = (Q) => R(Q.target.value)),
|
|
539
541
|
onKeydown: [
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
542
|
+
ue(re, ["enter"]),
|
|
543
|
+
ue(W, ["esc"]),
|
|
544
|
+
ue(D, ["tab"]),
|
|
545
|
+
ue(_(y, ["prevent"]), ["up"]),
|
|
546
|
+
ue(_(N, ["prevent"]), ["down"])
|
|
545
547
|
],
|
|
546
548
|
onFocus: h,
|
|
547
|
-
onBlur:
|
|
548
|
-
}), null, 16,
|
|
549
|
-
v("span",
|
|
550
|
-
|
|
549
|
+
onBlur: b
|
|
550
|
+
}), null, 16, rt),
|
|
551
|
+
v("span", ut, [
|
|
552
|
+
x.value ? (c(), Z(Ce, {
|
|
551
553
|
key: 0,
|
|
552
554
|
class: "size-5"
|
|
553
555
|
})) : I("", !0)
|
|
554
556
|
]),
|
|
555
|
-
|
|
557
|
+
o.value.length ? (c(), m("div", H({
|
|
556
558
|
key: 0,
|
|
557
559
|
ref_key: "resultList",
|
|
558
|
-
ref:
|
|
559
|
-
},
|
|
560
|
-
onClick:
|
|
561
|
-
onMousedown:
|
|
560
|
+
ref: M
|
|
561
|
+
}, q.value, {
|
|
562
|
+
onClick: le,
|
|
563
|
+
onMousedown: V[1] || (V[1] = _(() => {
|
|
562
564
|
}, ["prevent"]))
|
|
563
565
|
}), [
|
|
564
|
-
(c(!0), m(O, null, j(
|
|
565
|
-
|
|
566
|
-
result:
|
|
567
|
-
props:
|
|
566
|
+
(c(!0), m(O, null, j(o.value, (Q, K) => (c(), m("div", { "data-result-index": K }, [
|
|
567
|
+
T(A.$slots, "result", {
|
|
568
|
+
result: Q,
|
|
569
|
+
props: z.value[K]
|
|
568
570
|
}, () => [
|
|
569
|
-
(c(), m("div",
|
|
570
|
-
key:
|
|
571
|
+
(c(), m("div", H({
|
|
572
|
+
key: z.value[K].id,
|
|
571
573
|
ref_for: !0
|
|
572
|
-
},
|
|
574
|
+
}, z.value[K]), P(e.getResultValue(Q)), 17))
|
|
573
575
|
])
|
|
574
|
-
], 8,
|
|
576
|
+
], 8, it))), 256))
|
|
575
577
|
], 16)) : I("", !0)
|
|
576
578
|
], 2));
|
|
577
579
|
}
|
|
578
|
-
}),
|
|
580
|
+
}), Ae = (e, u) => {
|
|
579
581
|
const t = e.__vccOpts || e;
|
|
580
|
-
for (const [
|
|
581
|
-
t[
|
|
582
|
+
for (const [s, l] of u)
|
|
583
|
+
t[s] = l;
|
|
582
584
|
return t;
|
|
583
|
-
},
|
|
585
|
+
}, dt = {
|
|
584
586
|
__name: "VxVueTransition",
|
|
585
587
|
props: { name: { type: String, required: !0, validator: (e) => ["appear", "vert-fade"].includes(e) } },
|
|
586
588
|
setup(e) {
|
|
587
|
-
return (u, t) => (c(), Z(
|
|
588
|
-
default:
|
|
589
|
-
|
|
589
|
+
return (u, t) => (c(), Z(Be, { name: e.name }, {
|
|
590
|
+
default: ne(() => [
|
|
591
|
+
T(u.$slots, "default", {}, void 0, !0)
|
|
590
592
|
]),
|
|
591
593
|
_: 3
|
|
592
594
|
}, 8, ["name"]));
|
|
593
595
|
}
|
|
594
|
-
},
|
|
596
|
+
}, we = /* @__PURE__ */ Ae(dt, [["__scopeId", "data-v-edc3641f"]]), ct = {
|
|
595
597
|
key: 0,
|
|
596
|
-
class: "fixed inset-0 z-
|
|
598
|
+
class: "fixed inset-0 z-[calc(var(--zIndex-confirm)-1)] bg-black/50 backdrop-blur-xs",
|
|
597
599
|
"aria-hidden": "true"
|
|
598
|
-
},
|
|
600
|
+
}, vt = {
|
|
599
601
|
key: 0,
|
|
600
|
-
class: "overflow-y-auto fixed inset-0 z-
|
|
601
|
-
},
|
|
602
|
+
class: "overflow-y-auto fixed inset-0 z-[var(--zIndex-confirm)]"
|
|
603
|
+
}, ft = { class: "flex justify-center items-center min-h-screen text-center sm:block sm:p-0" }, mt = { key: 0 }, ht = { class: "inline-block overflow-hidden text-left align-bottom bg-white rounded-sm shadow-xl transition-all transform sm:my-8 sm:w-full sm:max-w-sm sm:align-middle lg:max-w-lg" }, pt = { class: "px-4 pb-4 mt-4 sm:px-6 sm:pb-6 sm:mt-5" }, gt = { class: "flex flex-row items-center" }, bt = { class: "shrink-0" }, xt = { class: "grow text-center" }, yt = ["onClick"], Al = {
|
|
602
604
|
__name: "Confirm",
|
|
603
605
|
props: {
|
|
604
606
|
buttons: {
|
|
@@ -616,54 +618,54 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
616
618
|
}
|
|
617
619
|
},
|
|
618
620
|
setup(e, { expose: u }) {
|
|
619
|
-
const t = e,
|
|
620
|
-
let
|
|
621
|
-
const o =
|
|
622
|
-
|
|
621
|
+
const t = e, s = k(""), l = k(""), a = k(!1);
|
|
622
|
+
let d = null, r = null;
|
|
623
|
+
const o = B(() => Array.isArray(t.buttons) ? t.buttons : [t.buttons]), n = k(null), i = (x, w) => {
|
|
624
|
+
a.value = !1, x.value !== void 0 ? x.value ? d() : r() : w ? r() : d();
|
|
623
625
|
};
|
|
624
|
-
return u({ open: (x,
|
|
625
|
-
|
|
626
|
-
})) }), (x,
|
|
627
|
-
|
|
628
|
-
Y(
|
|
629
|
-
default:
|
|
630
|
-
|
|
631
|
-
v("div",
|
|
632
|
-
|
|
633
|
-
|
|
626
|
+
return u({ open: (x, w) => (s.value = x, l.value = w, a.value = !0, ge(() => n.value.firstElementChild.focus()), new Promise((p, M) => {
|
|
627
|
+
d = p, r = M;
|
|
628
|
+
})) }), (x, w) => (c(), m(O, null, [
|
|
629
|
+
a.value ? (c(), m("div", ct)) : I("", !0),
|
|
630
|
+
Y(we, { name: "appear" }, {
|
|
631
|
+
default: ne(() => [
|
|
632
|
+
a.value ? (c(), m("div", vt, [
|
|
633
|
+
v("div", ft, [
|
|
634
|
+
a.value ? (c(), m("div", mt, [
|
|
635
|
+
w[0] || (w[0] = v("span", {
|
|
634
636
|
class: "hidden sm:inline-block sm:h-screen sm:align-middle",
|
|
635
637
|
"aria-hidden": "true"
|
|
636
638
|
}, "", -1)),
|
|
637
|
-
v("div",
|
|
638
|
-
|
|
639
|
+
v("div", ht, [
|
|
640
|
+
s.value || x.$slots.title ? (c(), m("h3", {
|
|
639
641
|
key: 0,
|
|
640
642
|
class: C(["py-4 pt-4 text-lg font-medium text-center sm:py-6", e.headerClass])
|
|
641
643
|
}, [
|
|
642
|
-
|
|
643
|
-
|
|
644
|
+
T(x.$slots, "title", { title: s.value }, () => [
|
|
645
|
+
ee(P(s.value), 1)
|
|
644
646
|
])
|
|
645
647
|
], 2)) : I("", !0),
|
|
646
|
-
v("div",
|
|
647
|
-
v("div",
|
|
648
|
-
v("div",
|
|
649
|
-
|
|
648
|
+
v("div", pt, [
|
|
649
|
+
v("div", gt, [
|
|
650
|
+
v("div", bt, [
|
|
651
|
+
T(x.$slots, "icon")
|
|
650
652
|
]),
|
|
651
|
-
v("p",
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
v("p", xt, [
|
|
654
|
+
T(x.$slots, "default", { message: l.value }, () => [
|
|
655
|
+
ee(P(l.value), 1)
|
|
654
656
|
])
|
|
655
657
|
])
|
|
656
658
|
]),
|
|
657
659
|
v("div", {
|
|
658
660
|
ref_key: "buttonsContainer",
|
|
659
|
-
ref:
|
|
661
|
+
ref: n,
|
|
660
662
|
class: "flex justify-center mt-5 space-x-2 sm:mt-6"
|
|
661
663
|
}, [
|
|
662
|
-
(c(!0), m(O, null, j(o.value, (
|
|
663
|
-
key:
|
|
664
|
-
class: C([e.buttonClass,
|
|
665
|
-
onClick: _((
|
|
666
|
-
},
|
|
664
|
+
(c(!0), m(O, null, j(o.value, (p, M) => (c(), m("button", {
|
|
665
|
+
key: p.label,
|
|
666
|
+
class: C([e.buttonClass, p.class]),
|
|
667
|
+
onClick: _((g) => i(p, M), ["prevent"])
|
|
668
|
+
}, P(p.label), 11, yt))), 128))
|
|
667
669
|
], 512)
|
|
668
670
|
])
|
|
669
671
|
])
|
|
@@ -676,101 +678,102 @@ const tt = ["value", "onKeydown"], lt = { class: "flex absolute inset-y-0 right-
|
|
|
676
678
|
], 64));
|
|
677
679
|
}
|
|
678
680
|
};
|
|
679
|
-
function
|
|
680
|
-
const t =
|
|
681
|
-
let
|
|
682
|
-
if ((
|
|
683
|
-
|
|
684
|
-
else if ((
|
|
685
|
-
|
|
681
|
+
function wt(e, u) {
|
|
682
|
+
const t = k(!1), s = E(u);
|
|
683
|
+
let l, a = s.toLowerCase().replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), d = [];
|
|
684
|
+
if ((l = s.match(/\bd\b/gi)) && l.length === 1)
|
|
685
|
+
a = a.replace("d", "(\\d{1,2})");
|
|
686
|
+
else if ((l = s.match(/\bdd\b/gi)) && l.length === 1)
|
|
687
|
+
a = a.replace("dd", "(\\d{2})");
|
|
686
688
|
else
|
|
687
689
|
return { date: t };
|
|
688
|
-
if (
|
|
689
|
-
|
|
690
|
-
else if ((
|
|
691
|
-
|
|
690
|
+
if (d.push({ srcPos: s.toLowerCase().indexOf("d"), destPos: 2 }), (l = s.match(/\bm\b/gi)) && l.length === 1)
|
|
691
|
+
a = a.replace("m", "(\\d{1,2})");
|
|
692
|
+
else if ((l = s.match(/\bmm\b/gi)) && l.length === 1)
|
|
693
|
+
a = a.replace("mm", "(\\d{2})");
|
|
692
694
|
else
|
|
693
695
|
return { date: t };
|
|
694
|
-
if (
|
|
695
|
-
|
|
696
|
+
if (d.push({ srcPos: s.toLowerCase().indexOf("m"), destPos: 1 }), (l = s.match(/\byyyy\b/gi)) && l.length === 1)
|
|
697
|
+
a = a.replace("yyyy", "(\\d{4})");
|
|
696
698
|
else
|
|
697
699
|
return { date: t };
|
|
698
|
-
if (
|
|
700
|
+
if (d.push({ srcPos: s.toLowerCase().indexOf("y"), destPos: 0 }), !(l = E(e).match(a)))
|
|
699
701
|
return { date: t };
|
|
700
|
-
|
|
701
|
-
let
|
|
702
|
-
for (; o =
|
|
703
|
-
|
|
704
|
-
return
|
|
702
|
+
l.shift(), d.sort((i, f) => i.srcPos < f.srcPos ? -1 : 1);
|
|
703
|
+
let r = [], o, n;
|
|
704
|
+
for (; o = l.shift(); )
|
|
705
|
+
n = d.shift(), r[n.destPos] = o;
|
|
706
|
+
return r = Date.parse(r.join("-")), r && (r = new Date(r), t.value = new Date(r.getFullYear(), r.getMonth(), r.getDate(), 0, 0, 0)), { date: t };
|
|
705
707
|
}
|
|
706
|
-
const
|
|
708
|
+
const kt = { class: "text-vxvue-700" }, $t = ["disabled"], St = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
707
709
|
__name: "DateInput",
|
|
708
|
-
props: {
|
|
710
|
+
props: /* @__PURE__ */ U({
|
|
709
711
|
outputFormat: { type: String, default: "YYYY-MM-DD" },
|
|
710
712
|
inputFormat: { type: String, default: "YYYY-MM-DD" },
|
|
711
|
-
showToggle: { type: Boolean, default: !1 }
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
713
|
+
showToggle: { type: Boolean, default: !1 }
|
|
714
|
+
}, {
|
|
715
|
+
modelValue: { type: Date, default: null },
|
|
716
|
+
modelModifiers: {}
|
|
717
|
+
}),
|
|
718
|
+
emits: /* @__PURE__ */ U(["toggle-datepicker"], ["update:modelValue"]),
|
|
715
719
|
setup(e, { emit: u }) {
|
|
716
|
-
const t = u,
|
|
717
|
-
let
|
|
718
|
-
return delete
|
|
720
|
+
const t = u, s = e, l = te(e, "modelValue"), a = k(""), d = B(() => l.value ? ke(l.value, s.outputFormat) : ""), r = B(() => {
|
|
721
|
+
let o = Object.assign({}, G());
|
|
722
|
+
return delete o.class, o;
|
|
719
723
|
});
|
|
720
|
-
return
|
|
721
|
-
class: C(["inline-block relative",
|
|
724
|
+
return J(l, (o) => a.value === o ? ke(o, s.outputFormat) : ""), (o, n) => (c(), m("div", {
|
|
725
|
+
class: C(["inline-block relative", o.$attrs.class])
|
|
722
726
|
}, [
|
|
723
|
-
|
|
727
|
+
se(v("div", null, [
|
|
724
728
|
v("div", {
|
|
725
729
|
class: C(["block flex items-center w-full form-input bg-vxvue-50", { "pr-10": e.showToggle }])
|
|
726
730
|
}, [
|
|
727
|
-
v("span",
|
|
728
|
-
|
|
731
|
+
v("span", kt, P(d.value), 1),
|
|
732
|
+
r.value.disabled ? I("", !0) : (c(), m("button", {
|
|
729
733
|
key: 0,
|
|
730
734
|
class: "inline-flex shrink-0 justify-center items-center ml-2 rounded-full focus:text-white focus:outline-hidden size-4 text-vxvue hover:bg-vxvue-100 hover:text-vue-700 focus:bg-vxvue-700",
|
|
731
|
-
onClick:
|
|
735
|
+
onClick: n[0] || (n[0] = (i) => l.value = null)
|
|
732
736
|
}, [
|
|
733
|
-
Y(
|
|
737
|
+
Y(L(xe), { class: "size-4" })
|
|
734
738
|
]))
|
|
735
739
|
], 2)
|
|
736
740
|
], 512), [
|
|
737
|
-
[
|
|
741
|
+
[pe, d.value]
|
|
738
742
|
]),
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
"onUpdate:modelValue":
|
|
743
|
+
se(v("div", null, [
|
|
744
|
+
se(v("input", H({
|
|
745
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => a.value = i),
|
|
742
746
|
type: "text",
|
|
743
747
|
class: ["block w-full form-input peer focus:border-vxvue", { "pr-10": e.showToggle }]
|
|
744
|
-
},
|
|
745
|
-
onBlur:
|
|
746
|
-
var
|
|
747
|
-
return
|
|
748
|
+
}, r.value, {
|
|
749
|
+
onBlur: n[2] || (n[2] = (i) => {
|
|
750
|
+
var f;
|
|
751
|
+
return l.value = ((f = L(wt)(a.value, s.inputFormat).date) == null ? void 0 : f.value) || null;
|
|
748
752
|
}),
|
|
749
|
-
onInput:
|
|
753
|
+
onInput: n[3] || (n[3] = _(() => {
|
|
750
754
|
}, ["prevent"]))
|
|
751
755
|
}), null, 16), [
|
|
752
|
-
[
|
|
756
|
+
[Ie, a.value]
|
|
753
757
|
])
|
|
754
758
|
], 512), [
|
|
755
|
-
[
|
|
759
|
+
[pe, !d.value]
|
|
756
760
|
]),
|
|
757
761
|
e.showToggle ? (c(), m("button", {
|
|
758
762
|
key: 0,
|
|
759
763
|
ref: "toggleButton",
|
|
760
|
-
class: C(["flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700",
|
|
761
|
-
disabled:
|
|
764
|
+
class: C(["flex absolute inset-y-0 right-0 items-center px-2 text-vxvue-700", r.value.disabled ? "cursor-not-allowed" : "hover:text-vxvue"]),
|
|
765
|
+
disabled: r.value.disabled,
|
|
762
766
|
"aria-label": "datepicker-toggle",
|
|
763
|
-
onClick:
|
|
767
|
+
onClick: n[4] || (n[4] = _((i) => t("toggle-datepicker"), ["stop"]))
|
|
764
768
|
}, [
|
|
765
|
-
Y(
|
|
766
|
-
], 10,
|
|
767
|
-
|
|
769
|
+
Y(L(je), { class: "size-6" })
|
|
770
|
+
], 10, $t)) : I("", !0),
|
|
771
|
+
T(o.$slots, "default")
|
|
768
772
|
], 2));
|
|
769
773
|
}
|
|
770
|
-
}),
|
|
774
|
+
}), Ct = { class: "flex items-center py-2 px-3 text-white bg-vxvue-700" }, Mt = { class: "flex justify-between w-1/2" }, Dt = { class: "flex justify-between w-1/2" }, At = { class: "grid grid-cols-7 gap-0.5 p-0.5" }, Lt = ["disabled", "onClick"], Tt = { class: "flex justify-between items-center py-2 px-3 text-white bg-vxvue-700" }, Vt = { class: "grid grid-cols-2 gap-0.5 p-0.5" }, zt = ["onClick"], Ll = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
771
775
|
__name: "Datepicker",
|
|
772
|
-
props: {
|
|
773
|
-
modelValue: { type: [Date, Array], default: null, validator: (e, u) => e instanceof Date && u.maxNumberOfValues === 1 || e.every((t) => t instanceof Date || t === null) && e.length <= u.maxNumberOfValues },
|
|
776
|
+
props: /* @__PURE__ */ U({
|
|
774
777
|
shownMonth: Date,
|
|
775
778
|
maxNumberOfValues: { type: Number, default: 1 },
|
|
776
779
|
validFrom: Date,
|
|
@@ -780,202 +783,211 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
780
783
|
locale: { type: String, default: "default" },
|
|
781
784
|
startOfWeekIndex: { type: Number, default: 0, validator: (e) => e === 0 || e === 1 },
|
|
782
785
|
hasInput: { type: Boolean, default: !0 }
|
|
783
|
-
},
|
|
784
|
-
|
|
786
|
+
}, {
|
|
787
|
+
modelValue: {
|
|
788
|
+
type: [Date, Array],
|
|
789
|
+
default: null,
|
|
790
|
+
validator: (e, u) => e instanceof Date && u.maxNumberOfValues === 1 || e.every((t) => t instanceof Date || t === null) && e.length <= u.maxNumberOfValues
|
|
791
|
+
},
|
|
792
|
+
modelModifiers: {}
|
|
793
|
+
}),
|
|
794
|
+
emits: /* @__PURE__ */ U(["month-change", "year-change"], ["update:modelValue"]),
|
|
785
795
|
setup(e, { emit: u }) {
|
|
786
|
-
const t = e,
|
|
796
|
+
const t = e, s = te(e, "modelValue"), l = u, a = (() => {
|
|
787
797
|
const h = /* @__PURE__ */ new Date();
|
|
788
798
|
return new Date(h.getFullYear(), h.getMonth(), h.getDate());
|
|
789
|
-
})(),
|
|
790
|
-
const h = [],
|
|
791
|
-
for (let
|
|
792
|
-
h.push(new Date(
|
|
799
|
+
})(), d = k(null), r = k([]), o = k(!1), n = k("days"), i = k(0), f = k({ horiz: "left-0", vert: "top-0" }), x = k(null), w = k(null), p = k(null), M = B(() => t.hasInput && t.maxNumberOfValues === 1), g = B(() => M.value ? { class: ["absolute", o.value ? "block" : "hidden"] } : {}), $ = B(() => {
|
|
800
|
+
const h = [], b = d.value.getFullYear(), y = d.value.getMonth(), N = new Date(b, y + 1, 0), W = new Date(b, y, 0).getDay() + 1 - t.startOfWeekIndex, re = (6 + t.startOfWeekIndex - N.getDay()) % 7;
|
|
801
|
+
for (let le = -W, A = N.getDate() + re; le < A; ++le)
|
|
802
|
+
h.push(new Date(b, y, le + 1));
|
|
793
803
|
return h;
|
|
794
|
-
}),
|
|
795
|
-
|
|
804
|
+
}), z = B(() => t.startOfWeekIndex ? t.dayNames.slice(1).concat(t.dayNames[0]) : t.dayNames);
|
|
805
|
+
J(s, (h) => {
|
|
796
806
|
if (h)
|
|
797
807
|
if (Array.isArray(h)) {
|
|
798
|
-
const
|
|
808
|
+
const b = [], y = r.value;
|
|
799
809
|
h.forEach((N) => {
|
|
800
|
-
N &&
|
|
801
|
-
}), (
|
|
810
|
+
N && b.push(new Date(N.getFullYear(), N.getMonth(), N.getDate()));
|
|
811
|
+
}), (b.length !== y.length || ![.../* @__PURE__ */ new Set([...b, ...y])].every((N) => b.filter((W) => W.getTime() === N.getTime()).length === y.filter((W) => W.getTime() === N.getTime()).length)) && (r.value = b, d.value = new Date((b[0] || a).getTime()), d.value.setDate(1));
|
|
802
812
|
} else
|
|
803
|
-
|
|
813
|
+
r.value = [new Date(h.getFullYear(), h.getMonth(), h.getDate())], d.value = new Date(h.getFullYear(), h.getMonth(), 1);
|
|
804
814
|
else
|
|
805
|
-
|
|
806
|
-
}, { immediate: !0 }),
|
|
807
|
-
|
|
808
|
-
}, { immediate: !0 }),
|
|
809
|
-
h &&
|
|
810
|
-
const
|
|
811
|
-
|
|
812
|
-
horiz:
|
|
813
|
-
vert:
|
|
815
|
+
r.value = [], d.value = new Date(a.getFullYear(), a.getMonth(), 1);
|
|
816
|
+
}, { immediate: !0 }), J(() => t.shownMonth, (h) => {
|
|
817
|
+
d.value = new Date((h || a).getTime()), d.value.setDate(1);
|
|
818
|
+
}, { immediate: !0 }), J(o, (h) => {
|
|
819
|
+
h && M.value && ge(() => {
|
|
820
|
+
const b = x.value.$el.getBoundingClientRect(), y = w.value.getBoundingClientRect();
|
|
821
|
+
f.value = {
|
|
822
|
+
horiz: b.right - y.width < 0 ? "left-0" : "right-0",
|
|
823
|
+
vert: b.bottom + y.height > window.innerHeight ? "bottom-0 -translate-y-12" : "top-0 translate-y-12"
|
|
814
824
|
};
|
|
815
825
|
});
|
|
816
|
-
}),
|
|
817
|
-
|
|
818
|
-
}, { ignore: [
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
|
|
823
|
-
},
|
|
824
|
-
if (
|
|
825
|
-
|
|
826
|
+
}), ye(w, () => {
|
|
827
|
+
o.value = !1, n.value = "days";
|
|
828
|
+
}, { ignore: [p] });
|
|
829
|
+
const F = (h) => {
|
|
830
|
+
d.value = new Date(d.value.getFullYear(), h, 1), l("month-change", d.value);
|
|
831
|
+
}, q = (h) => {
|
|
832
|
+
d.value = new Date(h, d.value.getMonth(), 1), l("year-change", d.value);
|
|
833
|
+
}, X = (h) => s.value = h, S = (h) => {
|
|
834
|
+
if (o.value = !1, t.maxNumberOfValues === 1)
|
|
835
|
+
s.value = h;
|
|
826
836
|
else {
|
|
827
|
-
const
|
|
828
|
-
let
|
|
829
|
-
|
|
837
|
+
const b = r.value;
|
|
838
|
+
let y = b.findIndex((N) => N.getTime() === h.getTime());
|
|
839
|
+
y !== -1 ? b.splice(y, 1) : b.length < t.maxNumberOfValues && b.push(h), s.value = b;
|
|
830
840
|
}
|
|
831
|
-
},
|
|
832
|
-
const
|
|
841
|
+
}, D = (h) => r.value.find((b) => (b == null ? void 0 : b.getTime()) === h.getTime()), R = (h) => {
|
|
842
|
+
const b = h.getMonth() !== d.value.getMonth(), y = D(h), N = h.getTime() === a.getTime(), W = t.validFrom && t.validFrom > h || t.validUntil && t.validUntil < h, re = !y && t.maxNumberOfValues > 1 && r.value.length === t.maxNumberOfValues, le = t.highlightRange && h > Math.min(...r.value) && h < Math.max(...r.value);
|
|
833
843
|
return {
|
|
834
|
-
"cursor-not-allowed":
|
|
835
|
-
"text-vxvue-700": !
|
|
836
|
-
"text-error":
|
|
837
|
-
"text-gray-400":
|
|
838
|
-
"bg-vxvue-alt-300 font-bold": N && !
|
|
839
|
-
"bg-vxvue-700 text-white":
|
|
840
|
-
"hover:ring-2 hover:ring-vxvue": !
|
|
841
|
-
"bg-vxvue-100/50":
|
|
844
|
+
"cursor-not-allowed": W || re,
|
|
845
|
+
"text-vxvue-700": !W && !b && !N && !y,
|
|
846
|
+
"text-error": W && !b,
|
|
847
|
+
"text-gray-400": b && !N && !y,
|
|
848
|
+
"bg-vxvue-alt-300 font-bold": N && !y,
|
|
849
|
+
"bg-vxvue-700 text-white": y,
|
|
850
|
+
"hover:ring-2 hover:ring-vxvue": !W,
|
|
851
|
+
"bg-vxvue-100/50": le && !N && !y
|
|
842
852
|
};
|
|
843
853
|
};
|
|
844
|
-
return
|
|
854
|
+
return be(() => {
|
|
845
855
|
var h;
|
|
846
|
-
return
|
|
847
|
-
}), (h,
|
|
856
|
+
return p.value = (h = x.value) == null ? void 0 : h.$refs.toggleButton;
|
|
857
|
+
}), (h, b) => (c(), m("div", {
|
|
848
858
|
class: C(["relative", h.$attrs.class])
|
|
849
859
|
}, [
|
|
850
|
-
|
|
860
|
+
M.value ? (c(), Z(St, H({ key: 0 }, h.$attrs, {
|
|
851
861
|
ref_key: "input",
|
|
852
|
-
ref:
|
|
853
|
-
"model-value":
|
|
862
|
+
ref: x,
|
|
863
|
+
"model-value": r.value[0],
|
|
854
864
|
"show-toggle": !0,
|
|
855
865
|
class: "w-full",
|
|
856
|
-
onToggleDatepicker:
|
|
857
|
-
"onUpdate:modelValue":
|
|
866
|
+
onToggleDatepicker: b[0] || (b[0] = (y) => o.value = !o.value),
|
|
867
|
+
"onUpdate:modelValue": X
|
|
858
868
|
}), {
|
|
859
|
-
default:
|
|
860
|
-
|
|
869
|
+
default: ne(() => [
|
|
870
|
+
T(h.$slots, "default")
|
|
861
871
|
]),
|
|
862
872
|
_: 3
|
|
863
873
|
}, 16, ["model-value"])) : I("", !0),
|
|
864
|
-
v("div",
|
|
874
|
+
v("div", H(g.value, {
|
|
865
875
|
ref_key: "calendar",
|
|
866
|
-
ref:
|
|
867
|
-
class: ["overflow-hidden z-
|
|
876
|
+
ref: w,
|
|
877
|
+
class: ["overflow-hidden z-[var(--zIndex-dropdown)] bg-white rounded-sm shadow-md min-w-72 sm:min-w-80", [f.value.horiz, f.value.vert]]
|
|
868
878
|
}), [
|
|
869
|
-
|
|
870
|
-
v("div",
|
|
871
|
-
v("div",
|
|
879
|
+
n.value === "days" ? (c(), m(O, { key: 0 }, [
|
|
880
|
+
v("div", Ct, [
|
|
881
|
+
v("div", Mt, [
|
|
872
882
|
v("button", {
|
|
873
883
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
874
|
-
onClick:
|
|
884
|
+
onClick: b[1] || (b[1] = _((y) => F(d.value.getMonth() - 1), ["stop"]))
|
|
875
885
|
}, [
|
|
876
|
-
Y(
|
|
886
|
+
Y(L(ve), { class: "size-6" })
|
|
877
887
|
]),
|
|
878
|
-
v("span", null,
|
|
888
|
+
v("span", null, P(d.value.toLocaleString(e.locale, { month: "long" })), 1),
|
|
879
889
|
v("button", {
|
|
880
890
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
881
|
-
onClick:
|
|
891
|
+
onClick: b[2] || (b[2] = _((y) => F(d.value.getMonth() + 1), ["stop"]))
|
|
882
892
|
}, [
|
|
883
|
-
Y(
|
|
893
|
+
Y(L(de), { class: "size-6" })
|
|
884
894
|
])
|
|
885
895
|
]),
|
|
886
|
-
v("div",
|
|
896
|
+
v("div", Dt, [
|
|
887
897
|
v("button", {
|
|
888
898
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
889
|
-
onClick:
|
|
899
|
+
onClick: b[3] || (b[3] = _((y) => q(d.value.getFullYear() - 1), ["stop"]))
|
|
890
900
|
}, [
|
|
891
|
-
Y(
|
|
901
|
+
Y(L(ve), { class: "size-6" })
|
|
892
902
|
]),
|
|
893
903
|
v("button", {
|
|
894
904
|
class: "text-vxvue-100 hover:text-vxvue-50",
|
|
895
|
-
onClick:
|
|
896
|
-
|
|
905
|
+
onClick: b[4] || (b[4] = (y) => {
|
|
906
|
+
n.value = "years", i.value = d.value.getFullYear();
|
|
897
907
|
})
|
|
898
|
-
},
|
|
908
|
+
}, P(d.value.getFullYear()), 1),
|
|
899
909
|
v("button", {
|
|
900
910
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
901
|
-
onClick:
|
|
911
|
+
onClick: b[5] || (b[5] = _((y) => q(d.value.getFullYear() + 1), ["stop"]))
|
|
902
912
|
}, [
|
|
903
|
-
Y(
|
|
913
|
+
Y(L(de), { class: "size-6" })
|
|
904
914
|
])
|
|
905
915
|
])
|
|
906
916
|
]),
|
|
907
|
-
v("div",
|
|
908
|
-
(c(!0), m(O, null, j(
|
|
917
|
+
v("div", At, [
|
|
918
|
+
(c(!0), m(O, null, j(z.value, (y, N) => (c(), m("div", {
|
|
909
919
|
key: N,
|
|
910
920
|
class: "py-2 text-center bg-gray-200"
|
|
911
|
-
},
|
|
912
|
-
(c(!0), m(O, null, j(
|
|
913
|
-
key:
|
|
914
|
-
class: C(["py-2 rounded-xs block text-center",
|
|
915
|
-
disabled: e.validFrom && e.validFrom >
|
|
916
|
-
onClick: _((N) => S(
|
|
917
|
-
},
|
|
921
|
+
}, P(y), 1))), 128)),
|
|
922
|
+
(c(!0), m(O, null, j($.value, (y) => (c(), m("button", {
|
|
923
|
+
key: y,
|
|
924
|
+
class: C(["py-2 rounded-xs block text-center", R(y)]),
|
|
925
|
+
disabled: e.validFrom && e.validFrom > y || e.validUntil && e.validUntil < y || e.maxNumberOfValues > 1 && r.value.length === e.maxNumberOfValues && !D(y),
|
|
926
|
+
onClick: _((N) => S(y), ["stop"])
|
|
927
|
+
}, P(y.getDate()), 11, Lt))), 128))
|
|
918
928
|
])
|
|
919
929
|
], 64)) : I("", !0),
|
|
920
|
-
|
|
921
|
-
v("div",
|
|
930
|
+
n.value === "years" ? (c(), m(O, { key: 1 }, [
|
|
931
|
+
v("div", Tt, [
|
|
922
932
|
v("button", {
|
|
923
933
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
924
|
-
onClick:
|
|
934
|
+
onClick: b[6] || (b[6] = _((y) => i.value -= 10, ["stop"]))
|
|
925
935
|
}, [
|
|
926
|
-
Y(
|
|
936
|
+
Y(L(ve), { class: "size-6" })
|
|
927
937
|
]),
|
|
928
|
-
v("span", null,
|
|
938
|
+
v("span", null, P(i.value) + " - " + P(i.value + 9), 1),
|
|
929
939
|
v("button", {
|
|
930
940
|
class: "shrink-0 text-vxvue-100 hover:text-vxvue-50",
|
|
931
|
-
onClick:
|
|
941
|
+
onClick: b[7] || (b[7] = _((y) => i.value += 10, ["stop"]))
|
|
932
942
|
}, [
|
|
933
|
-
Y(
|
|
943
|
+
Y(L(de), { class: "size-6" })
|
|
934
944
|
])
|
|
935
945
|
]),
|
|
936
|
-
v("div",
|
|
937
|
-
(c(), m(O, null, j(10, (
|
|
938
|
-
key:
|
|
946
|
+
v("div", Vt, [
|
|
947
|
+
(c(), m(O, null, j(10, (y) => v("div", {
|
|
948
|
+
key: y,
|
|
939
949
|
class: "text-center hover:ring-2 text-vxvue-700 hover:ring-vxvue"
|
|
940
950
|
}, [
|
|
941
951
|
v("button", {
|
|
942
952
|
class: "py-2 px-3",
|
|
943
953
|
onClick: _((N) => {
|
|
944
|
-
|
|
954
|
+
q(i.value + y - 1), n.value = "days";
|
|
945
955
|
}, ["stop"])
|
|
946
|
-
},
|
|
956
|
+
}, P(i.value + y - 1), 9, zt)
|
|
947
957
|
])), 64))
|
|
948
958
|
])
|
|
949
959
|
], 64)) : I("", !0)
|
|
950
960
|
], 16)
|
|
951
961
|
], 2));
|
|
952
962
|
}
|
|
953
|
-
}),
|
|
963
|
+
}), Pt = ["for"], Bt = ["id", "multiple", "accept"], Tl = {
|
|
954
964
|
__name: "FormFileButton",
|
|
955
|
-
props: {
|
|
956
|
-
modelValue: { type: Array, default: () => [] },
|
|
965
|
+
props: /* @__PURE__ */ U({
|
|
957
966
|
accept: { type: String, default: "*" },
|
|
958
967
|
multiple: { type: Boolean, default: !1 },
|
|
959
968
|
name: { type: String, default: "file" },
|
|
960
969
|
id: { type: String, default: "form-file-button-" + Math.ceil(Math.random() * 1e3) }
|
|
961
|
-
},
|
|
962
|
-
|
|
970
|
+
}, {
|
|
971
|
+
modelValue: { type: Array, default: () => [] },
|
|
972
|
+
modelModifiers: {}
|
|
973
|
+
}),
|
|
974
|
+
emits: /* @__PURE__ */ U(["form-data"], ["update:modelValue"]),
|
|
963
975
|
setup(e, { emit: u }) {
|
|
964
|
-
const t = u,
|
|
965
|
-
const
|
|
966
|
-
for (let
|
|
967
|
-
|
|
968
|
-
return
|
|
969
|
-
},
|
|
970
|
-
const
|
|
971
|
-
if (
|
|
972
|
-
const
|
|
973
|
-
|
|
976
|
+
const t = u, s = e, l = te(e, "modelValue"), a = (r) => {
|
|
977
|
+
const o = new FormData();
|
|
978
|
+
for (let n of r)
|
|
979
|
+
o.append(s.name, n, n.name);
|
|
980
|
+
return o;
|
|
981
|
+
}, d = (r) => {
|
|
982
|
+
const o = r.target.files || r.dataTransfer.files;
|
|
983
|
+
if (o) {
|
|
984
|
+
const n = Array.from(o);
|
|
985
|
+
l.value = n, t("form-data", a(n));
|
|
974
986
|
}
|
|
975
987
|
};
|
|
976
|
-
return (
|
|
977
|
-
|
|
978
|
-
|
|
988
|
+
return (r, o) => (c(), m("label", { for: e.id }, [
|
|
989
|
+
T(r.$slots, "default", {}, () => [
|
|
990
|
+
o[0] || (o[0] = ee("Upload"))
|
|
979
991
|
]),
|
|
980
992
|
v("input", {
|
|
981
993
|
id: e.id,
|
|
@@ -983,47 +995,53 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
983
995
|
multiple: e.multiple,
|
|
984
996
|
accept: e.accept,
|
|
985
997
|
class: "hidden",
|
|
986
|
-
onChange:
|
|
987
|
-
}, null, 40,
|
|
988
|
-
], 8,
|
|
998
|
+
onChange: d
|
|
999
|
+
}, null, 40, Bt)
|
|
1000
|
+
], 8, Pt));
|
|
989
1001
|
}
|
|
990
|
-
},
|
|
1002
|
+
}, It = {
|
|
991
1003
|
key: 0,
|
|
992
1004
|
disabled: "",
|
|
993
1005
|
value: ""
|
|
994
|
-
},
|
|
1006
|
+
}, Nt = ["selected", "value"], Ot = {
|
|
995
1007
|
__name: "FormSelect",
|
|
996
|
-
props: {
|
|
1008
|
+
props: /* @__PURE__ */ U({
|
|
997
1009
|
options: { type: Array, default: () => [] },
|
|
998
|
-
modelValue: { type: [String, Number], default: null },
|
|
999
1010
|
disabledLabel: { type: String, default: "" }
|
|
1000
|
-
},
|
|
1011
|
+
}, {
|
|
1012
|
+
modelValue: {},
|
|
1013
|
+
modelModifiers: {}
|
|
1014
|
+
}),
|
|
1001
1015
|
emits: ["update:modelValue"],
|
|
1002
|
-
setup(e
|
|
1003
|
-
const
|
|
1004
|
-
return (
|
|
1005
|
-
|
|
1006
|
-
class: "form-select"
|
|
1007
|
-
onChange: a[0] || (a[0] = (l) => t("update:modelValue", l.target.value))
|
|
1016
|
+
setup(e) {
|
|
1017
|
+
const u = te(e, "modelValue");
|
|
1018
|
+
return (t, s) => se((c(), m("select", H(t.$attrs, {
|
|
1019
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => u.value = l),
|
|
1020
|
+
class: "form-select"
|
|
1008
1021
|
}), [
|
|
1009
|
-
e.disabledLabel ? (c(), m("option",
|
|
1022
|
+
e.disabledLabel ? (c(), m("option", It, P(e.disabledLabel), 1)) : I("", !0),
|
|
1010
1023
|
(c(!0), m(O, null, j(e.options, (l) => (c(), m("option", {
|
|
1011
1024
|
key: l.key !== void 0 ? l.key : l.label || l,
|
|
1012
|
-
selected: (l.key !== void 0 ? l.key : l.label || l) ===
|
|
1025
|
+
selected: (l.key !== void 0 ? l.key : l.label || l) === u.value,
|
|
1013
1026
|
value: l.key !== void 0 ? l.key : l.label || l
|
|
1014
|
-
},
|
|
1015
|
-
], 16,
|
|
1027
|
+
}, P(l.label || l), 9, Nt))), 128))
|
|
1028
|
+
], 16)), [
|
|
1029
|
+
[Ne, u.value]
|
|
1030
|
+
]);
|
|
1016
1031
|
}
|
|
1017
|
-
},
|
|
1032
|
+
}, Et = ["aria-checked", "aria-label"], Ft = ["d"], Vl = {
|
|
1018
1033
|
__name: "FormSwitch",
|
|
1019
|
-
props: {
|
|
1034
|
+
props: {
|
|
1035
|
+
modelValue: {},
|
|
1036
|
+
modelModifiers: {}
|
|
1037
|
+
},
|
|
1020
1038
|
emits: ["update:modelValue"],
|
|
1021
|
-
setup(e
|
|
1022
|
-
const
|
|
1023
|
-
let l = Object.assign({},
|
|
1039
|
+
setup(e) {
|
|
1040
|
+
const u = te(e, "modelValue"), t = B(() => {
|
|
1041
|
+
let l = Object.assign({}, G());
|
|
1024
1042
|
return delete l.class, l;
|
|
1025
|
-
}),
|
|
1026
|
-
return (l,
|
|
1043
|
+
}), s = B(() => G().disabled || G().disabled === "");
|
|
1044
|
+
return (l, a) => (c(), m("label", {
|
|
1027
1045
|
class: C(l.$attrs.class),
|
|
1028
1046
|
tabindex: "0"
|
|
1029
1047
|
}, [
|
|
@@ -1031,51 +1049,53 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1031
1049
|
role: "switch",
|
|
1032
1050
|
class: C([
|
|
1033
1051
|
"inline-flex relative 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-hidden focus:ring-vxvue",
|
|
1034
|
-
|
|
1052
|
+
s.value ? "bg-slate-200" : u.value ? "bg-vxvue" : "bg-slate-300"
|
|
1035
1053
|
]),
|
|
1036
|
-
"aria-checked":
|
|
1054
|
+
"aria-checked": u.value,
|
|
1037
1055
|
"aria-label": l.$attrs["aria-label"]
|
|
1038
1056
|
}, [
|
|
1039
1057
|
v("span", {
|
|
1040
1058
|
"aria-hidden": "true",
|
|
1041
1059
|
class: C([
|
|
1042
1060
|
"block relative size-5 rounded-full ring-0 shadow-sm transition duration-200 ease-in-out transform pointer-events-none",
|
|
1043
|
-
|
|
1044
|
-
|
|
1061
|
+
u.value ? "translate-x-5" : "translate-x-0",
|
|
1062
|
+
s.value ? "bg-slate-100" : "bg-white"
|
|
1045
1063
|
])
|
|
1046
1064
|
}, [
|
|
1047
|
-
|
|
1065
|
+
T(l.$slots, "handle", {}, () => [
|
|
1048
1066
|
(c(), m("svg", {
|
|
1049
1067
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1050
1068
|
fill: "none",
|
|
1051
1069
|
viewBox: "0 0 24 24",
|
|
1052
1070
|
"stroke-width": "5",
|
|
1053
1071
|
stroke: "currentColor",
|
|
1054
|
-
class: C(["absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-3",
|
|
1072
|
+
class: C(["absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 size-3", u.value && !s.value ? "text-vxvue" : "text-slate-300"])
|
|
1055
1073
|
}, [
|
|
1056
1074
|
v("path", {
|
|
1057
1075
|
"stroke-linecap": "round",
|
|
1058
1076
|
"stroke-linejoin": "round",
|
|
1059
|
-
d:
|
|
1060
|
-
}, null, 8,
|
|
1077
|
+
d: u.value ? "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"
|
|
1078
|
+
}, null, 8, Ft)
|
|
1061
1079
|
], 2))
|
|
1062
1080
|
])
|
|
1063
1081
|
], 2),
|
|
1064
|
-
v("input",
|
|
1065
|
-
|
|
1082
|
+
se(v("input", H({
|
|
1083
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => u.value = d)
|
|
1084
|
+
}, t.value, {
|
|
1066
1085
|
class: "hidden",
|
|
1067
1086
|
value: "1",
|
|
1068
|
-
type: "checkbox"
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1087
|
+
type: "checkbox"
|
|
1088
|
+
}), null, 16), [
|
|
1089
|
+
[Oe, u.value]
|
|
1090
|
+
])
|
|
1091
|
+
], 10, Et),
|
|
1092
|
+
T(l.$slots, "default")
|
|
1073
1093
|
], 2));
|
|
1074
1094
|
}
|
|
1075
|
-
},
|
|
1095
|
+
}, _t = {
|
|
1076
1096
|
"aria-live": "assertive",
|
|
1077
|
-
class: "flex fixed inset-0 z-
|
|
1078
|
-
},
|
|
1097
|
+
class: "flex fixed inset-0 z-[var(--zIndex-toast)] items-start py-6 px-4 pointer-events-none sm:p-6"
|
|
1098
|
+
}, jt = { class: "flex flex-col items-center space-y-4 w-full" }, Yt = { class: "p-4" }, Rt = { class: "flex items-start" }, Ht = { class: "shrink-0" }, Zt = { class: "flex-1 pt-0.5 ml-3 w-0" }, Ut = { class: "font-bold" }, Wt = { class: "mt-1" }, qt = { class: "flex shrink-0 ml-4" }, zl = /* @__PURE__ */ Object.assign({
|
|
1079
1099
|
inheritAttrs: !1
|
|
1080
1100
|
}, {
|
|
1081
1101
|
__name: "MessageToast",
|
|
@@ -1088,41 +1108,41 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1088
1108
|
},
|
|
1089
1109
|
emits: ["timeout", "close"],
|
|
1090
1110
|
setup(e, { emit: u }) {
|
|
1091
|
-
const t = e,
|
|
1092
|
-
let
|
|
1093
|
-
const
|
|
1094
|
-
window.clearTimeout(
|
|
1095
|
-
|
|
1096
|
-
}, t.timeout), window.setTimeout(() =>
|
|
1111
|
+
const t = e, s = u, l = B(() => typeof t.message == "string" ? [t.message] : t.message), a = k(0);
|
|
1112
|
+
let d = null;
|
|
1113
|
+
const r = () => {
|
|
1114
|
+
window.clearTimeout(d), a.value = 100, t.active && t.timeout && (d = window.setTimeout(() => {
|
|
1115
|
+
s("timeout");
|
|
1116
|
+
}, t.timeout), window.setTimeout(() => a.value = 0, 0));
|
|
1097
1117
|
};
|
|
1098
|
-
return
|
|
1099
|
-
v("div",
|
|
1100
|
-
Y(
|
|
1101
|
-
default:
|
|
1118
|
+
return J(() => t.active, r), be(r), (o, n) => (c(), m("div", _t, [
|
|
1119
|
+
v("div", jt, [
|
|
1120
|
+
Y(we, { name: "vert-fade" }, {
|
|
1121
|
+
default: ne(() => [
|
|
1102
1122
|
e.active ? (c(), m("div", {
|
|
1103
1123
|
key: 0,
|
|
1104
1124
|
class: C(["overflow-hidden w-full max-w-sm rounded-md ring-1 ring-black/5 shadow-lg pointer-events-auto", o.$attrs.class])
|
|
1105
1125
|
}, [
|
|
1106
|
-
v("div",
|
|
1107
|
-
v("div",
|
|
1108
|
-
v("div",
|
|
1109
|
-
|
|
1126
|
+
v("div", Yt, [
|
|
1127
|
+
v("div", Rt, [
|
|
1128
|
+
v("div", Ht, [
|
|
1129
|
+
T(o.$slots, "icon")
|
|
1110
1130
|
]),
|
|
1111
|
-
v("div",
|
|
1112
|
-
|
|
1113
|
-
v("div",
|
|
1131
|
+
v("div", Zt, [
|
|
1132
|
+
T(o.$slots, "title", {}, () => [
|
|
1133
|
+
v("div", Ut, P(e.title), 1)
|
|
1114
1134
|
]),
|
|
1115
|
-
|
|
1116
|
-
(c(!0), m(O, null, j(
|
|
1135
|
+
T(o.$slots, "default", {}, () => [
|
|
1136
|
+
(c(!0), m(O, null, j(l.value, (i) => (c(), m("p", Wt, P(i), 1))), 256))
|
|
1117
1137
|
])
|
|
1118
1138
|
]),
|
|
1119
|
-
v("div",
|
|
1139
|
+
v("div", qt, [
|
|
1120
1140
|
v("button", {
|
|
1121
1141
|
class: "inline-flex text-white bg-black/20 rounded-xs focus:ring-2 focus:outline-hidden hover:text-stone-200 focus:ring-stone-200",
|
|
1122
|
-
onClick:
|
|
1142
|
+
onClick: n[0] || (n[0] = (i) => s("close"))
|
|
1123
1143
|
}, [
|
|
1124
|
-
|
|
1125
|
-
Y(
|
|
1144
|
+
n[1] || (n[1] = v("span", { class: "sr-only" }, "Close", -1)),
|
|
1145
|
+
Y(L(xe), { class: "size-5" })
|
|
1126
1146
|
])
|
|
1127
1147
|
])
|
|
1128
1148
|
])
|
|
@@ -1130,8 +1150,8 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1130
1150
|
e.showTimeoutProgress && e.timeout ? (c(), m("div", {
|
|
1131
1151
|
key: 0,
|
|
1132
1152
|
class: "h-1 transition-all ease-linear bg-vxvue-alt",
|
|
1133
|
-
style:
|
|
1134
|
-
width:
|
|
1153
|
+
style: Se({
|
|
1154
|
+
width: a.value + "%",
|
|
1135
1155
|
"transition-duration": e.timeout + "ms"
|
|
1136
1156
|
}),
|
|
1137
1157
|
role: "progressbar",
|
|
@@ -1145,14 +1165,14 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1145
1165
|
])
|
|
1146
1166
|
]));
|
|
1147
1167
|
}
|
|
1148
|
-
}),
|
|
1168
|
+
}), Kt = {
|
|
1149
1169
|
key: 0,
|
|
1150
|
-
class: "fixed inset-0 z-
|
|
1170
|
+
class: "fixed inset-0 z-[calc(var(--zIndex-modal)-1)] bg-white/50 backdrop-blur-xs",
|
|
1151
1171
|
"aria-hidden": "true"
|
|
1152
|
-
},
|
|
1172
|
+
}, Xt = {
|
|
1153
1173
|
key: 0,
|
|
1154
|
-
class: "fixed inset-0 z-
|
|
1155
|
-
},
|
|
1174
|
+
class: "fixed inset-0 z-[var(--zIndex-modal)]"
|
|
1175
|
+
}, Gt = { class: "flex justify-center items-center h-screen" }, Pl = {
|
|
1156
1176
|
__name: "Modal",
|
|
1157
1177
|
props: {
|
|
1158
1178
|
show: Boolean,
|
|
@@ -1165,16 +1185,16 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1165
1185
|
},
|
|
1166
1186
|
emits: ["clicked-outside"],
|
|
1167
1187
|
setup(e, { emit: u }) {
|
|
1168
|
-
const t = u,
|
|
1169
|
-
return
|
|
1170
|
-
e.show ? (c(), m("div",
|
|
1171
|
-
Y(
|
|
1172
|
-
default:
|
|
1173
|
-
e.show ? (c(), m("div",
|
|
1174
|
-
v("div",
|
|
1188
|
+
const t = u, s = k(null);
|
|
1189
|
+
return ye(s, () => t("clicked-outside")), (l, a) => (c(), m(O, null, [
|
|
1190
|
+
e.show ? (c(), m("div", Kt)) : I("", !0),
|
|
1191
|
+
Y(we, { name: "appear" }, {
|
|
1192
|
+
default: ne(() => [
|
|
1193
|
+
e.show ? (c(), m("div", Xt, [
|
|
1194
|
+
v("div", Gt, [
|
|
1175
1195
|
v("div", {
|
|
1176
1196
|
ref_key: "container",
|
|
1177
|
-
ref:
|
|
1197
|
+
ref: s,
|
|
1178
1198
|
class: C([
|
|
1179
1199
|
"flex flex-col overflow-hidden max-w-full bg-white rounded-sm ring-1 ring-black/10 shadow-xl transition-all transform xl:max-w-(--breakpoint-xl)",
|
|
1180
1200
|
e.containerClass
|
|
@@ -1183,12 +1203,12 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1183
1203
|
v("div", {
|
|
1184
1204
|
class: C(["grow-0", e.headerClass])
|
|
1185
1205
|
}, [
|
|
1186
|
-
|
|
1206
|
+
T(l.$slots, "title")
|
|
1187
1207
|
], 2),
|
|
1188
1208
|
v("div", {
|
|
1189
1209
|
class: C(["overflow-y-auto h-full", e.contentClass])
|
|
1190
1210
|
}, [
|
|
1191
|
-
|
|
1211
|
+
T(l.$slots, "default")
|
|
1192
1212
|
], 2)
|
|
1193
1213
|
], 2)
|
|
1194
1214
|
])
|
|
@@ -1198,7 +1218,7 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1198
1218
|
})
|
|
1199
1219
|
], 64));
|
|
1200
1220
|
}
|
|
1201
|
-
},
|
|
1221
|
+
}, Jt = { class: "flex justify-between items-center px-4 sm:px-0" }, Qt = { class: "flex flex-1 -mt-px w-0" }, el = ["disabled"], tl = { class: "hidden md:flex md:-mt-px" }, ll = { class: "flex flex-1 justify-end -mt-px w-0" }, al = ["disabled"], Bl = {
|
|
1202
1222
|
__name: "Pagination",
|
|
1203
1223
|
props: {
|
|
1204
1224
|
page: { type: Number, default: 1 },
|
|
@@ -1212,73 +1232,73 @@ const pt = { class: "text-vxvue-700" }, gt = ["disabled"], bt = /* @__PURE__ */
|
|
|
1212
1232
|
},
|
|
1213
1233
|
emits: ["update:page"],
|
|
1214
1234
|
setup(e, { emit: u }) {
|
|
1215
|
-
const t = u,
|
|
1216
|
-
let
|
|
1217
|
-
if (
|
|
1218
|
-
for (let f = 2; f <=
|
|
1219
|
-
|
|
1220
|
-
return
|
|
1235
|
+
const t = u, s = e, l = k(Math.ceil(s.total / s.perPage)), a = k(null), d = B(() => (s.markerPosition === "above" ? "border-t-4 -mt-[4px]" : "border-b-4 -mb-[4px]") + " py-4"), r = B(() => {
|
|
1236
|
+
let i = [1];
|
|
1237
|
+
if (s.showAllPages || l.value <= 7) {
|
|
1238
|
+
for (let f = 2; f <= l.value; ++f)
|
|
1239
|
+
i.push(f);
|
|
1240
|
+
return i;
|
|
1221
1241
|
}
|
|
1222
|
-
return
|
|
1242
|
+
return a.value >= l.value ? i.push("dots", a.value - 2, a.value - 1) : a.value - 1 && a.value - 1 > 1 && (a.value > 1 && i.push("dots"), i.push(a.value - 1)), a.value > 1 && i.push(a.value), a.value + 1 < l.value && (i.push(a.value + 1), a.value <= 1 && i.push(a.value + 2), a.value + 2 < l.value && i.push("dots")), a.value < l.value && i.push(l.value), i;
|
|
1223
1243
|
}), o = () => {
|
|
1224
|
-
|
|
1225
|
-
},
|
|
1226
|
-
|
|
1244
|
+
a.value > 1 && t("update:page", a.value - 1);
|
|
1245
|
+
}, n = () => {
|
|
1246
|
+
a.value < l.value && t("update:page", a.value + 1);
|
|
1227
1247
|
};
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1230
|
-
}),
|
|
1231
|
-
|
|
1232
|
-
}), (
|
|
1233
|
-
v("div",
|
|
1248
|
+
return J(() => s.page, (i) => a.value = Math.min(Math.max(i, 1), l.value), { immediate: !0 }), J(() => s.perPage, (i) => {
|
|
1249
|
+
l.value = Math.ceil(s.total / s.perPage), t("update:page", 1);
|
|
1250
|
+
}), J(() => s.total, (i) => {
|
|
1251
|
+
l.value = Math.ceil(s.total / s.perPage), a.value > l.value && t("update:page", l.value);
|
|
1252
|
+
}), (i, f) => (c(), m("nav", Jt, [
|
|
1253
|
+
v("div", Qt, [
|
|
1234
1254
|
e.showNavButtons ? (c(), m("button", {
|
|
1235
1255
|
key: 0,
|
|
1236
|
-
disabled:
|
|
1256
|
+
disabled: a.value <= 1,
|
|
1237
1257
|
class: C([
|
|
1238
|
-
|
|
1258
|
+
a.value <= 1 ? "pointer-events-none text-gray-500" : "text-vxvue-700",
|
|
1239
1259
|
"inline-flex items-center pr-1 text-sm border-transparent hover:text-vxvue"
|
|
1240
1260
|
]),
|
|
1241
1261
|
onClick: o
|
|
1242
1262
|
}, [
|
|
1243
|
-
Y(
|
|
1244
|
-
|
|
1245
|
-
], 10,
|
|
1263
|
+
Y(L(ve), { class: "size-5" }),
|
|
1264
|
+
ee(" " + P(e.prevText), 1)
|
|
1265
|
+
], 10, el)) : I("", !0)
|
|
1246
1266
|
]),
|
|
1247
|
-
v("div",
|
|
1248
|
-
(c(!0), m(O, null, j(
|
|
1249
|
-
key:
|
|
1267
|
+
v("div", tl, [
|
|
1268
|
+
(c(!0), m(O, null, j(r.value, (x, w) => (c(), Z(fe(e.page !== "dots" ? "button" : "span"), {
|
|
1269
|
+
key: w,
|
|
1250
1270
|
class: C([
|
|
1251
1271
|
{ "pointer-events-none": x === "dots" },
|
|
1252
|
-
x ===
|
|
1253
|
-
|
|
1272
|
+
x === a.value ? "border-vxvue text-vxvue font-bold" : "border-transparent text-gray-500 hover:border-gray-300",
|
|
1273
|
+
d.value,
|
|
1254
1274
|
"inline-flex items-center px-4 text-sm"
|
|
1255
1275
|
]),
|
|
1256
|
-
onClick: (
|
|
1276
|
+
onClick: (p) => x !== "dots" ? t("update:page", x) : null
|
|
1257
1277
|
}, {
|
|
1258
|
-
default:
|
|
1259
|
-
|
|
1278
|
+
default: ne(() => [
|
|
1279
|
+
ee(P(x !== "dots" ? x : "…"), 1)
|
|
1260
1280
|
]),
|
|
1261
1281
|
_: 2
|
|
1262
1282
|
}, 1032, ["class", "onClick"]))), 128))
|
|
1263
1283
|
]),
|
|
1264
|
-
v("div",
|
|
1284
|
+
v("div", ll, [
|
|
1265
1285
|
e.showNavButtons ? (c(), m("button", {
|
|
1266
1286
|
key: 0,
|
|
1267
|
-
disabled:
|
|
1287
|
+
disabled: a.value >= l.value,
|
|
1268
1288
|
class: C([
|
|
1269
|
-
|
|
1289
|
+
a.value >= l.value ? "pointer-events-none text-gray-500" : "text-vxvue-700",
|
|
1270
1290
|
"inline-flex items-center pr-1 text-sm border-transparent hover:text-vxvue"
|
|
1271
1291
|
]),
|
|
1272
|
-
onClick:
|
|
1292
|
+
onClick: n
|
|
1273
1293
|
}, [
|
|
1274
|
-
|
|
1275
|
-
Y(
|
|
1276
|
-
], 10,
|
|
1294
|
+
ee(P(e.nextText) + " ", 1),
|
|
1295
|
+
Y(L(de), { class: "size-5" })
|
|
1296
|
+
], 10, al)) : I("", !0)
|
|
1277
1297
|
])
|
|
1278
1298
|
]));
|
|
1279
1299
|
}
|
|
1280
1300
|
};
|
|
1281
|
-
function
|
|
1301
|
+
function sl(e, u) {
|
|
1282
1302
|
return c(), m("svg", {
|
|
1283
1303
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1284
1304
|
fill: "none",
|
|
@@ -1295,7 +1315,7 @@ function el(e, u) {
|
|
|
1295
1315
|
})
|
|
1296
1316
|
]);
|
|
1297
1317
|
}
|
|
1298
|
-
function
|
|
1318
|
+
function nl(e, u) {
|
|
1299
1319
|
return c(), m("svg", {
|
|
1300
1320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1301
1321
|
fill: "none",
|
|
@@ -1317,149 +1337,151 @@ function tl(e, u) {
|
|
|
1317
1337
|
})
|
|
1318
1338
|
]);
|
|
1319
1339
|
}
|
|
1320
|
-
const
|
|
1340
|
+
const ol = ["type"], rl = ["disabled"], Il = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1321
1341
|
__name: "PasswordInput",
|
|
1322
|
-
props: {
|
|
1342
|
+
props: {
|
|
1343
|
+
modelValue: {},
|
|
1344
|
+
modelModifiers: {}
|
|
1345
|
+
},
|
|
1323
1346
|
emits: ["update:modelValue"],
|
|
1324
|
-
setup(e
|
|
1325
|
-
const
|
|
1326
|
-
let l = Object.assign({},
|
|
1347
|
+
setup(e) {
|
|
1348
|
+
const u = te(e, "modelValue"), t = k(!1), s = B(() => {
|
|
1349
|
+
let l = Object.assign({}, G());
|
|
1327
1350
|
return delete l.class, l;
|
|
1328
1351
|
});
|
|
1329
|
-
return (l,
|
|
1330
|
-
class: C("inline-block relative " +
|
|
1352
|
+
return (l, a) => (c(), m("div", {
|
|
1353
|
+
class: C("inline-block relative " + G().class)
|
|
1331
1354
|
}, [
|
|
1332
|
-
v("input",
|
|
1333
|
-
|
|
1334
|
-
type:
|
|
1335
|
-
},
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}), null, 16, ll),
|
|
1355
|
+
se(v("input", H({
|
|
1356
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => u.value = d),
|
|
1357
|
+
type: t.value ? "text" : "password"
|
|
1358
|
+
}, s.value, { class: "block pr-12 w-full form-input peer" }), null, 16, ol), [
|
|
1359
|
+
[Ee, u.value]
|
|
1360
|
+
]),
|
|
1339
1361
|
v("button", {
|
|
1340
1362
|
class: "flex absolute inset-y-0 right-0 items-center px-3 text-brand-700 hover:text-brand",
|
|
1341
1363
|
"aria-label": "show-password-toggle",
|
|
1342
|
-
disabled:
|
|
1343
|
-
onClick:
|
|
1364
|
+
disabled: G().disabled ?? !1,
|
|
1365
|
+
onClick: a[1] || (a[1] = _((d) => t.value = !t.value, ["stop"]))
|
|
1344
1366
|
}, [
|
|
1345
|
-
|
|
1367
|
+
t.value ? (c(), Z(L(sl), {
|
|
1346
1368
|
key: 0,
|
|
1347
1369
|
class: "size-5"
|
|
1348
|
-
})) : (c(), Z(
|
|
1370
|
+
})) : (c(), Z(L(nl), {
|
|
1349
1371
|
key: 1,
|
|
1350
1372
|
class: "size-5"
|
|
1351
1373
|
}))
|
|
1352
|
-
], 8,
|
|
1374
|
+
], 8, rl)
|
|
1353
1375
|
], 2));
|
|
1354
1376
|
}
|
|
1355
|
-
}),
|
|
1377
|
+
}), ul = { class: "flex items-center pb-1" }, il = {
|
|
1356
1378
|
key: 0,
|
|
1357
1379
|
class: "ml-6"
|
|
1358
|
-
},
|
|
1380
|
+
}, Nl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1359
1381
|
__name: "SimpleTree",
|
|
1360
|
-
props: {
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
},
|
|
1364
|
-
emits: ["
|
|
1382
|
+
props: /* @__PURE__ */ U({ branch: { type: Object, default: () => ({}) } }, {
|
|
1383
|
+
modelValue: { type: Object, default: null },
|
|
1384
|
+
modelModifiers: {}
|
|
1385
|
+
}),
|
|
1386
|
+
emits: /* @__PURE__ */ U(["expand"], ["update:modelValue"]),
|
|
1365
1387
|
setup(e, { emit: u }) {
|
|
1366
|
-
const t = e,
|
|
1367
|
-
return
|
|
1368
|
-
t.branch ===
|
|
1369
|
-
}), (
|
|
1370
|
-
const
|
|
1388
|
+
const t = e, s = u, l = te(e, "modelValue"), a = k(!1);
|
|
1389
|
+
return be(() => {
|
|
1390
|
+
t.branch === l.value && s("expand", !0);
|
|
1391
|
+
}), (d, r) => {
|
|
1392
|
+
const o = Fe("simple-tree", !0);
|
|
1371
1393
|
return c(), m("div", {
|
|
1372
|
-
class: C([!e.branch.branches || !e.branch.branches.length ? "terminates" : "",
|
|
1394
|
+
class: C([!e.branch.branches || !e.branch.branches.length ? "terminates" : "", d.$attrs.class])
|
|
1373
1395
|
}, [
|
|
1374
|
-
v("div",
|
|
1396
|
+
v("div", ul, [
|
|
1375
1397
|
e.branch.branches && e.branch.branches.length ? (c(), m("button", {
|
|
1376
1398
|
key: 0,
|
|
1377
1399
|
class: "mr-2",
|
|
1378
|
-
onClick:
|
|
1400
|
+
onClick: r[0] || (r[0] = (n) => a.value = !a.value)
|
|
1379
1401
|
}, [
|
|
1380
|
-
|
|
1402
|
+
T(d.$slots, "toggle", {
|
|
1381
1403
|
branch: e.branch,
|
|
1382
1404
|
expanded: a.value
|
|
1383
1405
|
}, () => [
|
|
1384
|
-
(c(), Z(
|
|
1406
|
+
(c(), Z(fe(a.value ? L(Ze) : L(Ue)), { class: "p-0.5 text-white rounded size-5 bg-vxvue-700 hover:bg-vxvue" }))
|
|
1385
1407
|
])
|
|
1386
1408
|
])) : I("", !0),
|
|
1387
|
-
e.branch ===
|
|
1409
|
+
e.branch === l.value ? T(d.$slots, "label-selected", {
|
|
1388
1410
|
key: 1,
|
|
1389
1411
|
branch: e.branch
|
|
1390
1412
|
}, () => [
|
|
1391
|
-
v("strong", null,
|
|
1413
|
+
v("strong", null, P(e.branch.label), 1)
|
|
1392
1414
|
]) : (c(), m("button", {
|
|
1393
1415
|
key: 2,
|
|
1394
|
-
onClick:
|
|
1416
|
+
onClick: r[1] || (r[1] = (n) => l.value = e.branch)
|
|
1395
1417
|
}, [
|
|
1396
|
-
|
|
1397
|
-
|
|
1418
|
+
T(d.$slots, "label", { branch: e.branch }, () => [
|
|
1419
|
+
ee(P(e.branch.label), 1)
|
|
1398
1420
|
])
|
|
1399
1421
|
]))
|
|
1400
1422
|
]),
|
|
1401
|
-
e.branch.branches && e.branch.branches.length ?
|
|
1402
|
-
(c(!0), m(O, null, j(e.branch.branches, (
|
|
1403
|
-
key:
|
|
1404
|
-
branch:
|
|
1405
|
-
|
|
1406
|
-
"onUpdate:modelValue":
|
|
1407
|
-
onExpand:
|
|
1408
|
-
a.value =
|
|
1423
|
+
e.branch.branches && e.branch.branches.length ? se((c(), m("div", il, [
|
|
1424
|
+
(c(!0), m(O, null, j(e.branch.branches, (n) => (c(), Z(o, {
|
|
1425
|
+
key: n.id || n.key || null,
|
|
1426
|
+
branch: n,
|
|
1427
|
+
modelValue: l.value,
|
|
1428
|
+
"onUpdate:modelValue": r[2] || (r[2] = (i) => l.value = i),
|
|
1429
|
+
onExpand: r[3] || (r[3] = (i) => {
|
|
1430
|
+
a.value = i, s("expand", i);
|
|
1409
1431
|
})
|
|
1410
|
-
},
|
|
1411
|
-
j(
|
|
1412
|
-
name:
|
|
1413
|
-
fn:
|
|
1414
|
-
|
|
1432
|
+
}, _e({ _: 2 }, [
|
|
1433
|
+
j(d.$slots, (i, f) => ({
|
|
1434
|
+
name: f,
|
|
1435
|
+
fn: ne((x) => [
|
|
1436
|
+
T(d.$slots, f, H({ ref_for: !0 }, x))
|
|
1415
1437
|
])
|
|
1416
1438
|
}))
|
|
1417
|
-
]), 1032, ["branch", "
|
|
1439
|
+
]), 1032, ["branch", "modelValue"]))), 128))
|
|
1418
1440
|
], 512)), [
|
|
1419
|
-
[
|
|
1441
|
+
[pe, a.value]
|
|
1420
1442
|
]) : I("", !0)
|
|
1421
1443
|
], 2);
|
|
1422
1444
|
};
|
|
1423
1445
|
}
|
|
1424
|
-
}),
|
|
1446
|
+
}), Ol = {
|
|
1425
1447
|
__name: "Sizable",
|
|
1426
1448
|
props: { vertical: Boolean },
|
|
1427
1449
|
emits: ["dragStart", "dragStop"],
|
|
1428
1450
|
setup(e, { emit: u }) {
|
|
1429
|
-
const t = e,
|
|
1430
|
-
let
|
|
1431
|
-
const f = (
|
|
1432
|
-
var
|
|
1433
|
-
if (
|
|
1434
|
-
|
|
1435
|
-
const { pageX:
|
|
1436
|
-
t.vertical ?
|
|
1451
|
+
const t = e, s = u, l = k(null), a = k(null);
|
|
1452
|
+
let d = !1, r = {}, o = null, n = null, i = null;
|
|
1453
|
+
const f = (p) => {
|
|
1454
|
+
var M;
|
|
1455
|
+
if (d) {
|
|
1456
|
+
p.preventDefault();
|
|
1457
|
+
const { pageX: g, pageY: $ } = ((M = p.touches) == null ? void 0 : M[0]) ?? p;
|
|
1458
|
+
t.vertical ? l.value.style.height = Math.min(n.height - i.height - (o.y - n.y), Math.max(0, o.height + $ - r.y)) + "px" : l.value.style.width = Math.min(n.width - i.width - (o.x - n.x), Math.max(0, o.width + g - r.x)) + "px";
|
|
1437
1459
|
}
|
|
1438
|
-
}, x = (
|
|
1439
|
-
var
|
|
1440
|
-
|
|
1441
|
-
const { pageX:
|
|
1442
|
-
|
|
1443
|
-
},
|
|
1444
|
-
|
|
1460
|
+
}, x = (p) => {
|
|
1461
|
+
var $;
|
|
1462
|
+
p.preventDefault(), p.currentTarget.focus(), d = !0;
|
|
1463
|
+
const { pageX: M, pageY: g } = (($ = p.touches) == null ? void 0 : $[0]) ?? p;
|
|
1464
|
+
r = { x: M, y: g }, i = a.value.getBoundingClientRect(), o = l.value.getBoundingClientRect(), n = l.value.parentElement.getBoundingClientRect(), p.type === "mousedown" ? (document.addEventListener("mousemove", f), document.addEventListener("mouseup", w)) : (document.addEventListener("touchmove", f), document.addEventListener("touchend", w)), s("dragStart");
|
|
1465
|
+
}, w = (p) => {
|
|
1466
|
+
d && (d = !1, p.type === "mouseup" ? (document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", w)) : (document.removeEventListener("touchmove", f), document.removeEventListener("touchend", w)), setTimeout(() => s("dragStop"), 0));
|
|
1445
1467
|
};
|
|
1446
|
-
return (
|
|
1468
|
+
return (p, M) => (c(), m("div", {
|
|
1447
1469
|
ref_key: "box",
|
|
1448
|
-
ref:
|
|
1470
|
+
ref: l,
|
|
1449
1471
|
class: "relative"
|
|
1450
1472
|
}, [
|
|
1451
|
-
|
|
1452
|
-
v("div",
|
|
1473
|
+
T(p.$slots, "default"),
|
|
1474
|
+
v("div", H({
|
|
1453
1475
|
ref_key: "handle",
|
|
1454
|
-
ref:
|
|
1476
|
+
ref: a,
|
|
1455
1477
|
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"]
|
|
1456
|
-
},
|
|
1478
|
+
}, ce({
|
|
1457
1479
|
touchstart: x,
|
|
1458
1480
|
mousedown: x,
|
|
1459
|
-
touchend:
|
|
1460
|
-
mouseup:
|
|
1481
|
+
touchend: w,
|
|
1482
|
+
mouseup: w
|
|
1461
1483
|
}, !0)), [
|
|
1462
|
-
|
|
1484
|
+
T(p.$slots, "handle", {}, () => [
|
|
1463
1485
|
v("div", {
|
|
1464
1486
|
class: C(["rounded-full bg-vxvue", t.vertical ? "h-1.5 w-8" : "h-8 w-1.5"])
|
|
1465
1487
|
}, null, 2)
|
|
@@ -1467,133 +1489,135 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1467
1489
|
], 16)
|
|
1468
1490
|
], 512));
|
|
1469
1491
|
}
|
|
1470
|
-
},
|
|
1492
|
+
}, dl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext"], cl = ["id"], vl = ["id", "aria-label"], El = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1471
1493
|
__name: "Slider",
|
|
1472
|
-
props: {
|
|
1494
|
+
props: /* @__PURE__ */ U({
|
|
1473
1495
|
min: { type: Number, default: 0 },
|
|
1474
1496
|
max: { type: Number, default: 100 },
|
|
1475
1497
|
vertical: Boolean,
|
|
1476
|
-
disabled: Boolean
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1498
|
+
disabled: Boolean
|
|
1499
|
+
}, {
|
|
1500
|
+
modelValue: {
|
|
1501
|
+
type: [Number, Array],
|
|
1502
|
+
default: null,
|
|
1503
|
+
validator(e) {
|
|
1504
|
+
return typeof e == "number" || e.every((u) => typeof u == "number");
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
modelModifiers: {}
|
|
1508
|
+
}),
|
|
1509
|
+
emits: /* @__PURE__ */ U(["dragStart", "dragStop"], ["update:modelValue"]),
|
|
1482
1510
|
setup(e, { emit: u }) {
|
|
1483
|
-
const t = e,
|
|
1484
|
-
let
|
|
1485
|
-
const
|
|
1486
|
-
const S = t.max,
|
|
1487
|
-
return
|
|
1488
|
-
}),
|
|
1489
|
-
if (
|
|
1490
|
-
const S = Math.min(...
|
|
1491
|
-
return t.vertical ? { bottom: S, height:
|
|
1511
|
+
const t = e, s = te(e, "modelValue"), l = u, a = G(), d = { x: null, y: null }, r = { w: null, h: null };
|
|
1512
|
+
let o = !1;
|
|
1513
|
+
const n = k(null), i = k(0), f = B(() => {
|
|
1514
|
+
const S = t.max, D = t.min;
|
|
1515
|
+
return s.value instanceof Array ? s.value.map((R) => (Math.max(Math.min(R, S), D) - D) * 100 / (S - D)) : (Math.max(Math.min(s.value, S), D) - D) * 100 / (S - D);
|
|
1516
|
+
}), x = B(() => {
|
|
1517
|
+
if (s.value instanceof Array) {
|
|
1518
|
+
const S = Math.min(...f.value) + "%", D = Math.max(...f.value) - Math.min(...f.value) + "%";
|
|
1519
|
+
return t.vertical ? { bottom: S, height: D } : { left: S, width: D };
|
|
1492
1520
|
}
|
|
1493
|
-
return t.vertical ? { bottom: 0, height:
|
|
1494
|
-
}),
|
|
1521
|
+
return t.vertical ? { bottom: 0, height: f.value + "%" } : { width: f.value + "%" };
|
|
1522
|
+
}), w = k({
|
|
1495
1523
|
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-hidden border-vxvue cursor-grab hover:bg-vxvue focus:ring-vxvue/50"),
|
|
1496
1524
|
tabindex: 0
|
|
1497
|
-
}),
|
|
1498
|
-
let
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1512
|
-
},
|
|
1513
|
-
S.preventDefault(), S.currentTarget.focus(), T(), s = !0, S.type === "mousedown" ? (document.addEventListener("mousemove", p), document.addEventListener("mouseup", D)) : (document.addEventListener("touchmove", p), document.addEventListener("touchend", D)), n("dragStart");
|
|
1514
|
-
}, D = (S) => {
|
|
1515
|
-
s && (s = !1, S.type === "mouseup" ? (document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", D)) : (document.removeEventListener("touchmove", p), document.removeEventListener("touchend", D)), setTimeout(() => n("dragStop"), 0));
|
|
1516
|
-
}, W = (S) => {
|
|
1525
|
+
}), p = (S) => {
|
|
1526
|
+
let D = parseFloat(S.toFixed(10));
|
|
1527
|
+
D = Math.min(t.max, Math.max(t.min, D)), s.value instanceof Array ? s.value[i.value] = D : s.value = D;
|
|
1528
|
+
}, M = (S) => {
|
|
1529
|
+
const { pageX: D, pageY: R } = S.touches ? S.touches[0] : S, h = t.vertical ? (-R + d.y) / r.h : (D - d.x) / r.w;
|
|
1530
|
+
p(Math.floor((t.max - t.min) * h + t.min));
|
|
1531
|
+
}, g = () => {
|
|
1532
|
+
const { clientLeft: S, clientTop: D, scrollLeft: R, scrollTop: h } = document.documentElement, b = n.value.getBoundingClientRect();
|
|
1533
|
+
d.x = b.left + R - S, d.y = b.bottom + h - D, r.w = n.value.offsetWidth, r.h = n.value.offsetHeight;
|
|
1534
|
+
}, $ = (S) => {
|
|
1535
|
+
o && (S.preventDefault(), M(S));
|
|
1536
|
+
}, z = (S) => {
|
|
1537
|
+
S.preventDefault(), S.currentTarget.focus(), g(), o = !0, S.type === "mousedown" ? (document.addEventListener("mousemove", $), document.addEventListener("mouseup", F)) : (document.addEventListener("touchmove", $), document.addEventListener("touchend", F)), l("dragStart");
|
|
1538
|
+
}, F = (S) => {
|
|
1539
|
+
o && (o = !1, S.type === "mouseup" ? (document.removeEventListener("mousemove", $), document.removeEventListener("mouseup", F)) : (document.removeEventListener("touchmove", $), document.removeEventListener("touchend", F)), setTimeout(() => l("dragStop"), 0));
|
|
1540
|
+
}, q = (S) => {
|
|
1517
1541
|
S.keyCode >= 33 && S.keyCode <= 40 && S.preventDefault();
|
|
1518
|
-
const
|
|
1542
|
+
const D = s.value[i.value] ?? s.value;
|
|
1519
1543
|
switch (S.keyCode) {
|
|
1520
1544
|
case 37:
|
|
1521
1545
|
case 40:
|
|
1522
|
-
|
|
1546
|
+
p(D - 1);
|
|
1523
1547
|
break;
|
|
1524
1548
|
case 39:
|
|
1525
1549
|
case 38:
|
|
1526
|
-
|
|
1550
|
+
p(D + 1);
|
|
1527
1551
|
break;
|
|
1528
1552
|
case 33:
|
|
1529
|
-
|
|
1553
|
+
p(D + (t.max - t.min) / 10);
|
|
1530
1554
|
break;
|
|
1531
1555
|
case 34:
|
|
1532
|
-
|
|
1556
|
+
p(D - (t.max - t.min) / 10);
|
|
1533
1557
|
break;
|
|
1534
1558
|
case 36:
|
|
1535
|
-
|
|
1559
|
+
p(t.min);
|
|
1536
1560
|
break;
|
|
1537
1561
|
case 35:
|
|
1538
|
-
|
|
1562
|
+
p(t.max);
|
|
1539
1563
|
}
|
|
1540
|
-
},
|
|
1541
|
-
|
|
1564
|
+
}, X = (S) => {
|
|
1565
|
+
g(), M(S);
|
|
1542
1566
|
};
|
|
1543
|
-
return (S,
|
|
1567
|
+
return (S, D) => (c(), m("div", H({
|
|
1544
1568
|
ref_key: "track",
|
|
1545
|
-
ref:
|
|
1569
|
+
ref: n,
|
|
1546
1570
|
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"],
|
|
1547
1571
|
role: "slider",
|
|
1548
1572
|
"aria-label": "slider-thumb",
|
|
1549
1573
|
"aria-valuemin": e.min,
|
|
1550
|
-
"aria-valuemax":
|
|
1551
|
-
"aria-valuenow":
|
|
1552
|
-
"aria-valuetext":
|
|
1553
|
-
},
|
|
1554
|
-
click:
|
|
1574
|
+
"aria-valuemax": e.max,
|
|
1575
|
+
"aria-valuenow": s.value[0] ?? s.value,
|
|
1576
|
+
"aria-valuetext": s.value
|
|
1577
|
+
}, ce(e.disabled ? {} : {
|
|
1578
|
+
click: X
|
|
1555
1579
|
}, !0)), [
|
|
1556
1580
|
e.disabled ? I("", !0) : (c(), m("div", {
|
|
1557
1581
|
key: 0,
|
|
1558
1582
|
class: C(["absolute bg-vxvue", e.vertical ? "w-full rounded-t-full rounded-b-full" : "h-full rounded-r-full rounded-l-full"]),
|
|
1559
|
-
style:
|
|
1583
|
+
style: Se(x.value)
|
|
1560
1584
|
}, null, 6)),
|
|
1561
|
-
|
|
1562
|
-
id: h ? null :
|
|
1563
|
-
style: e.vertical ? { bottom:
|
|
1585
|
+
s.value.length ? (c(!0), m(O, { key: 2 }, j(s.value, (R, h) => (c(), m("button", H({
|
|
1586
|
+
id: h ? null : L(a).id,
|
|
1587
|
+
style: e.vertical ? { bottom: f.value[h] + "%" } : { left: f.value[h] + "%" },
|
|
1564
1588
|
"aria-label": "slider-thumb-" + (h + 1),
|
|
1565
1589
|
ref_for: !0
|
|
1566
|
-
},
|
|
1567
|
-
focus: () =>
|
|
1568
|
-
keydown:
|
|
1569
|
-
touchstart: (
|
|
1570
|
-
|
|
1590
|
+
}, w.value, ce(e.disabled ? {} : {
|
|
1591
|
+
focus: () => i.value = h,
|
|
1592
|
+
keydown: q,
|
|
1593
|
+
touchstart: (b) => {
|
|
1594
|
+
i.value = h, z(b);
|
|
1571
1595
|
},
|
|
1572
|
-
mousedown: (
|
|
1573
|
-
|
|
1596
|
+
mousedown: (b) => {
|
|
1597
|
+
i.value = h, z(b);
|
|
1574
1598
|
},
|
|
1575
|
-
touchend:
|
|
1576
|
-
mouseup:
|
|
1577
|
-
}, !0)), null, 16,
|
|
1599
|
+
touchend: F,
|
|
1600
|
+
mouseup: F
|
|
1601
|
+
}, !0)), null, 16, vl))), 256)) : (c(), m("button", H({
|
|
1578
1602
|
key: 1,
|
|
1579
|
-
id:
|
|
1580
|
-
style: e.vertical ? { bottom:
|
|
1603
|
+
id: L(a).id,
|
|
1604
|
+
style: e.vertical ? { bottom: f.value + "%" } : { left: f.value + "%" },
|
|
1581
1605
|
"aria-label": "slider-thumb"
|
|
1582
|
-
},
|
|
1583
|
-
focus: () =>
|
|
1584
|
-
keydown:
|
|
1585
|
-
touchstart: (
|
|
1586
|
-
|
|
1606
|
+
}, w.value, ce(e.disabled ? {} : {
|
|
1607
|
+
focus: () => i.value = 0,
|
|
1608
|
+
keydown: q,
|
|
1609
|
+
touchstart: (R) => {
|
|
1610
|
+
i.value = 0, z(R);
|
|
1587
1611
|
},
|
|
1588
|
-
mousedown: (
|
|
1589
|
-
|
|
1612
|
+
mousedown: (R) => {
|
|
1613
|
+
i.value = 0, z(R);
|
|
1590
1614
|
},
|
|
1591
|
-
touchend:
|
|
1592
|
-
mouseup:
|
|
1593
|
-
}, !0)), null, 16,
|
|
1594
|
-
], 16,
|
|
1615
|
+
touchend: F,
|
|
1616
|
+
mouseup: F
|
|
1617
|
+
}, !0)), null, 16, cl))
|
|
1618
|
+
], 16, dl));
|
|
1595
1619
|
}
|
|
1596
|
-
}),
|
|
1620
|
+
}), fl = ["data-active", "onClick"], ml = { class: "flex items-center space-x-1" }, hl = ["data-active"], Fl = {
|
|
1597
1621
|
__name: "Sortable",
|
|
1598
1622
|
props: {
|
|
1599
1623
|
columns: {
|
|
@@ -1617,68 +1641,68 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1617
1641
|
},
|
|
1618
1642
|
emits: ["before-sort", "after-sort"],
|
|
1619
1643
|
setup(e, { emit: u }) {
|
|
1620
|
-
const t = e,
|
|
1644
|
+
const t = e, s = u, l = k(t.sortProp), a = k(t.sortDirection), d = B(() => {
|
|
1621
1645
|
let o = t.rows.slice();
|
|
1622
|
-
const
|
|
1623
|
-
return
|
|
1624
|
-
}),
|
|
1625
|
-
|
|
1646
|
+
const n = t.columns.find(({ prop: i }) => i === l.value);
|
|
1647
|
+
return n && (a.value === "asc" && n.sortAscFunction ? o.sort(n.sortAscFunction) : a.value === "desc" && n.sortDescFunction ? o.sort(n.sortDescFunction) : o.sort((i, f) => i[l.value] < f[l.value] ? a.value === "asc" ? -1 : 1 : i[l.value] > f[l.value] ? a.value === "asc" ? 1 : -1 : 0)), o.slice(t.offset || 0, (t.offset || 0) + (t.count || o.length));
|
|
1648
|
+
}), r = (o) => {
|
|
1649
|
+
s("before-sort", { prop: l.value, dir: a.value }), l.value === o ? a.value = a.value === "asc" ? "desc" : "asc" : (l.value = o, a.value = a.value || "asc"), ge(() => s("after-sort", { prop: l.value, dir: a.value }));
|
|
1626
1650
|
};
|
|
1627
|
-
return (o,
|
|
1651
|
+
return (o, n) => (c(), m("table", {
|
|
1628
1652
|
class: C(o.$attrs.class || "w-full divide-y divide-y-slate-900 table-fixed")
|
|
1629
1653
|
}, [
|
|
1630
1654
|
v("thead", {
|
|
1631
1655
|
class: C(e.headerClass)
|
|
1632
1656
|
}, [
|
|
1633
1657
|
v("tr", null, [
|
|
1634
|
-
(c(!0), m(O, null, j(e.columns, (
|
|
1635
|
-
key:
|
|
1658
|
+
(c(!0), m(O, null, j(e.columns, (i) => (c(), m("th", {
|
|
1659
|
+
key: i.prop,
|
|
1636
1660
|
scope: "col",
|
|
1637
|
-
"data-active":
|
|
1661
|
+
"data-active": l.value === i.prop ? "active" : null,
|
|
1638
1662
|
class: C([
|
|
1639
1663
|
"py-3 px-6 text-left",
|
|
1640
|
-
{ "cursor-pointer":
|
|
1641
|
-
|
|
1664
|
+
{ "cursor-pointer": i.sortable },
|
|
1665
|
+
i.cssClass
|
|
1642
1666
|
]),
|
|
1643
|
-
onClick: (f) =>
|
|
1667
|
+
onClick: (f) => i.sortable ? r(i.prop) : null
|
|
1644
1668
|
}, [
|
|
1645
|
-
|
|
1646
|
-
column:
|
|
1647
|
-
sortDir:
|
|
1648
|
-
sortProp:
|
|
1669
|
+
T(o.$slots, i.prop + "-header", {
|
|
1670
|
+
column: i,
|
|
1671
|
+
sortDir: a.value,
|
|
1672
|
+
sortProp: l.value
|
|
1649
1673
|
}, () => [
|
|
1650
|
-
v("div",
|
|
1651
|
-
v("span", null,
|
|
1652
|
-
|
|
1674
|
+
v("div", ml, [
|
|
1675
|
+
v("span", null, P(i.label), 1),
|
|
1676
|
+
i.sortable ? (c(), Z(fe(l.value !== i.prop ? L(Re) : a.value === "asc" ? L(Ye) : L(He)), {
|
|
1653
1677
|
key: 0,
|
|
1654
1678
|
class: "size-4"
|
|
1655
1679
|
})) : I("", !0)
|
|
1656
1680
|
])
|
|
1657
1681
|
])
|
|
1658
|
-
], 10,
|
|
1682
|
+
], 10, fl))), 128))
|
|
1659
1683
|
])
|
|
1660
1684
|
], 2),
|
|
1661
1685
|
v("tbody", {
|
|
1662
1686
|
class: C(e.bodyClass)
|
|
1663
1687
|
}, [
|
|
1664
|
-
(c(!0), m(O, null, j(
|
|
1665
|
-
key:
|
|
1666
|
-
class: C(
|
|
1688
|
+
(c(!0), m(O, null, j(d.value, (i) => (c(), m("tr", {
|
|
1689
|
+
key: i[e.keyProperty],
|
|
1690
|
+
class: C(i.cssClass)
|
|
1667
1691
|
}, [
|
|
1668
1692
|
(c(!0), m(O, null, j(e.columns, (f) => (c(), m("td", {
|
|
1669
1693
|
key: f.prop,
|
|
1670
|
-
"data-active":
|
|
1694
|
+
"data-active": l.value === f.prop ? "active" : null,
|
|
1671
1695
|
class: "overflow-hidden py-3 px-6 whitespace-nowrap text-ellipsis"
|
|
1672
1696
|
}, [
|
|
1673
|
-
|
|
1674
|
-
|
|
1697
|
+
T(o.$slots, f.prop, { row: i }, () => [
|
|
1698
|
+
ee(P(i[f.prop]), 1)
|
|
1675
1699
|
])
|
|
1676
|
-
], 8,
|
|
1700
|
+
], 8, hl))), 128))
|
|
1677
1701
|
], 2))), 128))
|
|
1678
1702
|
], 2)
|
|
1679
1703
|
], 2));
|
|
1680
1704
|
}
|
|
1681
|
-
},
|
|
1705
|
+
}, pl = { class: "flex items-center space-x-2" }, gl = ["disabled"], bl = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
1682
1706
|
__name: "SubmitButton",
|
|
1683
1707
|
props: {
|
|
1684
1708
|
busy: Boolean,
|
|
@@ -1688,25 +1712,25 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1688
1712
|
emits: ["submit"],
|
|
1689
1713
|
setup(e, { emit: u }) {
|
|
1690
1714
|
const t = u;
|
|
1691
|
-
return (
|
|
1715
|
+
return (s, l) => (c(), m("div", pl, [
|
|
1692
1716
|
v("button", {
|
|
1693
|
-
class: C([
|
|
1694
|
-
disabled:
|
|
1717
|
+
class: C([s.$attrs.class, e.theme]),
|
|
1718
|
+
disabled: s.$attrs.disabled || e.busy,
|
|
1695
1719
|
type: "button",
|
|
1696
|
-
onClick:
|
|
1720
|
+
onClick: l[0] || (l[0] = (a) => t("submit"))
|
|
1697
1721
|
}, [
|
|
1698
|
-
|
|
1699
|
-
], 10,
|
|
1700
|
-
e.busy ? (c(), Z(
|
|
1722
|
+
T(s.$slots, "default", {}, void 0, !0)
|
|
1723
|
+
], 10, gl),
|
|
1724
|
+
e.busy ? (c(), Z(Ce, {
|
|
1701
1725
|
key: 0,
|
|
1702
1726
|
class: C(e.spinnerClass || ["size-5", { error: "text-error", success: "text-success", default: "text-vxvue" }[e.theme || "default"]])
|
|
1703
1727
|
}, null, 8, ["class"])) : I("", !0)
|
|
1704
1728
|
]));
|
|
1705
1729
|
}
|
|
1706
|
-
}),
|
|
1730
|
+
}), _l = /* @__PURE__ */ Ae(bl, [["__scopeId", "data-v-55a337c8"]]), xl = { class: "sm:hidden" }, yl = { class: "hidden sm:block" }, wl = { class: "border-b border-gray-200" }, kl = {
|
|
1707
1731
|
class: "flex -mb-px space-x-8",
|
|
1708
1732
|
"aria-label": "Tabs"
|
|
1709
|
-
},
|
|
1733
|
+
}, $l = ["aria-current", "onClick"], jl = {
|
|
1710
1734
|
__name: "Tabs",
|
|
1711
1735
|
props: {
|
|
1712
1736
|
items: { type: Array, default: () => [] },
|
|
@@ -1714,119 +1738,119 @@ const ll = ["value", "type"], al = ["disabled"], Tl = /* @__PURE__ */ Object.ass
|
|
|
1714
1738
|
},
|
|
1715
1739
|
emits: ["update:activeIndex"],
|
|
1716
1740
|
setup(e, { emit: u }) {
|
|
1717
|
-
const t = e,
|
|
1718
|
-
let
|
|
1719
|
-
return t.items.forEach((o,
|
|
1720
|
-
o.disabled ||
|
|
1721
|
-
}),
|
|
1741
|
+
const t = e, s = u, l = k(t.items[t.activeIndex] || {}), a = B(() => {
|
|
1742
|
+
let r = [];
|
|
1743
|
+
return t.items.forEach((o, n) => {
|
|
1744
|
+
o.disabled || r.push({ label: o.name, key: n });
|
|
1745
|
+
}), r;
|
|
1722
1746
|
});
|
|
1723
|
-
|
|
1724
|
-
|
|
1747
|
+
J(() => t.activeIndex, (r) => {
|
|
1748
|
+
l.value = t.items[r] || {};
|
|
1725
1749
|
});
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1750
|
+
const d = (r) => {
|
|
1751
|
+
r.disabled || (l.value = r, s("update:activeIndex", t.items.indexOf(r)));
|
|
1728
1752
|
};
|
|
1729
|
-
return (
|
|
1730
|
-
v("div",
|
|
1731
|
-
Y(
|
|
1732
|
-
options:
|
|
1753
|
+
return (r, o) => (c(), m(O, null, [
|
|
1754
|
+
v("div", xl, [
|
|
1755
|
+
Y(Ot, {
|
|
1756
|
+
options: a.value,
|
|
1733
1757
|
"model-value": e.activeIndex,
|
|
1734
1758
|
class: "w-full",
|
|
1735
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
1759
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => s("update:activeIndex", n))
|
|
1736
1760
|
}, null, 8, ["options", "model-value"])
|
|
1737
1761
|
]),
|
|
1738
|
-
v("div",
|
|
1739
|
-
v("div",
|
|
1740
|
-
v("nav",
|
|
1741
|
-
(c(!0), m(O, null, j(e.items, (
|
|
1742
|
-
key:
|
|
1762
|
+
v("div", yl, [
|
|
1763
|
+
v("div", wl, [
|
|
1764
|
+
v("nav", kl, [
|
|
1765
|
+
(c(!0), m(O, null, j(e.items, (n) => (c(), m("a", {
|
|
1766
|
+
key: n.name,
|
|
1743
1767
|
href: "#",
|
|
1744
1768
|
class: C([
|
|
1745
1769
|
"group inline-flex items-center py-4 px-1 border-b-4 font-medium no-underline! border-transparent",
|
|
1746
1770
|
{
|
|
1747
|
-
"border-vxvue text-vxvue":
|
|
1748
|
-
"cursor-not-allowed text-gray-400":
|
|
1749
|
-
"text-gray-900 hover:text-vxvue-600 hover:border-vxvue-600":
|
|
1771
|
+
"border-vxvue text-vxvue": l.value === n,
|
|
1772
|
+
"cursor-not-allowed text-gray-400": n.disabled,
|
|
1773
|
+
"text-gray-900 hover:text-vxvue-600 hover:border-vxvue-600": l.value !== n && !n.disabled
|
|
1750
1774
|
}
|
|
1751
1775
|
]),
|
|
1752
|
-
"aria-current":
|
|
1753
|
-
onClick: _((
|
|
1776
|
+
"aria-current": l.value === n ? "page" : void 0,
|
|
1777
|
+
onClick: _((i) => d(n), ["prevent"])
|
|
1754
1778
|
}, [
|
|
1755
|
-
|
|
1779
|
+
T(r.$slots, "icon", { tab: n }),
|
|
1756
1780
|
v("span", null, [
|
|
1757
|
-
|
|
1758
|
-
|
|
1781
|
+
T(r.$slots, "default", { tab: n }, () => [
|
|
1782
|
+
ee(P(n.name), 1)
|
|
1759
1783
|
])
|
|
1760
1784
|
]),
|
|
1761
|
-
|
|
1762
|
-
|
|
1785
|
+
T(r.$slots, "badge", { tab: n }, () => [
|
|
1786
|
+
n.badge ? (c(), m("span", {
|
|
1763
1787
|
key: 0,
|
|
1764
1788
|
class: C([
|
|
1765
1789
|
"hidden ml-3 py-0.5 px-2.5 rounded-full text-xs font-medium md:inline-block text-current",
|
|
1766
1790
|
{
|
|
1767
|
-
"bg-gray-100":
|
|
1768
|
-
"bg-vxvue-50":
|
|
1769
|
-
"bg-gray-200":
|
|
1791
|
+
"bg-gray-100": n.disabled,
|
|
1792
|
+
"bg-vxvue-50": l.value === n,
|
|
1793
|
+
"bg-gray-200": l.value !== n && !n.disabled
|
|
1770
1794
|
}
|
|
1771
1795
|
])
|
|
1772
|
-
},
|
|
1796
|
+
}, P(n.badge), 3)) : I("", !0)
|
|
1773
1797
|
])
|
|
1774
|
-
], 10,
|
|
1798
|
+
], 10, $l))), 128))
|
|
1775
1799
|
])
|
|
1776
1800
|
])
|
|
1777
1801
|
])
|
|
1778
1802
|
], 64));
|
|
1779
1803
|
}
|
|
1780
|
-
},
|
|
1804
|
+
}, Yl = {
|
|
1781
1805
|
mounted: (e) => e.focus()
|
|
1782
|
-
},
|
|
1806
|
+
}, Rl = {
|
|
1783
1807
|
mounted: (e, u) => {
|
|
1784
|
-
var t,
|
|
1808
|
+
var t, s;
|
|
1785
1809
|
if (!["INPUT", "TEXTAREA"].includes(e.nodeName)) {
|
|
1786
|
-
let
|
|
1787
|
-
|
|
1810
|
+
let l = e.querySelector('input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="url"],input[type="tel"]');
|
|
1811
|
+
l || (l = e.querySelector("textarea")), e = l;
|
|
1788
1812
|
}
|
|
1789
1813
|
if (e) {
|
|
1790
1814
|
if (e.querySelector("label")) throw new Error("VFloatingLabel directive: LABEL element found.");
|
|
1791
|
-
const
|
|
1792
|
-
|
|
1793
|
-
const
|
|
1794
|
-
|
|
1795
|
-
..."absolute px-2 left-1 top-2 scale-90 text-sm z-
|
|
1815
|
+
const l = Math.random().toString(36).substring(2), a = document.createElement("div");
|
|
1816
|
+
a.classList.add("relative", "isolate");
|
|
1817
|
+
const d = document.createElement("label");
|
|
1818
|
+
d.classList.add(
|
|
1819
|
+
..."absolute px-2 left-1 top-2 scale-90 text-sm z-[var(--zIndex-label)] origin-[0] bg-white -translate-y-4 transform-gpu duration-200".split(" "),
|
|
1796
1820
|
..."peer-focus:top-2 peer-focus:scale-90 peer-focus:-translate-y-full".split(" "),
|
|
1797
1821
|
..."peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2".split(" "),
|
|
1798
1822
|
e.nodeName === "TEXTAREA" ? "peer-placeholder-shown:top-4" : "peer-placeholder-shown:top-1/2"
|
|
1799
|
-
), (t = u.value) != null && t.invalid ?
|
|
1823
|
+
), (t = u.value) != null && t.invalid ? d.classList.add("text-error", "peer-focus:text-error") : d.classList.add("peer-focus:text-blue-600"), e.getAttribute("required") !== null && d.classList.add("required"), d.setAttribute("for", e.getAttribute("id") || l + "-element"), d.innerHTML = ((s = u.value) == null ? void 0 : s.label) || e.getAttribute("placeholder") || l + "-label", e.classList.add("peer"), e.setAttribute("placeholder", " "), e.setAttribute("id", e.getAttribute("id") || l + "-element"), e.parentElement.replaceChild(a, e), a.appendChild(e), a.appendChild(d);
|
|
1800
1824
|
}
|
|
1801
1825
|
},
|
|
1802
1826
|
updated: (e, u) => {
|
|
1803
|
-
var
|
|
1804
|
-
const t = e.parentNode.querySelector("label"),
|
|
1805
|
-
t.innerHTML = ((
|
|
1827
|
+
var l, a, d;
|
|
1828
|
+
const t = e.parentNode.querySelector("label"), s = (l = e.getAttribute("placeholder")) == null ? void 0 : l.trim();
|
|
1829
|
+
t.innerHTML = ((a = u.value) == null ? void 0 : a.label) || s || t.innerHTML, s && e.setAttribute("placeholder", " "), (d = u.value) != null && d.invalid ? (t.classList.add("text-error", "peer-focus:text-error"), t.classList.remove("peer-focus:text-blue-600")) : (t.classList.remove("text-error", "peer-focus:text-error"), t.classList.add("peer-focus:text-blue-600")), t.classList[e.getAttribute("required") !== null ? "add" : "remove"]("required");
|
|
1806
1830
|
},
|
|
1807
1831
|
beforeUnmount: (e) => e.parentNode.parentNode.removeChild(e.parentNode)
|
|
1808
1832
|
};
|
|
1809
1833
|
export {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1834
|
+
Cl as Accordion,
|
|
1835
|
+
Ml as AccordionPanel,
|
|
1836
|
+
Dl as Autocomplete,
|
|
1837
|
+
Al as Confirm,
|
|
1838
|
+
St as DateInput,
|
|
1839
|
+
Ll as Datepicker,
|
|
1840
|
+
Tl as FormFileButton,
|
|
1841
|
+
Ot as FormSelect,
|
|
1818
1842
|
Vl as FormSwitch,
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1843
|
+
zl as MessageToast,
|
|
1844
|
+
Pl as Modal,
|
|
1845
|
+
Bl as Pagination,
|
|
1846
|
+
Il as PasswordInput,
|
|
1847
|
+
Nl as SimpleTree,
|
|
1848
|
+
Ol as Sizable,
|
|
1849
|
+
El as Slider,
|
|
1850
|
+
Fl as Sortable,
|
|
1851
|
+
Ce as Spinner,
|
|
1852
|
+
_l as SubmitButton,
|
|
1853
|
+
jl as Tabs,
|
|
1854
|
+
Rl as VFloatingLabel,
|
|
1855
|
+
Yl as VFocus
|
|
1832
1856
|
};
|