@codemonster-ru/vueforge 0.23.0 → 0.25.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 +74 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.ts.mjs +995 -786
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/progress.test.d.ts +1 -0
- package/dist/package/components/badge.vue.d.ts +33 -0
- package/dist/package/components/progress.vue.d.ts +36 -0
- package/dist/package/config/theme-core.d.ts +79 -0
- package/dist/package/themes/default/components/badge.d.ts +67 -0
- package/dist/package/themes/default/components/progress.d.ts +38 -0
- package/dist/package/themes/default/index.d.ts +103 -0
- package/package.json +1 -1
package/dist/index.ts.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Y, ref as
|
|
1
|
+
import { defineComponent as Y, ref as O, computed as y, watch as ee, resolveComponent as Ze, openBlock as m, createElementBlock as _, normalizeClass as L, renderSlot as S, Fragment as ae, createTextVNode as j, toDisplayString as R, createBlock as ne, withCtx as _e, createCommentVNode as P, createElementVNode as z, renderList as ve, withKeys as Z, withModifiers as U, unref as xe, createVNode as Je, useSlots as He, nextTick as ke, onMounted as Fe, onBeforeUnmount as we, Teleport as $e, withDirectives as fe, vShow as pe, provide as Ke, inject as Oe, reactive as st, createSlots as it, normalizeStyle as Se } from "vue";
|
|
2
2
|
import { useRoute as dt, useRouter as ct } from "vue-router";
|
|
3
3
|
import { CmIcon as Be } from "@codemonster-ru/vueiconify";
|
|
4
4
|
const ut = ["href", "aria-disabled", "tabindex"], Qe = /* @__PURE__ */ Y({
|
|
@@ -15,12 +15,12 @@ const ut = ["href", "aria-disabled", "tabindex"], Qe = /* @__PURE__ */ Y({
|
|
|
15
15
|
},
|
|
16
16
|
emits: ["click", "active", "update:active", "onActive"],
|
|
17
17
|
setup(t, { emit: e }) {
|
|
18
|
-
const r = e, o = t, a = dt(), d = ct(), i =
|
|
18
|
+
const r = e, o = t, a = dt(), d = ct(), i = O(null), c = y(() => o.href ?? o.url), l = y(() => o.as ? o.as === "router-link" && !o.to ? "a" : o.as : o.type === "router-link" || o.type === "a" ? o.type === "router-link" && !o.to ? "a" : o.type : o.to ? "router-link" : "a"), u = y(() => o.to), s = y(() => o.to ? d.resolve(o.to) : null), n = y(() => {
|
|
19
19
|
if (l.value !== "router-link")
|
|
20
20
|
return !1;
|
|
21
21
|
const v = s.value;
|
|
22
22
|
return v ? v.name ? a.matched.some(({ name: w }) => w === v.name) : v.fullPath ? a.fullPath === v.fullPath : a.path === v.path : !1;
|
|
23
|
-
}), f = y(() => o.active === void 0 ? n.value : o.active),
|
|
23
|
+
}), f = y(() => o.active === void 0 ? n.value : o.active), p = (v) => {
|
|
24
24
|
if (!o.disabled) {
|
|
25
25
|
r("click", v);
|
|
26
26
|
return;
|
|
@@ -30,33 +30,33 @@ const ut = ["href", "aria-disabled", "tabindex"], Qe = /* @__PURE__ */ Y({
|
|
|
30
30
|
return ee(n, (v) => {
|
|
31
31
|
v && (r("active"), r("onActive")), r("update:active", v);
|
|
32
32
|
}), (v, w) => {
|
|
33
|
-
const C =
|
|
34
|
-
return l.value === "a" ? (
|
|
33
|
+
const C = Ze("router-link");
|
|
34
|
+
return l.value === "a" ? (m(), _("a", {
|
|
35
35
|
key: 0,
|
|
36
36
|
href: c.value,
|
|
37
|
-
class:
|
|
37
|
+
class: L(["vf-link", { "vf-link_active": f.value, "vf-link_disabled": v.disabled }]),
|
|
38
38
|
"aria-disabled": v.disabled,
|
|
39
39
|
tabindex: v.disabled ? -1 : void 0,
|
|
40
|
-
onClick:
|
|
40
|
+
onClick: p
|
|
41
41
|
}, [
|
|
42
|
-
v.$slots.default ?
|
|
43
|
-
|
|
42
|
+
v.$slots.default ? S(v.$slots, "default", { key: 0 }) : (m(), _(ae, { key: 1 }, [
|
|
43
|
+
j(R(v.label), 1)
|
|
44
44
|
], 64))
|
|
45
|
-
], 10, ut)) : (
|
|
45
|
+
], 10, ut)) : (m(), ne(C, {
|
|
46
46
|
key: 1,
|
|
47
47
|
ref_key: "link",
|
|
48
48
|
ref: i,
|
|
49
49
|
to: u.value,
|
|
50
|
-
class:
|
|
50
|
+
class: L(["vf-link", { "vf-link_active": f.value }]),
|
|
51
51
|
"aria-disabled": v.disabled,
|
|
52
52
|
tabindex: v.disabled ? -1 : void 0,
|
|
53
53
|
"active-class": "vf-link_partially-active",
|
|
54
54
|
"exact-active-class": "vf-link_active",
|
|
55
|
-
onClick:
|
|
55
|
+
onClick: p
|
|
56
56
|
}, {
|
|
57
57
|
default: _e(() => [
|
|
58
|
-
v.$slots.default ?
|
|
59
|
-
|
|
58
|
+
v.$slots.default ? S(v.$slots, "default", { key: 0 }) : (m(), _(ae, { key: 1 }, [
|
|
59
|
+
j(R(v.label), 1)
|
|
60
60
|
], 64))
|
|
61
61
|
]),
|
|
62
62
|
_: 3
|
|
@@ -82,18 +82,18 @@ const ut = ["href", "aria-disabled", "tabindex"], Qe = /* @__PURE__ */ Y({
|
|
|
82
82
|
class: "vf-card__footer"
|
|
83
83
|
};
|
|
84
84
|
function yt(t, e) {
|
|
85
|
-
return
|
|
86
|
-
t.$slots.default ? (
|
|
87
|
-
|
|
85
|
+
return m(), _("div", pt, [
|
|
86
|
+
t.$slots.default ? (m(), _("div", bt, [
|
|
87
|
+
S(t.$slots, "default")
|
|
88
88
|
])) : P("", !0),
|
|
89
|
-
t.$slots.header ? (
|
|
90
|
-
|
|
89
|
+
t.$slots.header ? (m(), _("div", gt, [
|
|
90
|
+
S(t.$slots, "header")
|
|
91
91
|
])) : P("", !0),
|
|
92
|
-
t.$slots.body ? (
|
|
93
|
-
|
|
92
|
+
t.$slots.body ? (m(), _("div", mt, [
|
|
93
|
+
S(t.$slots, "body")
|
|
94
94
|
])) : P("", !0),
|
|
95
|
-
t.$slots.footer ? (
|
|
96
|
-
|
|
95
|
+
t.$slots.footer ? (m(), _("div", ht, [
|
|
96
|
+
S(t.$slots, "footer")
|
|
97
97
|
])) : P("", !0)
|
|
98
98
|
]);
|
|
99
99
|
}
|
|
@@ -104,7 +104,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
104
104
|
key: 1,
|
|
105
105
|
class: "vf-menu__separator",
|
|
106
106
|
role: "separator"
|
|
107
|
-
}, wt = ["aria-expanded", "onClick", "onKeydown"],
|
|
107
|
+
}, wt = ["aria-expanded", "onClick", "onKeydown"], yr = /* @__PURE__ */ Y({
|
|
108
108
|
name: "VfMenu",
|
|
109
109
|
__name: "menu",
|
|
110
110
|
props: {
|
|
@@ -113,7 +113,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
113
113
|
},
|
|
114
114
|
emits: ["active", "onActive"],
|
|
115
115
|
setup(t, { emit: e }) {
|
|
116
|
-
const r = e, o = t, a =
|
|
116
|
+
const r = e, o = t, a = O([]), d = (s, n) => `${s.label ?? s.to ?? s.href ?? s.url ?? "item"}_${n.toString()}`, i = (s) => s.to ? "router-link" : "a", c = (s) => s.map((n) => ({
|
|
117
117
|
...n,
|
|
118
118
|
items: n.items ? c(n.items) : void 0
|
|
119
119
|
})), l = (s) => {
|
|
@@ -123,8 +123,8 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
123
123
|
}, u = (s) => {
|
|
124
124
|
var n;
|
|
125
125
|
for (const f in a.value) {
|
|
126
|
-
const
|
|
127
|
-
Object.prototype.hasOwnProperty.call(
|
|
126
|
+
const p = a.value[f];
|
|
127
|
+
Object.prototype.hasOwnProperty.call(p, "items") && ((n = p.items) != null && n.some((v) => v === s) ? (p.active = !0, p.subMenuVisible = !0) : (p.active = !1, p.subMenuVisible = !1));
|
|
128
128
|
}
|
|
129
129
|
r("active", s), r("onActive", s);
|
|
130
130
|
};
|
|
@@ -135,65 +135,65 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
135
135
|
},
|
|
136
136
|
{ deep: !0, immediate: !0 }
|
|
137
137
|
), (s, n) => {
|
|
138
|
-
const f =
|
|
139
|
-
return
|
|
140
|
-
class:
|
|
138
|
+
const f = Ze("VfMenu");
|
|
139
|
+
return m(), _("div", {
|
|
140
|
+
class: L(["vf-menu", `vf-menu_${s.orientation}`])
|
|
141
141
|
}, [
|
|
142
142
|
z("ul", Ct, [
|
|
143
|
-
(
|
|
144
|
-
key: d(
|
|
143
|
+
(m(!0), _(ae, null, ve(a.value, (p, v) => (m(), _("li", {
|
|
144
|
+
key: d(p, v),
|
|
145
145
|
class: "vf-menu__item",
|
|
146
146
|
role: "none"
|
|
147
147
|
}, [
|
|
148
|
-
s.$slots[d(
|
|
148
|
+
s.$slots[d(p, v)] ? S(s.$slots, d(p, v), {
|
|
149
149
|
key: 0,
|
|
150
|
-
item: { ...
|
|
151
|
-
}) :
|
|
150
|
+
item: { ...p, class: "vf-menu__link" }
|
|
151
|
+
}) : p.separator ? (m(), _("hr", kt)) : p.items && p.items.length ? (m(), _(ae, { key: 2 }, [
|
|
152
152
|
z("div", {
|
|
153
|
-
class:
|
|
153
|
+
class: L(["vf-menu__parent", { "vf-menu__parent_active": p.active }]),
|
|
154
154
|
role: "menuitem",
|
|
155
155
|
tabindex: "0",
|
|
156
|
-
"aria-expanded":
|
|
157
|
-
onClick: (w) => l(
|
|
156
|
+
"aria-expanded": p.subMenuVisible ? "true" : "false",
|
|
157
|
+
onClick: (w) => l(p),
|
|
158
158
|
onKeydown: [
|
|
159
|
-
Z(
|
|
160
|
-
Z(
|
|
159
|
+
Z(U((w) => l(p), ["prevent"]), ["enter"]),
|
|
160
|
+
Z(U((w) => l(p), ["prevent"]), ["space"])
|
|
161
161
|
]
|
|
162
162
|
}, [
|
|
163
|
-
|
|
163
|
+
p.icon ? (m(), ne(xe(Be), {
|
|
164
164
|
key: 0,
|
|
165
|
-
icon:
|
|
165
|
+
icon: p.icon,
|
|
166
166
|
class: "vf-menu__icon"
|
|
167
167
|
}, null, 8, ["icon"])) : P("", !0),
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
j(" " + R(p.label) + " ", 1),
|
|
169
|
+
Je(xe(Be), { icon: "chevronDown" })
|
|
170
170
|
], 42, wt),
|
|
171
|
-
|
|
171
|
+
p.items ? (m(), ne(f, {
|
|
172
172
|
key: 0,
|
|
173
|
-
items:
|
|
174
|
-
class:
|
|
173
|
+
items: p.items,
|
|
174
|
+
class: L(["vf-menu__submenu", { "vf-menu__submenu_visible": p.subMenuVisible }]),
|
|
175
175
|
onOnActive: u
|
|
176
176
|
}, null, 8, ["items", "class"])) : P("", !0)
|
|
177
|
-
], 64)) : (
|
|
177
|
+
], 64)) : (m(), ne(Qe, {
|
|
178
178
|
key: 3,
|
|
179
|
-
to:
|
|
180
|
-
href:
|
|
181
|
-
as: i(
|
|
179
|
+
to: p.to,
|
|
180
|
+
href: p.href ?? p.url,
|
|
181
|
+
as: i(p),
|
|
182
182
|
class: "vf-menu__link",
|
|
183
|
-
active:
|
|
184
|
-
disabled:
|
|
183
|
+
active: p.active,
|
|
184
|
+
disabled: p.disabled,
|
|
185
185
|
role: "menuitem",
|
|
186
|
-
"aria-disabled":
|
|
187
|
-
onClick: (w) => l(
|
|
188
|
-
onActive: (w) => u(
|
|
186
|
+
"aria-disabled": p.disabled ? "true" : "false",
|
|
187
|
+
onClick: (w) => l(p),
|
|
188
|
+
onActive: (w) => u(p)
|
|
189
189
|
}, {
|
|
190
190
|
default: _e(() => [
|
|
191
|
-
|
|
191
|
+
p.icon ? (m(), ne(xe(Be), {
|
|
192
192
|
key: 0,
|
|
193
|
-
icon:
|
|
193
|
+
icon: p.icon,
|
|
194
194
|
class: "vf-menu__icon"
|
|
195
195
|
}, null, 8, ["icon"])) : P("", !0),
|
|
196
|
-
|
|
196
|
+
j(" " + R(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 _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
202
202
|
], 2);
|
|
203
203
|
};
|
|
204
204
|
}
|
|
205
|
-
}), $t = ["type", "disabled"],
|
|
205
|
+
}), $t = ["type", "disabled"], _r = /* @__PURE__ */ Y({
|
|
206
206
|
__name: "button",
|
|
207
207
|
props: {
|
|
208
208
|
to: { default: void 0 },
|
|
@@ -225,54 +225,54 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
225
225
|
let s = ["vf-button", `vf-button_${e.severity}`];
|
|
226
226
|
return ["top", "bottom"].includes(e.iconPos) && s.push("vf-button_vertical"), e.variant === "text" && s.push("vf-button_text"), e.variant === "outlined" && s.push("vf-button_outlined"), ["small", "large"].indexOf(e.size) > -1 && s.push(`vf-button_${e.size}`), (e.loading || e.disabled) && s.push("vf-button_disabled"), e.rounded && s.push("vf-button_rounded"), s;
|
|
227
227
|
}), l = y(() => ["vf-button__icon", `vf-button__icon_${e.iconPos}`]), u = y(() => ["vf-button__label"]);
|
|
228
|
-
return (s, n) => a.value ? (
|
|
228
|
+
return (s, n) => a.value ? (m(), _("button", {
|
|
229
229
|
key: 0,
|
|
230
230
|
type: d.value,
|
|
231
|
-
class:
|
|
231
|
+
class: L(c.value),
|
|
232
232
|
disabled: e.loading || e.disabled
|
|
233
233
|
}, [
|
|
234
|
-
e.icon && !e.loading ? (
|
|
234
|
+
e.icon && !e.loading ? (m(), ne(xe(Be), {
|
|
235
235
|
key: 0,
|
|
236
236
|
icon: e.icon,
|
|
237
|
-
class:
|
|
237
|
+
class: L(l.value)
|
|
238
238
|
}, null, 8, ["icon", "class"])) : P("", !0),
|
|
239
|
-
e.loading ? (
|
|
239
|
+
e.loading ? (m(), ne(xe(Be), {
|
|
240
240
|
key: 1,
|
|
241
241
|
icon: "circleNotch",
|
|
242
|
-
class:
|
|
242
|
+
class: L(l.value),
|
|
243
243
|
spin: ""
|
|
244
244
|
}, null, 8, ["class"])) : P("", !0),
|
|
245
|
-
s.$slots.default ? (
|
|
245
|
+
s.$slots.default ? (m(), _("span", {
|
|
246
246
|
key: 2,
|
|
247
|
-
class:
|
|
247
|
+
class: L(u.value)
|
|
248
248
|
}, [
|
|
249
|
-
|
|
250
|
-
], 2)) : s.label ? (
|
|
249
|
+
S(s.$slots, "default")
|
|
250
|
+
], 2)) : s.label ? (m(), _("span", {
|
|
251
251
|
key: 3,
|
|
252
|
-
class:
|
|
252
|
+
class: L(u.value)
|
|
253
253
|
}, R(s.label), 3)) : P("", !0)
|
|
254
|
-
], 10, $t)) : (
|
|
254
|
+
], 10, $t)) : (m(), ne(Qe, {
|
|
255
255
|
key: 1,
|
|
256
256
|
to: e.to,
|
|
257
257
|
href: e.href ?? e.url,
|
|
258
258
|
as: i.value,
|
|
259
|
-
class:
|
|
259
|
+
class: L(c.value),
|
|
260
260
|
disabled: e.loading || e.disabled
|
|
261
261
|
}, {
|
|
262
262
|
default: _e(() => [
|
|
263
|
-
e.icon ? (
|
|
263
|
+
e.icon ? (m(), ne(xe(Be), {
|
|
264
264
|
key: 0,
|
|
265
265
|
icon: e.icon,
|
|
266
|
-
class:
|
|
266
|
+
class: L(l.value)
|
|
267
267
|
}, null, 8, ["icon", "class"])) : P("", !0),
|
|
268
|
-
s.$slots.default ? (
|
|
268
|
+
s.$slots.default ? (m(), _("span", {
|
|
269
269
|
key: 1,
|
|
270
|
-
class:
|
|
270
|
+
class: L(u.value)
|
|
271
271
|
}, [
|
|
272
|
-
|
|
273
|
-
], 2)) : s.label ? (
|
|
272
|
+
S(s.$slots, "default")
|
|
273
|
+
], 2)) : s.label ? (m(), _("span", {
|
|
274
274
|
key: 2,
|
|
275
|
-
class:
|
|
275
|
+
class: L(u.value)
|
|
276
276
|
}, R(s.label), 3)) : P("", !0)
|
|
277
277
|
]),
|
|
278
278
|
_: 3
|
|
@@ -284,7 +284,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
284
284
|
}, Bt = ["type", "value", "placeholder", "disabled", "readonly"], zt = {
|
|
285
285
|
key: 1,
|
|
286
286
|
class: "vf-input__suffix"
|
|
287
|
-
},
|
|
287
|
+
}, Cr = /* @__PURE__ */ Y({
|
|
288
288
|
__name: "input",
|
|
289
289
|
props: {
|
|
290
290
|
modelValue: { default: "" },
|
|
@@ -304,11 +304,11 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
304
304
|
const s = u.target;
|
|
305
305
|
r("update:modelValue", s.value), r("input", u);
|
|
306
306
|
}, i = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
|
|
307
|
-
return (u, s) => (
|
|
308
|
-
class:
|
|
307
|
+
return (u, s) => (m(), _("div", {
|
|
308
|
+
class: L(a.value)
|
|
309
309
|
}, [
|
|
310
|
-
u.$slots.prefix ? (
|
|
311
|
-
|
|
310
|
+
u.$slots.prefix ? (m(), _("span", xt, [
|
|
311
|
+
S(u.$slots, "prefix")
|
|
312
312
|
])) : P("", !0),
|
|
313
313
|
z("input", {
|
|
314
314
|
class: "vf-input__control",
|
|
@@ -322,16 +322,16 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
322
322
|
onFocus: c,
|
|
323
323
|
onBlur: l
|
|
324
324
|
}, null, 40, Bt),
|
|
325
|
-
u.$slots.suffix ? (
|
|
326
|
-
|
|
325
|
+
u.$slots.suffix ? (m(), _("span", zt, [
|
|
326
|
+
S(u.$slots, "suffix")
|
|
327
327
|
])) : P("", !0)
|
|
328
328
|
], 2));
|
|
329
329
|
}
|
|
330
|
-
}),
|
|
330
|
+
}), St = ["for"], Ft = {
|
|
331
331
|
key: 0,
|
|
332
332
|
class: "vf-form-field__required",
|
|
333
333
|
"aria-hidden": "true"
|
|
334
|
-
}, Vt = { class: "vf-form-field__control" },
|
|
334
|
+
}, Vt = { class: "vf-form-field__control" }, Tt = ["id"], Lt = ["id"], kr = /* @__PURE__ */ Y({
|
|
335
335
|
__name: "form-field",
|
|
336
336
|
props: {
|
|
337
337
|
id: { default: void 0 },
|
|
@@ -343,56 +343,56 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
343
343
|
size: { default: "normal" }
|
|
344
344
|
},
|
|
345
345
|
setup(t) {
|
|
346
|
-
const e = t, r =
|
|
346
|
+
const e = t, r = He(), o = `vf-form-field-${Math.random().toString(36).slice(2, 10)}`, a = y(() => e.id || o), d = y(() => `${a.value}-hint`), i = y(() => `${a.value}-error`), c = y(() => !!e.label || !!r.label), l = y(() => !!e.hint || !!r.hint), u = y(() => !!e.error || !!r.error), s = y(() => {
|
|
347
347
|
const f = [];
|
|
348
348
|
return l.value && f.push(d.value), u.value && f.push(i.value), f.length ? f.join(" ") : void 0;
|
|
349
349
|
}), n = y(() => {
|
|
350
350
|
const f = ["vf-form-field"];
|
|
351
351
|
return e.size !== "normal" && f.push(`vf-form-field_${e.size}`), e.disabled && f.push("vf-form-field_disabled"), u.value && f.push("vf-form-field_invalid"), f;
|
|
352
352
|
});
|
|
353
|
-
return (f,
|
|
354
|
-
class:
|
|
353
|
+
return (f, p) => (m(), _("div", {
|
|
354
|
+
class: L(n.value)
|
|
355
355
|
}, [
|
|
356
|
-
c.value ? (
|
|
356
|
+
c.value ? (m(), _("label", {
|
|
357
357
|
key: 0,
|
|
358
358
|
class: "vf-form-field__label",
|
|
359
359
|
for: a.value
|
|
360
360
|
}, [
|
|
361
|
-
|
|
362
|
-
|
|
361
|
+
S(f.$slots, "label", {}, () => [
|
|
362
|
+
j(R(f.label), 1)
|
|
363
363
|
]),
|
|
364
|
-
f.required ? (
|
|
365
|
-
], 8,
|
|
364
|
+
f.required ? (m(), _("span", Ft, "*")) : P("", !0)
|
|
365
|
+
], 8, St)) : P("", !0),
|
|
366
366
|
z("div", Vt, [
|
|
367
|
-
|
|
367
|
+
S(f.$slots, "default", {
|
|
368
368
|
id: a.value,
|
|
369
369
|
describedBy: s.value,
|
|
370
370
|
invalid: u.value,
|
|
371
371
|
required: f.required
|
|
372
372
|
})
|
|
373
373
|
]),
|
|
374
|
-
l.value ? (
|
|
374
|
+
l.value ? (m(), _("p", {
|
|
375
375
|
key: 1,
|
|
376
376
|
id: d.value,
|
|
377
377
|
class: "vf-form-field__hint"
|
|
378
378
|
}, [
|
|
379
|
-
|
|
380
|
-
|
|
379
|
+
S(f.$slots, "hint", {}, () => [
|
|
380
|
+
j(R(f.hint), 1)
|
|
381
381
|
])
|
|
382
|
-
], 8,
|
|
383
|
-
u.value ? (
|
|
382
|
+
], 8, Tt)) : P("", !0),
|
|
383
|
+
u.value ? (m(), _("p", {
|
|
384
384
|
key: 2,
|
|
385
385
|
id: i.value,
|
|
386
386
|
class: "vf-form-field__error",
|
|
387
387
|
role: "alert"
|
|
388
388
|
}, [
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
S(f.$slots, "error", {}, () => [
|
|
390
|
+
j(R(f.error), 1)
|
|
391
391
|
])
|
|
392
|
-
], 8,
|
|
392
|
+
], 8, Lt)) : P("", !0)
|
|
393
393
|
], 2));
|
|
394
394
|
}
|
|
395
|
-
}), Rt = ["value", "placeholder", "disabled", "readonly", "rows"],
|
|
395
|
+
}), Rt = ["value", "placeholder", "disabled", "readonly", "rows"], wr = /* @__PURE__ */ Y({
|
|
396
396
|
__name: "textarea",
|
|
397
397
|
props: {
|
|
398
398
|
modelValue: { default: "" },
|
|
@@ -412,8 +412,8 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
412
412
|
const s = u.target;
|
|
413
413
|
r("update:modelValue", s.value), r("input", u);
|
|
414
414
|
}, i = (u) => r("change", u), c = (u) => r("focus", u), l = (u) => r("blur", u);
|
|
415
|
-
return (u, s) => (
|
|
416
|
-
class:
|
|
415
|
+
return (u, s) => (m(), _("div", {
|
|
416
|
+
class: L(a.value)
|
|
417
417
|
}, [
|
|
418
418
|
z("textarea", {
|
|
419
419
|
class: "vf-textarea__control",
|
|
@@ -429,7 +429,7 @@ const _t = /* @__PURE__ */ vt(ft, [["render", yt]]), Ct = {
|
|
|
429
429
|
}, null, 40, Rt)
|
|
430
430
|
], 2));
|
|
431
431
|
}
|
|
432
|
-
}),
|
|
432
|
+
}), je = [
|
|
433
433
|
"top",
|
|
434
434
|
"top-start",
|
|
435
435
|
"top-end",
|
|
@@ -475,11 +475,11 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
475
475
|
}, Ce = (t, e) => {
|
|
476
476
|
var r;
|
|
477
477
|
return (r = t.middleware) == null ? void 0 : r.find((o) => o.name === e);
|
|
478
|
-
}, et = (t, e) => !!Ce(t, e),
|
|
478
|
+
}, et = (t, e) => !!Ce(t, e), Mt = (t) => {
|
|
479
479
|
const e = be(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
|
+
}, Pe = (t) => t.scrollLeft + t.clientWidth, Ie = (t) => t.scrollTop + t.clientHeight, de = (t, e, r = null, o = {}, a) => {
|
|
483
483
|
if (r === null && typeof window < "u" && he(o, e))
|
|
484
484
|
return t;
|
|
485
485
|
let d = 0;
|
|
@@ -494,7 +494,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
494
494
|
d = window.innerWidth;
|
|
495
495
|
else if (r === null) {
|
|
496
496
|
const i = be(e);
|
|
497
|
-
d = i ?
|
|
497
|
+
d = i ? Pe(i) : 0;
|
|
498
498
|
} else
|
|
499
499
|
d = r.getBoundingClientRect().width;
|
|
500
500
|
return -(t + e.clientWidth - d);
|
|
@@ -504,7 +504,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
504
504
|
d = window.innerHeight;
|
|
505
505
|
else if (r === null) {
|
|
506
506
|
const i = be(e);
|
|
507
|
-
d = i ?
|
|
507
|
+
d = i ? Ie(i) : 0;
|
|
508
508
|
} else
|
|
509
509
|
d = r.getBoundingClientRect().height;
|
|
510
510
|
return -(t + e.clientHeight - d);
|
|
@@ -517,7 +517,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
517
517
|
d = i ? i.scrollLeft : 0;
|
|
518
518
|
}
|
|
519
519
|
return t - d;
|
|
520
|
-
},
|
|
520
|
+
}, Xe = ({
|
|
521
521
|
options: t,
|
|
522
522
|
primaryX: e,
|
|
523
523
|
primaryY: r,
|
|
@@ -526,7 +526,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
526
526
|
reference: d,
|
|
527
527
|
scrollDirection: i
|
|
528
528
|
}) => {
|
|
529
|
-
const c =
|
|
529
|
+
const c = Me(d, o, a, t), l = Ce(t, "offset");
|
|
530
530
|
if (l) {
|
|
531
531
|
const u = l.fn({
|
|
532
532
|
x: c.x,
|
|
@@ -546,7 +546,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
546
546
|
y: c.y,
|
|
547
547
|
placement: a
|
|
548
548
|
} : !1;
|
|
549
|
-
},
|
|
549
|
+
}, Ve = (t) => ({
|
|
550
550
|
name: "flip",
|
|
551
551
|
params: t,
|
|
552
552
|
fn: ({
|
|
@@ -567,27 +567,27 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
567
567
|
placement: c
|
|
568
568
|
}, f = {
|
|
569
569
|
...o,
|
|
570
|
-
middleware: (s = o.middleware) == null ? void 0 : s.filter((
|
|
571
|
-
},
|
|
570
|
+
middleware: (s = o.middleware) == null ? void 0 : s.filter((T) => T.name !== "shift")
|
|
571
|
+
}, p = (t == null ? void 0 : t.placements) ?? je, v = !(t != null && t.placements), w = v ? je : p;
|
|
572
572
|
let C = !1;
|
|
573
|
-
const $ = (
|
|
573
|
+
const $ = (T) => {
|
|
574
574
|
if (C)
|
|
575
575
|
return;
|
|
576
|
-
const H =
|
|
576
|
+
const H = Xe({
|
|
577
577
|
options: f,
|
|
578
578
|
primaryX: a,
|
|
579
579
|
primaryY: d,
|
|
580
580
|
floating: i,
|
|
581
|
-
placement:
|
|
581
|
+
placement: T,
|
|
582
582
|
reference: l,
|
|
583
583
|
scrollDirection: u
|
|
584
584
|
});
|
|
585
585
|
H && (n.x = H.x, n.y = H.y, n.placement = H.placement, C = !0);
|
|
586
|
-
},
|
|
587
|
-
if (!v &&
|
|
588
|
-
const
|
|
586
|
+
}, D = eo(l, i, f);
|
|
587
|
+
if (!v && p.includes(c) && $(c), C || w.forEach($), !C) {
|
|
588
|
+
const T = p.reduce(
|
|
589
589
|
(H, I) => {
|
|
590
|
-
const
|
|
590
|
+
const M = Xe({
|
|
591
591
|
options: f,
|
|
592
592
|
primaryX: a,
|
|
593
593
|
primaryY: d,
|
|
@@ -596,36 +596,36 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
596
596
|
reference: l,
|
|
597
597
|
scrollDirection: u
|
|
598
598
|
});
|
|
599
|
-
if (!
|
|
599
|
+
if (!M)
|
|
600
600
|
return H;
|
|
601
|
-
const E = ze(I), F =
|
|
602
|
-
return !H || F > H.space ? { result:
|
|
601
|
+
const E = ze(I), F = D[E];
|
|
602
|
+
return !H || F > H.space ? { result: M, space: F } : H;
|
|
603
603
|
},
|
|
604
604
|
null
|
|
605
605
|
);
|
|
606
|
-
|
|
606
|
+
T && (n.x = T.result.x, n.y = T.result.y, n.placement = T.result.placement, C = !0);
|
|
607
607
|
}
|
|
608
|
-
if (!C &&
|
|
609
|
-
const
|
|
610
|
-
let H =
|
|
611
|
-
|
|
612
|
-
const
|
|
613
|
-
k > I && (I = k, H =
|
|
608
|
+
if (!C && p.length > 0) {
|
|
609
|
+
const T = ze(c);
|
|
610
|
+
let H = T, I = D[T];
|
|
611
|
+
p.forEach((b) => {
|
|
612
|
+
const h = ze(b), k = D[h];
|
|
613
|
+
k > I && (I = k, H = h);
|
|
614
614
|
});
|
|
615
|
-
const
|
|
615
|
+
const M = Qt(H, c, p), E = Me(l, i, M, f), F = Ce(f, "offset");
|
|
616
616
|
if (F) {
|
|
617
|
-
const
|
|
617
|
+
const b = F.fn({
|
|
618
618
|
x: E.x,
|
|
619
619
|
y: E.y,
|
|
620
620
|
options: f,
|
|
621
621
|
primaryX: a,
|
|
622
622
|
primaryY: d,
|
|
623
623
|
floating: i,
|
|
624
|
-
placement:
|
|
624
|
+
placement: M,
|
|
625
625
|
reference: l,
|
|
626
626
|
scrollDirection: u
|
|
627
627
|
});
|
|
628
|
-
E.x =
|
|
628
|
+
E.x = b.x, E.y = b.y;
|
|
629
629
|
}
|
|
630
630
|
n.x = E.x, n.y = E.y, n.placement = E.placement;
|
|
631
631
|
}
|
|
@@ -643,8 +643,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
643
643
|
if (et(e, "shift") && u) {
|
|
644
644
|
let n = null, f = 0;
|
|
645
645
|
s && (n = (i = s.params) == null ? void 0 : i.parent);
|
|
646
|
-
const
|
|
647
|
-
f =
|
|
646
|
+
const p = (c = u.params) == null ? void 0 : c.arrow;
|
|
647
|
+
f = p.getBoundingClientRect().width / 2, f += Ot(p), f -= t, o.startsWith("right") ? ce(r - l, a, n, e) <= t ? ce(r, a, n, e) > 0 ? l = t - ce(r, a, n, e) : l = t : ue(r - l - f, a, n, e) <= t && (ue(r - l - f, a, n, e) >= 0 ? (l = -t - (ue(r - l - f, a, n, e) + t), n && (l = -t)) : l = -t) : o.startsWith("left") ? ce(r - l + f, a, n, e) <= t ? (l = t + ce(r - f, a, n, e), l <= t && (l = t)) : ue(r - l, a, n, e) <= t && (l = -t + ue(r, a, n, e), l <= -t && (l = -t)) : ce(r - l, a, n, e) <= t ? ce(r - l, a, n, e) <= t && ce(r, a, n, e) > 0 ? l = t - ce(r, a, n, e) : l = t : ue(r - l, a, n, e) <= t && (ue(r - l, a, n, e) <= t && ue(r, a, n, e) > 0 ? l = -(t - ue(r, a, n, e)) : l = -t);
|
|
648
648
|
}
|
|
649
649
|
return l;
|
|
650
650
|
}, ot = (t, e, r, o, a) => {
|
|
@@ -659,11 +659,11 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
659
659
|
if (et(e, "shift") && u) {
|
|
660
660
|
let n = null, f = 0;
|
|
661
661
|
s && (n = (i = s.params) == null ? void 0 : i.parent);
|
|
662
|
-
const
|
|
663
|
-
f =
|
|
662
|
+
const p = (c = u.params) == null ? void 0 : c.arrow;
|
|
663
|
+
f = p.getBoundingClientRect().height / 2, f += Wt(p), f -= t, o.startsWith("top") ? de(r - l, a, n, e) <= t ? de(r, a, n, e) >= 0 ? l = -(t - de(r, a, n, e)) : l = -t : ge(r - l + f, a, n, e) <= t && (l = t + ge(r - f, a, n, e), l <= t && (l = t)) : o.startsWith("bottom") ? de(r - l - f, a, n, e) <= t ? de(r - l - f, a, n, e) >= 0 ? (l = -t - (de(r - l - f, a, n, e) + t), n && (l = -t)) : l = -t : ge(r - l, a, n, e) <= t && (ge(r, a, n, e) >= 0 ? l = t - ge(r, a, n, e) : l = t) : de(r - l, a, n, e) <= t ? de(r - l, a, n, e) >= 0 ? l = -(t - de(r - l, a, n, e)) : l = -t : ge(r - l, a, n, e) <= t && (ge(r - l, a, n, e) >= 0 ? l = t - ge(r - l, a, n, e) : l = t);
|
|
664
664
|
}
|
|
665
665
|
return l;
|
|
666
|
-
},
|
|
666
|
+
}, Te = (t) => ({
|
|
667
667
|
name: "offset",
|
|
668
668
|
params: { value: t },
|
|
669
669
|
fn: ({
|
|
@@ -679,7 +679,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
679
679
|
y: r - ot(t, o, d, c, i),
|
|
680
680
|
placement: c
|
|
681
681
|
})
|
|
682
|
-
}),
|
|
682
|
+
}), Dt = (t) => ({
|
|
683
683
|
name: "shift",
|
|
684
684
|
params: t,
|
|
685
685
|
fn: ({
|
|
@@ -697,27 +697,27 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
697
697
|
x: e,
|
|
698
698
|
y: r,
|
|
699
699
|
placement: c
|
|
700
|
-
}, n = o.middleware || [], f = n.findIndex((k) => k.name === "shift"),
|
|
701
|
-
let I =
|
|
702
|
-
const E = w ? Math.abs(C) : 0, F = E,
|
|
700
|
+
}, n = o.middleware || [], f = n.findIndex((k) => k.name === "shift"), p = n.findIndex((k) => k.name === "offset"), v = p !== -1 && (f === -1 || p > f), w = n.find((k) => k.name === "offset"), C = w ? (u = w.params) == null ? void 0 : u.value : 0, $ = v ? tt(C, o, a, c, i) : 0, D = v ? ot(C, o, d, c, i) : 0, T = e - $, H = r - D;
|
|
701
|
+
let I = T, M = H;
|
|
702
|
+
const E = w ? Math.abs(C) : 0, F = E, b = E;
|
|
703
703
|
if (he(o, i) && typeof window < "u") {
|
|
704
|
-
const k = F, W = window.innerWidth - i.clientWidth - F, A = W < k ? k : W,
|
|
705
|
-
I < k ? I = k : I > A && (I = A),
|
|
706
|
-
const re = F, Q = window.innerWidth - i.clientWidth - F, se =
|
|
704
|
+
const k = F, W = window.innerWidth - i.clientWidth - F, A = W < k ? k : W, q = b, te = window.innerHeight - i.clientHeight - b, X = te < q ? q : te;
|
|
705
|
+
I < k ? I = k : I > A && (I = A), M < q ? M = q : M > X && (M = X), v ? (s.x = e + (I - T), s.y = r + (M - H)) : (s.x = I, s.y = M);
|
|
706
|
+
const re = F, Q = window.innerWidth - i.clientWidth - F, se = b, x = window.innerHeight - i.clientHeight - b, K = v ? re + $ : re, N = v ? Q + $ : Q, oe = v ? se + D : se, g = v ? x + D : x;
|
|
707
707
|
return s.x < K ? s.x = K : s.x > N && (s.x = N), s.y < oe ? s.y = oe : s.y > g && (s.y = g), s;
|
|
708
708
|
}
|
|
709
|
-
const
|
|
710
|
-
if (
|
|
711
|
-
const k = ie(l, i, o), W = k.left, A = k.left + k.width,
|
|
712
|
-
A <= N ? I =
|
|
709
|
+
const h = be(i);
|
|
710
|
+
if (h !== null) {
|
|
711
|
+
const k = ie(l, i, o), W = k.left, A = k.left + k.width, q = k.top, te = k.top + k.height, X = h.scrollLeft + F, re = Pe(h) - i.clientWidth - F, Q = re < X ? X : re, se = h.scrollTop + b, x = Ie(h) - i.clientHeight - b, K = x < se ? se : x, N = h.scrollLeft, oe = Pe(h), g = h.scrollTop, B = Ie(h);
|
|
712
|
+
A <= N ? I = X : W >= oe && (I = Q), te <= g ? M = se : q >= B && (M = K), M < se ? M = se : M > K && (M = K), I < X ? I = X : I > Q && (I = Q);
|
|
713
713
|
}
|
|
714
|
-
if (v ? (s.x = e + (I -
|
|
715
|
-
const k =
|
|
716
|
-
s.x < te ? s.x = te : s.x >
|
|
714
|
+
if (v ? (s.x = e + (I - T), s.y = r + (M - H)) : (s.x = I, s.y = M), h !== null) {
|
|
715
|
+
const k = h.scrollLeft + F, W = Pe(h) - i.clientWidth - F, A = h.scrollTop + b, q = Ie(h) - i.clientHeight - b, te = v ? k + $ : k, X = v ? W + $ : W, re = v ? A + D : A, Q = v ? q + D : q;
|
|
716
|
+
s.x < te ? s.x = te : s.x > X && (s.x = X), s.y < re ? s.y = re : s.y > Q && (s.y = Q);
|
|
717
717
|
}
|
|
718
718
|
return s;
|
|
719
719
|
}
|
|
720
|
-
}),
|
|
720
|
+
}), Ot = (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, Le = (t, e) => {
|
|
721
721
|
const r = be(t), o = [];
|
|
722
722
|
if (r !== null) {
|
|
723
723
|
const a = () => e();
|
|
@@ -767,14 +767,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
767
767
|
y: o.top,
|
|
768
768
|
placement: "right-start"
|
|
769
769
|
};
|
|
770
|
-
},
|
|
770
|
+
}, Yt = (t, e, r = {}) => {
|
|
771
771
|
const o = ie(t, e, r);
|
|
772
772
|
return {
|
|
773
773
|
x: o.left + o.width,
|
|
774
774
|
y: o.top + o.height - e.getBoundingClientRect().height,
|
|
775
775
|
placement: "right-end"
|
|
776
776
|
};
|
|
777
|
-
},
|
|
777
|
+
}, Gt = (t, e, r = {}) => {
|
|
778
778
|
const o = ie(t, e, r);
|
|
779
779
|
return {
|
|
780
780
|
x: o.left + o.width / 2 - e.getBoundingClientRect().width / 2,
|
|
@@ -816,7 +816,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
816
816
|
y: o.top + o.height - e.getBoundingClientRect().height,
|
|
817
817
|
placement: "left-end"
|
|
818
818
|
};
|
|
819
|
-
},
|
|
819
|
+
}, Me = (t, e, r, o = {}) => {
|
|
820
820
|
switch (r) {
|
|
821
821
|
case "top":
|
|
822
822
|
return At(t, e, o);
|
|
@@ -829,9 +829,9 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
829
829
|
case "right-start":
|
|
830
830
|
return Nt(t, e, o);
|
|
831
831
|
case "right-end":
|
|
832
|
-
return Gt(t, e, o);
|
|
833
|
-
case "bottom":
|
|
834
832
|
return Yt(t, e, o);
|
|
833
|
+
case "bottom":
|
|
834
|
+
return Gt(t, e, o);
|
|
835
835
|
case "bottom-start":
|
|
836
836
|
return jt(t, e, o);
|
|
837
837
|
case "bottom-end":
|
|
@@ -853,8 +853,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
853
853
|
if (he(o, e)) {
|
|
854
854
|
if (typeof window > "u")
|
|
855
855
|
return !0;
|
|
856
|
-
const n = t.x, f = t.y,
|
|
857
|
-
return n >= 0 && f >= 0 &&
|
|
856
|
+
const n = t.x, f = t.y, p = n + e.clientWidth, v = f + e.clientHeight;
|
|
857
|
+
return n >= 0 && f >= 0 && p <= window.innerWidth && v <= window.innerHeight;
|
|
858
858
|
}
|
|
859
859
|
if (be(r) !== null)
|
|
860
860
|
return de(t.y, e, null, o) > 0 && ce(t.x, e, null, o) > 0 && ge(t.y, e, null, o) > 0 && ue(t.x, e, null, o) > 0;
|
|
@@ -862,8 +862,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
862
862
|
return !0;
|
|
863
863
|
const a = window.innerWidth, d = window.innerHeight, i = (r instanceof HTMLElement ? r.offsetParent : null) || e.offsetParent;
|
|
864
864
|
if (i) {
|
|
865
|
-
const n = i.getBoundingClientRect(), f = n.left + t.x,
|
|
866
|
-
return f >= 0 &&
|
|
865
|
+
const n = i.getBoundingClientRect(), f = n.left + t.x, p = n.top + t.y, v = f + e.clientWidth, w = p + e.clientHeight;
|
|
866
|
+
return f >= 0 && p >= 0 && v <= a && w <= d;
|
|
867
867
|
}
|
|
868
868
|
const c = t.x, l = t.y, u = c + e.clientWidth, s = l + e.clientHeight;
|
|
869
869
|
return c >= 0 && l >= 0 && u <= a && s <= d;
|
|
@@ -887,16 +887,16 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
887
887
|
bottom: d.bottom - a.bottom,
|
|
888
888
|
left: a.left - d.left
|
|
889
889
|
};
|
|
890
|
-
},
|
|
890
|
+
}, Re = (t, e, r = {}) => new Promise((o) => {
|
|
891
891
|
var a, d;
|
|
892
892
|
const i = r.placement ? r.placement : "bottom", c = {
|
|
893
893
|
x: 0,
|
|
894
894
|
y: 0,
|
|
895
895
|
placement: i,
|
|
896
896
|
middlewareData: {}
|
|
897
|
-
}, l =
|
|
897
|
+
}, l = Me(t, e, i, r);
|
|
898
898
|
c.x = l.x, c.y = l.y, c.placement = l.placement;
|
|
899
|
-
const u = c.x, s = c.y, n =
|
|
899
|
+
const u = c.x, s = c.y, n = Mt(t);
|
|
900
900
|
(a = r.middleware) == null || a.forEach((w) => {
|
|
901
901
|
const C = w.fn({
|
|
902
902
|
x: c.x,
|
|
@@ -911,7 +911,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
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 f =
|
|
914
|
+
const f = Me(t, e, c.placement, r), p = Ce(r, "offset"), v = p ? (d = p.params) == null ? void 0 : d.value : 0;
|
|
915
915
|
if (Number.isFinite(c.x) || (c.x = f.x), !Number.isFinite(c.y))
|
|
916
916
|
if (he(r, e)) {
|
|
917
917
|
const w = t.getBoundingClientRect(), C = e.getBoundingClientRect().height;
|
|
@@ -919,7 +919,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
919
919
|
} else
|
|
920
920
|
c.y = f.y;
|
|
921
921
|
o(c);
|
|
922
|
-
}), to = ["disabled", "aria-expanded", "onKeydown"], oo = ["data-placement"], ao = ["disabled", "aria-selected", "onClick"],
|
|
922
|
+
}), to = ["disabled", "aria-expanded", "onKeydown"], oo = ["data-placement"], ao = ["disabled", "aria-selected", "onClick"], $r = /* @__PURE__ */ Y({
|
|
923
923
|
__name: "select",
|
|
924
924
|
props: {
|
|
925
925
|
modelValue: { default: void 0 },
|
|
@@ -934,50 +934,50 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
934
934
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
935
935
|
setup(t, { emit: e }) {
|
|
936
936
|
let r = 0;
|
|
937
|
-
const o = e, a = t, d =
|
|
937
|
+
const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O("bottom"), s = O("bottom"), n = `vf-select-panel-${++r}`;
|
|
938
938
|
let f = null;
|
|
939
|
-
const
|
|
940
|
-
label:
|
|
941
|
-
value:
|
|
942
|
-
disabled:
|
|
943
|
-
}))), v = y(() =>
|
|
944
|
-
var
|
|
945
|
-
return ((
|
|
939
|
+
const p = y(() => a.options.map((h) => ({
|
|
940
|
+
label: h[a.optionLabel],
|
|
941
|
+
value: h[a.optionValue],
|
|
942
|
+
disabled: h.disabled
|
|
943
|
+
}))), v = y(() => p.value.find((h) => h.value === a.modelValue)), w = y(() => {
|
|
944
|
+
var h;
|
|
945
|
+
return ((h = v.value) == null ? void 0 : h.label) ?? "";
|
|
946
946
|
}), C = y(() => {
|
|
947
|
-
const
|
|
948
|
-
return a.size !== "normal" &&
|
|
949
|
-
}), $ = (
|
|
950
|
-
|
|
951
|
-
},
|
|
947
|
+
const h = ["vf-select", `vf-select_${a.variant}`, l.value ? "vf-select_open" : ""];
|
|
948
|
+
return a.size !== "normal" && h.push(`vf-select_${a.size}`), a.disabled && h.push("vf-select_disabled"), h.filter(Boolean);
|
|
949
|
+
}), $ = (h) => h.value === a.modelValue, D = (h) => {
|
|
950
|
+
h.disabled || (o("update:modelValue", h.value), o("change", h.value), I());
|
|
951
|
+
}, T = (h) => o("focus", h), H = (h) => o("blur", h), I = () => {
|
|
952
952
|
l.value = !1, u.value = "bottom", s.value = "bottom";
|
|
953
|
-
},
|
|
953
|
+
}, M = () => {
|
|
954
954
|
a.disabled || (l.value = !l.value, l.value && (u.value = "bottom", s.value = "bottom"));
|
|
955
955
|
}, E = async () => {
|
|
956
|
-
var
|
|
957
|
-
l.value || (l.value = !0, await ke()), (k = (
|
|
958
|
-
}, F = (
|
|
956
|
+
var h, k;
|
|
957
|
+
l.value || (l.value = !0, await ke()), (k = (h = c.value) == null ? void 0 : h.querySelector(".vf-select__option:not(.is-disabled)")) == null || k.focus();
|
|
958
|
+
}, F = (h) => {
|
|
959
959
|
var W;
|
|
960
960
|
if (!l.value || !d.value)
|
|
961
961
|
return;
|
|
962
|
-
const k =
|
|
962
|
+
const k = h.target;
|
|
963
963
|
d.value.contains(k) || (W = c.value) != null && W.contains(k) || I();
|
|
964
|
-
},
|
|
964
|
+
}, b = () => {
|
|
965
965
|
if (!i.value || !c.value)
|
|
966
966
|
return;
|
|
967
|
-
const
|
|
967
|
+
const h = i.value, k = c.value, W = async () => {
|
|
968
968
|
const {
|
|
969
|
-
x:
|
|
969
|
+
x: X,
|
|
970
970
|
y: re,
|
|
971
971
|
placement: Q
|
|
972
|
-
} = await
|
|
972
|
+
} = await Re(h, k, {
|
|
973
973
|
placement: u.value,
|
|
974
974
|
strategy: "fixed",
|
|
975
|
-
middleware: [
|
|
975
|
+
middleware: [Te(2), Ve({ placements: ["bottom", "top"] })]
|
|
976
976
|
});
|
|
977
|
-
s.value = Q ?? u.value, k.style.minWidth = `${
|
|
977
|
+
s.value = Q ?? u.value, k.style.minWidth = `${h.getBoundingClientRect().width}px`, k.style.left = `${X}px`, k.style.top = `${re}px`;
|
|
978
978
|
}, A = async () => {
|
|
979
979
|
await W();
|
|
980
|
-
},
|
|
980
|
+
}, q = Le(h, () => {
|
|
981
981
|
A();
|
|
982
982
|
}), te = () => {
|
|
983
983
|
A();
|
|
@@ -985,16 +985,16 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
985
985
|
document.addEventListener("scroll", te, !0), window.addEventListener("resize", te, !1), f = {
|
|
986
986
|
update: A,
|
|
987
987
|
destroy: () => {
|
|
988
|
-
|
|
988
|
+
q(), document.removeEventListener("scroll", te, !0), window.removeEventListener("resize", te, !1);
|
|
989
989
|
}
|
|
990
990
|
}, f.update();
|
|
991
991
|
};
|
|
992
|
-
return ee(l, async (
|
|
993
|
-
if (!
|
|
992
|
+
return ee(l, async (h) => {
|
|
993
|
+
if (!h) {
|
|
994
994
|
f && (f.destroy(), f = null);
|
|
995
995
|
return;
|
|
996
996
|
}
|
|
997
|
-
await ke(), f ||
|
|
997
|
+
await ke(), f || b(), f == null || f.update();
|
|
998
998
|
}), ee(
|
|
999
999
|
() => a.options,
|
|
1000
1000
|
() => {
|
|
@@ -1005,38 +1005,38 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1005
1005
|
document.addEventListener("click", F);
|
|
1006
1006
|
}), we(() => {
|
|
1007
1007
|
document.removeEventListener("click", F), f == null || f.destroy(), f = null;
|
|
1008
|
-
}), (
|
|
1008
|
+
}), (h, k) => (m(), _("div", {
|
|
1009
1009
|
ref_key: "root",
|
|
1010
1010
|
ref: d,
|
|
1011
|
-
class:
|
|
1011
|
+
class: L(C.value)
|
|
1012
1012
|
}, [
|
|
1013
1013
|
z("button", {
|
|
1014
1014
|
ref_key: "trigger",
|
|
1015
1015
|
ref: i,
|
|
1016
1016
|
class: "vf-select__control",
|
|
1017
1017
|
type: "button",
|
|
1018
|
-
disabled:
|
|
1018
|
+
disabled: h.disabled,
|
|
1019
1019
|
"aria-expanded": l.value,
|
|
1020
1020
|
"aria-controls": n,
|
|
1021
1021
|
"aria-haspopup": "listbox",
|
|
1022
|
-
onClick:
|
|
1022
|
+
onClick: M,
|
|
1023
1023
|
onKeydown: [
|
|
1024
|
-
Z(
|
|
1025
|
-
Z(
|
|
1026
|
-
Z(
|
|
1024
|
+
Z(U(E, ["prevent"]), ["down"]),
|
|
1025
|
+
Z(U(M, ["prevent"]), ["enter"]),
|
|
1026
|
+
Z(U(I, ["prevent"]), ["esc"])
|
|
1027
1027
|
],
|
|
1028
|
-
onFocus:
|
|
1028
|
+
onFocus: T,
|
|
1029
1029
|
onBlur: H
|
|
1030
1030
|
}, [
|
|
1031
1031
|
z("span", {
|
|
1032
|
-
class:
|
|
1033
|
-
}, R(w.value ||
|
|
1032
|
+
class: L(["vf-select__label", { "vf-select__label_placeholder": !w.value }])
|
|
1033
|
+
}, R(w.value || h.placeholder), 3),
|
|
1034
1034
|
k[0] || (k[0] = z("span", {
|
|
1035
1035
|
class: "vf-select__chevron",
|
|
1036
1036
|
"aria-hidden": "true"
|
|
1037
1037
|
}, "▾", -1))
|
|
1038
1038
|
], 40, to),
|
|
1039
|
-
(
|
|
1039
|
+
(m(), ne($e, { to: "body" }, [
|
|
1040
1040
|
fe(z("div", {
|
|
1041
1041
|
id: n,
|
|
1042
1042
|
ref_key: "panel",
|
|
@@ -1045,14 +1045,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1045
1045
|
role: "listbox",
|
|
1046
1046
|
"data-placement": s.value
|
|
1047
1047
|
}, [
|
|
1048
|
-
(
|
|
1048
|
+
(m(!0), _(ae, null, ve(p.value, (W) => (m(), _("button", {
|
|
1049
1049
|
key: W.value,
|
|
1050
|
-
class:
|
|
1050
|
+
class: L(["vf-select__option", { "is-active": $(W), "is-disabled": W.disabled }]),
|
|
1051
1051
|
type: "button",
|
|
1052
1052
|
role: "option",
|
|
1053
1053
|
disabled: W.disabled,
|
|
1054
1054
|
"aria-selected": $(W),
|
|
1055
|
-
onClick: (A) =>
|
|
1055
|
+
onClick: (A) => D(W)
|
|
1056
1056
|
}, R(W.label), 11, ao))), 128))
|
|
1057
1057
|
], 8, oo), [
|
|
1058
1058
|
[pe, l.value]
|
|
@@ -1066,7 +1066,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1066
1066
|
}, io = ["id", "disabled", "aria-selected", "onClick"], co = {
|
|
1067
1067
|
key: 2,
|
|
1068
1068
|
class: "vf-autocomplete__empty"
|
|
1069
|
-
},
|
|
1069
|
+
}, xr = /* @__PURE__ */ Y({
|
|
1070
1070
|
__name: "autocomplete",
|
|
1071
1071
|
props: {
|
|
1072
1072
|
modelValue: { default: void 0 },
|
|
@@ -1086,7 +1086,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1086
1086
|
emits: ["update:modelValue", "change", "focus", "blur", "search"],
|
|
1087
1087
|
setup(t, { emit: e }) {
|
|
1088
1088
|
let r = 0;
|
|
1089
|
-
const o = e, a = t, d =
|
|
1089
|
+
const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O(""), s = O(-1), n = O("bottom"), f = O("bottom"), p = `vf-autocomplete-panel-${++r}`;
|
|
1090
1090
|
let v = null;
|
|
1091
1091
|
const w = y(() => a.options.map((x) => ({
|
|
1092
1092
|
label: x[a.optionLabel],
|
|
@@ -1097,13 +1097,13 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1097
1097
|
return w.value;
|
|
1098
1098
|
const x = u.value.trim().toLowerCase();
|
|
1099
1099
|
return x ? w.value.filter((K) => K.label.toLowerCase().includes(x)) : w.value;
|
|
1100
|
-
}),
|
|
1100
|
+
}), D = y(() => {
|
|
1101
1101
|
if (!(!l.value || s.value < 0))
|
|
1102
1102
|
return H(s.value);
|
|
1103
|
-
}),
|
|
1103
|
+
}), T = y(() => {
|
|
1104
1104
|
const x = ["vf-autocomplete", `vf-autocomplete_${a.variant}`, l.value ? "vf-autocomplete_open" : ""];
|
|
1105
1105
|
return a.size !== "normal" && x.push(`vf-autocomplete_${a.size}`), a.disabled && x.push("vf-autocomplete_disabled"), x.filter(Boolean);
|
|
1106
|
-
}), H = (x) => `${
|
|
1106
|
+
}), H = (x) => `${p}-option-${x}`, I = (x) => x.value === a.modelValue, M = () => $.value.findIndex((x) => !x.disabled), E = (x) => {
|
|
1107
1107
|
const K = $.value;
|
|
1108
1108
|
if (!K.length) {
|
|
1109
1109
|
s.value = -1;
|
|
@@ -1118,23 +1118,23 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1118
1118
|
}
|
|
1119
1119
|
s.value = -1;
|
|
1120
1120
|
}, F = () => {
|
|
1121
|
-
a.disabled || (l.value = !0, n.value = "bottom", f.value = "bottom", s.value < 0 && (s.value =
|
|
1122
|
-
},
|
|
1121
|
+
a.disabled || (l.value = !0, n.value = "bottom", f.value = "bottom", s.value < 0 && (s.value = M()));
|
|
1122
|
+
}, b = () => {
|
|
1123
1123
|
l.value = !1, s.value = -1, n.value = "bottom", f.value = "bottom";
|
|
1124
|
-
},
|
|
1124
|
+
}, h = () => {
|
|
1125
1125
|
if (l.value) {
|
|
1126
|
-
|
|
1126
|
+
b();
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
1129
|
F();
|
|
1130
1130
|
}, k = (x) => {
|
|
1131
|
-
x.disabled || (u.value = x.label, o("update:modelValue", x.value), o("change", x.value),
|
|
1131
|
+
x.disabled || (u.value = x.label, o("update:modelValue", x.value), o("change", x.value), b());
|
|
1132
1132
|
}, W = (x) => {
|
|
1133
1133
|
const K = x.target;
|
|
1134
|
-
u.value = K.value, o("search", K.value), F(), s.value =
|
|
1134
|
+
u.value = K.value, o("search", K.value), F(), s.value = M();
|
|
1135
1135
|
}, A = (x) => {
|
|
1136
1136
|
o("focus", x), F();
|
|
1137
|
-
},
|
|
1137
|
+
}, q = (x) => {
|
|
1138
1138
|
o("blur", x);
|
|
1139
1139
|
}, te = () => {
|
|
1140
1140
|
if (!l.value) {
|
|
@@ -1142,7 +1142,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1142
1142
|
return;
|
|
1143
1143
|
}
|
|
1144
1144
|
E(1);
|
|
1145
|
-
},
|
|
1145
|
+
}, X = () => {
|
|
1146
1146
|
if (!l.value) {
|
|
1147
1147
|
F();
|
|
1148
1148
|
return;
|
|
@@ -1160,21 +1160,21 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1160
1160
|
if (!l.value || !d.value)
|
|
1161
1161
|
return;
|
|
1162
1162
|
const K = x.target;
|
|
1163
|
-
d.value.contains(K) || (N = c.value) != null && N.contains(K) ||
|
|
1163
|
+
d.value.contains(K) || (N = c.value) != null && N.contains(K) || b();
|
|
1164
1164
|
}, se = () => {
|
|
1165
1165
|
if (!i.value || !c.value)
|
|
1166
1166
|
return;
|
|
1167
1167
|
const x = i.value, K = c.value, N = async () => {
|
|
1168
1168
|
const {
|
|
1169
|
-
x:
|
|
1169
|
+
x: V,
|
|
1170
1170
|
y: G,
|
|
1171
1171
|
placement: le
|
|
1172
|
-
} = await
|
|
1172
|
+
} = await Re(x, K, {
|
|
1173
1173
|
placement: n.value,
|
|
1174
1174
|
strategy: "fixed",
|
|
1175
|
-
middleware: [
|
|
1175
|
+
middleware: [Te(2), Ve({ placements: ["bottom", "top"] })]
|
|
1176
1176
|
});
|
|
1177
|
-
f.value = le ?? n.value, K.style.minWidth = `${x.getBoundingClientRect().width}px`, K.style.left = `${
|
|
1177
|
+
f.value = le ?? n.value, K.style.minWidth = `${x.getBoundingClientRect().width}px`, K.style.left = `${V}px`, K.style.top = `${G}px`;
|
|
1178
1178
|
}, oe = async () => {
|
|
1179
1179
|
await N();
|
|
1180
1180
|
}, g = Le(x, () => {
|
|
@@ -1204,7 +1204,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1204
1204
|
},
|
|
1205
1205
|
{ deep: !0 }
|
|
1206
1206
|
), ee($, () => {
|
|
1207
|
-
s.value >= $.value.length && (s.value =
|
|
1207
|
+
s.value >= $.value.length && (s.value = M());
|
|
1208
1208
|
}), ee(l, async (x) => {
|
|
1209
1209
|
if (!x) {
|
|
1210
1210
|
v && (v.destroy(), v = null);
|
|
@@ -1215,10 +1215,10 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1215
1215
|
document.addEventListener("click", Q);
|
|
1216
1216
|
}), we(() => {
|
|
1217
1217
|
document.removeEventListener("click", Q), v == null || v.destroy(), v = null;
|
|
1218
|
-
}), (x, K) => (
|
|
1218
|
+
}), (x, K) => (m(), _("div", {
|
|
1219
1219
|
ref_key: "root",
|
|
1220
1220
|
ref: d,
|
|
1221
|
-
class: T
|
|
1221
|
+
class: L(T.value)
|
|
1222
1222
|
}, [
|
|
1223
1223
|
z("input", {
|
|
1224
1224
|
ref_key: "control",
|
|
@@ -1232,18 +1232,18 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1232
1232
|
readonly: x.readonly,
|
|
1233
1233
|
"aria-expanded": l.value,
|
|
1234
1234
|
"aria-autocomplete": "list",
|
|
1235
|
-
"aria-controls":
|
|
1236
|
-
"aria-activedescendant":
|
|
1235
|
+
"aria-controls": p,
|
|
1236
|
+
"aria-activedescendant": D.value,
|
|
1237
1237
|
onInput: W,
|
|
1238
1238
|
onFocus: A,
|
|
1239
|
-
onBlur:
|
|
1239
|
+
onBlur: q,
|
|
1240
1240
|
onClick: F,
|
|
1241
1241
|
onKeydown: [
|
|
1242
|
-
Z(
|
|
1243
|
-
Z(
|
|
1244
|
-
Z(
|
|
1245
|
-
Z(
|
|
1246
|
-
Z(
|
|
1242
|
+
Z(U(te, ["prevent"]), ["down"]),
|
|
1243
|
+
Z(U(X, ["prevent"]), ["up"]),
|
|
1244
|
+
Z(U(re, ["prevent"]), ["enter"]),
|
|
1245
|
+
Z(U(b, ["prevent"]), ["esc"]),
|
|
1246
|
+
Z(b, ["tab"])
|
|
1247
1247
|
]
|
|
1248
1248
|
}, null, 40, ro),
|
|
1249
1249
|
z("button", {
|
|
@@ -1252,23 +1252,23 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1252
1252
|
disabled: x.disabled,
|
|
1253
1253
|
"aria-hidden": "true",
|
|
1254
1254
|
tabindex: "-1",
|
|
1255
|
-
onMousedown: K[0] || (K[0] =
|
|
1255
|
+
onMousedown: K[0] || (K[0] = U(() => {
|
|
1256
1256
|
}, ["prevent"])),
|
|
1257
|
-
onClick:
|
|
1257
|
+
onClick: h
|
|
1258
1258
|
}, " ▾ ", 40, lo),
|
|
1259
|
-
(
|
|
1259
|
+
(m(), ne($e, { to: "body" }, [
|
|
1260
1260
|
fe(z("div", {
|
|
1261
|
-
id:
|
|
1261
|
+
id: p,
|
|
1262
1262
|
ref_key: "panel",
|
|
1263
1263
|
ref: c,
|
|
1264
1264
|
class: "vf-autocomplete__panel",
|
|
1265
1265
|
role: "listbox",
|
|
1266
1266
|
"data-placement": f.value
|
|
1267
1267
|
}, [
|
|
1268
|
-
x.loading ? (
|
|
1268
|
+
x.loading ? (m(), _("div", so, R(x.loadingText), 1)) : $.value.length > 0 ? (m(!0), _(ae, { key: 1 }, ve($.value, (N, oe) => (m(), _("button", {
|
|
1269
1269
|
id: H(oe),
|
|
1270
1270
|
key: N.value,
|
|
1271
|
-
class:
|
|
1271
|
+
class: L(["vf-autocomplete__option", {
|
|
1272
1272
|
"is-active": I(N),
|
|
1273
1273
|
"is-disabled": N.disabled,
|
|
1274
1274
|
"is-highlighted": oe === s.value
|
|
@@ -1277,10 +1277,10 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1277
1277
|
role: "option",
|
|
1278
1278
|
disabled: N.disabled,
|
|
1279
1279
|
"aria-selected": I(N),
|
|
1280
|
-
onMousedown: K[1] || (K[1] =
|
|
1280
|
+
onMousedown: K[1] || (K[1] = U(() => {
|
|
1281
1281
|
}, ["prevent"])),
|
|
1282
1282
|
onClick: (g) => k(N)
|
|
1283
|
-
}, R(N.label), 43, io))), 128)) : (
|
|
1283
|
+
}, R(N.label), 43, io))), 128)) : (m(), _("div", co, R(x.emptyText), 1))
|
|
1284
1284
|
], 8, no), [
|
|
1285
1285
|
[pe, l.value]
|
|
1286
1286
|
])
|
|
@@ -1300,7 +1300,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1300
1300
|
}, yo = {
|
|
1301
1301
|
key: 3,
|
|
1302
1302
|
class: "vf-multiselect__empty"
|
|
1303
|
-
},
|
|
1303
|
+
}, Br = /* @__PURE__ */ Y({
|
|
1304
1304
|
__name: "multi-select",
|
|
1305
1305
|
props: {
|
|
1306
1306
|
modelValue: { default: () => [] },
|
|
@@ -1322,58 +1322,58 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1322
1322
|
emits: ["update:modelValue", "change", "search", "focus", "blur"],
|
|
1323
1323
|
setup(t, { emit: e }) {
|
|
1324
1324
|
let r = 0;
|
|
1325
|
-
const o = e, a = t, d =
|
|
1325
|
+
const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(null), u = O(!1), s = O(""), n = O(-1), f = O("bottom"), p = O("bottom"), v = `vf-multiselect-panel-${++r}`;
|
|
1326
1326
|
let w = null;
|
|
1327
1327
|
const C = y(() => a.options.map((g) => ({
|
|
1328
1328
|
label: g[a.optionLabel],
|
|
1329
1329
|
value: g[a.optionValue],
|
|
1330
1330
|
disabled: g.disabled
|
|
1331
|
-
}))), $ = y(() => Array.isArray(a.modelValue) ? a.modelValue : []),
|
|
1331
|
+
}))), $ = y(() => Array.isArray(a.modelValue) ? a.modelValue : []), D = y(() => {
|
|
1332
1332
|
if (!a.filter)
|
|
1333
1333
|
return C.value;
|
|
1334
1334
|
const g = s.value.trim().toLowerCase();
|
|
1335
1335
|
return g ? C.value.filter((B) => B.label.toLowerCase().includes(g)) : C.value;
|
|
1336
|
-
}),
|
|
1336
|
+
}), T = y(() => C.value.filter((g) => $.value.includes(g.value))), H = y(() => T.value.length === 0 ? a.placeholder : T.value.map((g) => g.label).join(", ")), I = y(() => {
|
|
1337
1337
|
const g = ["vf-multiselect", `vf-multiselect_${a.variant}`, u.value ? "vf-multiselect_open" : ""];
|
|
1338
1338
|
return a.size !== "normal" && g.push(`vf-multiselect_${a.size}`), a.disabled && g.push("vf-multiselect_disabled"), g.filter(Boolean);
|
|
1339
|
-
}),
|
|
1339
|
+
}), M = (g) => `${v}-option-${g}`, E = () => D.value.findIndex((g) => !g.disabled), F = (g) => $.value.includes(g.value), b = (g) => {
|
|
1340
1340
|
o("update:modelValue", g), o("change", g);
|
|
1341
|
-
},
|
|
1341
|
+
}, h = (g) => {
|
|
1342
1342
|
if (!(g.disabled || a.readonly)) {
|
|
1343
1343
|
if (F(g)) {
|
|
1344
|
-
|
|
1344
|
+
b($.value.filter((B) => B !== g.value));
|
|
1345
1345
|
return;
|
|
1346
1346
|
}
|
|
1347
|
-
|
|
1347
|
+
b([...$.value, g.value]);
|
|
1348
1348
|
}
|
|
1349
1349
|
}, k = () => {
|
|
1350
|
-
a.readonly ||
|
|
1350
|
+
a.readonly || b([]);
|
|
1351
1351
|
}, W = (g) => {
|
|
1352
|
-
const B =
|
|
1352
|
+
const B = D.value;
|
|
1353
1353
|
if (!B.length) {
|
|
1354
1354
|
n.value = -1;
|
|
1355
1355
|
return;
|
|
1356
1356
|
}
|
|
1357
|
-
let
|
|
1358
|
-
(
|
|
1357
|
+
let V = n.value;
|
|
1358
|
+
(V < 0 || V >= B.length) && (V = g > 0 ? -1 : B.length);
|
|
1359
1359
|
for (let G = 0; G < B.length; G += 1)
|
|
1360
|
-
if (
|
|
1361
|
-
n.value =
|
|
1360
|
+
if (V = (V + g + B.length) % B.length, !B[V].disabled) {
|
|
1361
|
+
n.value = V;
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
1364
|
n.value = -1;
|
|
1365
1365
|
}, A = async () => {
|
|
1366
1366
|
var g;
|
|
1367
|
-
a.disabled || (u.value = !0, f.value = "bottom",
|
|
1368
|
-
},
|
|
1369
|
-
u.value = !1, n.value = -1, f.value = "bottom",
|
|
1367
|
+
a.disabled || (u.value = !0, f.value = "bottom", p.value = "bottom", n.value < 0 && (n.value = E()), a.filter && (await ke(), (g = l.value) == null || g.focus()));
|
|
1368
|
+
}, q = () => {
|
|
1369
|
+
u.value = !1, n.value = -1, f.value = "bottom", p.value = "bottom", s.value = "";
|
|
1370
1370
|
}, te = () => {
|
|
1371
1371
|
if (u.value) {
|
|
1372
|
-
|
|
1372
|
+
q();
|
|
1373
1373
|
return;
|
|
1374
1374
|
}
|
|
1375
1375
|
A();
|
|
1376
|
-
},
|
|
1376
|
+
}, X = () => {
|
|
1377
1377
|
if (!u.value) {
|
|
1378
1378
|
A();
|
|
1379
1379
|
return;
|
|
@@ -1390,33 +1390,33 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1390
1390
|
A();
|
|
1391
1391
|
return;
|
|
1392
1392
|
}
|
|
1393
|
-
const g =
|
|
1394
|
-
g && !g.disabled &&
|
|
1393
|
+
const g = D.value[n.value];
|
|
1394
|
+
g && !g.disabled && h(g);
|
|
1395
1395
|
}, se = (g) => {
|
|
1396
1396
|
const B = g.target;
|
|
1397
1397
|
s.value = B.value, o("search", B.value), n.value = E();
|
|
1398
1398
|
}, x = (g) => o("focus", g), K = (g) => o("blur", g), N = (g) => {
|
|
1399
|
-
var
|
|
1399
|
+
var V;
|
|
1400
1400
|
if (!u.value || !d.value)
|
|
1401
1401
|
return;
|
|
1402
1402
|
const B = g.target;
|
|
1403
|
-
d.value.contains(B) || (
|
|
1403
|
+
d.value.contains(B) || (V = c.value) != null && V.contains(B) || q();
|
|
1404
1404
|
}, oe = () => {
|
|
1405
1405
|
if (!i.value || !c.value)
|
|
1406
1406
|
return;
|
|
1407
|
-
const g = i.value, B = c.value,
|
|
1407
|
+
const g = i.value, B = c.value, V = async () => {
|
|
1408
1408
|
const {
|
|
1409
1409
|
x: ye,
|
|
1410
|
-
y:
|
|
1411
|
-
placement:
|
|
1412
|
-
} = await
|
|
1410
|
+
y: We,
|
|
1411
|
+
placement: Ae
|
|
1412
|
+
} = await Re(g, B, {
|
|
1413
1413
|
placement: f.value,
|
|
1414
1414
|
strategy: "fixed",
|
|
1415
|
-
middleware: [
|
|
1415
|
+
middleware: [Te(2), Ve({ placements: ["bottom", "top"] })]
|
|
1416
1416
|
});
|
|
1417
|
-
|
|
1417
|
+
p.value = Ae ?? f.value, B.style.minWidth = `${g.getBoundingClientRect().width}px`, B.style.left = `${ye}px`, B.style.top = `${We}px`;
|
|
1418
1418
|
}, G = async () => {
|
|
1419
|
-
await
|
|
1419
|
+
await V();
|
|
1420
1420
|
}, le = Le(g, () => {
|
|
1421
1421
|
G();
|
|
1422
1422
|
}), J = () => {
|
|
@@ -1432,7 +1432,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1432
1432
|
return ee(
|
|
1433
1433
|
() => a.options,
|
|
1434
1434
|
() => {
|
|
1435
|
-
n.value >=
|
|
1435
|
+
n.value >= D.value.length && (n.value = E()), w == null || w.update();
|
|
1436
1436
|
},
|
|
1437
1437
|
{ deep: !0 }
|
|
1438
1438
|
), ee(u, async (g) => {
|
|
@@ -1441,16 +1441,16 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1441
1441
|
return;
|
|
1442
1442
|
}
|
|
1443
1443
|
await ke(), w || oe(), w == null || w.update();
|
|
1444
|
-
}), ee(
|
|
1445
|
-
n.value >=
|
|
1444
|
+
}), ee(D, () => {
|
|
1445
|
+
n.value >= D.value.length && (n.value = E());
|
|
1446
1446
|
}), Fe(() => {
|
|
1447
1447
|
document.addEventListener("click", N);
|
|
1448
1448
|
}), we(() => {
|
|
1449
1449
|
document.removeEventListener("click", N), w == null || w.destroy(), w = null;
|
|
1450
|
-
}), (g, B) => (
|
|
1450
|
+
}), (g, B) => (m(), _("div", {
|
|
1451
1451
|
ref_key: "root",
|
|
1452
1452
|
ref: d,
|
|
1453
|
-
class:
|
|
1453
|
+
class: L(I.value)
|
|
1454
1454
|
}, [
|
|
1455
1455
|
z("button", {
|
|
1456
1456
|
ref_key: "trigger",
|
|
@@ -1463,30 +1463,30 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1463
1463
|
"aria-haspopup": "listbox",
|
|
1464
1464
|
onClick: te,
|
|
1465
1465
|
onKeydown: [
|
|
1466
|
-
Z(
|
|
1467
|
-
Z(
|
|
1468
|
-
Z(
|
|
1469
|
-
Z(q
|
|
1466
|
+
Z(U(X, ["prevent"]), ["down"]),
|
|
1467
|
+
Z(U(re, ["prevent"]), ["up"]),
|
|
1468
|
+
Z(U(Q, ["prevent"]), ["enter"]),
|
|
1469
|
+
Z(U(q, ["prevent"]), ["esc"])
|
|
1470
1470
|
],
|
|
1471
1471
|
onFocus: x,
|
|
1472
1472
|
onBlur: K
|
|
1473
1473
|
}, [
|
|
1474
1474
|
z("span", {
|
|
1475
|
-
class:
|
|
1475
|
+
class: L(["vf-multiselect__label", { "vf-multiselect__label_placeholder": $.value.length === 0 }])
|
|
1476
1476
|
}, R(H.value), 3),
|
|
1477
1477
|
B[0] || (B[0] = z("span", {
|
|
1478
1478
|
class: "vf-multiselect__chevron",
|
|
1479
1479
|
"aria-hidden": "true"
|
|
1480
1480
|
}, "▾", -1))
|
|
1481
1481
|
], 40, uo),
|
|
1482
|
-
g.clearable && $.value.length > 0 && !g.disabled && !g.readonly ? (
|
|
1482
|
+
g.clearable && $.value.length > 0 && !g.disabled && !g.readonly ? (m(), _("button", {
|
|
1483
1483
|
key: 0,
|
|
1484
1484
|
class: "vf-multiselect__clear",
|
|
1485
1485
|
type: "button",
|
|
1486
1486
|
"aria-label": "Clear selection",
|
|
1487
|
-
onClick:
|
|
1487
|
+
onClick: U(k, ["stop"])
|
|
1488
1488
|
}, " ✕ ")) : P("", !0),
|
|
1489
|
-
(
|
|
1489
|
+
(m(), ne($e, { to: "body" }, [
|
|
1490
1490
|
fe(z("div", {
|
|
1491
1491
|
id: v,
|
|
1492
1492
|
ref_key: "panel",
|
|
@@ -1494,9 +1494,9 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1494
1494
|
class: "vf-multiselect__panel",
|
|
1495
1495
|
role: "listbox",
|
|
1496
1496
|
"aria-multiselectable": "true",
|
|
1497
|
-
"data-placement":
|
|
1497
|
+
"data-placement": p.value
|
|
1498
1498
|
}, [
|
|
1499
|
-
g.filter ? (
|
|
1499
|
+
g.filter ? (m(), _("div", fo, [
|
|
1500
1500
|
z("input", {
|
|
1501
1501
|
ref_key: "searchInput",
|
|
1502
1502
|
ref: l,
|
|
@@ -1506,30 +1506,30 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1506
1506
|
placeholder: g.searchPlaceholder,
|
|
1507
1507
|
onInput: se,
|
|
1508
1508
|
onKeydown: [
|
|
1509
|
-
Z(
|
|
1510
|
-
Z(
|
|
1511
|
-
Z(
|
|
1512
|
-
Z(q
|
|
1509
|
+
Z(U(X, ["prevent"]), ["down"]),
|
|
1510
|
+
Z(U(re, ["prevent"]), ["up"]),
|
|
1511
|
+
Z(U(Q, ["prevent"]), ["enter"]),
|
|
1512
|
+
Z(U(q, ["prevent"]), ["esc"])
|
|
1513
1513
|
]
|
|
1514
1514
|
}, null, 40, po)
|
|
1515
1515
|
])) : P("", !0),
|
|
1516
|
-
g.loading ? (
|
|
1517
|
-
id:
|
|
1518
|
-
key:
|
|
1519
|
-
class:
|
|
1520
|
-
"is-active": F(
|
|
1521
|
-
"is-disabled":
|
|
1516
|
+
g.loading ? (m(), _("div", bo, R(g.loadingText), 1)) : D.value.length > 0 ? (m(!0), _(ae, { key: 2 }, ve(D.value, (V, G) => (m(), _("button", {
|
|
1517
|
+
id: M(G),
|
|
1518
|
+
key: V.value,
|
|
1519
|
+
class: L(["vf-multiselect__option", {
|
|
1520
|
+
"is-active": F(V),
|
|
1521
|
+
"is-disabled": V.disabled,
|
|
1522
1522
|
"is-highlighted": G === n.value
|
|
1523
1523
|
}]),
|
|
1524
1524
|
type: "button",
|
|
1525
1525
|
role: "option",
|
|
1526
|
-
disabled:
|
|
1527
|
-
"aria-selected": F(
|
|
1528
|
-
onClick: (le) =>
|
|
1526
|
+
disabled: V.disabled,
|
|
1527
|
+
"aria-selected": F(V),
|
|
1528
|
+
onClick: (le) => h(V)
|
|
1529
1529
|
}, [
|
|
1530
|
-
z("span", mo, R(
|
|
1531
|
-
F(
|
|
1532
|
-
], 10, go))), 128)) : (
|
|
1530
|
+
z("span", mo, R(V.label), 1),
|
|
1531
|
+
F(V) ? (m(), _("span", ho, "✓")) : P("", !0)
|
|
1532
|
+
], 10, go))), 128)) : (m(), _("div", yo, R(g.emptyText), 1))
|
|
1533
1533
|
], 8, vo), [
|
|
1534
1534
|
[pe, u.value]
|
|
1535
1535
|
])
|
|
@@ -1542,7 +1542,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1542
1542
|
}, xo = {
|
|
1543
1543
|
class: "vf-datepicker__days",
|
|
1544
1544
|
role: "grid"
|
|
1545
|
-
}, Bo = ["disabled", "data-date", "onClick"],
|
|
1545
|
+
}, Bo = ["disabled", "data-date", "onClick"], zr = /* @__PURE__ */ Y({
|
|
1546
1546
|
__name: "datepicker",
|
|
1547
1547
|
props: {
|
|
1548
1548
|
modelValue: { default: void 0 },
|
|
@@ -1559,23 +1559,23 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1559
1559
|
emits: ["update:modelValue", "change", "focus", "blur"],
|
|
1560
1560
|
setup(t, { emit: e }) {
|
|
1561
1561
|
let r = 0;
|
|
1562
|
-
const o = e, a = t, d =
|
|
1563
|
-
let
|
|
1564
|
-
const v = y(() =>
|
|
1562
|
+
const o = e, a = t, d = O(null), i = O(null), c = O(null), l = O(!1), u = O("bottom"), s = O("bottom"), n = `vf-datepicker-panel-${++r}`, f = O(Q(X(a.modelValue) ?? /* @__PURE__ */ new Date()));
|
|
1563
|
+
let p = null;
|
|
1564
|
+
const v = y(() => X(a.modelValue)), w = y(() => X(a.min)), C = y(() => X(a.max)), $ = y(() => v.value ? v.value.toLocaleDateString(a.locale, {
|
|
1565
1565
|
year: "numeric",
|
|
1566
1566
|
month: "short",
|
|
1567
1567
|
day: "numeric"
|
|
1568
|
-
}) : ""),
|
|
1568
|
+
}) : ""), D = y(() => f.value.toLocaleDateString(a.locale, {
|
|
1569
1569
|
year: "numeric",
|
|
1570
1570
|
month: "long"
|
|
1571
|
-
})),
|
|
1571
|
+
})), T = y(() => {
|
|
1572
1572
|
const g = new Intl.DateTimeFormat(a.locale, { weekday: "short" }), B = new Date(2026, 0, 4);
|
|
1573
|
-
return Array.from({ length: 7 }, (
|
|
1573
|
+
return Array.from({ length: 7 }, (V, G) => {
|
|
1574
1574
|
const le = (G + a.firstDayOfWeek) % 7, J = new Date(B);
|
|
1575
1575
|
return J.setDate(B.getDate() + le), g.format(J);
|
|
1576
1576
|
});
|
|
1577
1577
|
}), H = y(() => {
|
|
1578
|
-
const g = K(f.value, a.firstDayOfWeek), B = v.value ? N(v.value) : null,
|
|
1578
|
+
const g = K(f.value, a.firstDayOfWeek), B = v.value ? N(v.value) : null, V = N(/* @__PURE__ */ new Date());
|
|
1579
1579
|
return Array.from({ length: 42 }, (G, le) => {
|
|
1580
1580
|
const J = x(g, le), ye = N(J);
|
|
1581
1581
|
return {
|
|
@@ -1586,19 +1586,19 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1586
1586
|
inCurrentMonth: J.getMonth() === f.value.getMonth(),
|
|
1587
1587
|
isDisabled: oe(J, w.value, C.value),
|
|
1588
1588
|
isSelected: B === ye,
|
|
1589
|
-
isToday: ye ===
|
|
1589
|
+
isToday: ye === V
|
|
1590
1590
|
};
|
|
1591
1591
|
});
|
|
1592
1592
|
}), I = y(() => {
|
|
1593
1593
|
const g = ["vf-datepicker", `vf-datepicker_${a.variant}`, l.value ? "vf-datepicker_open" : ""];
|
|
1594
1594
|
return a.size !== "normal" && g.push(`vf-datepicker_${a.size}`), a.disabled && g.push("vf-datepicker_disabled"), g.filter(Boolean);
|
|
1595
|
-
}),
|
|
1595
|
+
}), M = (g) => o("focus", g), E = (g) => o("blur", g), F = () => {
|
|
1596
1596
|
a.disabled || a.readonly || (l.value = !0, u.value = "bottom", s.value = "bottom");
|
|
1597
|
-
},
|
|
1597
|
+
}, b = () => {
|
|
1598
1598
|
l.value = !1, u.value = "bottom", s.value = "bottom";
|
|
1599
|
-
},
|
|
1599
|
+
}, h = () => {
|
|
1600
1600
|
if (l.value) {
|
|
1601
|
-
|
|
1601
|
+
b();
|
|
1602
1602
|
return;
|
|
1603
1603
|
}
|
|
1604
1604
|
F();
|
|
@@ -1610,72 +1610,72 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1610
1610
|
if (a.readonly || oe(g, w.value, C.value))
|
|
1611
1611
|
return;
|
|
1612
1612
|
const B = N(g);
|
|
1613
|
-
o("update:modelValue", B), o("change", B),
|
|
1614
|
-
},
|
|
1615
|
-
var
|
|
1613
|
+
o("update:modelValue", B), o("change", B), b();
|
|
1614
|
+
}, q = (g) => {
|
|
1615
|
+
var V;
|
|
1616
1616
|
if (!l.value || !d.value)
|
|
1617
1617
|
return;
|
|
1618
1618
|
const B = g.target;
|
|
1619
|
-
d.value.contains(B) || (
|
|
1619
|
+
d.value.contains(B) || (V = c.value) != null && V.contains(B) || b();
|
|
1620
1620
|
}, te = () => {
|
|
1621
1621
|
if (!i.value || !c.value)
|
|
1622
1622
|
return;
|
|
1623
|
-
const g = i.value, B = c.value,
|
|
1623
|
+
const g = i.value, B = c.value, V = async () => {
|
|
1624
1624
|
const {
|
|
1625
1625
|
x: ye,
|
|
1626
|
-
y:
|
|
1627
|
-
placement:
|
|
1628
|
-
} = await
|
|
1626
|
+
y: We,
|
|
1627
|
+
placement: Ae
|
|
1628
|
+
} = await Re(g, B, {
|
|
1629
1629
|
placement: u.value,
|
|
1630
1630
|
strategy: "fixed",
|
|
1631
|
-
middleware: [
|
|
1631
|
+
middleware: [Te(2), Ve({ placements: ["bottom", "top"] })]
|
|
1632
1632
|
});
|
|
1633
|
-
s.value =
|
|
1633
|
+
s.value = Ae ?? u.value, B.style.left = `${ye}px`, B.style.top = `${We}px`;
|
|
1634
1634
|
}, G = async () => {
|
|
1635
|
-
await
|
|
1635
|
+
await V();
|
|
1636
1636
|
}, le = Le(g, () => {
|
|
1637
1637
|
G();
|
|
1638
1638
|
}), J = () => {
|
|
1639
1639
|
G();
|
|
1640
1640
|
};
|
|
1641
|
-
document.addEventListener("scroll", J, !0), window.addEventListener("resize", J, !1),
|
|
1641
|
+
document.addEventListener("scroll", J, !0), window.addEventListener("resize", J, !1), p = {
|
|
1642
1642
|
update: G,
|
|
1643
1643
|
destroy: () => {
|
|
1644
1644
|
le(), document.removeEventListener("scroll", J, !0), window.removeEventListener("resize", J, !1);
|
|
1645
1645
|
}
|
|
1646
|
-
},
|
|
1646
|
+
}, p.update();
|
|
1647
1647
|
};
|
|
1648
1648
|
ee(
|
|
1649
1649
|
() => a.modelValue,
|
|
1650
1650
|
(g) => {
|
|
1651
|
-
const B =
|
|
1651
|
+
const B = X(g);
|
|
1652
1652
|
B && (f.value = Q(B));
|
|
1653
1653
|
},
|
|
1654
1654
|
{ immediate: !0 }
|
|
1655
1655
|
), ee(
|
|
1656
1656
|
() => [a.min, a.max],
|
|
1657
1657
|
() => {
|
|
1658
|
-
|
|
1658
|
+
p == null || p.update();
|
|
1659
1659
|
}
|
|
1660
1660
|
), ee(l, async (g) => {
|
|
1661
1661
|
if (!g) {
|
|
1662
|
-
|
|
1662
|
+
p && (p.destroy(), p = null);
|
|
1663
1663
|
return;
|
|
1664
1664
|
}
|
|
1665
|
-
await ke(),
|
|
1665
|
+
await ke(), p || te(), p == null || p.update();
|
|
1666
1666
|
}), Fe(() => {
|
|
1667
|
-
document.addEventListener("click",
|
|
1667
|
+
document.addEventListener("click", q);
|
|
1668
1668
|
}), we(() => {
|
|
1669
|
-
document.removeEventListener("click",
|
|
1669
|
+
document.removeEventListener("click", q), p == null || p.destroy(), p = null;
|
|
1670
1670
|
});
|
|
1671
|
-
function
|
|
1671
|
+
function X(g) {
|
|
1672
1672
|
if (!g)
|
|
1673
1673
|
return null;
|
|
1674
1674
|
const B = g.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
1675
1675
|
if (!B)
|
|
1676
1676
|
return null;
|
|
1677
|
-
const
|
|
1678
|
-
return J.getFullYear() !==
|
|
1677
|
+
const V = Number(B[1]), G = Number(B[2]) - 1, le = Number(B[3]), J = new Date(V, G, le);
|
|
1678
|
+
return J.getFullYear() !== V || J.getMonth() !== G || J.getDate() !== le ? null : re(J);
|
|
1679
1679
|
}
|
|
1680
1680
|
function re(g) {
|
|
1681
1681
|
return new Date(g.getFullYear(), g.getMonth(), g.getDate());
|
|
@@ -1690,21 +1690,21 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1690
1690
|
return new Date(g.getFullYear(), g.getMonth(), g.getDate() + B);
|
|
1691
1691
|
}
|
|
1692
1692
|
function K(g, B) {
|
|
1693
|
-
const
|
|
1694
|
-
return x(
|
|
1693
|
+
const V = Q(g), le = (V.getDay() - B + 7) % 7;
|
|
1694
|
+
return x(V, -le);
|
|
1695
1695
|
}
|
|
1696
1696
|
function N(g) {
|
|
1697
|
-
const B = g.getFullYear(),
|
|
1698
|
-
return `${B}-${
|
|
1697
|
+
const B = g.getFullYear(), V = `${g.getMonth() + 1}`.padStart(2, "0"), G = `${g.getDate()}`.padStart(2, "0");
|
|
1698
|
+
return `${B}-${V}-${G}`;
|
|
1699
1699
|
}
|
|
1700
|
-
function oe(g, B,
|
|
1700
|
+
function oe(g, B, V) {
|
|
1701
1701
|
const G = re(g).getTime();
|
|
1702
|
-
return !!(B && G < B.getTime() ||
|
|
1702
|
+
return !!(B && G < B.getTime() || V && G > V.getTime());
|
|
1703
1703
|
}
|
|
1704
|
-
return (g, B) => (
|
|
1704
|
+
return (g, B) => (m(), _("div", {
|
|
1705
1705
|
ref_key: "root",
|
|
1706
1706
|
ref: d,
|
|
1707
|
-
class:
|
|
1707
|
+
class: L(I.value)
|
|
1708
1708
|
}, [
|
|
1709
1709
|
z("button", {
|
|
1710
1710
|
ref_key: "control",
|
|
@@ -1715,24 +1715,24 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1715
1715
|
"aria-expanded": l.value,
|
|
1716
1716
|
"aria-controls": n,
|
|
1717
1717
|
"aria-haspopup": "dialog",
|
|
1718
|
-
onClick:
|
|
1718
|
+
onClick: h,
|
|
1719
1719
|
onKeydown: [
|
|
1720
|
-
Z(
|
|
1721
|
-
Z(
|
|
1722
|
-
Z(
|
|
1720
|
+
Z(U(F, ["prevent"]), ["down"]),
|
|
1721
|
+
Z(U(h, ["prevent"]), ["enter"]),
|
|
1722
|
+
Z(U(b, ["prevent"]), ["esc"])
|
|
1723
1723
|
],
|
|
1724
|
-
onFocus:
|
|
1724
|
+
onFocus: M,
|
|
1725
1725
|
onBlur: E
|
|
1726
1726
|
}, [
|
|
1727
1727
|
z("span", {
|
|
1728
|
-
class:
|
|
1728
|
+
class: L(["vf-datepicker__label", { "vf-datepicker__label_placeholder": !v.value }])
|
|
1729
1729
|
}, R($.value || g.placeholder), 3),
|
|
1730
1730
|
B[0] || (B[0] = z("span", {
|
|
1731
1731
|
class: "vf-datepicker__chevron",
|
|
1732
1732
|
"aria-hidden": "true"
|
|
1733
1733
|
}, "▾", -1))
|
|
1734
1734
|
], 40, _o),
|
|
1735
|
-
(
|
|
1735
|
+
(m(), ne($e, { to: "body" }, [
|
|
1736
1736
|
fe(z("div", {
|
|
1737
1737
|
id: n,
|
|
1738
1738
|
ref_key: "panel",
|
|
@@ -1740,7 +1740,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1740
1740
|
class: "vf-datepicker__panel",
|
|
1741
1741
|
role: "dialog",
|
|
1742
1742
|
"data-placement": s.value,
|
|
1743
|
-
onKeydown: Z(
|
|
1743
|
+
onKeydown: Z(U(b, ["prevent"]), ["esc"])
|
|
1744
1744
|
}, [
|
|
1745
1745
|
z("div", ko, [
|
|
1746
1746
|
z("button", {
|
|
@@ -1749,7 +1749,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1749
1749
|
"aria-label": "Previous month",
|
|
1750
1750
|
onClick: k
|
|
1751
1751
|
}, " ‹ "),
|
|
1752
|
-
z("span", wo, R(
|
|
1752
|
+
z("span", wo, R(D.value), 1),
|
|
1753
1753
|
z("button", {
|
|
1754
1754
|
class: "vf-datepicker__nav",
|
|
1755
1755
|
type: "button",
|
|
@@ -1758,24 +1758,24 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1758
1758
|
}, " › ")
|
|
1759
1759
|
]),
|
|
1760
1760
|
z("div", $o, [
|
|
1761
|
-
(
|
|
1762
|
-
key:
|
|
1761
|
+
(m(!0), _(ae, null, ve(T.value, (V) => (m(), _("span", {
|
|
1762
|
+
key: V,
|
|
1763
1763
|
class: "vf-datepicker__weekday"
|
|
1764
|
-
}, R(
|
|
1764
|
+
}, R(V), 1))), 128))
|
|
1765
1765
|
]),
|
|
1766
1766
|
z("div", xo, [
|
|
1767
|
-
(
|
|
1768
|
-
key:
|
|
1769
|
-
class:
|
|
1770
|
-
"is-outside": !
|
|
1771
|
-
"is-selected":
|
|
1772
|
-
"is-today":
|
|
1767
|
+
(m(!0), _(ae, null, ve(H.value, (V) => (m(), _("button", {
|
|
1768
|
+
key: V.key,
|
|
1769
|
+
class: L(["vf-datepicker__day", {
|
|
1770
|
+
"is-outside": !V.inCurrentMonth,
|
|
1771
|
+
"is-selected": V.isSelected,
|
|
1772
|
+
"is-today": V.isToday
|
|
1773
1773
|
}]),
|
|
1774
1774
|
type: "button",
|
|
1775
|
-
disabled:
|
|
1776
|
-
"data-date":
|
|
1777
|
-
onClick: (G) => A(
|
|
1778
|
-
}, R(
|
|
1775
|
+
disabled: V.isDisabled,
|
|
1776
|
+
"data-date": V.iso,
|
|
1777
|
+
onClick: (G) => A(V.date)
|
|
1778
|
+
}, R(V.day), 11, Bo))), 128))
|
|
1779
1779
|
])
|
|
1780
1780
|
], 40, Co), [
|
|
1781
1781
|
[pe, l.value]
|
|
@@ -1783,7 +1783,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1783
1783
|
]))
|
|
1784
1784
|
], 2));
|
|
1785
1785
|
}
|
|
1786
|
-
}), zo = ["disabled"],
|
|
1786
|
+
}), zo = ["disabled"], So = ["disabled", "aria-current", "aria-label", "onClick"], Fo = ["disabled"], Sr = /* @__PURE__ */ Y({
|
|
1787
1787
|
__name: "pagination",
|
|
1788
1788
|
props: {
|
|
1789
1789
|
modelValue: { default: 1 },
|
|
@@ -1814,30 +1814,30 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1814
1814
|
const v = Math.max(1, Math.floor(r.pageSize));
|
|
1815
1815
|
return Math.max(1, Math.ceil(Math.max(0, r.totalItems) / v));
|
|
1816
1816
|
}), c = y(() => a(Math.floor(r.modelValue), 1, i.value)), l = y(() => c.value <= 1), u = y(() => c.value >= i.value), s = y(() => r.disabled || i.value <= 1), n = y(() => {
|
|
1817
|
-
const v = i.value, w = c.value, C = Math.max(0, Math.floor(r.siblingCount)), $ = Math.max(0, Math.floor(r.boundaryCount)),
|
|
1818
|
-
if (v <=
|
|
1817
|
+
const v = i.value, w = c.value, C = Math.max(0, Math.floor(r.siblingCount)), $ = Math.max(0, Math.floor(r.boundaryCount)), D = C * 2 + $ * 2 + 3, T = [];
|
|
1818
|
+
if (v <= D)
|
|
1819
1819
|
return d(1, v).map((F) => ({ key: `page-${F}`, type: "page", page: F }));
|
|
1820
|
-
const H = d(1, $), I = d(v - $ + 1, v),
|
|
1820
|
+
const H = d(1, $), I = d(v - $ + 1, v), M = Math.max(Math.min(w - C, v - $ - C * 2 - 1), $ + 2), E = Math.min(Math.max(w + C, $ + C * 2 + 2), v - $ - 1);
|
|
1821
1821
|
for (const F of H)
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
for (const F of d(
|
|
1825
|
-
|
|
1826
|
-
E < v - $ - 1 ?
|
|
1822
|
+
T.push({ key: `page-${F}`, type: "page", page: F });
|
|
1823
|
+
M > $ + 2 ? T.push({ key: "ellipsis-start", type: "ellipsis", page: -1 }) : $ + 1 <= v - $ && T.push({ key: `page-${$ + 1}`, type: "page", page: $ + 1 });
|
|
1824
|
+
for (const F of d(M, E))
|
|
1825
|
+
T.push({ key: `page-${F}`, type: "page", page: F });
|
|
1826
|
+
E < v - $ - 1 ? T.push({ key: "ellipsis-end", type: "ellipsis", page: -2 }) : v - $ > $ && T.push({ key: `page-${v - $}`, type: "page", page: v - $ });
|
|
1827
1827
|
for (const F of I)
|
|
1828
|
-
|
|
1829
|
-
return
|
|
1828
|
+
T.push({ key: `page-${F}`, type: "page", page: F });
|
|
1829
|
+
return T;
|
|
1830
1830
|
}), f = y(() => {
|
|
1831
1831
|
const v = ["vf-pagination", `vf-pagination_${r.variant}`];
|
|
1832
1832
|
return r.size !== "normal" && v.push(`vf-pagination_${r.size}`), r.disabled && v.push("vf-pagination_disabled"), v;
|
|
1833
|
-
}),
|
|
1833
|
+
}), p = (v, w) => {
|
|
1834
1834
|
if (s.value)
|
|
1835
1835
|
return;
|
|
1836
1836
|
const C = a(v, 1, i.value);
|
|
1837
1837
|
C !== r.modelValue && (o("update:modelValue", C), o("change", C, w));
|
|
1838
1838
|
};
|
|
1839
|
-
return (v, w) => (
|
|
1840
|
-
class:
|
|
1839
|
+
return (v, w) => (m(), _("nav", {
|
|
1840
|
+
class: L(f.value),
|
|
1841
1841
|
"aria-label": "Pagination"
|
|
1842
1842
|
}, [
|
|
1843
1843
|
z("button", {
|
|
@@ -1845,11 +1845,11 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1845
1845
|
type: "button",
|
|
1846
1846
|
disabled: s.value || l.value,
|
|
1847
1847
|
"aria-label": "Previous page",
|
|
1848
|
-
onClick: w[0] || (w[0] = (C) =>
|
|
1848
|
+
onClick: w[0] || (w[0] = (C) => p(c.value - 1, C))
|
|
1849
1849
|
}, R(v.prevLabel), 9, zo),
|
|
1850
|
-
(
|
|
1850
|
+
(m(!0), _(ae, null, ve(n.value, (C) => (m(), _("button", {
|
|
1851
1851
|
key: C.key,
|
|
1852
|
-
class:
|
|
1852
|
+
class: L(["vf-pagination__item", {
|
|
1853
1853
|
"is-current": C.type === "page" && C.page === c.value,
|
|
1854
1854
|
"is-ellipsis": C.type === "ellipsis"
|
|
1855
1855
|
}]),
|
|
@@ -1857,27 +1857,27 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1857
1857
|
disabled: s.value || C.type === "ellipsis",
|
|
1858
1858
|
"aria-current": C.type === "page" && C.page === c.value ? "page" : void 0,
|
|
1859
1859
|
"aria-label": C.type === "page" ? `Page ${C.page}` : void 0,
|
|
1860
|
-
onClick: ($) => C.type === "page" &&
|
|
1860
|
+
onClick: ($) => C.type === "page" && p(C.page, $)
|
|
1861
1861
|
}, [
|
|
1862
|
-
C.type === "page" ? (
|
|
1863
|
-
|
|
1864
|
-
], 64)) : (
|
|
1865
|
-
|
|
1862
|
+
C.type === "page" ? (m(), _(ae, { key: 0 }, [
|
|
1863
|
+
j(R(C.page), 1)
|
|
1864
|
+
], 64)) : (m(), _(ae, { key: 1 }, [
|
|
1865
|
+
j(R(v.ellipsisLabel), 1)
|
|
1866
1866
|
], 64))
|
|
1867
|
-
], 10,
|
|
1867
|
+
], 10, So))), 128)),
|
|
1868
1868
|
z("button", {
|
|
1869
1869
|
class: "vf-pagination__item vf-pagination__item_nav",
|
|
1870
1870
|
type: "button",
|
|
1871
1871
|
disabled: s.value || u.value,
|
|
1872
1872
|
"aria-label": "Next page",
|
|
1873
|
-
onClick: w[1] || (w[1] = (C) =>
|
|
1874
|
-
}, R(v.nextLabel), 9,
|
|
1873
|
+
onClick: w[1] || (w[1] = (C) => p(c.value + 1, C))
|
|
1874
|
+
}, R(v.nextLabel), 9, Fo)
|
|
1875
1875
|
], 2));
|
|
1876
1876
|
}
|
|
1877
|
-
}), Vo = ["checked", "disabled"],
|
|
1877
|
+
}), Vo = ["checked", "disabled"], To = {
|
|
1878
1878
|
key: 0,
|
|
1879
1879
|
class: "vf-checkbox__label"
|
|
1880
|
-
},
|
|
1880
|
+
}, Fr = /* @__PURE__ */ Y({
|
|
1881
1881
|
__name: "checkbox",
|
|
1882
1882
|
props: {
|
|
1883
1883
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -1894,8 +1894,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1894
1894
|
const c = i.target;
|
|
1895
1895
|
r("update:modelValue", c.checked), r("change", i);
|
|
1896
1896
|
};
|
|
1897
|
-
return (i, c) => (
|
|
1898
|
-
class:
|
|
1897
|
+
return (i, c) => (m(), _("label", {
|
|
1898
|
+
class: L(a.value)
|
|
1899
1899
|
}, [
|
|
1900
1900
|
z("input", {
|
|
1901
1901
|
class: "vf-checkbox__control",
|
|
@@ -1905,14 +1905,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1905
1905
|
onChange: d
|
|
1906
1906
|
}, null, 40, Vo),
|
|
1907
1907
|
c[0] || (c[0] = z("span", { class: "vf-checkbox__box" }, null, -1)),
|
|
1908
|
-
i.label || i.$slots.default ? (
|
|
1909
|
-
|
|
1910
|
-
|
|
1908
|
+
i.label || i.$slots.default ? (m(), _("span", To, [
|
|
1909
|
+
S(i.$slots, "default", {}, () => [
|
|
1910
|
+
j(R(i.label), 1)
|
|
1911
1911
|
])
|
|
1912
1912
|
])) : P("", !0)
|
|
1913
1913
|
], 2));
|
|
1914
1914
|
}
|
|
1915
|
-
}), at = Symbol("VueForgeRadioGroup"),
|
|
1915
|
+
}), at = Symbol("VueForgeRadioGroup"), Lo = ["aria-disabled", "aria-label", "aria-labelledby"], Vr = /* @__PURE__ */ Y({
|
|
1916
1916
|
__name: "radio-group",
|
|
1917
1917
|
props: {
|
|
1918
1918
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -1937,20 +1937,20 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1937
1937
|
variant: y(() => o.variant),
|
|
1938
1938
|
onChange: d
|
|
1939
1939
|
};
|
|
1940
|
-
return
|
|
1941
|
-
class:
|
|
1940
|
+
return Ke(at, i), (c, l) => (m(), _("div", {
|
|
1941
|
+
class: L(a.value),
|
|
1942
1942
|
role: "radiogroup",
|
|
1943
1943
|
"aria-disabled": c.disabled || void 0,
|
|
1944
1944
|
"aria-label": c.ariaLabel || void 0,
|
|
1945
1945
|
"aria-labelledby": c.ariaLabelledby || void 0
|
|
1946
1946
|
}, [
|
|
1947
|
-
|
|
1948
|
-
], 10,
|
|
1947
|
+
S(c.$slots, "default")
|
|
1948
|
+
], 10, Lo));
|
|
1949
1949
|
}
|
|
1950
1950
|
}), Ro = ["name", "value", "checked", "disabled"], Po = {
|
|
1951
1951
|
key: 0,
|
|
1952
1952
|
class: "vf-radio__label"
|
|
1953
|
-
},
|
|
1953
|
+
}, Tr = /* @__PURE__ */ Y({
|
|
1954
1954
|
__name: "radio-button",
|
|
1955
1955
|
props: {
|
|
1956
1956
|
modelValue: { type: [String, Number, Boolean, null], default: void 0 },
|
|
@@ -1962,14 +1962,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1962
1962
|
},
|
|
1963
1963
|
emits: ["update:modelValue", "change"],
|
|
1964
1964
|
setup(t, { emit: e }) {
|
|
1965
|
-
const r = e, o = t, a =
|
|
1965
|
+
const r = e, o = t, a = Oe(at, null), d = y(() => a ? a.modelValue.value : o.modelValue), i = y(() => a ? a.name.value : o.name), c = y(() => a ? a.variant.value : o.variant), l = y(() => (a ? a.disabled.value : !1) || o.disabled), u = y(() => d.value === o.value), s = y(() => {
|
|
1966
1966
|
const f = ["vf-radio", `vf-radio_${c.value}`];
|
|
1967
1967
|
return l.value && f.push("vf-radio_disabled"), f;
|
|
1968
1968
|
}), n = (f) => {
|
|
1969
1969
|
l.value || (a ? a.onChange(o.value, f) : r("update:modelValue", o.value), r("change", o.value, f));
|
|
1970
1970
|
};
|
|
1971
|
-
return (f,
|
|
1972
|
-
class:
|
|
1971
|
+
return (f, p) => (m(), _("label", {
|
|
1972
|
+
class: L(s.value)
|
|
1973
1973
|
}, [
|
|
1974
1974
|
z("input", {
|
|
1975
1975
|
class: "vf-radio__control",
|
|
@@ -1980,15 +1980,15 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
1980
1980
|
disabled: l.value,
|
|
1981
1981
|
onChange: n
|
|
1982
1982
|
}, null, 40, Ro),
|
|
1983
|
-
|
|
1984
|
-
f.label || f.$slots.default ? (
|
|
1985
|
-
|
|
1986
|
-
|
|
1983
|
+
p[0] || (p[0] = z("span", { class: "vf-radio__circle" }, null, -1)),
|
|
1984
|
+
f.label || f.$slots.default ? (m(), _("span", Po, [
|
|
1985
|
+
S(f.$slots, "default", {}, () => [
|
|
1986
|
+
j(R(f.label), 1)
|
|
1987
1987
|
])
|
|
1988
1988
|
])) : P("", !0)
|
|
1989
1989
|
], 2));
|
|
1990
1990
|
}
|
|
1991
|
-
}),
|
|
1991
|
+
}), Ne = Symbol("VueForgeTabs"), Io = ["aria-orientation", "aria-label", "aria-labelledby"], Mo = { class: "vf-tabs__panels" }, Lr = /* @__PURE__ */ Y({
|
|
1992
1992
|
__name: "tabs",
|
|
1993
1993
|
props: {
|
|
1994
1994
|
modelValue: { default: void 0 },
|
|
@@ -2003,23 +2003,23 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2003
2003
|
const o = e, a = t, d = ++r, i = (v) => String(v).toLowerCase().trim().replace(/\s+/g, "-").replace(/[^a-z0-9_-]/g, ""), c = y(() => {
|
|
2004
2004
|
const v = ["vf-tabs"];
|
|
2005
2005
|
return a.orientation === "vertical" && v.push("vf-tabs_vertical"), a.disabled && v.push("vf-tabs_disabled"), v;
|
|
2006
|
-
}), l =
|
|
2006
|
+
}), l = O(null), u = () => l.value ? Array.from(l.value.querySelectorAll('[role="tab"]:not([disabled])')) : [], s = (v) => {
|
|
2007
2007
|
v && (v.focus(), v.click());
|
|
2008
2008
|
}, n = (v) => {
|
|
2009
2009
|
if (a.disabled)
|
|
2010
2010
|
return;
|
|
2011
|
-
const w = a.orientation === "horizontal", C = v.key, $ = w ? ["ArrowRight"] : ["ArrowDown"],
|
|
2012
|
-
if (![...$, ...
|
|
2011
|
+
const w = a.orientation === "horizontal", C = v.key, $ = w ? ["ArrowRight"] : ["ArrowDown"], D = w ? ["ArrowLeft"] : ["ArrowUp"];
|
|
2012
|
+
if (![...$, ...D, "Home", "End"].includes(C))
|
|
2013
2013
|
return;
|
|
2014
|
-
const
|
|
2015
|
-
if (!
|
|
2014
|
+
const T = u();
|
|
2015
|
+
if (!T.length)
|
|
2016
2016
|
return;
|
|
2017
|
-
const H =
|
|
2018
|
-
let E =
|
|
2019
|
-
$.includes(C) ? E = (
|
|
2017
|
+
const H = T.findIndex((F) => F.getAttribute("aria-selected") === "true"), I = T.findIndex((F) => F === document.activeElement), M = I >= 0 ? I : Math.max(H, 0);
|
|
2018
|
+
let E = M;
|
|
2019
|
+
$.includes(C) ? E = (M + 1) % T.length : D.includes(C) ? E = (M - 1 + T.length) % T.length : C === "Home" ? E = 0 : C === "End" && (E = T.length - 1), v.preventDefault(), s(T[E]);
|
|
2020
2020
|
}, f = (v, w) => {
|
|
2021
2021
|
o("update:modelValue", v), o("change", v, w);
|
|
2022
|
-
},
|
|
2022
|
+
}, p = {
|
|
2023
2023
|
activeValue: y(() => a.modelValue),
|
|
2024
2024
|
disabled: y(() => a.disabled),
|
|
2025
2025
|
orientation: y(() => a.orientation),
|
|
@@ -2027,8 +2027,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2027
2027
|
getTabId: (v) => `vf-tab-${d}-${i(v)}`,
|
|
2028
2028
|
getPanelId: (v) => `vf-tabpanel-${d}-${i(v)}`
|
|
2029
2029
|
};
|
|
2030
|
-
return
|
|
2031
|
-
class:
|
|
2030
|
+
return Ke(Ne, p), (v, w) => (m(), _("div", {
|
|
2031
|
+
class: L(c.value)
|
|
2032
2032
|
}, [
|
|
2033
2033
|
z("div", {
|
|
2034
2034
|
ref_key: "list",
|
|
@@ -2040,14 +2040,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2040
2040
|
"aria-labelledby": v.ariaLabelledby || void 0,
|
|
2041
2041
|
onKeydown: n
|
|
2042
2042
|
}, [
|
|
2043
|
-
|
|
2043
|
+
S(v.$slots, "tabs")
|
|
2044
2044
|
], 40, Io),
|
|
2045
|
-
z("div",
|
|
2046
|
-
|
|
2045
|
+
z("div", Mo, [
|
|
2046
|
+
S(v.$slots, "panels")
|
|
2047
2047
|
])
|
|
2048
2048
|
], 2));
|
|
2049
2049
|
}
|
|
2050
|
-
}),
|
|
2050
|
+
}), Do = ["id", "aria-selected", "aria-controls", "disabled", "tabindex"], Rr = /* @__PURE__ */ Y({
|
|
2051
2051
|
__name: "tab",
|
|
2052
2052
|
props: {
|
|
2053
2053
|
value: {},
|
|
@@ -2056,12 +2056,12 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2056
2056
|
},
|
|
2057
2057
|
emits: ["change"],
|
|
2058
2058
|
setup(t, { emit: e }) {
|
|
2059
|
-
const r = e, o = t, a =
|
|
2059
|
+
const r = e, o = t, a = Oe(Ne, null), d = y(() => (a == null ? void 0 : a.activeValue.value) === o.value), i = y(() => ((a == null ? void 0 : a.disabled.value) ?? !1) || o.disabled), c = y(() => a ? a.getTabId(o.value) : void 0), l = y(() => a ? a.getPanelId(o.value) : void 0), u = y(() => i.value ? -1 : d.value ? 0 : -1), s = (n) => {
|
|
2060
2060
|
!a || i.value || (a.onChange(o.value, n), r("change", o.value, n));
|
|
2061
2061
|
};
|
|
2062
|
-
return (n, f) => (
|
|
2062
|
+
return (n, f) => (m(), _("button", {
|
|
2063
2063
|
id: c.value,
|
|
2064
|
-
class:
|
|
2064
|
+
class: L(["vf-tab", { "vf-tab_active": d.value, "vf-tab_disabled": i.value }]),
|
|
2065
2065
|
type: "button",
|
|
2066
2066
|
role: "tab",
|
|
2067
2067
|
"aria-selected": d.value,
|
|
@@ -2070,31 +2070,31 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2070
2070
|
tabindex: u.value,
|
|
2071
2071
|
onClick: s
|
|
2072
2072
|
}, [
|
|
2073
|
-
|
|
2074
|
-
|
|
2073
|
+
S(n.$slots, "default", {}, () => [
|
|
2074
|
+
j(R(n.label), 1)
|
|
2075
2075
|
])
|
|
2076
|
-
], 10,
|
|
2076
|
+
], 10, Do));
|
|
2077
2077
|
}
|
|
2078
|
-
}),
|
|
2078
|
+
}), Oo = ["id", "aria-labelledby"], Pr = /* @__PURE__ */ Y({
|
|
2079
2079
|
__name: "tab-panel",
|
|
2080
2080
|
props: {
|
|
2081
2081
|
value: {}
|
|
2082
2082
|
},
|
|
2083
2083
|
setup(t) {
|
|
2084
|
-
const e = t, r =
|
|
2085
|
-
return (i, c) => fe((
|
|
2084
|
+
const e = t, r = Oe(Ne, null), o = y(() => (r == null ? void 0 : r.activeValue.value) === e.value), a = y(() => r ? r.getTabId(e.value) : void 0), d = y(() => r ? r.getPanelId(e.value) : void 0);
|
|
2085
|
+
return (i, c) => fe((m(), _("div", {
|
|
2086
2086
|
id: d.value,
|
|
2087
2087
|
class: "vf-tab-panel",
|
|
2088
2088
|
role: "tabpanel",
|
|
2089
2089
|
tabindex: "0",
|
|
2090
2090
|
"aria-labelledby": a.value
|
|
2091
2091
|
}, [
|
|
2092
|
-
|
|
2093
|
-
], 8,
|
|
2092
|
+
S(i.$slots, "default")
|
|
2093
|
+
], 8, Oo)), [
|
|
2094
2094
|
[pe, o.value]
|
|
2095
2095
|
]);
|
|
2096
2096
|
}
|
|
2097
|
-
}), rt = Symbol("VueForgeAccordion"), Wo = ["aria-label", "aria-labelledby"],
|
|
2097
|
+
}), rt = Symbol("VueForgeAccordion"), Wo = ["aria-label", "aria-labelledby"], Ir = /* @__PURE__ */ Y({
|
|
2098
2098
|
__name: "accordion",
|
|
2099
2099
|
props: {
|
|
2100
2100
|
modelValue: { default: void 0 },
|
|
@@ -2119,8 +2119,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2119
2119
|
o("update:modelValue", C), o("change", C, f);
|
|
2120
2120
|
return;
|
|
2121
2121
|
}
|
|
2122
|
-
const
|
|
2123
|
-
o("update:modelValue",
|
|
2122
|
+
const p = a.modelValue === n ? void 0 : n;
|
|
2123
|
+
o("update:modelValue", p), o("change", p, f);
|
|
2124
2124
|
}, s = {
|
|
2125
2125
|
modelValue: y(() => a.modelValue),
|
|
2126
2126
|
multiple: y(() => a.multiple),
|
|
@@ -2131,15 +2131,15 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2131
2131
|
getHeaderId: (n) => `vf-accordion-header-${d}-${i(n)}`,
|
|
2132
2132
|
getPanelId: (n) => `vf-accordion-panel-${d}-${i(n)}`
|
|
2133
2133
|
};
|
|
2134
|
-
return
|
|
2135
|
-
class:
|
|
2134
|
+
return Ke(rt, s), (n, f) => (m(), _("div", {
|
|
2135
|
+
class: L(c.value),
|
|
2136
2136
|
"aria-label": n.ariaLabel || void 0,
|
|
2137
2137
|
"aria-labelledby": n.ariaLabelledby || void 0
|
|
2138
2138
|
}, [
|
|
2139
|
-
|
|
2139
|
+
S(n.$slots, "default")
|
|
2140
2140
|
], 10, Wo));
|
|
2141
2141
|
}
|
|
2142
|
-
}), Ao = ["id", "disabled", "aria-expanded", "aria-controls"], Eo = { class: "vf-accordion__title" }, Ho = ["id", "aria-labelledby", "aria-hidden"], Ko = { class: "vf-accordion__panel-inner" },
|
|
2142
|
+
}), Ao = ["id", "disabled", "aria-expanded", "aria-controls"], Eo = { class: "vf-accordion__title" }, Ho = ["id", "aria-labelledby", "aria-hidden"], Ko = { class: "vf-accordion__panel-inner" }, Mr = /* @__PURE__ */ Y({
|
|
2143
2143
|
__name: "accordion-item",
|
|
2144
2144
|
props: {
|
|
2145
2145
|
value: {},
|
|
@@ -2148,7 +2148,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2148
2148
|
unmount: { type: Boolean, default: !1 }
|
|
2149
2149
|
},
|
|
2150
2150
|
setup(t) {
|
|
2151
|
-
const e = t, r =
|
|
2151
|
+
const e = t, r = Oe(rt, null), o = y(() => {
|
|
2152
2152
|
if (!r)
|
|
2153
2153
|
return !1;
|
|
2154
2154
|
const s = r.modelValue.value;
|
|
@@ -2159,8 +2159,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2159
2159
|
}), u = (s) => {
|
|
2160
2160
|
!r || a.value || r.onToggle(e.value, s);
|
|
2161
2161
|
};
|
|
2162
|
-
return (s, n) => (
|
|
2163
|
-
class:
|
|
2162
|
+
return (s, n) => (m(), _("div", {
|
|
2163
|
+
class: L(l.value)
|
|
2164
2164
|
}, [
|
|
2165
2165
|
z("button", {
|
|
2166
2166
|
id: d.value,
|
|
@@ -2172,8 +2172,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2172
2172
|
onClick: u
|
|
2173
2173
|
}, [
|
|
2174
2174
|
z("span", Eo, [
|
|
2175
|
-
|
|
2176
|
-
|
|
2175
|
+
S(s.$slots, "title", {}, () => [
|
|
2176
|
+
j(R(s.title), 1)
|
|
2177
2177
|
])
|
|
2178
2178
|
]),
|
|
2179
2179
|
n[0] || (n[0] = z("span", {
|
|
@@ -2181,27 +2181,27 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2181
2181
|
"aria-hidden": "true"
|
|
2182
2182
|
}, null, -1))
|
|
2183
2183
|
], 8, Ao),
|
|
2184
|
-
c.value ? (
|
|
2184
|
+
c.value ? (m(), _("div", {
|
|
2185
2185
|
key: 0,
|
|
2186
2186
|
id: i.value,
|
|
2187
|
-
class:
|
|
2187
|
+
class: L(["vf-accordion__panel", { "vf-accordion__panel_open": o.value }]),
|
|
2188
2188
|
role: "region",
|
|
2189
2189
|
"aria-labelledby": d.value,
|
|
2190
2190
|
"aria-hidden": o.value ? void 0 : "true"
|
|
2191
2191
|
}, [
|
|
2192
2192
|
z("div", Ko, [
|
|
2193
|
-
|
|
2193
|
+
S(s.$slots, "default")
|
|
2194
2194
|
])
|
|
2195
2195
|
], 10, Ho)) : P("", !0)
|
|
2196
2196
|
], 2));
|
|
2197
2197
|
}
|
|
2198
|
-
}), No = ["data-severity"],
|
|
2198
|
+
}), No = ["data-severity"], Yo = { class: "vf-toast__body" }, Go = {
|
|
2199
2199
|
key: 0,
|
|
2200
2200
|
class: "vf-toast__title"
|
|
2201
2201
|
}, jo = {
|
|
2202
2202
|
key: 1,
|
|
2203
2203
|
class: "vf-toast__message"
|
|
2204
|
-
},
|
|
2204
|
+
}, Dr = /* @__PURE__ */ Y({
|
|
2205
2205
|
__name: "toast",
|
|
2206
2206
|
props: {
|
|
2207
2207
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -2232,48 +2232,48 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2232
2232
|
{ immediate: !0 }
|
|
2233
2233
|
), we(() => {
|
|
2234
2234
|
d();
|
|
2235
|
-
}), (l, u) => fe((
|
|
2235
|
+
}), (l, u) => fe((m(), _("div", {
|
|
2236
2236
|
class: "vf-toast",
|
|
2237
2237
|
role: "status",
|
|
2238
2238
|
"aria-live": "polite",
|
|
2239
2239
|
"data-severity": l.severity
|
|
2240
2240
|
}, [
|
|
2241
|
-
z("div",
|
|
2242
|
-
l.title ? (
|
|
2243
|
-
l.message || l.$slots.default ? (
|
|
2244
|
-
|
|
2245
|
-
|
|
2241
|
+
z("div", Yo, [
|
|
2242
|
+
l.title ? (m(), _("div", Go, R(l.title), 1)) : P("", !0),
|
|
2243
|
+
l.message || l.$slots.default ? (m(), _("div", jo, [
|
|
2244
|
+
S(l.$slots, "default", {}, () => [
|
|
2245
|
+
j(R(l.message), 1)
|
|
2246
2246
|
])
|
|
2247
2247
|
])) : P("", !0)
|
|
2248
2248
|
]),
|
|
2249
|
-
l.closable ? (
|
|
2249
|
+
l.closable ? (m(), _("button", {
|
|
2250
2250
|
key: 0,
|
|
2251
2251
|
class: "vf-toast__close",
|
|
2252
2252
|
type: "button",
|
|
2253
2253
|
onClick: c
|
|
2254
2254
|
}, [
|
|
2255
|
-
|
|
2256
|
-
u[0] || (u[0] =
|
|
2255
|
+
S(l.$slots, "close", {}, () => [
|
|
2256
|
+
u[0] || (u[0] = j("×"))
|
|
2257
2257
|
])
|
|
2258
2258
|
])) : P("", !0)
|
|
2259
2259
|
], 8, No)), [
|
|
2260
2260
|
[pe, l.modelValue]
|
|
2261
2261
|
]);
|
|
2262
2262
|
}
|
|
2263
|
-
}),
|
|
2263
|
+
}), Or = /* @__PURE__ */ Y({
|
|
2264
2264
|
__name: "toast-container",
|
|
2265
2265
|
props: {
|
|
2266
2266
|
position: { default: "top-right" }
|
|
2267
2267
|
},
|
|
2268
2268
|
setup(t) {
|
|
2269
2269
|
const e = t, r = y(() => `vf-toast-container_${e.position}`);
|
|
2270
|
-
return (o, a) => (
|
|
2270
|
+
return (o, a) => (m(), ne($e, { to: "body" }, [
|
|
2271
2271
|
z("div", {
|
|
2272
|
-
class:
|
|
2272
|
+
class: L(["vf-toast-container", r.value]),
|
|
2273
2273
|
role: "region",
|
|
2274
2274
|
"aria-live": "polite"
|
|
2275
2275
|
}, [
|
|
2276
|
-
|
|
2276
|
+
S(o.$slots, "default")
|
|
2277
2277
|
], 2)
|
|
2278
2278
|
]));
|
|
2279
2279
|
}
|
|
@@ -2290,7 +2290,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2290
2290
|
}, Qo = {
|
|
2291
2291
|
key: 1,
|
|
2292
2292
|
class: "vf-alert__actions"
|
|
2293
|
-
},
|
|
2293
|
+
}, Wr = /* @__PURE__ */ Y({
|
|
2294
2294
|
__name: "alert",
|
|
2295
2295
|
props: {
|
|
2296
2296
|
modelValue: { type: Boolean },
|
|
@@ -2302,7 +2302,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2302
2302
|
},
|
|
2303
2303
|
emits: ["update:modelValue", "close"],
|
|
2304
2304
|
setup(t, { emit: e }) {
|
|
2305
|
-
const r = e, o = t, a =
|
|
2305
|
+
const r = e, o = t, a = O(!0), d = y(() => typeof o.modelValue == "boolean"), i = y(() => d.value ? o.modelValue : a.value);
|
|
2306
2306
|
ee(
|
|
2307
2307
|
() => o.modelValue,
|
|
2308
2308
|
(l) => {
|
|
@@ -2313,40 +2313,40 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2313
2313
|
const c = () => {
|
|
2314
2314
|
d.value ? r("update:modelValue", !1) : a.value = !1, r("close");
|
|
2315
2315
|
};
|
|
2316
|
-
return (l, u) => fe((
|
|
2316
|
+
return (l, u) => fe((m(), _("div", {
|
|
2317
2317
|
class: "vf-alert",
|
|
2318
2318
|
role: "alert",
|
|
2319
2319
|
"data-severity": l.severity
|
|
2320
2320
|
}, [
|
|
2321
|
-
l.$slots.icon || l.icon ? (
|
|
2322
|
-
|
|
2323
|
-
|
|
2321
|
+
l.$slots.icon || l.icon ? (m(), _("div", qo, [
|
|
2322
|
+
S(l.$slots, "icon", {}, () => [
|
|
2323
|
+
j(R(l.icon), 1)
|
|
2324
2324
|
])
|
|
2325
2325
|
])) : P("", !0),
|
|
2326
2326
|
z("div", Uo, [
|
|
2327
|
-
l.title || l.$slots.title ? (
|
|
2328
|
-
|
|
2329
|
-
|
|
2327
|
+
l.title || l.$slots.title ? (m(), _("div", Zo, [
|
|
2328
|
+
S(l.$slots, "title", {}, () => [
|
|
2329
|
+
j(R(l.title), 1)
|
|
2330
2330
|
])
|
|
2331
2331
|
])) : P("", !0),
|
|
2332
|
-
l.message || l.$slots.default ? (
|
|
2333
|
-
|
|
2334
|
-
|
|
2332
|
+
l.message || l.$slots.default ? (m(), _("div", Jo, [
|
|
2333
|
+
S(l.$slots, "default", {}, () => [
|
|
2334
|
+
j(R(l.message), 1)
|
|
2335
2335
|
])
|
|
2336
2336
|
])) : P("", !0)
|
|
2337
2337
|
]),
|
|
2338
|
-
l.$slots.actions ? (
|
|
2339
|
-
|
|
2338
|
+
l.$slots.actions ? (m(), _("div", Qo, [
|
|
2339
|
+
S(l.$slots, "actions")
|
|
2340
2340
|
])) : P("", !0),
|
|
2341
|
-
l.closable ? (
|
|
2341
|
+
l.closable ? (m(), _("button", {
|
|
2342
2342
|
key: 2,
|
|
2343
2343
|
class: "vf-alert__close",
|
|
2344
2344
|
type: "button",
|
|
2345
2345
|
"aria-label": "Close",
|
|
2346
2346
|
onClick: c
|
|
2347
2347
|
}, [
|
|
2348
|
-
|
|
2349
|
-
u[0] || (u[0] =
|
|
2348
|
+
S(l.$slots, "close", {}, () => [
|
|
2349
|
+
u[0] || (u[0] = j("×"))
|
|
2350
2350
|
])
|
|
2351
2351
|
])) : P("", !0)
|
|
2352
2352
|
], 8, Xo)), [
|
|
@@ -2356,7 +2356,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2356
2356
|
}), ea = ["checked", "disabled"], ta = {
|
|
2357
2357
|
key: 0,
|
|
2358
2358
|
class: "vf-switch__label"
|
|
2359
|
-
},
|
|
2359
|
+
}, Ar = /* @__PURE__ */ Y({
|
|
2360
2360
|
__name: "switch",
|
|
2361
2361
|
props: {
|
|
2362
2362
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -2372,8 +2372,8 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2372
2372
|
const c = i.target;
|
|
2373
2373
|
r("update:modelValue", c.checked), r("change", i);
|
|
2374
2374
|
};
|
|
2375
|
-
return (i, c) => (
|
|
2376
|
-
class:
|
|
2375
|
+
return (i, c) => (m(), _("label", {
|
|
2376
|
+
class: L(a.value)
|
|
2377
2377
|
}, [
|
|
2378
2378
|
z("input", {
|
|
2379
2379
|
class: "vf-switch__control",
|
|
@@ -2385,14 +2385,14 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2385
2385
|
c[0] || (c[0] = z("span", { class: "vf-switch__track" }, [
|
|
2386
2386
|
z("span", { class: "vf-switch__thumb" })
|
|
2387
2387
|
], -1)),
|
|
2388
|
-
i.label || i.$slots.default ? (
|
|
2389
|
-
|
|
2390
|
-
|
|
2388
|
+
i.label || i.$slots.default ? (m(), _("span", ta, [
|
|
2389
|
+
S(i.$slots, "default", {}, () => [
|
|
2390
|
+
j(R(i.label), 1)
|
|
2391
2391
|
])
|
|
2392
2392
|
])) : P("", !0)
|
|
2393
2393
|
], 2));
|
|
2394
2394
|
}
|
|
2395
|
-
}), oa = { class: "vf-popover" }, aa = ["aria-expanded", "onKeydown"],
|
|
2395
|
+
}), oa = { class: "vf-popover" }, aa = ["aria-expanded", "onKeydown"], Er = /* @__PURE__ */ Y({
|
|
2396
2396
|
__name: "popover",
|
|
2397
2397
|
emits: ["click", "onClick"],
|
|
2398
2398
|
setup(t, { expose: e, emit: r }) {
|
|
@@ -2401,7 +2401,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2401
2401
|
const i = `vf-popover-panel-${++d}`, c = () => a.visible = !0, l = () => a.visible = !1, u = () => a.visible = !a.visible, s = () => {
|
|
2402
2402
|
u(), o("click"), o("onClick");
|
|
2403
2403
|
};
|
|
2404
|
-
return e({ show: c, hide: l, toggle: u }), (n, f) => (
|
|
2404
|
+
return e({ show: c, hide: l, toggle: u }), (n, f) => (m(), _("div", oa, [
|
|
2405
2405
|
z("div", {
|
|
2406
2406
|
class: "vf-popover__button",
|
|
2407
2407
|
role: "button",
|
|
@@ -2411,13 +2411,13 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2411
2411
|
"aria-controls": i,
|
|
2412
2412
|
onClick: s,
|
|
2413
2413
|
onKeydown: [
|
|
2414
|
-
Z(
|
|
2415
|
-
Z(
|
|
2414
|
+
Z(U(s, ["prevent"]), ["enter"]),
|
|
2415
|
+
Z(U(s, ["prevent"]), ["space"])
|
|
2416
2416
|
]
|
|
2417
2417
|
}, [
|
|
2418
|
-
|
|
2418
|
+
S(n.$slots, "button")
|
|
2419
2419
|
], 40, aa),
|
|
2420
|
-
fe(
|
|
2420
|
+
fe(Je(_t, {
|
|
2421
2421
|
id: i,
|
|
2422
2422
|
class: "vf-popover__wrapper"
|
|
2423
2423
|
}, it({
|
|
@@ -2429,31 +2429,31 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2429
2429
|
n.$slots.default ? {
|
|
2430
2430
|
name: "default",
|
|
2431
2431
|
fn: _e(() => [
|
|
2432
|
-
|
|
2432
|
+
S(n.$slots, "default")
|
|
2433
2433
|
]),
|
|
2434
2434
|
key: "0"
|
|
2435
2435
|
} : void 0,
|
|
2436
2436
|
n.$slots.header || n.$slots.popoverHeader ? {
|
|
2437
2437
|
name: "header",
|
|
2438
2438
|
fn: _e(() => [
|
|
2439
|
-
|
|
2440
|
-
n.$slots.header ? P("", !0) :
|
|
2439
|
+
S(n.$slots, "header"),
|
|
2440
|
+
n.$slots.header ? P("", !0) : S(n.$slots, "popoverHeader", { key: 0 })
|
|
2441
2441
|
]),
|
|
2442
2442
|
key: "1"
|
|
2443
2443
|
} : void 0,
|
|
2444
2444
|
n.$slots.body || n.$slots.popoverBody ? {
|
|
2445
2445
|
name: "body",
|
|
2446
2446
|
fn: _e(() => [
|
|
2447
|
-
|
|
2448
|
-
n.$slots.body ? P("", !0) :
|
|
2447
|
+
S(n.$slots, "body"),
|
|
2448
|
+
n.$slots.body ? P("", !0) : S(n.$slots, "popoverBody", { key: 0 })
|
|
2449
2449
|
]),
|
|
2450
2450
|
key: "2"
|
|
2451
2451
|
} : void 0,
|
|
2452
2452
|
n.$slots.footer || n.$slots.popoverFooter ? {
|
|
2453
2453
|
name: "footer",
|
|
2454
2454
|
fn: _e(() => [
|
|
2455
|
-
|
|
2456
|
-
n.$slots.footer ? P("", !0) :
|
|
2455
|
+
S(n.$slots, "footer"),
|
|
2456
|
+
n.$slots.footer ? P("", !0) : S(n.$slots, "popoverFooter", { key: 0 })
|
|
2457
2457
|
]),
|
|
2458
2458
|
key: "3"
|
|
2459
2459
|
} : void 0
|
|
@@ -2471,7 +2471,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2471
2471
|
}, sa = {
|
|
2472
2472
|
key: 3,
|
|
2473
2473
|
class: "vf-modal__footer"
|
|
2474
|
-
},
|
|
2474
|
+
}, Hr = /* @__PURE__ */ Y({
|
|
2475
2475
|
__name: "modal",
|
|
2476
2476
|
props: {
|
|
2477
2477
|
modelValue: { type: Boolean, default: !1 },
|
|
@@ -2486,34 +2486,34 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2486
2486
|
setup(t, { expose: e, emit: r }) {
|
|
2487
2487
|
const o = r, a = t;
|
|
2488
2488
|
let d = 0, i = 0, c = "", l = null;
|
|
2489
|
-
const u =
|
|
2490
|
-
const
|
|
2491
|
-
return a.size !== "md" &&
|
|
2489
|
+
const u = O(null), s = He(), n = `vf-modal-title-${++d}`, f = `vf-modal-body-${d}`, p = y(() => !!a.title || !!s.header), v = y(() => !!s.body || !!s.default), w = y(() => {
|
|
2490
|
+
const b = ["vf-modal"];
|
|
2491
|
+
return a.size !== "md" && b.push(`vf-modal_${a.size}`), b;
|
|
2492
2492
|
}), C = () => o("update:modelValue", !0), $ = () => {
|
|
2493
2493
|
o("update:modelValue", !1), o("close");
|
|
2494
|
-
},
|
|
2494
|
+
}, D = () => {
|
|
2495
2495
|
a.closeOnOverlay && $();
|
|
2496
|
-
},
|
|
2497
|
-
!a.modelValue || !a.closeOnEsc ||
|
|
2498
|
-
}, H = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((
|
|
2499
|
-
var
|
|
2500
|
-
const
|
|
2501
|
-
|
|
2502
|
-
},
|
|
2503
|
-
var
|
|
2504
|
-
if (
|
|
2496
|
+
}, T = (b) => {
|
|
2497
|
+
!a.modelValue || !a.closeOnEsc || b.key === "Escape" && (b.preventDefault(), $());
|
|
2498
|
+
}, H = () => u.value ? Array.from(u.value.querySelectorAll('a[href],button:not([disabled]),textarea:not([disabled]),input:not([disabled]),select:not([disabled]),[tabindex]:not([tabindex="-1"])')).filter((h) => !h.hasAttribute("disabled") && !h.getAttribute("aria-hidden")) : [], I = () => {
|
|
2499
|
+
var h;
|
|
2500
|
+
const b = H();
|
|
2501
|
+
b.length ? b[0].focus() : (h = u.value) == null || h.focus();
|
|
2502
|
+
}, M = (b) => {
|
|
2503
|
+
var q;
|
|
2504
|
+
if (b.key !== "Tab")
|
|
2505
2505
|
return;
|
|
2506
|
-
const
|
|
2507
|
-
if (!
|
|
2508
|
-
|
|
2506
|
+
const h = H();
|
|
2507
|
+
if (!h.length) {
|
|
2508
|
+
b.preventDefault(), (q = u.value) == null || q.focus();
|
|
2509
2509
|
return;
|
|
2510
2510
|
}
|
|
2511
|
-
const k =
|
|
2512
|
-
if (
|
|
2513
|
-
|
|
2511
|
+
const k = h[0], W = h[h.length - 1], A = document.activeElement;
|
|
2512
|
+
if (b.shiftKey && A === k) {
|
|
2513
|
+
b.preventDefault(), W.focus();
|
|
2514
2514
|
return;
|
|
2515
2515
|
}
|
|
2516
|
-
!
|
|
2516
|
+
!b.shiftKey && A === W && (b.preventDefault(), k.focus());
|
|
2517
2517
|
}, E = () => {
|
|
2518
2518
|
!a.lockScroll || typeof document > "u" || (i === 0 && (c = document.body.style.overflow, document.body.style.overflow = "hidden"), i += 1);
|
|
2519
2519
|
}, F = () => {
|
|
@@ -2521,20 +2521,20 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2521
2521
|
};
|
|
2522
2522
|
return ee(
|
|
2523
2523
|
() => a.modelValue,
|
|
2524
|
-
async (
|
|
2525
|
-
|
|
2524
|
+
async (b) => {
|
|
2525
|
+
b ? (typeof document < "u" && (l = document.activeElement), E(), o("open"), await ke(), I(), typeof document < "u" && document.addEventListener("keydown", T)) : (F(), typeof document < "u" && (document.removeEventListener("keydown", T), l == null || l.focus()));
|
|
2526
2526
|
},
|
|
2527
2527
|
{ immediate: !0 }
|
|
2528
2528
|
), we(() => {
|
|
2529
|
-
F(), typeof document < "u" && document.removeEventListener("keydown",
|
|
2530
|
-
}), e({ open: C, close: $ }), (
|
|
2529
|
+
F(), typeof document < "u" && document.removeEventListener("keydown", T);
|
|
2530
|
+
}), e({ open: C, close: $ }), (b, h) => (m(), ne($e, { to: "body" }, [
|
|
2531
2531
|
fe(z("div", {
|
|
2532
|
-
class:
|
|
2532
|
+
class: L(w.value),
|
|
2533
2533
|
role: "presentation"
|
|
2534
2534
|
}, [
|
|
2535
2535
|
z("div", {
|
|
2536
2536
|
class: "vf-modal__overlay",
|
|
2537
|
-
onClick:
|
|
2537
|
+
onClick: D
|
|
2538
2538
|
}),
|
|
2539
2539
|
z("div", {
|
|
2540
2540
|
ref_key: "panel",
|
|
@@ -2542,22 +2542,22 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2542
2542
|
class: "vf-modal__panel",
|
|
2543
2543
|
role: "dialog",
|
|
2544
2544
|
"aria-modal": "true",
|
|
2545
|
-
"aria-labelledby":
|
|
2545
|
+
"aria-labelledby": p.value ? n : void 0,
|
|
2546
2546
|
"aria-describedby": v.value ? f : void 0,
|
|
2547
2547
|
tabindex: "-1",
|
|
2548
|
-
onKeydown:
|
|
2548
|
+
onKeydown: M
|
|
2549
2549
|
}, [
|
|
2550
|
-
|
|
2550
|
+
p.value ? (m(), _("div", la, [
|
|
2551
2551
|
z("div", {
|
|
2552
2552
|
id: n,
|
|
2553
2553
|
class: "vf-modal__header-content"
|
|
2554
2554
|
}, [
|
|
2555
|
-
|
|
2556
|
-
|
|
2555
|
+
S(b.$slots, "header", {}, () => [
|
|
2556
|
+
b.title ? (m(), _("h3", na, R(b.title), 1)) : P("", !0)
|
|
2557
2557
|
])
|
|
2558
2558
|
])
|
|
2559
2559
|
])) : P("", !0),
|
|
2560
|
-
|
|
2560
|
+
b.showClose ? S(b.$slots, "close", {
|
|
2561
2561
|
key: 1,
|
|
2562
2562
|
close: $
|
|
2563
2563
|
}, () => [
|
|
@@ -2568,20 +2568,20 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2568
2568
|
onClick: $
|
|
2569
2569
|
}, "×")
|
|
2570
2570
|
]) : P("", !0),
|
|
2571
|
-
|
|
2571
|
+
b.$slots.body || b.$slots.default ? (m(), _("div", {
|
|
2572
2572
|
key: 2,
|
|
2573
2573
|
id: f,
|
|
2574
2574
|
class: "vf-modal__body"
|
|
2575
2575
|
}, [
|
|
2576
|
-
|
|
2577
|
-
|
|
2576
|
+
S(b.$slots, "body"),
|
|
2577
|
+
b.$slots.body ? P("", !0) : S(b.$slots, "default", { key: 0 })
|
|
2578
2578
|
])) : P("", !0),
|
|
2579
|
-
|
|
2580
|
-
|
|
2579
|
+
b.$slots.footer ? (m(), _("div", sa, [
|
|
2580
|
+
S(b.$slots, "footer")
|
|
2581
2581
|
])) : P("", !0)
|
|
2582
2582
|
], 40, ra)
|
|
2583
2583
|
], 2), [
|
|
2584
|
-
[pe,
|
|
2584
|
+
[pe, b.modelValue]
|
|
2585
2585
|
])
|
|
2586
2586
|
]));
|
|
2587
2587
|
}
|
|
@@ -2589,7 +2589,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2589
2589
|
key: 0,
|
|
2590
2590
|
class: "vf-tooltip__arrow",
|
|
2591
2591
|
"aria-hidden": "true"
|
|
2592
|
-
},
|
|
2592
|
+
}, Kr = /* @__PURE__ */ Y({
|
|
2593
2593
|
__name: "tooltip",
|
|
2594
2594
|
props: {
|
|
2595
2595
|
text: { default: "" },
|
|
@@ -2600,7 +2600,7 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2600
2600
|
setup(t) {
|
|
2601
2601
|
const e = t;
|
|
2602
2602
|
let r = 0;
|
|
2603
|
-
const o =
|
|
2603
|
+
const o = O(null), a = O(null), d = O(!1), i = O("top"), c = `vf-tooltip-${++r}`;
|
|
2604
2604
|
let l = null;
|
|
2605
2605
|
const u = () => {
|
|
2606
2606
|
e.disabled || (d.value = !0);
|
|
@@ -2609,33 +2609,33 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2609
2609
|
}, n = () => {
|
|
2610
2610
|
if (!o.value || !a.value)
|
|
2611
2611
|
return;
|
|
2612
|
-
const
|
|
2612
|
+
const p = o.value, v = a.value, w = async () => {
|
|
2613
2613
|
const {
|
|
2614
|
-
x:
|
|
2614
|
+
x: T,
|
|
2615
2615
|
y: H,
|
|
2616
2616
|
placement: I
|
|
2617
|
-
} = await
|
|
2617
|
+
} = await Re(p, v, {
|
|
2618
2618
|
placement: e.placement,
|
|
2619
2619
|
strategy: "fixed",
|
|
2620
|
-
middleware: [
|
|
2620
|
+
middleware: [Te(8), Ve(), Dt()]
|
|
2621
2621
|
});
|
|
2622
|
-
i.value = I ?? e.placement, v.style.left = `${
|
|
2622
|
+
i.value = I ?? e.placement, v.style.left = `${T}px`, v.style.top = `${H}px`;
|
|
2623
2623
|
}, C = async () => {
|
|
2624
2624
|
await w();
|
|
2625
|
-
}, $ = Le(
|
|
2625
|
+
}, $ = Le(p, () => {
|
|
2626
2626
|
C();
|
|
2627
|
-
}),
|
|
2627
|
+
}), D = () => {
|
|
2628
2628
|
C();
|
|
2629
2629
|
};
|
|
2630
|
-
document.addEventListener("scroll",
|
|
2630
|
+
document.addEventListener("scroll", D, !0), window.addEventListener("resize", D, !1), l = {
|
|
2631
2631
|
update: C,
|
|
2632
2632
|
destroy: () => {
|
|
2633
|
-
$(), document.removeEventListener("scroll",
|
|
2633
|
+
$(), document.removeEventListener("scroll", D, !0), window.removeEventListener("resize", D, !1);
|
|
2634
2634
|
}
|
|
2635
2635
|
}, l.update();
|
|
2636
2636
|
};
|
|
2637
|
-
ee(d, async (
|
|
2638
|
-
if (!
|
|
2637
|
+
ee(d, async (p) => {
|
|
2638
|
+
if (!p) {
|
|
2639
2639
|
l && (l.destroy(), l = null);
|
|
2640
2640
|
return;
|
|
2641
2641
|
}
|
|
@@ -2646,9 +2646,9 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2646
2646
|
l == null || l.destroy(), l = null;
|
|
2647
2647
|
});
|
|
2648
2648
|
const f = y(() => !!e.text || !!(a.value && a.value.textContent));
|
|
2649
|
-
return ee(f, (
|
|
2650
|
-
|
|
2651
|
-
}), (
|
|
2649
|
+
return ee(f, (p) => {
|
|
2650
|
+
p || (d.value = !1);
|
|
2651
|
+
}), (p, v) => (m(), _(ae, null, [
|
|
2652
2652
|
z("span", {
|
|
2653
2653
|
ref_key: "trigger",
|
|
2654
2654
|
ref: o,
|
|
@@ -2659,9 +2659,9 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2659
2659
|
onFocus: u,
|
|
2660
2660
|
onBlur: s
|
|
2661
2661
|
}, [
|
|
2662
|
-
|
|
2662
|
+
S(p.$slots, "default")
|
|
2663
2663
|
], 544),
|
|
2664
|
-
(
|
|
2664
|
+
(m(), ne($e, { to: "body" }, [
|
|
2665
2665
|
fe(z("div", {
|
|
2666
2666
|
id: c,
|
|
2667
2667
|
ref_key: "panel",
|
|
@@ -2671,18 +2671,18 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2671
2671
|
"data-placement": i.value
|
|
2672
2672
|
}, [
|
|
2673
2673
|
z("span", da, [
|
|
2674
|
-
|
|
2675
|
-
|
|
2674
|
+
S(p.$slots, "content", {}, () => [
|
|
2675
|
+
j(R(p.text), 1)
|
|
2676
2676
|
])
|
|
2677
2677
|
]),
|
|
2678
|
-
|
|
2678
|
+
p.arrow ? (m(), _("span", ca)) : P("", !0)
|
|
2679
2679
|
], 8, ia), [
|
|
2680
2680
|
[pe, d.value]
|
|
2681
2681
|
])
|
|
2682
2682
|
]))
|
|
2683
2683
|
], 64));
|
|
2684
2684
|
}
|
|
2685
|
-
}),
|
|
2685
|
+
}), Nr = /* @__PURE__ */ Y({
|
|
2686
2686
|
__name: "skeleton",
|
|
2687
2687
|
props: {
|
|
2688
2688
|
width: {},
|
|
@@ -2701,25 +2701,129 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2701
2701
|
const d = ["vf-skeleton", `vf-skeleton_${e.variant}`];
|
|
2702
2702
|
return e.animated && d.push("vf-skeleton_animated"), d;
|
|
2703
2703
|
});
|
|
2704
|
-
return (d, i) => (
|
|
2705
|
-
class:
|
|
2706
|
-
style:
|
|
2704
|
+
return (d, i) => (m(), _("div", {
|
|
2705
|
+
class: L(a.value),
|
|
2706
|
+
style: Se(o.value),
|
|
2707
2707
|
"aria-hidden": "true"
|
|
2708
2708
|
}, null, 6));
|
|
2709
2709
|
}
|
|
2710
|
-
}), ua = ["aria-label"], va = {
|
|
2710
|
+
}), ua = ["aria-label", "aria-valuenow", "data-severity"], va = {
|
|
2711
|
+
key: 0,
|
|
2712
|
+
class: "vf-progress__track"
|
|
2713
|
+
}, fa = {
|
|
2714
|
+
key: 1,
|
|
2715
|
+
class: "vf-progress__circle"
|
|
2716
|
+
}, pa = {
|
|
2717
|
+
viewBox: "0 0 100 100",
|
|
2718
|
+
class: "vf-progress__svg",
|
|
2719
|
+
"aria-hidden": "true"
|
|
2720
|
+
}, ba = {
|
|
2721
|
+
key: 2,
|
|
2722
|
+
class: "vf-progress__label"
|
|
2723
|
+
}, Yr = /* @__PURE__ */ Y({
|
|
2724
|
+
__name: "progress",
|
|
2725
|
+
props: {
|
|
2726
|
+
value: {},
|
|
2727
|
+
variant: { default: "linear" },
|
|
2728
|
+
size: { default: "normal" },
|
|
2729
|
+
label: { default: "" },
|
|
2730
|
+
showValue: { type: Boolean, default: !1 },
|
|
2731
|
+
severity: { default: "neutral" },
|
|
2732
|
+
ariaLabel: { default: "" }
|
|
2733
|
+
},
|
|
2734
|
+
setup(t) {
|
|
2735
|
+
const e = t, r = He(), o = (p) => Math.min(100, Math.max(0, p)), a = y(() => e.value === void 0 || e.value === null || Number.isNaN(e.value)), d = y(() => a.value ? 0 : o(Number(e.value))), i = y(() => a.value ? void 0 : d.value), c = y(() => !!r.default), l = y(() => e.label ? e.label : e.showValue && !a.value ? `${Math.round(d.value)}%` : ""), u = y(() => {
|
|
2736
|
+
const p = ["vf-progress", `vf-progress_${e.variant}`, `vf-progress_size-${e.size}`];
|
|
2737
|
+
return a.value && p.push("vf-progress_indeterminate"), p;
|
|
2738
|
+
}), s = y(() => {
|
|
2739
|
+
if (!a.value)
|
|
2740
|
+
return { width: `${d.value}%` };
|
|
2741
|
+
}), n = 2 * Math.PI * 45, f = y(() => {
|
|
2742
|
+
if (a.value)
|
|
2743
|
+
return {
|
|
2744
|
+
strokeDasharray: `${n}px`,
|
|
2745
|
+
strokeDashoffset: `${n * 0.75}px`
|
|
2746
|
+
};
|
|
2747
|
+
const p = n - d.value / 100 * n;
|
|
2748
|
+
return {
|
|
2749
|
+
strokeDasharray: `${n}px`,
|
|
2750
|
+
strokeDashoffset: `${p}px`
|
|
2751
|
+
};
|
|
2752
|
+
});
|
|
2753
|
+
return (p, v) => (m(), _("div", {
|
|
2754
|
+
class: L(u.value),
|
|
2755
|
+
role: "progressbar",
|
|
2756
|
+
"aria-label": p.ariaLabel || void 0,
|
|
2757
|
+
"aria-valuemin": "0",
|
|
2758
|
+
"aria-valuemax": "100",
|
|
2759
|
+
"aria-valuenow": i.value,
|
|
2760
|
+
"data-severity": p.severity
|
|
2761
|
+
}, [
|
|
2762
|
+
p.variant === "linear" ? (m(), _("div", va, [
|
|
2763
|
+
z("div", {
|
|
2764
|
+
class: "vf-progress__bar",
|
|
2765
|
+
style: Se(s.value)
|
|
2766
|
+
}, null, 4)
|
|
2767
|
+
])) : (m(), _("div", fa, [
|
|
2768
|
+
(m(), _("svg", pa, [
|
|
2769
|
+
v[0] || (v[0] = z("circle", {
|
|
2770
|
+
class: "vf-progress__circle-track",
|
|
2771
|
+
cx: "50",
|
|
2772
|
+
cy: "50",
|
|
2773
|
+
r: "45"
|
|
2774
|
+
}, null, -1)),
|
|
2775
|
+
z("circle", {
|
|
2776
|
+
class: "vf-progress__circle-bar",
|
|
2777
|
+
cx: "50",
|
|
2778
|
+
cy: "50",
|
|
2779
|
+
r: "45",
|
|
2780
|
+
style: Se(f.value)
|
|
2781
|
+
}, null, 4)
|
|
2782
|
+
]))
|
|
2783
|
+
])),
|
|
2784
|
+
l.value || c.value ? (m(), _("span", ba, [
|
|
2785
|
+
S(p.$slots, "default", {}, () => [
|
|
2786
|
+
j(R(l.value), 1)
|
|
2787
|
+
])
|
|
2788
|
+
])) : P("", !0)
|
|
2789
|
+
], 10, ua));
|
|
2790
|
+
}
|
|
2791
|
+
}), ga = ["data-variant", "data-severity", "aria-label"], Gr = /* @__PURE__ */ Y({
|
|
2792
|
+
__name: "badge",
|
|
2793
|
+
props: {
|
|
2794
|
+
label: { default: "" },
|
|
2795
|
+
size: { default: "normal" },
|
|
2796
|
+
variant: { default: "soft" },
|
|
2797
|
+
severity: { default: "neutral" },
|
|
2798
|
+
ariaLabel: { default: "" }
|
|
2799
|
+
},
|
|
2800
|
+
setup(t) {
|
|
2801
|
+
const e = t, r = y(() => [`vf-badge_size-${e.size}`]);
|
|
2802
|
+
return (o, a) => (m(), _("span", {
|
|
2803
|
+
class: L(["vf-badge", r.value]),
|
|
2804
|
+
"data-variant": o.variant,
|
|
2805
|
+
"data-severity": o.severity,
|
|
2806
|
+
role: "status",
|
|
2807
|
+
"aria-label": o.ariaLabel || void 0
|
|
2808
|
+
}, [
|
|
2809
|
+
S(o.$slots, "default", {}, () => [
|
|
2810
|
+
j(R(o.label), 1)
|
|
2811
|
+
])
|
|
2812
|
+
], 10, ga));
|
|
2813
|
+
}
|
|
2814
|
+
}), ma = ["aria-label"], ha = {
|
|
2711
2815
|
key: 0,
|
|
2712
2816
|
class: "vf-datatable__head"
|
|
2713
|
-
},
|
|
2817
|
+
}, ya = { class: "vf-datatable__row" }, _a = ["aria-sort"], Ca = ["onClick"], ka = { class: "vf-datatable__header-text" }, wa = {
|
|
2714
2818
|
key: 1,
|
|
2715
2819
|
class: "vf-datatable__header-text"
|
|
2716
|
-
},
|
|
2820
|
+
}, $a = { class: "vf-datatable__body" }, xa = {
|
|
2717
2821
|
key: 0,
|
|
2718
2822
|
class: "vf-datatable__row vf-datatable__row_state"
|
|
2719
|
-
},
|
|
2823
|
+
}, Ba = ["colspan"], za = {
|
|
2720
2824
|
key: 1,
|
|
2721
2825
|
class: "vf-datatable__row vf-datatable__row_state"
|
|
2722
|
-
},
|
|
2826
|
+
}, Sa = ["colspan"], Fa = ["onClick"], jr = /* @__PURE__ */ Y({
|
|
2723
2827
|
__name: "data-table",
|
|
2724
2828
|
props: {
|
|
2725
2829
|
rows: { default: () => [] },
|
|
@@ -2740,154 +2844,154 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2740
2844
|
},
|
|
2741
2845
|
emits: ["update:sortField", "update:sortOrder", "sort", "rowClick"],
|
|
2742
2846
|
setup(t, { emit: e }) {
|
|
2743
|
-
const r = t, o = e, a =
|
|
2847
|
+
const r = t, o = e, a = O(r.sortField ?? null), d = O(r.sortOrder ?? null);
|
|
2744
2848
|
ee(
|
|
2745
2849
|
() => r.sortField,
|
|
2746
|
-
(
|
|
2747
|
-
a.value =
|
|
2850
|
+
(b) => {
|
|
2851
|
+
a.value = b ?? null;
|
|
2748
2852
|
}
|
|
2749
2853
|
), ee(
|
|
2750
2854
|
() => r.sortOrder,
|
|
2751
|
-
(
|
|
2752
|
-
d.value =
|
|
2855
|
+
(b) => {
|
|
2856
|
+
d.value = b ?? null;
|
|
2753
2857
|
}
|
|
2754
2858
|
);
|
|
2755
|
-
const i = y(() => a.value), c = y(() => d.value), l = y(() => Math.max(1, r.columns.length)), u = (
|
|
2756
|
-
const
|
|
2757
|
-
return !
|
|
2758
|
-
const
|
|
2759
|
-
return k === "asc" ?
|
|
2859
|
+
const i = y(() => a.value), c = y(() => d.value), l = y(() => Math.max(1, r.columns.length)), u = (b) => b.sortable === !1 ? !1 : b.sortable === !0 ? !0 : r.sortable, s = (b, h) => b == null && h == null ? 0 : b == null ? -1 : h == null ? 1 : typeof b == "number" && typeof h == "number" ? b - h : String(b).localeCompare(String(h)), n = y(() => {
|
|
2860
|
+
const b = r.rows ?? [], h = i.value, k = c.value;
|
|
2861
|
+
return !h || !k ? b : [...b].sort((W, A) => {
|
|
2862
|
+
const q = W == null ? void 0 : W[h], te = A == null ? void 0 : A[h], X = s(q, te);
|
|
2863
|
+
return k === "asc" ? X : -X;
|
|
2760
2864
|
});
|
|
2761
2865
|
}), f = y(() => {
|
|
2762
|
-
const
|
|
2763
|
-
return r.size !== "normal" &&
|
|
2764
|
-
}),
|
|
2866
|
+
const b = ["vf-datatable", `vf-datatable_${r.variant}`];
|
|
2867
|
+
return r.size !== "normal" && b.push(`vf-datatable_${r.size}`), r.striped && b.push("vf-datatable_striped"), r.hover && b.push("vf-datatable_hover"), b;
|
|
2868
|
+
}), p = (b, h) => {
|
|
2765
2869
|
if (typeof r.rowKey == "function")
|
|
2766
|
-
return r.rowKey(
|
|
2870
|
+
return r.rowKey(b, h);
|
|
2767
2871
|
if (r.rowKey && typeof r.rowKey == "string") {
|
|
2768
|
-
const k =
|
|
2769
|
-
return typeof k == "string" || typeof k == "number" ? k :
|
|
2872
|
+
const k = b == null ? void 0 : b[r.rowKey];
|
|
2873
|
+
return typeof k == "string" || typeof k == "number" ? k : h;
|
|
2770
2874
|
}
|
|
2771
|
-
return
|
|
2772
|
-
}, v = (
|
|
2773
|
-
const k = v(
|
|
2774
|
-
return
|
|
2775
|
-
}, C = (
|
|
2776
|
-
if (!u(
|
|
2875
|
+
return h;
|
|
2876
|
+
}, v = (b, h) => b == null ? void 0 : b[h.field], w = (b, h) => {
|
|
2877
|
+
const k = v(b, h);
|
|
2878
|
+
return h.formatter ? h.formatter(b, k, h) : k ?? "";
|
|
2879
|
+
}, C = (b) => {
|
|
2880
|
+
if (!u(b))
|
|
2777
2881
|
return;
|
|
2778
|
-
let
|
|
2779
|
-
i.value ===
|
|
2780
|
-
}, $ = (
|
|
2781
|
-
if (u(
|
|
2782
|
-
return i.value !==
|
|
2783
|
-
}, H = (
|
|
2784
|
-
const
|
|
2785
|
-
return r.striped &&
|
|
2786
|
-
}, I = (
|
|
2787
|
-
const
|
|
2788
|
-
return
|
|
2789
|
-
},
|
|
2790
|
-
const
|
|
2791
|
-
return
|
|
2792
|
-
}, E = (
|
|
2793
|
-
const
|
|
2794
|
-
return
|
|
2795
|
-
}, F = (
|
|
2796
|
-
o("rowClick",
|
|
2882
|
+
let h = b.field, k = "asc";
|
|
2883
|
+
i.value === b.field && (c.value === "asc" ? k = "desc" : c.value === "desc" ? (h = null, k = null) : k = "asc"), a.value = h, d.value = k, o("update:sortField", h), o("update:sortOrder", k), o("sort", h, k);
|
|
2884
|
+
}, $ = (b) => i.value !== b.field ? "↕" : c.value === "asc" ? "↑" : "↓", D = (b) => i.value !== b.field ? "" : "is-active", T = (b) => {
|
|
2885
|
+
if (u(b))
|
|
2886
|
+
return i.value !== b.field ? "none" : c.value === "asc" ? "ascending" : "descending";
|
|
2887
|
+
}, H = (b) => {
|
|
2888
|
+
const h = [];
|
|
2889
|
+
return r.striped && b % 2 === 1 && h.push("vf-datatable__row_striped"), h;
|
|
2890
|
+
}, I = (b) => {
|
|
2891
|
+
const h = [];
|
|
2892
|
+
return b.align && h.push(`vf-datatable__cell_${b.align}`), u(b) && h.push("vf-datatable__header_sortable"), h;
|
|
2893
|
+
}, M = (b) => {
|
|
2894
|
+
const h = [];
|
|
2895
|
+
return b.align && h.push(`vf-datatable__cell_${b.align}`), h;
|
|
2896
|
+
}, E = (b) => {
|
|
2897
|
+
const h = {};
|
|
2898
|
+
return b.width && (h.width = b.width), b.minWidth && (h.minWidth = b.minWidth), h;
|
|
2899
|
+
}, F = (b, h, k) => {
|
|
2900
|
+
o("rowClick", b, h, k);
|
|
2797
2901
|
};
|
|
2798
|
-
return (
|
|
2799
|
-
class:
|
|
2902
|
+
return (b, h) => (m(), _("div", {
|
|
2903
|
+
class: L(f.value)
|
|
2800
2904
|
}, [
|
|
2801
2905
|
z("table", {
|
|
2802
2906
|
class: "vf-datatable__table",
|
|
2803
|
-
"aria-label":
|
|
2907
|
+
"aria-label": b.ariaLabel
|
|
2804
2908
|
}, [
|
|
2805
|
-
|
|
2806
|
-
z("tr",
|
|
2807
|
-
(
|
|
2909
|
+
b.showHeader ? (m(), _("thead", ha, [
|
|
2910
|
+
z("tr", ya, [
|
|
2911
|
+
(m(!0), _(ae, null, ve(b.columns, (k) => (m(), _("th", {
|
|
2808
2912
|
key: k.field,
|
|
2809
|
-
class:
|
|
2810
|
-
style:
|
|
2811
|
-
"aria-sort":
|
|
2913
|
+
class: L(["vf-datatable__header", I(k)]),
|
|
2914
|
+
style: Se(E(k)),
|
|
2915
|
+
"aria-sort": T(k),
|
|
2812
2916
|
scope: "col"
|
|
2813
2917
|
}, [
|
|
2814
|
-
u(k) ? (
|
|
2918
|
+
u(k) ? (m(), _("button", {
|
|
2815
2919
|
key: 0,
|
|
2816
2920
|
type: "button",
|
|
2817
2921
|
class: "vf-datatable__sort-button",
|
|
2818
2922
|
onClick: (W) => C(k)
|
|
2819
2923
|
}, [
|
|
2820
|
-
z("span",
|
|
2821
|
-
|
|
2924
|
+
z("span", ka, [
|
|
2925
|
+
b.$slots[`header-${k.field}`] ? S(b.$slots, `header-${k.field}`, {
|
|
2822
2926
|
key: 0,
|
|
2823
2927
|
column: k
|
|
2824
|
-
}) : (
|
|
2825
|
-
|
|
2928
|
+
}) : (m(), _(ae, { key: 1 }, [
|
|
2929
|
+
j(R(k.header ?? k.field), 1)
|
|
2826
2930
|
], 64))
|
|
2827
2931
|
]),
|
|
2828
2932
|
z("span", {
|
|
2829
|
-
class:
|
|
2933
|
+
class: L(["vf-datatable__sort-icon", D(k)])
|
|
2830
2934
|
}, R($(k)), 3)
|
|
2831
|
-
], 8,
|
|
2832
|
-
|
|
2935
|
+
], 8, Ca)) : (m(), _("span", wa, [
|
|
2936
|
+
b.$slots[`header-${k.field}`] ? S(b.$slots, `header-${k.field}`, {
|
|
2833
2937
|
key: 0,
|
|
2834
2938
|
column: k
|
|
2835
|
-
}) : (
|
|
2836
|
-
|
|
2939
|
+
}) : (m(), _(ae, { key: 1 }, [
|
|
2940
|
+
j(R(k.header ?? k.field), 1)
|
|
2837
2941
|
], 64))
|
|
2838
2942
|
]))
|
|
2839
|
-
], 14,
|
|
2943
|
+
], 14, _a))), 128))
|
|
2840
2944
|
])
|
|
2841
2945
|
])) : P("", !0),
|
|
2842
|
-
z("tbody",
|
|
2843
|
-
|
|
2946
|
+
z("tbody", $a, [
|
|
2947
|
+
b.loading ? (m(), _("tr", xa, [
|
|
2844
2948
|
z("td", {
|
|
2845
2949
|
class: "vf-datatable__cell vf-datatable__cell_state",
|
|
2846
2950
|
colspan: l.value
|
|
2847
2951
|
}, [
|
|
2848
|
-
|
|
2849
|
-
|
|
2952
|
+
S(b.$slots, "loading", {}, () => [
|
|
2953
|
+
j(R(b.loadingText), 1)
|
|
2850
2954
|
])
|
|
2851
|
-
], 8,
|
|
2852
|
-
])) : n.value.length ? (
|
|
2853
|
-
key:
|
|
2854
|
-
class:
|
|
2955
|
+
], 8, Ba)
|
|
2956
|
+
])) : n.value.length ? (m(!0), _(ae, { key: 2 }, ve(n.value, (k, W) => (m(), _("tr", {
|
|
2957
|
+
key: p(k, W),
|
|
2958
|
+
class: L(["vf-datatable__row", H(W)]),
|
|
2855
2959
|
onClick: (A) => F(k, W, A)
|
|
2856
2960
|
}, [
|
|
2857
|
-
(
|
|
2961
|
+
(m(!0), _(ae, null, ve(b.columns, (A) => (m(), _("td", {
|
|
2858
2962
|
key: A.field,
|
|
2859
|
-
class:
|
|
2860
|
-
style:
|
|
2963
|
+
class: L(["vf-datatable__cell", M(A)]),
|
|
2964
|
+
style: Se(E(A))
|
|
2861
2965
|
}, [
|
|
2862
|
-
|
|
2966
|
+
b.$slots[`cell-${A.field}`] ? S(b.$slots, `cell-${A.field}`, {
|
|
2863
2967
|
key: 0,
|
|
2864
2968
|
row: k,
|
|
2865
2969
|
column: A,
|
|
2866
2970
|
value: v(k, A),
|
|
2867
2971
|
index: W
|
|
2868
|
-
}) : (
|
|
2869
|
-
|
|
2972
|
+
}) : (m(), _(ae, { key: 1 }, [
|
|
2973
|
+
j(R(w(k, A)), 1)
|
|
2870
2974
|
], 64))
|
|
2871
2975
|
], 6))), 128))
|
|
2872
|
-
], 10,
|
|
2976
|
+
], 10, Fa))), 128)) : (m(), _("tr", za, [
|
|
2873
2977
|
z("td", {
|
|
2874
2978
|
class: "vf-datatable__cell vf-datatable__cell_state",
|
|
2875
2979
|
colspan: l.value
|
|
2876
2980
|
}, [
|
|
2877
|
-
|
|
2878
|
-
|
|
2981
|
+
S(b.$slots, "empty", {}, () => [
|
|
2982
|
+
j(R(b.emptyText), 1)
|
|
2879
2983
|
])
|
|
2880
|
-
], 8,
|
|
2984
|
+
], 8, Sa)
|
|
2881
2985
|
]))
|
|
2882
2986
|
])
|
|
2883
|
-
], 8,
|
|
2987
|
+
], 8, ma)
|
|
2884
2988
|
], 2));
|
|
2885
2989
|
}
|
|
2886
|
-
}),
|
|
2990
|
+
}), Va = ["dark", "light", "theme", "preset", "colors", "components", "colorScheme"], Ta = (t) => {
|
|
2887
2991
|
const e = t.replace(/([A-Z])/g, "-$1");
|
|
2888
2992
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2889
|
-
},
|
|
2890
|
-
if (!
|
|
2993
|
+
}, La = (t) => t.filter((e) => !Va.includes(e)).map((e) => Ta(e)).join("-").toLowerCase(), Ee = (t) => t.join("."), Ra = (t) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(t), Ye = (t) => {
|
|
2994
|
+
if (!Ra(t))
|
|
2891
2995
|
return null;
|
|
2892
2996
|
if (t.length === 4) {
|
|
2893
2997
|
const e = t[1], r = t[2], o = t[3];
|
|
@@ -2895,15 +2999,15 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2895
2999
|
}
|
|
2896
3000
|
return t.toLowerCase();
|
|
2897
3001
|
}, lt = (t) => {
|
|
2898
|
-
const e =
|
|
3002
|
+
const e = Ye(t);
|
|
2899
3003
|
if (!e)
|
|
2900
3004
|
return [0, 0, 0];
|
|
2901
3005
|
const r = parseInt(e.slice(1), 16), o = r >> 16 & 255, a = r >> 8 & 255, d = r & 255;
|
|
2902
3006
|
return [o, a, d];
|
|
2903
|
-
},
|
|
3007
|
+
}, qe = (t) => {
|
|
2904
3008
|
const [e, r, o] = lt(t);
|
|
2905
3009
|
return `${e}, ${r}, ${o}`;
|
|
2906
|
-
},
|
|
3010
|
+
}, Pa = (t, e, r) => {
|
|
2907
3011
|
const o = t / 255, a = e / 255, d = r / 255, i = Math.max(o, a, d), c = Math.min(o, a, d), l = i - c;
|
|
2908
3012
|
let u = 0, s = 0;
|
|
2909
3013
|
const n = (i + c) / 2;
|
|
@@ -2922,31 +3026,31 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2922
3026
|
u *= 60, u < 0 && (u += 360);
|
|
2923
3027
|
}
|
|
2924
3028
|
return [u, s * 100, n * 100];
|
|
2925
|
-
},
|
|
3029
|
+
}, Ia = (t, e, r) => {
|
|
2926
3030
|
const o = e / 100, a = r / 100, d = (1 - Math.abs(2 * a - 1)) * o, i = d * (1 - Math.abs(t / 60 % 2 - 1)), c = a - d / 2;
|
|
2927
3031
|
let l = 0, u = 0, s = 0;
|
|
2928
3032
|
t >= 0 && t < 60 ? (l = d, u = i, s = 0) : t >= 60 && t < 120 ? (l = i, u = d, s = 0) : t >= 120 && t < 180 ? (l = 0, u = d, s = i) : t >= 180 && t < 240 ? (l = 0, u = i, s = d) : t >= 240 && t < 300 ? (l = i, u = 0, s = d) : (l = d, u = 0, s = i);
|
|
2929
|
-
const n = Math.round((l + c) * 255), f = Math.round((u + c) * 255),
|
|
2930
|
-
return [n, f,
|
|
2931
|
-
},
|
|
2932
|
-
const r =
|
|
3033
|
+
const n = Math.round((l + c) * 255), f = Math.round((u + c) * 255), p = Math.round((s + c) * 255);
|
|
3034
|
+
return [n, f, p];
|
|
3035
|
+
}, Ma = (t, e, r) => `#${[t, e, r].map((o) => o.toString(16).padStart(2, "0")).join("")}`, Da = (t, e, r) => Math.min(r, Math.max(e, t)), Oa = (t, e) => {
|
|
3036
|
+
const r = Ye(t);
|
|
2933
3037
|
if (!r)
|
|
2934
3038
|
return t;
|
|
2935
|
-
const [o, a, d] = lt(r), [i, c, l] =
|
|
2936
|
-
return
|
|
2937
|
-
},
|
|
3039
|
+
const [o, a, d] = lt(r), [i, c, l] = Pa(o, a, d), s = (e - 5) * 7, n = Da(l + s, 0, 100), [f, p, v] = Ia(i, c, n);
|
|
3040
|
+
return Ma(f, p, v);
|
|
3041
|
+
}, De = (t) => !!t && typeof t == "object" && !Array.isArray(t), Ge = (t, e) => {
|
|
2938
3042
|
if (!e)
|
|
2939
3043
|
return { ...t };
|
|
2940
3044
|
const r = { ...t };
|
|
2941
3045
|
for (const o in e) {
|
|
2942
3046
|
const a = e[o], d = t[o];
|
|
2943
|
-
|
|
3047
|
+
De(d) && De(a) ? r[o] = Ge(d, a) : r[o] = a;
|
|
2944
3048
|
}
|
|
2945
3049
|
return r;
|
|
2946
|
-
},
|
|
3050
|
+
}, Wa = (t) => {
|
|
2947
3051
|
if (!t)
|
|
2948
3052
|
return null;
|
|
2949
|
-
if (
|
|
3053
|
+
if (De(t) && "preset" in t) {
|
|
2950
3054
|
const e = t;
|
|
2951
3055
|
return {
|
|
2952
3056
|
preset: e.preset ?? {},
|
|
@@ -2957,42 +3061,42 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
2957
3061
|
};
|
|
2958
3062
|
}
|
|
2959
3063
|
return { preset: t };
|
|
2960
|
-
},
|
|
3064
|
+
}, Aa = (t) => {
|
|
2961
3065
|
const e = [], r = [], o = [], a = [], d = (l) => o.push(l), i = (l) => a.push(l), c = (l, u) => {
|
|
2962
3066
|
if (!(!l || typeof l != "object"))
|
|
2963
3067
|
for (const s in l) {
|
|
2964
3068
|
const n = l[s], f = u.concat([s]);
|
|
2965
|
-
if (
|
|
3069
|
+
if (De(n)) {
|
|
2966
3070
|
c(n, f);
|
|
2967
3071
|
continue;
|
|
2968
3072
|
}
|
|
2969
3073
|
if (n && typeof n == "object") {
|
|
2970
|
-
i(`Theme value "${
|
|
3074
|
+
i(`Theme value "${Ee(f)}" is not a plain object or string and will be ignored.`);
|
|
2971
3075
|
continue;
|
|
2972
3076
|
}
|
|
2973
3077
|
if (typeof n != "string") {
|
|
2974
|
-
i(`Theme value "${
|
|
3078
|
+
i(`Theme value "${Ee(f)}" is not a string and will be ignored.`);
|
|
2975
3079
|
continue;
|
|
2976
3080
|
}
|
|
2977
|
-
const v = f.includes("colorScheme") && f.includes("dark") ? r : e, w =
|
|
3081
|
+
const v = f.includes("colorScheme") && f.includes("dark") ? r : e, w = La(f);
|
|
2978
3082
|
if (v.push(`--vf-${w}: ${n}`), f.includes("colors")) {
|
|
2979
|
-
const C =
|
|
3083
|
+
const C = Ye(n);
|
|
2980
3084
|
if (!C) {
|
|
2981
3085
|
d(
|
|
2982
|
-
`Theme color "${
|
|
3086
|
+
`Theme color "${Ee(f)}" is not hex. Shade variables will not be generated for it.`
|
|
2983
3087
|
);
|
|
2984
3088
|
continue;
|
|
2985
3089
|
}
|
|
2986
|
-
if (v.push(`--vf-${w}-rgb: ${
|
|
3090
|
+
if (v.push(`--vf-${w}-rgb: ${qe(C)}`), s !== "white")
|
|
2987
3091
|
for (let $ = 1; $ < 10; ++$) {
|
|
2988
|
-
const
|
|
2989
|
-
v.push(`--vf-${w}-${$}00: ${
|
|
3092
|
+
const D = Oa(C, $);
|
|
3093
|
+
v.push(`--vf-${w}-${$}00: ${D}`), v.push(`--vf-${w}-${$}00-rgb: ${qe(D)}`);
|
|
2990
3094
|
}
|
|
2991
3095
|
}
|
|
2992
3096
|
}
|
|
2993
3097
|
};
|
|
2994
3098
|
return c(t, []), { baseVars: e, darkVars: r, warnings: o, errors: a };
|
|
2995
|
-
},
|
|
3099
|
+
}, Ea = (t) => {
|
|
2996
3100
|
if (typeof document > "u")
|
|
2997
3101
|
return null;
|
|
2998
3102
|
const e = document.getElementById(t);
|
|
@@ -3000,11 +3104,11 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
3000
3104
|
return e;
|
|
3001
3105
|
const r = document.createElement("style");
|
|
3002
3106
|
return r.id = t, document.head.appendChild(r), r;
|
|
3003
|
-
},
|
|
3107
|
+
}, Ha = (t) => ({
|
|
3004
3108
|
selector: t.selector ?? ":root",
|
|
3005
3109
|
darkSelector: t.darkSelector ?? ":root[data-theme=dark]"
|
|
3006
|
-
}),
|
|
3007
|
-
const { baseVars: a, darkVars: d, warnings: i, errors: c } =
|
|
3110
|
+
}), Ka = (t, e, r, o) => {
|
|
3111
|
+
const { baseVars: a, darkVars: d, warnings: i, errors: c } = Aa(t), l = Ea("vueforge-theme");
|
|
3008
3112
|
if (!l)
|
|
3009
3113
|
return;
|
|
3010
3114
|
if (c.length) {
|
|
@@ -3022,12 +3126,12 @@ const It = (t, e) => t.strategy ? t.strategy : Pt(e) ? "fixed" : "absolute", he
|
|
|
3022
3126
|
};
|
|
3023
3127
|
let me = null;
|
|
3024
3128
|
const nt = (t) => {
|
|
3025
|
-
const e =
|
|
3129
|
+
const e = Wa(t);
|
|
3026
3130
|
if (!e)
|
|
3027
3131
|
return;
|
|
3028
|
-
const r = Ge(e.preset, e.overrides), { selector: o, darkSelector: a } =
|
|
3029
|
-
me = { ...e },
|
|
3030
|
-
},
|
|
3132
|
+
const r = Ge(e.preset, e.overrides), { selector: o, darkSelector: a } = Ha(e);
|
|
3133
|
+
me = { ...e }, Ka(r, o, a, e.strict);
|
|
3134
|
+
}, Xr = (t) => {
|
|
3031
3135
|
if (!me)
|
|
3032
3136
|
return;
|
|
3033
3137
|
const e = t.overrides === void 0 ? me.overrides : Ge(me.overrides ?? {}, t.overrides ?? {}), r = {
|
|
@@ -3037,11 +3141,11 @@ const nt = (t) => {
|
|
|
3037
3141
|
darkSelector: t.darkSelector ?? me.darkSelector
|
|
3038
3142
|
};
|
|
3039
3143
|
nt(r);
|
|
3040
|
-
},
|
|
3144
|
+
}, qr = () => me ? { ...me } : null, Ur = {
|
|
3041
3145
|
install(t, e = {}) {
|
|
3042
3146
|
e.theme && nt(e.theme);
|
|
3043
3147
|
}
|
|
3044
|
-
},
|
|
3148
|
+
}, Ue = {
|
|
3045
3149
|
colors: {
|
|
3046
3150
|
white: "#ffffff",
|
|
3047
3151
|
green: "#0cbc87",
|
|
@@ -3104,7 +3208,7 @@ const nt = (t) => {
|
|
|
3104
3208
|
dividerColor: "#2e2e32"
|
|
3105
3209
|
}
|
|
3106
3210
|
}
|
|
3107
|
-
},
|
|
3211
|
+
}, Na = {
|
|
3108
3212
|
fontSize: "var(--vf-typography-font-size)",
|
|
3109
3213
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
3110
3214
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -3246,11 +3350,11 @@ const nt = (t) => {
|
|
|
3246
3350
|
}
|
|
3247
3351
|
}
|
|
3248
3352
|
}
|
|
3249
|
-
},
|
|
3353
|
+
}, Ya = {
|
|
3250
3354
|
padding: "12px",
|
|
3251
3355
|
borderColor: "var(--vf-border-color)",
|
|
3252
3356
|
borderRadius: "var(--vf-radii-md)"
|
|
3253
|
-
},
|
|
3357
|
+
}, Ga = {
|
|
3254
3358
|
gap: "0.5rem",
|
|
3255
3359
|
fontSize: "var(--vf-typography-font-size)",
|
|
3256
3360
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -3271,7 +3375,7 @@ const nt = (t) => {
|
|
|
3271
3375
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
3272
3376
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
3273
3377
|
}
|
|
3274
|
-
},
|
|
3378
|
+
}, ja = {
|
|
3275
3379
|
gap: "0.375rem",
|
|
3276
3380
|
textColor: "var(--vf-text-color)",
|
|
3277
3381
|
labelFontSize: "0.875rem",
|
|
@@ -3291,7 +3395,7 @@ const nt = (t) => {
|
|
|
3291
3395
|
labelFontSize: "0.9375rem",
|
|
3292
3396
|
hintFontSize: "0.875rem"
|
|
3293
3397
|
}
|
|
3294
|
-
},
|
|
3398
|
+
}, Xa = {
|
|
3295
3399
|
gap: "0.5rem",
|
|
3296
3400
|
fontSize: "var(--vf-typography-font-size)",
|
|
3297
3401
|
padding: "var(--vf-controls-padding-y) var(--vf-controls-padding-x)",
|
|
@@ -3314,10 +3418,10 @@ const nt = (t) => {
|
|
|
3314
3418
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
3315
3419
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
3316
3420
|
}
|
|
3317
|
-
},
|
|
3421
|
+
}, qa = {
|
|
3318
3422
|
hoverColor: "var(--vf-blue)",
|
|
3319
3423
|
activeColor: "var(--vf-blue)"
|
|
3320
|
-
},
|
|
3424
|
+
}, Ua = {
|
|
3321
3425
|
iconGap: "6px",
|
|
3322
3426
|
submenuOffset: "12px",
|
|
3323
3427
|
separatorThickness: "1px",
|
|
@@ -3337,7 +3441,7 @@ const nt = (t) => {
|
|
|
3337
3441
|
marginBottom: "0.5rem",
|
|
3338
3442
|
marginLeft: "0.5rem"
|
|
3339
3443
|
}
|
|
3340
|
-
},
|
|
3444
|
+
}, Za = {
|
|
3341
3445
|
width: "90vw",
|
|
3342
3446
|
maxWidth: "520px",
|
|
3343
3447
|
maxHeight: "80vh",
|
|
@@ -3364,9 +3468,9 @@ const nt = (t) => {
|
|
|
3364
3468
|
closeColor: "var(--vf-text-color)",
|
|
3365
3469
|
closeFontSize: "1.25rem",
|
|
3366
3470
|
closeHoverBackgroundColor: "rgba(0, 0, 0, 0.06)"
|
|
3367
|
-
},
|
|
3471
|
+
}, Ja = {
|
|
3368
3472
|
backgroundColor: "var(--vf-bg-color)"
|
|
3369
|
-
},
|
|
3473
|
+
}, Qa = {
|
|
3370
3474
|
minWidth: "12rem",
|
|
3371
3475
|
fontSize: "var(--vf-typography-font-size)",
|
|
3372
3476
|
controlGap: "0.75rem",
|
|
@@ -3399,7 +3503,7 @@ const nt = (t) => {
|
|
|
3399
3503
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
3400
3504
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
3401
3505
|
}
|
|
3402
|
-
},
|
|
3506
|
+
}, er = {
|
|
3403
3507
|
minWidth: "12rem",
|
|
3404
3508
|
fontSize: "var(--vf-typography-font-size)",
|
|
3405
3509
|
controlGap: "0.5rem",
|
|
@@ -3438,7 +3542,7 @@ const nt = (t) => {
|
|
|
3438
3542
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
3439
3543
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
3440
3544
|
}
|
|
3441
|
-
},
|
|
3545
|
+
}, tr = {
|
|
3442
3546
|
minWidth: "12rem",
|
|
3443
3547
|
fontSize: "var(--vf-typography-font-size)",
|
|
3444
3548
|
controlGap: "0.5rem",
|
|
@@ -3483,7 +3587,7 @@ const nt = (t) => {
|
|
|
3483
3587
|
padding: "var(--vf-sizes-lg-padding-y) var(--vf-sizes-lg-padding-x)",
|
|
3484
3588
|
fontSize: "var(--vf-sizes-lg-font-size)"
|
|
3485
3589
|
}
|
|
3486
|
-
},
|
|
3590
|
+
}, or = {
|
|
3487
3591
|
minWidth: "12rem",
|
|
3488
3592
|
fontSize: "var(--vf-typography-font-size)",
|
|
3489
3593
|
controlGap: "0.75rem",
|
|
@@ -3533,7 +3637,7 @@ const nt = (t) => {
|
|
|
3533
3637
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
3534
3638
|
daySize: "2.2rem"
|
|
3535
3639
|
}
|
|
3536
|
-
},
|
|
3640
|
+
}, ar = {
|
|
3537
3641
|
gap: "0.4rem",
|
|
3538
3642
|
itemMinWidth: "2rem",
|
|
3539
3643
|
fontSize: "var(--vf-typography-font-size)",
|
|
@@ -3558,7 +3662,7 @@ const nt = (t) => {
|
|
|
3558
3662
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
3559
3663
|
padding: "0.45rem 0.8rem"
|
|
3560
3664
|
}
|
|
3561
|
-
},
|
|
3665
|
+
}, rr = {
|
|
3562
3666
|
size: "1rem",
|
|
3563
3667
|
gap: "0.5rem",
|
|
3564
3668
|
borderRadius: "var(--vf-radii-sm)",
|
|
@@ -3570,7 +3674,7 @@ const nt = (t) => {
|
|
|
3570
3674
|
checkColor: "#ffffff",
|
|
3571
3675
|
textColor: "var(--vf-text-color)",
|
|
3572
3676
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
3573
|
-
},
|
|
3677
|
+
}, lr = {
|
|
3574
3678
|
size: "1rem",
|
|
3575
3679
|
dotSize: "0.45rem",
|
|
3576
3680
|
gap: "0.5rem",
|
|
@@ -3584,7 +3688,7 @@ const nt = (t) => {
|
|
|
3584
3688
|
dotColor: "#ffffff",
|
|
3585
3689
|
textColor: "var(--vf-text-color)",
|
|
3586
3690
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
3587
|
-
},
|
|
3691
|
+
}, nr = {
|
|
3588
3692
|
width: "2.25rem",
|
|
3589
3693
|
height: "1.25rem",
|
|
3590
3694
|
thumbSize: "1rem",
|
|
@@ -3596,7 +3700,7 @@ const nt = (t) => {
|
|
|
3596
3700
|
thumbColor: "#ffffff",
|
|
3597
3701
|
textColor: "var(--vf-text-color)",
|
|
3598
3702
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
3599
|
-
},
|
|
3703
|
+
}, sr = {
|
|
3600
3704
|
gap: "0.75rem",
|
|
3601
3705
|
listGap: "0.5rem",
|
|
3602
3706
|
listBorderWidth: "1px",
|
|
@@ -3617,7 +3721,7 @@ const nt = (t) => {
|
|
|
3617
3721
|
panelBackgroundColor: "transparent",
|
|
3618
3722
|
panelTextColor: "var(--vf-text-color)",
|
|
3619
3723
|
disabledOpacity: "var(--vf-states-disabled-opacity)"
|
|
3620
|
-
},
|
|
3724
|
+
}, ir = {
|
|
3621
3725
|
gap: "0.75rem",
|
|
3622
3726
|
borderRadius: "var(--vf-radii-md)",
|
|
3623
3727
|
borderColor: "var(--vf-border-color)",
|
|
@@ -3648,7 +3752,7 @@ const nt = (t) => {
|
|
|
3648
3752
|
headerFontSize: "1rem",
|
|
3649
3753
|
contentPadding: "0.9rem 1.1rem"
|
|
3650
3754
|
}
|
|
3651
|
-
},
|
|
3755
|
+
}, dr = {
|
|
3652
3756
|
padding: "0.35rem 0.6rem",
|
|
3653
3757
|
borderRadius: "8px",
|
|
3654
3758
|
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
@@ -3659,7 +3763,7 @@ const nt = (t) => {
|
|
|
3659
3763
|
zIndex: "120",
|
|
3660
3764
|
maxWidth: "240px",
|
|
3661
3765
|
arrowSize: "8px"
|
|
3662
|
-
},
|
|
3766
|
+
}, cr = {
|
|
3663
3767
|
width: "100%",
|
|
3664
3768
|
height: "1rem",
|
|
3665
3769
|
lineHeight: "0.9rem",
|
|
@@ -3667,7 +3771,7 @@ const nt = (t) => {
|
|
|
3667
3771
|
backgroundColor: "var(--vf-gutter-color)",
|
|
3668
3772
|
shimmerColor: "var(--vf-bg-color)",
|
|
3669
3773
|
animationDuration: "2s"
|
|
3670
|
-
},
|
|
3774
|
+
}, ur = {
|
|
3671
3775
|
borderColor: "var(--vf-border-color)",
|
|
3672
3776
|
borderRadius: "var(--vf-radii-md)",
|
|
3673
3777
|
backgroundColor: "var(--vf-bg-color)",
|
|
@@ -3698,7 +3802,7 @@ const nt = (t) => {
|
|
|
3698
3802
|
fontSize: "var(--vf-sizes-lg-font-size)",
|
|
3699
3803
|
cellPadding: "0.75rem 0.9rem"
|
|
3700
3804
|
}
|
|
3701
|
-
},
|
|
3805
|
+
}, vr = {
|
|
3702
3806
|
gap: "0.75rem",
|
|
3703
3807
|
padding: "0.75rem 0.9rem",
|
|
3704
3808
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -3737,7 +3841,7 @@ const nt = (t) => {
|
|
|
3737
3841
|
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
3738
3842
|
textColor: "var(--vf-text-color)"
|
|
3739
3843
|
}
|
|
3740
|
-
},
|
|
3844
|
+
}, fr = {
|
|
3741
3845
|
gap: "0.75rem",
|
|
3742
3846
|
padding: "0.75rem 0.9rem",
|
|
3743
3847
|
borderRadius: "var(--vf-radii-md)",
|
|
@@ -3775,69 +3879,174 @@ const nt = (t) => {
|
|
|
3775
3879
|
borderColor: "rgba(var(--vf-red-600-rgb), 0.45)",
|
|
3776
3880
|
textColor: "var(--vf-text-color)"
|
|
3777
3881
|
}
|
|
3778
|
-
},
|
|
3779
|
-
|
|
3882
|
+
}, pr = {
|
|
3883
|
+
width: "100%",
|
|
3884
|
+
height: "0.5rem",
|
|
3885
|
+
borderRadius: "999px",
|
|
3886
|
+
backgroundColor: "var(--vf-gutter-color)",
|
|
3887
|
+
barColor: "var(--vf-blue-600)",
|
|
3888
|
+
labelColor: "var(--vf-secondary-text-color)",
|
|
3889
|
+
labelFontSize: "0.875rem",
|
|
3890
|
+
gap: "0.5rem",
|
|
3891
|
+
circularSize: "2.5rem",
|
|
3892
|
+
circularThickness: "6",
|
|
3893
|
+
animationDuration: "1.4s",
|
|
3894
|
+
info: {
|
|
3895
|
+
barColor: "var(--vf-sky-600)"
|
|
3896
|
+
},
|
|
3897
|
+
success: {
|
|
3898
|
+
barColor: "var(--vf-green-600)"
|
|
3899
|
+
},
|
|
3900
|
+
warn: {
|
|
3901
|
+
barColor: "var(--vf-yellow-600)"
|
|
3902
|
+
},
|
|
3903
|
+
danger: {
|
|
3904
|
+
barColor: "var(--vf-red-600)"
|
|
3905
|
+
},
|
|
3906
|
+
small: {
|
|
3907
|
+
height: "0.35rem",
|
|
3908
|
+
labelFontSize: "0.8rem",
|
|
3909
|
+
circularSize: "2rem",
|
|
3910
|
+
circularThickness: "5"
|
|
3911
|
+
},
|
|
3912
|
+
large: {
|
|
3913
|
+
height: "0.75rem",
|
|
3914
|
+
labelFontSize: "1rem",
|
|
3915
|
+
circularSize: "3.25rem",
|
|
3916
|
+
circularThickness: "7"
|
|
3917
|
+
}
|
|
3918
|
+
}, br = {
|
|
3919
|
+
fontSize: "0.75rem",
|
|
3920
|
+
lineHeight: "1",
|
|
3921
|
+
paddingX: "0.5rem",
|
|
3922
|
+
paddingY: "0.2rem",
|
|
3923
|
+
borderRadius: "999px",
|
|
3924
|
+
gap: "0.35rem",
|
|
3925
|
+
backgroundColor: "var(--vf-gutter-color)",
|
|
3926
|
+
textColor: "var(--vf-secondary-text-color)",
|
|
3927
|
+
borderColor: "var(--vf-gutter-color)",
|
|
3928
|
+
softBackgroundColor: "rgba(var(--vf-gray-500-rgb), 0.16)",
|
|
3929
|
+
softTextColor: "var(--vf-secondary-text-color)",
|
|
3930
|
+
softBorderColor: "rgba(var(--vf-gray-500-rgb), 0.18)",
|
|
3931
|
+
outlineTextColor: "var(--vf-secondary-text-color)",
|
|
3932
|
+
outlineBorderColor: "rgba(var(--vf-gray-500-rgb), 0.35)",
|
|
3933
|
+
info: {
|
|
3934
|
+
backgroundColor: "var(--vf-sky-600)",
|
|
3935
|
+
textColor: "var(--vf-white)",
|
|
3936
|
+
borderColor: "var(--vf-sky-600)",
|
|
3937
|
+
softBackgroundColor: "rgba(var(--vf-sky-500-rgb), 0.18)",
|
|
3938
|
+
softTextColor: "var(--vf-sky-700)",
|
|
3939
|
+
softBorderColor: "rgba(var(--vf-sky-500-rgb), 0.3)",
|
|
3940
|
+
outlineTextColor: "var(--vf-sky-600)",
|
|
3941
|
+
outlineBorderColor: "rgba(var(--vf-sky-600-rgb), 0.45)"
|
|
3942
|
+
},
|
|
3943
|
+
success: {
|
|
3944
|
+
backgroundColor: "var(--vf-green-600)",
|
|
3945
|
+
textColor: "var(--vf-white)",
|
|
3946
|
+
borderColor: "var(--vf-green-600)",
|
|
3947
|
+
softBackgroundColor: "rgba(var(--vf-green-500-rgb), 0.2)",
|
|
3948
|
+
softTextColor: "var(--vf-green-700)",
|
|
3949
|
+
softBorderColor: "rgba(var(--vf-green-500-rgb), 0.32)",
|
|
3950
|
+
outlineTextColor: "var(--vf-green-600)",
|
|
3951
|
+
outlineBorderColor: "rgba(var(--vf-green-600-rgb), 0.45)"
|
|
3952
|
+
},
|
|
3953
|
+
warn: {
|
|
3954
|
+
backgroundColor: "var(--vf-yellow-600)",
|
|
3955
|
+
textColor: "rgba(0, 0, 0, 0.82)",
|
|
3956
|
+
borderColor: "var(--vf-yellow-600)",
|
|
3957
|
+
softBackgroundColor: "rgba(var(--vf-yellow-500-rgb), 0.22)",
|
|
3958
|
+
softTextColor: "rgba(0, 0, 0, 0.78)",
|
|
3959
|
+
softBorderColor: "rgba(var(--vf-yellow-500-rgb), 0.4)",
|
|
3960
|
+
outlineTextColor: "var(--vf-yellow-700)",
|
|
3961
|
+
outlineBorderColor: "rgba(var(--vf-yellow-600-rgb), 0.55)"
|
|
3962
|
+
},
|
|
3963
|
+
danger: {
|
|
3964
|
+
backgroundColor: "var(--vf-red-600)",
|
|
3965
|
+
textColor: "var(--vf-white)",
|
|
3966
|
+
borderColor: "var(--vf-red-600)",
|
|
3967
|
+
softBackgroundColor: "rgba(var(--vf-red-500-rgb), 0.2)",
|
|
3968
|
+
softTextColor: "var(--vf-red-700)",
|
|
3969
|
+
softBorderColor: "rgba(var(--vf-red-500-rgb), 0.32)",
|
|
3970
|
+
outlineTextColor: "var(--vf-red-600)",
|
|
3971
|
+
outlineBorderColor: "rgba(var(--vf-red-600-rgb), 0.45)"
|
|
3972
|
+
},
|
|
3973
|
+
small: {
|
|
3974
|
+
fontSize: "0.6875rem",
|
|
3975
|
+
paddingX: "0.4rem",
|
|
3976
|
+
paddingY: "0.15rem"
|
|
3977
|
+
},
|
|
3978
|
+
large: {
|
|
3979
|
+
fontSize: "0.875rem",
|
|
3980
|
+
paddingX: "0.65rem",
|
|
3981
|
+
paddingY: "0.3rem"
|
|
3982
|
+
}
|
|
3983
|
+
}, Zr = {
|
|
3984
|
+
...Ue,
|
|
3780
3985
|
components: {
|
|
3781
|
-
base:
|
|
3782
|
-
button:
|
|
3783
|
-
card:
|
|
3784
|
-
input:
|
|
3785
|
-
formField:
|
|
3786
|
-
textarea:
|
|
3787
|
-
link:
|
|
3788
|
-
menu:
|
|
3789
|
-
modal:
|
|
3790
|
-
popover:
|
|
3791
|
-
select:
|
|
3792
|
-
autocomplete:
|
|
3793
|
-
multiselect:
|
|
3794
|
-
datepicker:
|
|
3795
|
-
pagination:
|
|
3796
|
-
checkbox:
|
|
3797
|
-
radio:
|
|
3798
|
-
switch:
|
|
3799
|
-
tabs:
|
|
3800
|
-
accordion:
|
|
3801
|
-
tooltip:
|
|
3802
|
-
skeleton:
|
|
3803
|
-
datatable:
|
|
3804
|
-
toast:
|
|
3805
|
-
alert:
|
|
3986
|
+
base: Ue,
|
|
3987
|
+
button: Na,
|
|
3988
|
+
card: Ya,
|
|
3989
|
+
input: Ga,
|
|
3990
|
+
formField: ja,
|
|
3991
|
+
textarea: Xa,
|
|
3992
|
+
link: qa,
|
|
3993
|
+
menu: Ua,
|
|
3994
|
+
modal: Za,
|
|
3995
|
+
popover: Ja,
|
|
3996
|
+
select: Qa,
|
|
3997
|
+
autocomplete: er,
|
|
3998
|
+
multiselect: tr,
|
|
3999
|
+
datepicker: or,
|
|
4000
|
+
pagination: ar,
|
|
4001
|
+
checkbox: rr,
|
|
4002
|
+
radio: lr,
|
|
4003
|
+
switch: nr,
|
|
4004
|
+
tabs: sr,
|
|
4005
|
+
accordion: ir,
|
|
4006
|
+
tooltip: dr,
|
|
4007
|
+
skeleton: cr,
|
|
4008
|
+
datatable: ur,
|
|
4009
|
+
toast: vr,
|
|
4010
|
+
alert: fr,
|
|
4011
|
+
progress: pr,
|
|
4012
|
+
badge: br
|
|
3806
4013
|
}
|
|
3807
4014
|
};
|
|
3808
4015
|
export {
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
4016
|
+
Ir as Accordion,
|
|
4017
|
+
Mr as AccordionItem,
|
|
4018
|
+
Wr as Alert,
|
|
4019
|
+
xr as Autocomplete,
|
|
4020
|
+
Gr as Badge,
|
|
4021
|
+
_r as Button,
|
|
3814
4022
|
_t as Card,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
4023
|
+
Fr as Checkbox,
|
|
4024
|
+
jr as DataTable,
|
|
4025
|
+
zr as DatePicker,
|
|
4026
|
+
Zr as DefaultTheme,
|
|
4027
|
+
kr as FormField,
|
|
4028
|
+
Cr as Input,
|
|
3821
4029
|
Qe as Link,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
4030
|
+
yr as Menu,
|
|
4031
|
+
Hr as Modal,
|
|
4032
|
+
Br as MultiSelect,
|
|
4033
|
+
Sr as Pagination,
|
|
4034
|
+
Er as Popover,
|
|
4035
|
+
Yr as Progress,
|
|
4036
|
+
Tr as RadioButton,
|
|
4037
|
+
Vr as RadioGroup,
|
|
4038
|
+
$r as Select,
|
|
4039
|
+
Nr as Skeleton,
|
|
4040
|
+
Ar as Switch,
|
|
4041
|
+
Rr as Tab,
|
|
4042
|
+
Pr as TabPanel,
|
|
4043
|
+
Lr as Tabs,
|
|
4044
|
+
wr as Textarea,
|
|
4045
|
+
Dr as Toast,
|
|
4046
|
+
Or as ToastContainer,
|
|
4047
|
+
Kr as Tooltip,
|
|
4048
|
+
Ur as VueForge,
|
|
4049
|
+
qr as getTheme,
|
|
3841
4050
|
nt as setTheme,
|
|
3842
|
-
|
|
4051
|
+
Xr as updateTheme
|
|
3843
4052
|
};
|