@codemonster-ru/vueforge-core 1.8.0 → 1.9.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/dropdown/VfDropdown.vue.d.ts +2 -0
- package/dist/components/dropdown/VfDropdown.vue.d.ts.map +1 -1
- package/dist/components/menu-bar/VfMenuBar.vue.d.ts +2 -0
- package/dist/components/menu-bar/VfMenuBar.vue.d.ts.map +1 -1
- package/dist/components/nav-menu/VfNavMenu.vue.d.ts +2 -0
- package/dist/components/nav-menu/VfNavMenu.vue.d.ts.map +1 -1
- package/dist/components/table-of-contents/VfTableOfContents.vue.d.ts +2 -0
- package/dist/components/table-of-contents/VfTableOfContents.vue.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme/default-preset-source.d.ts +31 -0
- package/dist/theme/default-preset-source.d.ts.map +1 -1
- package/dist/theme-api.js +1 -1
- package/dist/tokens.css +34 -3
- package/dist/types/theme.d.ts +31 -0
- package/dist/types/theme.d.ts.map +1 -1
- package/dist/{utils-BJVEoCfQ.js → utils-CsZ7hQHm.js} +41 -10
- package/dist/vueforge-core.js +220 -210
- package/package.json +1 -1
package/dist/vueforge-core.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ze, a as Pe } from "./utils-
|
|
2
|
-
import { c as za, d as Pa } from "./utils-
|
|
3
|
-
import { defineComponent as M, inject as xe, computed as a, ref as A, watch as ne, onMounted as me, onBeforeUnmount as se, provide as Re, renderSlot as O, toValue as X, nextTick as le, onUnmounted as Fe, openBlock as
|
|
1
|
+
import { r as ze, a as Pe } from "./utils-CsZ7hQHm.js";
|
|
2
|
+
import { c as za, d as Pa } from "./utils-CsZ7hQHm.js";
|
|
3
|
+
import { defineComponent as M, inject as xe, computed as a, ref as A, watch as ne, onMounted as me, onBeforeUnmount as se, provide as Re, renderSlot as O, toValue as X, nextTick as le, onUnmounted as Fe, openBlock as d, createElementBlock as _, createElementVNode as V, unref as y, toDisplayString as F, normalizeClass as P, createVNode as H, Transition as de, withCtx as G, createCommentVNode as E, useAttrs as j, mergeProps as N, createTextVNode as ve, Fragment as re, renderList as ue, createBlock as q, resolveDynamicComponent as fe, normalizeStyle as U, useSlots as ye, Teleport as he, normalizeProps as Be, guardReactiveProps as Ie, resolveComponent as Ee, Comment as He, Text as Ne } from "vue";
|
|
4
4
|
import { DEFAULT_STORAGE_KEY as Ke, DEFAULT_ATTRIBUTE as je, resolveTheme as qe, isThemeMode as We, vfMotionDurationsMs as Z } from "@codemonster-ru/vueforge-theme";
|
|
5
5
|
import { d as Ae } from "./useScrollLock-FYdn9vRp.js";
|
|
6
6
|
import { t as Fa, a as Ha, u as Na, b as Ka, c as ja, v as qa } from "./useScrollLock-FYdn9vRp.js";
|
|
@@ -46,7 +46,7 @@ const sa = Ye(), Le = Symbol("VfThemeContext"), ia = /* @__PURE__ */ M({
|
|
|
46
46
|
function g() {
|
|
47
47
|
return typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
48
48
|
}
|
|
49
|
-
const v = A(r()), T = A(g()), p = A(null),
|
|
49
|
+
const v = A(r()), T = A(g()), p = A(null), c = a(
|
|
50
50
|
() => qe(v.value, T.value)
|
|
51
51
|
), m = A(!1);
|
|
52
52
|
let h = null;
|
|
@@ -73,13 +73,13 @@ const sa = Ye(), Le = Symbol("VfThemeContext"), ia = /* @__PURE__ */ M({
|
|
|
73
73
|
v.value = u;
|
|
74
74
|
}
|
|
75
75
|
function I() {
|
|
76
|
-
const u =
|
|
76
|
+
const u = c.value === "dark" ? "light" : "dark";
|
|
77
77
|
v.value = u;
|
|
78
78
|
}
|
|
79
79
|
return ne(v, (u) => {
|
|
80
80
|
typeof window > "u" || window.localStorage.setItem(o.value, u);
|
|
81
81
|
}), ne(
|
|
82
|
-
|
|
82
|
+
c,
|
|
83
83
|
(u) => {
|
|
84
84
|
L(u, { animate: m.value });
|
|
85
85
|
},
|
|
@@ -91,7 +91,7 @@ const sa = Ye(), Le = Symbol("VfThemeContext"), ia = /* @__PURE__ */ M({
|
|
|
91
91
|
(u = p.value) == null || u.removeEventListener("change", D), x();
|
|
92
92
|
}), Re(Le, {
|
|
93
93
|
mode: v,
|
|
94
|
-
resolvedTheme:
|
|
94
|
+
resolvedTheme: c,
|
|
95
95
|
setTheme: R,
|
|
96
96
|
toggleTheme: I
|
|
97
97
|
}), (u, w) => O(u.$slots, "default");
|
|
@@ -168,7 +168,7 @@ function Te(t, n, e = {}) {
|
|
|
168
168
|
);
|
|
169
169
|
l.value = m.x, o.value = m.y, i.value = m.placement, r.value = m.middlewareData ?? {};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function c() {
|
|
172
172
|
var m;
|
|
173
173
|
(m = g.value) == null || m.call(g), g.value = null;
|
|
174
174
|
}
|
|
@@ -177,13 +177,13 @@ function Te(t, n, e = {}) {
|
|
|
177
177
|
async ([m]) => {
|
|
178
178
|
v += 1;
|
|
179
179
|
const h = v;
|
|
180
|
-
|
|
180
|
+
c(), !(!m || !t.value || !n.value) && (await le(), !(h !== v || X(e.enabled) === !1 || !t.value || !n.value) && (await p(), !(h !== v || X(e.enabled) === !1 || !t.value || !n.value) && (g.value = Ue(t.value, () => {
|
|
181
181
|
p();
|
|
182
182
|
}))));
|
|
183
183
|
},
|
|
184
184
|
{ immediate: !0 }
|
|
185
185
|
), se(() => {
|
|
186
|
-
|
|
186
|
+
c();
|
|
187
187
|
}), {
|
|
188
188
|
x: l,
|
|
189
189
|
y: o,
|
|
@@ -191,7 +191,7 @@ function Te(t, n, e = {}) {
|
|
|
191
191
|
middlewareData: r,
|
|
192
192
|
styles: T,
|
|
193
193
|
update: p,
|
|
194
|
-
cleanup:
|
|
194
|
+
cleanup: c
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
197
|
const Ge = [
|
|
@@ -251,7 +251,7 @@ function ra(t) {
|
|
|
251
251
|
return !!X(t.disabled);
|
|
252
252
|
}
|
|
253
253
|
function i() {
|
|
254
|
-
var
|
|
254
|
+
var c;
|
|
255
255
|
if (typeof window > "u" || typeof document > "u")
|
|
256
256
|
return;
|
|
257
257
|
if (o()) {
|
|
@@ -268,7 +268,7 @@ function ra(t) {
|
|
|
268
268
|
n.value = void 0;
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
let p = (
|
|
271
|
+
let p = (c = T[0]) == null ? void 0 : c.id;
|
|
272
272
|
for (const m of T) {
|
|
273
273
|
if (m.element.getBoundingClientRect().top - v <= 0) {
|
|
274
274
|
p = m.id;
|
|
@@ -339,7 +339,7 @@ const et = { class: "vf-accordion" }, tt = ["id", "aria-controls", "aria-expande
|
|
|
339
339
|
function p() {
|
|
340
340
|
e.disabled || r.toggle();
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function c(I) {
|
|
343
343
|
(I.key === "Enter" || I.key === " ") && (I.preventDefault(), p());
|
|
344
344
|
}
|
|
345
345
|
function m(I) {
|
|
@@ -368,7 +368,7 @@ const et = { class: "vf-accordion" }, tt = ["id", "aria-controls", "aria-expande
|
|
|
368
368
|
const u = I;
|
|
369
369
|
u.style.height = "", u.style.opacity = "", u.style.overflow = "", u.style.transition = "";
|
|
370
370
|
}
|
|
371
|
-
return (I, u) => (
|
|
371
|
+
return (I, u) => (d(), _("section", et, [
|
|
372
372
|
V("button", {
|
|
373
373
|
id: y(o),
|
|
374
374
|
"aria-controls": y(i),
|
|
@@ -377,7 +377,7 @@ const et = { class: "vf-accordion" }, tt = ["id", "aria-controls", "aria-expande
|
|
|
377
377
|
class: "vf-accordion__trigger",
|
|
378
378
|
type: "button",
|
|
379
379
|
onClick: p,
|
|
380
|
-
onKeydown:
|
|
380
|
+
onKeydown: c
|
|
381
381
|
}, [
|
|
382
382
|
O(I.$slots, "trigger", { open: y(g) }, () => [
|
|
383
383
|
V("span", null, F(t.title), 1)
|
|
@@ -392,7 +392,7 @@ const et = { class: "vf-accordion" }, tt = ["id", "aria-controls", "aria-expande
|
|
|
392
392
|
}, null, 8, ["icon"])
|
|
393
393
|
], 2)
|
|
394
394
|
], 40, tt),
|
|
395
|
-
H(
|
|
395
|
+
H(de, {
|
|
396
396
|
css: !1,
|
|
397
397
|
onBeforeEnter: m,
|
|
398
398
|
onEnter: h,
|
|
@@ -402,7 +402,7 @@ const et = { class: "vf-accordion" }, tt = ["id", "aria-controls", "aria-expande
|
|
|
402
402
|
onAfterLeave: R
|
|
403
403
|
}, {
|
|
404
404
|
default: G(() => [
|
|
405
|
-
y(g) ? (
|
|
405
|
+
y(g) ? (d(), _("div", {
|
|
406
406
|
key: 0,
|
|
407
407
|
id: y(i),
|
|
408
408
|
"aria-labelledby": y(o),
|
|
@@ -428,7 +428,7 @@ const ot = {
|
|
|
428
428
|
}, lt = { class: "vf-alert__content" }, st = {
|
|
429
429
|
key: 0,
|
|
430
430
|
class: "vf-alert__title"
|
|
431
|
-
}, it = { class: "vf-alert__body" },
|
|
431
|
+
}, it = { class: "vf-alert__body" }, da = /* @__PURE__ */ M({
|
|
432
432
|
inheritAttrs: !1,
|
|
433
433
|
__name: "VfAlert",
|
|
434
434
|
props: {
|
|
@@ -439,7 +439,7 @@ const ot = {
|
|
|
439
439
|
const n = t, e = j(), l = a(
|
|
440
440
|
() => K("vf-alert", n.tone !== "primary" && `vf-alert--${n.tone}`)
|
|
441
441
|
), o = a(() => n.tone === "success" ? W.checkCircle : n.tone === "info" ? W.info : n.tone === "warn" ? W.warning : n.tone === "help" ? W.questionCircle : n.tone === "danger" ? W.warning : n.tone === "contrast" ? W.info : W.info);
|
|
442
|
-
return (i, r) => (
|
|
442
|
+
return (i, r) => (d(), _("section", N({
|
|
443
443
|
class: l.value,
|
|
444
444
|
role: "alert"
|
|
445
445
|
}, y(e)), [
|
|
@@ -450,7 +450,7 @@ const ot = {
|
|
|
450
450
|
}, null, 8, ["icon"])
|
|
451
451
|
]),
|
|
452
452
|
V("div", lt, [
|
|
453
|
-
n.title || i.$slots.title ? (
|
|
453
|
+
n.title || i.$slots.title ? (d(), _("p", st, [
|
|
454
454
|
O(i.$slots, "title", {}, () => [
|
|
455
455
|
ve(F(n.title), 1)
|
|
456
456
|
])
|
|
@@ -461,7 +461,7 @@ const ot = {
|
|
|
461
461
|
])
|
|
462
462
|
], 16));
|
|
463
463
|
}
|
|
464
|
-
}),
|
|
464
|
+
}), ca = /* @__PURE__ */ M({
|
|
465
465
|
inheritAttrs: !1,
|
|
466
466
|
__name: "VfBadge",
|
|
467
467
|
props: {
|
|
@@ -471,11 +471,11 @@ const ot = {
|
|
|
471
471
|
const n = t, e = j(), l = a(
|
|
472
472
|
() => K("vf-badge", n.tone !== "neutral" && `vf-badge--${n.tone}`)
|
|
473
473
|
);
|
|
474
|
-
return (o, i) => (
|
|
474
|
+
return (o, i) => (d(), _("span", N({ class: l.value }, y(e)), [
|
|
475
475
|
O(o.$slots, "default")
|
|
476
476
|
], 16));
|
|
477
477
|
}
|
|
478
|
-
}), rt = ["aria-label"], ut = { class: "vf-breadcrumbs__list" },
|
|
478
|
+
}), rt = ["aria-label"], ut = { class: "vf-breadcrumbs__list" }, dt = ["aria-current"], ct = {
|
|
479
479
|
key: 2,
|
|
480
480
|
class: "vf-breadcrumbs__separator",
|
|
481
481
|
"aria-hidden": "true"
|
|
@@ -491,43 +491,43 @@ const ot = {
|
|
|
491
491
|
const n = t, e = j(), l = a(
|
|
492
492
|
() => K("vf-breadcrumbs", e.class)
|
|
493
493
|
), o = a(
|
|
494
|
-
() => Object.fromEntries(Object.entries(e).filter(([
|
|
494
|
+
() => Object.fromEntries(Object.entries(e).filter(([c]) => c !== "class"))
|
|
495
495
|
), i = a(
|
|
496
|
-
() => n.items.some((
|
|
496
|
+
() => n.items.some((c) => c.current)
|
|
497
497
|
);
|
|
498
|
-
function r(
|
|
499
|
-
return
|
|
498
|
+
function r(c, m) {
|
|
499
|
+
return c.current || !i.value && m === n.items.length - 1;
|
|
500
500
|
}
|
|
501
|
-
function g(
|
|
502
|
-
return !
|
|
501
|
+
function g(c, m) {
|
|
502
|
+
return !c.disabled && !r(c, m) && (c.href || c.to);
|
|
503
503
|
}
|
|
504
|
-
function v(
|
|
505
|
-
return
|
|
504
|
+
function v(c) {
|
|
505
|
+
return c.rel ? c.rel : c.target === "_blank" ? "noopener noreferrer" : void 0;
|
|
506
506
|
}
|
|
507
|
-
function T(
|
|
508
|
-
return
|
|
507
|
+
function T(c) {
|
|
508
|
+
return c.to !== void 0 ? n.component ?? fe("RouterLink") : "a";
|
|
509
509
|
}
|
|
510
|
-
function p(
|
|
511
|
-
return
|
|
512
|
-
to:
|
|
513
|
-
target:
|
|
514
|
-
rel: v(
|
|
510
|
+
function p(c) {
|
|
511
|
+
return c.to !== void 0 ? {
|
|
512
|
+
to: c.to,
|
|
513
|
+
target: c.target,
|
|
514
|
+
rel: v(c)
|
|
515
515
|
} : {
|
|
516
|
-
href:
|
|
517
|
-
target:
|
|
518
|
-
rel: v(
|
|
516
|
+
href: c.href,
|
|
517
|
+
target: c.target,
|
|
518
|
+
rel: v(c)
|
|
519
519
|
};
|
|
520
520
|
}
|
|
521
|
-
return (
|
|
521
|
+
return (c, m) => (d(), _("nav", N({
|
|
522
522
|
class: l.value,
|
|
523
523
|
"aria-label": n.ariaLabel
|
|
524
524
|
}, o.value), [
|
|
525
525
|
V("ol", ut, [
|
|
526
|
-
(
|
|
526
|
+
(d(!0), _(re, null, ue(n.items, (h, x) => (d(), _("li", {
|
|
527
527
|
key: `${h.label}-${x}`,
|
|
528
528
|
class: "vf-breadcrumbs__item"
|
|
529
529
|
}, [
|
|
530
|
-
g(h, x) ? (
|
|
530
|
+
g(h, x) ? (d(), q(fe(T(h)), N({
|
|
531
531
|
key: 0,
|
|
532
532
|
ref_for: !0
|
|
533
533
|
}, p(h), { class: "vf-breadcrumbs__link" }), {
|
|
@@ -535,12 +535,12 @@ const ot = {
|
|
|
535
535
|
ve(F(h.label), 1)
|
|
536
536
|
]),
|
|
537
537
|
_: 2
|
|
538
|
-
}, 1040)) : (
|
|
538
|
+
}, 1040)) : (d(), _("span", {
|
|
539
539
|
key: 1,
|
|
540
540
|
class: P(["vf-breadcrumbs__current", h.disabled && "vf-breadcrumbs__current--disabled"]),
|
|
541
541
|
"aria-current": r(h, x) ? "page" : void 0
|
|
542
|
-
}, F(h.label), 11,
|
|
543
|
-
x < n.items.length - 1 ? (
|
|
542
|
+
}, F(h.label), 11, dt)),
|
|
543
|
+
x < n.items.length - 1 ? (d(), _("span", ct, [
|
|
544
544
|
H(y(J), {
|
|
545
545
|
icon: y(W).chevronRight,
|
|
546
546
|
size: "0.875rem"
|
|
@@ -568,7 +568,7 @@ const ot = {
|
|
|
568
568
|
n.block && "vf-button--block"
|
|
569
569
|
)
|
|
570
570
|
);
|
|
571
|
-
return (o, i) => (
|
|
571
|
+
return (o, i) => (d(), _("button", N({
|
|
572
572
|
class: l.value,
|
|
573
573
|
type: n.type
|
|
574
574
|
}, y(e)), [
|
|
@@ -589,16 +589,16 @@ const ot = {
|
|
|
589
589
|
const n = t, e = j(), l = a(
|
|
590
590
|
() => K("vf-card", n.compact && "vf-card--compact")
|
|
591
591
|
);
|
|
592
|
-
return (o, i) => (
|
|
593
|
-
n.title || o.$slots.header ? (
|
|
592
|
+
return (o, i) => (d(), _("section", N({ class: l.value }, y(e)), [
|
|
593
|
+
n.title || o.$slots.header ? (d(), _("header", vt, [
|
|
594
594
|
O(o.$slots, "header", {}, () => [
|
|
595
595
|
V("h3", mt, F(n.title), 1)
|
|
596
596
|
])
|
|
597
597
|
])) : E("", !0),
|
|
598
|
-
o.$slots.default ? (
|
|
598
|
+
o.$slots.default ? (d(), _("div", pt, [
|
|
599
599
|
O(o.$slots, "default")
|
|
600
600
|
])) : E("", !0),
|
|
601
|
-
o.$slots.footer ? (
|
|
601
|
+
o.$slots.footer ? (d(), _("footer", ht, [
|
|
602
602
|
O(o.$slots, "footer")
|
|
603
603
|
])) : E("", !0)
|
|
604
604
|
], 16));
|
|
@@ -636,7 +636,7 @@ const ot = {
|
|
|
636
636
|
const p = T.target.checked;
|
|
637
637
|
l("update:modelValue", p), l("change", p);
|
|
638
638
|
}
|
|
639
|
-
return (T, p) => (
|
|
639
|
+
return (T, p) => (d(), _("label", {
|
|
640
640
|
class: P(i.value),
|
|
641
641
|
style: U(r.value)
|
|
642
642
|
}, [
|
|
@@ -653,7 +653,7 @@ const ot = {
|
|
|
653
653
|
}, [
|
|
654
654
|
V("span", { class: "vf-checkbox__mark" })
|
|
655
655
|
], -1)),
|
|
656
|
-
t.label || T.$slots.default ? (
|
|
656
|
+
t.label || T.$slots.default ? (d(), _("span", _t, [
|
|
657
657
|
O(T.$slots, "default", {}, () => [
|
|
658
658
|
ve(F(t.label), 1)
|
|
659
659
|
])
|
|
@@ -677,7 +677,7 @@ const ot = {
|
|
|
677
677
|
n.size !== "md" && `vf-icon-button--${n.size}`
|
|
678
678
|
)
|
|
679
679
|
), o = a(() => n.size === "sm" ? "0.875rem" : n.size === "lg" ? "1.125rem" : "1rem");
|
|
680
|
-
return (i, r) => (
|
|
680
|
+
return (i, r) => (d(), _("button", N({
|
|
681
681
|
class: l.value,
|
|
682
682
|
type: n.type
|
|
683
683
|
}, y(e)), [
|
|
@@ -724,7 +724,7 @@ const ot = {
|
|
|
724
724
|
onOpenChange: ($) => {
|
|
725
725
|
l("update:open", $), l("openChange", $);
|
|
726
726
|
}
|
|
727
|
-
}), p = T.isOpen,
|
|
727
|
+
}), p = T.isOpen, c = {
|
|
728
728
|
enter: Z.normal,
|
|
729
729
|
leave: Z.normal
|
|
730
730
|
};
|
|
@@ -803,17 +803,17 @@ const ot = {
|
|
|
803
803
|
), se(() => {
|
|
804
804
|
var $;
|
|
805
805
|
p.value && (($ = r.value) == null || $.focus());
|
|
806
|
-
}), ($, C) => (
|
|
806
|
+
}), ($, C) => (d(), q(he, {
|
|
807
807
|
to: u.value,
|
|
808
808
|
disabled: R.value
|
|
809
809
|
}, [
|
|
810
|
-
H(
|
|
810
|
+
H(de, {
|
|
811
811
|
name: "vf-drawer-transition",
|
|
812
812
|
appear: "",
|
|
813
|
-
duration:
|
|
813
|
+
duration: c
|
|
814
814
|
}, {
|
|
815
815
|
default: G(() => [
|
|
816
|
-
y(p) ? (
|
|
816
|
+
y(p) ? (d(), _("div", N({
|
|
817
817
|
key: 0,
|
|
818
818
|
class: [x.value, y(o).class],
|
|
819
819
|
style: L.value
|
|
@@ -832,10 +832,10 @@ const ot = {
|
|
|
832
832
|
role: "dialog",
|
|
833
833
|
tabindex: "-1"
|
|
834
834
|
}, [
|
|
835
|
-
t.title || $.$slots.header ? (
|
|
835
|
+
t.title || $.$slots.header ? (d(), _("header", wt, [
|
|
836
836
|
V("div", null, [
|
|
837
837
|
O($.$slots, "header", {}, () => [
|
|
838
|
-
t.title ? (
|
|
838
|
+
t.title ? (d(), _("h2", {
|
|
839
839
|
key: 0,
|
|
840
840
|
id: y(v),
|
|
841
841
|
class: "vf-drawer__title"
|
|
@@ -844,7 +844,7 @@ const ot = {
|
|
|
844
844
|
]),
|
|
845
845
|
V("div", $t, [
|
|
846
846
|
O($.$slots, "actions", { close: k }),
|
|
847
|
-
e.closable ? (
|
|
847
|
+
e.closable ? (d(), q(Se, {
|
|
848
848
|
key: 0,
|
|
849
849
|
icon: y(W).xmark,
|
|
850
850
|
"aria-label": "Close drawer",
|
|
@@ -854,10 +854,10 @@ const ot = {
|
|
|
854
854
|
}, null, 8, ["icon"])) : E("", !0)
|
|
855
855
|
])
|
|
856
856
|
])) : E("", !0),
|
|
857
|
-
$.$slots.default ? (
|
|
857
|
+
$.$slots.default ? (d(), _("div", Tt, [
|
|
858
858
|
O($.$slots, "default", { close: k })
|
|
859
859
|
])) : E("", !0),
|
|
860
|
-
$.$slots.footer ? (
|
|
860
|
+
$.$slots.footer ? (d(), _("footer", Vt, [
|
|
861
861
|
O($.$slots, "footer", { close: k })
|
|
862
862
|
])) : E("", !0)
|
|
863
863
|
], 10, gt)
|
|
@@ -901,7 +901,7 @@ const ot = {
|
|
|
901
901
|
onOpenChange: (s) => {
|
|
902
902
|
l("update:open", s), l("openChange", s);
|
|
903
903
|
}
|
|
904
|
-
}), p = T.isOpen,
|
|
904
|
+
}), p = T.isOpen, c = {
|
|
905
905
|
enter: Z.fast,
|
|
906
906
|
leave: Z.fast
|
|
907
907
|
}, m = a(
|
|
@@ -960,17 +960,17 @@ const ot = {
|
|
|
960
960
|
), se(() => {
|
|
961
961
|
var s;
|
|
962
962
|
p.value && ((s = i.value) == null || s.focus());
|
|
963
|
-
}), (s, k) => (
|
|
963
|
+
}), (s, k) => (d(), q(he, {
|
|
964
964
|
to: h.value,
|
|
965
965
|
disabled: m.value
|
|
966
966
|
}, [
|
|
967
|
-
H(
|
|
967
|
+
H(de, {
|
|
968
968
|
name: "vf-dialog-transition",
|
|
969
969
|
appear: "",
|
|
970
|
-
duration:
|
|
970
|
+
duration: c
|
|
971
971
|
}, {
|
|
972
972
|
default: G(() => [
|
|
973
|
-
y(p) ? (
|
|
973
|
+
y(p) ? (d(), _("div", Ct, [
|
|
974
974
|
V("div", {
|
|
975
975
|
class: "vf-dialog__overlay",
|
|
976
976
|
"aria-hidden": "true",
|
|
@@ -986,17 +986,17 @@ const ot = {
|
|
|
986
986
|
role: "dialog",
|
|
987
987
|
tabindex: "-1"
|
|
988
988
|
}, [
|
|
989
|
-
t.title || t.description || s.$slots.header || s.$slots.description ? (
|
|
989
|
+
t.title || t.description || s.$slots.header || s.$slots.description ? (d(), _("header", Bt, [
|
|
990
990
|
V("div", null, [
|
|
991
991
|
O(s.$slots, "header", {}, () => [
|
|
992
|
-
t.title ? (
|
|
992
|
+
t.title ? (d(), _("h2", {
|
|
993
993
|
key: 0,
|
|
994
994
|
id: y(g),
|
|
995
995
|
class: "vf-dialog__title"
|
|
996
996
|
}, F(t.title), 9, It)) : E("", !0)
|
|
997
997
|
]),
|
|
998
998
|
O(s.$slots, "description", {}, () => [
|
|
999
|
-
t.description ? (
|
|
999
|
+
t.description ? (d(), _("p", {
|
|
1000
1000
|
key: 0,
|
|
1001
1001
|
id: y(v),
|
|
1002
1002
|
class: "vf-dialog__description"
|
|
@@ -1005,7 +1005,7 @@ const ot = {
|
|
|
1005
1005
|
]),
|
|
1006
1006
|
V("div", At, [
|
|
1007
1007
|
O(s.$slots, "actions", { close: u }),
|
|
1008
|
-
e.closable ? (
|
|
1008
|
+
e.closable ? (d(), q(Se, {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
icon: y(W).xmark,
|
|
1011
1011
|
"aria-label": "Close dialog",
|
|
@@ -1015,10 +1015,10 @@ const ot = {
|
|
|
1015
1015
|
}, null, 8, ["icon"])) : E("", !0)
|
|
1016
1016
|
])
|
|
1017
1017
|
])) : E("", !0),
|
|
1018
|
-
s.$slots.default ? (
|
|
1018
|
+
s.$slots.default ? (d(), _("div", Ot, [
|
|
1019
1019
|
O(s.$slots, "default", { close: u })
|
|
1020
1020
|
])) : E("", !0),
|
|
1021
|
-
s.$slots.footer ? (
|
|
1021
|
+
s.$slots.footer ? (d(), _("footer", Lt, [
|
|
1022
1022
|
O(s.$slots, "footer", { close: u })
|
|
1023
1023
|
])) : E("", !0)
|
|
1024
1024
|
], 10, xt)
|
|
@@ -1038,7 +1038,7 @@ const ot = {
|
|
|
1038
1038
|
const n = t, e = j(), l = a(() => n.orientation === "vertical"), o = a(
|
|
1039
1039
|
() => K("vf-divider", `vf-divider--${n.orientation}`)
|
|
1040
1040
|
);
|
|
1041
|
-
return (i, r) => (
|
|
1041
|
+
return (i, r) => (d(), _("div", N({
|
|
1042
1042
|
class: o.value,
|
|
1043
1043
|
"aria-orientation": n.orientation,
|
|
1044
1044
|
role: l.value ? "separator" : void 0
|
|
@@ -1052,7 +1052,8 @@ const ot = {
|
|
|
1052
1052
|
placement: { default: "bottom-start" },
|
|
1053
1053
|
teleportTo: { type: [String, null, Boolean], default: void 0 },
|
|
1054
1054
|
disableTeleport: { type: Boolean, default: !1 },
|
|
1055
|
-
closeOnSelect: { type: Boolean, default: !0 }
|
|
1055
|
+
closeOnSelect: { type: Boolean, default: !0 },
|
|
1056
|
+
variant: { default: "default" }
|
|
1056
1057
|
},
|
|
1057
1058
|
emits: ["update:open", "openChange"],
|
|
1058
1059
|
setup(t, { emit: n }) {
|
|
@@ -1061,7 +1062,7 @@ const ot = {
|
|
|
1061
1062
|
leave: Z.fast
|
|
1062
1063
|
}, p = a(
|
|
1063
1064
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
1064
|
-
),
|
|
1065
|
+
), c = a(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), m = be({
|
|
1065
1066
|
defaultOpen: e.defaultOpen,
|
|
1066
1067
|
open: a(() => e.open),
|
|
1067
1068
|
onOpenChange: (b) => {
|
|
@@ -1069,6 +1070,7 @@ const ot = {
|
|
|
1069
1070
|
}
|
|
1070
1071
|
}), h = m.isOpen, x = a(() => [
|
|
1071
1072
|
"vf-dropdown__menu",
|
|
1073
|
+
`vf-dropdown__menu--${e.variant}`,
|
|
1072
1074
|
u.value.startsWith("top") && "vf-dropdown__menu--top"
|
|
1073
1075
|
]), L = a(() => {
|
|
1074
1076
|
const b = w.value.arrow;
|
|
@@ -1129,7 +1131,7 @@ const ot = {
|
|
|
1129
1131
|
(b.key === "ArrowDown" || b.key === "Enter" || b.key === " ") && (b.preventDefault(), f({ focusFirstItem: !0 }));
|
|
1130
1132
|
}
|
|
1131
1133
|
function ie(b) {
|
|
1132
|
-
var ae, te, Q,
|
|
1134
|
+
var ae, te, Q, ce;
|
|
1133
1135
|
const z = s(), Y = z.findIndex(
|
|
1134
1136
|
(oe) => oe === document.activeElement
|
|
1135
1137
|
);
|
|
@@ -1145,7 +1147,7 @@ const ot = {
|
|
|
1145
1147
|
b.preventDefault(), (Q = z[0]) == null || Q.focus();
|
|
1146
1148
|
return;
|
|
1147
1149
|
}
|
|
1148
|
-
b.key === "End" && (b.preventDefault(), (
|
|
1150
|
+
b.key === "End" && (b.preventDefault(), (ce = z[z.length - 1]) == null || ce.focus());
|
|
1149
1151
|
}
|
|
1150
1152
|
function pe() {
|
|
1151
1153
|
e.closeOnSelect && S();
|
|
@@ -1166,7 +1168,7 @@ const ot = {
|
|
|
1166
1168
|
{
|
|
1167
1169
|
enabled: h
|
|
1168
1170
|
}
|
|
1169
|
-
), (b, z) => (
|
|
1171
|
+
), (b, z) => (d(), _("div", St, [
|
|
1170
1172
|
V("div", {
|
|
1171
1173
|
id: y(v),
|
|
1172
1174
|
ref_key: "triggerRef",
|
|
@@ -1184,17 +1186,17 @@ const ot = {
|
|
|
1184
1186
|
toggle: $
|
|
1185
1187
|
})
|
|
1186
1188
|
], 40, Mt),
|
|
1187
|
-
(
|
|
1188
|
-
to:
|
|
1189
|
+
(d(), q(he, {
|
|
1190
|
+
to: c.value,
|
|
1189
1191
|
disabled: p.value
|
|
1190
1192
|
}, [
|
|
1191
|
-
H(
|
|
1193
|
+
H(de, {
|
|
1192
1194
|
name: "vf-floating-transition",
|
|
1193
1195
|
appear: "",
|
|
1194
1196
|
duration: T
|
|
1195
1197
|
}, {
|
|
1196
1198
|
default: G(() => [
|
|
1197
|
-
y(h) ? (
|
|
1199
|
+
y(h) ? (d(), _("div", {
|
|
1198
1200
|
key: 0,
|
|
1199
1201
|
id: y(g),
|
|
1200
1202
|
ref_key: "menuRef",
|
|
@@ -1244,7 +1246,7 @@ const ot = {
|
|
|
1244
1246
|
function r(g) {
|
|
1245
1247
|
l("update:modelValue", g.target.value);
|
|
1246
1248
|
}
|
|
1247
|
-
return (g, v) => (
|
|
1249
|
+
return (g, v) => (d(), _("input", N({
|
|
1248
1250
|
class: i.value,
|
|
1249
1251
|
value: e.modelValue,
|
|
1250
1252
|
"aria-invalid": e.invalid || void 0
|
|
@@ -1283,7 +1285,7 @@ const ot = {
|
|
|
1283
1285
|
...g.value,
|
|
1284
1286
|
class: r.value
|
|
1285
1287
|
}));
|
|
1286
|
-
return (T, p) => (
|
|
1288
|
+
return (T, p) => (d(), q(fe(o.value), Be(Ie(v.value)), {
|
|
1287
1289
|
default: G(() => [
|
|
1288
1290
|
O(T.$slots, "default")
|
|
1289
1291
|
]),
|
|
@@ -1332,7 +1334,7 @@ const ot = {
|
|
|
1332
1334
|
() => !v.value && R(e.item, e.activeValue)
|
|
1333
1335
|
), p = a(
|
|
1334
1336
|
() => o.value.every((w, B) => e.openPath[B] === w)
|
|
1335
|
-
),
|
|
1337
|
+
), c = a(() => e.item.to !== void 0 ? fe("RouterLink") : "a"), m = a(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), h = a(() => e.item.to !== void 0 ? {
|
|
1336
1338
|
to: e.item.to,
|
|
1337
1339
|
target: e.item.target,
|
|
1338
1340
|
rel: m.value
|
|
@@ -1380,7 +1382,7 @@ const ot = {
|
|
|
1380
1382
|
}
|
|
1381
1383
|
return (w, B) => {
|
|
1382
1384
|
const s = Ee("VfMenuBarItemNode", !0);
|
|
1383
|
-
return
|
|
1385
|
+
return d(), _("li", {
|
|
1384
1386
|
class: P(["vf-menu-bar__node", [
|
|
1385
1387
|
`vf-menu-bar__node--depth-${t.depth}`,
|
|
1386
1388
|
i.value && "vf-menu-bar__node--branch",
|
|
@@ -1388,12 +1390,12 @@ const ot = {
|
|
|
1388
1390
|
]]),
|
|
1389
1391
|
onMouseenter: u
|
|
1390
1392
|
}, [
|
|
1391
|
-
r.value ? (
|
|
1393
|
+
r.value ? (d(), _("div", {
|
|
1392
1394
|
key: 0,
|
|
1393
1395
|
class: "vf-menu-bar__group",
|
|
1394
1396
|
role: "presentation",
|
|
1395
1397
|
style: U({ "--vf-menu-bar-depth": String(t.depth) })
|
|
1396
|
-
}, F(t.item.label), 5)) : i.value ? (
|
|
1398
|
+
}, F(t.item.label), 5)) : i.value ? (d(), _("button", {
|
|
1397
1399
|
key: 1,
|
|
1398
1400
|
type: "button",
|
|
1399
1401
|
class: P(["vf-menu-bar__item vf-menu-bar__item--branch", [
|
|
@@ -1410,7 +1412,7 @@ const ot = {
|
|
|
1410
1412
|
onKeydown: I
|
|
1411
1413
|
}, [
|
|
1412
1414
|
V("span", Ft, [
|
|
1413
|
-
t.item.leadingIcon ? (
|
|
1415
|
+
t.item.leadingIcon ? (d(), _("span", Ht, [
|
|
1414
1416
|
H(y(J), {
|
|
1415
1417
|
icon: t.item.leadingIcon,
|
|
1416
1418
|
size: "1rem"
|
|
@@ -1424,7 +1426,7 @@ const ot = {
|
|
|
1424
1426
|
size: "0.875rem"
|
|
1425
1427
|
}, null, 8, ["icon"])
|
|
1426
1428
|
])
|
|
1427
|
-
], 46, Rt)) : g.value ? (
|
|
1429
|
+
], 46, Rt)) : g.value ? (d(), q(fe(c.value), N({ key: 2 }, h.value, {
|
|
1428
1430
|
class: ["vf-menu-bar__item", [
|
|
1429
1431
|
t.depth === 0 && "vf-menu-bar__item--top",
|
|
1430
1432
|
v.value && "vf-menu-bar__item--active",
|
|
@@ -1438,7 +1440,7 @@ const ot = {
|
|
|
1438
1440
|
}), {
|
|
1439
1441
|
default: G(() => [
|
|
1440
1442
|
V("span", jt, [
|
|
1441
|
-
t.item.leadingIcon ? (
|
|
1443
|
+
t.item.leadingIcon ? (d(), _("span", qt, [
|
|
1442
1444
|
H(y(J), {
|
|
1443
1445
|
icon: t.item.leadingIcon,
|
|
1444
1446
|
size: "1rem"
|
|
@@ -1448,7 +1450,7 @@ const ot = {
|
|
|
1448
1450
|
])
|
|
1449
1451
|
]),
|
|
1450
1452
|
_: 1
|
|
1451
|
-
}, 16, ["class", "style", "aria-current"])) : (
|
|
1453
|
+
}, 16, ["class", "style", "aria-current"])) : (d(), _("button", {
|
|
1452
1454
|
key: 3,
|
|
1453
1455
|
type: "button",
|
|
1454
1456
|
class: P(["vf-menu-bar__item", [
|
|
@@ -1464,7 +1466,7 @@ const ot = {
|
|
|
1464
1466
|
onClick: B[0] || (B[0] = (k) => D())
|
|
1465
1467
|
}, [
|
|
1466
1468
|
V("span", Xt, [
|
|
1467
|
-
t.item.leadingIcon ? (
|
|
1469
|
+
t.item.leadingIcon ? (d(), _("span", Yt, [
|
|
1468
1470
|
H(y(J), {
|
|
1469
1471
|
icon: t.item.leadingIcon,
|
|
1470
1472
|
size: "1rem"
|
|
@@ -1473,12 +1475,12 @@ const ot = {
|
|
|
1473
1475
|
V("span", Gt, F(t.item.label), 1)
|
|
1474
1476
|
])
|
|
1475
1477
|
], 14, Ut)),
|
|
1476
|
-
H(
|
|
1478
|
+
H(de, {
|
|
1477
1479
|
name: "vf-floating-transition",
|
|
1478
1480
|
appear: ""
|
|
1479
1481
|
}, {
|
|
1480
1482
|
default: G(() => [
|
|
1481
|
-
i.value && p.value ? (
|
|
1483
|
+
i.value && p.value ? (d(), _("div", {
|
|
1482
1484
|
key: 0,
|
|
1483
1485
|
class: P([
|
|
1484
1486
|
"vf-menu-bar__submenu",
|
|
@@ -1486,7 +1488,7 @@ const ot = {
|
|
|
1486
1488
|
])
|
|
1487
1489
|
}, [
|
|
1488
1490
|
V("ul", Qt, [
|
|
1489
|
-
(
|
|
1491
|
+
(d(!0), _(re, null, ue(t.item.children, (k) => (d(), q(s, {
|
|
1490
1492
|
key: k.value,
|
|
1491
1493
|
item: k,
|
|
1492
1494
|
depth: t.depth + 1,
|
|
@@ -1514,7 +1516,8 @@ const ot = {
|
|
|
1514
1516
|
items: {},
|
|
1515
1517
|
modelValue: { default: void 0 },
|
|
1516
1518
|
defaultValue: { default: void 0 },
|
|
1517
|
-
ariaLabel: { default: "Menu bar" }
|
|
1519
|
+
ariaLabel: { default: "Menu bar" },
|
|
1520
|
+
variant: { default: "default" }
|
|
1518
1521
|
},
|
|
1519
1522
|
emits: ["update:modelValue", "change", "select"],
|
|
1520
1523
|
setup(t, { emit: n }) {
|
|
@@ -1526,7 +1529,7 @@ const ot = {
|
|
|
1526
1529
|
function p(x) {
|
|
1527
1530
|
T(x.value), r.value = [], l("select", x);
|
|
1528
1531
|
}
|
|
1529
|
-
function
|
|
1532
|
+
function c(x) {
|
|
1530
1533
|
h(), r.value = x;
|
|
1531
1534
|
}
|
|
1532
1535
|
function m() {
|
|
@@ -1560,16 +1563,16 @@ const ot = {
|
|
|
1560
1563
|
{ deep: !0 }
|
|
1561
1564
|
), se(() => {
|
|
1562
1565
|
h();
|
|
1563
|
-
}), (x, L) => (
|
|
1566
|
+
}), (x, L) => (d(), _("nav", {
|
|
1564
1567
|
ref_key: "rootRef",
|
|
1565
1568
|
ref: o,
|
|
1566
|
-
class: "vf-menu-bar",
|
|
1569
|
+
class: P(["vf-menu-bar", `vf-menu-bar--${t.variant}`]),
|
|
1567
1570
|
"aria-label": t.ariaLabel,
|
|
1568
1571
|
onMouseenter: h,
|
|
1569
1572
|
onMouseleave: m
|
|
1570
1573
|
}, [
|
|
1571
1574
|
V("ul", en, [
|
|
1572
|
-
(
|
|
1575
|
+
(d(!0), _(re, null, ue(t.items, (D) => (d(), q(Jt, {
|
|
1573
1576
|
key: D.value,
|
|
1574
1577
|
item: D,
|
|
1575
1578
|
depth: 0,
|
|
@@ -1577,21 +1580,21 @@ const ot = {
|
|
|
1577
1580
|
"active-value": g.value,
|
|
1578
1581
|
"open-path": r.value,
|
|
1579
1582
|
"hover-enabled": r.value.length > 0,
|
|
1580
|
-
onOpenPathChange:
|
|
1583
|
+
onOpenPathChange: c,
|
|
1581
1584
|
onSelect: p
|
|
1582
1585
|
}, null, 8, ["item", "active-value", "open-path", "hover-enabled"]))), 128))
|
|
1583
1586
|
])
|
|
1584
|
-
],
|
|
1587
|
+
], 42, Zt));
|
|
1585
1588
|
}
|
|
1586
1589
|
}), tn = { class: "vf-nav-menu__node" }, nn = { class: "vf-nav-menu__item-content" }, an = { class: "vf-nav-menu__group-label" }, on = ["aria-expanded", "disabled"], ln = { class: "vf-nav-menu__item-content" }, sn = {
|
|
1587
1590
|
key: 0,
|
|
1588
1591
|
class: "vf-nav-menu__leading-icon",
|
|
1589
1592
|
"aria-hidden": "true"
|
|
1590
|
-
}, rn = { class: "vf-nav-menu__label" }, un = { class: "vf-nav-menu__item-content" },
|
|
1593
|
+
}, rn = { class: "vf-nav-menu__label" }, un = { class: "vf-nav-menu__item-content" }, dn = {
|
|
1591
1594
|
key: 0,
|
|
1592
1595
|
class: "vf-nav-menu__leading-icon",
|
|
1593
1596
|
"aria-hidden": "true"
|
|
1594
|
-
},
|
|
1597
|
+
}, cn = { class: "vf-nav-menu__label" }, fn = ["aria-current", "disabled"], vn = { class: "vf-nav-menu__item-content" }, mn = {
|
|
1595
1598
|
key: 0,
|
|
1596
1599
|
class: "vf-nav-menu__leading-icon",
|
|
1597
1600
|
"aria-hidden": "true"
|
|
@@ -1619,14 +1622,14 @@ const ot = {
|
|
|
1619
1622
|
() => !g.value && L(e.item, e.activeValue)
|
|
1620
1623
|
), T = a(
|
|
1621
1624
|
() => e.item.href !== void 0 || e.item.to !== void 0
|
|
1622
|
-
), p = a(() => e.item.to !== void 0 ? fe("RouterLink") : "a"),
|
|
1625
|
+
), p = a(() => e.item.to !== void 0 ? fe("RouterLink") : "a"), c = a(() => e.item.rel ? e.item.rel : e.item.target === "_blank" ? "noopener noreferrer" : void 0), m = a(() => e.item.to !== void 0 ? {
|
|
1623
1626
|
to: e.item.to,
|
|
1624
1627
|
target: e.item.target,
|
|
1625
|
-
rel:
|
|
1628
|
+
rel: c.value
|
|
1626
1629
|
} : {
|
|
1627
1630
|
href: e.item.href,
|
|
1628
1631
|
target: e.item.target,
|
|
1629
|
-
rel:
|
|
1632
|
+
rel: c.value
|
|
1630
1633
|
});
|
|
1631
1634
|
function h() {
|
|
1632
1635
|
e.item.disabled || l("toggle", {
|
|
@@ -1681,8 +1684,8 @@ const ot = {
|
|
|
1681
1684
|
}
|
|
1682
1685
|
return (k, f) => {
|
|
1683
1686
|
const S = Ee("VfNavMenuItemNode", !0);
|
|
1684
|
-
return
|
|
1685
|
-
i.value ? (
|
|
1687
|
+
return d(), _("li", tn, [
|
|
1688
|
+
i.value ? (d(), _("div", {
|
|
1686
1689
|
key: 0,
|
|
1687
1690
|
class: P(["vf-nav-menu__group", `vf-nav-menu__group--level-${t.level}`]),
|
|
1688
1691
|
style: U({ "--vf-nav-menu-level": String(t.level) })
|
|
@@ -1690,7 +1693,7 @@ const ot = {
|
|
|
1690
1693
|
V("span", nn, [
|
|
1691
1694
|
V("span", an, F(t.item.label), 1)
|
|
1692
1695
|
])
|
|
1693
|
-
], 6)) : o.value ? (
|
|
1696
|
+
], 6)) : o.value ? (d(), _("button", {
|
|
1694
1697
|
key: 1,
|
|
1695
1698
|
class: P([
|
|
1696
1699
|
"vf-nav-menu__item",
|
|
@@ -1706,7 +1709,7 @@ const ot = {
|
|
|
1706
1709
|
onClick: h
|
|
1707
1710
|
}, [
|
|
1708
1711
|
V("span", ln, [
|
|
1709
|
-
t.item.leadingIcon ? (
|
|
1712
|
+
t.item.leadingIcon ? (d(), _("span", sn, [
|
|
1710
1713
|
H(y(J), {
|
|
1711
1714
|
icon: t.item.leadingIcon,
|
|
1712
1715
|
size: "1rem"
|
|
@@ -1723,7 +1726,7 @@ const ot = {
|
|
|
1723
1726
|
size: "0.875rem"
|
|
1724
1727
|
}, null, 8, ["icon"])
|
|
1725
1728
|
], 2)
|
|
1726
|
-
], 14, on)) : T.value ? (
|
|
1729
|
+
], 14, on)) : T.value ? (d(), q(fe(p.value), N({ key: 2 }, m.value, {
|
|
1727
1730
|
class: [
|
|
1728
1731
|
"vf-nav-menu__item",
|
|
1729
1732
|
!t.item.leadingIcon && "vf-nav-menu__item--icon-offset",
|
|
@@ -1737,17 +1740,17 @@ const ot = {
|
|
|
1737
1740
|
}), {
|
|
1738
1741
|
default: G(() => [
|
|
1739
1742
|
V("span", un, [
|
|
1740
|
-
t.item.leadingIcon ? (
|
|
1743
|
+
t.item.leadingIcon ? (d(), _("span", dn, [
|
|
1741
1744
|
H(y(J), {
|
|
1742
1745
|
icon: t.item.leadingIcon,
|
|
1743
1746
|
size: "1rem"
|
|
1744
1747
|
}, null, 8, ["icon"])
|
|
1745
1748
|
])) : E("", !0),
|
|
1746
|
-
V("span",
|
|
1749
|
+
V("span", cn, F(t.item.label), 1)
|
|
1747
1750
|
])
|
|
1748
1751
|
]),
|
|
1749
1752
|
_: 1
|
|
1750
|
-
}, 16, ["class", "style", "aria-current"])) : (
|
|
1753
|
+
}, 16, ["class", "style", "aria-current"])) : (d(), _("button", {
|
|
1751
1754
|
key: 3,
|
|
1752
1755
|
class: P([
|
|
1753
1756
|
"vf-nav-menu__item",
|
|
@@ -1763,7 +1766,7 @@ const ot = {
|
|
|
1763
1766
|
onClick: f[0] || (f[0] = ($) => x())
|
|
1764
1767
|
}, [
|
|
1765
1768
|
V("span", vn, [
|
|
1766
|
-
t.item.leadingIcon ? (
|
|
1769
|
+
t.item.leadingIcon ? (d(), _("span", mn, [
|
|
1767
1770
|
H(y(J), {
|
|
1768
1771
|
icon: t.item.leadingIcon,
|
|
1769
1772
|
size: "1rem"
|
|
@@ -1772,8 +1775,8 @@ const ot = {
|
|
|
1772
1775
|
V("span", pn, F(t.item.label), 1)
|
|
1773
1776
|
])
|
|
1774
1777
|
], 14, fn)),
|
|
1775
|
-
o.value && i.value ? (
|
|
1776
|
-
(
|
|
1778
|
+
o.value && i.value ? (d(), _("ul", hn, [
|
|
1779
|
+
(d(!0), _(re, null, ue(t.item.children, ($) => (d(), q(S, {
|
|
1777
1780
|
key: $.value,
|
|
1778
1781
|
item: $,
|
|
1779
1782
|
level: t.level + 1,
|
|
@@ -1783,7 +1786,7 @@ const ot = {
|
|
|
1783
1786
|
onToggle: f[1] || (f[1] = (C) => l("toggle", C)),
|
|
1784
1787
|
onSelect: f[2] || (f[2] = (C) => l("select", C))
|
|
1785
1788
|
}, null, 8, ["item", "level", "parent-path", "active-value", "expanded-values"]))), 128))
|
|
1786
|
-
])) : o.value ? (
|
|
1789
|
+
])) : o.value ? (d(), q(de, {
|
|
1787
1790
|
key: 5,
|
|
1788
1791
|
onBeforeEnter: R,
|
|
1789
1792
|
onEnter: I,
|
|
@@ -1793,7 +1796,7 @@ const ot = {
|
|
|
1793
1796
|
onAfterLeave: s
|
|
1794
1797
|
}, {
|
|
1795
1798
|
default: G(() => [
|
|
1796
|
-
r.value ? (
|
|
1799
|
+
r.value ? (d(), _("div", {
|
|
1797
1800
|
key: 0,
|
|
1798
1801
|
class: P([
|
|
1799
1802
|
"vf-nav-menu__collapse",
|
|
@@ -1801,7 +1804,7 @@ const ot = {
|
|
|
1801
1804
|
])
|
|
1802
1805
|
}, [
|
|
1803
1806
|
V("ul", bn, [
|
|
1804
|
-
(
|
|
1807
|
+
(d(!0), _(re, null, ue(t.item.children, ($) => (d(), q(S, {
|
|
1805
1808
|
key: $.value,
|
|
1806
1809
|
item: $,
|
|
1807
1810
|
level: t.level + 1,
|
|
@@ -1826,7 +1829,8 @@ const ot = {
|
|
|
1826
1829
|
modelValue: { default: void 0 },
|
|
1827
1830
|
defaultValue: { default: void 0 },
|
|
1828
1831
|
ariaLabel: { default: "Navigation" },
|
|
1829
|
-
expandMode: { default: "multiple" }
|
|
1832
|
+
expandMode: { default: "multiple" },
|
|
1833
|
+
variant: { default: "default" }
|
|
1830
1834
|
},
|
|
1831
1835
|
emits: ["update:modelValue", "change", "select"],
|
|
1832
1836
|
setup(t, { emit: n }) {
|
|
@@ -1844,7 +1848,7 @@ const ot = {
|
|
|
1844
1848
|
), T = a(
|
|
1845
1849
|
() => g(e.items, (u) => !!u.leadingIcon)
|
|
1846
1850
|
), p = a(() => !v.value && !T.value);
|
|
1847
|
-
function
|
|
1851
|
+
function c(u) {
|
|
1848
1852
|
var w;
|
|
1849
1853
|
return u.kind !== "group" && !!((w = u.children) != null && w.length);
|
|
1850
1854
|
}
|
|
@@ -1883,7 +1887,7 @@ const ot = {
|
|
|
1883
1887
|
return u.flatMap((w) => {
|
|
1884
1888
|
var s;
|
|
1885
1889
|
const B = (s = w.children) != null && s.length ? L(w.children) : [];
|
|
1886
|
-
return
|
|
1890
|
+
return c(w) ? [w.value, ...B] : B;
|
|
1887
1891
|
});
|
|
1888
1892
|
}
|
|
1889
1893
|
function D(u) {
|
|
@@ -1906,7 +1910,7 @@ const ot = {
|
|
|
1906
1910
|
return;
|
|
1907
1911
|
}
|
|
1908
1912
|
if (e.expandMode === "single") {
|
|
1909
|
-
const k = x(e.items, B).filter((f) => f.value !== w &&
|
|
1913
|
+
const k = x(e.items, B).filter((f) => f.value !== w && c(f)).flatMap((f) => L([f]));
|
|
1910
1914
|
r.value = r.value.filter(
|
|
1911
1915
|
(f) => !k.includes(f)
|
|
1912
1916
|
);
|
|
@@ -1919,12 +1923,16 @@ const ot = {
|
|
|
1919
1923
|
h();
|
|
1920
1924
|
},
|
|
1921
1925
|
{ immediate: !0, deep: !0 }
|
|
1922
|
-
), (u, w) => (
|
|
1923
|
-
class: P([
|
|
1926
|
+
), (u, w) => (d(), _("nav", {
|
|
1927
|
+
class: P([
|
|
1928
|
+
"vf-nav-menu",
|
|
1929
|
+
`vf-nav-menu--${t.variant}`,
|
|
1930
|
+
p.value && "vf-nav-menu--simple"
|
|
1931
|
+
]),
|
|
1924
1932
|
"aria-label": t.ariaLabel
|
|
1925
1933
|
}, [
|
|
1926
1934
|
V("ul", gn, [
|
|
1927
|
-
(
|
|
1935
|
+
(d(!0), _(re, null, ue(t.items, (B) => (d(), q(_n, {
|
|
1928
1936
|
key: B.value,
|
|
1929
1937
|
item: B,
|
|
1930
1938
|
level: 0,
|
|
@@ -1948,8 +1956,8 @@ const ot = {
|
|
|
1948
1956
|
const n = t, e = j(), l = a(
|
|
1949
1957
|
() => K("vf-panel", n.subtle && "vf-panel--subtle")
|
|
1950
1958
|
);
|
|
1951
|
-
return (o, i) => (
|
|
1952
|
-
n.title || o.$slots.header ? (
|
|
1959
|
+
return (o, i) => (d(), _("section", N({ class: l.value }, y(e)), [
|
|
1960
|
+
n.title || o.$slots.header ? (d(), _("header", wn, [
|
|
1953
1961
|
O(o.$slots, "header", {}, () => [
|
|
1954
1962
|
V("h3", kn, F(n.title), 1)
|
|
1955
1963
|
])
|
|
@@ -1975,7 +1983,7 @@ const ot = {
|
|
|
1975
1983
|
leave: Z.fast
|
|
1976
1984
|
}, p = a(
|
|
1977
1985
|
() => e.disableTeleport || e.teleportTo === !1 || e.teleportTo === null
|
|
1978
|
-
),
|
|
1986
|
+
), c = a(() => typeof e.teleportTo == "string" || typeof HTMLElement < "u" && e.teleportTo instanceof HTMLElement ? e.teleportTo : "body"), m = be({
|
|
1979
1987
|
defaultOpen: e.defaultOpen,
|
|
1980
1988
|
open: a(() => e.open),
|
|
1981
1989
|
onOpenChange: (C) => {
|
|
@@ -2060,7 +2068,7 @@ const ot = {
|
|
|
2060
2068
|
{
|
|
2061
2069
|
enabled: h
|
|
2062
2070
|
}
|
|
2063
|
-
), (C, ie) => (
|
|
2071
|
+
), (C, ie) => (d(), _("div", $n, [
|
|
2064
2072
|
V("div", {
|
|
2065
2073
|
id: y(v),
|
|
2066
2074
|
ref_key: "triggerRef",
|
|
@@ -2078,17 +2086,17 @@ const ot = {
|
|
|
2078
2086
|
toggle: S
|
|
2079
2087
|
})
|
|
2080
2088
|
], 40, Tn),
|
|
2081
|
-
(
|
|
2082
|
-
to:
|
|
2089
|
+
(d(), q(he, {
|
|
2090
|
+
to: c.value,
|
|
2083
2091
|
disabled: p.value
|
|
2084
2092
|
}, [
|
|
2085
|
-
H(
|
|
2093
|
+
H(de, {
|
|
2086
2094
|
name: "vf-floating-transition",
|
|
2087
2095
|
appear: "",
|
|
2088
2096
|
duration: T
|
|
2089
2097
|
}, {
|
|
2090
2098
|
default: G(() => [
|
|
2091
|
-
y(h) ? (
|
|
2099
|
+
y(h) ? (d(), _("section", {
|
|
2092
2100
|
key: 0,
|
|
2093
2101
|
id: y(g),
|
|
2094
2102
|
ref_key: "contentRef",
|
|
@@ -2150,7 +2158,7 @@ const ot = {
|
|
|
2150
2158
|
function T(p) {
|
|
2151
2159
|
p.target.checked && (l("update:modelValue", e.value), l("change", e.value));
|
|
2152
2160
|
}
|
|
2153
|
-
return (p,
|
|
2161
|
+
return (p, c) => (d(), _("label", {
|
|
2154
2162
|
class: P(r.value),
|
|
2155
2163
|
style: U(g.value)
|
|
2156
2164
|
}, [
|
|
@@ -2162,13 +2170,13 @@ const ot = {
|
|
|
2162
2170
|
value: e.value,
|
|
2163
2171
|
"aria-invalid": e.invalid || void 0
|
|
2164
2172
|
}, v.value, { onChange: T }), null, 16, Cn),
|
|
2165
|
-
|
|
2173
|
+
c[0] || (c[0] = V("span", {
|
|
2166
2174
|
class: "vf-radio__control",
|
|
2167
2175
|
"aria-hidden": "true"
|
|
2168
2176
|
}, [
|
|
2169
2177
|
V("span", { class: "vf-radio__dot" })
|
|
2170
2178
|
], -1)),
|
|
2171
|
-
t.label || p.$slots.default ? (
|
|
2179
|
+
t.label || p.$slots.default ? (d(), _("span", xn, [
|
|
2172
2180
|
O(p.$slots, "default", {}, () => [
|
|
2173
2181
|
ve(F(t.label), 1)
|
|
2174
2182
|
])
|
|
@@ -2197,14 +2205,14 @@ const ot = {
|
|
|
2197
2205
|
const e = t, l = n, o = j(), i = A(null), r = A(null), g = ee({ prefix: "vf-select-trigger" }), v = ee({ prefix: "vf-select-listbox" }), T = {
|
|
2198
2206
|
enter: Z.fast,
|
|
2199
2207
|
leave: Z.fast
|
|
2200
|
-
}, p = be(),
|
|
2208
|
+
}, p = be(), c = p.isOpen, m = a(
|
|
2201
2209
|
() => e.options.find((b) => b.value === e.modelValue)
|
|
2202
2210
|
), h = a(
|
|
2203
2211
|
() => K(
|
|
2204
2212
|
"vf-select",
|
|
2205
2213
|
e.size !== "md" && `vf-select--${e.size}`,
|
|
2206
2214
|
e.invalid && "vf-select--invalid",
|
|
2207
|
-
|
|
2215
|
+
c.value && "vf-select--open",
|
|
2208
2216
|
!m.value && e.placeholder && "vf-select--placeholder"
|
|
2209
2217
|
)
|
|
2210
2218
|
), x = a(() => m.value ? m.value.label : e.placeholder ?? ""), L = a(
|
|
@@ -2215,7 +2223,7 @@ const ot = {
|
|
|
2215
2223
|
i,
|
|
2216
2224
|
r,
|
|
2217
2225
|
{
|
|
2218
|
-
enabled:
|
|
2226
|
+
enabled: c,
|
|
2219
2227
|
placement: a(() => e.placement),
|
|
2220
2228
|
middleware: a(
|
|
2221
2229
|
() => [
|
|
@@ -2251,8 +2259,8 @@ const ot = {
|
|
|
2251
2259
|
return;
|
|
2252
2260
|
const te = r.value;
|
|
2253
2261
|
if (te) {
|
|
2254
|
-
const Q = ae.offsetTop,
|
|
2255
|
-
Q - oe < Ce ? te.scrollTop = Math.max(Q - oe, 0) :
|
|
2262
|
+
const Q = ae.offsetTop, ce = Q + ae.offsetHeight, oe = 8, Ce = te.scrollTop, Me = Ce + te.clientHeight;
|
|
2263
|
+
Q - oe < Ce ? te.scrollTop = Math.max(Q - oe, 0) : ce + oe > Me && (te.scrollTop = ce - te.clientHeight + oe);
|
|
2256
2264
|
}
|
|
2257
2265
|
b.focus && ae.focus();
|
|
2258
2266
|
}
|
|
@@ -2264,7 +2272,7 @@ const ot = {
|
|
|
2264
2272
|
p.close(), b.restoreFocus !== !1 && ((z = i.value) == null || z.focus());
|
|
2265
2273
|
}
|
|
2266
2274
|
function $() {
|
|
2267
|
-
if (
|
|
2275
|
+
if (c.value) {
|
|
2268
2276
|
S();
|
|
2269
2277
|
return;
|
|
2270
2278
|
}
|
|
@@ -2277,7 +2285,7 @@ const ot = {
|
|
|
2277
2285
|
e.disabled || (b.key === "ArrowDown" || b.key === "ArrowUp" || b.key === "Enter" || b.key === " ") && (b.preventDefault(), f({ focusSelected: !0 }));
|
|
2278
2286
|
}
|
|
2279
2287
|
function pe(b) {
|
|
2280
|
-
var ae, te, Q,
|
|
2288
|
+
var ae, te, Q, ce;
|
|
2281
2289
|
const z = s(), Y = z.findIndex(
|
|
2282
2290
|
(oe) => oe === document.activeElement
|
|
2283
2291
|
);
|
|
@@ -2294,7 +2302,7 @@ const ot = {
|
|
|
2294
2302
|
return;
|
|
2295
2303
|
}
|
|
2296
2304
|
if (b.key === "End") {
|
|
2297
|
-
b.preventDefault(), (
|
|
2305
|
+
b.preventDefault(), (ce = z[z.length - 1]) == null || ce.focus();
|
|
2298
2306
|
return;
|
|
2299
2307
|
}
|
|
2300
2308
|
if (b.key === "Escape") {
|
|
@@ -2311,21 +2319,21 @@ const ot = {
|
|
|
2311
2319
|
return $e(
|
|
2312
2320
|
[i, r],
|
|
2313
2321
|
() => {
|
|
2314
|
-
|
|
2322
|
+
c.value && S({ restoreFocus: !1 });
|
|
2315
2323
|
},
|
|
2316
2324
|
{
|
|
2317
|
-
enabled:
|
|
2325
|
+
enabled: c,
|
|
2318
2326
|
event: "click"
|
|
2319
2327
|
}
|
|
2320
2328
|
), _e(
|
|
2321
2329
|
(b) => {
|
|
2322
|
-
|
|
2330
|
+
c.value && (b.preventDefault(), S());
|
|
2323
2331
|
},
|
|
2324
2332
|
{
|
|
2325
|
-
enabled:
|
|
2333
|
+
enabled: c
|
|
2326
2334
|
}
|
|
2327
|
-
), (b, z) => (
|
|
2328
|
-
typeof y(o).name == "string" ? (
|
|
2335
|
+
), (b, z) => (d(), _("div", Bn, [
|
|
2336
|
+
typeof y(o).name == "string" ? (d(), _("input", {
|
|
2329
2337
|
key: 0,
|
|
2330
2338
|
type: "hidden",
|
|
2331
2339
|
name: y(o).name,
|
|
@@ -2338,7 +2346,7 @@ const ot = {
|
|
|
2338
2346
|
type: "button",
|
|
2339
2347
|
class: P(h.value),
|
|
2340
2348
|
"aria-controls": y(v),
|
|
2341
|
-
"aria-expanded": y(
|
|
2349
|
+
"aria-expanded": y(c),
|
|
2342
2350
|
"aria-haspopup": "listbox",
|
|
2343
2351
|
"aria-invalid": e.invalid || void 0,
|
|
2344
2352
|
disabled: e.disabled,
|
|
@@ -2353,17 +2361,17 @@ const ot = {
|
|
|
2353
2361
|
}, null, 8, ["icon"])
|
|
2354
2362
|
])
|
|
2355
2363
|
], 42, En),
|
|
2356
|
-
(
|
|
2364
|
+
(d(), q(he, {
|
|
2357
2365
|
to: D.value,
|
|
2358
2366
|
disabled: L.value
|
|
2359
2367
|
}, [
|
|
2360
|
-
H(
|
|
2368
|
+
H(de, {
|
|
2361
2369
|
name: "vf-floating-transition",
|
|
2362
2370
|
appear: "",
|
|
2363
2371
|
duration: T
|
|
2364
2372
|
}, {
|
|
2365
2373
|
default: G(() => [
|
|
2366
|
-
y(
|
|
2374
|
+
y(c) ? (d(), _("div", {
|
|
2367
2375
|
key: 0,
|
|
2368
2376
|
id: y(v),
|
|
2369
2377
|
ref_key: "menuRef",
|
|
@@ -2374,7 +2382,7 @@ const ot = {
|
|
|
2374
2382
|
role: "listbox",
|
|
2375
2383
|
onKeydown: pe
|
|
2376
2384
|
}, [
|
|
2377
|
-
(
|
|
2385
|
+
(d(!0), _(re, null, ue(e.options, (Y) => (d(), _("button", {
|
|
2378
2386
|
key: Y.value,
|
|
2379
2387
|
type: "button",
|
|
2380
2388
|
class: P(["vf-dropdown__item vf-select__option", [
|
|
@@ -2421,21 +2429,21 @@ const ot = {
|
|
|
2421
2429
|
var h;
|
|
2422
2430
|
if (e.label)
|
|
2423
2431
|
return !0;
|
|
2424
|
-
const
|
|
2432
|
+
const c = ((h = i.default) == null ? void 0 : h.call(i, {})) ?? [];
|
|
2425
2433
|
function m(x) {
|
|
2426
2434
|
return x.type === He ? !1 : x.type === Ne ? String(x.children ?? "").trim().length > 0 : x.type === re && Array.isArray(x.children) ? x.children.some((L) => m(L)) : !0;
|
|
2427
2435
|
}
|
|
2428
|
-
return
|
|
2436
|
+
return c.some((x) => m(x));
|
|
2429
2437
|
}), T = a(
|
|
2430
2438
|
() => Object.fromEntries(
|
|
2431
|
-
Object.entries(o).filter(([
|
|
2439
|
+
Object.entries(o).filter(([c]) => c !== "class" && c !== "style")
|
|
2432
2440
|
)
|
|
2433
2441
|
);
|
|
2434
|
-
function p(
|
|
2435
|
-
const m =
|
|
2442
|
+
function p(c) {
|
|
2443
|
+
const m = c.target.checked;
|
|
2436
2444
|
l("update:modelValue", m), l("change", m);
|
|
2437
2445
|
}
|
|
2438
|
-
return (
|
|
2446
|
+
return (c, m) => (d(), _("label", {
|
|
2439
2447
|
class: P(r.value),
|
|
2440
2448
|
style: U(g.value)
|
|
2441
2449
|
}, [
|
|
@@ -2448,13 +2456,13 @@ const ot = {
|
|
|
2448
2456
|
}, T.value, { onChange: p }), null, 16, Sn),
|
|
2449
2457
|
V("span", Mn, [
|
|
2450
2458
|
V("span", zn, [
|
|
2451
|
-
O(
|
|
2459
|
+
O(c.$slots, "thumb", {
|
|
2452
2460
|
checked: e.modelValue
|
|
2453
2461
|
})
|
|
2454
2462
|
])
|
|
2455
2463
|
]),
|
|
2456
|
-
v.value ? (
|
|
2457
|
-
O(
|
|
2464
|
+
v.value ? (d(), _("span", Pn, [
|
|
2465
|
+
O(c.$slots, "default", {}, () => [
|
|
2458
2466
|
ve(F(t.label), 1)
|
|
2459
2467
|
])
|
|
2460
2468
|
])) : E("", !0)
|
|
@@ -2490,23 +2498,23 @@ const ot = {
|
|
|
2490
2498
|
n.stickyHeader && "vf-table--sticky-header"
|
|
2491
2499
|
)
|
|
2492
2500
|
);
|
|
2493
|
-
return (o, i) => (
|
|
2501
|
+
return (o, i) => (d(), _("div", N({ class: "vf-table-wrap" }, y(e)), [
|
|
2494
2502
|
V("div", Fn, [
|
|
2495
2503
|
V("table", {
|
|
2496
2504
|
class: P(l.value)
|
|
2497
2505
|
}, [
|
|
2498
|
-
n.caption || o.$slots.caption ? (
|
|
2506
|
+
n.caption || o.$slots.caption ? (d(), _("caption", Hn, [
|
|
2499
2507
|
O(o.$slots, "caption", {}, () => [
|
|
2500
2508
|
ve(F(n.caption), 1)
|
|
2501
2509
|
])
|
|
2502
2510
|
])) : E("", !0),
|
|
2503
|
-
o.$slots.header ? (
|
|
2511
|
+
o.$slots.header ? (d(), _("thead", Nn, [
|
|
2504
2512
|
O(o.$slots, "header")
|
|
2505
2513
|
])) : E("", !0),
|
|
2506
|
-
o.$slots.default ? (
|
|
2514
|
+
o.$slots.default ? (d(), _("tbody", Kn, [
|
|
2507
2515
|
O(o.$slots, "default")
|
|
2508
2516
|
])) : E("", !0),
|
|
2509
|
-
o.$slots.footer ? (
|
|
2517
|
+
o.$slots.footer ? (d(), _("tfoot", jn, [
|
|
2510
2518
|
O(o.$slots, "footer")
|
|
2511
2519
|
])) : E("", !0)
|
|
2512
2520
|
], 2)
|
|
@@ -2521,28 +2529,30 @@ const ot = {
|
|
|
2521
2529
|
activeId: { default: void 0 },
|
|
2522
2530
|
ariaLabel: { default: "Table of contents" },
|
|
2523
2531
|
smooth: { type: Boolean, default: !1 },
|
|
2524
|
-
scrollOffset: { default: 0 }
|
|
2532
|
+
scrollOffset: { default: 0 },
|
|
2533
|
+
variant: { default: "default" }
|
|
2525
2534
|
},
|
|
2526
2535
|
setup(t) {
|
|
2527
2536
|
const n = t, e = j(), l = A(!1), o = a(
|
|
2528
2537
|
() => K(
|
|
2529
2538
|
"vf-table-of-contents",
|
|
2539
|
+
`vf-table-of-contents--${n.variant}`,
|
|
2530
2540
|
l.value && "vf-table-of-contents--ready",
|
|
2531
2541
|
e.class
|
|
2532
2542
|
)
|
|
2533
2543
|
), i = a(() => e.style), r = a(
|
|
2534
2544
|
() => Object.fromEntries(
|
|
2535
|
-
Object.entries(e).filter(([
|
|
2545
|
+
Object.entries(e).filter(([c]) => c !== "class" && c !== "style")
|
|
2536
2546
|
)
|
|
2537
2547
|
);
|
|
2538
|
-
function g(
|
|
2539
|
-
return !
|
|
2548
|
+
function g(c) {
|
|
2549
|
+
return !c || c < 1 ? 1 : Math.min(c, 6);
|
|
2540
2550
|
}
|
|
2541
|
-
function v(
|
|
2542
|
-
return
|
|
2551
|
+
function v(c) {
|
|
2552
|
+
return c.href ?? `#${c.id}`;
|
|
2543
2553
|
}
|
|
2544
|
-
function T(
|
|
2545
|
-
const h = v(
|
|
2554
|
+
function T(c, m) {
|
|
2555
|
+
const h = v(c);
|
|
2546
2556
|
if (!h.startsWith("#"))
|
|
2547
2557
|
return;
|
|
2548
2558
|
const x = decodeURIComponent(h.slice(1));
|
|
@@ -2560,9 +2570,9 @@ const ot = {
|
|
|
2560
2570
|
behavior: n.smooth ? "smooth" : "auto"
|
|
2561
2571
|
});
|
|
2562
2572
|
}
|
|
2563
|
-
function p(
|
|
2573
|
+
function p(c, m) {
|
|
2564
2574
|
const h = v(m);
|
|
2565
|
-
!n.smooth && n.scrollOffset <= 0 || !h.startsWith("#") || !decodeURIComponent(h.slice(1)) || (
|
|
2575
|
+
!n.smooth && n.scrollOffset <= 0 || !h.startsWith("#") || !decodeURIComponent(h.slice(1)) || (c.preventDefault(), T(m, {
|
|
2566
2576
|
updateHistory: !0
|
|
2567
2577
|
}));
|
|
2568
2578
|
}
|
|
@@ -2571,17 +2581,17 @@ const ot = {
|
|
|
2571
2581
|
l.value = !0;
|
|
2572
2582
|
}), typeof window > "u" || !window.location.hash)
|
|
2573
2583
|
return;
|
|
2574
|
-
const
|
|
2584
|
+
const c = decodeURIComponent(window.location.hash), m = n.items.find((h) => v(h) === c);
|
|
2575
2585
|
m && (await le(), requestAnimationFrame(() => {
|
|
2576
2586
|
T(m);
|
|
2577
2587
|
}));
|
|
2578
|
-
}), (
|
|
2588
|
+
}), (c, m) => (d(), _("nav", N({
|
|
2579
2589
|
class: o.value,
|
|
2580
2590
|
style: i.value,
|
|
2581
2591
|
"aria-label": n.ariaLabel
|
|
2582
2592
|
}, r.value), [
|
|
2583
2593
|
V("ol", Wn, [
|
|
2584
|
-
(
|
|
2594
|
+
(d(!0), _(re, null, ue(n.items, (h) => (d(), _("li", {
|
|
2585
2595
|
key: h.id,
|
|
2586
2596
|
class: "vf-table-of-contents__item",
|
|
2587
2597
|
style: U({ "--vf-toc-level": String(g(h.level)) })
|
|
@@ -2628,7 +2638,7 @@ const ot = {
|
|
|
2628
2638
|
}
|
|
2629
2639
|
return se(() => {
|
|
2630
2640
|
v !== null && typeof window < "u" && window.cancelAnimationFrame(v);
|
|
2631
|
-
}), (p,
|
|
2641
|
+
}), (p, c) => (d(), q(Rn, N(y(e), {
|
|
2632
2642
|
"model-value": g.value,
|
|
2633
2643
|
size: n.size,
|
|
2634
2644
|
disabled: n.disabled,
|
|
@@ -2661,7 +2671,7 @@ const ot = {
|
|
|
2661
2671
|
const n = t, e = j(), l = a(
|
|
2662
2672
|
() => K("vf-tag", n.tone !== "neutral" && `vf-tag--${n.tone}`)
|
|
2663
2673
|
);
|
|
2664
|
-
return (o, i) => (
|
|
2674
|
+
return (o, i) => (d(), _("span", N({ class: l.value }, y(e)), [
|
|
2665
2675
|
O(o.$slots, "default")
|
|
2666
2676
|
], 16));
|
|
2667
2677
|
}
|
|
@@ -2683,7 +2693,7 @@ const ot = {
|
|
|
2683
2693
|
var s;
|
|
2684
2694
|
return (s = e.items.find((k) => !k.disabled)) == null ? void 0 : s.value;
|
|
2685
2695
|
}
|
|
2686
|
-
), p = A(e.defaultValue ?? T.value),
|
|
2696
|
+
), p = A(e.defaultValue ?? T.value), c = a(() => e.modelValue !== void 0), m = a(
|
|
2687
2697
|
() => e.modelValue ?? p.value ?? T.value
|
|
2688
2698
|
);
|
|
2689
2699
|
let h = null;
|
|
@@ -2697,7 +2707,7 @@ const ot = {
|
|
|
2697
2707
|
{ deep: !0 }
|
|
2698
2708
|
);
|
|
2699
2709
|
function x(s) {
|
|
2700
|
-
|
|
2710
|
+
c.value || (p.value = s), l("update:modelValue", s), l("change", s);
|
|
2701
2711
|
}
|
|
2702
2712
|
function L(s) {
|
|
2703
2713
|
s.disabled || x(s.value);
|
|
@@ -2778,7 +2788,7 @@ const ot = {
|
|
|
2778
2788
|
}), h.observe(i.value)), typeof window < "u" && window.addEventListener("resize", B);
|
|
2779
2789
|
}), se(() => {
|
|
2780
2790
|
h == null || h.disconnect(), typeof window < "u" && window.removeEventListener("resize", B);
|
|
2781
|
-
}), (s, k) => (
|
|
2791
|
+
}), (s, k) => (d(), _("div", Xn, [
|
|
2782
2792
|
V("div", {
|
|
2783
2793
|
ref_key: "listRef",
|
|
2784
2794
|
ref: i,
|
|
@@ -2786,7 +2796,7 @@ const ot = {
|
|
|
2786
2796
|
role: "tablist",
|
|
2787
2797
|
"aria-orientation": "horizontal"
|
|
2788
2798
|
}, [
|
|
2789
|
-
(
|
|
2799
|
+
(d(!0), _(re, null, ue(t.items, (f, S) => (d(), _("button", {
|
|
2790
2800
|
id: u(f.value),
|
|
2791
2801
|
key: f.value,
|
|
2792
2802
|
ref_for: !0,
|
|
@@ -2809,7 +2819,7 @@ const ot = {
|
|
|
2809
2819
|
style: U(v.value)
|
|
2810
2820
|
}, null, 6)
|
|
2811
2821
|
], 512),
|
|
2812
|
-
m.value ? (
|
|
2822
|
+
m.value ? (d(), _("div", {
|
|
2813
2823
|
key: 0,
|
|
2814
2824
|
id: w(m.value),
|
|
2815
2825
|
"aria-labelledby": u(m.value),
|
|
@@ -2841,7 +2851,7 @@ const ot = {
|
|
|
2841
2851
|
function r(g) {
|
|
2842
2852
|
l("update:modelValue", g.target.value);
|
|
2843
2853
|
}
|
|
2844
|
-
return (g, v) => (
|
|
2854
|
+
return (g, v) => (d(), _("textarea", N({
|
|
2845
2855
|
class: i.value,
|
|
2846
2856
|
value: e.modelValue,
|
|
2847
2857
|
"aria-invalid": e.invalid || void 0
|
|
@@ -2863,7 +2873,7 @@ const ot = {
|
|
|
2863
2873
|
}, T = a(
|
|
2864
2874
|
() => n.disableTeleport || n.teleportTo === !1 || n.teleportTo === null
|
|
2865
2875
|
), p = a(() => typeof n.teleportTo == "string" || typeof HTMLElement < "u" && n.teleportTo instanceof HTMLElement ? n.teleportTo : "body"), {
|
|
2866
|
-
placement:
|
|
2876
|
+
placement: c,
|
|
2867
2877
|
middlewareData: m,
|
|
2868
2878
|
styles: h,
|
|
2869
2879
|
cleanup: x
|
|
@@ -2881,8 +2891,8 @@ const ot = {
|
|
|
2881
2891
|
strategy: "fixed"
|
|
2882
2892
|
}), L = a(() => [
|
|
2883
2893
|
"vf-tooltip__content",
|
|
2884
|
-
|
|
2885
|
-
|
|
2894
|
+
c.value.startsWith("bottom") && "vf-tooltip__content--bottom",
|
|
2895
|
+
c.value.startsWith("top") && "vf-tooltip__content--top"
|
|
2886
2896
|
]), D = a(() => {
|
|
2887
2897
|
const s = m.value.arrow;
|
|
2888
2898
|
return {
|
|
@@ -2891,8 +2901,8 @@ const ot = {
|
|
|
2891
2901
|
};
|
|
2892
2902
|
}), R = a(() => [
|
|
2893
2903
|
"vf-tooltip__arrow",
|
|
2894
|
-
|
|
2895
|
-
|
|
2904
|
+
c.value.startsWith("bottom") && "vf-tooltip__arrow--bottom",
|
|
2905
|
+
c.value.startsWith("top") && "vf-tooltip__arrow--top"
|
|
2896
2906
|
]), I = a(() => ({
|
|
2897
2907
|
left: `${D.value.x}px`,
|
|
2898
2908
|
top: `${D.value.y}px`
|
|
@@ -2910,7 +2920,7 @@ const ot = {
|
|
|
2910
2920
|
}
|
|
2911
2921
|
return se(() => {
|
|
2912
2922
|
u(), x();
|
|
2913
|
-
}), (s, k) => (
|
|
2923
|
+
}), (s, k) => (d(), _("span", {
|
|
2914
2924
|
class: "vf-tooltip",
|
|
2915
2925
|
onMouseenter: w,
|
|
2916
2926
|
onMouseleave: B,
|
|
@@ -2925,17 +2935,17 @@ const ot = {
|
|
|
2925
2935
|
}, [
|
|
2926
2936
|
O(s.$slots, "default")
|
|
2927
2937
|
], 8, Jn),
|
|
2928
|
-
(
|
|
2938
|
+
(d(), q(he, {
|
|
2929
2939
|
to: p.value,
|
|
2930
2940
|
disabled: T.value
|
|
2931
2941
|
}, [
|
|
2932
|
-
H(
|
|
2942
|
+
H(de, {
|
|
2933
2943
|
name: "vf-floating-transition",
|
|
2934
2944
|
appear: "",
|
|
2935
2945
|
duration: v
|
|
2936
2946
|
}, {
|
|
2937
2947
|
default: G(() => [
|
|
2938
|
-
e.value && (t.text || s.$slots.content) ? (
|
|
2948
|
+
e.value && (t.text || s.$slots.content) ? (d(), _("span", {
|
|
2939
2949
|
key: 0,
|
|
2940
2950
|
id: y(l),
|
|
2941
2951
|
ref_key: "contentRef",
|
|
@@ -2964,8 +2974,8 @@ const ot = {
|
|
|
2964
2974
|
});
|
|
2965
2975
|
export {
|
|
2966
2976
|
ua as VfAccordion,
|
|
2967
|
-
|
|
2968
|
-
|
|
2977
|
+
da as VfAlert,
|
|
2978
|
+
ca as VfBadge,
|
|
2969
2979
|
fa as VfBreadcrumbs,
|
|
2970
2980
|
va as VfButton,
|
|
2971
2981
|
ma as VfCard,
|