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