@codemonster-ru/vueforge-core 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -1
- package/dist/breakpoints-hxAiWC8U.js +11 -0
- package/dist/components/dialog/VfDialog.vue.d.ts.map +1 -1
- package/dist/foundation/breakpoints.d.ts +13 -0
- package/dist/foundation/breakpoints.d.ts.map +1 -0
- package/dist/foundation/breakpoints.json.d.ts +11 -0
- package/dist/foundation/index.d.ts +10 -0
- package/dist/foundation/index.d.ts.map +1 -0
- package/dist/foundation/useBreakpoint.d.ts +7 -0
- package/dist/foundation/useBreakpoint.d.ts.map +1 -0
- package/dist/foundation/useBreakpointValue.d.ts +7 -0
- package/dist/foundation/useBreakpointValue.d.ts.map +1 -0
- package/dist/foundation/useBreakpoints.d.ts +4 -0
- package/dist/foundation/useBreakpoints.d.ts.map +1 -0
- package/dist/foundation/useScrollLock.d.ts +8 -0
- package/dist/foundation/useScrollLock.d.ts.map +1 -0
- package/dist/foundation-api.d.ts +2 -0
- package/dist/foundation-api.js +10 -0
- package/dist/foundation.css +2 -0
- package/dist/generated-breakpoints.css +9 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/public-D2viaiWv.js +202 -0
- package/dist/styles.css +1 -1
- package/dist/theme/default-preset.d.ts.map +1 -1
- package/dist/theme/public.d.ts +2 -0
- package/dist/theme/public.d.ts.map +1 -0
- package/dist/theme-api.d.ts +2 -0
- package/dist/theme-api.js +5 -0
- package/dist/theme.css +29 -0
- package/dist/tokens.css +97 -0
- package/dist/types/theme.d.ts +6 -0
- package/dist/types/theme.d.ts.map +1 -1
- package/dist/useScrollLock-B7pq1ybb.js +96 -0
- package/dist/vueforge-core.js +675 -852
- package/package.json +35 -3
package/dist/vueforge-core.js
CHANGED
|
@@ -1,345 +1,167 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
colorText: "#172033",
|
|
11
|
-
colorMuted: "#69738a",
|
|
12
|
-
colorBorder: "#d8e0ef",
|
|
13
|
-
colorPrimary: "#0b63f6",
|
|
14
|
-
colorPrimaryContrast: "#ffffff",
|
|
15
|
-
colorPrimarySoft: "color-mix(in srgb, var(--vf-color-primary) 12%, var(--vf-color-surface))",
|
|
16
|
-
colorPrimaryBorderSoft: "color-mix(in srgb, var(--vf-color-primary) 22%, var(--vf-color-border))",
|
|
17
|
-
colorFocusRing: "color-mix(in srgb, var(--vf-color-primary) 52%, var(--vf-color-surface))",
|
|
18
|
-
colorSuccess: "#16a34a",
|
|
19
|
-
colorDanger: "#dc2626",
|
|
20
|
-
colorSuccessSoft: "color-mix(in srgb, var(--vf-color-success) 12%, var(--vf-color-surface))",
|
|
21
|
-
colorDangerSoft: "color-mix(in srgb, var(--vf-color-danger) 12%, var(--vf-color-surface))",
|
|
22
|
-
colorSuccessBorderSoft: "color-mix(in srgb, var(--vf-color-success) 24%, var(--vf-color-border))",
|
|
23
|
-
colorDangerBorderSoft: "color-mix(in srgb, var(--vf-color-danger) 24%, var(--vf-color-border))",
|
|
24
|
-
radius: "0.75rem",
|
|
25
|
-
radiusControl: "calc(var(--vf-radius) - 0.125rem)",
|
|
26
|
-
radiusControlTight: "calc(var(--vf-radius) - 0.25rem)",
|
|
27
|
-
radiusSurface: "var(--vf-radius)",
|
|
28
|
-
radiusOverlay: "calc(var(--vf-radius) + 0.125rem)",
|
|
29
|
-
controlHeightSm: "1.75rem",
|
|
30
|
-
controlHeightMd: "2.25rem",
|
|
31
|
-
controlHeightLg: "2.5rem",
|
|
32
|
-
controlFontSizeSm: "0.875rem",
|
|
33
|
-
controlFontSizeMd: "0.9375rem",
|
|
34
|
-
controlFontSizeLg: "1rem",
|
|
35
|
-
buttonPaddingSm: "0.25rem 0.55rem",
|
|
36
|
-
buttonPaddingMd: "0.375rem 0.75rem",
|
|
37
|
-
buttonPaddingLg: "0.5rem 0.875rem",
|
|
38
|
-
buttonGap: "0.5rem",
|
|
39
|
-
fieldPaddingSm: "0.25rem 0.55rem",
|
|
40
|
-
fieldPaddingMd: "0.375rem 0.65rem",
|
|
41
|
-
fieldPaddingLg: "0.5rem 0.75rem",
|
|
42
|
-
textareaMinHeightSm: "4.5rem",
|
|
43
|
-
textareaMinHeightMd: "6rem",
|
|
44
|
-
textareaMinHeightLg: "7rem",
|
|
45
|
-
overlayPadding: "0.875rem",
|
|
46
|
-
overlayGap: "0.75rem",
|
|
47
|
-
overlayViewportPadding: "1rem",
|
|
48
|
-
menuPadding: "0.4rem",
|
|
49
|
-
menuGap: "0.2rem",
|
|
50
|
-
menuMinWidth: "12rem",
|
|
51
|
-
surfacePadding: "0.95rem",
|
|
52
|
-
surfaceGap: "0.625rem",
|
|
53
|
-
surfacePaddingCompact: "0.7rem",
|
|
54
|
-
surfaceGapCompact: "0.5rem",
|
|
55
|
-
sectionPadding: "0.75rem 0.9rem",
|
|
56
|
-
sectionGap: "0.75rem",
|
|
57
|
-
tabsGap: "0.875rem",
|
|
58
|
-
tabsListGap: "0.375rem",
|
|
59
|
-
tabsListPadding: "0.25rem",
|
|
60
|
-
tabsTabPaddingInline: "0.8rem",
|
|
61
|
-
tabsPanelPaddingTop: "0.75rem",
|
|
62
|
-
badgeHeight: "1.625rem",
|
|
63
|
-
badgePadding: "0.2rem 0.55rem",
|
|
64
|
-
badgeGap: "0.375rem",
|
|
65
|
-
badgeRadius: "999px",
|
|
66
|
-
badgeFontSize: "0.8125rem",
|
|
67
|
-
badgeLineHeight: "1.2",
|
|
68
|
-
tagHeight: "1.75rem",
|
|
69
|
-
tagPadding: "0.25rem 0.6rem",
|
|
70
|
-
tagFontSize: "0.8125rem",
|
|
71
|
-
tagLineHeight: "1.2",
|
|
72
|
-
tooltipPadding: "0.45rem 0.65rem",
|
|
73
|
-
tooltipMaxWidth: "16rem",
|
|
74
|
-
tooltipFontSize: "0.8125rem",
|
|
75
|
-
tooltipLineHeight: "1.4",
|
|
76
|
-
dialogWidthSm: "28rem",
|
|
77
|
-
dialogWidthMd: "36rem",
|
|
78
|
-
dialogWidthLg: "48rem",
|
|
79
|
-
dialogMaxHeight: "min(85vh, 48rem)",
|
|
80
|
-
dialogTitleFontSize: "1.125rem",
|
|
81
|
-
dialogHeaderGap: "0.75rem",
|
|
82
|
-
dialogActionsGap: "0.5rem",
|
|
83
|
-
popoverWidth: "min(100vw - 2rem, 22rem)",
|
|
84
|
-
floatingArrowSize: "0.625rem",
|
|
85
|
-
overlayBackdrop: "rgba(15, 23, 42, 0.56)",
|
|
86
|
-
overlayBackdropBlur: "6px",
|
|
87
|
-
alertPrimarySoft: "color-mix(in srgb, var(--vf-color-primary) 8%, var(--vf-color-surface))",
|
|
88
|
-
alertPrimaryBorderSoft: "color-mix(in srgb, var(--vf-color-primary) 22%, var(--vf-color-border))",
|
|
89
|
-
alertContentGap: "0.25rem",
|
|
90
|
-
alertTitleFontSize: "0.9375rem",
|
|
91
|
-
cardTitleFontSize: "1rem",
|
|
92
|
-
panelTitleFontSize: "0.9375rem",
|
|
93
|
-
textLineHeight: "1.5",
|
|
94
|
-
headingLineHeight: "1.3",
|
|
95
|
-
tabsLineHeight: "1.2",
|
|
96
|
-
spacing: "1rem",
|
|
97
|
-
shadow: "none"
|
|
98
|
-
},
|
|
99
|
-
dark: {
|
|
100
|
-
colorBg: "#0f172a",
|
|
101
|
-
colorSurface: "#162033",
|
|
102
|
-
colorSurfaceMuted: "#1b2840",
|
|
103
|
-
colorText: "#eff4ff",
|
|
104
|
-
colorMuted: "#9fb0cf",
|
|
105
|
-
colorBorder: "#2d405f",
|
|
106
|
-
colorPrimary: "#6ea8fe",
|
|
107
|
-
colorPrimaryContrast: "#081120",
|
|
108
|
-
colorPrimarySoft: "color-mix(in srgb, var(--vf-color-primary) 12%, var(--vf-color-surface))",
|
|
109
|
-
colorPrimaryBorderSoft: "color-mix(in srgb, var(--vf-color-primary) 22%, var(--vf-color-border))",
|
|
110
|
-
colorFocusRing: "color-mix(in srgb, var(--vf-color-primary) 52%, var(--vf-color-surface))",
|
|
111
|
-
colorSuccess: "#4ade80",
|
|
112
|
-
colorDanger: "#f87171",
|
|
113
|
-
colorSuccessSoft: "color-mix(in srgb, var(--vf-color-success) 12%, var(--vf-color-surface))",
|
|
114
|
-
colorDangerSoft: "color-mix(in srgb, var(--vf-color-danger) 12%, var(--vf-color-surface))",
|
|
115
|
-
colorSuccessBorderSoft: "color-mix(in srgb, var(--vf-color-success) 24%, var(--vf-color-border))",
|
|
116
|
-
colorDangerBorderSoft: "color-mix(in srgb, var(--vf-color-danger) 24%, var(--vf-color-border))",
|
|
117
|
-
shadow: "none"
|
|
118
|
-
}
|
|
119
|
-
}, _e = "vf-theme", be = "data-vf-theme";
|
|
120
|
-
function Pe(e) {
|
|
121
|
-
return e === "light" || e === "dark" || e === "system";
|
|
122
|
-
}
|
|
123
|
-
function Ae(e, o) {
|
|
124
|
-
return e === "system" ? o : e;
|
|
125
|
-
}
|
|
126
|
-
const $e = "vf", ze = "vf-theme-preset", Le = ":root";
|
|
127
|
-
function Fe(e) {
|
|
128
|
-
return e.replace(/[A-Z]/g, (o) => `-${o.toLowerCase()}`);
|
|
129
|
-
}
|
|
130
|
-
function ve(...e) {
|
|
131
|
-
return Object.assign({}, ...e);
|
|
132
|
-
}
|
|
133
|
-
function Ft(e) {
|
|
134
|
-
return e;
|
|
135
|
-
}
|
|
136
|
-
function Me(e = {}) {
|
|
137
|
-
const o = e.prefix ?? $e, t = e.rootSelector ?? Le, a = e.attribute ?? be;
|
|
138
|
-
return {
|
|
139
|
-
prefix: o,
|
|
140
|
-
rootSelector: t,
|
|
141
|
-
darkModeSelector: e.darkModeSelector ?? `${t}[${a}='dark']`,
|
|
142
|
-
attribute: a,
|
|
143
|
-
storageKey: e.storageKey ?? _e,
|
|
144
|
-
styleId: e.styleId ?? ze
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
function He(e = {}) {
|
|
148
|
-
const o = e.preset ?? De, t = e.extend, a = ve(o.tokens, t, e.light), n = ve(o.tokens, o.dark, t, e.dark);
|
|
149
|
-
return {
|
|
150
|
-
name: o.name,
|
|
151
|
-
light: a,
|
|
152
|
-
dark: n
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
function Re(e = {}) {
|
|
1
|
+
import { r as be, a as ge, b as $e, D as we, c as ke, i as Ve } from "./public-D2viaiWv.js";
|
|
2
|
+
import { d as Gt, e as Jt } from "./public-D2viaiWv.js";
|
|
3
|
+
import { defineComponent as D, ref as w, inject as pe, computed as r, watch as W, onMounted as Q, onBeforeUnmount as N, provide as Te, renderSlot as $, toValue as A, nextTick as G, openBlock as m, createElementBlock as h, createElementVNode as C, unref as c, toDisplayString as R, normalizeClass as M, createVNode as ee, createCommentVNode as I, useAttrs as P, mergeProps as F, createTextVNode as ve, useSlots as xe, createBlock as X, Teleport as J, normalizeStyle as U, Fragment as Ce, renderList as Oe, normalizeProps as De, guardReactiveProps as Ie } from "vue";
|
|
4
|
+
import { d as Ee } from "./useScrollLock-B7pq1ybb.js";
|
|
5
|
+
import { t as eo, a as to, u as oo, b as no, c as ao, v as so } from "./useScrollLock-B7pq1ybb.js";
|
|
6
|
+
import { VueIconify as te, icons as H } from "@codemonster-ru/vueiconify";
|
|
7
|
+
import { autoUpdate as Be, computePosition as Ae, offset as oe, flip as ne, shift as ae, arrow as se } from "@codemonster-ru/floater.js";
|
|
8
|
+
const me = Symbol("VueForgeConfig");
|
|
9
|
+
function Se() {
|
|
156
10
|
return {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
function pe(e, o = $e) {
|
|
162
|
-
return Object.fromEntries(
|
|
163
|
-
Object.entries(e).map(([t, a]) => [`--${o}-${Fe(t)}`, a])
|
|
164
|
-
);
|
|
165
|
-
}
|
|
166
|
-
function me(e) {
|
|
167
|
-
return Object.entries(e).map(([o, t]) => ` ${o}: ${t};`).join(`
|
|
168
|
-
`);
|
|
169
|
-
}
|
|
170
|
-
function Ke(e) {
|
|
171
|
-
const { preset: o, options: t } = e, a = me(pe(o.light, t.prefix)), n = me(pe(o.dark, t.prefix));
|
|
172
|
-
return [
|
|
173
|
-
`${t.rootSelector} {
|
|
174
|
-
${a}
|
|
175
|
-
}`,
|
|
176
|
-
`${t.darkModeSelector} {
|
|
177
|
-
${n}
|
|
178
|
-
}`
|
|
179
|
-
].join(`
|
|
180
|
-
|
|
181
|
-
`);
|
|
182
|
-
}
|
|
183
|
-
function Ge(e, o = document) {
|
|
184
|
-
const t = e.options.styleId, a = o.getElementById(t) ?? Object.assign(o.createElement("style"), { id: t });
|
|
185
|
-
return a.textContent = Ke(e), a.parentNode || o.head.appendChild(a), a;
|
|
186
|
-
}
|
|
187
|
-
function We() {
|
|
188
|
-
return {
|
|
189
|
-
install(o, t = {}) {
|
|
190
|
-
const a = Re(t.theme);
|
|
191
|
-
o.provide(ye, { theme: a }), typeof document < "u" && Ge(a);
|
|
11
|
+
install(t, e = {}) {
|
|
12
|
+
const s = be(e.theme);
|
|
13
|
+
t.provide(me, { theme: s }), typeof document < "u" && ge(s);
|
|
192
14
|
}
|
|
193
15
|
};
|
|
194
16
|
}
|
|
195
|
-
const
|
|
17
|
+
const It = Se(), _e = Symbol("VfThemeContext"), Et = /* @__PURE__ */ D({
|
|
196
18
|
__name: "VfThemeProvider",
|
|
197
19
|
props: {
|
|
198
20
|
defaultTheme: { default: "system" },
|
|
199
21
|
storageKey: {},
|
|
200
22
|
attribute: {}
|
|
201
23
|
},
|
|
202
|
-
setup(
|
|
203
|
-
const
|
|
204
|
-
() =>
|
|
205
|
-
),
|
|
206
|
-
() =>
|
|
24
|
+
setup(o) {
|
|
25
|
+
const t = o, e = w(t.defaultTheme), s = w("light"), n = w(null), l = pe(me, null), d = r(() => $e(e.value, s.value)), f = r(
|
|
26
|
+
() => t.storageKey ?? (l == null ? void 0 : l.theme.options.storageKey) ?? we
|
|
27
|
+
), _ = r(
|
|
28
|
+
() => t.attribute ?? (l == null ? void 0 : l.theme.options.attribute) ?? ke
|
|
207
29
|
);
|
|
208
|
-
function
|
|
30
|
+
function b() {
|
|
209
31
|
if (typeof window > "u")
|
|
210
32
|
return;
|
|
211
|
-
const
|
|
212
|
-
|
|
33
|
+
const y = window.localStorage.getItem(f.value);
|
|
34
|
+
Ve(y) && (e.value = y);
|
|
213
35
|
}
|
|
214
|
-
function
|
|
215
|
-
typeof document > "u" || document.documentElement.setAttribute(
|
|
36
|
+
function u(y) {
|
|
37
|
+
typeof document > "u" || document.documentElement.setAttribute(_.value, y);
|
|
216
38
|
}
|
|
217
|
-
function
|
|
218
|
-
var
|
|
219
|
-
if (
|
|
220
|
-
|
|
39
|
+
function V(y) {
|
|
40
|
+
var B;
|
|
41
|
+
if (y) {
|
|
42
|
+
s.value = y.matches ? "dark" : "light";
|
|
221
43
|
return;
|
|
222
44
|
}
|
|
223
|
-
|
|
45
|
+
s.value = (B = n.value) != null && B.matches ? "dark" : "light";
|
|
224
46
|
}
|
|
225
|
-
function
|
|
226
|
-
|
|
47
|
+
function k(y) {
|
|
48
|
+
e.value = y;
|
|
227
49
|
}
|
|
228
|
-
function
|
|
229
|
-
const
|
|
230
|
-
|
|
50
|
+
function O() {
|
|
51
|
+
const y = d.value === "dark" ? "light" : "dark";
|
|
52
|
+
e.value = y;
|
|
231
53
|
}
|
|
232
|
-
return W(
|
|
233
|
-
typeof window > "u" || window.localStorage.setItem(
|
|
54
|
+
return W(e, (y) => {
|
|
55
|
+
typeof window > "u" || window.localStorage.setItem(f.value, y);
|
|
234
56
|
}), W(
|
|
235
|
-
|
|
236
|
-
(
|
|
237
|
-
|
|
57
|
+
d,
|
|
58
|
+
(y) => {
|
|
59
|
+
u(y);
|
|
238
60
|
},
|
|
239
61
|
{ immediate: !0 }
|
|
240
|
-
),
|
|
241
|
-
|
|
242
|
-
}),
|
|
243
|
-
var
|
|
244
|
-
(
|
|
245
|
-
}), Te(
|
|
246
|
-
mode:
|
|
247
|
-
resolvedTheme:
|
|
248
|
-
setTheme:
|
|
249
|
-
toggleTheme:
|
|
250
|
-
}), (
|
|
62
|
+
), Q(() => {
|
|
63
|
+
b(), n.value = window.matchMedia("(prefers-color-scheme: dark)"), V(), n.value.addEventListener("change", V);
|
|
64
|
+
}), N(() => {
|
|
65
|
+
var y;
|
|
66
|
+
(y = n.value) == null || y.removeEventListener("change", V);
|
|
67
|
+
}), Te(_e, {
|
|
68
|
+
mode: e,
|
|
69
|
+
resolvedTheme: d,
|
|
70
|
+
setTheme: k,
|
|
71
|
+
toggleTheme: O
|
|
72
|
+
}), (y, B) => $(y.$slots, "default");
|
|
251
73
|
}
|
|
252
74
|
});
|
|
253
|
-
function
|
|
254
|
-
const
|
|
255
|
-
if (
|
|
75
|
+
function he(o, t, e = {}) {
|
|
76
|
+
const s = e.event ?? "pointerdown", n = (l) => {
|
|
77
|
+
if (A(e.enabled) === !1)
|
|
256
78
|
return;
|
|
257
|
-
const
|
|
258
|
-
if (!(
|
|
79
|
+
const d = l.target;
|
|
80
|
+
if (!(d instanceof Node))
|
|
259
81
|
return;
|
|
260
|
-
const
|
|
261
|
-
|
|
82
|
+
const f = Array.isArray(o) ? o.map((_) => _.value).filter((_) => _ instanceof HTMLElement) : [o.value].filter((_) => _ instanceof HTMLElement);
|
|
83
|
+
f.length === 0 || f.some((_) => _.contains(d)) || t(l);
|
|
262
84
|
};
|
|
263
|
-
|
|
264
|
-
document.addEventListener(
|
|
265
|
-
}),
|
|
266
|
-
document.removeEventListener(
|
|
85
|
+
Q(() => {
|
|
86
|
+
document.addEventListener(s, n);
|
|
87
|
+
}), N(() => {
|
|
88
|
+
document.removeEventListener(s, n);
|
|
267
89
|
});
|
|
268
90
|
}
|
|
269
|
-
function
|
|
270
|
-
const
|
|
91
|
+
function Z(o = {}) {
|
|
92
|
+
const t = r(() => A(o.open) !== void 0), e = w(o.defaultOpen ?? !1), s = r(() => t.value ? !!A(o.open) : e.value);
|
|
271
93
|
W(
|
|
272
|
-
() =>
|
|
273
|
-
(
|
|
274
|
-
|
|
94
|
+
() => A(o.open),
|
|
95
|
+
(l) => {
|
|
96
|
+
l !== void 0 && (e.value = l);
|
|
275
97
|
}
|
|
276
98
|
);
|
|
277
|
-
function n(
|
|
278
|
-
var
|
|
279
|
-
|
|
99
|
+
function n(l) {
|
|
100
|
+
var d;
|
|
101
|
+
t.value || (e.value = l), (d = o.onOpenChange) == null || d.call(o, l);
|
|
280
102
|
}
|
|
281
103
|
return {
|
|
282
|
-
isOpen:
|
|
104
|
+
isOpen: s,
|
|
283
105
|
open: () => n(!0),
|
|
284
106
|
close: () => n(!1),
|
|
285
|
-
toggle: () => n(!
|
|
107
|
+
toggle: () => n(!s.value),
|
|
286
108
|
setOpen: n
|
|
287
109
|
};
|
|
288
110
|
}
|
|
289
|
-
function le(
|
|
290
|
-
const
|
|
291
|
-
|
|
111
|
+
function le(o, t = {}) {
|
|
112
|
+
const e = t.event ?? "keydown", s = (n) => {
|
|
113
|
+
A(t.enabled) === !1 || n.key !== "Escape" || o(n);
|
|
292
114
|
};
|
|
293
|
-
|
|
294
|
-
document.addEventListener(
|
|
295
|
-
}),
|
|
296
|
-
document.removeEventListener(
|
|
115
|
+
Q(() => {
|
|
116
|
+
document.addEventListener(e, s);
|
|
117
|
+
}), N(() => {
|
|
118
|
+
document.removeEventListener(e, s);
|
|
297
119
|
});
|
|
298
120
|
}
|
|
299
|
-
function
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
const
|
|
303
|
-
left: `${
|
|
121
|
+
function re(o, t, e = {}) {
|
|
122
|
+
const s = w(0), n = w(0), l = w(A(e.placement) ?? "bottom"), d = w({}), f = w(null);
|
|
123
|
+
let _ = 0;
|
|
124
|
+
const b = r(() => ({
|
|
125
|
+
left: `${s.value}px`,
|
|
304
126
|
top: `${n.value}px`
|
|
305
127
|
}));
|
|
306
|
-
async function
|
|
307
|
-
if (!
|
|
128
|
+
async function u() {
|
|
129
|
+
if (!o.value || !t.value)
|
|
308
130
|
return;
|
|
309
|
-
const
|
|
310
|
-
placement:
|
|
311
|
-
middleware:
|
|
312
|
-
strategy:
|
|
131
|
+
const k = await Ae(o.value, t.value, {
|
|
132
|
+
placement: A(e.placement) ?? l.value,
|
|
133
|
+
middleware: A(e.middleware),
|
|
134
|
+
strategy: A(e.strategy)
|
|
313
135
|
});
|
|
314
|
-
|
|
136
|
+
s.value = k.x, n.value = k.y, l.value = k.placement, d.value = k.middlewareData ?? {};
|
|
315
137
|
}
|
|
316
|
-
function
|
|
317
|
-
var
|
|
318
|
-
(
|
|
138
|
+
function V() {
|
|
139
|
+
var k;
|
|
140
|
+
(k = f.value) == null || k.call(f), f.value = null;
|
|
319
141
|
}
|
|
320
142
|
return W(
|
|
321
|
-
[() =>
|
|
322
|
-
async ([
|
|
323
|
-
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
-
|
|
143
|
+
[() => A(e.enabled) !== !1, o, t],
|
|
144
|
+
async ([k]) => {
|
|
145
|
+
_ += 1;
|
|
146
|
+
const O = _;
|
|
147
|
+
V(), !(!k || !o.value || !t.value) && (await G(), !(O !== _ || A(e.enabled) === !1 || !o.value || !t.value) && (await u(), !(O !== _ || A(e.enabled) === !1 || !o.value || !t.value) && (f.value = Be(o.value, () => {
|
|
148
|
+
u();
|
|
327
149
|
}))));
|
|
328
150
|
},
|
|
329
151
|
{ immediate: !0 }
|
|
330
|
-
),
|
|
331
|
-
|
|
152
|
+
), N(() => {
|
|
153
|
+
V();
|
|
332
154
|
}), {
|
|
333
|
-
x:
|
|
155
|
+
x: s,
|
|
334
156
|
y: n,
|
|
335
|
-
placement:
|
|
336
|
-
middlewareData:
|
|
337
|
-
styles:
|
|
338
|
-
update:
|
|
339
|
-
cleanup:
|
|
157
|
+
placement: l,
|
|
158
|
+
middlewareData: d,
|
|
159
|
+
styles: b,
|
|
160
|
+
update: u,
|
|
161
|
+
cleanup: V
|
|
340
162
|
};
|
|
341
163
|
}
|
|
342
|
-
const
|
|
164
|
+
const ze = [
|
|
343
165
|
"a[href]",
|
|
344
166
|
"button:not([disabled])",
|
|
345
167
|
"input:not([disabled])",
|
|
@@ -347,53 +169,53 @@ const je = [
|
|
|
347
169
|
"textarea:not([disabled])",
|
|
348
170
|
'[tabindex]:not([tabindex="-1"])'
|
|
349
171
|
].join(", ");
|
|
350
|
-
function
|
|
351
|
-
return Array.from(
|
|
352
|
-
(
|
|
172
|
+
function Pe(o) {
|
|
173
|
+
return Array.from(o.querySelectorAll(ze)).filter(
|
|
174
|
+
(t) => !t.hasAttribute("hidden") && t.getAttribute("aria-hidden") !== "true"
|
|
353
175
|
);
|
|
354
176
|
}
|
|
355
|
-
function
|
|
356
|
-
const
|
|
357
|
-
if (
|
|
177
|
+
function Fe(o, t = {}) {
|
|
178
|
+
const e = (s) => {
|
|
179
|
+
if (s.key !== "Tab" || A(t.enabled) === !1)
|
|
358
180
|
return;
|
|
359
|
-
const n =
|
|
181
|
+
const n = o.value;
|
|
360
182
|
if (!n)
|
|
361
183
|
return;
|
|
362
|
-
const
|
|
363
|
-
if (
|
|
364
|
-
|
|
184
|
+
const l = Pe(n);
|
|
185
|
+
if (l.length === 0) {
|
|
186
|
+
s.preventDefault(), n.focus();
|
|
365
187
|
return;
|
|
366
188
|
}
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
369
|
-
(
|
|
189
|
+
const d = l[0], f = l[l.length - 1], _ = document.activeElement;
|
|
190
|
+
if (s.shiftKey) {
|
|
191
|
+
(_ === d || _ === n) && (s.preventDefault(), f.focus());
|
|
370
192
|
return;
|
|
371
193
|
}
|
|
372
|
-
|
|
194
|
+
_ === f && (s.preventDefault(), d.focus());
|
|
373
195
|
};
|
|
374
|
-
|
|
375
|
-
document.addEventListener("keydown",
|
|
376
|
-
}),
|
|
377
|
-
document.removeEventListener("keydown",
|
|
196
|
+
Q(() => {
|
|
197
|
+
document.addEventListener("keydown", e);
|
|
198
|
+
}), N(() => {
|
|
199
|
+
document.removeEventListener("keydown", e);
|
|
378
200
|
});
|
|
379
201
|
}
|
|
380
|
-
let
|
|
381
|
-
function
|
|
382
|
-
const
|
|
383
|
-
return
|
|
202
|
+
let Ke = 0;
|
|
203
|
+
function K(o = {}) {
|
|
204
|
+
const t = `${o.prefix ?? "vf"}-${++Ke}`;
|
|
205
|
+
return r(() => A(o.providedId) ?? t);
|
|
384
206
|
}
|
|
385
|
-
function
|
|
386
|
-
const
|
|
387
|
-
if (!
|
|
207
|
+
function Bt() {
|
|
208
|
+
const o = pe(_e);
|
|
209
|
+
if (!o)
|
|
388
210
|
throw new Error("useTheme must be used inside VfThemeProvider.");
|
|
389
211
|
return {
|
|
390
|
-
theme:
|
|
391
|
-
resolvedTheme:
|
|
392
|
-
setTheme:
|
|
393
|
-
toggleTheme:
|
|
212
|
+
theme: o.mode,
|
|
213
|
+
resolvedTheme: o.resolvedTheme,
|
|
214
|
+
setTheme: o.setTheme,
|
|
215
|
+
toggleTheme: o.toggleTheme
|
|
394
216
|
};
|
|
395
217
|
}
|
|
396
|
-
const
|
|
218
|
+
const Le = { class: "vf-accordion" }, Re = ["id", "aria-controls", "aria-expanded", "disabled"], Me = ["id", "aria-labelledby"], At = /* @__PURE__ */ D({
|
|
397
219
|
__name: "VfAccordion",
|
|
398
220
|
props: {
|
|
399
221
|
open: { type: Boolean, default: void 0 },
|
|
@@ -402,113 +224,113 @@ const Xe = { class: "vf-accordion" }, qe = ["id", "aria-controls", "aria-expande
|
|
|
402
224
|
disabled: { type: Boolean, default: !1 }
|
|
403
225
|
},
|
|
404
226
|
emits: ["update:open", "openChange"],
|
|
405
|
-
setup(
|
|
406
|
-
const
|
|
407
|
-
defaultOpen:
|
|
408
|
-
open:
|
|
409
|
-
onOpenChange: (
|
|
410
|
-
|
|
227
|
+
setup(o, { emit: t }) {
|
|
228
|
+
const e = o, s = t, n = K({ prefix: "vf-accordion-trigger" }), l = K({ prefix: "vf-accordion-content" }), d = Z({
|
|
229
|
+
defaultOpen: e.defaultOpen,
|
|
230
|
+
open: r(() => e.open),
|
|
231
|
+
onOpenChange: (u) => {
|
|
232
|
+
s("update:open", u), s("openChange", u);
|
|
411
233
|
}
|
|
412
|
-
}),
|
|
413
|
-
function
|
|
414
|
-
|
|
234
|
+
}), f = d.isOpen;
|
|
235
|
+
function _() {
|
|
236
|
+
e.disabled || d.toggle();
|
|
415
237
|
}
|
|
416
|
-
function
|
|
417
|
-
(
|
|
238
|
+
function b(u) {
|
|
239
|
+
(u.key === "Enter" || u.key === " ") && (u.preventDefault(), _());
|
|
418
240
|
}
|
|
419
|
-
return (
|
|
420
|
-
|
|
241
|
+
return (u, V) => (m(), h("section", Le, [
|
|
242
|
+
C("button", {
|
|
421
243
|
id: c(n),
|
|
422
|
-
"aria-controls": c(
|
|
423
|
-
"aria-expanded": c(
|
|
424
|
-
disabled:
|
|
244
|
+
"aria-controls": c(l),
|
|
245
|
+
"aria-expanded": c(f),
|
|
246
|
+
disabled: o.disabled,
|
|
425
247
|
class: "vf-accordion__trigger",
|
|
426
248
|
type: "button",
|
|
427
|
-
onClick:
|
|
428
|
-
onKeydown:
|
|
249
|
+
onClick: _,
|
|
250
|
+
onKeydown: b
|
|
429
251
|
}, [
|
|
430
|
-
|
|
431
|
-
|
|
252
|
+
$(u.$slots, "trigger", { open: c(f) }, () => [
|
|
253
|
+
C("span", null, R(o.title), 1)
|
|
432
254
|
]),
|
|
433
|
-
|
|
255
|
+
C("span", {
|
|
434
256
|
"aria-hidden": "true",
|
|
435
|
-
class:
|
|
257
|
+
class: M(["vf-accordion__icon", c(f) && "vf-accordion__icon--open"])
|
|
436
258
|
}, [
|
|
437
259
|
ee(c(te), {
|
|
438
|
-
icon: c(
|
|
260
|
+
icon: c(H).chevronDown,
|
|
439
261
|
size: "0.875rem"
|
|
440
262
|
}, null, 8, ["icon"])
|
|
441
263
|
], 2)
|
|
442
|
-
], 40,
|
|
443
|
-
c(
|
|
264
|
+
], 40, Re),
|
|
265
|
+
c(f) ? (m(), h("div", {
|
|
444
266
|
key: 0,
|
|
445
|
-
id: c(
|
|
267
|
+
id: c(l),
|
|
446
268
|
"aria-labelledby": c(n),
|
|
447
269
|
class: "vf-accordion__content",
|
|
448
270
|
role: "region"
|
|
449
271
|
}, [
|
|
450
|
-
|
|
451
|
-
], 8,
|
|
272
|
+
$(u.$slots, "default", { open: c(f) })
|
|
273
|
+
], 8, Me)) : I("", !0)
|
|
452
274
|
]));
|
|
453
275
|
}
|
|
454
276
|
});
|
|
455
|
-
function
|
|
456
|
-
return
|
|
277
|
+
function S(...o) {
|
|
278
|
+
return o.filter(Boolean).join(" ");
|
|
457
279
|
}
|
|
458
|
-
const
|
|
280
|
+
const Ne = {
|
|
459
281
|
class: "vf-alert__icon",
|
|
460
282
|
"aria-hidden": "true"
|
|
461
|
-
},
|
|
283
|
+
}, We = { class: "vf-alert__content" }, Ue = {
|
|
462
284
|
key: 0,
|
|
463
285
|
class: "vf-alert__title"
|
|
464
|
-
},
|
|
286
|
+
}, Ye = { class: "vf-alert__body" }, St = /* @__PURE__ */ D({
|
|
465
287
|
inheritAttrs: !1,
|
|
466
288
|
__name: "VfAlert",
|
|
467
289
|
props: {
|
|
468
290
|
tone: { default: "primary" },
|
|
469
291
|
title: { default: void 0 }
|
|
470
292
|
},
|
|
471
|
-
setup(
|
|
472
|
-
const
|
|
473
|
-
() =>
|
|
474
|
-
), n =
|
|
475
|
-
return (
|
|
476
|
-
class:
|
|
293
|
+
setup(o) {
|
|
294
|
+
const t = o, e = P(), s = r(
|
|
295
|
+
() => S("vf-alert", t.tone !== "primary" && `vf-alert--${t.tone}`)
|
|
296
|
+
), n = r(() => t.tone === "success" ? H.checkCircle : t.tone === "danger" ? H.warning : H.info);
|
|
297
|
+
return (l, d) => (m(), h("section", F({
|
|
298
|
+
class: s.value,
|
|
477
299
|
role: "alert"
|
|
478
|
-
}, c(
|
|
479
|
-
|
|
300
|
+
}, c(e)), [
|
|
301
|
+
C("div", Ne, [
|
|
480
302
|
ee(c(te), {
|
|
481
303
|
icon: n.value,
|
|
482
304
|
size: "2rem"
|
|
483
305
|
}, null, 8, ["icon"])
|
|
484
306
|
]),
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
307
|
+
C("div", We, [
|
|
308
|
+
t.title || l.$slots.title ? (m(), h("p", Ue, [
|
|
309
|
+
$(l.$slots, "title", {}, () => [
|
|
310
|
+
ve(R(t.title), 1)
|
|
489
311
|
])
|
|
490
|
-
])) :
|
|
491
|
-
|
|
492
|
-
|
|
312
|
+
])) : I("", !0),
|
|
313
|
+
C("div", Ye, [
|
|
314
|
+
$(l.$slots, "default")
|
|
493
315
|
])
|
|
494
316
|
])
|
|
495
317
|
], 16));
|
|
496
318
|
}
|
|
497
|
-
}),
|
|
319
|
+
}), zt = /* @__PURE__ */ D({
|
|
498
320
|
inheritAttrs: !1,
|
|
499
321
|
__name: "VfBadge",
|
|
500
322
|
props: {
|
|
501
323
|
tone: { default: "neutral" }
|
|
502
324
|
},
|
|
503
|
-
setup(
|
|
504
|
-
const
|
|
505
|
-
() =>
|
|
325
|
+
setup(o) {
|
|
326
|
+
const t = o, e = P(), s = r(
|
|
327
|
+
() => S("vf-badge", t.tone !== "neutral" && `vf-badge--${t.tone}`)
|
|
506
328
|
);
|
|
507
|
-
return (n,
|
|
508
|
-
|
|
329
|
+
return (n, l) => (m(), h("span", F({ class: s.value }, c(e)), [
|
|
330
|
+
$(n.$slots, "default")
|
|
509
331
|
], 16));
|
|
510
332
|
}
|
|
511
|
-
}),
|
|
333
|
+
}), He = ["type"], Pt = /* @__PURE__ */ D({
|
|
512
334
|
inheritAttrs: !1,
|
|
513
335
|
__name: "VfButton",
|
|
514
336
|
props: {
|
|
@@ -517,49 +339,49 @@ const Ze = {
|
|
|
517
339
|
block: { type: Boolean, default: !1 },
|
|
518
340
|
type: { default: "button" }
|
|
519
341
|
},
|
|
520
|
-
setup(
|
|
521
|
-
const
|
|
522
|
-
() =>
|
|
342
|
+
setup(o) {
|
|
343
|
+
const t = o, e = P(), s = r(
|
|
344
|
+
() => S(
|
|
523
345
|
"vf-button",
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
346
|
+
t.variant !== "primary" && `vf-button--${t.variant}`,
|
|
347
|
+
t.size !== "md" && `vf-button--${t.size}`,
|
|
348
|
+
t.block && "vf-button--block"
|
|
527
349
|
)
|
|
528
350
|
);
|
|
529
|
-
return (n,
|
|
530
|
-
class:
|
|
531
|
-
type:
|
|
532
|
-
}, c(
|
|
533
|
-
|
|
534
|
-
], 16,
|
|
351
|
+
return (n, l) => (m(), h("button", F({
|
|
352
|
+
class: s.value,
|
|
353
|
+
type: t.type
|
|
354
|
+
}, c(e)), [
|
|
355
|
+
$(n.$slots, "default")
|
|
356
|
+
], 16, He));
|
|
535
357
|
}
|
|
536
|
-
}),
|
|
358
|
+
}), Xe = { key: 0 }, qe = { class: "vf-card__title" }, je = {
|
|
537
359
|
key: 1,
|
|
538
360
|
class: "vf-card__body"
|
|
539
|
-
},
|
|
361
|
+
}, Qe = { key: 2 }, Ft = /* @__PURE__ */ D({
|
|
540
362
|
inheritAttrs: !1,
|
|
541
363
|
__name: "VfCard",
|
|
542
364
|
props: {
|
|
543
365
|
title: { default: void 0 },
|
|
544
366
|
compact: { type: Boolean, default: !1 }
|
|
545
367
|
},
|
|
546
|
-
setup(
|
|
547
|
-
const
|
|
548
|
-
return (n,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
368
|
+
setup(o) {
|
|
369
|
+
const t = o, e = P(), s = r(() => S("vf-card", t.compact && "vf-card--compact"));
|
|
370
|
+
return (n, l) => (m(), h("section", F({ class: s.value }, c(e)), [
|
|
371
|
+
t.title || n.$slots.header ? (m(), h("header", Xe, [
|
|
372
|
+
$(n.$slots, "header", {}, () => [
|
|
373
|
+
C("h3", qe, R(t.title), 1)
|
|
552
374
|
])
|
|
553
|
-
])) :
|
|
554
|
-
n.$slots.default ? (m(), h("div",
|
|
555
|
-
|
|
556
|
-
])) :
|
|
557
|
-
n.$slots.footer ? (m(), h("footer",
|
|
558
|
-
|
|
559
|
-
])) :
|
|
375
|
+
])) : I("", !0),
|
|
376
|
+
n.$slots.default ? (m(), h("div", je, [
|
|
377
|
+
$(n.$slots, "default")
|
|
378
|
+
])) : I("", !0),
|
|
379
|
+
n.$slots.footer ? (m(), h("footer", Qe, [
|
|
380
|
+
$(n.$slots, "footer")
|
|
381
|
+
])) : I("", !0)
|
|
560
382
|
], 16));
|
|
561
383
|
}
|
|
562
|
-
}),
|
|
384
|
+
}), Ge = ["type"], Je = /* @__PURE__ */ D({
|
|
563
385
|
inheritAttrs: !1,
|
|
564
386
|
__name: "VfIconButton",
|
|
565
387
|
props: {
|
|
@@ -568,38 +390,38 @@ const Ze = {
|
|
|
568
390
|
size: { default: "md" },
|
|
569
391
|
type: { default: "button" }
|
|
570
392
|
},
|
|
571
|
-
setup(
|
|
572
|
-
const
|
|
573
|
-
() =>
|
|
393
|
+
setup(o) {
|
|
394
|
+
const t = o, e = P(), s = r(
|
|
395
|
+
() => S(
|
|
574
396
|
"vf-icon-button",
|
|
575
|
-
|
|
576
|
-
|
|
397
|
+
t.variant !== "ghost" && `vf-icon-button--${t.variant}`,
|
|
398
|
+
t.size !== "md" && `vf-icon-button--${t.size}`
|
|
577
399
|
)
|
|
578
|
-
), n =
|
|
579
|
-
return (
|
|
580
|
-
class:
|
|
581
|
-
type:
|
|
582
|
-
}, c(
|
|
400
|
+
), n = r(() => t.size === "sm" ? "0.875rem" : t.size === "lg" ? "1.125rem" : "1rem");
|
|
401
|
+
return (l, d) => (m(), h("button", F({
|
|
402
|
+
class: s.value,
|
|
403
|
+
type: t.type
|
|
404
|
+
}, c(e)), [
|
|
583
405
|
ee(c(te), {
|
|
584
|
-
icon:
|
|
406
|
+
icon: t.icon,
|
|
585
407
|
size: n.value,
|
|
586
408
|
"aria-hidden": "true"
|
|
587
409
|
}, null, 8, ["icon", "size"])
|
|
588
|
-
], 16,
|
|
410
|
+
], 16, Ge));
|
|
589
411
|
}
|
|
590
|
-
}),
|
|
412
|
+
}), Ze = {
|
|
591
413
|
key: 0,
|
|
592
414
|
class: "vf-dialog"
|
|
593
|
-
},
|
|
415
|
+
}, et = ["aria-describedby", "aria-labelledby"], tt = {
|
|
594
416
|
key: 0,
|
|
595
417
|
class: "vf-dialog__header"
|
|
596
|
-
},
|
|
418
|
+
}, ot = ["id"], nt = ["id"], at = { class: "vf-dialog__actions" }, st = {
|
|
597
419
|
key: 1,
|
|
598
420
|
class: "vf-dialog__body"
|
|
599
|
-
},
|
|
421
|
+
}, lt = {
|
|
600
422
|
key: 2,
|
|
601
423
|
class: "vf-dialog__footer"
|
|
602
|
-
},
|
|
424
|
+
}, Kt = /* @__PURE__ */ D({
|
|
603
425
|
__name: "VfDialog",
|
|
604
426
|
props: {
|
|
605
427
|
open: { type: Boolean, default: void 0 },
|
|
@@ -612,138 +434,132 @@ const Ze = {
|
|
|
612
434
|
closable: { type: Boolean, default: !0 }
|
|
613
435
|
},
|
|
614
436
|
emits: ["update:open", "openChange"],
|
|
615
|
-
setup(
|
|
616
|
-
const
|
|
617
|
-
defaultOpen:
|
|
618
|
-
open:
|
|
619
|
-
onOpenChange: (
|
|
620
|
-
|
|
437
|
+
setup(o, { emit: t }) {
|
|
438
|
+
const e = o, s = t, n = w(null), l = w(null), d = xe(), f = K({ prefix: "vf-dialog-title" }), _ = K({ prefix: "vf-dialog-description" }), b = Z({
|
|
439
|
+
defaultOpen: e.defaultOpen,
|
|
440
|
+
open: r(() => e.open),
|
|
441
|
+
onOpenChange: (a) => {
|
|
442
|
+
s("update:open", a), s("openChange", a);
|
|
621
443
|
}
|
|
622
|
-
}),
|
|
623
|
-
() =>
|
|
624
|
-
),
|
|
625
|
-
() =>
|
|
626
|
-
),
|
|
627
|
-
() =>
|
|
444
|
+
}), u = b.isOpen, V = r(
|
|
445
|
+
() => S("vf-dialog__content", e.size !== "md" && `vf-dialog__content--${e.size}`)
|
|
446
|
+
), k = r(() => !!d.header), O = r(() => !!d.description), y = r(
|
|
447
|
+
() => e.title || k.value ? f.value : void 0
|
|
448
|
+
), B = r(
|
|
449
|
+
() => e.description || O.value ? _.value : void 0
|
|
628
450
|
);
|
|
629
|
-
function
|
|
630
|
-
|
|
451
|
+
function x() {
|
|
452
|
+
b.close();
|
|
631
453
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
454
|
+
function p() {
|
|
455
|
+
e.closeOnOverlayClick && x();
|
|
634
456
|
}
|
|
635
|
-
function
|
|
636
|
-
const
|
|
637
|
-
if (!
|
|
457
|
+
function E() {
|
|
458
|
+
const a = n.value;
|
|
459
|
+
if (!a)
|
|
638
460
|
return;
|
|
639
|
-
const
|
|
640
|
-
if (
|
|
641
|
-
|
|
461
|
+
const T = a.querySelector("[autofocus], [data-autofocus]");
|
|
462
|
+
if (T) {
|
|
463
|
+
T.focus();
|
|
642
464
|
return;
|
|
643
465
|
}
|
|
644
|
-
|
|
645
|
-
}
|
|
646
|
-
function B() {
|
|
647
|
-
typeof document > "u" || (u.value === null && (u.value = document.body.style.overflow), document.body.style.overflow = "hidden");
|
|
648
|
-
}
|
|
649
|
-
function b() {
|
|
650
|
-
typeof document > "u" || (document.body.style.overflow = u.value ?? "", u.value = null);
|
|
466
|
+
a.focus();
|
|
651
467
|
}
|
|
652
468
|
return le(
|
|
653
|
-
(
|
|
654
|
-
!
|
|
469
|
+
(a) => {
|
|
470
|
+
!e.closeOnEscape || !u.value || (a.preventDefault(), x());
|
|
655
471
|
},
|
|
656
472
|
{
|
|
657
|
-
enabled:
|
|
473
|
+
enabled: u
|
|
658
474
|
}
|
|
659
|
-
),
|
|
660
|
-
enabled:
|
|
661
|
-
}), W(
|
|
662
|
-
|
|
663
|
-
async (
|
|
664
|
-
var
|
|
475
|
+
), Fe(n, {
|
|
476
|
+
enabled: u
|
|
477
|
+
}), Ee(u), W(
|
|
478
|
+
u,
|
|
479
|
+
async (a) => {
|
|
480
|
+
var T;
|
|
665
481
|
if (!(typeof document > "u")) {
|
|
666
|
-
if (
|
|
667
|
-
|
|
482
|
+
if (a) {
|
|
483
|
+
l.value = document.activeElement instanceof HTMLElement ? document.activeElement : null, await G(), E();
|
|
668
484
|
return;
|
|
669
485
|
}
|
|
670
|
-
|
|
486
|
+
(T = l.value) == null || T.focus();
|
|
671
487
|
}
|
|
672
488
|
},
|
|
673
489
|
{ immediate: !0 }
|
|
674
|
-
),
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
}), (
|
|
678
|
-
c(
|
|
679
|
-
|
|
490
|
+
), N(() => {
|
|
491
|
+
var a;
|
|
492
|
+
u.value && ((a = l.value) == null || a.focus());
|
|
493
|
+
}), (a, T) => (m(), X(J, { to: "body" }, [
|
|
494
|
+
c(u) ? (m(), h("div", Ze, [
|
|
495
|
+
C("div", {
|
|
680
496
|
class: "vf-dialog__overlay",
|
|
681
497
|
"aria-hidden": "true",
|
|
682
|
-
onClick:
|
|
498
|
+
onClick: p
|
|
683
499
|
}),
|
|
684
|
-
|
|
500
|
+
C("section", {
|
|
685
501
|
ref_key: "contentRef",
|
|
686
502
|
ref: n,
|
|
687
|
-
class:
|
|
688
|
-
"aria-describedby":
|
|
689
|
-
"aria-labelledby":
|
|
503
|
+
class: M(V.value),
|
|
504
|
+
"aria-describedby": B.value,
|
|
505
|
+
"aria-labelledby": y.value,
|
|
690
506
|
"aria-modal": "true",
|
|
691
507
|
role: "dialog",
|
|
692
508
|
tabindex: "-1"
|
|
693
509
|
}, [
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
510
|
+
o.title || o.description || a.$slots.header || a.$slots.description ? (m(), h("header", tt, [
|
|
511
|
+
C("div", null, [
|
|
512
|
+
$(a.$slots, "header", {}, () => [
|
|
513
|
+
o.title ? (m(), h("h2", {
|
|
698
514
|
key: 0,
|
|
699
|
-
id: c(
|
|
515
|
+
id: c(f),
|
|
700
516
|
class: "vf-dialog__title"
|
|
701
|
-
}, R(
|
|
517
|
+
}, R(o.title), 9, ot)) : I("", !0)
|
|
702
518
|
]),
|
|
703
|
-
|
|
704
|
-
|
|
519
|
+
$(a.$slots, "description", {}, () => [
|
|
520
|
+
o.description ? (m(), h("p", {
|
|
705
521
|
key: 0,
|
|
706
|
-
id: c(
|
|
522
|
+
id: c(_),
|
|
707
523
|
class: "vf-dialog__description"
|
|
708
|
-
}, R(
|
|
524
|
+
}, R(o.description), 9, nt)) : I("", !0)
|
|
709
525
|
])
|
|
710
526
|
]),
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
527
|
+
C("div", at, [
|
|
528
|
+
$(a.$slots, "actions", { close: x }),
|
|
529
|
+
e.closable ? (m(), X(Je, {
|
|
714
530
|
key: 0,
|
|
715
|
-
icon: c(
|
|
531
|
+
icon: c(H).xmark,
|
|
716
532
|
"aria-label": "Close dialog",
|
|
717
533
|
size: "sm",
|
|
718
|
-
onClick:
|
|
719
|
-
}, null, 8, ["icon"])) :
|
|
534
|
+
onClick: x
|
|
535
|
+
}, null, 8, ["icon"])) : I("", !0)
|
|
720
536
|
])
|
|
721
|
-
])) :
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
])) :
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
])) :
|
|
728
|
-
], 10,
|
|
729
|
-
])) :
|
|
537
|
+
])) : I("", !0),
|
|
538
|
+
a.$slots.default ? (m(), h("div", st, [
|
|
539
|
+
$(a.$slots, "default", { close: x })
|
|
540
|
+
])) : I("", !0),
|
|
541
|
+
a.$slots.footer ? (m(), h("footer", lt, [
|
|
542
|
+
$(a.$slots, "footer", { close: x })
|
|
543
|
+
])) : I("", !0)
|
|
544
|
+
], 10, et)
|
|
545
|
+
])) : I("", !0)
|
|
730
546
|
]));
|
|
731
547
|
}
|
|
732
|
-
}),
|
|
548
|
+
}), rt = ["aria-orientation", "role"], Lt = /* @__PURE__ */ D({
|
|
733
549
|
inheritAttrs: !1,
|
|
734
550
|
__name: "VfDivider",
|
|
735
551
|
props: {
|
|
736
552
|
orientation: { default: "horizontal" }
|
|
737
553
|
},
|
|
738
|
-
setup(
|
|
739
|
-
const
|
|
740
|
-
return (
|
|
554
|
+
setup(o) {
|
|
555
|
+
const t = o, e = P(), s = r(() => t.orientation === "vertical"), n = r(() => S("vf-divider", `vf-divider--${t.orientation}`));
|
|
556
|
+
return (l, d) => (m(), h("div", F({
|
|
741
557
|
class: n.value,
|
|
742
|
-
"aria-orientation":
|
|
743
|
-
role:
|
|
744
|
-
}, c(
|
|
558
|
+
"aria-orientation": t.orientation,
|
|
559
|
+
role: s.value ? "separator" : void 0
|
|
560
|
+
}, c(e)), null, 16, rt));
|
|
745
561
|
}
|
|
746
|
-
}),
|
|
562
|
+
}), it = { class: "vf-dropdown" }, ut = ["id", "aria-controls", "aria-expanded"], ct = ["id", "aria-labelledby"], Rt = /* @__PURE__ */ D({
|
|
747
563
|
__name: "VfDropdown",
|
|
748
564
|
props: {
|
|
749
565
|
open: { type: Boolean, default: void 0 },
|
|
@@ -752,148 +568,148 @@ const Ze = {
|
|
|
752
568
|
closeOnSelect: { type: Boolean, default: !0 }
|
|
753
569
|
},
|
|
754
570
|
emits: ["update:open", "openChange"],
|
|
755
|
-
setup(
|
|
756
|
-
const
|
|
757
|
-
defaultOpen:
|
|
758
|
-
open:
|
|
571
|
+
setup(o, { emit: t }) {
|
|
572
|
+
const e = o, s = t, n = w(null), l = w(null), d = w(null), f = K({ prefix: "vf-dropdown-menu" }), _ = K({ prefix: "vf-dropdown-trigger" }), b = Z({
|
|
573
|
+
defaultOpen: e.defaultOpen,
|
|
574
|
+
open: r(() => e.open),
|
|
759
575
|
onOpenChange: (i) => {
|
|
760
|
-
|
|
576
|
+
s("update:open", i), s("openChange", i);
|
|
761
577
|
}
|
|
762
|
-
}),
|
|
578
|
+
}), u = b.isOpen, V = r(() => [
|
|
763
579
|
"vf-dropdown__menu",
|
|
764
|
-
|
|
765
|
-
]),
|
|
766
|
-
const i =
|
|
580
|
+
x.value.startsWith("top") && "vf-dropdown__menu--top"
|
|
581
|
+
]), k = r(() => {
|
|
582
|
+
const i = p.value.arrow;
|
|
767
583
|
return {
|
|
768
584
|
x: (i == null ? void 0 : i.x) !== void 0 && (i == null ? void 0 : i.baseX) !== void 0 ? i.x - i.baseX : 0,
|
|
769
585
|
y: (i == null ? void 0 : i.y) !== void 0 && (i == null ? void 0 : i.baseY) !== void 0 ? i.y - i.baseY : 0
|
|
770
586
|
};
|
|
771
|
-
}),
|
|
772
|
-
left: `${
|
|
773
|
-
top: `${
|
|
774
|
-
})),
|
|
587
|
+
}), O = r(() => ({
|
|
588
|
+
left: `${k.value.x}px`,
|
|
589
|
+
top: `${k.value.y}px`
|
|
590
|
+
})), y = r(() => [
|
|
775
591
|
"vf-dropdown__arrow",
|
|
776
|
-
|
|
777
|
-
]),
|
|
778
|
-
() =>
|
|
779
|
-
), { placement:
|
|
780
|
-
enabled:
|
|
781
|
-
placement:
|
|
782
|
-
middleware:
|
|
783
|
-
() => [oe(10), ne({ placements:
|
|
592
|
+
x.value.startsWith("top") ? "vf-dropdown__arrow--top" : "vf-dropdown__arrow--bottom"
|
|
593
|
+
]), B = r(
|
|
594
|
+
() => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
|
|
595
|
+
), { placement: x, middlewareData: p, styles: E } = re(n, l, {
|
|
596
|
+
enabled: u,
|
|
597
|
+
placement: r(() => e.placement),
|
|
598
|
+
middleware: r(
|
|
599
|
+
() => [oe(10), ne({ placements: B.value }), ae(), d.value ? se(d.value) : void 0].filter(
|
|
784
600
|
(i) => i !== void 0
|
|
785
601
|
)
|
|
786
602
|
),
|
|
787
603
|
strategy: "fixed"
|
|
788
604
|
});
|
|
789
|
-
function
|
|
605
|
+
function a() {
|
|
790
606
|
var i;
|
|
791
|
-
return Array.from(((i =
|
|
607
|
+
return Array.from(((i = l.value) == null ? void 0 : i.querySelectorAll('[role="menuitem"]')) ?? []);
|
|
792
608
|
}
|
|
793
|
-
async function
|
|
609
|
+
async function T() {
|
|
794
610
|
var i;
|
|
795
|
-
await
|
|
611
|
+
await G(), (i = a()[0]) == null || i.focus();
|
|
796
612
|
}
|
|
797
|
-
function
|
|
798
|
-
|
|
613
|
+
function g(i = {}) {
|
|
614
|
+
b.open(), i.focusFirstItem && T();
|
|
799
615
|
}
|
|
800
|
-
function
|
|
616
|
+
function L() {
|
|
801
617
|
var i;
|
|
802
|
-
|
|
618
|
+
b.close(), (i = n.value) == null || i.focus();
|
|
803
619
|
}
|
|
804
|
-
function
|
|
805
|
-
if (
|
|
806
|
-
|
|
620
|
+
function q() {
|
|
621
|
+
if (u.value) {
|
|
622
|
+
L();
|
|
807
623
|
return;
|
|
808
624
|
}
|
|
809
|
-
|
|
625
|
+
g();
|
|
810
626
|
}
|
|
811
|
-
function
|
|
812
|
-
(i.key === "ArrowDown" || i.key === "Enter" || i.key === " ") && (i.preventDefault(),
|
|
627
|
+
function v(i) {
|
|
628
|
+
(i.key === "ArrowDown" || i.key === "Enter" || i.key === " ") && (i.preventDefault(), g({ focusFirstItem: !0 }));
|
|
813
629
|
}
|
|
814
|
-
function
|
|
815
|
-
var
|
|
816
|
-
const
|
|
630
|
+
function Y(i) {
|
|
631
|
+
var ue, ce, de, fe;
|
|
632
|
+
const z = a(), ie = z.findIndex((ye) => ye === document.activeElement);
|
|
817
633
|
if (i.key === "ArrowDown") {
|
|
818
|
-
i.preventDefault(), (
|
|
634
|
+
i.preventDefault(), (ue = z[(ie + 1 + z.length) % z.length]) == null || ue.focus();
|
|
819
635
|
return;
|
|
820
636
|
}
|
|
821
637
|
if (i.key === "ArrowUp") {
|
|
822
|
-
i.preventDefault(), (
|
|
638
|
+
i.preventDefault(), (ce = z[(ie - 1 + z.length) % z.length]) == null || ce.focus();
|
|
823
639
|
return;
|
|
824
640
|
}
|
|
825
641
|
if (i.key === "Home") {
|
|
826
|
-
i.preventDefault(), (de =
|
|
642
|
+
i.preventDefault(), (de = z[0]) == null || de.focus();
|
|
827
643
|
return;
|
|
828
644
|
}
|
|
829
|
-
i.key === "End" && (i.preventDefault(), (fe =
|
|
645
|
+
i.key === "End" && (i.preventDefault(), (fe = z[z.length - 1]) == null || fe.focus());
|
|
830
646
|
}
|
|
831
|
-
function
|
|
832
|
-
|
|
647
|
+
function j() {
|
|
648
|
+
e.closeOnSelect && L();
|
|
833
649
|
}
|
|
834
|
-
return
|
|
835
|
-
[n,
|
|
650
|
+
return he(
|
|
651
|
+
[n, l],
|
|
836
652
|
() => {
|
|
837
|
-
|
|
653
|
+
u.value && L();
|
|
838
654
|
},
|
|
839
655
|
{
|
|
840
|
-
enabled:
|
|
656
|
+
enabled: u,
|
|
841
657
|
event: "click"
|
|
842
658
|
}
|
|
843
659
|
), le(
|
|
844
660
|
(i) => {
|
|
845
|
-
|
|
661
|
+
u.value && (i.preventDefault(), L());
|
|
846
662
|
},
|
|
847
663
|
{
|
|
848
|
-
enabled:
|
|
664
|
+
enabled: u
|
|
849
665
|
}
|
|
850
|
-
), (i,
|
|
851
|
-
|
|
852
|
-
id: c(
|
|
666
|
+
), (i, z) => (m(), h("div", it, [
|
|
667
|
+
C("div", {
|
|
668
|
+
id: c(_),
|
|
853
669
|
ref_key: "triggerRef",
|
|
854
670
|
ref: n,
|
|
855
671
|
class: "vf-dropdown__trigger",
|
|
856
|
-
"aria-controls": c(
|
|
857
|
-
"aria-expanded": c(
|
|
672
|
+
"aria-controls": c(f),
|
|
673
|
+
"aria-expanded": c(u),
|
|
858
674
|
"aria-haspopup": "menu",
|
|
859
675
|
tabindex: "0",
|
|
860
|
-
onClick:
|
|
861
|
-
onKeydown:
|
|
676
|
+
onClick: q,
|
|
677
|
+
onKeydown: v
|
|
862
678
|
}, [
|
|
863
|
-
|
|
864
|
-
open: c(
|
|
865
|
-
toggle:
|
|
679
|
+
$(i.$slots, "trigger", {
|
|
680
|
+
open: c(u),
|
|
681
|
+
toggle: q
|
|
866
682
|
})
|
|
867
|
-
], 40,
|
|
868
|
-
(m(),
|
|
869
|
-
c(
|
|
683
|
+
], 40, ut),
|
|
684
|
+
(m(), X(J, { to: "body" }, [
|
|
685
|
+
c(u) ? (m(), h("div", {
|
|
870
686
|
key: 0,
|
|
871
|
-
id: c(
|
|
687
|
+
id: c(f),
|
|
872
688
|
ref_key: "menuRef",
|
|
873
|
-
ref:
|
|
874
|
-
class:
|
|
875
|
-
style:
|
|
876
|
-
"aria-labelledby": c(
|
|
689
|
+
ref: l,
|
|
690
|
+
class: M(V.value),
|
|
691
|
+
style: U(c(E)),
|
|
692
|
+
"aria-labelledby": c(_),
|
|
877
693
|
role: "menu",
|
|
878
|
-
onClick:
|
|
879
|
-
onKeydown:
|
|
694
|
+
onClick: j,
|
|
695
|
+
onKeydown: Y
|
|
880
696
|
}, [
|
|
881
|
-
|
|
697
|
+
C("span", {
|
|
882
698
|
ref_key: "arrowRef",
|
|
883
|
-
ref:
|
|
884
|
-
class:
|
|
885
|
-
style:
|
|
699
|
+
ref: d,
|
|
700
|
+
class: M(y.value),
|
|
701
|
+
style: U(O.value),
|
|
886
702
|
"aria-hidden": "true"
|
|
887
703
|
}, null, 6),
|
|
888
|
-
|
|
889
|
-
close:
|
|
890
|
-
open: c(
|
|
704
|
+
$(i.$slots, "default", {
|
|
705
|
+
close: L,
|
|
706
|
+
open: c(u)
|
|
891
707
|
})
|
|
892
|
-
], 46,
|
|
708
|
+
], 46, ct)) : I("", !0)
|
|
893
709
|
]))
|
|
894
710
|
]));
|
|
895
711
|
}
|
|
896
|
-
}),
|
|
712
|
+
}), dt = ["value", "aria-invalid"], Mt = /* @__PURE__ */ D({
|
|
897
713
|
inheritAttrs: !1,
|
|
898
714
|
__name: "VfInput",
|
|
899
715
|
props: {
|
|
@@ -902,24 +718,24 @@ const Ze = {
|
|
|
902
718
|
invalid: { type: Boolean, default: !1 }
|
|
903
719
|
},
|
|
904
720
|
emits: ["update:modelValue"],
|
|
905
|
-
setup(
|
|
906
|
-
const
|
|
907
|
-
() =>
|
|
721
|
+
setup(o, { emit: t }) {
|
|
722
|
+
const e = o, s = t, n = P(), l = r(
|
|
723
|
+
() => S(
|
|
908
724
|
"vf-input",
|
|
909
|
-
|
|
910
|
-
|
|
725
|
+
e.size !== "md" && `vf-input--${e.size}`,
|
|
726
|
+
e.invalid && "vf-input--invalid"
|
|
911
727
|
)
|
|
912
728
|
);
|
|
913
|
-
function
|
|
914
|
-
|
|
729
|
+
function d(f) {
|
|
730
|
+
s("update:modelValue", f.target.value);
|
|
915
731
|
}
|
|
916
|
-
return (
|
|
917
|
-
class:
|
|
918
|
-
value:
|
|
919
|
-
"aria-invalid":
|
|
920
|
-
}, c(n), { onInput:
|
|
732
|
+
return (f, _) => (m(), h("input", F({
|
|
733
|
+
class: l.value,
|
|
734
|
+
value: e.modelValue,
|
|
735
|
+
"aria-invalid": e.invalid || void 0
|
|
736
|
+
}, c(n), { onInput: d }), null, 16, dt));
|
|
921
737
|
}
|
|
922
|
-
}),
|
|
738
|
+
}), ft = ["href", "target", "rel"], Nt = /* @__PURE__ */ D({
|
|
923
739
|
inheritAttrs: !1,
|
|
924
740
|
__name: "VfLink",
|
|
925
741
|
props: {
|
|
@@ -929,42 +745,42 @@ const Ze = {
|
|
|
929
745
|
underline: { type: Boolean, default: !1 },
|
|
930
746
|
tone: { default: "default" }
|
|
931
747
|
},
|
|
932
|
-
setup(
|
|
933
|
-
const
|
|
934
|
-
() =>
|
|
748
|
+
setup(o) {
|
|
749
|
+
const t = o, e = P(), s = r(() => t.rel ? t.rel : t.target === "_blank" ? "noopener noreferrer" : void 0), n = r(
|
|
750
|
+
() => S(
|
|
935
751
|
"vf-link",
|
|
936
|
-
|
|
937
|
-
|
|
752
|
+
t.underline && "vf-link--underline",
|
|
753
|
+
t.tone === "muted" && "vf-link--muted"
|
|
938
754
|
)
|
|
939
755
|
);
|
|
940
|
-
return (
|
|
756
|
+
return (l, d) => (m(), h("a", F({
|
|
941
757
|
class: n.value,
|
|
942
|
-
href:
|
|
943
|
-
target:
|
|
944
|
-
rel:
|
|
945
|
-
}, c(
|
|
946
|
-
|
|
947
|
-
], 16,
|
|
758
|
+
href: t.href,
|
|
759
|
+
target: t.target,
|
|
760
|
+
rel: s.value
|
|
761
|
+
}, c(e)), [
|
|
762
|
+
$(l.$slots, "default")
|
|
763
|
+
], 16, ft));
|
|
948
764
|
}
|
|
949
|
-
}),
|
|
765
|
+
}), pt = { key: 0 }, vt = { class: "vf-panel__title" }, Wt = /* @__PURE__ */ D({
|
|
950
766
|
inheritAttrs: !1,
|
|
951
767
|
__name: "VfPanel",
|
|
952
768
|
props: {
|
|
953
769
|
title: { default: void 0 },
|
|
954
770
|
subtle: { type: Boolean, default: !1 }
|
|
955
771
|
},
|
|
956
|
-
setup(
|
|
957
|
-
const
|
|
958
|
-
return (n,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
772
|
+
setup(o) {
|
|
773
|
+
const t = o, e = P(), s = r(() => S("vf-panel", t.subtle && "vf-panel--subtle"));
|
|
774
|
+
return (n, l) => (m(), h("section", F({ class: s.value }, c(e)), [
|
|
775
|
+
t.title || n.$slots.header ? (m(), h("header", pt, [
|
|
776
|
+
$(n.$slots, "header", {}, () => [
|
|
777
|
+
C("h3", vt, R(t.title), 1)
|
|
962
778
|
])
|
|
963
|
-
])) :
|
|
964
|
-
|
|
779
|
+
])) : I("", !0),
|
|
780
|
+
$(n.$slots, "default")
|
|
965
781
|
], 16));
|
|
966
782
|
}
|
|
967
|
-
}),
|
|
783
|
+
}), mt = { class: "vf-popover" }, _t = ["id", "aria-controls", "aria-expanded"], ht = ["id", "aria-labelledby"], Ut = /* @__PURE__ */ D({
|
|
968
784
|
__name: "VfPopover",
|
|
969
785
|
props: {
|
|
970
786
|
open: { type: Boolean, default: void 0 },
|
|
@@ -974,147 +790,147 @@ const Ze = {
|
|
|
974
790
|
closeOnEscape: { type: Boolean, default: !0 }
|
|
975
791
|
},
|
|
976
792
|
emits: ["update:open", "openChange"],
|
|
977
|
-
setup(
|
|
978
|
-
const
|
|
979
|
-
defaultOpen:
|
|
980
|
-
open:
|
|
981
|
-
onOpenChange: (
|
|
982
|
-
|
|
793
|
+
setup(o, { emit: t }) {
|
|
794
|
+
const e = o, s = t, n = w(null), l = w(null), d = w(null), f = K({ prefix: "vf-popover-content" }), _ = K({ prefix: "vf-popover-trigger" }), b = Z({
|
|
795
|
+
defaultOpen: e.defaultOpen,
|
|
796
|
+
open: r(() => e.open),
|
|
797
|
+
onOpenChange: (v) => {
|
|
798
|
+
s("update:open", v), s("openChange", v);
|
|
983
799
|
}
|
|
984
|
-
}),
|
|
985
|
-
() =>
|
|
986
|
-
), { placement:
|
|
987
|
-
enabled:
|
|
988
|
-
placement:
|
|
989
|
-
middleware:
|
|
990
|
-
() => [oe(10), ne({ placements:
|
|
991
|
-
(
|
|
800
|
+
}), u = b.isOpen, V = r(
|
|
801
|
+
() => e.placement === "bottom-end" ? ["bottom-end", "top-end"] : ["bottom-start", "top-start"]
|
|
802
|
+
), { placement: k, middlewareData: O, styles: y } = re(n, l, {
|
|
803
|
+
enabled: u,
|
|
804
|
+
placement: r(() => e.placement),
|
|
805
|
+
middleware: r(
|
|
806
|
+
() => [oe(10), ne({ placements: V.value }), ae(), d.value ? se(d.value) : void 0].filter(
|
|
807
|
+
(v) => v !== void 0
|
|
992
808
|
)
|
|
993
809
|
),
|
|
994
810
|
strategy: "fixed"
|
|
995
|
-
}),
|
|
811
|
+
}), B = r(() => [
|
|
996
812
|
"vf-popover__content",
|
|
997
|
-
|
|
998
|
-
]),
|
|
999
|
-
const
|
|
813
|
+
k.value.startsWith("top") && "vf-popover__content--top"
|
|
814
|
+
]), x = r(() => {
|
|
815
|
+
const v = O.value.arrow;
|
|
1000
816
|
return {
|
|
1001
|
-
x: (
|
|
1002
|
-
y: (
|
|
817
|
+
x: (v == null ? void 0 : v.x) !== void 0 && (v == null ? void 0 : v.baseX) !== void 0 ? v.x - v.baseX : 0,
|
|
818
|
+
y: (v == null ? void 0 : v.y) !== void 0 && (v == null ? void 0 : v.baseY) !== void 0 ? v.y - v.baseY : 0
|
|
1003
819
|
};
|
|
1004
|
-
}),
|
|
1005
|
-
left: `${
|
|
1006
|
-
top: `${
|
|
1007
|
-
})),
|
|
820
|
+
}), p = r(() => ({
|
|
821
|
+
left: `${x.value.x}px`,
|
|
822
|
+
top: `${x.value.y}px`
|
|
823
|
+
})), E = r(() => [
|
|
1008
824
|
"vf-popover__arrow",
|
|
1009
|
-
|
|
825
|
+
k.value.startsWith("top") ? "vf-popover__arrow--top" : "vf-popover__arrow--bottom"
|
|
1010
826
|
]);
|
|
1011
|
-
async function
|
|
1012
|
-
var
|
|
1013
|
-
await
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
|
|
827
|
+
async function a() {
|
|
828
|
+
var Y, j;
|
|
829
|
+
await G();
|
|
830
|
+
const v = (Y = l.value) == null ? void 0 : Y.querySelector("[autofocus], [data-autofocus]");
|
|
831
|
+
if (v) {
|
|
832
|
+
v.focus();
|
|
1017
833
|
return;
|
|
1018
834
|
}
|
|
1019
|
-
(
|
|
835
|
+
(j = l.value) == null || j.focus();
|
|
1020
836
|
}
|
|
1021
|
-
function
|
|
1022
|
-
|
|
837
|
+
function T() {
|
|
838
|
+
b.open(), a();
|
|
1023
839
|
}
|
|
1024
|
-
function
|
|
1025
|
-
var
|
|
1026
|
-
|
|
840
|
+
function g() {
|
|
841
|
+
var v;
|
|
842
|
+
b.close(), (v = n.value) == null || v.focus();
|
|
1027
843
|
}
|
|
1028
|
-
function
|
|
1029
|
-
if (
|
|
1030
|
-
|
|
844
|
+
function L() {
|
|
845
|
+
if (u.value) {
|
|
846
|
+
g();
|
|
1031
847
|
return;
|
|
1032
848
|
}
|
|
1033
|
-
|
|
849
|
+
T();
|
|
1034
850
|
}
|
|
1035
|
-
function
|
|
1036
|
-
(
|
|
851
|
+
function q(v) {
|
|
852
|
+
(v.key === "Enter" || v.key === " ") && (v.preventDefault(), L()), v.key === "ArrowDown" && (v.preventDefault(), T());
|
|
1037
853
|
}
|
|
1038
|
-
return
|
|
1039
|
-
[n,
|
|
854
|
+
return he(
|
|
855
|
+
[n, l],
|
|
1040
856
|
() => {
|
|
1041
|
-
|
|
857
|
+
u.value && e.closeOnOutsideClick && g();
|
|
1042
858
|
},
|
|
1043
859
|
{
|
|
1044
|
-
enabled:
|
|
860
|
+
enabled: u,
|
|
1045
861
|
event: "click"
|
|
1046
862
|
}
|
|
1047
863
|
), le(
|
|
1048
|
-
(
|
|
1049
|
-
!
|
|
864
|
+
(v) => {
|
|
865
|
+
!u.value || !e.closeOnEscape || (v.preventDefault(), g());
|
|
1050
866
|
},
|
|
1051
867
|
{
|
|
1052
|
-
enabled:
|
|
868
|
+
enabled: u
|
|
1053
869
|
}
|
|
1054
|
-
), (
|
|
1055
|
-
|
|
1056
|
-
id: c(
|
|
870
|
+
), (v, Y) => (m(), h("div", mt, [
|
|
871
|
+
C("div", {
|
|
872
|
+
id: c(_),
|
|
1057
873
|
ref_key: "triggerRef",
|
|
1058
874
|
ref: n,
|
|
1059
875
|
class: "vf-popover__trigger",
|
|
1060
|
-
"aria-controls": c(
|
|
1061
|
-
"aria-expanded": c(
|
|
876
|
+
"aria-controls": c(f),
|
|
877
|
+
"aria-expanded": c(u),
|
|
1062
878
|
"aria-haspopup": "dialog",
|
|
1063
879
|
tabindex: "0",
|
|
1064
|
-
onClick:
|
|
1065
|
-
onKeydown:
|
|
880
|
+
onClick: L,
|
|
881
|
+
onKeydown: q
|
|
1066
882
|
}, [
|
|
1067
|
-
|
|
1068
|
-
open: c(
|
|
1069
|
-
toggle:
|
|
883
|
+
$(v.$slots, "trigger", {
|
|
884
|
+
open: c(u),
|
|
885
|
+
toggle: L
|
|
1070
886
|
})
|
|
1071
|
-
], 40,
|
|
1072
|
-
(m(),
|
|
1073
|
-
c(
|
|
887
|
+
], 40, _t),
|
|
888
|
+
(m(), X(J, { to: "body" }, [
|
|
889
|
+
c(u) ? (m(), h("section", {
|
|
1074
890
|
key: 0,
|
|
1075
|
-
id: c(
|
|
891
|
+
id: c(f),
|
|
1076
892
|
ref_key: "contentRef",
|
|
1077
|
-
ref:
|
|
1078
|
-
class:
|
|
1079
|
-
style:
|
|
1080
|
-
"aria-labelledby": c(
|
|
893
|
+
ref: l,
|
|
894
|
+
class: M(B.value),
|
|
895
|
+
style: U(c(y)),
|
|
896
|
+
"aria-labelledby": c(_),
|
|
1081
897
|
role: "dialog",
|
|
1082
898
|
tabindex: "-1"
|
|
1083
899
|
}, [
|
|
1084
|
-
|
|
900
|
+
C("span", {
|
|
1085
901
|
ref_key: "arrowRef",
|
|
1086
|
-
ref:
|
|
1087
|
-
class:
|
|
1088
|
-
style:
|
|
902
|
+
ref: d,
|
|
903
|
+
class: M(E.value),
|
|
904
|
+
style: U(p.value),
|
|
1089
905
|
"aria-hidden": "true"
|
|
1090
906
|
}, null, 6),
|
|
1091
|
-
|
|
1092
|
-
open: c(
|
|
1093
|
-
close:
|
|
907
|
+
$(v.$slots, "default", {
|
|
908
|
+
open: c(u),
|
|
909
|
+
close: g
|
|
1094
910
|
})
|
|
1095
|
-
], 14,
|
|
911
|
+
], 14, ht)) : I("", !0)
|
|
1096
912
|
]))
|
|
1097
913
|
]));
|
|
1098
914
|
}
|
|
1099
|
-
}),
|
|
915
|
+
}), Yt = /* @__PURE__ */ D({
|
|
1100
916
|
inheritAttrs: !1,
|
|
1101
917
|
__name: "VfTag",
|
|
1102
918
|
props: {
|
|
1103
919
|
tone: { default: "neutral" }
|
|
1104
920
|
},
|
|
1105
|
-
setup(
|
|
1106
|
-
const
|
|
1107
|
-
() =>
|
|
921
|
+
setup(o) {
|
|
922
|
+
const t = o, e = P(), s = r(
|
|
923
|
+
() => S("vf-tag", t.tone !== "neutral" && `vf-tag--${t.tone}`)
|
|
1108
924
|
);
|
|
1109
|
-
return (n,
|
|
1110
|
-
|
|
925
|
+
return (n, l) => (m(), h("span", F({ class: s.value }, c(e)), [
|
|
926
|
+
$(n.$slots, "default")
|
|
1111
927
|
], 16));
|
|
1112
928
|
}
|
|
1113
|
-
}),
|
|
929
|
+
}), yt = { class: "vf-tabs" }, bt = {
|
|
1114
930
|
class: "vf-tabs__list",
|
|
1115
931
|
role: "tablist",
|
|
1116
932
|
"aria-orientation": "horizontal"
|
|
1117
|
-
},
|
|
933
|
+
}, gt = ["id", "aria-controls", "aria-selected", "disabled", "tabindex", "onClick", "onKeydown"], $t = ["id", "aria-labelledby"], Ht = /* @__PURE__ */ D({
|
|
1118
934
|
__name: "VfTabs",
|
|
1119
935
|
props: {
|
|
1120
936
|
items: {},
|
|
@@ -1122,99 +938,99 @@ const Ze = {
|
|
|
1122
938
|
defaultValue: { default: void 0 }
|
|
1123
939
|
},
|
|
1124
940
|
emits: ["update:modelValue", "change"],
|
|
1125
|
-
setup(
|
|
1126
|
-
const
|
|
1127
|
-
var
|
|
1128
|
-
return (
|
|
1129
|
-
}),
|
|
941
|
+
setup(o, { emit: t }) {
|
|
942
|
+
const e = o, s = t, n = K({ prefix: "vf-tabs" }), l = w([]), d = r(() => {
|
|
943
|
+
var p;
|
|
944
|
+
return (p = e.items.find((E) => !E.disabled)) == null ? void 0 : p.value;
|
|
945
|
+
}), f = w(e.defaultValue ?? d.value), _ = r(() => e.modelValue !== void 0), b = r(() => e.modelValue ?? f.value ?? d.value);
|
|
1130
946
|
W(
|
|
1131
|
-
() =>
|
|
1132
|
-
(
|
|
1133
|
-
!
|
|
947
|
+
() => e.items,
|
|
948
|
+
(p) => {
|
|
949
|
+
!p.some((a) => a.value === b.value && !a.disabled) && d.value && u(d.value);
|
|
1134
950
|
},
|
|
1135
951
|
{ deep: !0 }
|
|
1136
952
|
);
|
|
1137
|
-
function
|
|
1138
|
-
|
|
953
|
+
function u(p) {
|
|
954
|
+
_.value || (f.value = p), s("update:modelValue", p), s("change", p);
|
|
1139
955
|
}
|
|
1140
|
-
function
|
|
1141
|
-
|
|
956
|
+
function V(p) {
|
|
957
|
+
p.disabled || u(p.value);
|
|
1142
958
|
}
|
|
1143
|
-
function
|
|
1144
|
-
return
|
|
959
|
+
function k() {
|
|
960
|
+
return e.items.filter((p) => !p.disabled);
|
|
1145
961
|
}
|
|
1146
|
-
function
|
|
1147
|
-
var
|
|
1148
|
-
const
|
|
1149
|
-
(
|
|
962
|
+
function O(p) {
|
|
963
|
+
var a;
|
|
964
|
+
const E = e.items.findIndex((T) => T.value === p);
|
|
965
|
+
(a = l.value[E]) == null || a.focus();
|
|
1150
966
|
}
|
|
1151
|
-
function
|
|
1152
|
-
const
|
|
1153
|
-
if (
|
|
1154
|
-
if (
|
|
1155
|
-
|
|
1156
|
-
const
|
|
1157
|
-
|
|
967
|
+
function y(p, E) {
|
|
968
|
+
const a = k(), T = a.findIndex((g) => g.value === E.value);
|
|
969
|
+
if (T !== -1) {
|
|
970
|
+
if (p.key === "ArrowRight" || p.key === "ArrowDown") {
|
|
971
|
+
p.preventDefault();
|
|
972
|
+
const g = a[(T + 1) % a.length];
|
|
973
|
+
V(g), O(g.value);
|
|
1158
974
|
return;
|
|
1159
975
|
}
|
|
1160
|
-
if (
|
|
1161
|
-
|
|
1162
|
-
const
|
|
1163
|
-
|
|
976
|
+
if (p.key === "ArrowLeft" || p.key === "ArrowUp") {
|
|
977
|
+
p.preventDefault();
|
|
978
|
+
const g = a[(T - 1 + a.length) % a.length];
|
|
979
|
+
V(g), O(g.value);
|
|
1164
980
|
return;
|
|
1165
981
|
}
|
|
1166
|
-
if (
|
|
1167
|
-
|
|
1168
|
-
const
|
|
1169
|
-
|
|
982
|
+
if (p.key === "Home") {
|
|
983
|
+
p.preventDefault();
|
|
984
|
+
const g = a[0];
|
|
985
|
+
V(g), O(g.value);
|
|
1170
986
|
return;
|
|
1171
987
|
}
|
|
1172
|
-
if (
|
|
1173
|
-
|
|
1174
|
-
const
|
|
1175
|
-
|
|
988
|
+
if (p.key === "End") {
|
|
989
|
+
p.preventDefault();
|
|
990
|
+
const g = a[a.length - 1];
|
|
991
|
+
V(g), O(g.value);
|
|
1176
992
|
}
|
|
1177
993
|
}
|
|
1178
994
|
}
|
|
1179
|
-
function
|
|
1180
|
-
return `${n.value}-tab-${
|
|
995
|
+
function B(p) {
|
|
996
|
+
return `${n.value}-tab-${p}`;
|
|
1181
997
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return `${n.value}-panel-${
|
|
998
|
+
function x(p) {
|
|
999
|
+
return `${n.value}-panel-${p}`;
|
|
1184
1000
|
}
|
|
1185
|
-
return (
|
|
1186
|
-
|
|
1187
|
-
(m(!0), h(
|
|
1188
|
-
id:
|
|
1189
|
-
key:
|
|
1001
|
+
return (p, E) => (m(), h("div", yt, [
|
|
1002
|
+
C("div", bt, [
|
|
1003
|
+
(m(!0), h(Ce, null, Oe(o.items, (a, T) => (m(), h("button", {
|
|
1004
|
+
id: B(a.value),
|
|
1005
|
+
key: a.value,
|
|
1190
1006
|
ref_for: !0,
|
|
1191
|
-
ref: (
|
|
1192
|
-
|
|
1007
|
+
ref: (g) => {
|
|
1008
|
+
l.value[T] = g;
|
|
1193
1009
|
},
|
|
1194
|
-
"aria-controls":
|
|
1195
|
-
"aria-selected":
|
|
1196
|
-
disabled:
|
|
1197
|
-
tabindex:
|
|
1010
|
+
"aria-controls": x(a.value),
|
|
1011
|
+
"aria-selected": b.value === a.value,
|
|
1012
|
+
disabled: a.disabled,
|
|
1013
|
+
tabindex: b.value === a.value ? 0 : -1,
|
|
1198
1014
|
class: "vf-tabs__tab",
|
|
1199
1015
|
role: "tab",
|
|
1200
1016
|
type: "button",
|
|
1201
|
-
onClick: (
|
|
1202
|
-
onKeydown: (
|
|
1203
|
-
}, R(
|
|
1017
|
+
onClick: (g) => V(a),
|
|
1018
|
+
onKeydown: (g) => y(g, a)
|
|
1019
|
+
}, R(a.label), 41, gt))), 128))
|
|
1204
1020
|
]),
|
|
1205
|
-
|
|
1021
|
+
b.value ? (m(), h("div", {
|
|
1206
1022
|
key: 0,
|
|
1207
|
-
id:
|
|
1208
|
-
"aria-labelledby":
|
|
1023
|
+
id: x(b.value),
|
|
1024
|
+
"aria-labelledby": B(b.value),
|
|
1209
1025
|
class: "vf-tabs__panel",
|
|
1210
1026
|
role: "tabpanel",
|
|
1211
1027
|
tabindex: "0"
|
|
1212
1028
|
}, [
|
|
1213
|
-
|
|
1214
|
-
], 8,
|
|
1029
|
+
$(p.$slots, "panel", De(Ie({ activeValue: b.value })))
|
|
1030
|
+
], 8, $t)) : I("", !0)
|
|
1215
1031
|
]));
|
|
1216
1032
|
}
|
|
1217
|
-
}),
|
|
1033
|
+
}), wt = ["value", "aria-invalid"], Xt = /* @__PURE__ */ D({
|
|
1218
1034
|
inheritAttrs: !1,
|
|
1219
1035
|
__name: "VfTextarea",
|
|
1220
1036
|
props: {
|
|
@@ -1223,142 +1039,149 @@ const Ze = {
|
|
|
1223
1039
|
invalid: { type: Boolean, default: !1 }
|
|
1224
1040
|
},
|
|
1225
1041
|
emits: ["update:modelValue"],
|
|
1226
|
-
setup(
|
|
1227
|
-
const
|
|
1228
|
-
() =>
|
|
1042
|
+
setup(o, { emit: t }) {
|
|
1043
|
+
const e = o, s = t, n = P(), l = r(
|
|
1044
|
+
() => S(
|
|
1229
1045
|
"vf-textarea",
|
|
1230
|
-
|
|
1231
|
-
|
|
1046
|
+
e.size !== "md" && `vf-textarea--${e.size}`,
|
|
1047
|
+
e.invalid && "vf-textarea--invalid"
|
|
1232
1048
|
)
|
|
1233
1049
|
);
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1050
|
+
function d(f) {
|
|
1051
|
+
s("update:modelValue", f.target.value);
|
|
1236
1052
|
}
|
|
1237
|
-
return (
|
|
1238
|
-
class:
|
|
1239
|
-
value:
|
|
1240
|
-
"aria-invalid":
|
|
1241
|
-
}, c(n), { onInput:
|
|
1053
|
+
return (f, _) => (m(), h("textarea", F({
|
|
1054
|
+
class: l.value,
|
|
1055
|
+
value: e.modelValue,
|
|
1056
|
+
"aria-invalid": e.invalid || void 0
|
|
1057
|
+
}, c(n), { onInput: d }), null, 16, wt));
|
|
1242
1058
|
}
|
|
1243
|
-
}),
|
|
1059
|
+
}), kt = ["aria-describedby"], Vt = ["id"], qt = /* @__PURE__ */ D({
|
|
1244
1060
|
__name: "VfTooltip",
|
|
1245
1061
|
props: {
|
|
1246
1062
|
text: { default: void 0 },
|
|
1247
1063
|
placement: { default: "top" },
|
|
1248
1064
|
openDelay: { default: 80 }
|
|
1249
1065
|
},
|
|
1250
|
-
setup(
|
|
1251
|
-
const
|
|
1252
|
-
|
|
1253
|
-
|
|
1066
|
+
setup(o) {
|
|
1067
|
+
const t = o, e = w(!1), s = K({ prefix: "vf-tooltip" }), n = w(null), l = w(null), d = w(null), f = w(null), { placement: _, middlewareData: b, styles: u, cleanup: V } = re(
|
|
1068
|
+
l,
|
|
1069
|
+
d,
|
|
1254
1070
|
{
|
|
1255
|
-
enabled:
|
|
1256
|
-
placement:
|
|
1257
|
-
middleware:
|
|
1258
|
-
() => [oe(10), ne({ placements: ["top", "bottom"] }), ae(),
|
|
1259
|
-
(
|
|
1071
|
+
enabled: e,
|
|
1072
|
+
placement: r(() => t.placement),
|
|
1073
|
+
middleware: r(
|
|
1074
|
+
() => [oe(10), ne({ placements: ["top", "bottom"] }), ae(), f.value ? se(f.value) : void 0].filter(
|
|
1075
|
+
(a) => a !== void 0
|
|
1260
1076
|
)
|
|
1261
1077
|
),
|
|
1262
1078
|
strategy: "fixed"
|
|
1263
1079
|
}
|
|
1264
|
-
),
|
|
1080
|
+
), k = r(
|
|
1265
1081
|
() => [
|
|
1266
1082
|
"vf-tooltip__content",
|
|
1267
|
-
|
|
1268
|
-
|
|
1083
|
+
_.value.startsWith("bottom") && "vf-tooltip__content--bottom",
|
|
1084
|
+
_.value.startsWith("top") && "vf-tooltip__content--top"
|
|
1269
1085
|
]
|
|
1270
|
-
),
|
|
1271
|
-
const
|
|
1086
|
+
), O = r(() => {
|
|
1087
|
+
const a = b.value.arrow;
|
|
1272
1088
|
return {
|
|
1273
|
-
x: (
|
|
1274
|
-
y: (
|
|
1089
|
+
x: (a == null ? void 0 : a.x) !== void 0 && (a == null ? void 0 : a.baseX) !== void 0 ? a.x - a.baseX : 0,
|
|
1090
|
+
y: (a == null ? void 0 : a.y) !== void 0 && (a == null ? void 0 : a.baseY) !== void 0 ? a.y - a.baseY : 0
|
|
1275
1091
|
};
|
|
1276
|
-
}),
|
|
1277
|
-
left: `${
|
|
1278
|
-
top: `${
|
|
1092
|
+
}), y = r(() => ["vf-tooltip__arrow"]), B = r(() => ({
|
|
1093
|
+
left: `${O.value.x}px`,
|
|
1094
|
+
top: `${O.value.y}px`
|
|
1279
1095
|
}));
|
|
1280
|
-
function
|
|
1096
|
+
function x() {
|
|
1281
1097
|
n.value !== null && (window.clearTimeout(n.value), n.value = null);
|
|
1282
1098
|
}
|
|
1283
|
-
function
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
},
|
|
1099
|
+
function p() {
|
|
1100
|
+
x(), n.value = window.setTimeout(() => {
|
|
1101
|
+
e.value = !0;
|
|
1102
|
+
}, t.openDelay);
|
|
1287
1103
|
}
|
|
1288
|
-
function
|
|
1289
|
-
|
|
1104
|
+
function E() {
|
|
1105
|
+
x(), e.value = !1;
|
|
1290
1106
|
}
|
|
1291
|
-
return
|
|
1292
|
-
|
|
1293
|
-
}), (
|
|
1107
|
+
return N(() => {
|
|
1108
|
+
x(), V();
|
|
1109
|
+
}), (a, T) => (m(), h("span", {
|
|
1294
1110
|
class: "vf-tooltip",
|
|
1295
|
-
onMouseenter:
|
|
1296
|
-
onMouseleave:
|
|
1297
|
-
onFocusin:
|
|
1298
|
-
onFocusout:
|
|
1111
|
+
onMouseenter: p,
|
|
1112
|
+
onMouseleave: E,
|
|
1113
|
+
onFocusin: p,
|
|
1114
|
+
onFocusout: E
|
|
1299
1115
|
}, [
|
|
1300
|
-
|
|
1116
|
+
C("span", {
|
|
1301
1117
|
ref_key: "triggerRef",
|
|
1302
|
-
ref:
|
|
1118
|
+
ref: l,
|
|
1303
1119
|
class: "vf-tooltip__trigger",
|
|
1304
|
-
"aria-describedby":
|
|
1120
|
+
"aria-describedby": e.value ? c(s) : void 0
|
|
1305
1121
|
}, [
|
|
1306
|
-
|
|
1307
|
-
], 8,
|
|
1308
|
-
(m(),
|
|
1309
|
-
|
|
1122
|
+
$(a.$slots, "default")
|
|
1123
|
+
], 8, kt),
|
|
1124
|
+
(m(), X(J, { to: "body" }, [
|
|
1125
|
+
e.value && (o.text || a.$slots.content) ? (m(), h("span", {
|
|
1310
1126
|
key: 0,
|
|
1311
|
-
id: c(
|
|
1127
|
+
id: c(s),
|
|
1312
1128
|
ref_key: "contentRef",
|
|
1313
|
-
ref:
|
|
1314
|
-
class:
|
|
1315
|
-
style:
|
|
1129
|
+
ref: d,
|
|
1130
|
+
class: M(k.value),
|
|
1131
|
+
style: U(c(u)),
|
|
1316
1132
|
role: "tooltip"
|
|
1317
1133
|
}, [
|
|
1318
|
-
|
|
1319
|
-
|
|
1134
|
+
$(a.$slots, "content", {}, () => [
|
|
1135
|
+
ve(R(o.text), 1)
|
|
1320
1136
|
]),
|
|
1321
|
-
|
|
1137
|
+
C("span", {
|
|
1322
1138
|
ref_key: "arrowRef",
|
|
1323
|
-
ref:
|
|
1324
|
-
class:
|
|
1325
|
-
style:
|
|
1139
|
+
ref: f,
|
|
1140
|
+
class: M(y.value),
|
|
1141
|
+
style: U(B.value),
|
|
1326
1142
|
"aria-hidden": "true"
|
|
1327
1143
|
}, null, 6)
|
|
1328
|
-
], 14,
|
|
1144
|
+
], 14, Vt)) : I("", !0)
|
|
1329
1145
|
]))
|
|
1330
1146
|
], 32));
|
|
1331
1147
|
}
|
|
1332
1148
|
});
|
|
1333
1149
|
export {
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1150
|
+
At as VfAccordion,
|
|
1151
|
+
St as VfAlert,
|
|
1152
|
+
zt as VfBadge,
|
|
1153
|
+
Pt as VfButton,
|
|
1154
|
+
Ft as VfCard,
|
|
1155
|
+
Kt as VfDialog,
|
|
1156
|
+
Lt as VfDivider,
|
|
1157
|
+
Rt as VfDropdown,
|
|
1158
|
+
Je as VfIconButton,
|
|
1159
|
+
Mt as VfInput,
|
|
1160
|
+
Nt as VfLink,
|
|
1161
|
+
Wt as VfPanel,
|
|
1162
|
+
Ut as VfPopover,
|
|
1163
|
+
Ht as VfTabs,
|
|
1164
|
+
Yt as VfTag,
|
|
1165
|
+
Xt as VfTextarea,
|
|
1166
|
+
Et as VfThemeProvider,
|
|
1167
|
+
qt as VfTooltip,
|
|
1168
|
+
It as VueForge,
|
|
1169
|
+
Gt as createThemePreset,
|
|
1170
|
+
Se as createVueForge,
|
|
1171
|
+
It as default,
|
|
1172
|
+
Jt as defaultThemePreset,
|
|
1173
|
+
eo as toMaxWidthQuery,
|
|
1174
|
+
to as toMinWidthQuery,
|
|
1175
|
+
oo as useBreakpoint,
|
|
1176
|
+
no as useBreakpointValue,
|
|
1177
|
+
ao as useBreakpoints,
|
|
1178
|
+
he as useClickOutside,
|
|
1179
|
+
Z as useDisclosure,
|
|
1359
1180
|
le as useEscapeKey,
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1181
|
+
re as useFloating,
|
|
1182
|
+
Fe as useFocusTrap,
|
|
1183
|
+
K as useId,
|
|
1184
|
+
Ee as useScrollLock,
|
|
1185
|
+
Bt as useTheme,
|
|
1186
|
+
so as vfBreakpoints
|
|
1364
1187
|
};
|