@codemonster-ru/vueforge-core 1.3.3 → 1.4.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 +63 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/plugin.d.ts +3 -3
- package/dist/plugin.d.ts.map +1 -1
- package/dist/providers/VfThemeProvider.vue.d.ts +2 -4
- package/dist/providers/VfThemeProvider.vue.d.ts.map +1 -1
- package/dist/providers/vueForgeConfig.d.ts +7 -1
- package/dist/providers/vueForgeConfig.d.ts.map +1 -1
- package/dist/types/theme.d.ts +3 -0
- package/dist/types/theme.d.ts.map +1 -1
- package/dist/vueforge-core.js +697 -688
- package/package.json +1 -1
package/dist/vueforge-core.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as
|
|
1
|
+
import { resolveThemeConfig as Le, applyThemeConfig as Se, resolveTheme as Me, DEFAULT_STORAGE_KEY as ze, DEFAULT_ATTRIBUTE as Pe, isThemeMode as Ne, vfMotionDurationsMs as U } from "@codemonster-ru/vueforge-theme";
|
|
2
2
|
import { createThemePreset as Wn } from "@codemonster-ru/vueforge-theme";
|
|
3
3
|
import { defaultThemePreset as Fe } from "./theme-api.js";
|
|
4
|
-
import { defineComponent as L,
|
|
5
|
-
import { d as
|
|
4
|
+
import { defineComponent as L, inject as we, computed as s, ref as D, watch as Z, onMounted as ce, onBeforeUnmount as ee, provide as Re, renderSlot as E, toValue as K, nextTick as ae, openBlock as d, createElementBlock as h, createElementVNode as T, unref as y, toDisplayString as F, normalizeClass as P, createVNode as j, Transition as ne, withCtx as Q, createCommentVNode as O, useAttrs as R, mergeProps as H, createTextVNode as oe, normalizeStyle as W, useSlots as Te, createBlock as q, Teleport as le, resolveDynamicComponent as re, normalizeProps as Ve, guardReactiveProps as Ce, resolveComponent as He, Fragment as ue, renderList as de } from "vue";
|
|
5
|
+
import { d as xe } from "./useScrollLock-FYdn9vRp.js";
|
|
6
6
|
import { t as Yn, a as Xn, u as Gn, b as Qn, c as Jn, v as Zn } from "./useScrollLock-FYdn9vRp.js";
|
|
7
7
|
import { VueIconify as te, icons as X } from "@codemonster-ru/vueiconify";
|
|
8
8
|
import { autoUpdate as Ke, computePosition as je, offset as ve, flip as pe, shift as me, arrow as he } from "@codemonster-ru/floater.js";
|
|
@@ -20,77 +20,86 @@ function Ue() {
|
|
|
20
20
|
return {
|
|
21
21
|
install(n, e = {}) {
|
|
22
22
|
const i = qe(e.theme);
|
|
23
|
-
n.provide(Be, {
|
|
23
|
+
n.provide(Be, {
|
|
24
|
+
theme: i,
|
|
25
|
+
themeMode: {
|
|
26
|
+
defaultTheme: e.defaultTheme,
|
|
27
|
+
storageKey: e.themeStorageKey,
|
|
28
|
+
attribute: e.themeAttribute
|
|
29
|
+
}
|
|
30
|
+
}), typeof document < "u" && We(i);
|
|
24
31
|
}
|
|
25
32
|
};
|
|
26
33
|
}
|
|
27
34
|
const bn = Ue(), Ee = Symbol("VfThemeContext"), $n = /* @__PURE__ */ L({
|
|
28
35
|
__name: "VfThemeProvider",
|
|
29
36
|
props: {
|
|
30
|
-
defaultTheme: {
|
|
37
|
+
defaultTheme: {},
|
|
31
38
|
storageKey: {},
|
|
32
39
|
attribute: {}
|
|
33
40
|
},
|
|
34
41
|
setup(t) {
|
|
35
|
-
const n = t, e =
|
|
36
|
-
() =>
|
|
37
|
-
),
|
|
38
|
-
() =>
|
|
39
|
-
),
|
|
40
|
-
() => n.
|
|
41
|
-
), b =
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const n = t, e = we(Be, null), i = s(
|
|
43
|
+
() => n.defaultTheme ?? (e == null ? void 0 : e.themeMode.defaultTheme) ?? "system"
|
|
44
|
+
), l = D(i.value), r = D("light"), u = D(null), v = s(
|
|
45
|
+
() => Me(l.value, r.value)
|
|
46
|
+
), _ = s(
|
|
47
|
+
() => n.storageKey ?? (e == null ? void 0 : e.themeMode.storageKey) ?? (e == null ? void 0 : e.theme.options.storageKey) ?? ze
|
|
48
|
+
), b = s(
|
|
49
|
+
() => n.attribute ?? (e == null ? void 0 : e.themeMode.attribute) ?? (e == null ? void 0 : e.theme.options.attribute) ?? Pe
|
|
50
|
+
), p = D(!1);
|
|
51
|
+
let C = null;
|
|
52
|
+
function x() {
|
|
44
53
|
if (typeof window > "u")
|
|
45
54
|
return;
|
|
46
|
-
const
|
|
47
|
-
Ne(
|
|
55
|
+
const f = window.localStorage.getItem(_.value);
|
|
56
|
+
Ne(f) && (l.value = f);
|
|
48
57
|
}
|
|
49
|
-
function
|
|
50
|
-
|
|
58
|
+
function w() {
|
|
59
|
+
C !== null && (window.clearTimeout(C), C = null);
|
|
51
60
|
}
|
|
52
|
-
function
|
|
61
|
+
function S(f, a = {}) {
|
|
53
62
|
if (typeof document > "u")
|
|
54
63
|
return;
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
const m = document.documentElement;
|
|
65
|
+
a.animate && (w(), m.classList.add("vf-theme-transitioning")), m.setAttribute(b.value, f), a.animate && (C = window.setTimeout(() => {
|
|
66
|
+
m.classList.remove("vf-theme-transitioning"), C = null;
|
|
58
67
|
}, 320));
|
|
59
68
|
}
|
|
60
|
-
function I(
|
|
61
|
-
var
|
|
62
|
-
if (
|
|
63
|
-
|
|
69
|
+
function I(f) {
|
|
70
|
+
var a;
|
|
71
|
+
if (f) {
|
|
72
|
+
r.value = f.matches ? "dark" : "light";
|
|
64
73
|
return;
|
|
65
74
|
}
|
|
66
|
-
|
|
75
|
+
r.value = (a = u.value) != null && a.matches ? "dark" : "light";
|
|
67
76
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
77
|
+
function M(f) {
|
|
78
|
+
l.value = f;
|
|
70
79
|
}
|
|
71
|
-
function
|
|
72
|
-
const
|
|
73
|
-
|
|
80
|
+
function $() {
|
|
81
|
+
const f = v.value === "dark" ? "light" : "dark";
|
|
82
|
+
l.value = f;
|
|
74
83
|
}
|
|
75
|
-
return Z(
|
|
76
|
-
typeof window > "u" || window.localStorage.setItem(
|
|
84
|
+
return Z(l, (f) => {
|
|
85
|
+
typeof window > "u" || window.localStorage.setItem(_.value, f);
|
|
77
86
|
}), Z(
|
|
78
|
-
|
|
79
|
-
(
|
|
80
|
-
|
|
87
|
+
v,
|
|
88
|
+
(f) => {
|
|
89
|
+
S(f, { animate: p.value });
|
|
81
90
|
},
|
|
82
91
|
{ immediate: !0 }
|
|
83
|
-
),
|
|
84
|
-
|
|
92
|
+
), ce(() => {
|
|
93
|
+
l.value = i.value, x(), u.value = window.matchMedia("(prefers-color-scheme: dark)"), I(), u.value.addEventListener("change", I), p.value = !0;
|
|
85
94
|
}), ee(() => {
|
|
86
|
-
var
|
|
87
|
-
(
|
|
95
|
+
var f;
|
|
96
|
+
(f = u.value) == null || f.removeEventListener("change", I), w();
|
|
88
97
|
}), Re(Ee, {
|
|
89
|
-
mode:
|
|
90
|
-
resolvedTheme:
|
|
91
|
-
setTheme:
|
|
92
|
-
toggleTheme:
|
|
93
|
-
}), (
|
|
98
|
+
mode: l,
|
|
99
|
+
resolvedTheme: v,
|
|
100
|
+
setTheme: M,
|
|
101
|
+
toggleTheme: $
|
|
102
|
+
}), (f, a) => E(f.$slots, "default");
|
|
94
103
|
}
|
|
95
104
|
});
|
|
96
105
|
function Oe(t, n, e = {}) {
|
|
@@ -100,19 +109,19 @@ function Oe(t, n, e = {}) {
|
|
|
100
109
|
const u = r.target;
|
|
101
110
|
if (!(u instanceof Node))
|
|
102
111
|
return;
|
|
103
|
-
const
|
|
104
|
-
(
|
|
112
|
+
const v = Array.isArray(t) ? t.map((_) => _.value).filter((_) => _ instanceof HTMLElement) : [t.value].filter(
|
|
113
|
+
(_) => _ instanceof HTMLElement
|
|
105
114
|
);
|
|
106
|
-
|
|
115
|
+
v.length === 0 || v.some((_) => _.contains(u)) || n(r);
|
|
107
116
|
};
|
|
108
|
-
|
|
117
|
+
ce(() => {
|
|
109
118
|
document.addEventListener(i, l);
|
|
110
119
|
}), ee(() => {
|
|
111
120
|
document.removeEventListener(i, l);
|
|
112
121
|
});
|
|
113
122
|
}
|
|
114
123
|
function se(t = {}) {
|
|
115
|
-
const n = s(() => K(t.open) !== void 0), e =
|
|
124
|
+
const n = s(() => K(t.open) !== void 0), e = D(t.defaultOpen ?? !1), i = s(
|
|
116
125
|
() => n.value ? !!K(t.open) : e.value
|
|
117
126
|
);
|
|
118
127
|
Z(
|
|
@@ -137,23 +146,23 @@ function fe(t, n = {}) {
|
|
|
137
146
|
const e = n.event ?? "keydown", i = (l) => {
|
|
138
147
|
K(n.enabled) === !1 || l.key !== "Escape" || t(l);
|
|
139
148
|
};
|
|
140
|
-
|
|
149
|
+
ce(() => {
|
|
141
150
|
document.addEventListener(e, i);
|
|
142
151
|
}), ee(() => {
|
|
143
152
|
document.removeEventListener(e, i);
|
|
144
153
|
});
|
|
145
154
|
}
|
|
146
155
|
function ye(t, n, e = {}) {
|
|
147
|
-
const i =
|
|
148
|
-
let
|
|
156
|
+
const i = D(0), l = D(0), r = D(K(e.placement) ?? "bottom"), u = D({}), v = D(null);
|
|
157
|
+
let _ = 0;
|
|
149
158
|
const b = s(() => ({
|
|
150
159
|
left: `${i.value}px`,
|
|
151
160
|
top: `${l.value}px`
|
|
152
161
|
}));
|
|
153
|
-
async function
|
|
162
|
+
async function p() {
|
|
154
163
|
if (!t.value || !n.value)
|
|
155
164
|
return;
|
|
156
|
-
const
|
|
165
|
+
const x = await je(
|
|
157
166
|
t.value,
|
|
158
167
|
n.value,
|
|
159
168
|
{
|
|
@@ -162,32 +171,32 @@ function ye(t, n, e = {}) {
|
|
|
162
171
|
strategy: K(e.strategy)
|
|
163
172
|
}
|
|
164
173
|
);
|
|
165
|
-
i.value =
|
|
174
|
+
i.value = x.x, l.value = x.y, r.value = x.placement, u.value = x.middlewareData ?? {};
|
|
166
175
|
}
|
|
167
|
-
function
|
|
168
|
-
var
|
|
169
|
-
(
|
|
176
|
+
function C() {
|
|
177
|
+
var x;
|
|
178
|
+
(x = v.value) == null || x.call(v), v.value = null;
|
|
170
179
|
}
|
|
171
180
|
return Z(
|
|
172
181
|
[() => K(e.enabled) !== !1, t, n],
|
|
173
|
-
async ([
|
|
174
|
-
|
|
175
|
-
const w =
|
|
176
|
-
|
|
177
|
-
|
|
182
|
+
async ([x]) => {
|
|
183
|
+
_ += 1;
|
|
184
|
+
const w = _;
|
|
185
|
+
C(), !(!x || !t.value || !n.value) && (await ae(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (await p(), !(w !== _ || K(e.enabled) === !1 || !t.value || !n.value) && (v.value = Ke(t.value, () => {
|
|
186
|
+
p();
|
|
178
187
|
}))));
|
|
179
188
|
},
|
|
180
189
|
{ immediate: !0 }
|
|
181
190
|
), ee(() => {
|
|
182
|
-
|
|
191
|
+
C();
|
|
183
192
|
}), {
|
|
184
193
|
x: i,
|
|
185
194
|
y: l,
|
|
186
195
|
placement: r,
|
|
187
196
|
middlewareData: u,
|
|
188
197
|
styles: b,
|
|
189
|
-
update:
|
|
190
|
-
cleanup:
|
|
198
|
+
update: p,
|
|
199
|
+
cleanup: C
|
|
191
200
|
};
|
|
192
201
|
}
|
|
193
202
|
const Ye = [
|
|
@@ -205,7 +214,7 @@ function Xe(t) {
|
|
|
205
214
|
(n) => !n.hasAttribute("hidden") && n.getAttribute("aria-hidden") !== "true"
|
|
206
215
|
);
|
|
207
216
|
}
|
|
208
|
-
function
|
|
217
|
+
function Ae(t, n = {}) {
|
|
209
218
|
const e = (i) => {
|
|
210
219
|
if (i.key !== "Tab" || K(n.enabled) === !1)
|
|
211
220
|
return;
|
|
@@ -217,14 +226,14 @@ function De(t, n = {}) {
|
|
|
217
226
|
i.preventDefault(), l.focus();
|
|
218
227
|
return;
|
|
219
228
|
}
|
|
220
|
-
const u = r[0],
|
|
229
|
+
const u = r[0], v = r[r.length - 1], _ = document.activeElement;
|
|
221
230
|
if (i.shiftKey) {
|
|
222
|
-
(
|
|
231
|
+
(_ === u || _ === l) && (i.preventDefault(), v.focus());
|
|
223
232
|
return;
|
|
224
233
|
}
|
|
225
|
-
|
|
234
|
+
_ === v && (i.preventDefault(), u.focus());
|
|
226
235
|
};
|
|
227
|
-
|
|
236
|
+
ce(() => {
|
|
228
237
|
document.addEventListener("keydown", e);
|
|
229
238
|
}), ee(() => {
|
|
230
239
|
document.removeEventListener("keydown", e);
|
|
@@ -259,92 +268,92 @@ const Qe = { class: "vf-accordion" }, Je = ["id", "aria-controls", "aria-expande
|
|
|
259
268
|
const e = t, i = n, l = G({ prefix: "vf-accordion-trigger" }), r = G({ prefix: "vf-accordion-content" }), u = se({
|
|
260
269
|
defaultOpen: e.defaultOpen,
|
|
261
270
|
open: s(() => e.open),
|
|
262
|
-
onOpenChange: (
|
|
263
|
-
i("update:open",
|
|
271
|
+
onOpenChange: (f) => {
|
|
272
|
+
i("update:open", f), i("openChange", f);
|
|
264
273
|
}
|
|
265
|
-
}),
|
|
274
|
+
}), v = u.isOpen, _ = [
|
|
266
275
|
"height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)",
|
|
267
276
|
"opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)"
|
|
268
277
|
].join(", ");
|
|
269
|
-
function b(
|
|
270
|
-
const
|
|
271
|
-
return (
|
|
278
|
+
function b(f) {
|
|
279
|
+
const a = f.firstElementChild;
|
|
280
|
+
return (a == null ? void 0 : a.offsetHeight) ?? f.scrollHeight;
|
|
272
281
|
}
|
|
273
|
-
function
|
|
282
|
+
function p() {
|
|
274
283
|
e.disabled || u.toggle();
|
|
275
284
|
}
|
|
276
|
-
function
|
|
277
|
-
(
|
|
285
|
+
function C(f) {
|
|
286
|
+
(f.key === "Enter" || f.key === " ") && (f.preventDefault(), p());
|
|
278
287
|
}
|
|
279
|
-
function
|
|
280
|
-
const
|
|
281
|
-
|
|
288
|
+
function x(f) {
|
|
289
|
+
const a = f;
|
|
290
|
+
a.style.height = "0px", a.style.opacity = "0", a.style.overflow = "hidden";
|
|
282
291
|
}
|
|
283
|
-
function w(
|
|
284
|
-
const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}), window.setTimeout(
|
|
292
|
+
function w(f, a) {
|
|
293
|
+
const m = f;
|
|
294
|
+
m.style.transition = _, requestAnimationFrame(() => {
|
|
295
|
+
m.style.height = `${b(m)}px`, m.style.opacity = "1";
|
|
296
|
+
}), window.setTimeout(a, U.normal);
|
|
288
297
|
}
|
|
289
|
-
function
|
|
290
|
-
const
|
|
291
|
-
|
|
298
|
+
function S(f) {
|
|
299
|
+
const a = f;
|
|
300
|
+
a.style.height = "", a.style.opacity = "", a.style.overflow = "", a.style.transition = "";
|
|
292
301
|
}
|
|
293
|
-
function
|
|
294
|
-
const
|
|
295
|
-
|
|
302
|
+
function I(f) {
|
|
303
|
+
const a = f;
|
|
304
|
+
a.style.height = `${b(a)}px`, a.style.opacity = "1", a.style.overflow = "hidden";
|
|
296
305
|
}
|
|
297
|
-
function
|
|
298
|
-
const
|
|
299
|
-
|
|
306
|
+
function M(f, a) {
|
|
307
|
+
const m = f;
|
|
308
|
+
m.style.transition = _, m.offsetHeight, m.style.height = "0px", m.style.opacity = "0", window.setTimeout(a, U.normal);
|
|
300
309
|
}
|
|
301
|
-
function
|
|
302
|
-
const
|
|
303
|
-
|
|
310
|
+
function $(f) {
|
|
311
|
+
const a = f;
|
|
312
|
+
a.style.height = "", a.style.opacity = "", a.style.overflow = "", a.style.transition = "";
|
|
304
313
|
}
|
|
305
|
-
return (
|
|
314
|
+
return (f, a) => (d(), h("section", Qe, [
|
|
306
315
|
T("button", {
|
|
307
|
-
id:
|
|
308
|
-
"aria-controls":
|
|
309
|
-
"aria-expanded":
|
|
316
|
+
id: y(l),
|
|
317
|
+
"aria-controls": y(r),
|
|
318
|
+
"aria-expanded": y(v),
|
|
310
319
|
disabled: t.disabled,
|
|
311
320
|
class: "vf-accordion__trigger",
|
|
312
321
|
type: "button",
|
|
313
|
-
onClick:
|
|
314
|
-
onKeydown:
|
|
322
|
+
onClick: p,
|
|
323
|
+
onKeydown: C
|
|
315
324
|
}, [
|
|
316
|
-
|
|
325
|
+
E(f.$slots, "trigger", { open: y(v) }, () => [
|
|
317
326
|
T("span", null, F(t.title), 1)
|
|
318
327
|
]),
|
|
319
328
|
T("span", {
|
|
320
329
|
"aria-hidden": "true",
|
|
321
|
-
class: P(["vf-accordion__icon",
|
|
330
|
+
class: P(["vf-accordion__icon", y(v) && "vf-accordion__icon--open"])
|
|
322
331
|
}, [
|
|
323
|
-
j(
|
|
324
|
-
icon:
|
|
332
|
+
j(y(te), {
|
|
333
|
+
icon: y(X).chevronDown,
|
|
325
334
|
size: "0.875rem"
|
|
326
335
|
}, null, 8, ["icon"])
|
|
327
336
|
], 2)
|
|
328
337
|
], 40, Je),
|
|
329
338
|
j(ne, {
|
|
330
339
|
css: !1,
|
|
331
|
-
onBeforeEnter:
|
|
340
|
+
onBeforeEnter: x,
|
|
332
341
|
onEnter: w,
|
|
333
|
-
onAfterEnter:
|
|
334
|
-
onBeforeLeave:
|
|
335
|
-
onLeave:
|
|
336
|
-
onAfterLeave:
|
|
342
|
+
onAfterEnter: S,
|
|
343
|
+
onBeforeLeave: I,
|
|
344
|
+
onLeave: M,
|
|
345
|
+
onAfterLeave: $
|
|
337
346
|
}, {
|
|
338
347
|
default: Q(() => [
|
|
339
|
-
|
|
348
|
+
y(v) ? (d(), h("div", {
|
|
340
349
|
key: 0,
|
|
341
|
-
id:
|
|
342
|
-
"aria-labelledby":
|
|
350
|
+
id: y(r),
|
|
351
|
+
"aria-labelledby": y(l),
|
|
343
352
|
class: "vf-accordion__content",
|
|
344
353
|
role: "region"
|
|
345
354
|
}, [
|
|
346
355
|
T("div", et, [
|
|
347
|
-
|
|
356
|
+
E(f.$slots, "default", { open: y(v) })
|
|
348
357
|
])
|
|
349
358
|
], 8, Ze)) : O("", !0)
|
|
350
359
|
]),
|
|
@@ -373,24 +382,24 @@ const tt = {
|
|
|
373
382
|
const n = t, e = R(), i = s(
|
|
374
383
|
() => N("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
|
|
375
384
|
), l = s(() => n.tone === "success" ? X.checkCircle : n.tone === "info" ? X.info : n.tone === "warn" ? X.warning : n.tone === "help" ? X.questionCircle : n.tone === "danger" ? X.warning : n.tone === "contrast" ? X.info : X.info);
|
|
376
|
-
return (r, u) => (
|
|
385
|
+
return (r, u) => (d(), h("section", H({
|
|
377
386
|
class: i.value,
|
|
378
387
|
role: "alert"
|
|
379
|
-
},
|
|
388
|
+
}, y(e)), [
|
|
380
389
|
T("div", tt, [
|
|
381
|
-
j(
|
|
390
|
+
j(y(te), {
|
|
382
391
|
icon: l.value,
|
|
383
392
|
size: "2rem"
|
|
384
393
|
}, null, 8, ["icon"])
|
|
385
394
|
]),
|
|
386
395
|
T("div", nt, [
|
|
387
|
-
n.title || r.$slots.title ? (
|
|
388
|
-
|
|
396
|
+
n.title || r.$slots.title ? (d(), h("p", at, [
|
|
397
|
+
E(r.$slots, "title", {}, () => [
|
|
389
398
|
oe(F(n.title), 1)
|
|
390
399
|
])
|
|
391
400
|
])) : O("", !0),
|
|
392
401
|
T("div", ot, [
|
|
393
|
-
|
|
402
|
+
E(r.$slots, "default")
|
|
394
403
|
])
|
|
395
404
|
])
|
|
396
405
|
], 16));
|
|
@@ -405,11 +414,11 @@ const tt = {
|
|
|
405
414
|
const n = t, e = R(), i = s(
|
|
406
415
|
() => N("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
|
|
407
416
|
);
|
|
408
|
-
return (l, r) => (
|
|
409
|
-
|
|
417
|
+
return (l, r) => (d(), h("span", H({ class: i.value }, y(e)), [
|
|
418
|
+
E(l.$slots, "default")
|
|
410
419
|
], 16));
|
|
411
420
|
}
|
|
412
|
-
}), lt = ["type"],
|
|
421
|
+
}), lt = ["type"], Cn = /* @__PURE__ */ L({
|
|
413
422
|
inheritAttrs: !1,
|
|
414
423
|
__name: "VfButton",
|
|
415
424
|
props: {
|
|
@@ -427,17 +436,17 @@ const tt = {
|
|
|
427
436
|
n.block && "vf-button--block"
|
|
428
437
|
)
|
|
429
438
|
);
|
|
430
|
-
return (l, r) => (
|
|
439
|
+
return (l, r) => (d(), h("button", H({
|
|
431
440
|
class: i.value,
|
|
432
441
|
type: n.type
|
|
433
|
-
},
|
|
434
|
-
|
|
442
|
+
}, y(e)), [
|
|
443
|
+
E(l.$slots, "default")
|
|
435
444
|
], 16, lt));
|
|
436
445
|
}
|
|
437
446
|
}), st = { key: 0 }, it = { class: "vf-card__title" }, rt = {
|
|
438
447
|
key: 1,
|
|
439
448
|
class: "vf-card__body"
|
|
440
|
-
}, ut = { key: 2 },
|
|
449
|
+
}, ut = { key: 2 }, xn = /* @__PURE__ */ L({
|
|
441
450
|
inheritAttrs: !1,
|
|
442
451
|
__name: "VfCard",
|
|
443
452
|
props: {
|
|
@@ -448,21 +457,21 @@ const tt = {
|
|
|
448
457
|
const n = t, e = R(), i = s(
|
|
449
458
|
() => N("vf-card", n.compact && "vf-card--compact")
|
|
450
459
|
);
|
|
451
|
-
return (l, r) => (
|
|
452
|
-
n.title || l.$slots.header ? (
|
|
453
|
-
|
|
460
|
+
return (l, r) => (d(), h("section", H({ class: i.value }, y(e)), [
|
|
461
|
+
n.title || l.$slots.header ? (d(), h("header", st, [
|
|
462
|
+
E(l.$slots, "header", {}, () => [
|
|
454
463
|
T("h3", it, F(n.title), 1)
|
|
455
464
|
])
|
|
456
465
|
])) : O("", !0),
|
|
457
|
-
l.$slots.default ? (
|
|
458
|
-
|
|
466
|
+
l.$slots.default ? (d(), h("div", rt, [
|
|
467
|
+
E(l.$slots, "default")
|
|
459
468
|
])) : O("", !0),
|
|
460
|
-
l.$slots.footer ? (
|
|
461
|
-
|
|
469
|
+
l.$slots.footer ? (d(), h("footer", ut, [
|
|
470
|
+
E(l.$slots, "footer")
|
|
462
471
|
])) : O("", !0)
|
|
463
472
|
], 16));
|
|
464
473
|
}
|
|
465
|
-
}),
|
|
474
|
+
}), dt = ["checked", "disabled", "aria-invalid"], ct = {
|
|
466
475
|
key: 0,
|
|
467
476
|
class: "vf-checkbox__content"
|
|
468
477
|
}, Bn = /* @__PURE__ */ L({
|
|
@@ -486,16 +495,16 @@ const tt = {
|
|
|
486
495
|
e.disabled && "vf-checkbox--disabled",
|
|
487
496
|
l.class
|
|
488
497
|
)
|
|
489
|
-
), u = s(() => l.style),
|
|
498
|
+
), u = s(() => l.style), v = s(
|
|
490
499
|
() => Object.fromEntries(
|
|
491
500
|
Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
|
|
492
501
|
)
|
|
493
502
|
);
|
|
494
|
-
function
|
|
495
|
-
const
|
|
496
|
-
i("update:modelValue",
|
|
503
|
+
function _(b) {
|
|
504
|
+
const p = b.target.checked;
|
|
505
|
+
i("update:modelValue", p), i("change", p);
|
|
497
506
|
}
|
|
498
|
-
return (b,
|
|
507
|
+
return (b, p) => (d(), h("label", {
|
|
499
508
|
class: P(r.value),
|
|
500
509
|
style: W(u.value)
|
|
501
510
|
}, [
|
|
@@ -505,21 +514,21 @@ const tt = {
|
|
|
505
514
|
checked: e.modelValue,
|
|
506
515
|
disabled: e.disabled,
|
|
507
516
|
"aria-invalid": e.invalid || void 0
|
|
508
|
-
},
|
|
509
|
-
|
|
517
|
+
}, v.value, { onChange: _ }), null, 16, dt),
|
|
518
|
+
p[0] || (p[0] = T("span", {
|
|
510
519
|
class: "vf-checkbox__control",
|
|
511
520
|
"aria-hidden": "true"
|
|
512
521
|
}, [
|
|
513
522
|
T("span", { class: "vf-checkbox__mark" })
|
|
514
523
|
], -1)),
|
|
515
|
-
t.label || b.$slots.default ? (
|
|
516
|
-
|
|
524
|
+
t.label || b.$slots.default ? (d(), h("span", ct, [
|
|
525
|
+
E(b.$slots, "default", {}, () => [
|
|
517
526
|
oe(F(t.label), 1)
|
|
518
527
|
])
|
|
519
528
|
])) : O("", !0)
|
|
520
529
|
], 6));
|
|
521
530
|
}
|
|
522
|
-
}), ft = ["type"],
|
|
531
|
+
}), ft = ["type"], De = /* @__PURE__ */ L({
|
|
523
532
|
inheritAttrs: !1,
|
|
524
533
|
__name: "VfIconButton",
|
|
525
534
|
props: {
|
|
@@ -536,11 +545,11 @@ const tt = {
|
|
|
536
545
|
n.size !== "md" && `vf-icon-button--${n.size}`
|
|
537
546
|
)
|
|
538
547
|
), l = s(() => n.size === "sm" ? "0.875rem" : n.size === "lg" ? "1.125rem" : "1rem");
|
|
539
|
-
return (r, u) => (
|
|
548
|
+
return (r, u) => (d(), h("button", H({
|
|
540
549
|
class: i.value,
|
|
541
550
|
type: n.type
|
|
542
|
-
},
|
|
543
|
-
j(
|
|
551
|
+
}, y(e)), [
|
|
552
|
+
j(y(te), {
|
|
544
553
|
icon: n.icon,
|
|
545
554
|
size: l.value,
|
|
546
555
|
"aria-hidden": "true"
|
|
@@ -576,81 +585,81 @@ const tt = {
|
|
|
576
585
|
},
|
|
577
586
|
emits: ["update:open", "openChange"],
|
|
578
587
|
setup(t, { emit: n }) {
|
|
579
|
-
const e = t, i = n, l = R(), r =
|
|
588
|
+
const e = t, i = n, l = R(), r = D(null), u = D(null), v = Te(), _ = G({ prefix: "vf-drawer-title" }), b = se({
|
|
580
589
|
defaultOpen: e.defaultOpen,
|
|
581
590
|
open: s(() => e.open),
|
|
582
|
-
onOpenChange: (
|
|
583
|
-
i("update:open",
|
|
591
|
+
onOpenChange: (V) => {
|
|
592
|
+
i("update:open", V), i("openChange", V);
|
|
584
593
|
}
|
|
585
|
-
}),
|
|
594
|
+
}), p = b.isOpen, C = {
|
|
586
595
|
enter: U.normal,
|
|
587
596
|
leave: U.normal
|
|
588
597
|
};
|
|
589
|
-
function V
|
|
590
|
-
return typeof
|
|
598
|
+
function x(V) {
|
|
599
|
+
return typeof V == "number" ? `${V}px` : V;
|
|
591
600
|
}
|
|
592
601
|
const w = s(() => {
|
|
593
|
-
const
|
|
594
|
-
return k != null && (
|
|
595
|
-
}),
|
|
602
|
+
const V = {}, k = x(e.offsetTop), J = x(e.bodyPadding);
|
|
603
|
+
return k != null && (V["--vf-drawer-offset-top"] = k), J != null && (V["--vf-drawer-body-padding"] = J), V;
|
|
604
|
+
}), S = s(
|
|
596
605
|
() => N(
|
|
597
606
|
"vf-drawer",
|
|
598
607
|
`vf-drawer--${e.placement}`,
|
|
599
608
|
e.offsetTop != null && "vf-drawer--offset-top"
|
|
600
609
|
)
|
|
601
|
-
),
|
|
610
|
+
), I = s(() => [
|
|
602
611
|
w.value,
|
|
603
612
|
l.style
|
|
604
|
-
]),
|
|
605
|
-
Object.entries(l).filter(([
|
|
606
|
-
)),
|
|
613
|
+
]), M = s(() => Object.fromEntries(
|
|
614
|
+
Object.entries(l).filter(([V]) => V !== "class" && V !== "style")
|
|
615
|
+
)), $ = s(
|
|
607
616
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
608
|
-
),
|
|
617
|
+
), f = s(() => e.scrollLockTarget === !1 ? null : e.scrollLockTarget), a = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), m = s(
|
|
609
618
|
() => N(
|
|
610
619
|
"vf-drawer__content",
|
|
611
620
|
`vf-drawer__content--${e.placement}`,
|
|
612
621
|
`vf-drawer__content--${e.size}`
|
|
613
622
|
)
|
|
614
|
-
),
|
|
615
|
-
() => e.title ||
|
|
623
|
+
), c = s(() => !!v.header), o = s(
|
|
624
|
+
() => e.title || c.value ? _.value : void 0
|
|
616
625
|
);
|
|
617
|
-
function
|
|
626
|
+
function B() {
|
|
618
627
|
b.close();
|
|
619
628
|
}
|
|
620
|
-
function
|
|
621
|
-
e.closeOnOverlayClick &&
|
|
629
|
+
function A() {
|
|
630
|
+
e.closeOnOverlayClick && B();
|
|
622
631
|
}
|
|
623
|
-
function
|
|
624
|
-
const
|
|
625
|
-
if (!
|
|
632
|
+
function z() {
|
|
633
|
+
const V = r.value;
|
|
634
|
+
if (!V)
|
|
626
635
|
return;
|
|
627
|
-
const k =
|
|
636
|
+
const k = V.querySelector(
|
|
628
637
|
"[autofocus], [data-autofocus]"
|
|
629
638
|
);
|
|
630
639
|
if (k) {
|
|
631
640
|
k.focus();
|
|
632
641
|
return;
|
|
633
642
|
}
|
|
634
|
-
|
|
643
|
+
V.focus();
|
|
635
644
|
}
|
|
636
645
|
return fe(
|
|
637
|
-
(
|
|
638
|
-
!e.closeOnEscape || !
|
|
646
|
+
(V) => {
|
|
647
|
+
!e.closeOnEscape || !p.value || (V.preventDefault(), B());
|
|
639
648
|
},
|
|
640
649
|
{
|
|
641
|
-
enabled:
|
|
650
|
+
enabled: p
|
|
642
651
|
}
|
|
643
|
-
),
|
|
644
|
-
enabled:
|
|
645
|
-
}),
|
|
646
|
-
target:
|
|
652
|
+
), Ae(r, {
|
|
653
|
+
enabled: p
|
|
654
|
+
}), xe(p, {
|
|
655
|
+
target: f
|
|
647
656
|
}), Z(
|
|
648
|
-
|
|
649
|
-
async (
|
|
657
|
+
p,
|
|
658
|
+
async (V) => {
|
|
650
659
|
var k;
|
|
651
660
|
if (!(typeof document > "u")) {
|
|
652
|
-
if (
|
|
653
|
-
u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(),
|
|
661
|
+
if (V) {
|
|
662
|
+
u.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), z();
|
|
654
663
|
return;
|
|
655
664
|
}
|
|
656
665
|
(k = u.value) == null || k.focus();
|
|
@@ -658,63 +667,63 @@ const tt = {
|
|
|
658
667
|
},
|
|
659
668
|
{ immediate: !0 }
|
|
660
669
|
), ee(() => {
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
}), (
|
|
664
|
-
to:
|
|
665
|
-
disabled:
|
|
670
|
+
var V;
|
|
671
|
+
p.value && ((V = u.value) == null || V.focus());
|
|
672
|
+
}), (V, k) => (d(), q(le, {
|
|
673
|
+
to: a.value,
|
|
674
|
+
disabled: $.value
|
|
666
675
|
}, [
|
|
667
676
|
j(ne, {
|
|
668
677
|
name: "vf-drawer-transition",
|
|
669
678
|
appear: "",
|
|
670
|
-
duration:
|
|
679
|
+
duration: C
|
|
671
680
|
}, {
|
|
672
681
|
default: Q(() => [
|
|
673
|
-
|
|
682
|
+
y(p) ? (d(), h("div", H({
|
|
674
683
|
key: 0,
|
|
675
|
-
class: [
|
|
676
|
-
style:
|
|
677
|
-
},
|
|
684
|
+
class: [S.value, y(l).class],
|
|
685
|
+
style: I.value
|
|
686
|
+
}, M.value), [
|
|
678
687
|
T("div", {
|
|
679
688
|
class: "vf-drawer__overlay",
|
|
680
689
|
"aria-hidden": "true",
|
|
681
|
-
onClick:
|
|
690
|
+
onClick: A
|
|
682
691
|
}),
|
|
683
692
|
T("section", {
|
|
684
693
|
ref_key: "contentRef",
|
|
685
694
|
ref: r,
|
|
686
|
-
class: P(
|
|
687
|
-
"aria-labelledby":
|
|
695
|
+
class: P(m.value),
|
|
696
|
+
"aria-labelledby": o.value,
|
|
688
697
|
"aria-modal": "true",
|
|
689
698
|
role: "dialog",
|
|
690
699
|
tabindex: "-1"
|
|
691
700
|
}, [
|
|
692
|
-
t.title ||
|
|
701
|
+
t.title || V.$slots.header ? (d(), h("header", pt, [
|
|
693
702
|
T("div", null, [
|
|
694
|
-
|
|
695
|
-
t.title ? (
|
|
703
|
+
E(V.$slots, "header", {}, () => [
|
|
704
|
+
t.title ? (d(), h("h2", {
|
|
696
705
|
key: 0,
|
|
697
|
-
id:
|
|
706
|
+
id: y(_),
|
|
698
707
|
class: "vf-drawer__title"
|
|
699
708
|
}, F(t.title), 9, mt)) : O("", !0)
|
|
700
709
|
])
|
|
701
710
|
]),
|
|
702
711
|
T("div", ht, [
|
|
703
|
-
|
|
704
|
-
e.closable ? (
|
|
712
|
+
E(V.$slots, "actions", { close: B }),
|
|
713
|
+
e.closable ? (d(), q(De, {
|
|
705
714
|
key: 0,
|
|
706
|
-
icon:
|
|
715
|
+
icon: y(X).xmark,
|
|
707
716
|
"aria-label": "Close drawer",
|
|
708
717
|
size: "sm",
|
|
709
|
-
onClick:
|
|
718
|
+
onClick: B
|
|
710
719
|
}, null, 8, ["icon"])) : O("", !0)
|
|
711
720
|
])
|
|
712
721
|
])) : O("", !0),
|
|
713
|
-
|
|
714
|
-
|
|
722
|
+
V.$slots.default ? (d(), h("div", yt, [
|
|
723
|
+
E(V.$slots, "default", { close: B })
|
|
715
724
|
])) : O("", !0),
|
|
716
|
-
|
|
717
|
-
|
|
725
|
+
V.$slots.footer ? (d(), h("footer", _t, [
|
|
726
|
+
E(V.$slots, "footer", { close: B })
|
|
718
727
|
])) : O("", !0)
|
|
719
728
|
], 10, vt)
|
|
720
729
|
], 16)) : O("", !0)
|
|
@@ -732,7 +741,7 @@ const tt = {
|
|
|
732
741
|
}, kt = ["id"], wt = ["id"], Tt = { class: "vf-dialog__actions" }, Vt = {
|
|
733
742
|
key: 1,
|
|
734
743
|
class: "vf-dialog__body"
|
|
735
|
-
},
|
|
744
|
+
}, Ct = {
|
|
736
745
|
key: 2,
|
|
737
746
|
class: "vf-dialog__footer"
|
|
738
747
|
}, On = /* @__PURE__ */ L({
|
|
@@ -751,130 +760,130 @@ const tt = {
|
|
|
751
760
|
},
|
|
752
761
|
emits: ["update:open", "openChange"],
|
|
753
762
|
setup(t, { emit: n }) {
|
|
754
|
-
const e = t, i = n, l =
|
|
763
|
+
const e = t, i = n, l = D(null), r = D(null), u = Te(), v = G({ prefix: "vf-dialog-title" }), _ = G({ prefix: "vf-dialog-description" }), b = se({
|
|
755
764
|
defaultOpen: e.defaultOpen,
|
|
756
765
|
open: s(() => e.open),
|
|
757
|
-
onOpenChange: (
|
|
758
|
-
i("update:open",
|
|
766
|
+
onOpenChange: (o) => {
|
|
767
|
+
i("update:open", o), i("openChange", o);
|
|
759
768
|
}
|
|
760
|
-
}),
|
|
769
|
+
}), p = b.isOpen, C = {
|
|
761
770
|
enter: U.fast,
|
|
762
771
|
leave: U.fast
|
|
763
|
-
},
|
|
772
|
+
}, x = s(
|
|
764
773
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
765
|
-
), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"),
|
|
774
|
+
), w = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), S = s(
|
|
766
775
|
() => N(
|
|
767
776
|
"vf-dialog__content",
|
|
768
777
|
e.size !== "md" && `vf-dialog__content--${e.size}`
|
|
769
778
|
)
|
|
770
|
-
),
|
|
771
|
-
() => e.title ||
|
|
772
|
-
),
|
|
773
|
-
() => e.description ||
|
|
779
|
+
), I = s(() => !!u.header), M = s(() => !!u.description), $ = s(
|
|
780
|
+
() => e.title || I.value ? v.value : void 0
|
|
781
|
+
), f = s(
|
|
782
|
+
() => e.description || M.value ? _.value : void 0
|
|
774
783
|
);
|
|
775
|
-
function
|
|
784
|
+
function a() {
|
|
776
785
|
b.close();
|
|
777
786
|
}
|
|
778
|
-
function
|
|
779
|
-
e.closeOnOverlayClick &&
|
|
787
|
+
function m() {
|
|
788
|
+
e.closeOnOverlayClick && a();
|
|
780
789
|
}
|
|
781
|
-
function
|
|
782
|
-
const
|
|
783
|
-
if (!
|
|
790
|
+
function c() {
|
|
791
|
+
const o = l.value;
|
|
792
|
+
if (!o)
|
|
784
793
|
return;
|
|
785
|
-
const
|
|
794
|
+
const B = o.querySelector(
|
|
786
795
|
"[autofocus], [data-autofocus]"
|
|
787
796
|
);
|
|
788
|
-
if (
|
|
789
|
-
|
|
797
|
+
if (B) {
|
|
798
|
+
B.focus();
|
|
790
799
|
return;
|
|
791
800
|
}
|
|
792
|
-
|
|
801
|
+
o.focus();
|
|
793
802
|
}
|
|
794
803
|
return fe(
|
|
795
|
-
(
|
|
796
|
-
!e.closeOnEscape || !
|
|
804
|
+
(o) => {
|
|
805
|
+
!e.closeOnEscape || !p.value || (o.preventDefault(), a());
|
|
797
806
|
},
|
|
798
807
|
{
|
|
799
|
-
enabled:
|
|
808
|
+
enabled: p
|
|
800
809
|
}
|
|
801
|
-
),
|
|
802
|
-
enabled:
|
|
803
|
-
}),
|
|
804
|
-
|
|
805
|
-
async (
|
|
806
|
-
var
|
|
810
|
+
), Ae(l, {
|
|
811
|
+
enabled: p
|
|
812
|
+
}), xe(p), Z(
|
|
813
|
+
p,
|
|
814
|
+
async (o) => {
|
|
815
|
+
var B;
|
|
807
816
|
if (!(typeof document > "u")) {
|
|
808
|
-
if (
|
|
809
|
-
r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(),
|
|
817
|
+
if (o) {
|
|
818
|
+
r.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await ae(), c();
|
|
810
819
|
return;
|
|
811
820
|
}
|
|
812
|
-
(
|
|
821
|
+
(B = r.value) == null || B.focus();
|
|
813
822
|
}
|
|
814
823
|
},
|
|
815
824
|
{ immediate: !0 }
|
|
816
825
|
), ee(() => {
|
|
817
|
-
var
|
|
818
|
-
|
|
819
|
-
}), (
|
|
826
|
+
var o;
|
|
827
|
+
p.value && ((o = r.value) == null || o.focus());
|
|
828
|
+
}), (o, B) => (d(), q(le, {
|
|
820
829
|
to: w.value,
|
|
821
|
-
disabled:
|
|
830
|
+
disabled: x.value
|
|
822
831
|
}, [
|
|
823
832
|
j(ne, {
|
|
824
833
|
name: "vf-dialog-transition",
|
|
825
834
|
appear: "",
|
|
826
|
-
duration:
|
|
835
|
+
duration: C
|
|
827
836
|
}, {
|
|
828
837
|
default: Q(() => [
|
|
829
|
-
|
|
838
|
+
y(p) ? (d(), h("div", gt, [
|
|
830
839
|
T("div", {
|
|
831
840
|
class: "vf-dialog__overlay",
|
|
832
841
|
"aria-hidden": "true",
|
|
833
|
-
onClick:
|
|
842
|
+
onClick: m
|
|
834
843
|
}),
|
|
835
844
|
T("section", {
|
|
836
845
|
ref_key: "contentRef",
|
|
837
846
|
ref: l,
|
|
838
|
-
class: P(
|
|
839
|
-
"aria-describedby":
|
|
840
|
-
"aria-labelledby":
|
|
847
|
+
class: P(S.value),
|
|
848
|
+
"aria-describedby": f.value,
|
|
849
|
+
"aria-labelledby": $.value,
|
|
841
850
|
"aria-modal": "true",
|
|
842
851
|
role: "dialog",
|
|
843
852
|
tabindex: "-1"
|
|
844
853
|
}, [
|
|
845
|
-
t.title || t.description ||
|
|
854
|
+
t.title || t.description || o.$slots.header || o.$slots.description ? (d(), h("header", $t, [
|
|
846
855
|
T("div", null, [
|
|
847
|
-
|
|
848
|
-
t.title ? (
|
|
856
|
+
E(o.$slots, "header", {}, () => [
|
|
857
|
+
t.title ? (d(), h("h2", {
|
|
849
858
|
key: 0,
|
|
850
|
-
id:
|
|
859
|
+
id: y(v),
|
|
851
860
|
class: "vf-dialog__title"
|
|
852
861
|
}, F(t.title), 9, kt)) : O("", !0)
|
|
853
862
|
]),
|
|
854
|
-
|
|
855
|
-
t.description ? (
|
|
863
|
+
E(o.$slots, "description", {}, () => [
|
|
864
|
+
t.description ? (d(), h("p", {
|
|
856
865
|
key: 0,
|
|
857
|
-
id:
|
|
866
|
+
id: y(_),
|
|
858
867
|
class: "vf-dialog__description"
|
|
859
868
|
}, F(t.description), 9, wt)) : O("", !0)
|
|
860
869
|
])
|
|
861
870
|
]),
|
|
862
871
|
T("div", Tt, [
|
|
863
|
-
|
|
864
|
-
e.closable ? (
|
|
872
|
+
E(o.$slots, "actions", { close: a }),
|
|
873
|
+
e.closable ? (d(), q(De, {
|
|
865
874
|
key: 0,
|
|
866
|
-
icon:
|
|
875
|
+
icon: y(X).xmark,
|
|
867
876
|
"aria-label": "Close dialog",
|
|
868
877
|
size: "sm",
|
|
869
|
-
onClick:
|
|
878
|
+
onClick: a
|
|
870
879
|
}, null, 8, ["icon"])) : O("", !0)
|
|
871
880
|
])
|
|
872
881
|
])) : O("", !0),
|
|
873
|
-
|
|
874
|
-
|
|
882
|
+
o.$slots.default ? (d(), h("div", Vt, [
|
|
883
|
+
E(o.$slots, "default", { close: a })
|
|
875
884
|
])) : O("", !0),
|
|
876
|
-
|
|
877
|
-
|
|
885
|
+
o.$slots.footer ? (d(), h("footer", Ct, [
|
|
886
|
+
E(o.$slots, "footer", { close: a })
|
|
878
887
|
])) : O("", !0)
|
|
879
888
|
], 10, bt)
|
|
880
889
|
])) : O("", !0)
|
|
@@ -883,7 +892,7 @@ const tt = {
|
|
|
883
892
|
})
|
|
884
893
|
], 8, ["to", "disabled"]));
|
|
885
894
|
}
|
|
886
|
-
}),
|
|
895
|
+
}), xt = ["aria-orientation", "role"], An = /* @__PURE__ */ L({
|
|
887
896
|
inheritAttrs: !1,
|
|
888
897
|
__name: "VfDivider",
|
|
889
898
|
props: {
|
|
@@ -893,13 +902,13 @@ const tt = {
|
|
|
893
902
|
const n = t, e = R(), i = s(() => n.orientation === "vertical"), l = s(
|
|
894
903
|
() => N("vf-divider", `vf-divider--${n.orientation}`)
|
|
895
904
|
);
|
|
896
|
-
return (r, u) => (
|
|
905
|
+
return (r, u) => (d(), h("div", H({
|
|
897
906
|
class: l.value,
|
|
898
907
|
"aria-orientation": n.orientation,
|
|
899
908
|
role: i.value ? "separator" : void 0
|
|
900
|
-
},
|
|
909
|
+
}, y(e)), null, 16, xt));
|
|
901
910
|
}
|
|
902
|
-
}), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"],
|
|
911
|
+
}), Bt = { class: "vf-dropdown" }, Et = ["id", "aria-controls", "aria-expanded"], Ot = ["id", "aria-labelledby"], Dn = /* @__PURE__ */ L({
|
|
903
912
|
__name: "VfDropdown",
|
|
904
913
|
props: {
|
|
905
914
|
open: { type: Boolean, default: void 0 },
|
|
@@ -911,137 +920,137 @@ const tt = {
|
|
|
911
920
|
},
|
|
912
921
|
emits: ["update:open", "openChange"],
|
|
913
922
|
setup(t, { emit: n }) {
|
|
914
|
-
const e = t, i = n, l =
|
|
923
|
+
const e = t, i = n, l = D(null), r = D(null), u = D(null), v = G({ prefix: "vf-dropdown-menu" }), _ = G({ prefix: "vf-dropdown-trigger" }), b = {
|
|
915
924
|
enter: U.fast,
|
|
916
925
|
leave: U.fast
|
|
917
|
-
},
|
|
926
|
+
}, p = s(
|
|
918
927
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
919
|
-
),
|
|
928
|
+
), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
|
|
920
929
|
defaultOpen: e.defaultOpen,
|
|
921
930
|
open: s(() => e.open),
|
|
922
|
-
onOpenChange: (
|
|
923
|
-
i("update:open",
|
|
931
|
+
onOpenChange: (g) => {
|
|
932
|
+
i("update:open", g), i("openChange", g);
|
|
924
933
|
}
|
|
925
|
-
}), w =
|
|
934
|
+
}), w = x.isOpen, S = s(() => [
|
|
926
935
|
"vf-dropdown__menu",
|
|
927
|
-
|
|
928
|
-
]),
|
|
929
|
-
const
|
|
936
|
+
a.value.startsWith("top") && "vf-dropdown__menu--top"
|
|
937
|
+
]), I = s(() => {
|
|
938
|
+
const g = m.value.arrow;
|
|
930
939
|
return {
|
|
931
|
-
x: (
|
|
932
|
-
y: (
|
|
940
|
+
x: (g == null ? void 0 : g.x) !== void 0 && (g == null ? void 0 : g.baseX) !== void 0 ? g.x - g.baseX : 0,
|
|
941
|
+
y: (g == null ? void 0 : g.y) !== void 0 && (g == null ? void 0 : g.baseY) !== void 0 ? g.y - g.baseY : 0
|
|
933
942
|
};
|
|
934
|
-
}),
|
|
935
|
-
left: `${
|
|
936
|
-
top: `${
|
|
937
|
-
})),
|
|
943
|
+
}), M = s(() => ({
|
|
944
|
+
left: `${I.value.x}px`,
|
|
945
|
+
top: `${I.value.y}px`
|
|
946
|
+
})), $ = s(() => [
|
|
938
947
|
"vf-dropdown__arrow",
|
|
939
|
-
|
|
940
|
-
]),
|
|
948
|
+
a.value.startsWith("top") ? "vf-dropdown__arrow--top" : "vf-dropdown__arrow--bottom"
|
|
949
|
+
]), f = s(
|
|
941
950
|
() => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
|
|
942
951
|
), {
|
|
943
|
-
placement:
|
|
944
|
-
middlewareData:
|
|
945
|
-
styles:
|
|
952
|
+
placement: a,
|
|
953
|
+
middlewareData: m,
|
|
954
|
+
styles: c
|
|
946
955
|
} = ye(l, r, {
|
|
947
956
|
enabled: w,
|
|
948
957
|
placement: s(() => e.placement),
|
|
949
958
|
middleware: s(
|
|
950
959
|
() => [
|
|
951
960
|
ve(10),
|
|
952
|
-
pe({ placements:
|
|
961
|
+
pe({ placements: f.value }),
|
|
953
962
|
me(),
|
|
954
963
|
u.value ? he(u.value) : void 0
|
|
955
|
-
].filter((
|
|
964
|
+
].filter((g) => g !== void 0)
|
|
956
965
|
),
|
|
957
966
|
strategy: "fixed"
|
|
958
967
|
});
|
|
959
|
-
function
|
|
960
|
-
var
|
|
968
|
+
function o() {
|
|
969
|
+
var g;
|
|
961
970
|
return Array.from(
|
|
962
|
-
((
|
|
971
|
+
((g = r.value) == null ? void 0 : g.querySelectorAll('[role="menuitem"]')) ?? []
|
|
963
972
|
);
|
|
964
973
|
}
|
|
965
|
-
async function
|
|
966
|
-
var
|
|
967
|
-
await ae(), (
|
|
974
|
+
async function B() {
|
|
975
|
+
var g;
|
|
976
|
+
await ae(), (g = o()[0]) == null || g.focus();
|
|
968
977
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
978
|
+
function A(g = {}) {
|
|
979
|
+
x.open(), g.focusFirstItem && B();
|
|
971
980
|
}
|
|
972
|
-
function
|
|
973
|
-
var
|
|
974
|
-
|
|
981
|
+
function z() {
|
|
982
|
+
var g;
|
|
983
|
+
x.close(), (g = l.value) == null || g.focus();
|
|
975
984
|
}
|
|
976
|
-
function
|
|
985
|
+
function V() {
|
|
977
986
|
if (w.value) {
|
|
978
|
-
|
|
987
|
+
z();
|
|
979
988
|
return;
|
|
980
989
|
}
|
|
981
|
-
|
|
990
|
+
A();
|
|
982
991
|
}
|
|
983
|
-
function k(
|
|
984
|
-
(
|
|
992
|
+
function k(g) {
|
|
993
|
+
(g.key === "ArrowDown" || g.key === "Enter" || g.key === " ") && (g.preventDefault(), A({ focusFirstItem: !0 }));
|
|
985
994
|
}
|
|
986
|
-
function J(
|
|
995
|
+
function J(g) {
|
|
987
996
|
var ge, be, $e, ke;
|
|
988
|
-
const Y =
|
|
997
|
+
const Y = o(), _e = Y.findIndex(
|
|
989
998
|
(Ie) => Ie === document.activeElement
|
|
990
999
|
);
|
|
991
|
-
if (
|
|
992
|
-
|
|
1000
|
+
if (g.key === "ArrowDown") {
|
|
1001
|
+
g.preventDefault(), (ge = Y[(_e + 1 + Y.length) % Y.length]) == null || ge.focus();
|
|
993
1002
|
return;
|
|
994
1003
|
}
|
|
995
|
-
if (
|
|
996
|
-
|
|
1004
|
+
if (g.key === "ArrowUp") {
|
|
1005
|
+
g.preventDefault(), (be = Y[(_e - 1 + Y.length) % Y.length]) == null || be.focus();
|
|
997
1006
|
return;
|
|
998
1007
|
}
|
|
999
|
-
if (
|
|
1000
|
-
|
|
1008
|
+
if (g.key === "Home") {
|
|
1009
|
+
g.preventDefault(), ($e = Y[0]) == null || $e.focus();
|
|
1001
1010
|
return;
|
|
1002
1011
|
}
|
|
1003
|
-
|
|
1012
|
+
g.key === "End" && (g.preventDefault(), (ke = Y[Y.length - 1]) == null || ke.focus());
|
|
1004
1013
|
}
|
|
1005
1014
|
function ie() {
|
|
1006
|
-
e.closeOnSelect &&
|
|
1015
|
+
e.closeOnSelect && z();
|
|
1007
1016
|
}
|
|
1008
1017
|
return Oe(
|
|
1009
1018
|
[l, r],
|
|
1010
1019
|
() => {
|
|
1011
|
-
w.value &&
|
|
1020
|
+
w.value && z();
|
|
1012
1021
|
},
|
|
1013
1022
|
{
|
|
1014
1023
|
enabled: w,
|
|
1015
1024
|
event: "click"
|
|
1016
1025
|
}
|
|
1017
1026
|
), fe(
|
|
1018
|
-
(
|
|
1019
|
-
w.value && (
|
|
1027
|
+
(g) => {
|
|
1028
|
+
w.value && (g.preventDefault(), z());
|
|
1020
1029
|
},
|
|
1021
1030
|
{
|
|
1022
1031
|
enabled: w
|
|
1023
1032
|
}
|
|
1024
|
-
), (
|
|
1033
|
+
), (g, Y) => (d(), h("div", Bt, [
|
|
1025
1034
|
T("div", {
|
|
1026
|
-
id:
|
|
1035
|
+
id: y(_),
|
|
1027
1036
|
ref_key: "triggerRef",
|
|
1028
1037
|
ref: l,
|
|
1029
1038
|
class: "vf-dropdown__trigger",
|
|
1030
|
-
"aria-controls":
|
|
1031
|
-
"aria-expanded":
|
|
1039
|
+
"aria-controls": y(v),
|
|
1040
|
+
"aria-expanded": y(w),
|
|
1032
1041
|
"aria-haspopup": "menu",
|
|
1033
1042
|
tabindex: "0",
|
|
1034
|
-
onClick:
|
|
1043
|
+
onClick: V,
|
|
1035
1044
|
onKeydown: k
|
|
1036
1045
|
}, [
|
|
1037
|
-
|
|
1038
|
-
open:
|
|
1039
|
-
toggle:
|
|
1046
|
+
E(g.$slots, "trigger", {
|
|
1047
|
+
open: y(w),
|
|
1048
|
+
toggle: V
|
|
1040
1049
|
})
|
|
1041
1050
|
], 40, Et),
|
|
1042
|
-
(
|
|
1043
|
-
to:
|
|
1044
|
-
disabled:
|
|
1051
|
+
(d(), q(le, {
|
|
1052
|
+
to: C.value,
|
|
1053
|
+
disabled: p.value
|
|
1045
1054
|
}, [
|
|
1046
1055
|
j(ne, {
|
|
1047
1056
|
name: "vf-floating-transition",
|
|
@@ -1049,14 +1058,14 @@ const tt = {
|
|
|
1049
1058
|
duration: b
|
|
1050
1059
|
}, {
|
|
1051
1060
|
default: Q(() => [
|
|
1052
|
-
|
|
1061
|
+
y(w) ? (d(), h("div", {
|
|
1053
1062
|
key: 0,
|
|
1054
|
-
id:
|
|
1063
|
+
id: y(v),
|
|
1055
1064
|
ref_key: "menuRef",
|
|
1056
1065
|
ref: r,
|
|
1057
|
-
class: P(
|
|
1058
|
-
style: W(
|
|
1059
|
-
"aria-labelledby":
|
|
1066
|
+
class: P(S.value),
|
|
1067
|
+
style: W(y(c)),
|
|
1068
|
+
"aria-labelledby": y(_),
|
|
1060
1069
|
role: "menu",
|
|
1061
1070
|
onClick: ie,
|
|
1062
1071
|
onKeydown: J
|
|
@@ -1064,13 +1073,13 @@ const tt = {
|
|
|
1064
1073
|
T("span", {
|
|
1065
1074
|
ref_key: "arrowRef",
|
|
1066
1075
|
ref: u,
|
|
1067
|
-
class: P(
|
|
1068
|
-
style: W(
|
|
1076
|
+
class: P($.value),
|
|
1077
|
+
style: W(M.value),
|
|
1069
1078
|
"aria-hidden": "true"
|
|
1070
1079
|
}, null, 6),
|
|
1071
|
-
|
|
1072
|
-
close:
|
|
1073
|
-
open:
|
|
1080
|
+
E(g.$slots, "default", {
|
|
1081
|
+
close: z,
|
|
1082
|
+
open: y(w)
|
|
1074
1083
|
})
|
|
1075
1084
|
], 46, Ot)) : O("", !0)
|
|
1076
1085
|
]),
|
|
@@ -1079,7 +1088,7 @@ const tt = {
|
|
|
1079
1088
|
], 8, ["to", "disabled"]))
|
|
1080
1089
|
]));
|
|
1081
1090
|
}
|
|
1082
|
-
}),
|
|
1091
|
+
}), At = ["value", "aria-invalid"], In = /* @__PURE__ */ L({
|
|
1083
1092
|
inheritAttrs: !1,
|
|
1084
1093
|
__name: "VfInput",
|
|
1085
1094
|
props: {
|
|
@@ -1096,14 +1105,14 @@ const tt = {
|
|
|
1096
1105
|
e.invalid && "vf-input--invalid"
|
|
1097
1106
|
)
|
|
1098
1107
|
);
|
|
1099
|
-
function u(
|
|
1100
|
-
i("update:modelValue",
|
|
1108
|
+
function u(v) {
|
|
1109
|
+
i("update:modelValue", v.target.value);
|
|
1101
1110
|
}
|
|
1102
|
-
return (
|
|
1111
|
+
return (v, _) => (d(), h("input", H({
|
|
1103
1112
|
class: r.value,
|
|
1104
1113
|
value: e.modelValue,
|
|
1105
1114
|
"aria-invalid": e.invalid || void 0
|
|
1106
|
-
},
|
|
1115
|
+
}, y(l), { onInput: u }), null, 16, At));
|
|
1107
1116
|
}
|
|
1108
1117
|
}), Ln = /* @__PURE__ */ L({
|
|
1109
1118
|
inheritAttrs: !1,
|
|
@@ -1124,7 +1133,7 @@ const tt = {
|
|
|
1124
1133
|
n.underline && "vf-link--underline",
|
|
1125
1134
|
n.tone === "muted" && "vf-link--muted"
|
|
1126
1135
|
)
|
|
1127
|
-
),
|
|
1136
|
+
), v = s(() => i.value ? {
|
|
1128
1137
|
to: n.to,
|
|
1129
1138
|
target: n.target,
|
|
1130
1139
|
rel: r.value
|
|
@@ -1132,19 +1141,19 @@ const tt = {
|
|
|
1132
1141
|
href: n.href,
|
|
1133
1142
|
target: n.target,
|
|
1134
1143
|
rel: r.value
|
|
1135
|
-
}),
|
|
1144
|
+
}), _ = s(() => ({
|
|
1136
1145
|
...e,
|
|
1137
|
-
...
|
|
1146
|
+
...v.value,
|
|
1138
1147
|
class: u.value
|
|
1139
1148
|
}));
|
|
1140
|
-
return (b,
|
|
1149
|
+
return (b, p) => (d(), q(re(l.value), Ve(Ce(_.value)), {
|
|
1141
1150
|
default: Q(() => [
|
|
1142
|
-
|
|
1151
|
+
E(b.$slots, "default")
|
|
1143
1152
|
]),
|
|
1144
1153
|
_: 3
|
|
1145
1154
|
}, 16));
|
|
1146
1155
|
}
|
|
1147
|
-
}),
|
|
1156
|
+
}), Dt = { class: "vf-nav-menu__node" }, It = { class: "vf-nav-menu__item-content" }, Lt = { class: "vf-nav-menu__group-label" }, St = ["aria-expanded", "disabled"], Mt = { class: "vf-nav-menu__item-content" }, zt = {
|
|
1148
1157
|
key: 0,
|
|
1149
1158
|
class: "vf-nav-menu__leading-icon",
|
|
1150
1159
|
"aria-hidden": "true"
|
|
@@ -1172,70 +1181,70 @@ const tt = {
|
|
|
1172
1181
|
emits: ["toggle", "select"],
|
|
1173
1182
|
setup(t, { emit: n }) {
|
|
1174
1183
|
const e = t, i = n, l = s(() => {
|
|
1175
|
-
var
|
|
1176
|
-
return !!((
|
|
1184
|
+
var c;
|
|
1185
|
+
return !!((c = e.item.children) != null && c.length);
|
|
1177
1186
|
}), r = s(() => e.item.kind === "group"), u = s(
|
|
1178
1187
|
() => e.expandedValues.includes(e.item.value)
|
|
1179
|
-
),
|
|
1188
|
+
), v = s(() => e.activeValue === e.item.value), _ = s(
|
|
1180
1189
|
() => e.item.href !== void 0 || e.item.to !== void 0
|
|
1181
|
-
), b = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"),
|
|
1190
|
+
), b = s(() => e.item.to !== void 0 ? re("RouterLink") : "a"), p = s(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), C = s(() => e.item.to !== void 0 ? {
|
|
1182
1191
|
to: e.item.to,
|
|
1183
1192
|
target: e.item.target,
|
|
1184
|
-
rel:
|
|
1193
|
+
rel: p.value
|
|
1185
1194
|
} : {
|
|
1186
1195
|
href: e.item.href,
|
|
1187
1196
|
target: e.item.target,
|
|
1188
|
-
rel:
|
|
1197
|
+
rel: p.value
|
|
1189
1198
|
});
|
|
1190
|
-
function
|
|
1199
|
+
function x() {
|
|
1191
1200
|
e.item.disabled || i("toggle", {
|
|
1192
1201
|
value: e.item.value,
|
|
1193
1202
|
parentPath: e.parentPath
|
|
1194
1203
|
});
|
|
1195
1204
|
}
|
|
1196
|
-
function w(
|
|
1205
|
+
function w(c) {
|
|
1197
1206
|
if (e.item.disabled) {
|
|
1198
|
-
|
|
1207
|
+
c == null || c.preventDefault();
|
|
1199
1208
|
return;
|
|
1200
1209
|
}
|
|
1201
1210
|
i("select", e.item);
|
|
1202
1211
|
}
|
|
1203
|
-
function
|
|
1204
|
-
const
|
|
1205
|
-
return
|
|
1212
|
+
function S(c) {
|
|
1213
|
+
const o = c;
|
|
1214
|
+
return o.style.transition = "height var(--vf-motion-duration-normal) var(--vf-motion-ease-standard), opacity var(--vf-motion-duration-normal) var(--vf-motion-ease-standard)", o;
|
|
1206
1215
|
}
|
|
1207
|
-
function
|
|
1208
|
-
const
|
|
1209
|
-
|
|
1216
|
+
function I(c) {
|
|
1217
|
+
const o = S(c);
|
|
1218
|
+
o.style.overflow = "hidden", o.style.height = "0", o.style.opacity = "0";
|
|
1210
1219
|
}
|
|
1211
|
-
function
|
|
1212
|
-
const
|
|
1220
|
+
function M(c) {
|
|
1221
|
+
const o = S(c);
|
|
1213
1222
|
requestAnimationFrame(() => {
|
|
1214
|
-
|
|
1223
|
+
o.style.height = `${o.scrollHeight}px`, o.style.opacity = "1";
|
|
1215
1224
|
});
|
|
1216
1225
|
}
|
|
1217
|
-
function
|
|
1218
|
-
const
|
|
1219
|
-
|
|
1226
|
+
function $(c) {
|
|
1227
|
+
const o = c;
|
|
1228
|
+
o.style.transition = "", o.style.overflow = "", o.style.height = "", o.style.opacity = "";
|
|
1220
1229
|
}
|
|
1221
|
-
function
|
|
1222
|
-
const
|
|
1223
|
-
|
|
1230
|
+
function f(c) {
|
|
1231
|
+
const o = S(c);
|
|
1232
|
+
o.style.overflow = "hidden", o.style.height = `${o.scrollHeight}px`, o.style.opacity = "1";
|
|
1224
1233
|
}
|
|
1225
|
-
function
|
|
1226
|
-
const
|
|
1227
|
-
|
|
1228
|
-
|
|
1234
|
+
function a(c) {
|
|
1235
|
+
const o = c;
|
|
1236
|
+
o.offsetHeight, requestAnimationFrame(() => {
|
|
1237
|
+
o.style.height = "0", o.style.opacity = "0";
|
|
1229
1238
|
});
|
|
1230
1239
|
}
|
|
1231
|
-
function
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1240
|
+
function m(c) {
|
|
1241
|
+
const o = c;
|
|
1242
|
+
o.style.transition = "", o.style.overflow = "", o.style.height = "", o.style.opacity = "";
|
|
1234
1243
|
}
|
|
1235
|
-
return (
|
|
1236
|
-
const
|
|
1237
|
-
return
|
|
1238
|
-
r.value ? (
|
|
1244
|
+
return (c, o) => {
|
|
1245
|
+
const B = He("VfNavMenuItemNode", !0);
|
|
1246
|
+
return d(), h("li", Dt, [
|
|
1247
|
+
r.value ? (d(), h("div", {
|
|
1239
1248
|
key: 0,
|
|
1240
1249
|
class: P(["vf-nav-menu__group", `vf-nav-menu__group--level-${t.level}`]),
|
|
1241
1250
|
style: W({ "--vf-nav-menu-level": String(t.level) })
|
|
@@ -1243,7 +1252,7 @@ const tt = {
|
|
|
1243
1252
|
T("span", It, [
|
|
1244
1253
|
T("span", Lt, F(t.item.label), 1)
|
|
1245
1254
|
])
|
|
1246
|
-
], 6)) : l.value ? (
|
|
1255
|
+
], 6)) : l.value ? (d(), h("button", {
|
|
1247
1256
|
key: 1,
|
|
1248
1257
|
class: P([
|
|
1249
1258
|
"vf-nav-menu__item",
|
|
@@ -1254,11 +1263,11 @@ const tt = {
|
|
|
1254
1263
|
"aria-expanded": u.value,
|
|
1255
1264
|
disabled: t.item.disabled,
|
|
1256
1265
|
type: "button",
|
|
1257
|
-
onClick:
|
|
1266
|
+
onClick: x
|
|
1258
1267
|
}, [
|
|
1259
|
-
T("span",
|
|
1260
|
-
t.item.leadingIcon ? (
|
|
1261
|
-
j(
|
|
1268
|
+
T("span", Mt, [
|
|
1269
|
+
t.item.leadingIcon ? (d(), h("span", zt, [
|
|
1270
|
+
j(y(te), {
|
|
1262
1271
|
icon: t.item.leadingIcon,
|
|
1263
1272
|
size: "1rem"
|
|
1264
1273
|
}, null, 8, ["icon"])
|
|
@@ -1269,25 +1278,25 @@ const tt = {
|
|
|
1269
1278
|
class: P(["vf-nav-menu__icon", u.value && "vf-nav-menu__icon--open"]),
|
|
1270
1279
|
"aria-hidden": "true"
|
|
1271
1280
|
}, [
|
|
1272
|
-
j(
|
|
1273
|
-
icon:
|
|
1281
|
+
j(y(te), {
|
|
1282
|
+
icon: y(X).chevronDown,
|
|
1274
1283
|
size: "0.875rem"
|
|
1275
1284
|
}, null, 8, ["icon"])
|
|
1276
1285
|
], 2)
|
|
1277
|
-
], 14, St)) :
|
|
1286
|
+
], 14, St)) : _.value ? (d(), q(re(b.value), H({ key: 2 }, C.value, {
|
|
1278
1287
|
class: [
|
|
1279
1288
|
"vf-nav-menu__item",
|
|
1280
|
-
|
|
1289
|
+
v.value && "vf-nav-menu__item--active",
|
|
1281
1290
|
t.item.disabled && "vf-nav-menu__item--disabled"
|
|
1282
1291
|
],
|
|
1283
1292
|
style: { "--vf-nav-menu-level": String(t.level) },
|
|
1284
|
-
"aria-current":
|
|
1293
|
+
"aria-current": v.value ? "page" : void 0,
|
|
1285
1294
|
onClick: w
|
|
1286
1295
|
}), {
|
|
1287
1296
|
default: Q(() => [
|
|
1288
1297
|
T("span", Nt, [
|
|
1289
|
-
t.item.leadingIcon ? (
|
|
1290
|
-
j(
|
|
1298
|
+
t.item.leadingIcon ? (d(), h("span", Ft, [
|
|
1299
|
+
j(y(te), {
|
|
1291
1300
|
icon: t.item.leadingIcon,
|
|
1292
1301
|
size: "1rem"
|
|
1293
1302
|
}, null, 8, ["icon"])
|
|
@@ -1296,22 +1305,22 @@ const tt = {
|
|
|
1296
1305
|
])
|
|
1297
1306
|
]),
|
|
1298
1307
|
_: 1
|
|
1299
|
-
}, 16, ["class", "style", "aria-current"])) : (
|
|
1308
|
+
}, 16, ["class", "style", "aria-current"])) : (d(), h("button", {
|
|
1300
1309
|
key: 3,
|
|
1301
1310
|
class: P([
|
|
1302
1311
|
"vf-nav-menu__item",
|
|
1303
|
-
|
|
1312
|
+
v.value && "vf-nav-menu__item--active",
|
|
1304
1313
|
t.item.disabled && "vf-nav-menu__item--disabled"
|
|
1305
1314
|
]),
|
|
1306
1315
|
style: W({ "--vf-nav-menu-level": String(t.level) }),
|
|
1307
|
-
"aria-current":
|
|
1316
|
+
"aria-current": v.value ? "page" : void 0,
|
|
1308
1317
|
disabled: t.item.disabled,
|
|
1309
1318
|
type: "button",
|
|
1310
|
-
onClick:
|
|
1319
|
+
onClick: o[0] || (o[0] = (A) => w())
|
|
1311
1320
|
}, [
|
|
1312
1321
|
T("span", Kt, [
|
|
1313
|
-
t.item.leadingIcon ? (
|
|
1314
|
-
j(
|
|
1322
|
+
t.item.leadingIcon ? (d(), h("span", jt, [
|
|
1323
|
+
j(y(te), {
|
|
1315
1324
|
icon: t.item.leadingIcon,
|
|
1316
1325
|
size: "1rem"
|
|
1317
1326
|
}, null, 8, ["icon"])
|
|
@@ -1319,28 +1328,28 @@ const tt = {
|
|
|
1319
1328
|
T("span", qt, F(t.item.label), 1)
|
|
1320
1329
|
])
|
|
1321
1330
|
], 14, Ht)),
|
|
1322
|
-
l.value && r.value ? (
|
|
1323
|
-
(
|
|
1324
|
-
key:
|
|
1325
|
-
item:
|
|
1331
|
+
l.value && r.value ? (d(), h("ul", Wt, [
|
|
1332
|
+
(d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
|
|
1333
|
+
key: A.value,
|
|
1334
|
+
item: A,
|
|
1326
1335
|
level: t.level + 1,
|
|
1327
1336
|
"parent-path": [...t.parentPath, t.item.value],
|
|
1328
1337
|
"active-value": t.activeValue,
|
|
1329
1338
|
"expanded-values": t.expandedValues,
|
|
1330
|
-
onToggle:
|
|
1331
|
-
onSelect:
|
|
1339
|
+
onToggle: o[1] || (o[1] = (z) => i("toggle", z)),
|
|
1340
|
+
onSelect: o[2] || (o[2] = (z) => i("select", z))
|
|
1332
1341
|
}, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
|
|
1333
|
-
])) : l.value ? (
|
|
1342
|
+
])) : l.value ? (d(), q(ne, {
|
|
1334
1343
|
key: 5,
|
|
1335
|
-
onBeforeEnter:
|
|
1336
|
-
onEnter:
|
|
1337
|
-
onAfterEnter:
|
|
1338
|
-
onBeforeLeave:
|
|
1339
|
-
onLeave:
|
|
1340
|
-
onAfterLeave:
|
|
1344
|
+
onBeforeEnter: I,
|
|
1345
|
+
onEnter: M,
|
|
1346
|
+
onAfterEnter: $,
|
|
1347
|
+
onBeforeLeave: f,
|
|
1348
|
+
onLeave: a,
|
|
1349
|
+
onAfterLeave: m
|
|
1341
1350
|
}, {
|
|
1342
1351
|
default: Q(() => [
|
|
1343
|
-
u.value ? (
|
|
1352
|
+
u.value ? (d(), h("div", {
|
|
1344
1353
|
key: 0,
|
|
1345
1354
|
class: P([
|
|
1346
1355
|
"vf-nav-menu__collapse",
|
|
@@ -1348,15 +1357,15 @@ const tt = {
|
|
|
1348
1357
|
])
|
|
1349
1358
|
}, [
|
|
1350
1359
|
T("ul", Ut, [
|
|
1351
|
-
(
|
|
1352
|
-
key:
|
|
1353
|
-
item:
|
|
1360
|
+
(d(!0), h(ue, null, de(t.item.children, (A) => (d(), q(B, {
|
|
1361
|
+
key: A.value,
|
|
1362
|
+
item: A,
|
|
1354
1363
|
level: t.level + 1,
|
|
1355
1364
|
"parent-path": [...t.parentPath, t.item.value],
|
|
1356
1365
|
"active-value": t.activeValue,
|
|
1357
1366
|
"expanded-values": t.expandedValues,
|
|
1358
|
-
onToggle:
|
|
1359
|
-
onSelect:
|
|
1367
|
+
onToggle: o[3] || (o[3] = (z) => i("toggle", z)),
|
|
1368
|
+
onSelect: o[4] || (o[4] = (z) => i("select", z))
|
|
1360
1369
|
}, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
|
|
1361
1370
|
])
|
|
1362
1371
|
], 2)) : O("", !0)
|
|
@@ -1377,88 +1386,88 @@ const tt = {
|
|
|
1377
1386
|
},
|
|
1378
1387
|
emits: ["update:modelValue", "change", "select"],
|
|
1379
1388
|
setup(t, { emit: n }) {
|
|
1380
|
-
const e = t, i = n, l =
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1383
|
-
(
|
|
1384
|
-
var
|
|
1385
|
-
return
|
|
1389
|
+
const e = t, i = n, l = D(e.defaultValue), r = s(() => e.modelValue ?? l.value), u = D([]);
|
|
1390
|
+
function v(a, m) {
|
|
1391
|
+
return a.some(
|
|
1392
|
+
(c) => {
|
|
1393
|
+
var o;
|
|
1394
|
+
return m(c) || ((o = c.children) != null && o.length ? v(c.children, m) : !1);
|
|
1386
1395
|
}
|
|
1387
1396
|
);
|
|
1388
1397
|
}
|
|
1389
|
-
const
|
|
1390
|
-
() =>
|
|
1398
|
+
const _ = s(
|
|
1399
|
+
() => v(e.items, (a) => a.kind === "group")
|
|
1391
1400
|
), b = s(
|
|
1392
|
-
() =>
|
|
1393
|
-
),
|
|
1394
|
-
function
|
|
1395
|
-
var
|
|
1396
|
-
return
|
|
1401
|
+
() => v(e.items, (a) => !!a.leadingIcon)
|
|
1402
|
+
), p = s(() => !_.value && !b.value);
|
|
1403
|
+
function C(a) {
|
|
1404
|
+
var m;
|
|
1405
|
+
return a.kind !== "group" && !!((m = a.children) != null && m.length);
|
|
1397
1406
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var
|
|
1400
|
-
if (!
|
|
1407
|
+
function x(a, m, c = []) {
|
|
1408
|
+
var o;
|
|
1409
|
+
if (!m)
|
|
1401
1410
|
return [];
|
|
1402
|
-
for (const
|
|
1403
|
-
if (
|
|
1404
|
-
return
|
|
1405
|
-
if ((
|
|
1406
|
-
const
|
|
1407
|
-
...
|
|
1408
|
-
|
|
1411
|
+
for (const B of a) {
|
|
1412
|
+
if (B.value === m)
|
|
1413
|
+
return c;
|
|
1414
|
+
if ((o = B.children) != null && o.length) {
|
|
1415
|
+
const A = x(B.children, m, [
|
|
1416
|
+
...c,
|
|
1417
|
+
B.value
|
|
1409
1418
|
]);
|
|
1410
|
-
if (
|
|
1411
|
-
return
|
|
1419
|
+
if (A.length)
|
|
1420
|
+
return A;
|
|
1412
1421
|
}
|
|
1413
1422
|
}
|
|
1414
1423
|
return [];
|
|
1415
1424
|
}
|
|
1416
1425
|
function w() {
|
|
1417
|
-
const
|
|
1426
|
+
const a = x(e.items, r.value);
|
|
1418
1427
|
u.value = Array.from(
|
|
1419
|
-
/* @__PURE__ */ new Set([...u.value, ...
|
|
1428
|
+
/* @__PURE__ */ new Set([...u.value, ...a])
|
|
1420
1429
|
);
|
|
1421
1430
|
}
|
|
1422
|
-
function
|
|
1423
|
-
var
|
|
1424
|
-
if (!
|
|
1425
|
-
return
|
|
1426
|
-
const [
|
|
1427
|
-
return (
|
|
1428
|
-
}
|
|
1429
|
-
function
|
|
1430
|
-
return
|
|
1431
|
-
var
|
|
1432
|
-
const
|
|
1433
|
-
return
|
|
1431
|
+
function S(a, m) {
|
|
1432
|
+
var A;
|
|
1433
|
+
if (!m.length)
|
|
1434
|
+
return a;
|
|
1435
|
+
const [c, ...o] = m, B = a.find((z) => z.value === c);
|
|
1436
|
+
return (A = B == null ? void 0 : B.children) != null && A.length ? S(B.children, o) : [];
|
|
1437
|
+
}
|
|
1438
|
+
function I(a) {
|
|
1439
|
+
return a.flatMap((m) => {
|
|
1440
|
+
var o;
|
|
1441
|
+
const c = (o = m.children) != null && o.length ? I(m.children) : [];
|
|
1442
|
+
return C(m) ? [m.value, ...c] : c;
|
|
1434
1443
|
});
|
|
1435
1444
|
}
|
|
1436
|
-
function
|
|
1437
|
-
e.modelValue === void 0 && (l.value =
|
|
1445
|
+
function M(a) {
|
|
1446
|
+
e.modelValue === void 0 && (l.value = a), i("update:modelValue", a), i("change", a);
|
|
1438
1447
|
}
|
|
1439
|
-
function
|
|
1440
|
-
|
|
1448
|
+
function $(a) {
|
|
1449
|
+
M(a.value), u.value = Array.from(
|
|
1441
1450
|
/* @__PURE__ */ new Set([
|
|
1442
1451
|
...u.value,
|
|
1443
|
-
...
|
|
1452
|
+
...x(e.items, a.value)
|
|
1444
1453
|
])
|
|
1445
|
-
), i("select",
|
|
1454
|
+
), i("select", a);
|
|
1446
1455
|
}
|
|
1447
|
-
function
|
|
1448
|
-
const { value:
|
|
1449
|
-
if (u.value.includes(
|
|
1456
|
+
function f(a) {
|
|
1457
|
+
const { value: m, parentPath: c } = a;
|
|
1458
|
+
if (u.value.includes(m)) {
|
|
1450
1459
|
u.value = u.value.filter(
|
|
1451
|
-
(
|
|
1460
|
+
(o) => o !== m
|
|
1452
1461
|
);
|
|
1453
1462
|
return;
|
|
1454
1463
|
}
|
|
1455
1464
|
if (e.expandMode === "single") {
|
|
1456
|
-
const
|
|
1465
|
+
const B = S(e.items, c).filter((A) => A.value !== m && C(A)).flatMap((A) => I([A]));
|
|
1457
1466
|
u.value = u.value.filter(
|
|
1458
|
-
(
|
|
1467
|
+
(A) => !B.includes(A)
|
|
1459
1468
|
);
|
|
1460
1469
|
}
|
|
1461
|
-
u.value = [...u.value,
|
|
1470
|
+
u.value = [...u.value, m];
|
|
1462
1471
|
}
|
|
1463
1472
|
return Z(
|
|
1464
1473
|
() => [e.items, r.value],
|
|
@@ -1466,25 +1475,25 @@ const tt = {
|
|
|
1466
1475
|
w();
|
|
1467
1476
|
},
|
|
1468
1477
|
{ immediate: !0, deep: !0 }
|
|
1469
|
-
), (
|
|
1470
|
-
class: P(["vf-nav-menu",
|
|
1478
|
+
), (a, m) => (d(), h("nav", {
|
|
1479
|
+
class: P(["vf-nav-menu", p.value && "vf-nav-menu--simple"]),
|
|
1471
1480
|
"aria-label": t.ariaLabel
|
|
1472
1481
|
}, [
|
|
1473
1482
|
T("ul", Gt, [
|
|
1474
|
-
(
|
|
1475
|
-
key:
|
|
1476
|
-
item:
|
|
1483
|
+
(d(!0), h(ue, null, de(t.items, (c) => (d(), q(Yt, {
|
|
1484
|
+
key: c.value,
|
|
1485
|
+
item: c,
|
|
1477
1486
|
level: 0,
|
|
1478
1487
|
"parent-path": [],
|
|
1479
1488
|
"active-value": r.value,
|
|
1480
1489
|
"expanded-values": u.value,
|
|
1481
|
-
onToggle:
|
|
1482
|
-
onSelect:
|
|
1490
|
+
onToggle: f,
|
|
1491
|
+
onSelect: $
|
|
1483
1492
|
}, null, 8, ["item", "active-value", "expanded-values"]))), 128))
|
|
1484
1493
|
])
|
|
1485
1494
|
], 10, Xt));
|
|
1486
1495
|
}
|
|
1487
|
-
}), Qt = { key: 0 }, Jt = { class: "vf-panel__title" },
|
|
1496
|
+
}), Qt = { key: 0 }, Jt = { class: "vf-panel__title" }, Mn = /* @__PURE__ */ L({
|
|
1488
1497
|
inheritAttrs: !1,
|
|
1489
1498
|
__name: "VfPanel",
|
|
1490
1499
|
props: {
|
|
@@ -1495,16 +1504,16 @@ const tt = {
|
|
|
1495
1504
|
const n = t, e = R(), i = s(
|
|
1496
1505
|
() => N("vf-panel", n.subtle && "vf-panel--subtle")
|
|
1497
1506
|
);
|
|
1498
|
-
return (l, r) => (
|
|
1499
|
-
n.title || l.$slots.header ? (
|
|
1500
|
-
|
|
1507
|
+
return (l, r) => (d(), h("section", H({ class: i.value }, y(e)), [
|
|
1508
|
+
n.title || l.$slots.header ? (d(), h("header", Qt, [
|
|
1509
|
+
E(l.$slots, "header", {}, () => [
|
|
1501
1510
|
T("h3", Jt, F(n.title), 1)
|
|
1502
1511
|
])
|
|
1503
1512
|
])) : O("", !0),
|
|
1504
|
-
|
|
1513
|
+
E(l.$slots, "default")
|
|
1505
1514
|
], 16));
|
|
1506
1515
|
}
|
|
1507
|
-
}), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"],
|
|
1516
|
+
}), Zt = { class: "vf-popover" }, en = ["id", "aria-controls", "aria-expanded"], tn = ["id", "aria-labelledby"], zn = /* @__PURE__ */ L({
|
|
1508
1517
|
__name: "VfPopover",
|
|
1509
1518
|
props: {
|
|
1510
1519
|
open: { type: Boolean, default: void 0 },
|
|
@@ -1517,52 +1526,52 @@ const tt = {
|
|
|
1517
1526
|
},
|
|
1518
1527
|
emits: ["update:open", "openChange"],
|
|
1519
1528
|
setup(t, { emit: n }) {
|
|
1520
|
-
const e = t, i = n, l =
|
|
1529
|
+
const e = t, i = n, l = D(null), r = D(null), u = D(null), v = G({ prefix: "vf-popover-content" }), _ = G({ prefix: "vf-popover-trigger" }), b = {
|
|
1521
1530
|
enter: U.fast,
|
|
1522
1531
|
leave: U.fast
|
|
1523
|
-
},
|
|
1532
|
+
}, p = s(
|
|
1524
1533
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
1525
|
-
),
|
|
1534
|
+
), C = s(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), x = se({
|
|
1526
1535
|
defaultOpen: e.defaultOpen,
|
|
1527
1536
|
open: s(() => e.open),
|
|
1528
1537
|
onOpenChange: (k) => {
|
|
1529
1538
|
i("update:open", k), i("openChange", k);
|
|
1530
1539
|
}
|
|
1531
|
-
}), w =
|
|
1540
|
+
}), w = x.isOpen, S = s(
|
|
1532
1541
|
() => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
|
|
1533
1542
|
), {
|
|
1534
|
-
placement:
|
|
1535
|
-
middlewareData:
|
|
1536
|
-
styles:
|
|
1543
|
+
placement: I,
|
|
1544
|
+
middlewareData: M,
|
|
1545
|
+
styles: $
|
|
1537
1546
|
} = ye(l, r, {
|
|
1538
1547
|
enabled: w,
|
|
1539
1548
|
placement: s(() => e.placement),
|
|
1540
1549
|
middleware: s(
|
|
1541
1550
|
() => [
|
|
1542
1551
|
ve(10),
|
|
1543
|
-
pe({ placements:
|
|
1552
|
+
pe({ placements: S.value }),
|
|
1544
1553
|
me(),
|
|
1545
1554
|
u.value ? he(u.value) : void 0
|
|
1546
1555
|
].filter((k) => k !== void 0)
|
|
1547
1556
|
),
|
|
1548
1557
|
strategy: "fixed"
|
|
1549
|
-
}),
|
|
1558
|
+
}), f = s(() => [
|
|
1550
1559
|
"vf-popover__content",
|
|
1551
|
-
|
|
1552
|
-
]),
|
|
1553
|
-
const k =
|
|
1560
|
+
I.value.startsWith("top") && "vf-popover__content--top"
|
|
1561
|
+
]), a = s(() => {
|
|
1562
|
+
const k = M.value.arrow;
|
|
1554
1563
|
return {
|
|
1555
1564
|
x: (k == null ? void 0 : k.x) !== void 0 && (k == null ? void 0 : k.baseX) !== void 0 ? k.x - k.baseX : 0,
|
|
1556
1565
|
y: (k == null ? void 0 : k.y) !== void 0 && (k == null ? void 0 : k.baseY) !== void 0 ? k.y - k.baseY : 0
|
|
1557
1566
|
};
|
|
1558
|
-
}),
|
|
1559
|
-
left: `${
|
|
1560
|
-
top: `${
|
|
1561
|
-
})),
|
|
1567
|
+
}), m = s(() => ({
|
|
1568
|
+
left: `${a.value.x}px`,
|
|
1569
|
+
top: `${a.value.y}px`
|
|
1570
|
+
})), c = s(() => [
|
|
1562
1571
|
"vf-popover__arrow",
|
|
1563
|
-
|
|
1572
|
+
I.value.startsWith("top") ? "vf-popover__arrow--top" : "vf-popover__arrow--bottom"
|
|
1564
1573
|
]);
|
|
1565
|
-
async function
|
|
1574
|
+
async function o() {
|
|
1566
1575
|
var J, ie;
|
|
1567
1576
|
await ae();
|
|
1568
1577
|
const k = (J = r.value) == null ? void 0 : J.querySelector(
|
|
@@ -1574,27 +1583,27 @@ const tt = {
|
|
|
1574
1583
|
}
|
|
1575
1584
|
(ie = r.value) == null || ie.focus();
|
|
1576
1585
|
}
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1586
|
+
function B() {
|
|
1587
|
+
x.open(), o();
|
|
1579
1588
|
}
|
|
1580
|
-
function
|
|
1589
|
+
function A() {
|
|
1581
1590
|
var k;
|
|
1582
|
-
|
|
1591
|
+
x.close(), (k = l.value) == null || k.focus();
|
|
1583
1592
|
}
|
|
1584
|
-
function
|
|
1593
|
+
function z() {
|
|
1585
1594
|
if (w.value) {
|
|
1586
|
-
|
|
1595
|
+
A();
|
|
1587
1596
|
return;
|
|
1588
1597
|
}
|
|
1589
|
-
|
|
1598
|
+
B();
|
|
1590
1599
|
}
|
|
1591
|
-
function
|
|
1592
|
-
(k.key === "Enter" || k.key === " ") && (k.preventDefault(),
|
|
1600
|
+
function V(k) {
|
|
1601
|
+
(k.key === "Enter" || k.key === " ") && (k.preventDefault(), z()), k.key === "ArrowDown" && (k.preventDefault(), B());
|
|
1593
1602
|
}
|
|
1594
1603
|
return Oe(
|
|
1595
1604
|
[l, r],
|
|
1596
1605
|
() => {
|
|
1597
|
-
w.value && e.closeOnOutsideClick &&
|
|
1606
|
+
w.value && e.closeOnOutsideClick && A();
|
|
1598
1607
|
},
|
|
1599
1608
|
{
|
|
1600
1609
|
enabled: w,
|
|
@@ -1602,32 +1611,32 @@ const tt = {
|
|
|
1602
1611
|
}
|
|
1603
1612
|
), fe(
|
|
1604
1613
|
(k) => {
|
|
1605
|
-
!w.value || !e.closeOnEscape || (k.preventDefault(),
|
|
1614
|
+
!w.value || !e.closeOnEscape || (k.preventDefault(), A());
|
|
1606
1615
|
},
|
|
1607
1616
|
{
|
|
1608
1617
|
enabled: w
|
|
1609
1618
|
}
|
|
1610
|
-
), (k, J) => (
|
|
1619
|
+
), (k, J) => (d(), h("div", Zt, [
|
|
1611
1620
|
T("div", {
|
|
1612
|
-
id:
|
|
1621
|
+
id: y(_),
|
|
1613
1622
|
ref_key: "triggerRef",
|
|
1614
1623
|
ref: l,
|
|
1615
1624
|
class: "vf-popover__trigger",
|
|
1616
|
-
"aria-controls":
|
|
1617
|
-
"aria-expanded":
|
|
1625
|
+
"aria-controls": y(v),
|
|
1626
|
+
"aria-expanded": y(w),
|
|
1618
1627
|
"aria-haspopup": "dialog",
|
|
1619
1628
|
tabindex: "0",
|
|
1620
|
-
onClick:
|
|
1621
|
-
onKeydown:
|
|
1629
|
+
onClick: z,
|
|
1630
|
+
onKeydown: V
|
|
1622
1631
|
}, [
|
|
1623
|
-
|
|
1624
|
-
open:
|
|
1625
|
-
toggle:
|
|
1632
|
+
E(k.$slots, "trigger", {
|
|
1633
|
+
open: y(w),
|
|
1634
|
+
toggle: z
|
|
1626
1635
|
})
|
|
1627
1636
|
], 40, en),
|
|
1628
|
-
(
|
|
1629
|
-
to:
|
|
1630
|
-
disabled:
|
|
1637
|
+
(d(), q(le, {
|
|
1638
|
+
to: C.value,
|
|
1639
|
+
disabled: p.value
|
|
1631
1640
|
}, [
|
|
1632
1641
|
j(ne, {
|
|
1633
1642
|
name: "vf-floating-transition",
|
|
@@ -1635,27 +1644,27 @@ const tt = {
|
|
|
1635
1644
|
duration: b
|
|
1636
1645
|
}, {
|
|
1637
1646
|
default: Q(() => [
|
|
1638
|
-
|
|
1647
|
+
y(w) ? (d(), h("section", {
|
|
1639
1648
|
key: 0,
|
|
1640
|
-
id:
|
|
1649
|
+
id: y(v),
|
|
1641
1650
|
ref_key: "contentRef",
|
|
1642
1651
|
ref: r,
|
|
1643
|
-
class: P(
|
|
1644
|
-
style: W(
|
|
1645
|
-
"aria-labelledby":
|
|
1652
|
+
class: P(f.value),
|
|
1653
|
+
style: W(y($)),
|
|
1654
|
+
"aria-labelledby": y(_),
|
|
1646
1655
|
role: "dialog",
|
|
1647
1656
|
tabindex: "-1"
|
|
1648
1657
|
}, [
|
|
1649
1658
|
T("span", {
|
|
1650
1659
|
ref_key: "arrowRef",
|
|
1651
1660
|
ref: u,
|
|
1652
|
-
class: P(
|
|
1653
|
-
style: W(
|
|
1661
|
+
class: P(c.value),
|
|
1662
|
+
style: W(m.value),
|
|
1654
1663
|
"aria-hidden": "true"
|
|
1655
1664
|
}, null, 6),
|
|
1656
|
-
|
|
1657
|
-
open:
|
|
1658
|
-
close:
|
|
1665
|
+
E(k.$slots, "default", {
|
|
1666
|
+
open: y(w),
|
|
1667
|
+
close: A
|
|
1659
1668
|
})
|
|
1660
1669
|
], 14, tn)) : O("", !0)
|
|
1661
1670
|
]),
|
|
@@ -1689,17 +1698,17 @@ const tt = {
|
|
|
1689
1698
|
e.disabled && "vf-radio--disabled",
|
|
1690
1699
|
l.class
|
|
1691
1700
|
)
|
|
1692
|
-
),
|
|
1701
|
+
), v = s(() => l.style), _ = s(
|
|
1693
1702
|
() => Object.fromEntries(
|
|
1694
|
-
Object.entries(l).filter(([
|
|
1703
|
+
Object.entries(l).filter(([p]) => p !== "class" && p !== "style")
|
|
1695
1704
|
)
|
|
1696
1705
|
);
|
|
1697
|
-
function b(
|
|
1698
|
-
|
|
1706
|
+
function b(p) {
|
|
1707
|
+
p.target.checked && (i("update:modelValue", e.value), i("change", e.value));
|
|
1699
1708
|
}
|
|
1700
|
-
return (
|
|
1709
|
+
return (p, C) => (d(), h("label", {
|
|
1701
1710
|
class: P(u.value),
|
|
1702
|
-
style: W(
|
|
1711
|
+
style: W(v.value)
|
|
1703
1712
|
}, [
|
|
1704
1713
|
T("input", H({
|
|
1705
1714
|
class: "vf-radio__input",
|
|
@@ -1708,15 +1717,15 @@ const tt = {
|
|
|
1708
1717
|
disabled: e.disabled,
|
|
1709
1718
|
value: e.value,
|
|
1710
1719
|
"aria-invalid": e.invalid || void 0
|
|
1711
|
-
},
|
|
1712
|
-
|
|
1720
|
+
}, _.value, { onChange: b }), null, 16, nn),
|
|
1721
|
+
C[0] || (C[0] = T("span", {
|
|
1713
1722
|
class: "vf-radio__control",
|
|
1714
1723
|
"aria-hidden": "true"
|
|
1715
1724
|
}, [
|
|
1716
1725
|
T("span", { class: "vf-radio__dot" })
|
|
1717
1726
|
], -1)),
|
|
1718
|
-
t.label ||
|
|
1719
|
-
|
|
1727
|
+
t.label || p.$slots.default ? (d(), h("span", an, [
|
|
1728
|
+
E(p.$slots, "default", {}, () => [
|
|
1720
1729
|
oe(F(t.label), 1)
|
|
1721
1730
|
])
|
|
1722
1731
|
])) : O("", !0)
|
|
@@ -1744,16 +1753,16 @@ const tt = {
|
|
|
1744
1753
|
e.disabled && "vf-switch--disabled",
|
|
1745
1754
|
l.class
|
|
1746
1755
|
)
|
|
1747
|
-
), u = s(() => l.style),
|
|
1756
|
+
), u = s(() => l.style), v = s(
|
|
1748
1757
|
() => Object.fromEntries(
|
|
1749
1758
|
Object.entries(l).filter(([b]) => b !== "class" && b !== "style")
|
|
1750
1759
|
)
|
|
1751
1760
|
);
|
|
1752
|
-
function
|
|
1753
|
-
const
|
|
1754
|
-
i("update:modelValue",
|
|
1761
|
+
function _(b) {
|
|
1762
|
+
const p = b.target.checked;
|
|
1763
|
+
i("update:modelValue", p), i("change", p);
|
|
1755
1764
|
}
|
|
1756
|
-
return (b,
|
|
1765
|
+
return (b, p) => (d(), h("label", {
|
|
1757
1766
|
class: P(r.value),
|
|
1758
1767
|
style: W(u.value)
|
|
1759
1768
|
}, [
|
|
@@ -1763,15 +1772,15 @@ const tt = {
|
|
|
1763
1772
|
role: "switch",
|
|
1764
1773
|
checked: e.modelValue,
|
|
1765
1774
|
disabled: e.disabled
|
|
1766
|
-
},
|
|
1767
|
-
|
|
1775
|
+
}, v.value, { onChange: _ }), null, 16, on),
|
|
1776
|
+
p[0] || (p[0] = T("span", {
|
|
1768
1777
|
class: "vf-switch__control",
|
|
1769
1778
|
"aria-hidden": "true"
|
|
1770
1779
|
}, [
|
|
1771
1780
|
T("span", { class: "vf-switch__thumb" })
|
|
1772
1781
|
], -1)),
|
|
1773
|
-
t.label || b.$slots.default ? (
|
|
1774
|
-
|
|
1782
|
+
t.label || b.$slots.default ? (d(), h("span", ln, [
|
|
1783
|
+
E(b.$slots, "default", {}, () => [
|
|
1775
1784
|
oe(F(t.label), 1)
|
|
1776
1785
|
])
|
|
1777
1786
|
])) : O("", !0)
|
|
@@ -1787,15 +1796,15 @@ const tt = {
|
|
|
1787
1796
|
const n = t, e = R(), i = s(
|
|
1788
1797
|
() => N("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
|
|
1789
1798
|
);
|
|
1790
|
-
return (l, r) => (
|
|
1791
|
-
|
|
1799
|
+
return (l, r) => (d(), h("span", H({ class: i.value }, y(e)), [
|
|
1800
|
+
E(l.$slots, "default")
|
|
1792
1801
|
], 16));
|
|
1793
1802
|
}
|
|
1794
1803
|
}), sn = { class: "vf-tabs" }, rn = {
|
|
1795
1804
|
class: "vf-tabs__list",
|
|
1796
1805
|
role: "tablist",
|
|
1797
1806
|
"aria-orientation": "horizontal"
|
|
1798
|
-
}, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"],
|
|
1807
|
+
}, un = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], dn = ["id", "aria-labelledby"], Rn = /* @__PURE__ */ L({
|
|
1799
1808
|
__name: "VfTabs",
|
|
1800
1809
|
props: {
|
|
1801
1810
|
items: {},
|
|
@@ -1804,106 +1813,106 @@ const tt = {
|
|
|
1804
1813
|
},
|
|
1805
1814
|
emits: ["update:modelValue", "change"],
|
|
1806
1815
|
setup(t, { emit: n }) {
|
|
1807
|
-
const e = t, i = n, l = G({ prefix: "vf-tabs" }), r =
|
|
1816
|
+
const e = t, i = n, l = G({ prefix: "vf-tabs" }), r = D([]), u = s(
|
|
1808
1817
|
() => {
|
|
1809
|
-
var
|
|
1810
|
-
return (
|
|
1818
|
+
var $;
|
|
1819
|
+
return ($ = e.items.find((f) => !f.disabled)) == null ? void 0 : $.value;
|
|
1811
1820
|
}
|
|
1812
|
-
),
|
|
1813
|
-
() => e.modelValue ??
|
|
1821
|
+
), v = D(e.defaultValue ?? u.value), _ = s(() => e.modelValue !== void 0), b = s(
|
|
1822
|
+
() => e.modelValue ?? v.value ?? u.value
|
|
1814
1823
|
);
|
|
1815
1824
|
Z(
|
|
1816
1825
|
() => e.items,
|
|
1817
|
-
(
|
|
1818
|
-
|
|
1819
|
-
(
|
|
1820
|
-
) && u.value &&
|
|
1826
|
+
($) => {
|
|
1827
|
+
!$.some(
|
|
1828
|
+
(a) => a.value === b.value && !a.disabled
|
|
1829
|
+
) && u.value && p(u.value);
|
|
1821
1830
|
},
|
|
1822
1831
|
{ deep: !0 }
|
|
1823
1832
|
);
|
|
1824
|
-
function
|
|
1825
|
-
|
|
1833
|
+
function p($) {
|
|
1834
|
+
_.value || (v.value = $), i("update:modelValue", $), i("change", $);
|
|
1826
1835
|
}
|
|
1827
|
-
function
|
|
1828
|
-
|
|
1836
|
+
function C($) {
|
|
1837
|
+
$.disabled || p($.value);
|
|
1829
1838
|
}
|
|
1830
|
-
function
|
|
1831
|
-
return e.items.filter((
|
|
1839
|
+
function x() {
|
|
1840
|
+
return e.items.filter(($) => !$.disabled);
|
|
1832
1841
|
}
|
|
1833
|
-
function w(
|
|
1834
|
-
var
|
|
1835
|
-
const
|
|
1836
|
-
(
|
|
1842
|
+
function w($) {
|
|
1843
|
+
var a;
|
|
1844
|
+
const f = e.items.findIndex((m) => m.value === $);
|
|
1845
|
+
(a = r.value[f]) == null || a.focus();
|
|
1837
1846
|
}
|
|
1838
|
-
function
|
|
1839
|
-
const
|
|
1840
|
-
(
|
|
1847
|
+
function S($, f) {
|
|
1848
|
+
const a = x(), m = a.findIndex(
|
|
1849
|
+
(c) => c.value === f.value
|
|
1841
1850
|
);
|
|
1842
|
-
if (
|
|
1843
|
-
if (
|
|
1844
|
-
|
|
1845
|
-
const
|
|
1846
|
-
|
|
1851
|
+
if (m !== -1) {
|
|
1852
|
+
if ($.key === "ArrowRight" || $.key === "ArrowDown") {
|
|
1853
|
+
$.preventDefault();
|
|
1854
|
+
const c = a[(m + 1) % a.length];
|
|
1855
|
+
C(c), w(c.value);
|
|
1847
1856
|
return;
|
|
1848
1857
|
}
|
|
1849
|
-
if (
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1852
|
-
|
|
1858
|
+
if ($.key === "ArrowLeft" || $.key === "ArrowUp") {
|
|
1859
|
+
$.preventDefault();
|
|
1860
|
+
const c = a[(m - 1 + a.length) % a.length];
|
|
1861
|
+
C(c), w(c.value);
|
|
1853
1862
|
return;
|
|
1854
1863
|
}
|
|
1855
|
-
if (
|
|
1856
|
-
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1864
|
+
if ($.key === "Home") {
|
|
1865
|
+
$.preventDefault();
|
|
1866
|
+
const c = a[0];
|
|
1867
|
+
C(c), w(c.value);
|
|
1859
1868
|
return;
|
|
1860
1869
|
}
|
|
1861
|
-
if (
|
|
1862
|
-
|
|
1863
|
-
const
|
|
1864
|
-
|
|
1870
|
+
if ($.key === "End") {
|
|
1871
|
+
$.preventDefault();
|
|
1872
|
+
const c = a[a.length - 1];
|
|
1873
|
+
C(c), w(c.value);
|
|
1865
1874
|
}
|
|
1866
1875
|
}
|
|
1867
1876
|
}
|
|
1868
|
-
function
|
|
1869
|
-
return `${l.value}-tab-${
|
|
1877
|
+
function I($) {
|
|
1878
|
+
return `${l.value}-tab-${$}`;
|
|
1870
1879
|
}
|
|
1871
|
-
function
|
|
1872
|
-
return `${l.value}-panel-${
|
|
1880
|
+
function M($) {
|
|
1881
|
+
return `${l.value}-panel-${$}`;
|
|
1873
1882
|
}
|
|
1874
|
-
return (
|
|
1883
|
+
return ($, f) => (d(), h("div", sn, [
|
|
1875
1884
|
T("div", rn, [
|
|
1876
|
-
(
|
|
1877
|
-
id:
|
|
1878
|
-
key:
|
|
1885
|
+
(d(!0), h(ue, null, de(t.items, (a, m) => (d(), h("button", {
|
|
1886
|
+
id: I(a.value),
|
|
1887
|
+
key: a.value,
|
|
1879
1888
|
ref_for: !0,
|
|
1880
|
-
ref: (
|
|
1881
|
-
r.value[
|
|
1889
|
+
ref: (c) => {
|
|
1890
|
+
r.value[m] = c;
|
|
1882
1891
|
},
|
|
1883
|
-
"aria-controls":
|
|
1884
|
-
"aria-selected": b.value ===
|
|
1885
|
-
disabled:
|
|
1886
|
-
tabindex: b.value ===
|
|
1892
|
+
"aria-controls": M(a.value),
|
|
1893
|
+
"aria-selected": b.value === a.value,
|
|
1894
|
+
disabled: a.disabled,
|
|
1895
|
+
tabindex: b.value === a.value ? 0 : -1,
|
|
1887
1896
|
class: "vf-tabs__tab",
|
|
1888
1897
|
role: "tab",
|
|
1889
1898
|
type: "button",
|
|
1890
|
-
onClick: (
|
|
1891
|
-
onKeydown: (
|
|
1892
|
-
}, F(
|
|
1899
|
+
onClick: (c) => C(a),
|
|
1900
|
+
onKeydown: (c) => S(c, a)
|
|
1901
|
+
}, F(a.label), 41, un))), 128))
|
|
1893
1902
|
]),
|
|
1894
|
-
b.value ? (
|
|
1903
|
+
b.value ? (d(), h("div", {
|
|
1895
1904
|
key: 0,
|
|
1896
|
-
id:
|
|
1897
|
-
"aria-labelledby":
|
|
1905
|
+
id: M(b.value),
|
|
1906
|
+
"aria-labelledby": I(b.value),
|
|
1898
1907
|
class: "vf-tabs__panel",
|
|
1899
1908
|
role: "tabpanel",
|
|
1900
1909
|
tabindex: "0"
|
|
1901
1910
|
}, [
|
|
1902
|
-
|
|
1903
|
-
], 8,
|
|
1911
|
+
E($.$slots, "panel", Ve(Ce({ activeValue: b.value })))
|
|
1912
|
+
], 8, dn)) : O("", !0)
|
|
1904
1913
|
]));
|
|
1905
1914
|
}
|
|
1906
|
-
}),
|
|
1915
|
+
}), cn = ["value", "aria-invalid"], Hn = /* @__PURE__ */ L({
|
|
1907
1916
|
inheritAttrs: !1,
|
|
1908
1917
|
__name: "VfTextarea",
|
|
1909
1918
|
props: {
|
|
@@ -1920,14 +1929,14 @@ const tt = {
|
|
|
1920
1929
|
e.invalid && "vf-textarea--invalid"
|
|
1921
1930
|
)
|
|
1922
1931
|
);
|
|
1923
|
-
function u(
|
|
1924
|
-
i("update:modelValue",
|
|
1932
|
+
function u(v) {
|
|
1933
|
+
i("update:modelValue", v.target.value);
|
|
1925
1934
|
}
|
|
1926
|
-
return (
|
|
1935
|
+
return (v, _) => (d(), h("textarea", H({
|
|
1927
1936
|
class: r.value,
|
|
1928
1937
|
value: e.modelValue,
|
|
1929
1938
|
"aria-invalid": e.invalid || void 0
|
|
1930
|
-
},
|
|
1939
|
+
}, y(l), { onInput: u }), null, 16, cn));
|
|
1931
1940
|
}
|
|
1932
1941
|
}), fn = ["aria-describedby"], vn = ["id"], Kn = /* @__PURE__ */ L({
|
|
1933
1942
|
__name: "VfTooltip",
|
|
@@ -1939,16 +1948,16 @@ const tt = {
|
|
|
1939
1948
|
disableTeleport: { type: Boolean, default: !1 }
|
|
1940
1949
|
},
|
|
1941
1950
|
setup(t) {
|
|
1942
|
-
const n = t, e =
|
|
1951
|
+
const n = t, e = D(!1), i = G({ prefix: "vf-tooltip" }), l = D(null), r = D(null), u = D(null), v = D(null), _ = {
|
|
1943
1952
|
enter: U.fast,
|
|
1944
1953
|
leave: U.fast
|
|
1945
1954
|
}, b = s(
|
|
1946
1955
|
() => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null
|
|
1947
|
-
),
|
|
1948
|
-
placement:
|
|
1949
|
-
middlewareData:
|
|
1956
|
+
), p = s(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
|
|
1957
|
+
placement: C,
|
|
1958
|
+
middlewareData: x,
|
|
1950
1959
|
styles: w,
|
|
1951
|
-
cleanup:
|
|
1960
|
+
cleanup: S
|
|
1952
1961
|
} = ye(r, u, {
|
|
1953
1962
|
enabled: e,
|
|
1954
1963
|
placement: s(() => n.placement),
|
|
@@ -1957,79 +1966,79 @@ const tt = {
|
|
|
1957
1966
|
ve(10),
|
|
1958
1967
|
pe({ placements: ["top", "bottom"] }),
|
|
1959
1968
|
me(),
|
|
1960
|
-
|
|
1961
|
-
].filter((
|
|
1969
|
+
v.value ? he(v.value) : void 0
|
|
1970
|
+
].filter((o) => o !== void 0)
|
|
1962
1971
|
),
|
|
1963
1972
|
strategy: "fixed"
|
|
1964
|
-
}),
|
|
1973
|
+
}), I = s(() => [
|
|
1965
1974
|
"vf-tooltip__content",
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
]),
|
|
1969
|
-
const
|
|
1975
|
+
C.value.startsWith("bottom") && "vf-tooltip__content--bottom",
|
|
1976
|
+
C.value.startsWith("top") && "vf-tooltip__content--top"
|
|
1977
|
+
]), M = s(() => {
|
|
1978
|
+
const o = x.value.arrow;
|
|
1970
1979
|
return {
|
|
1971
|
-
x: (
|
|
1972
|
-
y: (
|
|
1980
|
+
x: (o == null ? void 0 : o.x) !== void 0 && (o == null ? void 0 : o.baseX) !== void 0 ? o.x - o.baseX : 0,
|
|
1981
|
+
y: (o == null ? void 0 : o.y) !== void 0 && (o == null ? void 0 : o.baseY) !== void 0 ? o.y - o.baseY : 0
|
|
1973
1982
|
};
|
|
1974
|
-
}),
|
|
1975
|
-
left: `${
|
|
1976
|
-
top: `${
|
|
1983
|
+
}), $ = s(() => ["vf-tooltip__arrow"]), f = s(() => ({
|
|
1984
|
+
left: `${M.value.x}px`,
|
|
1985
|
+
top: `${M.value.y}px`
|
|
1977
1986
|
}));
|
|
1978
|
-
function
|
|
1987
|
+
function a() {
|
|
1979
1988
|
l.value !== null && (window.clearTimeout(l.value), l.value = null);
|
|
1980
1989
|
}
|
|
1981
|
-
function
|
|
1982
|
-
|
|
1990
|
+
function m() {
|
|
1991
|
+
a(), l.value = window.setTimeout(() => {
|
|
1983
1992
|
e.value = !0;
|
|
1984
1993
|
}, n.openDelay);
|
|
1985
1994
|
}
|
|
1986
|
-
function
|
|
1987
|
-
|
|
1995
|
+
function c() {
|
|
1996
|
+
a(), e.value = !1;
|
|
1988
1997
|
}
|
|
1989
1998
|
return ee(() => {
|
|
1990
|
-
|
|
1991
|
-
}), (
|
|
1999
|
+
a(), S();
|
|
2000
|
+
}), (o, B) => (d(), h("span", {
|
|
1992
2001
|
class: "vf-tooltip",
|
|
1993
|
-
onMouseenter:
|
|
1994
|
-
onMouseleave:
|
|
1995
|
-
onFocusin:
|
|
1996
|
-
onFocusout:
|
|
2002
|
+
onMouseenter: m,
|
|
2003
|
+
onMouseleave: c,
|
|
2004
|
+
onFocusin: m,
|
|
2005
|
+
onFocusout: c
|
|
1997
2006
|
}, [
|
|
1998
2007
|
T("span", {
|
|
1999
2008
|
ref_key: "triggerRef",
|
|
2000
2009
|
ref: r,
|
|
2001
2010
|
class: "vf-tooltip__trigger",
|
|
2002
|
-
"aria-describedby": e.value ?
|
|
2011
|
+
"aria-describedby": e.value ? y(i) : void 0
|
|
2003
2012
|
}, [
|
|
2004
|
-
|
|
2013
|
+
E(o.$slots, "default")
|
|
2005
2014
|
], 8, fn),
|
|
2006
|
-
(
|
|
2007
|
-
to:
|
|
2015
|
+
(d(), q(le, {
|
|
2016
|
+
to: p.value,
|
|
2008
2017
|
disabled: b.value
|
|
2009
2018
|
}, [
|
|
2010
2019
|
j(ne, {
|
|
2011
2020
|
name: "vf-floating-transition",
|
|
2012
2021
|
appear: "",
|
|
2013
|
-
duration:
|
|
2022
|
+
duration: _
|
|
2014
2023
|
}, {
|
|
2015
2024
|
default: Q(() => [
|
|
2016
|
-
e.value && (t.text ||
|
|
2025
|
+
e.value && (t.text || o.$slots.content) ? (d(), h("span", {
|
|
2017
2026
|
key: 0,
|
|
2018
|
-
id:
|
|
2027
|
+
id: y(i),
|
|
2019
2028
|
ref_key: "contentRef",
|
|
2020
2029
|
ref: u,
|
|
2021
|
-
class: P(
|
|
2022
|
-
style: W(
|
|
2030
|
+
class: P(I.value),
|
|
2031
|
+
style: W(y(w)),
|
|
2023
2032
|
role: "tooltip"
|
|
2024
2033
|
}, [
|
|
2025
|
-
|
|
2034
|
+
E(o.$slots, "content", {}, () => [
|
|
2026
2035
|
oe(F(t.text), 1)
|
|
2027
2036
|
]),
|
|
2028
2037
|
T("span", {
|
|
2029
2038
|
ref_key: "arrowRef",
|
|
2030
|
-
ref:
|
|
2031
|
-
class: P(
|
|
2032
|
-
style: W(
|
|
2039
|
+
ref: v,
|
|
2040
|
+
class: P($.value),
|
|
2041
|
+
style: W(f.value),
|
|
2033
2042
|
"aria-hidden": "true"
|
|
2034
2043
|
}, null, 6)
|
|
2035
2044
|
], 14, vn)) : O("", !0)
|
|
@@ -2044,19 +2053,19 @@ export {
|
|
|
2044
2053
|
wn as VfAccordion,
|
|
2045
2054
|
Tn as VfAlert,
|
|
2046
2055
|
Vn as VfBadge,
|
|
2047
|
-
|
|
2048
|
-
|
|
2056
|
+
Cn as VfButton,
|
|
2057
|
+
xn as VfCard,
|
|
2049
2058
|
Bn as VfCheckbox,
|
|
2050
2059
|
On as VfDialog,
|
|
2051
|
-
|
|
2060
|
+
An as VfDivider,
|
|
2052
2061
|
En as VfDrawer,
|
|
2053
|
-
|
|
2054
|
-
|
|
2062
|
+
Dn as VfDropdown,
|
|
2063
|
+
De as VfIconButton,
|
|
2055
2064
|
In as VfInput,
|
|
2056
2065
|
Ln as VfLink,
|
|
2057
2066
|
Sn as VfNavMenu,
|
|
2058
|
-
|
|
2059
|
-
|
|
2067
|
+
Mn as VfPanel,
|
|
2068
|
+
zn as VfPopover,
|
|
2060
2069
|
Pn as VfRadio,
|
|
2061
2070
|
Nn as VfSwitch,
|
|
2062
2071
|
Rn as VfTabs,
|
|
@@ -2064,9 +2073,9 @@ export {
|
|
|
2064
2073
|
Hn as VfTextarea,
|
|
2065
2074
|
$n as VfThemeProvider,
|
|
2066
2075
|
Kn as VfTooltip,
|
|
2067
|
-
bn as
|
|
2076
|
+
bn as VueForgeCore,
|
|
2068
2077
|
Wn as createThemePreset,
|
|
2069
|
-
Ue as
|
|
2078
|
+
Ue as createVueForgeCore,
|
|
2070
2079
|
bn as default,
|
|
2071
2080
|
Fe as defaultThemePreset,
|
|
2072
2081
|
Yn as toMaxWidthQuery,
|
|
@@ -2078,9 +2087,9 @@ export {
|
|
|
2078
2087
|
se as useDisclosure,
|
|
2079
2088
|
fe as useEscapeKey,
|
|
2080
2089
|
ye as useFloating,
|
|
2081
|
-
|
|
2090
|
+
Ae as useFocusTrap,
|
|
2082
2091
|
G as useId,
|
|
2083
|
-
|
|
2092
|
+
xe as useScrollLock,
|
|
2084
2093
|
kn as useTheme,
|
|
2085
2094
|
Zn as vfBreakpoints
|
|
2086
2095
|
};
|