@codemonster-ru/vueforge 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +50 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +659 -543
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/alert.test.d.ts +1 -0
- package/dist/package/components/alert.vue.d.ts +42 -0
- package/dist/package/config/theme-core.d.ts +40 -0
- package/dist/package/themes/default/components/alert.d.ts +40 -0
- package/dist/package/themes/default/index.d.ts +39 -0
- package/package.json +1 -1
package/dist/index.ts.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as N, ref as M, computed as g, watch as oe, resolveComponent as Ge, openBlock as b, createElementBlock as y, normalizeClass as I, renderSlot as $, Fragment as pe, createTextVNode as Z, toDisplayString as E, createBlock as re, withCtx as he, createCommentVNode as F, createElementVNode as B, renderList as Be, withKeys as te, withModifiers as Q, unref as ke, createVNode as je, useSlots as Xe, nextTick as ze, onMounted as Le, onBeforeUnmount as we, Teleport as $e, withDirectives as be, vShow as me, provide as qe, inject as Oe, reactive as lt, createSlots as nt } from "vue";
|
|
2
2
|
import { useRoute as st, useRouter as it } from "vue-router";
|
|
3
3
|
import { CmIcon as Ce } from "@codemonster-ru/vueiconify";
|
|
4
|
-
const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */
|
|
4
|
+
const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ N({
|
|
5
5
|
__name: "link",
|
|
6
6
|
props: {
|
|
7
7
|
to: { default: void 0 },
|
|
@@ -30,7 +30,7 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
|
|
|
30
30
|
return oe(i, (f) => {
|
|
31
31
|
f && (r("active"), r("onActive")), r("update:active", f);
|
|
32
32
|
}), (f, w) => {
|
|
33
|
-
const C =
|
|
33
|
+
const C = Ge("router-link");
|
|
34
34
|
return l.value === "a" ? (b(), y("a", {
|
|
35
35
|
key: 0,
|
|
36
36
|
href: c.value,
|
|
@@ -39,10 +39,10 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
|
|
|
39
39
|
tabindex: f.disabled ? -1 : void 0,
|
|
40
40
|
onClick: p
|
|
41
41
|
}, [
|
|
42
|
-
f.$slots.default ?
|
|
43
|
-
|
|
42
|
+
f.$slots.default ? $(f.$slots, "default", { key: 0 }) : (b(), y(pe, { key: 1 }, [
|
|
43
|
+
Z(E(f.label), 1)
|
|
44
44
|
], 64))
|
|
45
|
-
], 10, dt)) : (b(),
|
|
45
|
+
], 10, dt)) : (b(), re(C, {
|
|
46
46
|
key: 1,
|
|
47
47
|
ref_key: "link",
|
|
48
48
|
ref: s,
|
|
@@ -54,9 +54,9 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
|
|
|
54
54
|
"exact-active-class": "vf-link_active",
|
|
55
55
|
onClick: p
|
|
56
56
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
f.$slots.default ?
|
|
59
|
-
|
|
57
|
+
default: he(() => [
|
|
58
|
+
f.$slots.default ? $(f.$slots, "default", { key: 0 }) : (b(), y(pe, { key: 1 }, [
|
|
59
|
+
Z(E(f.label), 1)
|
|
60
60
|
], 64))
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
@@ -84,17 +84,17 @@ const dt = ["href", "aria-disabled", "tabindex"], Ue = /* @__PURE__ */ Y({
|
|
|
84
84
|
function gt(t, e) {
|
|
85
85
|
return b(), y("div", vt, [
|
|
86
86
|
t.$slots.default ? (b(), y("div", ft, [
|
|
87
|
-
|
|
88
|
-
])) :
|
|
87
|
+
$(t.$slots, "default")
|
|
88
|
+
])) : F("", !0),
|
|
89
89
|
t.$slots.header ? (b(), y("div", pt, [
|
|
90
|
-
|
|
91
|
-
])) :
|
|
90
|
+
$(t.$slots, "header")
|
|
91
|
+
])) : F("", !0),
|
|
92
92
|
t.$slots.body ? (b(), y("div", bt, [
|
|
93
|
-
|
|
94
|
-
])) :
|
|
93
|
+
$(t.$slots, "body")
|
|
94
|
+
])) : F("", !0),
|
|
95
95
|
t.$slots.footer ? (b(), y("div", mt, [
|
|
96
|
-
|
|
97
|
-
])) :
|
|
96
|
+
$(t.$slots, "footer")
|
|
97
|
+
])) : F("", !0)
|
|
98
98
|
]);
|
|
99
99
|
}
|
|
100
100
|
const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
@@ -104,7 +104,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
104
104
|
key: 1,
|
|
105
105
|
class: "vf-menu__separator",
|
|
106
106
|
role: "separator"
|
|
107
|
-
}, kt = ["aria-expanded", "onClick", "onKeydown"],
|
|
107
|
+
}, kt = ["aria-expanded", "onClick", "onKeydown"], Fa = /* @__PURE__ */ N({
|
|
108
108
|
name: "VfMenu",
|
|
109
109
|
__name: "menu",
|
|
110
110
|
props: {
|
|
@@ -135,7 +135,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
135
135
|
},
|
|
136
136
|
{ deep: !0, immediate: !0 }
|
|
137
137
|
), (n, i) => {
|
|
138
|
-
const v =
|
|
138
|
+
const v = Ge("VfMenu");
|
|
139
139
|
return b(), y("div", {
|
|
140
140
|
class: I(["vf-menu", `vf-menu_${n.orientation}`])
|
|
141
141
|
}, [
|
|
@@ -145,7 +145,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
145
145
|
class: "vf-menu__item",
|
|
146
146
|
role: "none"
|
|
147
147
|
}, [
|
|
148
|
-
n.$slots[u(p, f)] ?
|
|
148
|
+
n.$slots[u(p, f)] ? $(n.$slots, u(p, f), {
|
|
149
149
|
key: 0,
|
|
150
150
|
item: { ...p, class: "vf-menu__link" }
|
|
151
151
|
}) : p.separator ? (b(), y("hr", _t)) : p.items && p.items.length ? (b(), y(pe, { key: 2 }, [
|
|
@@ -156,25 +156,25 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
156
156
|
"aria-expanded": p.subMenuVisible ? "true" : "false",
|
|
157
157
|
onClick: (w) => l(p),
|
|
158
158
|
onKeydown: [
|
|
159
|
-
|
|
160
|
-
|
|
159
|
+
te(Q((w) => l(p), ["prevent"]), ["enter"]),
|
|
160
|
+
te(Q((w) => l(p), ["prevent"]), ["space"])
|
|
161
161
|
]
|
|
162
162
|
}, [
|
|
163
|
-
p.icon ? (b(),
|
|
163
|
+
p.icon ? (b(), re(ke(Ce), {
|
|
164
164
|
key: 0,
|
|
165
165
|
icon: p.icon,
|
|
166
166
|
class: "vf-menu__icon"
|
|
167
|
-
}, null, 8, ["icon"])) :
|
|
168
|
-
|
|
169
|
-
|
|
167
|
+
}, null, 8, ["icon"])) : F("", !0),
|
|
168
|
+
Z(" " + E(p.label) + " ", 1),
|
|
169
|
+
je(ke(Ce), { icon: "chevronDown" })
|
|
170
170
|
], 42, kt),
|
|
171
|
-
p.items ? (b(),
|
|
171
|
+
p.items ? (b(), re(v, {
|
|
172
172
|
key: 0,
|
|
173
173
|
items: p.items,
|
|
174
174
|
class: I(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
|
|
175
175
|
onOnActive: d
|
|
176
|
-
}, null, 8, ["items", "class"])) :
|
|
177
|
-
], 64)) : (b(),
|
|
176
|
+
}, null, 8, ["items", "class"])) : F("", !0)
|
|
177
|
+
], 64)) : (b(), re(Ue, {
|
|
178
178
|
key: 3,
|
|
179
179
|
to: p.to,
|
|
180
180
|
href: p.href ?? p.url,
|
|
@@ -187,13 +187,13 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
187
187
|
onClick: (w) => l(p),
|
|
188
188
|
onActive: (w) => d(p)
|
|
189
189
|
}, {
|
|
190
|
-
default:
|
|
191
|
-
p.icon ? (b(),
|
|
190
|
+
default: he(() => [
|
|
191
|
+
p.icon ? (b(), re(ke(Ce), {
|
|
192
192
|
key: 0,
|
|
193
193
|
icon: p.icon,
|
|
194
194
|
class: "vf-menu__icon"
|
|
195
|
-
}, null, 8, ["icon"])) :
|
|
196
|
-
|
|
195
|
+
}, null, 8, ["icon"])) : F("", !0),
|
|
196
|
+
Z(" " + E(p.label), 1)
|
|
197
197
|
]),
|
|
198
198
|
_: 2
|
|
199
199
|
}, 1032, ["to", "href", "as", "active", "disabled", "aria-disabled", "onClick", "onActive"]))
|
|
@@ -202,7 +202,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
202
202
|
], 2);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
}), Ct = ["type", "disabled"],
|
|
205
|
+
}), Ct = ["type", "disabled"], Sa = /* @__PURE__ */ N({
|
|
206
206
|
__name: "button",
|
|
207
207
|
props: {
|
|
208
208
|
to: { default: void 0 },
|
|
@@ -231,27 +231,27 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
231
231
|
class: I(c.value),
|
|
232
232
|
disabled: e.loading || e.disabled
|
|
233
233
|
}, [
|
|
234
|
-
e.icon && !e.loading ? (b(),
|
|
234
|
+
e.icon && !e.loading ? (b(), re(ke(Ce), {
|
|
235
235
|
key: 0,
|
|
236
236
|
icon: e.icon,
|
|
237
237
|
class: I(l.value)
|
|
238
|
-
}, null, 8, ["icon", "class"])) :
|
|
239
|
-
e.loading ? (b(),
|
|
238
|
+
}, null, 8, ["icon", "class"])) : F("", !0),
|
|
239
|
+
e.loading ? (b(), re(ke(Ce), {
|
|
240
240
|
key: 1,
|
|
241
241
|
icon: "circleNotch",
|
|
242
242
|
class: I(l.value),
|
|
243
243
|
spin: ""
|
|
244
|
-
}, null, 8, ["class"])) :
|
|
244
|
+
}, null, 8, ["class"])) : F("", !0),
|
|
245
245
|
n.$slots.default ? (b(), y("span", {
|
|
246
246
|
key: 2,
|
|
247
247
|
class: I(d.value)
|
|
248
248
|
}, [
|
|
249
|
-
|
|
249
|
+
$(n.$slots, "default")
|
|
250
250
|
], 2)) : n.label ? (b(), y("span", {
|
|
251
251
|
key: 3,
|
|
252
252
|
class: I(d.value)
|
|
253
|
-
},
|
|
254
|
-
], 10, Ct)) : (b(),
|
|
253
|
+
}, E(n.label), 3)) : F("", !0)
|
|
254
|
+
], 10, Ct)) : (b(), re(Ue, {
|
|
255
255
|
key: 1,
|
|
256
256
|
to: e.to,
|
|
257
257
|
href: e.href ?? e.url,
|
|
@@ -259,21 +259,21 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
259
259
|
class: I(c.value),
|
|
260
260
|
disabled: e.loading || e.disabled
|
|
261
261
|
}, {
|
|
262
|
-
default:
|
|
263
|
-
e.icon ? (b(),
|
|
262
|
+
default: he(() => [
|
|
263
|
+
e.icon ? (b(), re(ke(Ce), {
|
|
264
264
|
key: 0,
|
|
265
265
|
icon: e.icon,
|
|
266
266
|
class: I(l.value)
|
|
267
|
-
}, null, 8, ["icon", "class"])) :
|
|
267
|
+
}, null, 8, ["icon", "class"])) : F("", !0),
|
|
268
268
|
n.$slots.default ? (b(), y("span", {
|
|
269
269
|
key: 1,
|
|
270
270
|
class: I(d.value)
|
|
271
271
|
}, [
|
|
272
|
-
|
|
272
|
+
$(n.$slots, "default")
|
|
273
273
|
], 2)) : n.label ? (b(), y("span", {
|
|
274
274
|
key: 2,
|
|
275
275
|
class: I(d.value)
|
|
276
|
-
},
|
|
276
|
+
}, E(n.label), 3)) : F("", !0)
|
|
277
277
|
]),
|
|
278
278
|
_: 3
|
|
279
279
|
}, 8, ["to", "href", "as", "class", "disabled"]));
|
|
@@ -284,7 +284,7 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
284
284
|
}, $t = ["type", "value", "placeholder", "disabled", "readonly"], xt = {
|
|
285
285
|
key: 1,
|
|
286
286
|
class: "vf-input__suffix"
|
|
287
|
-
},
|
|
287
|
+
}, Va = /* @__PURE__ */ N({
|
|
288
288
|
__name: "input",
|
|
289
289
|
props: {
|
|
290
290
|
modelValue: { default: "" },
|
|
@@ -308,8 +308,8 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
308
308
|
class: I(a.value)
|
|
309
309
|
}, [
|
|
310
310
|
d.$slots.prefix ? (b(), y("span", wt, [
|
|
311
|
-
|
|
312
|
-
])) :
|
|
311
|
+
$(d.$slots, "prefix")
|
|
312
|
+
])) : F("", !0),
|
|
313
313
|
B("input", {
|
|
314
314
|
class: "vf-input__control",
|
|
315
315
|
type: d.type,
|
|
@@ -323,15 +323,15 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
323
323
|
onBlur: l
|
|
324
324
|
}, null, 40, $t),
|
|
325
325
|
d.$slots.suffix ? (b(), y("span", xt, [
|
|
326
|
-
|
|
327
|
-
])) :
|
|
326
|
+
$(d.$slots, "suffix")
|
|
327
|
+
])) : F("", !0)
|
|
328
328
|
], 2));
|
|
329
329
|
}
|
|
330
330
|
}), Bt = ["for"], zt = {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: "vf-form-field__required",
|
|
333
333
|
"aria-hidden": "true"
|
|
334
|
-
}, Ft = { class: "vf-form-field__control" }, St = ["id"], Vt = ["id"],
|
|
334
|
+
}, Ft = { class: "vf-form-field__control" }, St = ["id"], Vt = ["id"], Ta = /* @__PURE__ */ N({
|
|
335
335
|
__name: "form-field",
|
|
336
336
|
props: {
|
|
337
337
|
id: { default: void 0 },
|
|
@@ -358,13 +358,13 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
358
358
|
class: "vf-form-field__label",
|
|
359
359
|
for: a.value
|
|
360
360
|
}, [
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
$(v.$slots, "label", {}, () => [
|
|
362
|
+
Z(E(v.label), 1)
|
|
363
363
|
]),
|
|
364
|
-
v.required ? (b(), y("span", zt, "*")) :
|
|
365
|
-
], 8, Bt)) :
|
|
364
|
+
v.required ? (b(), y("span", zt, "*")) : F("", !0)
|
|
365
|
+
], 8, Bt)) : F("", !0),
|
|
366
366
|
B("div", Ft, [
|
|
367
|
-
|
|
367
|
+
$(v.$slots, "default", {
|
|
368
368
|
id: a.value,
|
|
369
369
|
describedBy: n.value,
|
|
370
370
|
invalid: d.value,
|
|
@@ -376,23 +376,23 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
376
376
|
id: u.value,
|
|
377
377
|
class: "vf-form-field__hint"
|
|
378
378
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
$(v.$slots, "hint", {}, () => [
|
|
380
|
+
Z(E(v.hint), 1)
|
|
381
381
|
])
|
|
382
|
-
], 8, St)) :
|
|
382
|
+
], 8, St)) : F("", !0),
|
|
383
383
|
d.value ? (b(), y("p", {
|
|
384
384
|
key: 2,
|
|
385
385
|
id: s.value,
|
|
386
386
|
class: "vf-form-field__error",
|
|
387
387
|
role: "alert"
|
|
388
388
|
}, [
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
$(v.$slots, "error", {}, () => [
|
|
390
|
+
Z(E(v.error), 1)
|
|
391
391
|
])
|
|
392
|
-
], 8, Vt)) :
|
|
392
|
+
], 8, Vt)) : F("", !0)
|
|
393
393
|
], 2));
|
|
394
394
|
}
|
|
395
|
-
}), Tt = ["value", "placeholder", "disabled", "readonly", "rows"],
|
|
395
|
+
}), Tt = ["value", "placeholder", "disabled", "readonly", "rows"], La = /* @__PURE__ */ N({
|
|
396
396
|
__name: "textarea",
|
|
397
397
|
props: {
|
|
398
398
|
modelValue: { default: "" },
|
|
@@ -455,8 +455,8 @@ const ht = /* @__PURE__ */ ct(ut, [["render", gt]]), yt = {
|
|
|
455
455
|
function Lt(t) {
|
|
456
456
|
return typeof window > "u" ? !1 : window.getComputedStyle(t).position === "fixed";
|
|
457
457
|
}
|
|
458
|
-
const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute",
|
|
459
|
-
const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, u = e ?
|
|
458
|
+
const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", ge = (t, e) => Rt(t, e) === "fixed", se = (t, e, r = {}) => {
|
|
459
|
+
const o = t.getBoundingClientRect(), a = e ? e.offsetParent : null, u = e ? ge(r, e) : !1;
|
|
460
460
|
if (a && !u) {
|
|
461
461
|
const s = a.getBoundingClientRect(), c = a.scrollLeft, l = a.scrollTop;
|
|
462
462
|
return {
|
|
@@ -472,15 +472,15 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
472
472
|
width: o.width,
|
|
473
473
|
height: o.height
|
|
474
474
|
};
|
|
475
|
-
},
|
|
475
|
+
}, ye = (t, e) => {
|
|
476
476
|
var r;
|
|
477
477
|
return (r = t.middleware) == null ? void 0 : r.find((o) => o.name === e);
|
|
478
|
-
}, Ze = (t, e) => !!
|
|
478
|
+
}, Ze = (t, e) => !!ye(t, e), Dt = (t) => {
|
|
479
479
|
const e = ue(t);
|
|
480
480
|
let r = "";
|
|
481
481
|
return e !== null && ((e.dataset.scrollTop === void 0 || e.scrollTop === +e.dataset.scrollTop) && (e.dataset.scrollTop = "0"), (e.dataset.scrollLeft === void 0 || e.scrollLeft === +e.dataset.scrollLeft) && (e.dataset.scrollLeft = "0"), e.scrollTop > +e.dataset.scrollTop ? r = "bottom" : e.scrollTop < +e.dataset.scrollTop ? r = "top" : e.scrollLeft > +e.dataset.scrollLeft ? r = "right" : e.scrollLeft < +e.dataset.scrollLeft && (r = "left"), e.dataset.scrollTop = e.scrollTop <= 0 ? "0" : e.scrollTop.toString(), e.dataset.scrollLeft = e.scrollLeft <= 0 ? "0" : e.scrollLeft.toString()), r;
|
|
482
482
|
}, Fe = (t) => t.scrollLeft + t.clientWidth, Se = (t) => t.scrollTop + t.clientHeight, ie = (t, e, r = null, o = {}, a) => {
|
|
483
|
-
if (r === null && typeof window < "u" &&
|
|
483
|
+
if (r === null && typeof window < "u" && ge(o, e))
|
|
484
484
|
return t;
|
|
485
485
|
let u = 0;
|
|
486
486
|
if (r === null) {
|
|
@@ -490,7 +490,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
490
490
|
return t - u;
|
|
491
491
|
}, de = (t, e, r = null, o = {}, a) => {
|
|
492
492
|
let u;
|
|
493
|
-
if (r === null && typeof window < "u" &&
|
|
493
|
+
if (r === null && typeof window < "u" && ge(o, e))
|
|
494
494
|
u = window.innerWidth;
|
|
495
495
|
else if (r === null) {
|
|
496
496
|
const s = ue(e);
|
|
@@ -500,7 +500,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
500
500
|
return -(t + e.clientWidth - u);
|
|
501
501
|
}, ve = (t, e, r = null, o = {}, a) => {
|
|
502
502
|
let u;
|
|
503
|
-
if (r === null && typeof window < "u" &&
|
|
503
|
+
if (r === null && typeof window < "u" && ge(o, e))
|
|
504
504
|
u = window.innerHeight;
|
|
505
505
|
else if (r === null) {
|
|
506
506
|
const s = ue(e);
|
|
@@ -509,7 +509,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
509
509
|
u = r.getBoundingClientRect().height;
|
|
510
510
|
return -(t + e.clientHeight - u);
|
|
511
511
|
}, ce = (t, e, r = null, o = {}, a) => {
|
|
512
|
-
if (r === null && typeof window < "u" &&
|
|
512
|
+
if (r === null && typeof window < "u" && ge(o, e))
|
|
513
513
|
return t;
|
|
514
514
|
let u = 0;
|
|
515
515
|
if (r === null) {
|
|
@@ -526,7 +526,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
526
526
|
reference: u,
|
|
527
527
|
scrollDirection: s
|
|
528
528
|
}) => {
|
|
529
|
-
const c = Ve(u, o, a, t), l =
|
|
529
|
+
const c = Ve(u, o, a, t), l = ye(t, "offset");
|
|
530
530
|
if (l) {
|
|
531
531
|
const d = l.fn({
|
|
532
532
|
x: c.x,
|
|
@@ -567,67 +567,67 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
567
567
|
placement: c
|
|
568
568
|
}, v = {
|
|
569
569
|
...o,
|
|
570
|
-
middleware: (n = o.middleware) == null ? void 0 : n.filter((
|
|
570
|
+
middleware: (n = o.middleware) == null ? void 0 : n.filter((V) => V.name !== "shift")
|
|
571
571
|
}, p = (t == null ? void 0 : t.placements) ?? Ae, f = !(t != null && t.placements), w = f ? Ae : p;
|
|
572
572
|
let C = !1;
|
|
573
|
-
const
|
|
573
|
+
const S = (V) => {
|
|
574
574
|
if (C)
|
|
575
575
|
return;
|
|
576
|
-
const
|
|
576
|
+
const W = Ke({
|
|
577
577
|
options: v,
|
|
578
578
|
primaryX: a,
|
|
579
579
|
primaryY: u,
|
|
580
580
|
floating: s,
|
|
581
|
-
placement:
|
|
581
|
+
placement: V,
|
|
582
582
|
reference: l,
|
|
583
583
|
scrollDirection: d
|
|
584
584
|
});
|
|
585
|
-
|
|
586
|
-
},
|
|
587
|
-
if (!f && p.includes(c) &&
|
|
588
|
-
const
|
|
589
|
-
(
|
|
590
|
-
const
|
|
585
|
+
W && (i.x = W.x, i.y = W.y, i.placement = W.placement, C = !0);
|
|
586
|
+
}, H = Jt(l, s, v);
|
|
587
|
+
if (!f && p.includes(c) && S(c), C || w.forEach(S), !C) {
|
|
588
|
+
const V = p.reduce(
|
|
589
|
+
(W, T) => {
|
|
590
|
+
const L = Ke({
|
|
591
591
|
options: v,
|
|
592
592
|
primaryX: a,
|
|
593
593
|
primaryY: u,
|
|
594
594
|
floating: s,
|
|
595
|
-
placement:
|
|
595
|
+
placement: T,
|
|
596
596
|
reference: l,
|
|
597
597
|
scrollDirection: d
|
|
598
598
|
});
|
|
599
|
-
if (!
|
|
600
|
-
return
|
|
601
|
-
const
|
|
602
|
-
return !
|
|
599
|
+
if (!L)
|
|
600
|
+
return W;
|
|
601
|
+
const A = xe(T), R = H[A];
|
|
602
|
+
return !W || R > W.space ? { result: L, space: R } : W;
|
|
603
603
|
},
|
|
604
604
|
null
|
|
605
605
|
);
|
|
606
|
-
|
|
606
|
+
V && (i.x = V.result.x, i.y = V.result.y, i.placement = V.result.placement, C = !0);
|
|
607
607
|
}
|
|
608
608
|
if (!C && p.length > 0) {
|
|
609
|
-
const
|
|
610
|
-
let
|
|
609
|
+
const V = xe(c);
|
|
610
|
+
let W = V, T = H[V];
|
|
611
611
|
p.forEach((_) => {
|
|
612
|
-
const m = xe(_),
|
|
613
|
-
|
|
612
|
+
const m = xe(_), x = H[m];
|
|
613
|
+
x > T && (T = x, W = m);
|
|
614
614
|
});
|
|
615
|
-
const
|
|
616
|
-
if (
|
|
617
|
-
const _ =
|
|
618
|
-
x:
|
|
619
|
-
y:
|
|
615
|
+
const L = Zt(W, c, p), A = Ve(l, s, L, v), R = ye(v, "offset");
|
|
616
|
+
if (R) {
|
|
617
|
+
const _ = R.fn({
|
|
618
|
+
x: A.x,
|
|
619
|
+
y: A.y,
|
|
620
620
|
options: v,
|
|
621
621
|
primaryX: a,
|
|
622
622
|
primaryY: u,
|
|
623
623
|
floating: s,
|
|
624
|
-
placement:
|
|
624
|
+
placement: L,
|
|
625
625
|
reference: l,
|
|
626
626
|
scrollDirection: d
|
|
627
627
|
});
|
|
628
|
-
|
|
628
|
+
A.x = _.x, A.y = _.y;
|
|
629
629
|
}
|
|
630
|
-
i.x =
|
|
630
|
+
i.x = A.x, i.y = A.y, i.placement = A.placement;
|
|
631
631
|
}
|
|
632
632
|
return i;
|
|
633
633
|
}
|
|
@@ -635,7 +635,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
635
635
|
var u, s, c;
|
|
636
636
|
let l = 0;
|
|
637
637
|
o.startsWith("right") ? l = -t : o.startsWith("left") && (l = t);
|
|
638
|
-
const d =
|
|
638
|
+
const d = ye(e, "arrow"), n = ye(e, "shift");
|
|
639
639
|
if (d) {
|
|
640
640
|
const i = ((u = d.params) == null ? void 0 : u.arrow).getBoundingClientRect();
|
|
641
641
|
o.startsWith("right") ? l -= i.width / 2 : o.startsWith("left") && (l += i.width / 2);
|
|
@@ -651,7 +651,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
651
651
|
var u, s, c;
|
|
652
652
|
let l = 0;
|
|
653
653
|
o.startsWith("top") ? l = t : o.startsWith("bottom") && (l = -t);
|
|
654
|
-
const d =
|
|
654
|
+
const d = ye(e, "arrow"), n = ye(e, "shift");
|
|
655
655
|
if (d) {
|
|
656
656
|
const i = ((u = d.params) == null ? void 0 : u.arrow).getBoundingClientRect();
|
|
657
657
|
o.startsWith("top") ? l += i.height / 2 : o.startsWith("bottom") && (l -= i.height / 2);
|
|
@@ -660,7 +660,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
660
660
|
let i = null, v = 0;
|
|
661
661
|
n && (i = (s = n.params) == null ? void 0 : s.parent);
|
|
662
662
|
const p = (c = d.params) == null ? void 0 : c.arrow;
|
|
663
|
-
v = p.getBoundingClientRect().height / 2, v +=
|
|
663
|
+
v = p.getBoundingClientRect().height / 2, v += Wt(p), v -= t, o.startsWith("top") ? ie(r - l, a, i, e) <= t ? ie(r, a, i, e) >= 0 ? l = -(t - ie(r, a, i, e)) : l = -t : ve(r - l + v, a, i, e) <= t && (l = t + ve(r - v, a, i, e), l <= t && (l = t)) : o.startsWith("bottom") ? ie(r - l - v, a, i, e) <= t ? ie(r - l - v, a, i, e) >= 0 ? (l = -t - (ie(r - l - v, a, i, e) + t), i && (l = -t)) : l = -t : ve(r - l, a, i, e) <= t && (ve(r, a, i, e) >= 0 ? l = t - ve(r, a, i, e) : l = t) : ie(r - l, a, i, e) <= t ? ie(r - l, a, i, e) >= 0 ? l = -(t - ie(r - l, a, i, e)) : l = -t : ve(r - l, a, i, e) <= t && (ve(r - l, a, i, e) >= 0 ? l = t - ve(r - l, a, i, e) : l = t);
|
|
664
664
|
}
|
|
665
665
|
return l;
|
|
666
666
|
}, De = (t) => ({
|
|
@@ -697,27 +697,27 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
697
697
|
x: e,
|
|
698
698
|
y: r,
|
|
699
699
|
placement: c
|
|
700
|
-
}, i = o.middleware || [], v = i.findIndex((
|
|
701
|
-
let
|
|
702
|
-
const
|
|
703
|
-
if (
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
const
|
|
707
|
-
return n.x <
|
|
700
|
+
}, i = o.middleware || [], v = i.findIndex((x) => x.name === "shift"), p = i.findIndex((x) => x.name === "offset"), f = p !== -1 && (v === -1 || p > v), w = i.find((x) => x.name === "offset"), C = w ? (d = w.params) == null ? void 0 : d.value : 0, S = f ? Je(C, o, a, c, s) : 0, H = f ? Qe(C, o, u, c, s) : 0, V = e - S, W = r - H;
|
|
701
|
+
let T = V, L = W;
|
|
702
|
+
const A = w ? Math.abs(C) : 0, R = A, _ = A;
|
|
703
|
+
if (ge(o, s) && typeof window < "u") {
|
|
704
|
+
const x = R, K = window.innerWidth - s.clientWidth - R, G = K < x ? x : K, j = _, ee = window.innerHeight - s.clientHeight - _, Y = ee < j ? j : ee;
|
|
705
|
+
T < x ? T = x : T > G && (T = G), L < j ? L = j : L > Y && (L = Y), f ? (n.x = e + (T - V), n.y = r + (L - W)) : (n.x = T, n.y = L);
|
|
706
|
+
const ae = R, X = window.innerWidth - s.clientWidth - R, le = _, h = window.innerHeight - s.clientHeight - _, D = f ? ae + S : ae, O = f ? X + S : X, J = f ? le + H : le, k = f ? h + H : h;
|
|
707
|
+
return n.x < D ? n.x = D : n.x > O && (n.x = O), n.y < J ? n.y = J : n.y > k && (n.y = k), n;
|
|
708
708
|
}
|
|
709
709
|
const m = ue(s);
|
|
710
710
|
if (m !== null) {
|
|
711
|
-
const
|
|
712
|
-
|
|
711
|
+
const x = se(l, s, o), K = x.left, G = x.left + x.width, j = x.top, ee = x.top + x.height, Y = m.scrollLeft + R, ae = Fe(m) - s.clientWidth - R, X = ae < Y ? Y : ae, le = m.scrollTop + _, h = Se(m) - s.clientHeight - _, D = h < le ? le : h, O = m.scrollLeft, J = Fe(m), k = m.scrollTop, z = Se(m);
|
|
712
|
+
G <= O ? T = Y : K >= J && (T = X), ee <= k ? L = le : j >= z && (L = D), L < le ? L = le : L > D && (L = D), T < Y ? T = Y : T > X && (T = X);
|
|
713
713
|
}
|
|
714
|
-
if (f ? (n.x = e + (
|
|
715
|
-
const
|
|
716
|
-
n.x <
|
|
714
|
+
if (f ? (n.x = e + (T - V), n.y = r + (L - W)) : (n.x = T, n.y = L), m !== null) {
|
|
715
|
+
const x = m.scrollLeft + R, K = Fe(m) - s.clientWidth - R, G = m.scrollTop + _, j = Se(m) - s.clientHeight - _, ee = f ? x + S : x, Y = f ? K + S : K, ae = f ? G + H : G, X = f ? j + H : j;
|
|
716
|
+
n.x < ee ? n.x = ee : n.x > Y && (n.x = Y), n.y < ae ? n.y = ae : n.y > X && (n.y = X);
|
|
717
717
|
}
|
|
718
718
|
return n;
|
|
719
719
|
}
|
|
720
|
-
}), Pt = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0,
|
|
720
|
+
}), Pt = (t) => t.getBoundingClientRect().width !== t.clientWidth ? (t.getBoundingClientRect().width - t.clientWidth) / 2 : 0, Wt = (t) => t.getBoundingClientRect().height !== t.clientHeight ? (t.getBoundingClientRect().height - t.clientHeight) / 2 : 0, Ie = (t, e) => {
|
|
721
721
|
const r = ue(t), o = [];
|
|
722
722
|
if (r !== null) {
|
|
723
723
|
const a = () => e();
|
|
@@ -732,7 +732,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
732
732
|
a.observe(t), o.push(() => a.disconnect());
|
|
733
733
|
}
|
|
734
734
|
return () => o.forEach((a) => a());
|
|
735
|
-
},
|
|
735
|
+
}, Ot = (t, e, r = {}) => {
|
|
736
736
|
const o = se(t, e, r);
|
|
737
737
|
return {
|
|
738
738
|
x: o.left - e.getBoundingClientRect().width / 2 + o.width / 2,
|
|
@@ -788,14 +788,14 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
788
788
|
y: o.top + o.height,
|
|
789
789
|
placement: "bottom-start"
|
|
790
790
|
};
|
|
791
|
-
},
|
|
791
|
+
}, Gt = (t, e, r = {}) => {
|
|
792
792
|
const o = se(t, e, r);
|
|
793
793
|
return {
|
|
794
794
|
x: o.left - e.getBoundingClientRect().width + o.width,
|
|
795
795
|
y: o.top + o.height,
|
|
796
796
|
placement: "bottom-end"
|
|
797
797
|
};
|
|
798
|
-
},
|
|
798
|
+
}, jt = (t, e, r = {}) => {
|
|
799
799
|
const o = se(t, e, r);
|
|
800
800
|
return {
|
|
801
801
|
x: o.left - e.getBoundingClientRect().width,
|
|
@@ -819,7 +819,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
819
819
|
}, Ve = (t, e, r, o = {}) => {
|
|
820
820
|
switch (r) {
|
|
821
821
|
case "top":
|
|
822
|
-
return
|
|
822
|
+
return Ot(t, e, o);
|
|
823
823
|
case "top-start":
|
|
824
824
|
return Mt(t, e, o);
|
|
825
825
|
case "top-end":
|
|
@@ -835,9 +835,9 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
835
835
|
case "bottom-start":
|
|
836
836
|
return Yt(t, e, o);
|
|
837
837
|
case "bottom-end":
|
|
838
|
-
return jt(t, e, o);
|
|
839
|
-
case "left":
|
|
840
838
|
return Gt(t, e, o);
|
|
839
|
+
case "left":
|
|
840
|
+
return jt(t, e, o);
|
|
841
841
|
case "left-start":
|
|
842
842
|
return Xt(t, e, o);
|
|
843
843
|
case "left-end":
|
|
@@ -850,7 +850,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
852
|
}, Ut = (t, e, r, o = {}) => {
|
|
853
|
-
if (
|
|
853
|
+
if (ge(o, e)) {
|
|
854
854
|
if (typeof window > "u")
|
|
855
855
|
return !0;
|
|
856
856
|
const i = t.x, v = t.y, p = i + e.clientWidth, f = v + e.clientHeight;
|
|
@@ -875,7 +875,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
875
875
|
bottom: 0,
|
|
876
876
|
left: 0
|
|
877
877
|
};
|
|
878
|
-
const o =
|
|
878
|
+
const o = ge(r, e) ? null : ue(t), a = t.getBoundingClientRect(), u = o ? o.getBoundingClientRect() : {
|
|
879
879
|
top: 0,
|
|
880
880
|
left: 0,
|
|
881
881
|
right: window.innerWidth,
|
|
@@ -911,15 +911,15 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
911
911
|
});
|
|
912
912
|
c.x = C.x, c.y = C.y, c.placement = C.placement, w.name === "arrow" && (C.baseX = C.x, C.baseY = C.y, C.x = C.arrowX ?? C.x, C.y = C.arrowY ?? C.y), c.middlewareData[w.name] = C;
|
|
913
913
|
});
|
|
914
|
-
const v = Ve(t, e, c.placement, r), p =
|
|
914
|
+
const v = Ve(t, e, c.placement, r), p = ye(r, "offset"), f = p ? (u = p.params) == null ? void 0 : u.value : 0;
|
|
915
915
|
if (Number.isFinite(c.x) || (c.x = v.x), !Number.isFinite(c.y))
|
|
916
|
-
if (
|
|
916
|
+
if (ge(r, e)) {
|
|
917
917
|
const w = t.getBoundingClientRect(), C = e.getBoundingClientRect().height;
|
|
918
918
|
c.placement.startsWith("top") ? c.y = w.top - C - f : c.placement.startsWith("bottom") ? c.y = w.bottom + f : c.y = v.y;
|
|
919
919
|
} else
|
|
920
920
|
c.y = v.y;
|
|
921
921
|
o(c);
|
|
922
|
-
}), Qt = ["disabled", "aria-expanded", "onKeydown"], eo = ["data-placement"], to = ["disabled", "aria-selected", "onClick"],
|
|
922
|
+
}), Qt = ["disabled", "aria-expanded", "onKeydown"], eo = ["data-placement"], to = ["disabled", "aria-selected", "onClick"], Ra = /* @__PURE__ */ N({
|
|
923
923
|
__name: "select",
|
|
924
924
|
props: {
|
|
925
925
|
modelValue: { default: void 0 },
|
|
@@ -946,46 +946,46 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
946
946
|
}), C = g(() => {
|
|
947
947
|
const m = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
|
|
948
948
|
return a.size !== "normal" && m.push(`vf-select_${a.size}`), a.disabled && m.push("vf-select_disabled"), m.filter(Boolean);
|
|
949
|
-
}),
|
|
950
|
-
m.disabled || (o("update:modelValue", m.value), o("change", m.value),
|
|
951
|
-
},
|
|
949
|
+
}), S = (m) => m.value === a.modelValue, H = (m) => {
|
|
950
|
+
m.disabled || (o("update:modelValue", m.value), o("change", m.value), T());
|
|
951
|
+
}, V = (m) => o("focus", m), W = (m) => o("blur", m), T = () => {
|
|
952
952
|
l.value = !1, d.value = "bottom", n.value = "bottom";
|
|
953
|
-
},
|
|
953
|
+
}, L = () => {
|
|
954
954
|
a.disabled || (l.value = !l.value, l.value && (d.value = "bottom", n.value = "bottom"));
|
|
955
|
-
},
|
|
956
|
-
var m,
|
|
957
|
-
l.value || (l.value = !0, await ze()), (
|
|
958
|
-
},
|
|
959
|
-
var
|
|
955
|
+
}, A = async () => {
|
|
956
|
+
var m, x;
|
|
957
|
+
l.value || (l.value = !0, await ze()), (x = (m = c.value) == null ? void 0 : m.querySelector(".vf-select__option:not(.is-disabled)")) == null || x.focus();
|
|
958
|
+
}, R = (m) => {
|
|
959
|
+
var K;
|
|
960
960
|
if (!l.value || !u.value)
|
|
961
961
|
return;
|
|
962
|
-
const
|
|
963
|
-
u.value.contains(
|
|
962
|
+
const x = m.target;
|
|
963
|
+
u.value.contains(x) || (K = c.value) != null && K.contains(x) || T();
|
|
964
964
|
}, _ = () => {
|
|
965
965
|
if (!s.value || !c.value)
|
|
966
966
|
return;
|
|
967
|
-
const m = s.value,
|
|
967
|
+
const m = s.value, x = c.value, K = async () => {
|
|
968
968
|
const {
|
|
969
|
-
x:
|
|
970
|
-
y:
|
|
969
|
+
x: Y,
|
|
970
|
+
y: ae,
|
|
971
971
|
placement: X
|
|
972
|
-
} = await Pe(m,
|
|
972
|
+
} = await Pe(m, x, {
|
|
973
973
|
placement: d.value,
|
|
974
974
|
strategy: "fixed",
|
|
975
975
|
middleware: [De(2), Re({ placements: ["bottom", "top"] })]
|
|
976
976
|
});
|
|
977
|
-
n.value = X ?? d.value,
|
|
978
|
-
},
|
|
979
|
-
await
|
|
980
|
-
},
|
|
981
|
-
|
|
982
|
-
}),
|
|
983
|
-
|
|
977
|
+
n.value = X ?? d.value, x.style.minWidth = `${m.getBoundingClientRect().width}px`, x.style.left = `${Y}px`, x.style.top = `${ae}px`;
|
|
978
|
+
}, G = async () => {
|
|
979
|
+
await K();
|
|
980
|
+
}, j = Ie(m, () => {
|
|
981
|
+
G();
|
|
982
|
+
}), ee = () => {
|
|
983
|
+
G();
|
|
984
984
|
};
|
|
985
|
-
document.addEventListener("scroll",
|
|
986
|
-
update:
|
|
985
|
+
document.addEventListener("scroll", ee, !0), window.addEventListener("resize", ee, !1), v = {
|
|
986
|
+
update: G,
|
|
987
987
|
destroy: () => {
|
|
988
|
-
|
|
988
|
+
j(), document.removeEventListener("scroll", ee, !0), window.removeEventListener("resize", ee, !1);
|
|
989
989
|
}
|
|
990
990
|
}, v.update();
|
|
991
991
|
};
|
|
@@ -1002,10 +1002,10 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1002
1002
|
},
|
|
1003
1003
|
{ deep: !0 }
|
|
1004
1004
|
), Le(() => {
|
|
1005
|
-
document.addEventListener("click",
|
|
1005
|
+
document.addEventListener("click", R);
|
|
1006
1006
|
}), we(() => {
|
|
1007
|
-
document.removeEventListener("click",
|
|
1008
|
-
}), (m,
|
|
1007
|
+
document.removeEventListener("click", R), v == null || v.destroy(), v = null;
|
|
1008
|
+
}), (m, x) => (b(), y("div", {
|
|
1009
1009
|
ref_key: "root",
|
|
1010
1010
|
ref: u,
|
|
1011
1011
|
class: I(C.value)
|
|
@@ -1019,25 +1019,25 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1019
1019
|
"aria-expanded": l.value,
|
|
1020
1020
|
"aria-controls": i,
|
|
1021
1021
|
"aria-haspopup": "listbox",
|
|
1022
|
-
onClick:
|
|
1022
|
+
onClick: L,
|
|
1023
1023
|
onKeydown: [
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1024
|
+
te(Q(A, ["prevent"]), ["down"]),
|
|
1025
|
+
te(Q(L, ["prevent"]), ["enter"]),
|
|
1026
|
+
te(Q(T, ["prevent"]), ["esc"])
|
|
1027
1027
|
],
|
|
1028
|
-
onFocus:
|
|
1029
|
-
onBlur:
|
|
1028
|
+
onFocus: V,
|
|
1029
|
+
onBlur: W
|
|
1030
1030
|
}, [
|
|
1031
1031
|
B("span", {
|
|
1032
1032
|
class: I(["vf-select__label", { "vf-select__label_placeholder": !w.value }])
|
|
1033
|
-
},
|
|
1034
|
-
|
|
1033
|
+
}, E(w.value || m.placeholder), 3),
|
|
1034
|
+
x[0] || (x[0] = B("span", {
|
|
1035
1035
|
class: "vf-select__chevron",
|
|
1036
1036
|
"aria-hidden": "true"
|
|
1037
1037
|
}, "▾", -1))
|
|
1038
1038
|
], 40, Qt),
|
|
1039
|
-
(b(),
|
|
1040
|
-
|
|
1039
|
+
(b(), re($e, { to: "body" }, [
|
|
1040
|
+
be(B("div", {
|
|
1041
1041
|
id: i,
|
|
1042
1042
|
ref_key: "panel",
|
|
1043
1043
|
ref: c,
|
|
@@ -1045,17 +1045,17 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1045
1045
|
role: "listbox",
|
|
1046
1046
|
"data-placement": n.value
|
|
1047
1047
|
}, [
|
|
1048
|
-
(b(!0), y(pe, null, Be(p.value, (
|
|
1049
|
-
key:
|
|
1050
|
-
class: I(["vf-select__option", { "is-active":
|
|
1048
|
+
(b(!0), y(pe, null, Be(p.value, (K) => (b(), y("button", {
|
|
1049
|
+
key: K.value,
|
|
1050
|
+
class: I(["vf-select__option", { "is-active": S(K), "is-disabled": K.disabled }]),
|
|
1051
1051
|
type: "button",
|
|
1052
1052
|
role: "option",
|
|
1053
|
-
disabled:
|
|
1054
|
-
"aria-selected":
|
|
1055
|
-
onClick: (
|
|
1056
|
-
}, K
|
|
1053
|
+
disabled: K.disabled,
|
|
1054
|
+
"aria-selected": S(K),
|
|
1055
|
+
onClick: (G) => H(K)
|
|
1056
|
+
}, E(K.label), 11, to))), 128))
|
|
1057
1057
|
], 8, eo), [
|
|
1058
|
-
[
|
|
1058
|
+
[me, l.value]
|
|
1059
1059
|
])
|
|
1060
1060
|
]))
|
|
1061
1061
|
], 2));
|
|
@@ -1066,7 +1066,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1066
1066
|
}, no = ["id", "disabled", "aria-selected", "onClick"], so = {
|
|
1067
1067
|
key: 2,
|
|
1068
1068
|
class: "vf-autocomplete__empty"
|
|
1069
|
-
},
|
|
1069
|
+
}, Da = /* @__PURE__ */ N({
|
|
1070
1070
|
__name: "autocomplete",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
modelValue: { default: void 0 },
|
|
@@ -1092,33 +1092,33 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1092
1092
|
label: h[a.optionLabel],
|
|
1093
1093
|
value: h[a.optionValue],
|
|
1094
1094
|
disabled: h.disabled
|
|
1095
|
-
}))), C = g(() => w.value.find((h) => h.value === a.modelValue)),
|
|
1095
|
+
}))), C = g(() => w.value.find((h) => h.value === a.modelValue)), S = g(() => {
|
|
1096
1096
|
if (!a.filter)
|
|
1097
1097
|
return w.value;
|
|
1098
1098
|
const h = d.value.trim().toLowerCase();
|
|
1099
|
-
return h ? w.value.filter((
|
|
1100
|
-
}),
|
|
1099
|
+
return h ? w.value.filter((D) => D.label.toLowerCase().includes(h)) : w.value;
|
|
1100
|
+
}), H = g(() => {
|
|
1101
1101
|
if (!(!l.value || n.value < 0))
|
|
1102
|
-
return
|
|
1103
|
-
}),
|
|
1102
|
+
return W(n.value);
|
|
1103
|
+
}), V = g(() => {
|
|
1104
1104
|
const h = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
|
|
1105
1105
|
return a.size !== "normal" && h.push(`vf-autocomplete_${a.size}`), a.disabled && h.push("vf-autocomplete_disabled"), h.filter(Boolean);
|
|
1106
|
-
}),
|
|
1107
|
-
const
|
|
1108
|
-
if (!
|
|
1106
|
+
}), W = (h) => `${p}-option-${h}`, T = (h) => h.value === a.modelValue, L = () => S.value.findIndex((h) => !h.disabled), A = (h) => {
|
|
1107
|
+
const D = S.value;
|
|
1108
|
+
if (!D.length) {
|
|
1109
1109
|
n.value = -1;
|
|
1110
1110
|
return;
|
|
1111
1111
|
}
|
|
1112
|
-
let
|
|
1113
|
-
(
|
|
1114
|
-
for (let
|
|
1115
|
-
if (
|
|
1116
|
-
n.value =
|
|
1112
|
+
let O = n.value;
|
|
1113
|
+
(O < 0 || O >= D.length) && (O = h > 0 ? -1 : D.length);
|
|
1114
|
+
for (let J = 0; J < D.length; J += 1)
|
|
1115
|
+
if (O = (O + h + D.length) % D.length, !D[O].disabled) {
|
|
1116
|
+
n.value = O;
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
1119
|
n.value = -1;
|
|
1120
|
-
},
|
|
1121
|
-
a.disabled || (l.value = !0, i.value = "bottom", v.value = "bottom", n.value < 0 && (n.value =
|
|
1120
|
+
}, R = () => {
|
|
1121
|
+
a.disabled || (l.value = !0, i.value = "bottom", v.value = "bottom", n.value < 0 && (n.value = L()));
|
|
1122
1122
|
}, _ = () => {
|
|
1123
1123
|
l.value = !1, n.value = -1, i.value = "bottom", v.value = "bottom";
|
|
1124
1124
|
}, m = () => {
|
|
@@ -1126,66 +1126,66 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1126
1126
|
_();
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
|
-
|
|
1130
|
-
},
|
|
1129
|
+
R();
|
|
1130
|
+
}, x = (h) => {
|
|
1131
1131
|
h.disabled || (d.value = h.label, o("update:modelValue", h.value), o("change", h.value), _());
|
|
1132
|
-
},
|
|
1133
|
-
const
|
|
1134
|
-
d.value =
|
|
1135
|
-
}, j = (h) => {
|
|
1136
|
-
o("focus", h), L();
|
|
1132
|
+
}, K = (h) => {
|
|
1133
|
+
const D = h.target;
|
|
1134
|
+
d.value = D.value, o("search", D.value), R(), n.value = L();
|
|
1137
1135
|
}, G = (h) => {
|
|
1136
|
+
o("focus", h), R();
|
|
1137
|
+
}, j = (h) => {
|
|
1138
1138
|
o("blur", h);
|
|
1139
|
-
},
|
|
1139
|
+
}, ee = () => {
|
|
1140
1140
|
if (!l.value) {
|
|
1141
|
-
|
|
1141
|
+
R();
|
|
1142
1142
|
return;
|
|
1143
1143
|
}
|
|
1144
|
-
|
|
1145
|
-
},
|
|
1144
|
+
A(1);
|
|
1145
|
+
}, Y = () => {
|
|
1146
1146
|
if (!l.value) {
|
|
1147
|
-
|
|
1147
|
+
R();
|
|
1148
1148
|
return;
|
|
1149
1149
|
}
|
|
1150
|
-
|
|
1151
|
-
},
|
|
1150
|
+
A(-1);
|
|
1151
|
+
}, ae = () => {
|
|
1152
1152
|
if (!l.value) {
|
|
1153
|
-
|
|
1153
|
+
R();
|
|
1154
1154
|
return;
|
|
1155
1155
|
}
|
|
1156
|
-
const h =
|
|
1157
|
-
h && !h.disabled &&
|
|
1156
|
+
const h = S.value[n.value];
|
|
1157
|
+
h && !h.disabled && x(h);
|
|
1158
1158
|
}, X = (h) => {
|
|
1159
|
-
var
|
|
1159
|
+
var O;
|
|
1160
1160
|
if (!l.value || !u.value)
|
|
1161
1161
|
return;
|
|
1162
|
-
const
|
|
1163
|
-
u.value.contains(
|
|
1162
|
+
const D = h.target;
|
|
1163
|
+
u.value.contains(D) || (O = c.value) != null && O.contains(D) || _();
|
|
1164
1164
|
}, le = () => {
|
|
1165
1165
|
if (!s.value || !c.value)
|
|
1166
1166
|
return;
|
|
1167
|
-
const h = s.value,
|
|
1167
|
+
const h = s.value, D = c.value, O = async () => {
|
|
1168
1168
|
const {
|
|
1169
1169
|
x: P,
|
|
1170
1170
|
y: q,
|
|
1171
1171
|
placement: ne
|
|
1172
|
-
} = await Pe(h,
|
|
1172
|
+
} = await Pe(h, D, {
|
|
1173
1173
|
placement: i.value,
|
|
1174
1174
|
strategy: "fixed",
|
|
1175
1175
|
middleware: [De(2), Re({ placements: ["bottom", "top"] })]
|
|
1176
1176
|
});
|
|
1177
|
-
v.value = ne ?? i.value,
|
|
1178
|
-
},
|
|
1179
|
-
await
|
|
1177
|
+
v.value = ne ?? i.value, D.style.minWidth = `${h.getBoundingClientRect().width}px`, D.style.left = `${P}px`, D.style.top = `${q}px`;
|
|
1178
|
+
}, J = async () => {
|
|
1179
|
+
await O();
|
|
1180
1180
|
}, k = Ie(h, () => {
|
|
1181
|
-
|
|
1182
|
-
}),
|
|
1183
|
-
|
|
1181
|
+
J();
|
|
1182
|
+
}), z = () => {
|
|
1183
|
+
J();
|
|
1184
1184
|
};
|
|
1185
|
-
document.addEventListener("scroll",
|
|
1186
|
-
update:
|
|
1185
|
+
document.addEventListener("scroll", z, !0), window.addEventListener("resize", z, !1), f = {
|
|
1186
|
+
update: J,
|
|
1187
1187
|
destroy: () => {
|
|
1188
|
-
k(), document.removeEventListener("scroll",
|
|
1188
|
+
k(), document.removeEventListener("scroll", z, !0), window.removeEventListener("resize", z, !1);
|
|
1189
1189
|
}
|
|
1190
1190
|
}, f.update();
|
|
1191
1191
|
};
|
|
@@ -1203,8 +1203,8 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1203
1203
|
l.value || (d.value = ((h = C.value) == null ? void 0 : h.label) ?? ""), f == null || f.update();
|
|
1204
1204
|
},
|
|
1205
1205
|
{ deep: !0 }
|
|
1206
|
-
), oe(
|
|
1207
|
-
n.value >=
|
|
1206
|
+
), oe(S, () => {
|
|
1207
|
+
n.value >= S.value.length && (n.value = L());
|
|
1208
1208
|
}), oe(l, async (h) => {
|
|
1209
1209
|
if (!h) {
|
|
1210
1210
|
f && (f.destroy(), f = null);
|
|
@@ -1215,10 +1215,10 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1215
1215
|
document.addEventListener("click", X);
|
|
1216
1216
|
}), we(() => {
|
|
1217
1217
|
document.removeEventListener("click", X), f == null || f.destroy(), f = null;
|
|
1218
|
-
}), (h,
|
|
1218
|
+
}), (h, D) => (b(), y("div", {
|
|
1219
1219
|
ref_key: "root",
|
|
1220
1220
|
ref: u,
|
|
1221
|
-
class: I(
|
|
1221
|
+
class: I(V.value)
|
|
1222
1222
|
}, [
|
|
1223
1223
|
B("input", {
|
|
1224
1224
|
ref_key: "control",
|
|
@@ -1233,17 +1233,17 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1233
1233
|
"aria-expanded": l.value,
|
|
1234
1234
|
"aria-autocomplete": "list",
|
|
1235
1235
|
"aria-controls": p,
|
|
1236
|
-
"aria-activedescendant":
|
|
1237
|
-
onInput:
|
|
1238
|
-
onFocus:
|
|
1239
|
-
onBlur:
|
|
1240
|
-
onClick:
|
|
1236
|
+
"aria-activedescendant": H.value,
|
|
1237
|
+
onInput: K,
|
|
1238
|
+
onFocus: G,
|
|
1239
|
+
onBlur: j,
|
|
1240
|
+
onClick: R,
|
|
1241
1241
|
onKeydown: [
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1242
|
+
te(Q(ee, ["prevent"]), ["down"]),
|
|
1243
|
+
te(Q(Y, ["prevent"]), ["up"]),
|
|
1244
|
+
te(Q(ae, ["prevent"]), ["enter"]),
|
|
1245
|
+
te(Q(_, ["prevent"]), ["esc"]),
|
|
1246
|
+
te(_, ["tab"])
|
|
1247
1247
|
]
|
|
1248
1248
|
}, null, 40, oo),
|
|
1249
1249
|
B("button", {
|
|
@@ -1252,12 +1252,12 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1252
1252
|
disabled: h.disabled,
|
|
1253
1253
|
"aria-hidden": "true",
|
|
1254
1254
|
tabindex: "-1",
|
|
1255
|
-
onMousedown:
|
|
1255
|
+
onMousedown: D[0] || (D[0] = Q(() => {
|
|
1256
1256
|
}, ["prevent"])),
|
|
1257
1257
|
onClick: m
|
|
1258
1258
|
}, " ▾ ", 40, ao),
|
|
1259
|
-
(b(),
|
|
1260
|
-
|
|
1259
|
+
(b(), re($e, { to: "body" }, [
|
|
1260
|
+
be(B("div", {
|
|
1261
1261
|
id: p,
|
|
1262
1262
|
ref_key: "panel",
|
|
1263
1263
|
ref: c,
|
|
@@ -1265,24 +1265,24 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1265
1265
|
role: "listbox",
|
|
1266
1266
|
"data-placement": v.value
|
|
1267
1267
|
}, [
|
|
1268
|
-
h.loading ? (b(), y("div", lo,
|
|
1269
|
-
id:
|
|
1270
|
-
key:
|
|
1268
|
+
h.loading ? (b(), y("div", lo, E(h.loadingText), 1)) : S.value.length > 0 ? (b(!0), y(pe, { key: 1 }, Be(S.value, (O, J) => (b(), y("button", {
|
|
1269
|
+
id: W(J),
|
|
1270
|
+
key: O.value,
|
|
1271
1271
|
class: I(["vf-autocomplete__option", {
|
|
1272
|
-
"is-active":
|
|
1273
|
-
"is-disabled":
|
|
1274
|
-
"is-highlighted":
|
|
1272
|
+
"is-active": T(O),
|
|
1273
|
+
"is-disabled": O.disabled,
|
|
1274
|
+
"is-highlighted": J === n.value
|
|
1275
1275
|
}]),
|
|
1276
1276
|
type: "button",
|
|
1277
1277
|
role: "option",
|
|
1278
|
-
disabled:
|
|
1279
|
-
"aria-selected":
|
|
1280
|
-
onMousedown:
|
|
1278
|
+
disabled: O.disabled,
|
|
1279
|
+
"aria-selected": T(O),
|
|
1280
|
+
onMousedown: D[1] || (D[1] = Q(() => {
|
|
1281
1281
|
}, ["prevent"])),
|
|
1282
|
-
onClick: (k) =>
|
|
1283
|
-
},
|
|
1282
|
+
onClick: (k) => x(O)
|
|
1283
|
+
}, E(O.label), 43, no))), 128)) : (b(), y("div", so, E(h.emptyText), 1))
|
|
1284
1284
|
], 8, ro), [
|
|
1285
|
-
[
|
|
1285
|
+
[me, l.value]
|
|
1286
1286
|
])
|
|
1287
1287
|
]))
|
|
1288
1288
|
], 2));
|
|
@@ -1293,7 +1293,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1293
1293
|
}, po = {
|
|
1294
1294
|
class: "vf-datepicker__days",
|
|
1295
1295
|
role: "grid"
|
|
1296
|
-
}, bo = ["disabled", "data-date", "onClick"],
|
|
1296
|
+
}, bo = ["disabled", "data-date", "onClick"], Ia = /* @__PURE__ */ N({
|
|
1297
1297
|
__name: "datepicker",
|
|
1298
1298
|
props: {
|
|
1299
1299
|
modelValue: { default: void 0 },
|
|
@@ -1310,40 +1310,40 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1310
1310
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
1311
1311
|
setup(t, { emit: e }) {
|
|
1312
1312
|
let r = 0;
|
|
1313
|
-
const o = e, a = t, u = M(null), s = M(null), c = M(null), l = M(!1), d = M("bottom"), n = M("bottom"), i = `vf-datepicker-panel-${++r}`, v = M(X(
|
|
1313
|
+
const o = e, a = t, u = M(null), s = M(null), c = M(null), l = M(!1), d = M("bottom"), n = M("bottom"), i = `vf-datepicker-panel-${++r}`, v = M(X(Y(a.modelValue) ?? /* @__PURE__ */ new Date()));
|
|
1314
1314
|
let p = null;
|
|
1315
|
-
const f = g(() =>
|
|
1315
|
+
const f = g(() => Y(a.modelValue)), w = g(() => Y(a.min)), C = g(() => Y(a.max)), S = g(() => f.value ? f.value.toLocaleDateString(a.locale, {
|
|
1316
1316
|
year: "numeric",
|
|
1317
1317
|
month: "short",
|
|
1318
1318
|
day: "numeric"
|
|
1319
|
-
}) : ""),
|
|
1319
|
+
}) : ""), H = g(() => v.value.toLocaleDateString(a.locale, {
|
|
1320
1320
|
year: "numeric",
|
|
1321
1321
|
month: "long"
|
|
1322
|
-
})),
|
|
1323
|
-
const k = new Intl.DateTimeFormat(a.locale, { weekday: "short" }),
|
|
1322
|
+
})), V = g(() => {
|
|
1323
|
+
const k = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), z = new Date(2026, 0, 4);
|
|
1324
1324
|
return Array.from({ length: 7 }, (P, q) => {
|
|
1325
|
-
const ne = (q + a.firstDayOfWeek) % 7, U = new Date(
|
|
1326
|
-
return U.setDate(
|
|
1325
|
+
const ne = (q + a.firstDayOfWeek) % 7, U = new Date(z);
|
|
1326
|
+
return U.setDate(z.getDate() + ne), k.format(U);
|
|
1327
1327
|
});
|
|
1328
|
-
}),
|
|
1329
|
-
const k =
|
|
1328
|
+
}), W = g(() => {
|
|
1329
|
+
const k = D(v.value, a.firstDayOfWeek), z = f.value ? O(f.value) : null, P = O(/* @__PURE__ */ new Date());
|
|
1330
1330
|
return Array.from({ length: 42 }, (q, ne) => {
|
|
1331
|
-
const U = h(k, ne), _e =
|
|
1331
|
+
const U = h(k, ne), _e = O(U);
|
|
1332
1332
|
return {
|
|
1333
1333
|
key: `${_e}-${ne}`,
|
|
1334
1334
|
iso: _e,
|
|
1335
1335
|
date: U,
|
|
1336
1336
|
day: U.getDate(),
|
|
1337
1337
|
inCurrentMonth: U.getMonth() === v.value.getMonth(),
|
|
1338
|
-
isDisabled:
|
|
1339
|
-
isSelected:
|
|
1338
|
+
isDisabled: J(U, w.value, C.value),
|
|
1339
|
+
isSelected: z === _e,
|
|
1340
1340
|
isToday: _e === P
|
|
1341
1341
|
};
|
|
1342
1342
|
});
|
|
1343
|
-
}),
|
|
1343
|
+
}), T = g(() => {
|
|
1344
1344
|
const k = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
|
|
1345
1345
|
return a.size !== "normal" && k.push(`vf-datepicker_${a.size}`), a.disabled && k.push("vf-datepicker_disabled"), k.filter(Boolean);
|
|
1346
|
-
}),
|
|
1346
|
+
}), L = (k) => o("focus", k), A = (k) => o("blur", k), R = () => {
|
|
1347
1347
|
a.disabled || a.readonly || (l.value = !0, d.value = "bottom", n.value = "bottom");
|
|
1348
1348
|
}, _ = () => {
|
|
1349
1349
|
l.value = !1, d.value = "bottom", n.value = "bottom";
|
|
@@ -1352,36 +1352,36 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1352
1352
|
_();
|
|
1353
1353
|
return;
|
|
1354
1354
|
}
|
|
1355
|
-
|
|
1356
|
-
},
|
|
1355
|
+
R();
|
|
1356
|
+
}, x = () => {
|
|
1357
1357
|
v.value = le(v.value, -1);
|
|
1358
|
-
},
|
|
1358
|
+
}, K = () => {
|
|
1359
1359
|
v.value = le(v.value, 1);
|
|
1360
|
-
}, j = (k) => {
|
|
1361
|
-
if (a.readonly || Z(k, w.value, C.value))
|
|
1362
|
-
return;
|
|
1363
|
-
const x = W(k);
|
|
1364
|
-
o("update:modelValue", x), o("change", x), _();
|
|
1365
1360
|
}, G = (k) => {
|
|
1361
|
+
if (a.readonly || J(k, w.value, C.value))
|
|
1362
|
+
return;
|
|
1363
|
+
const z = O(k);
|
|
1364
|
+
o("update:modelValue", z), o("change", z), _();
|
|
1365
|
+
}, j = (k) => {
|
|
1366
1366
|
var P;
|
|
1367
1367
|
if (!l.value || !u.value)
|
|
1368
1368
|
return;
|
|
1369
|
-
const
|
|
1370
|
-
u.value.contains(
|
|
1371
|
-
},
|
|
1369
|
+
const z = k.target;
|
|
1370
|
+
u.value.contains(z) || (P = c.value) != null && P.contains(z) || _();
|
|
1371
|
+
}, ee = () => {
|
|
1372
1372
|
if (!s.value || !c.value)
|
|
1373
1373
|
return;
|
|
1374
|
-
const k = s.value,
|
|
1374
|
+
const k = s.value, z = c.value, P = async () => {
|
|
1375
1375
|
const {
|
|
1376
1376
|
x: _e,
|
|
1377
1377
|
y: at,
|
|
1378
1378
|
placement: rt
|
|
1379
|
-
} = await Pe(k,
|
|
1379
|
+
} = await Pe(k, z, {
|
|
1380
1380
|
placement: d.value,
|
|
1381
1381
|
strategy: "fixed",
|
|
1382
1382
|
middleware: [De(2), Re({ placements: ["bottom", "top"] })]
|
|
1383
1383
|
});
|
|
1384
|
-
n.value = rt ?? d.value,
|
|
1384
|
+
n.value = rt ?? d.value, z.style.left = `${_e}px`, z.style.top = `${at}px`;
|
|
1385
1385
|
}, q = async () => {
|
|
1386
1386
|
await P();
|
|
1387
1387
|
}, ne = Ie(k, () => {
|
|
@@ -1399,8 +1399,8 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1399
1399
|
oe(
|
|
1400
1400
|
() => a.modelValue,
|
|
1401
1401
|
(k) => {
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1402
|
+
const z = Y(k);
|
|
1403
|
+
z && (v.value = X(z));
|
|
1404
1404
|
},
|
|
1405
1405
|
{ immediate: !0 }
|
|
1406
1406
|
), oe(
|
|
@@ -1413,49 +1413,49 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1413
1413
|
p && (p.destroy(), p = null);
|
|
1414
1414
|
return;
|
|
1415
1415
|
}
|
|
1416
|
-
await ze(), p ||
|
|
1416
|
+
await ze(), p || ee(), p == null || p.update();
|
|
1417
1417
|
}), Le(() => {
|
|
1418
|
-
document.addEventListener("click",
|
|
1418
|
+
document.addEventListener("click", j);
|
|
1419
1419
|
}), we(() => {
|
|
1420
|
-
document.removeEventListener("click",
|
|
1420
|
+
document.removeEventListener("click", j), p == null || p.destroy(), p = null;
|
|
1421
1421
|
});
|
|
1422
|
-
function
|
|
1422
|
+
function Y(k) {
|
|
1423
1423
|
if (!k)
|
|
1424
1424
|
return null;
|
|
1425
|
-
const
|
|
1426
|
-
if (!
|
|
1425
|
+
const z = k.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
1426
|
+
if (!z)
|
|
1427
1427
|
return null;
|
|
1428
|
-
const P = Number(
|
|
1429
|
-
return U.getFullYear() !== P || U.getMonth() !== q || U.getDate() !== ne ? null :
|
|
1428
|
+
const P = Number(z[1]), q = Number(z[2]) - 1, ne = Number(z[3]), U = new Date(P, q, ne);
|
|
1429
|
+
return U.getFullYear() !== P || U.getMonth() !== q || U.getDate() !== ne ? null : ae(U);
|
|
1430
1430
|
}
|
|
1431
|
-
function
|
|
1431
|
+
function ae(k) {
|
|
1432
1432
|
return new Date(k.getFullYear(), k.getMonth(), k.getDate());
|
|
1433
1433
|
}
|
|
1434
1434
|
function X(k) {
|
|
1435
1435
|
return new Date(k.getFullYear(), k.getMonth(), 1);
|
|
1436
1436
|
}
|
|
1437
|
-
function le(k,
|
|
1438
|
-
return new Date(k.getFullYear(), k.getMonth() +
|
|
1437
|
+
function le(k, z) {
|
|
1438
|
+
return new Date(k.getFullYear(), k.getMonth() + z, 1);
|
|
1439
1439
|
}
|
|
1440
|
-
function h(k,
|
|
1441
|
-
return new Date(k.getFullYear(), k.getMonth(), k.getDate() +
|
|
1440
|
+
function h(k, z) {
|
|
1441
|
+
return new Date(k.getFullYear(), k.getMonth(), k.getDate() + z);
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1444
|
-
const P = X(k), ne = (P.getDay() -
|
|
1443
|
+
function D(k, z) {
|
|
1444
|
+
const P = X(k), ne = (P.getDay() - z + 7) % 7;
|
|
1445
1445
|
return h(P, -ne);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const
|
|
1449
|
-
return `${
|
|
1447
|
+
function O(k) {
|
|
1448
|
+
const z = k.getFullYear(), P = `${k.getMonth() + 1}`.padStart(2, "0"), q = `${k.getDate()}`.padStart(2, "0");
|
|
1449
|
+
return `${z}-${P}-${q}`;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1452
|
-
const q =
|
|
1453
|
-
return !!(
|
|
1451
|
+
function J(k, z, P) {
|
|
1452
|
+
const q = ae(k).getTime();
|
|
1453
|
+
return !!(z && q < z.getTime() || P && q > P.getTime());
|
|
1454
1454
|
}
|
|
1455
|
-
return (k,
|
|
1455
|
+
return (k, z) => (b(), y("div", {
|
|
1456
1456
|
ref_key: "root",
|
|
1457
1457
|
ref: u,
|
|
1458
|
-
class: I(
|
|
1458
|
+
class: I(T.value)
|
|
1459
1459
|
}, [
|
|
1460
1460
|
B("button", {
|
|
1461
1461
|
ref_key: "control",
|
|
@@ -1468,54 +1468,54 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1468
1468
|
"aria-haspopup": "dialog",
|
|
1469
1469
|
onClick: m,
|
|
1470
1470
|
onKeydown: [
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1471
|
+
te(Q(R, ["prevent"]), ["down"]),
|
|
1472
|
+
te(Q(m, ["prevent"]), ["enter"]),
|
|
1473
|
+
te(Q(_, ["prevent"]), ["esc"])
|
|
1474
1474
|
],
|
|
1475
|
-
onFocus:
|
|
1476
|
-
onBlur:
|
|
1475
|
+
onFocus: L,
|
|
1476
|
+
onBlur: A
|
|
1477
1477
|
}, [
|
|
1478
1478
|
B("span", {
|
|
1479
1479
|
class: I(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !f.value }])
|
|
1480
|
-
},
|
|
1481
|
-
|
|
1480
|
+
}, E(S.value || k.placeholder), 3),
|
|
1481
|
+
z[0] || (z[0] = B("span", {
|
|
1482
1482
|
class: "vf-datepicker__chevron",
|
|
1483
1483
|
"aria-hidden": "true"
|
|
1484
1484
|
}, "▾", -1))
|
|
1485
1485
|
], 40, io),
|
|
1486
|
-
(b(),
|
|
1487
|
-
|
|
1486
|
+
(b(), re($e, { to: "body" }, [
|
|
1487
|
+
be(B("div", {
|
|
1488
1488
|
id: i,
|
|
1489
1489
|
ref_key: "panel",
|
|
1490
1490
|
ref: c,
|
|
1491
1491
|
class: "vf-datepicker__panel",
|
|
1492
1492
|
role: "dialog",
|
|
1493
1493
|
"data-placement": n.value,
|
|
1494
|
-
onKeydown:
|
|
1494
|
+
onKeydown: te(Q(_, ["prevent"]), ["esc"])
|
|
1495
1495
|
}, [
|
|
1496
1496
|
B("div", uo, [
|
|
1497
1497
|
B("button", {
|
|
1498
1498
|
class: "vf-datepicker__nav",
|
|
1499
1499
|
type: "button",
|
|
1500
1500
|
"aria-label": "Previous month",
|
|
1501
|
-
onClick:
|
|
1501
|
+
onClick: x
|
|
1502
1502
|
}, " ‹ "),
|
|
1503
|
-
B("span", vo,
|
|
1503
|
+
B("span", vo, E(H.value), 1),
|
|
1504
1504
|
B("button", {
|
|
1505
1505
|
class: "vf-datepicker__nav",
|
|
1506
1506
|
type: "button",
|
|
1507
1507
|
"aria-label": "Next month",
|
|
1508
|
-
onClick:
|
|
1508
|
+
onClick: K
|
|
1509
1509
|
}, " › ")
|
|
1510
1510
|
]),
|
|
1511
1511
|
B("div", fo, [
|
|
1512
|
-
(b(!0), y(pe, null, Be(
|
|
1512
|
+
(b(!0), y(pe, null, Be(V.value, (P) => (b(), y("span", {
|
|
1513
1513
|
key: P,
|
|
1514
1514
|
class: "vf-datepicker__weekday"
|
|
1515
|
-
},
|
|
1515
|
+
}, E(P), 1))), 128))
|
|
1516
1516
|
]),
|
|
1517
1517
|
B("div", po, [
|
|
1518
|
-
(b(!0), y(pe, null, Be(
|
|
1518
|
+
(b(!0), y(pe, null, Be(W.value, (P) => (b(), y("button", {
|
|
1519
1519
|
key: P.key,
|
|
1520
1520
|
class: I(["vf-datepicker__day", {
|
|
1521
1521
|
"is-outside": !P.inCurrentMonth,
|
|
@@ -1525,11 +1525,11 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1525
1525
|
type: "button",
|
|
1526
1526
|
disabled: P.isDisabled,
|
|
1527
1527
|
"data-date": P.iso,
|
|
1528
|
-
onClick: (q) =>
|
|
1529
|
-
},
|
|
1528
|
+
onClick: (q) => G(P.date)
|
|
1529
|
+
}, E(P.day), 11, bo))), 128))
|
|
1530
1530
|
])
|
|
1531
1531
|
], 40, co), [
|
|
1532
|
-
[
|
|
1532
|
+
[me, l.value]
|
|
1533
1533
|
])
|
|
1534
1534
|
]))
|
|
1535
1535
|
], 2));
|
|
@@ -1537,7 +1537,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1537
1537
|
}), mo = ["checked", "disabled"], go = {
|
|
1538
1538
|
key: 0,
|
|
1539
1539
|
class: "vf-checkbox__label"
|
|
1540
|
-
},
|
|
1540
|
+
}, Pa = /* @__PURE__ */ N({
|
|
1541
1541
|
__name: "checkbox",
|
|
1542
1542
|
props: {
|
|
1543
1543
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1566,13 +1566,13 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1566
1566
|
}, null, 40, mo),
|
|
1567
1567
|
c[0] || (c[0] = B("span", { class: "vf-checkbox__box" }, null, -1)),
|
|
1568
1568
|
s.label || s.$slots.default ? (b(), y("span", go, [
|
|
1569
|
-
|
|
1570
|
-
|
|
1569
|
+
$(s.$slots, "default", {}, () => [
|
|
1570
|
+
Z(E(s.label), 1)
|
|
1571
1571
|
])
|
|
1572
|
-
])) :
|
|
1572
|
+
])) : F("", !0)
|
|
1573
1573
|
], 2));
|
|
1574
1574
|
}
|
|
1575
|
-
}), et = Symbol("VueForgeRadioGroup"), ho = ["aria-disabled", "aria-label", "aria-labelledby"],
|
|
1575
|
+
}), et = Symbol("VueForgeRadioGroup"), ho = ["aria-disabled", "aria-label", "aria-labelledby"], Wa = /* @__PURE__ */ N({
|
|
1576
1576
|
__name: "radio-group",
|
|
1577
1577
|
props: {
|
|
1578
1578
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -1604,13 +1604,13 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1604
1604
|
"aria-label": c.ariaLabel || void 0,
|
|
1605
1605
|
"aria-labelledby": c.ariaLabelledby || void 0
|
|
1606
1606
|
}, [
|
|
1607
|
-
|
|
1607
|
+
$(c.$slots, "default")
|
|
1608
1608
|
], 10, ho));
|
|
1609
1609
|
}
|
|
1610
1610
|
}), yo = ["name", "value", "checked", "disabled"], _o = {
|
|
1611
1611
|
key: 0,
|
|
1612
1612
|
class: "vf-radio__label"
|
|
1613
|
-
},
|
|
1613
|
+
}, Oa = /* @__PURE__ */ N({
|
|
1614
1614
|
__name: "radio-button",
|
|
1615
1615
|
props: {
|
|
1616
1616
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -1622,7 +1622,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1622
1622
|
},
|
|
1623
1623
|
emits: ["update:modelValue", "change"],
|
|
1624
1624
|
setup(t, { emit: e }) {
|
|
1625
|
-
const r = e, o = t, a =
|
|
1625
|
+
const r = e, o = t, a = Oe(et, null), u = g(() => a ? a.modelValue.value : o.modelValue), s = g(() => a ? a.name.value : o.name), c = g(() => a ? a.variant.value : o.variant), l = g(() => (a ? a.disabled.value : !1) || o.disabled), d = g(() => u.value === o.value), n = g(() => {
|
|
1626
1626
|
const v = ["vf-radio", `vf-radio_${c.value}`];
|
|
1627
1627
|
return l.value && v.push("vf-radio_disabled"), v;
|
|
1628
1628
|
}), i = (v) => {
|
|
@@ -1642,13 +1642,13 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1642
1642
|
}, null, 40, yo),
|
|
1643
1643
|
p[0] || (p[0] = B("span", { class: "vf-radio__circle" }, null, -1)),
|
|
1644
1644
|
v.label || v.$slots.default ? (b(), y("span", _o, [
|
|
1645
|
-
|
|
1646
|
-
|
|
1645
|
+
$(v.$slots, "default", {}, () => [
|
|
1646
|
+
Z(E(v.label), 1)
|
|
1647
1647
|
])
|
|
1648
|
-
])) :
|
|
1648
|
+
])) : F("", !0)
|
|
1649
1649
|
], 2));
|
|
1650
1650
|
}
|
|
1651
|
-
}), Me = Symbol("VueForgeTabs"), ko = ["aria-orientation", "aria-label", "aria-labelledby"], Co = { class: "vf-tabs__panels" },
|
|
1651
|
+
}), Me = Symbol("VueForgeTabs"), ko = ["aria-orientation", "aria-label", "aria-labelledby"], Co = { class: "vf-tabs__panels" }, Ma = /* @__PURE__ */ N({
|
|
1652
1652
|
__name: "tabs",
|
|
1653
1653
|
props: {
|
|
1654
1654
|
modelValue: { default: void 0 },
|
|
@@ -1668,15 +1668,15 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1668
1668
|
}, i = (f) => {
|
|
1669
1669
|
if (a.disabled)
|
|
1670
1670
|
return;
|
|
1671
|
-
const w = a.orientation === "horizontal", C = f.key,
|
|
1672
|
-
if (![...
|
|
1671
|
+
const w = a.orientation === "horizontal", C = f.key, S = w ? ["ArrowRight"] : ["ArrowDown"], H = w ? ["ArrowLeft"] : ["ArrowUp"];
|
|
1672
|
+
if (![...S, ...H, "Home", "End"].includes(C))
|
|
1673
1673
|
return;
|
|
1674
|
-
const
|
|
1675
|
-
if (!
|
|
1674
|
+
const V = d();
|
|
1675
|
+
if (!V.length)
|
|
1676
1676
|
return;
|
|
1677
|
-
const
|
|
1678
|
-
let
|
|
1679
|
-
|
|
1677
|
+
const W = V.findIndex((R) => R.getAttribute("aria-selected") === "true"), T = V.findIndex((R) => R === document.activeElement), L = T >= 0 ? T : Math.max(W, 0);
|
|
1678
|
+
let A = L;
|
|
1679
|
+
S.includes(C) ? A = (L + 1) % V.length : H.includes(C) ? A = (L - 1 + V.length) % V.length : C === "Home" ? A = 0 : C === "End" && (A = V.length - 1), f.preventDefault(), n(V[A]);
|
|
1680
1680
|
}, v = (f, w) => {
|
|
1681
1681
|
o("update:modelValue", f), o("change", f, w);
|
|
1682
1682
|
}, p = {
|
|
@@ -1700,14 +1700,14 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1700
1700
|
"aria-labelledby": f.ariaLabelledby || void 0,
|
|
1701
1701
|
onKeydown: i
|
|
1702
1702
|
}, [
|
|
1703
|
-
|
|
1703
|
+
$(f.$slots, "tabs")
|
|
1704
1704
|
], 40, ko),
|
|
1705
1705
|
B("div", Co, [
|
|
1706
|
-
|
|
1706
|
+
$(f.$slots, "panels")
|
|
1707
1707
|
])
|
|
1708
1708
|
], 2));
|
|
1709
1709
|
}
|
|
1710
|
-
}), wo = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"],
|
|
1710
|
+
}), wo = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Ea = /* @__PURE__ */ N({
|
|
1711
1711
|
__name: "tab",
|
|
1712
1712
|
props: {
|
|
1713
1713
|
value: {},
|
|
@@ -1716,7 +1716,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1716
1716
|
},
|
|
1717
1717
|
emits: ["change"],
|
|
1718
1718
|
setup(t, { emit: e }) {
|
|
1719
|
-
const r = e, o = t, a =
|
|
1719
|
+
const r = e, o = t, a = Oe(Me, null), u = g(() => (a == null ? void 0 : a.activeValue.value) === o.value), s = g(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = g(() => a ? a.getTabId(o.value) : void 0), l = g(() => a ? a.getPanelId(o.value) : void 0), d = g(() => s.value ? -1 : u.value ? 0 : -1), n = (i) => {
|
|
1720
1720
|
!a || s.value || (a.onChange(o.value, i), r("change", o.value, i));
|
|
1721
1721
|
};
|
|
1722
1722
|
return (i, v) => (b(), y("button", {
|
|
@@ -1730,28 +1730,28 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1730
1730
|
tabindex: d.value,
|
|
1731
1731
|
onClick: n
|
|
1732
1732
|
}, [
|
|
1733
|
-
|
|
1734
|
-
|
|
1733
|
+
$(i.$slots, "default", {}, () => [
|
|
1734
|
+
Z(E(i.label), 1)
|
|
1735
1735
|
])
|
|
1736
1736
|
], 10, wo));
|
|
1737
1737
|
}
|
|
1738
|
-
}), $o = ["id", "aria-labelledby"],
|
|
1738
|
+
}), $o = ["id", "aria-labelledby"], Ha = /* @__PURE__ */ N({
|
|
1739
1739
|
__name: "tab-panel",
|
|
1740
1740
|
props: {
|
|
1741
1741
|
value: {}
|
|
1742
1742
|
},
|
|
1743
1743
|
setup(t) {
|
|
1744
|
-
const e = t, r =
|
|
1745
|
-
return (s, c) =>
|
|
1744
|
+
const e = t, r = Oe(Me, null), o = g(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = g(() => r ? r.getTabId(e.value) : void 0), u = g(() => r ? r.getPanelId(e.value) : void 0);
|
|
1745
|
+
return (s, c) => be((b(), y("div", {
|
|
1746
1746
|
id: u.value,
|
|
1747
1747
|
class: "vf-tab-panel",
|
|
1748
1748
|
role: "tabpanel",
|
|
1749
1749
|
tabindex: "0",
|
|
1750
1750
|
"aria-labelledby": a.value
|
|
1751
1751
|
}, [
|
|
1752
|
-
|
|
1752
|
+
$(s.$slots, "default")
|
|
1753
1753
|
], 8, $o)), [
|
|
1754
|
-
[
|
|
1754
|
+
[me, o.value]
|
|
1755
1755
|
]);
|
|
1756
1756
|
}
|
|
1757
1757
|
}), xo = ["data-severity"], Bo = { class: "vf-toast__body" }, zo = {
|
|
@@ -1760,7 +1760,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1760
1760
|
}, Fo = {
|
|
1761
1761
|
key: 1,
|
|
1762
1762
|
class: "vf-toast__message"
|
|
1763
|
-
},
|
|
1763
|
+
}, Aa = /* @__PURE__ */ N({
|
|
1764
1764
|
__name: "toast",
|
|
1765
1765
|
props: {
|
|
1766
1766
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1791,19 +1791,19 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1791
1791
|
{ immediate: !0 }
|
|
1792
1792
|
), we(() => {
|
|
1793
1793
|
u();
|
|
1794
|
-
}), (l, d) =>
|
|
1794
|
+
}), (l, d) => be((b(), y("div", {
|
|
1795
1795
|
class: "vf-toast",
|
|
1796
1796
|
role: "status",
|
|
1797
1797
|
"aria-live": "polite",
|
|
1798
1798
|
"data-severity": l.severity
|
|
1799
1799
|
}, [
|
|
1800
1800
|
B("div", Bo, [
|
|
1801
|
-
l.title ? (b(), y("div", zo,
|
|
1801
|
+
l.title ? (b(), y("div", zo, E(l.title), 1)) : F("", !0),
|
|
1802
1802
|
l.message || l.$slots.default ? (b(), y("div", Fo, [
|
|
1803
|
-
|
|
1804
|
-
|
|
1803
|
+
$(l.$slots, "default", {}, () => [
|
|
1804
|
+
Z(E(l.message), 1)
|
|
1805
1805
|
])
|
|
1806
|
-
])) :
|
|
1806
|
+
])) : F("", !0)
|
|
1807
1807
|
]),
|
|
1808
1808
|
l.closable ? (b(), y("button", {
|
|
1809
1809
|
key: 0,
|
|
@@ -1811,35 +1811,111 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1811
1811
|
type: "button",
|
|
1812
1812
|
onClick: c
|
|
1813
1813
|
}, [
|
|
1814
|
-
|
|
1815
|
-
d[0] || (d[0] =
|
|
1814
|
+
$(l.$slots, "close", {}, () => [
|
|
1815
|
+
d[0] || (d[0] = Z("×"))
|
|
1816
1816
|
])
|
|
1817
|
-
])) :
|
|
1817
|
+
])) : F("", !0)
|
|
1818
1818
|
], 8, xo)), [
|
|
1819
|
-
[
|
|
1819
|
+
[me, l.modelValue]
|
|
1820
1820
|
]);
|
|
1821
1821
|
}
|
|
1822
|
-
}),
|
|
1822
|
+
}), Ka = /* @__PURE__ */ N({
|
|
1823
1823
|
__name: "toast-container",
|
|
1824
1824
|
props: {
|
|
1825
1825
|
position: { default: "top-right" }
|
|
1826
1826
|
},
|
|
1827
1827
|
setup(t) {
|
|
1828
1828
|
const e = t, r = g(() => `vf-toast-container_${e.position}`);
|
|
1829
|
-
return (o, a) => (b(),
|
|
1829
|
+
return (o, a) => (b(), re($e, { to: "body" }, [
|
|
1830
1830
|
B("div", {
|
|
1831
1831
|
class: I(["vf-toast-container", r.value]),
|
|
1832
1832
|
role: "region",
|
|
1833
1833
|
"aria-live": "polite"
|
|
1834
1834
|
}, [
|
|
1835
|
-
|
|
1835
|
+
$(o.$slots, "default")
|
|
1836
1836
|
], 2)
|
|
1837
1837
|
]));
|
|
1838
1838
|
}
|
|
1839
|
-
}), So = ["
|
|
1839
|
+
}), So = ["data-severity"], Vo = {
|
|
1840
|
+
key: 0,
|
|
1841
|
+
class: "vf-alert__icon",
|
|
1842
|
+
"aria-hidden": "true"
|
|
1843
|
+
}, To = { class: "vf-alert__body" }, Lo = {
|
|
1844
|
+
key: 0,
|
|
1845
|
+
class: "vf-alert__title"
|
|
1846
|
+
}, Ro = {
|
|
1847
|
+
key: 1,
|
|
1848
|
+
class: "vf-alert__message"
|
|
1849
|
+
}, Do = {
|
|
1850
|
+
key: 1,
|
|
1851
|
+
class: "vf-alert__actions"
|
|
1852
|
+
}, Na = /* @__PURE__ */ N({
|
|
1853
|
+
__name: "alert",
|
|
1854
|
+
props: {
|
|
1855
|
+
modelValue: { type: Boolean },
|
|
1856
|
+
title: { default: "" },
|
|
1857
|
+
message: { default: "" },
|
|
1858
|
+
severity: { default: "neutral" },
|
|
1859
|
+
closable: { type: Boolean, default: !1 },
|
|
1860
|
+
icon: { default: "" }
|
|
1861
|
+
},
|
|
1862
|
+
emits: ["update:modelValue", "close"],
|
|
1863
|
+
setup(t, { emit: e }) {
|
|
1864
|
+
const r = e, o = t, a = M(!0), u = g(() => typeof o.modelValue == "boolean"), s = g(() => u.value ? o.modelValue : a.value);
|
|
1865
|
+
oe(
|
|
1866
|
+
() => o.modelValue,
|
|
1867
|
+
(l) => {
|
|
1868
|
+
typeof l == "boolean" && (a.value = l);
|
|
1869
|
+
},
|
|
1870
|
+
{ immediate: !0 }
|
|
1871
|
+
);
|
|
1872
|
+
const c = () => {
|
|
1873
|
+
u.value ? r("update:modelValue", !1) : a.value = !1, r("close");
|
|
1874
|
+
};
|
|
1875
|
+
return (l, d) => be((b(), y("div", {
|
|
1876
|
+
class: "vf-alert",
|
|
1877
|
+
role: "alert",
|
|
1878
|
+
"data-severity": l.severity
|
|
1879
|
+
}, [
|
|
1880
|
+
l.$slots.icon || l.icon ? (b(), y("div", Vo, [
|
|
1881
|
+
$(l.$slots, "icon", {}, () => [
|
|
1882
|
+
Z(E(l.icon), 1)
|
|
1883
|
+
])
|
|
1884
|
+
])) : F("", !0),
|
|
1885
|
+
B("div", To, [
|
|
1886
|
+
l.title || l.$slots.title ? (b(), y("div", Lo, [
|
|
1887
|
+
$(l.$slots, "title", {}, () => [
|
|
1888
|
+
Z(E(l.title), 1)
|
|
1889
|
+
])
|
|
1890
|
+
])) : F("", !0),
|
|
1891
|
+
l.message || l.$slots.default ? (b(), y("div", Ro, [
|
|
1892
|
+
$(l.$slots, "default", {}, () => [
|
|
1893
|
+
Z(E(l.message), 1)
|
|
1894
|
+
])
|
|
1895
|
+
])) : F("", !0)
|
|
1896
|
+
]),
|
|
1897
|
+
l.$slots.actions ? (b(), y("div", Do, [
|
|
1898
|
+
$(l.$slots, "actions")
|
|
1899
|
+
])) : F("", !0),
|
|
1900
|
+
l.closable ? (b(), y("button", {
|
|
1901
|
+
key: 2,
|
|
1902
|
+
class: "vf-alert__close",
|
|
1903
|
+
type: "button",
|
|
1904
|
+
"aria-label": "Close",
|
|
1905
|
+
onClick: c
|
|
1906
|
+
}, [
|
|
1907
|
+
$(l.$slots, "close", {}, () => [
|
|
1908
|
+
d[0] || (d[0] = Z("×"))
|
|
1909
|
+
])
|
|
1910
|
+
])) : F("", !0)
|
|
1911
|
+
], 8, So)), [
|
|
1912
|
+
[me, s.value]
|
|
1913
|
+
]);
|
|
1914
|
+
}
|
|
1915
|
+
}), Io = ["checked", "disabled"], Po = {
|
|
1840
1916
|
key: 0,
|
|
1841
1917
|
class: "vf-switch__label"
|
|
1842
|
-
},
|
|
1918
|
+
}, Ya = /* @__PURE__ */ N({
|
|
1843
1919
|
__name: "switch",
|
|
1844
1920
|
props: {
|
|
1845
1921
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1864,18 +1940,18 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1864
1940
|
checked: s.modelValue,
|
|
1865
1941
|
disabled: s.disabled,
|
|
1866
1942
|
onChange: u
|
|
1867
|
-
}, null, 40,
|
|
1943
|
+
}, null, 40, Io),
|
|
1868
1944
|
c[0] || (c[0] = B("span", { class: "vf-switch__track" }, [
|
|
1869
1945
|
B("span", { class: "vf-switch__thumb" })
|
|
1870
1946
|
], -1)),
|
|
1871
|
-
s.label || s.$slots.default ? (b(), y("span",
|
|
1872
|
-
|
|
1873
|
-
|
|
1947
|
+
s.label || s.$slots.default ? (b(), y("span", Po, [
|
|
1948
|
+
$(s.$slots, "default", {}, () => [
|
|
1949
|
+
Z(E(s.label), 1)
|
|
1874
1950
|
])
|
|
1875
|
-
])) :
|
|
1951
|
+
])) : F("", !0)
|
|
1876
1952
|
], 2));
|
|
1877
1953
|
}
|
|
1878
|
-
}),
|
|
1954
|
+
}), Wo = { class: "vf-popover" }, Oo = ["aria-expanded", "onKeydown"], Ga = /* @__PURE__ */ N({
|
|
1879
1955
|
__name: "popover",
|
|
1880
1956
|
emits: ["click", "onClick"],
|
|
1881
1957
|
setup(t, { expose: e, emit: r }) {
|
|
@@ -1884,7 +1960,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1884
1960
|
const s = `vf-popover-panel-${++u}`, c = () => a.visible = !0, l = () => a.visible = !1, d = () => a.visible = !a.visible, n = () => {
|
|
1885
1961
|
d(), o("click"), o("onClick");
|
|
1886
1962
|
};
|
|
1887
|
-
return e({ show: c, hide: l, toggle: d }), (i, v) => (b(), y("div",
|
|
1963
|
+
return e({ show: c, hide: l, toggle: d }), (i, v) => (b(), y("div", Wo, [
|
|
1888
1964
|
B("div", {
|
|
1889
1965
|
class: "vf-popover__button",
|
|
1890
1966
|
role: "button",
|
|
@@ -1894,67 +1970,67 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1894
1970
|
"aria-controls": s,
|
|
1895
1971
|
onClick: n,
|
|
1896
1972
|
onKeydown: [
|
|
1897
|
-
|
|
1898
|
-
|
|
1973
|
+
te(Q(n, ["prevent"]), ["enter"]),
|
|
1974
|
+
te(Q(n, ["prevent"]), ["space"])
|
|
1899
1975
|
]
|
|
1900
1976
|
}, [
|
|
1901
|
-
|
|
1902
|
-
], 40,
|
|
1903
|
-
|
|
1977
|
+
$(i.$slots, "button")
|
|
1978
|
+
], 40, Oo),
|
|
1979
|
+
be(je(ht, {
|
|
1904
1980
|
id: s,
|
|
1905
1981
|
class: "vf-popover__wrapper"
|
|
1906
1982
|
}, nt({
|
|
1907
|
-
default:
|
|
1983
|
+
default: he(() => [
|
|
1908
1984
|
v[0] || (v[0] = B("div", { class: "vf-popover__arrow" }, null, -1))
|
|
1909
1985
|
]),
|
|
1910
1986
|
_: 2
|
|
1911
1987
|
}, [
|
|
1912
1988
|
i.$slots.default ? {
|
|
1913
1989
|
name: "default",
|
|
1914
|
-
fn:
|
|
1915
|
-
|
|
1990
|
+
fn: he(() => [
|
|
1991
|
+
$(i.$slots, "default")
|
|
1916
1992
|
]),
|
|
1917
1993
|
key: "0"
|
|
1918
1994
|
} : void 0,
|
|
1919
1995
|
i.$slots.header || i.$slots.popoverHeader ? {
|
|
1920
1996
|
name: "header",
|
|
1921
|
-
fn:
|
|
1922
|
-
|
|
1923
|
-
i.$slots.header ?
|
|
1997
|
+
fn: he(() => [
|
|
1998
|
+
$(i.$slots, "header"),
|
|
1999
|
+
i.$slots.header ? F("", !0) : $(i.$slots, "popoverHeader", { key: 0 })
|
|
1924
2000
|
]),
|
|
1925
2001
|
key: "1"
|
|
1926
2002
|
} : void 0,
|
|
1927
2003
|
i.$slots.body || i.$slots.popoverBody ? {
|
|
1928
2004
|
name: "body",
|
|
1929
|
-
fn:
|
|
1930
|
-
|
|
1931
|
-
i.$slots.body ?
|
|
2005
|
+
fn: he(() => [
|
|
2006
|
+
$(i.$slots, "body"),
|
|
2007
|
+
i.$slots.body ? F("", !0) : $(i.$slots, "popoverBody", { key: 0 })
|
|
1932
2008
|
]),
|
|
1933
2009
|
key: "2"
|
|
1934
2010
|
} : void 0,
|
|
1935
2011
|
i.$slots.footer || i.$slots.popoverFooter ? {
|
|
1936
2012
|
name: "footer",
|
|
1937
|
-
fn:
|
|
1938
|
-
|
|
1939
|
-
i.$slots.footer ?
|
|
2013
|
+
fn: he(() => [
|
|
2014
|
+
$(i.$slots, "footer"),
|
|
2015
|
+
i.$slots.footer ? F("", !0) : $(i.$slots, "popoverFooter", { key: 0 })
|
|
1940
2016
|
]),
|
|
1941
2017
|
key: "3"
|
|
1942
2018
|
} : void 0
|
|
1943
2019
|
]), 1536), [
|
|
1944
|
-
[
|
|
2020
|
+
[me, a.visible]
|
|
1945
2021
|
])
|
|
1946
2022
|
]));
|
|
1947
2023
|
}
|
|
1948
|
-
}),
|
|
2024
|
+
}), Mo = ["aria-labelledby", "aria-describedby"], Eo = {
|
|
1949
2025
|
key: 0,
|
|
1950
2026
|
class: "vf-modal__header"
|
|
1951
|
-
},
|
|
2027
|
+
}, Ho = {
|
|
1952
2028
|
key: 0,
|
|
1953
2029
|
class: "vf-modal__title"
|
|
1954
|
-
},
|
|
2030
|
+
}, Ao = {
|
|
1955
2031
|
key: 3,
|
|
1956
2032
|
class: "vf-modal__footer"
|
|
1957
|
-
},
|
|
2033
|
+
}, ja = /* @__PURE__ */ N({
|
|
1958
2034
|
__name: "modal",
|
|
1959
2035
|
props: {
|
|
1960
2036
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1972,52 +2048,52 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
1972
2048
|
const d = M(null), n = Xe(), i = `vf-modal-title-${++u}`, v = `vf-modal-body-${u}`, p = g(() => !!a.title || !!n.header), f = g(() => !!n.body || !!n.default), w = g(() => {
|
|
1973
2049
|
const _ = ["vf-modal"];
|
|
1974
2050
|
return a.size !== "md" && _.push(`vf-modal_${a.size}`), _;
|
|
1975
|
-
}), C = () => o("update:modelValue", !0),
|
|
2051
|
+
}), C = () => o("update:modelValue", !0), S = () => {
|
|
1976
2052
|
o("update:modelValue", !1), o("close");
|
|
1977
|
-
},
|
|
1978
|
-
a.closeOnOverlay &&
|
|
1979
|
-
},
|
|
1980
|
-
!a.modelValue || !a.closeOnEsc || _.key === "Escape" && (_.preventDefault(),
|
|
1981
|
-
},
|
|
2053
|
+
}, H = () => {
|
|
2054
|
+
a.closeOnOverlay && S();
|
|
2055
|
+
}, V = (_) => {
|
|
2056
|
+
!a.modelValue || !a.closeOnEsc || _.key === "Escape" && (_.preventDefault(), S());
|
|
2057
|
+
}, W = () => d.value ? Array.from(d.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((m) => !m.hasAttribute("disabled") && !m.getAttribute("aria-hidden")) : [], T = () => {
|
|
1982
2058
|
var m;
|
|
1983
|
-
const _ =
|
|
2059
|
+
const _ = W();
|
|
1984
2060
|
_.length ? _[0].focus() : (m = d.value) == null || m.focus();
|
|
1985
|
-
},
|
|
1986
|
-
var
|
|
2061
|
+
}, L = (_) => {
|
|
2062
|
+
var j;
|
|
1987
2063
|
if (_.key !== "Tab")
|
|
1988
2064
|
return;
|
|
1989
|
-
const m =
|
|
2065
|
+
const m = W();
|
|
1990
2066
|
if (!m.length) {
|
|
1991
|
-
_.preventDefault(), (
|
|
2067
|
+
_.preventDefault(), (j = d.value) == null || j.focus();
|
|
1992
2068
|
return;
|
|
1993
2069
|
}
|
|
1994
|
-
const
|
|
1995
|
-
if (_.shiftKey &&
|
|
1996
|
-
_.preventDefault(),
|
|
2070
|
+
const x = m[0], K = m[m.length - 1], G = document.activeElement;
|
|
2071
|
+
if (_.shiftKey && G === x) {
|
|
2072
|
+
_.preventDefault(), K.focus();
|
|
1997
2073
|
return;
|
|
1998
2074
|
}
|
|
1999
|
-
!_.shiftKey &&
|
|
2000
|
-
},
|
|
2075
|
+
!_.shiftKey && G === K && (_.preventDefault(), x.focus());
|
|
2076
|
+
}, A = () => {
|
|
2001
2077
|
!a.lockScroll || typeof document > "u" || (s === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), s += 1);
|
|
2002
|
-
},
|
|
2078
|
+
}, R = () => {
|
|
2003
2079
|
!a.lockScroll || typeof document > "u" || (s = Math.max(0, s - 1), s === 0 && (document.body.style.overflow = c));
|
|
2004
2080
|
};
|
|
2005
2081
|
return oe(
|
|
2006
2082
|
() => a.modelValue,
|
|
2007
2083
|
async (_) => {
|
|
2008
|
-
_ ? (typeof document < "u" && (l = document.activeElement),
|
|
2084
|
+
_ ? (typeof document < "u" && (l = document.activeElement), A(), o("open"), await ze(), T(), typeof document < "u" && document.addEventListener("keydown", V)) : (R(), typeof document < "u" && (document.removeEventListener("keydown", V), l == null || l.focus()));
|
|
2009
2085
|
},
|
|
2010
2086
|
{ immediate: !0 }
|
|
2011
2087
|
), we(() => {
|
|
2012
|
-
|
|
2013
|
-
}), e({ open: C, close:
|
|
2014
|
-
|
|
2088
|
+
R(), typeof document < "u" && document.removeEventListener("keydown", V);
|
|
2089
|
+
}), e({ open: C, close: S }), (_, m) => (b(), re($e, { to: "body" }, [
|
|
2090
|
+
be(B("div", {
|
|
2015
2091
|
class: I(w.value),
|
|
2016
2092
|
role: "presentation"
|
|
2017
2093
|
}, [
|
|
2018
2094
|
B("div", {
|
|
2019
2095
|
class: "vf-modal__overlay",
|
|
2020
|
-
onClick:
|
|
2096
|
+
onClick: H
|
|
2021
2097
|
}),
|
|
2022
2098
|
B("div", {
|
|
2023
2099
|
ref_key: "panel",
|
|
@@ -2028,51 +2104,51 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2028
2104
|
"aria-labelledby": p.value ? i : void 0,
|
|
2029
2105
|
"aria-describedby": f.value ? v : void 0,
|
|
2030
2106
|
tabindex: "-1",
|
|
2031
|
-
onKeydown:
|
|
2107
|
+
onKeydown: L
|
|
2032
2108
|
}, [
|
|
2033
|
-
p.value ? (b(), y("div",
|
|
2109
|
+
p.value ? (b(), y("div", Eo, [
|
|
2034
2110
|
B("div", {
|
|
2035
2111
|
id: i,
|
|
2036
2112
|
class: "vf-modal__header-content"
|
|
2037
2113
|
}, [
|
|
2038
|
-
|
|
2039
|
-
_.title ? (b(), y("h3",
|
|
2114
|
+
$(_.$slots, "header", {}, () => [
|
|
2115
|
+
_.title ? (b(), y("h3", Ho, E(_.title), 1)) : F("", !0)
|
|
2040
2116
|
])
|
|
2041
2117
|
])
|
|
2042
|
-
])) :
|
|
2043
|
-
_.showClose ?
|
|
2118
|
+
])) : F("", !0),
|
|
2119
|
+
_.showClose ? $(_.$slots, "close", {
|
|
2044
2120
|
key: 1,
|
|
2045
|
-
close:
|
|
2121
|
+
close: S
|
|
2046
2122
|
}, () => [
|
|
2047
2123
|
B("button", {
|
|
2048
2124
|
type: "button",
|
|
2049
2125
|
class: "vf-modal__close",
|
|
2050
2126
|
"aria-label": "Close",
|
|
2051
|
-
onClick:
|
|
2127
|
+
onClick: S
|
|
2052
2128
|
}, "×")
|
|
2053
|
-
]) :
|
|
2129
|
+
]) : F("", !0),
|
|
2054
2130
|
_.$slots.body || _.$slots.default ? (b(), y("div", {
|
|
2055
2131
|
key: 2,
|
|
2056
2132
|
id: v,
|
|
2057
2133
|
class: "vf-modal__body"
|
|
2058
2134
|
}, [
|
|
2059
|
-
|
|
2060
|
-
_.$slots.body ?
|
|
2061
|
-
])) :
|
|
2062
|
-
_.$slots.footer ? (b(), y("div",
|
|
2063
|
-
|
|
2064
|
-
])) :
|
|
2065
|
-
], 40,
|
|
2135
|
+
$(_.$slots, "body"),
|
|
2136
|
+
_.$slots.body ? F("", !0) : $(_.$slots, "default", { key: 0 })
|
|
2137
|
+
])) : F("", !0),
|
|
2138
|
+
_.$slots.footer ? (b(), y("div", Ao, [
|
|
2139
|
+
$(_.$slots, "footer")
|
|
2140
|
+
])) : F("", !0)
|
|
2141
|
+
], 40, Mo)
|
|
2066
2142
|
], 2), [
|
|
2067
|
-
[
|
|
2143
|
+
[me, _.modelValue]
|
|
2068
2144
|
])
|
|
2069
2145
|
]));
|
|
2070
2146
|
}
|
|
2071
|
-
}),
|
|
2147
|
+
}), Ko = ["data-placement"], No = { class: "vf-tooltip__content" }, Yo = {
|
|
2072
2148
|
key: 0,
|
|
2073
2149
|
class: "vf-tooltip__arrow",
|
|
2074
2150
|
"aria-hidden": "true"
|
|
2075
|
-
},
|
|
2151
|
+
}, Xa = /* @__PURE__ */ N({
|
|
2076
2152
|
__name: "tooltip",
|
|
2077
2153
|
props: {
|
|
2078
2154
|
text: { default: "" },
|
|
@@ -2094,26 +2170,26 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2094
2170
|
return;
|
|
2095
2171
|
const p = o.value, f = a.value, w = async () => {
|
|
2096
2172
|
const {
|
|
2097
|
-
x:
|
|
2098
|
-
y:
|
|
2099
|
-
placement:
|
|
2173
|
+
x: V,
|
|
2174
|
+
y: W,
|
|
2175
|
+
placement: T
|
|
2100
2176
|
} = await Pe(p, f, {
|
|
2101
2177
|
placement: e.placement,
|
|
2102
2178
|
strategy: "fixed",
|
|
2103
2179
|
middleware: [De(8), Re(), It()]
|
|
2104
2180
|
});
|
|
2105
|
-
s.value =
|
|
2181
|
+
s.value = T ?? e.placement, f.style.left = `${V}px`, f.style.top = `${W}px`;
|
|
2106
2182
|
}, C = async () => {
|
|
2107
2183
|
await w();
|
|
2108
|
-
},
|
|
2184
|
+
}, S = Ie(p, () => {
|
|
2109
2185
|
C();
|
|
2110
|
-
}),
|
|
2186
|
+
}), H = () => {
|
|
2111
2187
|
C();
|
|
2112
2188
|
};
|
|
2113
|
-
document.addEventListener("scroll",
|
|
2189
|
+
document.addEventListener("scroll", H, !0), window.addEventListener("resize", H, !1), l = {
|
|
2114
2190
|
update: C,
|
|
2115
2191
|
destroy: () => {
|
|
2116
|
-
|
|
2192
|
+
S(), document.removeEventListener("scroll", H, !0), window.removeEventListener("resize", H, !1);
|
|
2117
2193
|
}
|
|
2118
2194
|
}, l.update();
|
|
2119
2195
|
};
|
|
@@ -2142,10 +2218,10 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2142
2218
|
onFocus: d,
|
|
2143
2219
|
onBlur: n
|
|
2144
2220
|
}, [
|
|
2145
|
-
|
|
2221
|
+
$(p.$slots, "default")
|
|
2146
2222
|
], 544),
|
|
2147
|
-
(b(),
|
|
2148
|
-
|
|
2223
|
+
(b(), re($e, { to: "body" }, [
|
|
2224
|
+
be(B("div", {
|
|
2149
2225
|
id: c,
|
|
2150
2226
|
ref_key: "panel",
|
|
2151
2227
|
ref: a,
|
|
@@ -2153,23 +2229,23 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2153
2229
|
role: "tooltip",
|
|
2154
2230
|
"data-placement": s.value
|
|
2155
2231
|
}, [
|
|
2156
|
-
B("span",
|
|
2157
|
-
|
|
2158
|
-
|
|
2232
|
+
B("span", No, [
|
|
2233
|
+
$(p.$slots, "content", {}, () => [
|
|
2234
|
+
Z(E(p.text), 1)
|
|
2159
2235
|
])
|
|
2160
2236
|
]),
|
|
2161
|
-
p.arrow ? (b(), y("span",
|
|
2162
|
-
], 8,
|
|
2163
|
-
[
|
|
2237
|
+
p.arrow ? (b(), y("span", Yo)) : F("", !0)
|
|
2238
|
+
], 8, Ko), [
|
|
2239
|
+
[me, u.value]
|
|
2164
2240
|
])
|
|
2165
2241
|
]))
|
|
2166
2242
|
], 64));
|
|
2167
2243
|
}
|
|
2168
|
-
}),
|
|
2244
|
+
}), Go = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], jo = (t) => {
|
|
2169
2245
|
const e = t.replace(/([A-Z])/g, "-$1");
|
|
2170
2246
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2171
|
-
},
|
|
2172
|
-
if (!
|
|
2247
|
+
}, Xo = (t) => t.filter((e) => !Go.includes(e)).map((e) => jo(e)).join("-").toLowerCase(), We = (t) => t.join("."), qo = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ee = (t) => {
|
|
2248
|
+
if (!qo(t))
|
|
2173
2249
|
return null;
|
|
2174
2250
|
if (t.length === 4) {
|
|
2175
2251
|
const e = t[1], r = t[2], o = t[3];
|
|
@@ -2185,7 +2261,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2185
2261
|
}, Ne = (t) => {
|
|
2186
2262
|
const [e, r, o] = tt(t);
|
|
2187
2263
|
return `${e}, ${r}, ${o}`;
|
|
2188
|
-
},
|
|
2264
|
+
}, Uo = (t, e, r) => {
|
|
2189
2265
|
const o = t / 255, a = e / 255, u = r / 255, s = Math.max(o, a, u), c = Math.min(o, a, u), l = s - c;
|
|
2190
2266
|
let d = 0, n = 0;
|
|
2191
2267
|
const i = (s + c) / 2;
|
|
@@ -2204,18 +2280,18 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2204
2280
|
d *= 60, d < 0 && (d += 360);
|
|
2205
2281
|
}
|
|
2206
2282
|
return [d, n * 100, i * 100];
|
|
2207
|
-
},
|
|
2283
|
+
}, Zo = (t, e, r) => {
|
|
2208
2284
|
const o = e / 100, a = r / 100, u = (1 - Math.abs(2 * a - 1)) * o, s = u * (1 - Math.abs(t / 60 % 2 - 1)), c = a - u / 2;
|
|
2209
2285
|
let l = 0, d = 0, n = 0;
|
|
2210
2286
|
t >= 0 && t < 60 ? (l = u, d = s, n = 0) : t >= 60 && t < 120 ? (l = s, d = u, n = 0) : t >= 120 && t < 180 ? (l = 0, d = u, n = s) : t >= 180 && t < 240 ? (l = 0, d = s, n = u) : t >= 240 && t < 300 ? (l = s, d = 0, n = u) : (l = u, d = 0, n = s);
|
|
2211
2287
|
const i = Math.round((l + c) * 255), v = Math.round((d + c) * 255), p = Math.round((n + c) * 255);
|
|
2212
2288
|
return [i, v, p];
|
|
2213
|
-
},
|
|
2289
|
+
}, Jo = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, Qo = (t, e, r) => Math.min(r, Math.max(e, t)), ea = (t, e) => {
|
|
2214
2290
|
const r = Ee(t);
|
|
2215
2291
|
if (!r)
|
|
2216
2292
|
return t;
|
|
2217
|
-
const [o, a, u] = tt(r), [s, c, l] =
|
|
2218
|
-
return
|
|
2293
|
+
const [o, a, u] = tt(r), [s, c, l] = Uo(o, a, u), n = (e - 5) * 7, i = Qo(l + n, 0, 100), [v, p, f] = Zo(s, c, i);
|
|
2294
|
+
return Jo(v, p, f);
|
|
2219
2295
|
}, Te = (t) => !!t && typeof t == "object" && !Array.isArray(t), He = (t, e) => {
|
|
2220
2296
|
if (!e)
|
|
2221
2297
|
return { ...t };
|
|
@@ -2225,7 +2301,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2225
2301
|
Te(u) && Te(a) ? r[o] = He(u, a) : r[o] = a;
|
|
2226
2302
|
}
|
|
2227
2303
|
return r;
|
|
2228
|
-
},
|
|
2304
|
+
}, ta = (t) => {
|
|
2229
2305
|
if (!t)
|
|
2230
2306
|
return null;
|
|
2231
2307
|
if (Te(t) && "preset" in t) {
|
|
@@ -2239,7 +2315,7 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2239
2315
|
};
|
|
2240
2316
|
}
|
|
2241
2317
|
return { preset: t };
|
|
2242
|
-
},
|
|
2318
|
+
}, oa = (t) => {
|
|
2243
2319
|
const e = [], r = [], o = [], a = [], u = (l) => o.push(l), s = (l) => a.push(l), c = (l, d) => {
|
|
2244
2320
|
if (!(!l || typeof l != "object"))
|
|
2245
2321
|
for (const n in l) {
|
|
@@ -2249,32 +2325,32 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2249
2325
|
continue;
|
|
2250
2326
|
}
|
|
2251
2327
|
if (i && typeof i == "object") {
|
|
2252
|
-
s(`Theme value "${
|
|
2328
|
+
s(`Theme value "${We(v)}" is not a plain object or string and will be ignored.`);
|
|
2253
2329
|
continue;
|
|
2254
2330
|
}
|
|
2255
2331
|
if (typeof i != "string") {
|
|
2256
|
-
s(`Theme value "${
|
|
2332
|
+
s(`Theme value "${We(v)}" is not a string and will be ignored.`);
|
|
2257
2333
|
continue;
|
|
2258
2334
|
}
|
|
2259
|
-
const f = v.includes("colorScheme") && v.includes("dark") ? r : e, w =
|
|
2335
|
+
const f = v.includes("colorScheme") && v.includes("dark") ? r : e, w = Xo(v);
|
|
2260
2336
|
if (f.push(`--vf-${w}: ${i}`), v.includes("colors")) {
|
|
2261
2337
|
const C = Ee(i);
|
|
2262
2338
|
if (!C) {
|
|
2263
2339
|
u(
|
|
2264
|
-
`Theme color "${
|
|
2340
|
+
`Theme color "${We(v)}" is not hex. Shade variables will not be generated for it.`
|
|
2265
2341
|
);
|
|
2266
2342
|
continue;
|
|
2267
2343
|
}
|
|
2268
2344
|
if (f.push(`--vf-${w}-rgb: ${Ne(C)}`), n !== "white")
|
|
2269
|
-
for (let
|
|
2270
|
-
const
|
|
2271
|
-
f.push(`--vf-${w}-${
|
|
2345
|
+
for (let S = 1; S < 10; ++S) {
|
|
2346
|
+
const H = ea(C, S);
|
|
2347
|
+
f.push(`--vf-${w}-${S}00: ${H}`), f.push(`--vf-${w}-${S}00-rgb: ${Ne(H)}`);
|
|
2272
2348
|
}
|
|
2273
2349
|
}
|
|
2274
2350
|
}
|
|
2275
2351
|
};
|
|
2276
2352
|
return c(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
|
|
2277
|
-
},
|
|
2353
|
+
}, aa = (t) => {
|
|
2278
2354
|
if (typeof document > "u")
|
|
2279
2355
|
return null;
|
|
2280
2356
|
const e = document.getElementById(t);
|
|
@@ -2282,11 +2358,11 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2282
2358
|
return e;
|
|
2283
2359
|
const r = document.createElement("style");
|
|
2284
2360
|
return r.id = t, document.head.appendChild(r), r;
|
|
2285
|
-
},
|
|
2361
|
+
}, ra = (t) => ({
|
|
2286
2362
|
selector: t.selector ?? ":root",
|
|
2287
2363
|
darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
|
|
2288
|
-
}),
|
|
2289
|
-
const { baseVars: a, darkVars: u, warnings: s, errors: c } =
|
|
2364
|
+
}), la = (t, e, r, o) => {
|
|
2365
|
+
const { baseVars: a, darkVars: u, warnings: s, errors: c } = oa(t), l = aa("vueforge-theme");
|
|
2290
2366
|
if (!l)
|
|
2291
2367
|
return;
|
|
2292
2368
|
if (c.length) {
|
|
@@ -2304,12 +2380,12 @@ const Rt = (t, e) => t.strategy ? t.strategy : Lt(e) ? "fixed" : "absolute", be
|
|
|
2304
2380
|
};
|
|
2305
2381
|
let fe = null;
|
|
2306
2382
|
const ot = (t) => {
|
|
2307
|
-
const e =
|
|
2383
|
+
const e = ta(t);
|
|
2308
2384
|
if (!e)
|
|
2309
2385
|
return;
|
|
2310
|
-
const r = He(e.preset, e.overrides), { selector: o, darkSelector: a } =
|
|
2311
|
-
fe = { ...e },
|
|
2312
|
-
},
|
|
2386
|
+
const r = He(e.preset, e.overrides), { selector: o, darkSelector: a } = ra(e);
|
|
2387
|
+
fe = { ...e }, la(r, o, a, e.strict);
|
|
2388
|
+
}, qa = (t) => {
|
|
2313
2389
|
if (!fe)
|
|
2314
2390
|
return;
|
|
2315
2391
|
const e = t.overrides === void 0 ? fe.overrides : He(fe.overrides ?? {}, t.overrides ?? {}), r = {
|
|
@@ -2319,7 +2395,7 @@ const ot = (t) => {
|
|
|
2319
2395
|
darkSelector: t.darkSelector ?? fe.darkSelector
|
|
2320
2396
|
};
|
|
2321
2397
|
ot(r);
|
|
2322
|
-
},
|
|
2398
|
+
}, Ua = () => fe ? { ...fe } : null, Za = {
|
|
2323
2399
|
install(t, e = {}) {
|
|
2324
2400
|
e.theme && ot(e.theme);
|
|
2325
2401
|
}
|
|
@@ -2386,7 +2462,7 @@ const ot = (t) => {
|
|
|
2386
2462
|
dividerColor: "#2e2e32"
|
|
2387
2463
|
}
|
|
2388
2464
|
}
|
|
2389
|
-
},
|
|
2465
|
+
}, na = {
|
|
2390
2466
|
fontSize: "var(--vf-typography-font-size)",
|
|
2391
2467
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
2392
2468
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -2528,11 +2604,11 @@ const ot = (t) => {
|
|
|
2528
2604
|
}
|
|
2529
2605
|
}
|
|
2530
2606
|
}
|
|
2531
|
-
},
|
|
2607
|
+
}, sa = {
|
|
2532
2608
|
padding: "12px",
|
|
2533
2609
|
borderColor: "var(--vf-border-color)",
|
|
2534
2610
|
borderRadius: "var(--vf-radii-md)"
|
|
2535
|
-
},
|
|
2611
|
+
}, ia = {
|
|
2536
2612
|
gap: "0.5rem",
|
|
2537
2613
|
fontSize: "var(--vf-typography-font-size)",
|
|
2538
2614
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -2553,7 +2629,7 @@ const ot = (t) => {
|
|
|
2553
2629
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
2554
2630
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
2555
2631
|
}
|
|
2556
|
-
},
|
|
2632
|
+
}, da = {
|
|
2557
2633
|
gap: "0.375rem",
|
|
2558
2634
|
textColor: "var(--vf-text-color)",
|
|
2559
2635
|
labelFontSize: "0.875rem",
|
|
@@ -2573,7 +2649,7 @@ const ot = (t) => {
|
|
|
2573
2649
|
labelFontSize: "0.9375rem",
|
|
2574
2650
|
hintFontSize: "0.875rem"
|
|
2575
2651
|
}
|
|
2576
|
-
},
|
|
2652
|
+
}, ca = {
|
|
2577
2653
|
gap: "0.5rem",
|
|
2578
2654
|
fontSize: "var(--vf-typography-font-size)",
|
|
2579
2655
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -2596,10 +2672,10 @@ const ot = (t) => {
|
|
|
2596
2672
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
2597
2673
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
2598
2674
|
}
|
|
2599
|
-
},
|
|
2675
|
+
}, ua = {
|
|
2600
2676
|
hoverColor: "var(--vf-blue)",
|
|
2601
2677
|
activeColor: "var(--vf-blue)"
|
|
2602
|
-
},
|
|
2678
|
+
}, va = {
|
|
2603
2679
|
iconGap: "6px",
|
|
2604
2680
|
submenuOffset: "12px",
|
|
2605
2681
|
separatorThickness: "1px",
|
|
@@ -2619,7 +2695,7 @@ const ot = (t) => {
|
|
|
2619
2695
|
marginBottom: "0.5rem",
|
|
2620
2696
|
marginLeft: "0.5rem"
|
|
2621
2697
|
}
|
|
2622
|
-
},
|
|
2698
|
+
}, fa = {
|
|
2623
2699
|
width: "90vw",
|
|
2624
2700
|
maxWidth: "520px",
|
|
2625
2701
|
maxHeight: "80vh",
|
|
@@ -2646,9 +2722,9 @@ const ot = (t) => {
|
|
|
2646
2722
|
closeColor: "var(--vf-text-color)",
|
|
2647
2723
|
closeFontSize: "1.25rem",
|
|
2648
2724
|
closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
|
|
2649
|
-
},
|
|
2725
|
+
}, pa = {
|
|
2650
2726
|
backgroundColor: "var(--vf-bg-color)"
|
|
2651
|
-
},
|
|
2727
|
+
}, ba = {
|
|
2652
2728
|
minWidth: "12rem",
|
|
2653
2729
|
fontSize: "var(--vf-typography-font-size)",
|
|
2654
2730
|
controlGap: "0.75rem",
|
|
@@ -2681,7 +2757,7 @@ const ot = (t) => {
|
|
|
2681
2757
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
2682
2758
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
2683
2759
|
}
|
|
2684
|
-
},
|
|
2760
|
+
}, ma = {
|
|
2685
2761
|
minWidth: "12rem",
|
|
2686
2762
|
fontSize: "var(--vf-typography-font-size)",
|
|
2687
2763
|
controlGap: "0.5rem",
|
|
@@ -2720,7 +2796,7 @@ const ot = (t) => {
|
|
|
2720
2796
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
2721
2797
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
2722
2798
|
}
|
|
2723
|
-
},
|
|
2799
|
+
}, ga = {
|
|
2724
2800
|
minWidth: "12rem",
|
|
2725
2801
|
fontSize: "var(--vf-typography-font-size)",
|
|
2726
2802
|
controlGap: "0.75rem",
|
|
@@ -2770,7 +2846,7 @@ const ot = (t) => {
|
|
|
2770
2846
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
2771
2847
|
daySize: "2.2rem"
|
|
2772
2848
|
}
|
|
2773
|
-
},
|
|
2849
|
+
}, ha = {
|
|
2774
2850
|
size: "1rem",
|
|
2775
2851
|
gap: "0.5rem",
|
|
2776
2852
|
borderRadius: "var(--vf-radii-sm)",
|
|
@@ -2782,7 +2858,7 @@ const ot = (t) => {
|
|
|
2782
2858
|
checkColor: "#ffffff",
|
|
2783
2859
|
textColor: "var(--vf-text-color)",
|
|
2784
2860
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
2785
|
-
},
|
|
2861
|
+
}, ya = {
|
|
2786
2862
|
size: "1rem",
|
|
2787
2863
|
dotSize: "0.45rem",
|
|
2788
2864
|
gap: "0.5rem",
|
|
@@ -2796,7 +2872,7 @@ const ot = (t) => {
|
|
|
2796
2872
|
dotColor: "#ffffff",
|
|
2797
2873
|
textColor: "var(--vf-text-color)",
|
|
2798
2874
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
2799
|
-
},
|
|
2875
|
+
}, _a = {
|
|
2800
2876
|
width: "2.25rem",
|
|
2801
2877
|
height: "1.25rem",
|
|
2802
2878
|
thumbSize: "1rem",
|
|
@@ -2808,7 +2884,7 @@ const ot = (t) => {
|
|
|
2808
2884
|
thumbColor: "#ffffff",
|
|
2809
2885
|
textColor: "var(--vf-text-color)",
|
|
2810
2886
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
2811
|
-
},
|
|
2887
|
+
}, ka = {
|
|
2812
2888
|
gap: "0.75rem",
|
|
2813
2889
|
listGap: "0.5rem",
|
|
2814
2890
|
listBorderWidth: "1px",
|
|
@@ -2829,7 +2905,7 @@ const ot = (t) => {
|
|
|
2829
2905
|
panelBackgroundColor: "transparent",
|
|
2830
2906
|
panelTextColor: "var(--vf-text-color)",
|
|
2831
2907
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
2832
|
-
},
|
|
2908
|
+
}, Ca = {
|
|
2833
2909
|
padding: "0.35rem 0.6rem",
|
|
2834
2910
|
borderRadius: "8px",
|
|
2835
2911
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
@@ -2840,7 +2916,7 @@ const ot = (t) => {
|
|
|
2840
2916
|
zIndex: "120",
|
|
2841
2917
|
maxWidth: "240px",
|
|
2842
2918
|
arrowSize: "8px"
|
|
2843
|
-
},
|
|
2919
|
+
}, wa = {
|
|
2844
2920
|
gap: "0.75rem",
|
|
2845
2921
|
padding: "0.75rem 0.9rem",
|
|
2846
2922
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -2879,56 +2955,96 @@ const ot = (t) => {
|
|
|
2879
2955
|
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
2880
2956
|
textColor: "var(--vf-text-color)"
|
|
2881
2957
|
}
|
|
2882
|
-
},
|
|
2958
|
+
}, $a = {
|
|
2959
|
+
gap: "0.75rem",
|
|
2960
|
+
padding: "0.75rem 0.9rem",
|
|
2961
|
+
borderRadius: "var(--vf-radii-md)",
|
|
2962
|
+
borderColor: "var(--vf-border-color)",
|
|
2963
|
+
backgroundColor: "var(--vf-bg-color)",
|
|
2964
|
+
textColor: "var(--vf-text-color)",
|
|
2965
|
+
iconColor: "currentColor",
|
|
2966
|
+
fontSize: "0.95rem",
|
|
2967
|
+
lineHeight: "1.4",
|
|
2968
|
+
bodyGap: "0.2rem",
|
|
2969
|
+
titleFontSize: "0.95rem",
|
|
2970
|
+
titleFontWeight: "600",
|
|
2971
|
+
actionsGap: "0.5rem",
|
|
2972
|
+
closeSize: "1.5rem",
|
|
2973
|
+
closeRadius: "var(--vf-radii-sm)",
|
|
2974
|
+
closeFontSize: "1rem",
|
|
2975
|
+
closeHoverBackgroundColor: "rgba(var(--vf-gray-600-rgb), 0.12)",
|
|
2976
|
+
info: {
|
|
2977
|
+
backgroundColor: "rgba(var(--vf-blue-600-rgb), 0.1)",
|
|
2978
|
+
borderColor: "rgba(var(--vf-blue-600-rgb), 0.4)",
|
|
2979
|
+
textColor: "var(--vf-text-color)"
|
|
2980
|
+
},
|
|
2981
|
+
success: {
|
|
2982
|
+
backgroundColor: "rgba(var(--vf-green-600-rgb), 0.12)",
|
|
2983
|
+
borderColor: "rgba(var(--vf-green-600-rgb), 0.45)",
|
|
2984
|
+
textColor: "var(--vf-text-color)"
|
|
2985
|
+
},
|
|
2986
|
+
warn: {
|
|
2987
|
+
backgroundColor: "rgba(var(--vf-yellow-600-rgb), 0.16)",
|
|
2988
|
+
borderColor: "rgba(var(--vf-yellow-600-rgb), 0.5)",
|
|
2989
|
+
textColor: "var(--vf-text-color)"
|
|
2990
|
+
},
|
|
2991
|
+
danger: {
|
|
2992
|
+
backgroundColor: "rgba(var(--vf-red-600-rgb), 0.12)",
|
|
2993
|
+
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
2994
|
+
textColor: "var(--vf-text-color)"
|
|
2995
|
+
}
|
|
2996
|
+
}, Ja = {
|
|
2883
2997
|
...Ye,
|
|
2884
2998
|
components: {
|
|
2885
2999
|
base: Ye,
|
|
2886
|
-
button:
|
|
2887
|
-
card:
|
|
2888
|
-
input:
|
|
2889
|
-
formField:
|
|
2890
|
-
textarea:
|
|
2891
|
-
link:
|
|
2892
|
-
menu:
|
|
2893
|
-
modal:
|
|
2894
|
-
popover:
|
|
2895
|
-
select:
|
|
2896
|
-
autocomplete:
|
|
2897
|
-
datepicker:
|
|
2898
|
-
checkbox:
|
|
2899
|
-
radio:
|
|
2900
|
-
switch:
|
|
2901
|
-
tabs:
|
|
2902
|
-
tooltip:
|
|
2903
|
-
toast:
|
|
3000
|
+
button: na,
|
|
3001
|
+
card: sa,
|
|
3002
|
+
input: ia,
|
|
3003
|
+
formField: da,
|
|
3004
|
+
textarea: ca,
|
|
3005
|
+
link: ua,
|
|
3006
|
+
menu: va,
|
|
3007
|
+
modal: fa,
|
|
3008
|
+
popover: pa,
|
|
3009
|
+
select: ba,
|
|
3010
|
+
autocomplete: ma,
|
|
3011
|
+
datepicker: ga,
|
|
3012
|
+
checkbox: ha,
|
|
3013
|
+
radio: ya,
|
|
3014
|
+
switch: _a,
|
|
3015
|
+
tabs: ka,
|
|
3016
|
+
tooltip: Ca,
|
|
3017
|
+
toast: wa,
|
|
3018
|
+
alert: $a
|
|
2904
3019
|
}
|
|
2905
3020
|
};
|
|
2906
3021
|
export {
|
|
2907
|
-
|
|
2908
|
-
|
|
3022
|
+
Na as Alert,
|
|
3023
|
+
Da as Autocomplete,
|
|
3024
|
+
Sa as Button,
|
|
2909
3025
|
ht as Card,
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
3026
|
+
Pa as Checkbox,
|
|
3027
|
+
Ia as DatePicker,
|
|
3028
|
+
Ja as DefaultTheme,
|
|
3029
|
+
Ta as FormField,
|
|
3030
|
+
Va as Input,
|
|
2915
3031
|
Ue as Link,
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
3032
|
+
Fa as Menu,
|
|
3033
|
+
ja as Modal,
|
|
3034
|
+
Ga as Popover,
|
|
3035
|
+
Oa as RadioButton,
|
|
3036
|
+
Wa as RadioGroup,
|
|
3037
|
+
Ra as Select,
|
|
3038
|
+
Ya as Switch,
|
|
3039
|
+
Ea as Tab,
|
|
3040
|
+
Ha as TabPanel,
|
|
3041
|
+
Ma as Tabs,
|
|
3042
|
+
La as Textarea,
|
|
3043
|
+
Aa as Toast,
|
|
3044
|
+
Ka as ToastContainer,
|
|
3045
|
+
Xa as Tooltip,
|
|
3046
|
+
Za as VueForge,
|
|
3047
|
+
Ua as getTheme,
|
|
2932
3048
|
ot as setTheme,
|
|
2933
|
-
|
|
3049
|
+
qa as updateTheme
|
|
2934
3050
|
};
|