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