@wirecore/wirelayer-vue 0.15.1 → 0.16.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/{RecipesProvider-z4RUE-Pk.js → RecipesProvider-BsuOKVkQ.js} +78 -72
- package/dist/{Tree-BD13Var1.js → Tree-8KjrR3Z-.js} +67 -61
- package/dist/components/Banner/Banner.vue.d.ts +6 -1
- package/dist/components/Banner/Banner.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/TabsContent.vue.d.ts.map +1 -1
- package/dist/components/Tabs/context.d.ts +5 -0
- package/dist/components/Tabs/context.d.ts.map +1 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/data-table.js +1 -1
- package/dist/index.js +5 -3
- package/dist/pdf.js +1 -1
- package/llms-full.txt +2 -1
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ import { t as c } from "./Input-DqFiLzOR.js";
|
|
|
5
5
|
import { t as l } from "./label-for-eQvYjsM5.js";
|
|
6
6
|
import { n as u, t as d } from "./Select-B5c6Y3mf.js";
|
|
7
7
|
import { a as f, n as p, r as m } from "./Highlight-BM-J3Jj0.js";
|
|
8
|
-
import { Fragment as h, Teleport as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, guardReactiveProps as E, inject as D, mergeModels as O, mergeProps as k, nextTick as A, normalizeClass as j, normalizeProps as M, normalizeStyle as ee, onBeforeUnmount as N, onMounted as P, openBlock as F, provide as I, reactive as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, resolveDynamicComponent as H, shallowRef as te, toDisplayString as U, unref as W, useAttrs as ne, useId as re, useModel as ie, useTemplateRef as G, vModelText as K, watch as q, withCtx as J, withDirectives as Y, withKeys as
|
|
9
|
-
import { CalendarDays as
|
|
8
|
+
import { Fragment as h, Teleport as g, computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createSlots as S, createTextVNode as C, createVNode as w, defineComponent as T, guardReactiveProps as E, inject as D, mergeModels as O, mergeProps as k, nextTick as A, normalizeClass as j, normalizeProps as M, normalizeStyle as ee, onBeforeUnmount as N, onMounted as P, openBlock as F, provide as I, reactive as L, ref as R, renderList as z, renderSlot as B, resolveComponent as V, resolveDynamicComponent as H, shallowRef as te, toDisplayString as U, unref as W, useAttrs as ne, useId as re, useModel as ie, useTemplateRef as G, vModelText as K, watch as q, withCtx as J, withDirectives as Y, withKeys as X } from "vue";
|
|
9
|
+
import { CalendarDays as ae, Check as oe, ChevronDown as se, ChevronLeft as ce, ChevronRight as le, ChevronUp as ue, ChevronsLeft as de, ChevronsRight as fe, Circle as pe, LoaderCircle as me, Minus as he, Plus as ge, X as _e } from "@lucide/vue";
|
|
10
10
|
import { SUBMENU_GUTTER as ve, allListOptionsState as ye, anchorBox as be, closeMenuOnPageEvents as xe, controlIds as Se, createContextMenuSource as Ce, createLongPress as we, datePicker as Te, defaultNumberFormat as Ee, filterMenuEntries as De, fromWallIso as Oe, highlightFirstMenuItem as ke, insertIntoTextControl as Ae, isoWeekday as je, linkTarget as Me, localeWeekInfo as Ne, menu as Pe, menuSearchKey as Fe, multiSelect as Ie, numberInput as Le, numberInputKey as Re, pageForSize as ze, pagination as Be, parseLocaleNumber as Ve, parsePastedDate as He, parsePastedRange as Ue, partialDateIndex as We, pluralText as Ge, presetDateRange as Ke, rowWeekNumber as qe, setTextControlValue as Je, skeleton as Ye, textarea as Xe, textareaParts as Ze, timeSlots as Qe, timeZoneLabel as $e, timeZoneLongLabel as et, toNumberInputValue as tt, toOverlayAnchor as nt, toWallIso as rt, todayIso as it, toggleAllListOptions as at, translateDateAnnouncements as ot, zonedToInstant as st } from "@wirecore/wirelayer-recipes";
|
|
11
11
|
import { Menu as Z } from "@ark-ui/vue/menu";
|
|
12
12
|
import { useFilter as ct } from "@ark-ui/vue/locale";
|
|
@@ -143,7 +143,7 @@ var kt = /* @__PURE__ */ T({
|
|
|
143
143
|
"onUpdate:checked": (t) => W(s)?.setChecked(e, t)
|
|
144
144
|
}, {
|
|
145
145
|
default: J(() => [x("span", { class: j(W(a).indicator()) }, [w(W(Z).ItemIndicator, null, {
|
|
146
|
-
default: J(() => [w(W(
|
|
146
|
+
default: J(() => [w(W(oe), {
|
|
147
147
|
class: j(W(a).indicatorIcon()),
|
|
148
148
|
"aria-hidden": "true"
|
|
149
149
|
}, null, 8, ["class"])]),
|
|
@@ -174,7 +174,7 @@ var kt = /* @__PURE__ */ T({
|
|
|
174
174
|
"aria-hidden": "true"
|
|
175
175
|
}, null, 8, ["class"])) : y("", !0),
|
|
176
176
|
x("span", { class: j(W(a).label()) }, U(e.label), 3),
|
|
177
|
-
w(W(
|
|
177
|
+
w(W(le), {
|
|
178
178
|
class: j(W(a).submenuIcon()),
|
|
179
179
|
"aria-hidden": "true"
|
|
180
180
|
}, null, 8, ["class"])
|
|
@@ -491,8 +491,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
491
491
|
}), V = G("element");
|
|
492
492
|
function H() {
|
|
493
493
|
let e = V.value?.$el;
|
|
494
|
-
if (!i.autoResize || !e) return;
|
|
495
|
-
e.style.height = "auto";
|
|
494
|
+
if (!i.autoResize || !e || (e.style.height = "auto", !e.scrollHeight)) return;
|
|
496
495
|
let t = e.offsetHeight - e.clientHeight, n = e.scrollHeight + t;
|
|
497
496
|
if (i.minRows || i.maxRows) {
|
|
498
497
|
let r = getComputedStyle(e), a = parseFloat(r.lineHeight) || parseFloat(r.fontSize) * 1.5, o = parseFloat(r.paddingTop) + parseFloat(r.paddingBottom) + t, s = i.maxRows ? i.maxRows * a + o : Infinity;
|
|
@@ -501,19 +500,26 @@ var jt = ["aria-label"], Mt = [
|
|
|
501
500
|
e.style.height = `${n}px`;
|
|
502
501
|
}
|
|
503
502
|
P(H), q(d, () => A(H));
|
|
504
|
-
let te =
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
503
|
+
let te = 0, K = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(([e]) => {
|
|
504
|
+
let t = e?.contentRect.width ?? 0;
|
|
505
|
+
t !== te && (te = t, t && H());
|
|
506
|
+
});
|
|
507
|
+
q(() => i.autoResize && V.value?.$el, (e) => {
|
|
508
|
+
K?.disconnect(), te = 0, e && K?.observe(e);
|
|
509
|
+
}, { flush: "post" }), N(() => K?.disconnect());
|
|
510
|
+
let J = re(), Y = R(""), X;
|
|
511
|
+
function ae(e) {
|
|
512
|
+
L.value = e.target.value, H(), D.value && (clearTimeout(X), X = setTimeout(() => {
|
|
513
|
+
Y.value = u.textarea.remaining(E.value - z.value, E.value);
|
|
508
514
|
}, 1e3));
|
|
509
515
|
}
|
|
510
|
-
N(() => clearTimeout(
|
|
511
|
-
let
|
|
516
|
+
N(() => clearTimeout(X));
|
|
517
|
+
let oe = _(() => [
|
|
512
518
|
p?.value.ariaDescribedby,
|
|
513
|
-
D.value &&
|
|
519
|
+
D.value && J,
|
|
514
520
|
f["aria-describedby"]
|
|
515
521
|
].filter(Boolean).join(" ") || void 0);
|
|
516
|
-
function
|
|
522
|
+
function se() {
|
|
517
523
|
let e = V.value?.$el;
|
|
518
524
|
e && (Je(e), e.focus());
|
|
519
525
|
}
|
|
@@ -544,9 +550,9 @@ var jt = ["aria-label"], Mt = [
|
|
|
544
550
|
rows: W(f).rows ?? e.minRows,
|
|
545
551
|
disabled: C.value || void 0,
|
|
546
552
|
"aria-invalid": g.value || void 0,
|
|
547
|
-
"aria-describedby":
|
|
553
|
+
"aria-describedby": oe.value,
|
|
548
554
|
"aria-busy": e.loading || void 0,
|
|
549
|
-
onInput:
|
|
555
|
+
onInput: ae
|
|
550
556
|
}), null, 16, [
|
|
551
557
|
"modelValue",
|
|
552
558
|
"class",
|
|
@@ -570,7 +576,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
570
576
|
clearIcon: I.value.clearIcon(),
|
|
571
577
|
statusIcon: I.value.statusIcon()
|
|
572
578
|
},
|
|
573
|
-
onClear:
|
|
579
|
+
onClear: se
|
|
574
580
|
}, null, 8, [
|
|
575
581
|
"loading",
|
|
576
582
|
"clear",
|
|
@@ -579,13 +585,13 @@ var jt = ["aria-label"], Mt = [
|
|
|
579
585
|
"classes"
|
|
580
586
|
])], 2)) : y("", !0),
|
|
581
587
|
D.value ? (F(), b(h, { key: 1 }, [x("span", {
|
|
582
|
-
id: W(
|
|
588
|
+
id: W(J),
|
|
583
589
|
class: j(I.value.counter()),
|
|
584
590
|
"aria-hidden": "true"
|
|
585
591
|
}, U(W(u).textarea.counter(z.value, E.value)), 11, Ft), x("span", {
|
|
586
592
|
class: j(I.value.status()),
|
|
587
593
|
role: "status"
|
|
588
|
-
}, U(
|
|
594
|
+
}, U(Y.value), 3)], 64)) : y("", !0)
|
|
589
595
|
], 6)) : (F(), v(W(lt).Textarea, k({
|
|
590
596
|
key: 0,
|
|
591
597
|
ref_key: "element",
|
|
@@ -607,7 +613,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
607
613
|
rows: W(f).rows ?? e.minRows,
|
|
608
614
|
disabled: C.value || void 0,
|
|
609
615
|
"aria-invalid": g.value || void 0,
|
|
610
|
-
onInput:
|
|
616
|
+
onInput: ae
|
|
611
617
|
}), null, 16, [
|
|
612
618
|
"modelValue",
|
|
613
619
|
"rows",
|
|
@@ -711,7 +717,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
711
717
|
"as-child": ""
|
|
712
718
|
}, {
|
|
713
719
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === 1)), {
|
|
714
|
-
default: J(() => [w(W(
|
|
720
|
+
default: J(() => [w(W(de), {
|
|
715
721
|
class: j(l.value.triggerIcon()),
|
|
716
722
|
"aria-hidden": "true"
|
|
717
723
|
}, null, 8, ["class"])]),
|
|
@@ -721,7 +727,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
721
727
|
}, 1024)) : y("", !0),
|
|
722
728
|
w(W(dt).PrevTrigger, { "as-child": "" }, {
|
|
723
729
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === 1)), {
|
|
724
|
-
default: J(() => [w(W(
|
|
730
|
+
default: J(() => [w(W(ce), {
|
|
725
731
|
class: j(l.value.triggerIcon()),
|
|
726
732
|
"aria-hidden": "true"
|
|
727
733
|
}, null, 8, ["class"])]),
|
|
@@ -753,7 +759,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
753
759
|
}, 8, ["index", "class"]))], 64))), 128)),
|
|
754
760
|
w(W(dt).NextTrigger, { "as-child": "" }, {
|
|
755
761
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === t.totalPages)), {
|
|
756
|
-
default: J(() => [w(W(
|
|
762
|
+
default: J(() => [w(W(le), {
|
|
757
763
|
class: j(l.value.triggerIcon()),
|
|
758
764
|
"aria-hidden": "true"
|
|
759
765
|
}, null, 8, ["class"])]),
|
|
@@ -766,7 +772,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
766
772
|
"as-child": ""
|
|
767
773
|
}, {
|
|
768
774
|
default: J(() => [(F(), v(H(S.value), k({ class: l.value.trigger() }, T(t.page === t.totalPages)), {
|
|
769
|
-
default: J(() => [w(W(
|
|
775
|
+
default: J(() => [w(W(fe), {
|
|
770
776
|
class: j(l.value.triggerIcon()),
|
|
771
777
|
"aria-hidden": "true"
|
|
772
778
|
}, null, 8, ["class"])]),
|
|
@@ -784,7 +790,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
784
790
|
inputmode: "numeric",
|
|
785
791
|
autocomplete: "off",
|
|
786
792
|
"aria-label": W(u).pagination.jumper,
|
|
787
|
-
onKeydown:
|
|
793
|
+
onKeydown: X((e) => M(e, t), ["enter"])
|
|
788
794
|
}, null, 8, [
|
|
789
795
|
"class",
|
|
790
796
|
"aria-label",
|
|
@@ -924,7 +930,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
924
930
|
return (e, t) => (F(), v(W($).ViewControl, { class: j(W(a).header()) }, {
|
|
925
931
|
default: J(() => [
|
|
926
932
|
w(W($).PrevTrigger, { class: j(W(a).nav()) }, {
|
|
927
|
-
default: J(() => [w(W(
|
|
933
|
+
default: J(() => [w(W(ce), {
|
|
928
934
|
class: j(W(a).navIcon()),
|
|
929
935
|
"aria-hidden": "true"
|
|
930
936
|
}, null, 8, ["class"])]),
|
|
@@ -941,7 +947,7 @@ var jt = ["aria-label"], Mt = [
|
|
|
941
947
|
_: 1
|
|
942
948
|
}),
|
|
943
949
|
w(W($).NextTrigger, { class: j(W(a).nav()) }, {
|
|
944
|
-
default: J(() => [w(W(
|
|
950
|
+
default: J(() => [w(W(le), {
|
|
945
951
|
class: j(W(a).navIcon()),
|
|
946
952
|
"aria-hidden": "true"
|
|
947
953
|
}, null, 8, ["class"])]),
|
|
@@ -1445,7 +1451,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1445
1451
|
short: $e(a.timeZone, a.locale, t),
|
|
1446
1452
|
long: i.calendar.timeZone(et(a.timeZone, a.locale, t))
|
|
1447
1453
|
};
|
|
1448
|
-
}),
|
|
1454
|
+
}), X = _(() => [T?.value.ariaDescribedby, Y.value ? `${l}tz` : void 0].filter(Boolean).join(" ") || void 0), oe = (e) => I.every((t) => e.getSegments({ index: t }).every((e) => e.type === "literal" || e.isPlaceholder)), se = (e) => !!a.placeholder && oe(e) && !e.focused, ce = (e) => a.placeholder && oe(e) ? [X.value, `${l}ph`].filter(Boolean).join(" ") : X.value, le = _(() => {
|
|
1449
1455
|
if (!a.dates.length) return a.placeholder ?? i.calendar.noDates;
|
|
1450
1456
|
if (a.dates.length > 3) return Ge(i.calendar.datesSelected, a.dates.length, a.locale);
|
|
1451
1457
|
let e = new _t(a.locale, {
|
|
@@ -1455,7 +1461,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1455
1461
|
timeZone: "UTC"
|
|
1456
1462
|
});
|
|
1457
1463
|
return a.dates.map((t) => e.format(t.toDate("UTC"))).join(", ");
|
|
1458
|
-
}),
|
|
1464
|
+
}), ue = _(() => ({
|
|
1459
1465
|
presets: a.presets,
|
|
1460
1466
|
showWeekNumbers: a.showWeekNumbers,
|
|
1461
1467
|
numberOfMonths: a.numberOfMonths,
|
|
@@ -1466,19 +1472,19 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1466
1472
|
allowDeselect: a.allowDeselect,
|
|
1467
1473
|
timeZone: a.timeZone,
|
|
1468
1474
|
responsive: a.responsive
|
|
1469
|
-
})),
|
|
1475
|
+
})), de = _(() => a.withTime && !!a.timeInPopup && !A && !a.period), fe = R([]);
|
|
1470
1476
|
q(() => a.dates, (e) => e.forEach((e, t) => {
|
|
1471
1477
|
let n = un(e);
|
|
1472
|
-
n && (
|
|
1478
|
+
n && (fe.value[t] = n);
|
|
1473
1479
|
}), { immediate: !0 });
|
|
1474
|
-
let pe = (e) =>
|
|
1480
|
+
let pe = (e) => fe.value[e] ?? (O && e === 1 ? "23:59" : "00:00");
|
|
1475
1481
|
function me(e) {
|
|
1476
1482
|
if (!a.withTime) return m(e);
|
|
1477
1483
|
if (A) return m(e.map((e, t) => an(e, a.dates[t])));
|
|
1478
1484
|
m(e.map((e, t) => on(e, pe(t))));
|
|
1479
1485
|
}
|
|
1480
1486
|
function he(e, t) {
|
|
1481
|
-
|
|
1487
|
+
fe.value[e] = t;
|
|
1482
1488
|
let n = a.dates[e];
|
|
1483
1489
|
if (!n) return;
|
|
1484
1490
|
let r = [...a.dates];
|
|
@@ -1491,11 +1497,11 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1491
1497
|
function ye(e) {
|
|
1492
1498
|
ve = e ? {
|
|
1493
1499
|
dates: a.dates,
|
|
1494
|
-
times: [...
|
|
1500
|
+
times: [...fe.value]
|
|
1495
1501
|
} : null;
|
|
1496
1502
|
}
|
|
1497
1503
|
function be(e) {
|
|
1498
|
-
e.key === "Escape" &&
|
|
1504
|
+
e.key === "Escape" && de.value && ve && (fe.value = [...ve.times], m(ve.dates));
|
|
1499
1505
|
}
|
|
1500
1506
|
P(() => document.addEventListener("keydown", be, !0)), N(() => document.removeEventListener("keydown", be, !0));
|
|
1501
1507
|
function xe(e, t) {
|
|
@@ -1531,7 +1537,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1531
1537
|
}, D.value, {
|
|
1532
1538
|
positioning: Se,
|
|
1533
1539
|
translations: W(ne),
|
|
1534
|
-
"close-on-select": !
|
|
1540
|
+
"close-on-select": !de.value,
|
|
1535
1541
|
"lazy-mount": "",
|
|
1536
1542
|
"unmount-on-exit": "",
|
|
1537
1543
|
onValueChange: n[1] ||= (e) => me(e.value),
|
|
@@ -1543,7 +1549,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1543
1549
|
id: `${W(l)}v`,
|
|
1544
1550
|
class: j(c.value.multiValue()),
|
|
1545
1551
|
"data-placeholder": e.dates.length ? void 0 : ""
|
|
1546
|
-
}, U(
|
|
1552
|
+
}, U(le.value), 11, hn), e.name ? (F(!0), b(h, { key: 0 }, z(e.dates, (t, n) => (F(), b("input", {
|
|
1547
1553
|
key: t.toString(),
|
|
1548
1554
|
type: "hidden",
|
|
1549
1555
|
name: `${e.name}[${n}]`,
|
|
@@ -1571,7 +1577,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1571
1577
|
default: J(() => [w(W(mt).Context, null, {
|
|
1572
1578
|
default: J((t) => [w(W(mt).Control, {
|
|
1573
1579
|
class: j(c.value.dateControl()),
|
|
1574
|
-
"data-placeholder-shown":
|
|
1580
|
+
"data-placeholder-shown": se(t) || void 0
|
|
1575
1581
|
}, {
|
|
1576
1582
|
default: J(() => [(F(!0), b(h, null, z(W(I), (n) => (F(), b(h, { key: n }, [
|
|
1577
1583
|
n === 1 ? (F(), b("span", {
|
|
@@ -1587,7 +1593,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1587
1593
|
w(Xt, {
|
|
1588
1594
|
index: n,
|
|
1589
1595
|
label: H(n),
|
|
1590
|
-
describedby:
|
|
1596
|
+
describedby: ce(t),
|
|
1591
1597
|
paste: e.period ? void 0 : xe,
|
|
1592
1598
|
size: e.size
|
|
1593
1599
|
}, null, 8, [
|
|
@@ -1599,11 +1605,11 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1599
1605
|
])
|
|
1600
1606
|
], 64))), 128))]),
|
|
1601
1607
|
_: 2
|
|
1602
|
-
}, 1032, ["class", "data-placeholder-shown"]), e.placeholder &&
|
|
1608
|
+
}, 1032, ["class", "data-placeholder-shown"]), e.placeholder && oe(t) ? (F(), b("span", {
|
|
1603
1609
|
key: 0,
|
|
1604
1610
|
id: `${W(l)}ph`,
|
|
1605
1611
|
class: j(c.value.placeholder()),
|
|
1606
|
-
"data-hidden":
|
|
1612
|
+
"data-hidden": se(t) ? void 0 : "",
|
|
1607
1613
|
onClick: (e) => t.focus()
|
|
1608
1614
|
}, U(e.placeholder), 11, vn)) : y("", !0)]),
|
|
1609
1615
|
_: 1
|
|
@@ -1644,7 +1650,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1644
1650
|
_: 1
|
|
1645
1651
|
}, 8, ["class"])),
|
|
1646
1652
|
w(W($).Trigger, k({ class: c.value.trigger() }, A ? { "aria-describedby": `${W(l)}v` } : {}), {
|
|
1647
|
-
default: J(() => [w(W(
|
|
1653
|
+
default: J(() => [w(W(ae), {
|
|
1648
1654
|
class: j(c.value.triggerIcon()),
|
|
1649
1655
|
"aria-hidden": "true"
|
|
1650
1656
|
}, null, 8, ["class"])]),
|
|
@@ -1652,11 +1658,11 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1652
1658
|
}, 16, ["class"])
|
|
1653
1659
|
]),
|
|
1654
1660
|
_: 1
|
|
1655
|
-
}, 8, ["class"]), w(Yt, M(E(
|
|
1661
|
+
}, 8, ["class"]), w(Yt, M(E(ue.value)), S({ _: 2 }, [t.$slots.day ? {
|
|
1656
1662
|
name: "day",
|
|
1657
1663
|
fn: J((e) => [B(t.$slots, "day", M(E(e)))]),
|
|
1658
1664
|
key: "0"
|
|
1659
|
-
} : void 0,
|
|
1665
|
+
} : void 0, de.value ? {
|
|
1660
1666
|
name: "default",
|
|
1661
1667
|
fn: J(() => [w(mn, {
|
|
1662
1668
|
count: W(I).length,
|
|
@@ -1889,7 +1895,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1889
1895
|
accessors: () => ee.value,
|
|
1890
1896
|
pageSize: () => o.pageSize,
|
|
1891
1897
|
minSearchLength: () => o.minSearchLength
|
|
1892
|
-
}), { options: L, visible: V, groups: H, ordered: te } = p(() => I.items.value, () => ee.value, () => o.filter && !o.manualFilter && !o.dataSource ? N.value : ""), ie = _(() => [...L.value, ...I.resolvedOptions.value]), { selected: G, keys: K, commit: Y, commitKeys:
|
|
1898
|
+
}), { options: L, visible: V, groups: H, ordered: te } = p(() => I.items.value, () => ee.value, () => o.filter && !o.manualFilter && !o.dataSource ? N.value : ""), ie = _(() => [...L.value, ...I.resolvedOptions.value]), { selected: G, keys: K, commit: Y, commitKeys: X } = m({
|
|
1893
1899
|
multiple: !0,
|
|
1894
1900
|
model: () => o.modelValue,
|
|
1895
1901
|
defaultValue: o.defaultValue,
|
|
@@ -1902,19 +1908,19 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1902
1908
|
}
|
|
1903
1909
|
});
|
|
1904
1910
|
P(() => I.resolve(K.value, ie.value)), q(K, (e) => I.resolve(e, ie.value));
|
|
1905
|
-
let
|
|
1906
|
-
function
|
|
1911
|
+
let ae = _(() => o.loading || I.loading.value), ce = _(() => o.hasMore || I.hasMore.value);
|
|
1912
|
+
function le() {
|
|
1907
1913
|
o.dataSource ? I.loadMore() : c("loadMore");
|
|
1908
1914
|
}
|
|
1909
|
-
let
|
|
1915
|
+
let ue = _(() => o.max !== void 0 && G.value.length >= o.max), de = _(() => {
|
|
1910
1916
|
let e = new Set(K.value);
|
|
1911
1917
|
return pt({
|
|
1912
1918
|
items: te.value,
|
|
1913
1919
|
itemToString: (e) => e.label,
|
|
1914
1920
|
itemToValue: (e) => e.key,
|
|
1915
|
-
isItemDisabled: (t) => t.disabled ||
|
|
1921
|
+
isItemDisabled: (t) => t.disabled || ue.value && !e.has(t.key)
|
|
1916
1922
|
});
|
|
1917
|
-
}),
|
|
1923
|
+
}), fe = _(() => o.filter || o.selectAll), pe = re(), ge = _(() => o.emptyText ?? I.emptyText.value ?? (N.value ? a.common.noResults : a.common.empty)), ve = _(() => ({
|
|
1918
1924
|
item: D.value.item(),
|
|
1919
1925
|
itemText: D.value.itemText(),
|
|
1920
1926
|
icon: D.value.icon(),
|
|
@@ -1936,7 +1942,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1936
1942
|
}
|
|
1937
1943
|
function Ee(e, t) {
|
|
1938
1944
|
let n = o.max !== void 0 && e.length >= o.max && G.value.length < o.max;
|
|
1939
|
-
|
|
1945
|
+
X(e, t), n && (we.value = O.maxReached(o.max));
|
|
1940
1946
|
}
|
|
1941
1947
|
function De(e) {
|
|
1942
1948
|
Y(G.value.filter((t) => t.key !== e.key)), we.value = O.removed(e.label);
|
|
@@ -1973,7 +1979,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1973
1979
|
return (t, n) => (F(), v(W(Q).Root, k({
|
|
1974
1980
|
class: D.value.base({ class: d.value.className }),
|
|
1975
1981
|
style: d.value.style,
|
|
1976
|
-
collection:
|
|
1982
|
+
collection: de.value,
|
|
1977
1983
|
multiple: "",
|
|
1978
1984
|
"close-on-select": !1,
|
|
1979
1985
|
"model-value": W(K),
|
|
@@ -1982,7 +1988,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
1982
1988
|
required: e.required,
|
|
1983
1989
|
name: e.name,
|
|
1984
1990
|
positioning: Fe,
|
|
1985
|
-
composite: !
|
|
1991
|
+
composite: !fe.value
|
|
1986
1992
|
}, Re.value, {
|
|
1987
1993
|
"lazy-mount": "",
|
|
1988
1994
|
"unmount-on-exit": "",
|
|
@@ -2028,7 +2034,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2028
2034
|
key: 0,
|
|
2029
2035
|
class: j(D.value.spinner()),
|
|
2030
2036
|
"aria-hidden": "true"
|
|
2031
|
-
}, null, 8, ["class"])) : (F(), v(W(
|
|
2037
|
+
}, null, 8, ["class"])) : (F(), v(W(se), {
|
|
2032
2038
|
key: 1,
|
|
2033
2039
|
class: j(D.value.indicatorIcon()),
|
|
2034
2040
|
"aria-hidden": "true"
|
|
@@ -2061,10 +2067,10 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2061
2067
|
(F(), v(g, { to: "body" }, [w(W(Q).Positioner, null, {
|
|
2062
2068
|
default: J(() => [w(W(Q).Content, {
|
|
2063
2069
|
class: j(D.value.content()),
|
|
2064
|
-
"aria-busy":
|
|
2065
|
-
"aria-label":
|
|
2070
|
+
"aria-busy": ae.value || void 0,
|
|
2071
|
+
"aria-label": fe.value ? d.value.rest["aria-label"] : void 0
|
|
2066
2072
|
}, {
|
|
2067
|
-
default: J(() => [
|
|
2073
|
+
default: J(() => [fe.value ? (F(), b(h, { key: 0 }, [x("div", { class: j(D.value.header()) }, [w(W(Q).Context, null, {
|
|
2068
2074
|
default: J((t) => [e.filter ? (F(), b("input", {
|
|
2069
2075
|
key: 0,
|
|
2070
2076
|
type: "text",
|
|
@@ -2098,7 +2104,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2098
2104
|
}, [Ce.value === "mixed" ? (F(), v(W(he), {
|
|
2099
2105
|
key: 0,
|
|
2100
2106
|
class: j(D.value.checkIcon())
|
|
2101
|
-
}, null, 8, ["class"])) : Ce.value ? (F(), v(W(
|
|
2107
|
+
}, null, 8, ["class"])) : Ce.value ? (F(), v(W(oe), {
|
|
2102
2108
|
key: 1,
|
|
2103
2109
|
class: j(D.value.checkIcon())
|
|
2104
2110
|
}, null, 8, ["class"])) : y("", !0)], 10, On), C(" " + U(W(O).selectAll), 1)], 42, Dn)) : y("", !0)], 2), w(W(Q).List, {
|
|
@@ -2111,11 +2117,11 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2111
2117
|
groups: W(H),
|
|
2112
2118
|
classes: ve.value,
|
|
2113
2119
|
checkbox: e.checkboxes,
|
|
2114
|
-
loading:
|
|
2120
|
+
loading: ae.value,
|
|
2115
2121
|
"loading-text": e.loadingText ?? W(a).common.loading,
|
|
2116
|
-
"has-more":
|
|
2122
|
+
"has-more": ce.value,
|
|
2117
2123
|
"empty-text": ge.value,
|
|
2118
|
-
onLoadMore:
|
|
2124
|
+
onLoadMore: le
|
|
2119
2125
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
2120
2126
|
name: "item",
|
|
2121
2127
|
fn: J((e) => [B(t.$slots, "item", M(E(e)))]),
|
|
@@ -2141,11 +2147,11 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2141
2147
|
groups: W(H),
|
|
2142
2148
|
classes: ve.value,
|
|
2143
2149
|
checkbox: e.checkboxes,
|
|
2144
|
-
loading:
|
|
2150
|
+
loading: ae.value,
|
|
2145
2151
|
"loading-text": e.loadingText ?? W(a).common.loading,
|
|
2146
|
-
"has-more":
|
|
2152
|
+
"has-more": ce.value,
|
|
2147
2153
|
"empty-text": ge.value,
|
|
2148
|
-
onLoadMore:
|
|
2154
|
+
onLoadMore: le
|
|
2149
2155
|
}, S({ _: 2 }, [t.$slots.item ? {
|
|
2150
2156
|
name: "item",
|
|
2151
2157
|
fn: J((e) => [B(t.$slots, "item", M(E(e)))]),
|
|
@@ -2307,19 +2313,19 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2307
2313
|
f.prefix && te,
|
|
2308
2314
|
f.suffix && ie,
|
|
2309
2315
|
S.value.rest["aria-describedby"]
|
|
2310
|
-
].filter(Boolean).join(" ") : void 0), Y = _(() => !!f.disabled || !!f.readOnly || !!C?.value.disabled || !!C?.value.readOnly),
|
|
2311
|
-
function
|
|
2312
|
-
let e =
|
|
2316
|
+
].filter(Boolean).join(" ") : void 0), Y = _(() => !!f.disabled || !!f.readOnly || !!C?.value.disabled || !!C?.value.readOnly), X = G("control");
|
|
2317
|
+
function ae() {
|
|
2318
|
+
let e = X.value?.$el.querySelector("input");
|
|
2313
2319
|
e && (Je(e), e.focus());
|
|
2314
2320
|
}
|
|
2315
|
-
return c(o(() =>
|
|
2321
|
+
return c(o(() => X.value?.$el.querySelector("input"))), (e, t) => (F(), v(W(Ct).RootProvider, {
|
|
2316
2322
|
value: W(z),
|
|
2317
2323
|
class: j(O.value.base({ class: S.value.className })),
|
|
2318
2324
|
style: ee(S.value.style)
|
|
2319
2325
|
}, {
|
|
2320
2326
|
default: J(() => [w(W(Ct).Control, {
|
|
2321
2327
|
ref_key: "control",
|
|
2322
|
-
ref:
|
|
2328
|
+
ref: X,
|
|
2323
2329
|
class: j(O.value.control())
|
|
2324
2330
|
}, {
|
|
2325
2331
|
default: J(() => [
|
|
@@ -2355,7 +2361,7 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2355
2361
|
clearIcon: O.value.clearIcon(),
|
|
2356
2362
|
statusIcon: O.value.statusIcon()
|
|
2357
2363
|
},
|
|
2358
|
-
onClear:
|
|
2364
|
+
onClear: ae
|
|
2359
2365
|
}, null, 8, [
|
|
2360
2366
|
"loading",
|
|
2361
2367
|
"clear",
|
|
@@ -2372,13 +2378,13 @@ var ln = (e) => String(e).padStart(2, "0"), un = (e, t = !1) => e && "hour" in e
|
|
|
2372
2378
|
key: 3,
|
|
2373
2379
|
class: j(O.value.stepper())
|
|
2374
2380
|
}, [w(W(Ct).IncrementTrigger, { class: j(O.value.button()) }, {
|
|
2375
|
-
default: J(() => [w(W(
|
|
2381
|
+
default: J(() => [w(W(ue), {
|
|
2376
2382
|
class: j(O.value.buttonIcon()),
|
|
2377
2383
|
"aria-hidden": "true"
|
|
2378
2384
|
}, null, 8, ["class"])]),
|
|
2379
2385
|
_: 1
|
|
2380
2386
|
}, 8, ["class"]), w(W(Ct).DecrementTrigger, { class: j(O.value.button()) }, {
|
|
2381
|
-
default: J(() => [w(W(
|
|
2387
|
+
default: J(() => [w(W(se), {
|
|
2382
2388
|
class: j(O.value.buttonIcon()),
|
|
2383
2389
|
"aria-hidden": "true"
|
|
2384
2390
|
}, null, 8, ["class"])]),
|
|
@@ -4,14 +4,14 @@ import { a as i, n as a, t as o } from "./InputStatus-BdHg-ibH.js";
|
|
|
4
4
|
import { a as s, i as c, n as l, r as u, t as d } from "./useTree-DjkjHeoy.js";
|
|
5
5
|
import { Fragment as f, Teleport as p, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createSlots as y, createTextVNode as b, createVNode as x, defineComponent as S, inject as C, mergeModels as w, mergeProps as T, normalizeClass as E, normalizeProps as D, onBeforeUnmount as O, onMounted as k, onUpdated as A, openBlock as j, provide as M, ref as N, renderList as P, renderSlot as F, resolveDynamicComponent as I, shallowRef as L, toDisplayString as R, toHandlers as z, toRef as B, unref as V, useAttrs as H, useId as U, useModel as ee, useSlots as te, useTemplateRef as W, watch as G, withCtx as K } from "vue";
|
|
6
6
|
import { Check as ne, ChevronLeft as re, ChevronRight as ie, Circle as ae, Eye as oe, EyeOff as se, Maximize2 as q, Minimize2 as ce, X as J } from "@lucide/vue";
|
|
7
|
-
import { autoselectElement as le, checkPasswordRequirements as ue, clampDialogOffset as de, closeTab as fe, controlIds as pe, dialog as
|
|
8
|
-
import { useFieldContext as
|
|
9
|
-
import { Tabs as
|
|
10
|
-
import { Dialog as
|
|
11
|
-
import { PasswordInput as
|
|
7
|
+
import { autoselectElement as le, checkPasswordRequirements as ue, clampDialogOffset as de, closeTab as fe, controlIds as pe, dialog as Y, dialogMoveForKey as me, dialogMoveKeys as he, focusFirst as ge, passwordInput as _e, passwordStrength as ve, scrollEdges as ye, setTextControlValue as be, tabs as X, tree as xe } from "@wirecore/wirelayer-recipes";
|
|
8
|
+
import { useFieldContext as Se } from "@ark-ui/vue/field";
|
|
9
|
+
import { Tabs as Z, useTabsContext as Ce } from "@ark-ui/vue/tabs";
|
|
10
|
+
import { Dialog as Q, useDialogContext as we } from "@ark-ui/vue/dialog";
|
|
11
|
+
import { PasswordInput as $ } from "@ark-ui/vue/password-input";
|
|
12
12
|
import { TreeView as Te } from "@ark-ui/vue/tree-view";
|
|
13
13
|
//#region src/components/Tabs/context.ts
|
|
14
|
-
var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
14
|
+
var Ee = Symbol("wirecore-tabs-none-selected"), De = Symbol("wirecore-tabs-render-strategy"), Oe = /* @__PURE__ */ S({
|
|
15
15
|
inheritAttrs: !1,
|
|
16
16
|
__name: "Tabs",
|
|
17
17
|
props: {
|
|
@@ -32,8 +32,11 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["update:modelValue"],
|
|
34
34
|
setup(t, { emit: n }) {
|
|
35
|
-
let r = t, i = e("tabs",
|
|
36
|
-
return M(Ee, m(() => r.modelValue === null)), (
|
|
35
|
+
let r = t, i = e("tabs", X, () => r.classes), a = n, o = H(), s = i(), c = m(() => r.modelValue);
|
|
36
|
+
return M(Ee, m(() => r.modelValue === null)), M(De, m(() => ({
|
|
37
|
+
lazyMount: r.lazyMount,
|
|
38
|
+
unmountOnExit: r.unmountOnExit
|
|
39
|
+
}))), (e, n) => (j(), h(V(Z).Root, T({
|
|
37
40
|
...V(o),
|
|
38
41
|
class: V(s).base({ class: E(V(o).class) })
|
|
39
42
|
}, {
|
|
@@ -41,8 +44,6 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
41
44
|
"default-value": t.defaultValue,
|
|
42
45
|
orientation: t.orientation,
|
|
43
46
|
"activation-mode": t.activationMode,
|
|
44
|
-
"lazy-mount": t.lazyMount,
|
|
45
|
-
"unmount-on-exit": t.unmountOnExit,
|
|
46
47
|
translations: t.label ? { listLabel: t.label } : void 0,
|
|
47
48
|
"onUpdate:modelValue": n[0] ||= (e) => a("update:modelValue", e)
|
|
48
49
|
}), {
|
|
@@ -53,12 +54,10 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
53
54
|
"default-value",
|
|
54
55
|
"orientation",
|
|
55
56
|
"activation-mode",
|
|
56
|
-
"lazy-mount",
|
|
57
|
-
"unmount-on-exit",
|
|
58
57
|
"translations"
|
|
59
58
|
]));
|
|
60
59
|
}
|
|
61
|
-
}),
|
|
60
|
+
}), ke = /* @__PURE__ */ S({
|
|
62
61
|
inheritAttrs: !1,
|
|
63
62
|
__name: "TabsContent",
|
|
64
63
|
props: {
|
|
@@ -66,25 +65,32 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
66
65
|
classes: {}
|
|
67
66
|
},
|
|
68
67
|
setup(t) {
|
|
69
|
-
let n = t, r = e("tabs",
|
|
70
|
-
|
|
68
|
+
let n = t, r = e("tabs", X, () => n.classes), i = H(), a = r(), o = Ce(), s = C(De, m(() => ({
|
|
69
|
+
lazyMount: !1,
|
|
70
|
+
unmountOnExit: !1
|
|
71
|
+
}))), c = m(() => o.value.value === n.value), l = N(c.value);
|
|
72
|
+
G(c, (e) => {
|
|
73
|
+
e && (l.value = !0);
|
|
74
|
+
});
|
|
75
|
+
let u = m(() => c.value || (l.value ? !s.value.unmountOnExit : !s.value.lazyMount));
|
|
76
|
+
return (e, n) => u.value ? (j(), h(V(Z).Content, T({ key: 0 }, {
|
|
71
77
|
...V(i),
|
|
72
78
|
class: V(a).content({ class: E(V(i).class) })
|
|
73
79
|
}, { value: t.value }), {
|
|
74
80
|
default: K(() => [F(e.$slots, "default")]),
|
|
75
81
|
_: 3
|
|
76
|
-
}, 16, ["value"]));
|
|
82
|
+
}, 16, ["value"])) : g("", !0);
|
|
77
83
|
}
|
|
78
|
-
}),
|
|
84
|
+
}), Ae = /* @__PURE__ */ S({
|
|
79
85
|
inheritAttrs: !1,
|
|
80
86
|
__name: "TabsList",
|
|
81
87
|
props: { scrollable: { type: Boolean } },
|
|
82
88
|
setup(t) {
|
|
83
|
-
let n = t, r = e("tabs",
|
|
89
|
+
let n = t, r = e("tabs", X), i = H(), a = r(), o = W("list"), s = N({
|
|
84
90
|
start: !1,
|
|
85
91
|
end: !1
|
|
86
92
|
}), c = () => {
|
|
87
|
-
o.value?.$el && (s.value =
|
|
93
|
+
o.value?.$el && (s.value = ye(o.value.$el));
|
|
88
94
|
}, l;
|
|
89
95
|
k(() => {
|
|
90
96
|
n.scrollable && o.value?.$el && (c(), l = new ResizeObserver(c), l.observe(o.value.$el));
|
|
@@ -111,7 +117,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
111
117
|
class: E(V(a).scrollButton()),
|
|
112
118
|
onClick: n[0] ||= (e) => u(!1)
|
|
113
119
|
}, [x(V(re), { class: E(V(a).scrollIcon()) }, null, 8, ["class"])], 2)) : g("", !0),
|
|
114
|
-
x(V(
|
|
120
|
+
x(V(Z).List, T({
|
|
115
121
|
ref_key: "list",
|
|
116
122
|
ref: o
|
|
117
123
|
}, {
|
|
@@ -130,7 +136,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
130
136
|
class: E(V(a).scrollButton()),
|
|
131
137
|
onClick: n[1] ||= (e) => u(!0)
|
|
132
138
|
}, [x(V(ie), { class: E(V(a).scrollIcon()) }, null, 8, ["class"])], 2)) : g("", !0)
|
|
133
|
-
], 2)) : (j(), h(V(
|
|
139
|
+
], 2)) : (j(), h(V(Z).List, D(T({ key: 1 }, {
|
|
134
140
|
...V(i),
|
|
135
141
|
class: V(a).list({ class: E(V(i).class) })
|
|
136
142
|
})), {
|
|
@@ -138,7 +144,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
138
144
|
_: 3
|
|
139
145
|
}, 16));
|
|
140
146
|
}
|
|
141
|
-
}),
|
|
147
|
+
}), je = ["disabled"], Me = /* @__PURE__ */ S({
|
|
142
148
|
inheritAttrs: !1,
|
|
143
149
|
__name: "TabsTrigger",
|
|
144
150
|
props: {
|
|
@@ -157,7 +163,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
157
163
|
},
|
|
158
164
|
emits: ["close"],
|
|
159
165
|
setup(t, { emit: n }) {
|
|
160
|
-
let r = t, i = n, a = e("tabs",
|
|
166
|
+
let r = t, i = n, a = e("tabs", X, () => r.classes), o = H(), s = m(() => a({ closable: r.closable })), c = C(Ee, null), l = W("trigger"), u = N(!1), d = () => {
|
|
161
167
|
let e = l.value?.$el;
|
|
162
168
|
u.value = !!e && e.closest("[role=tablist]")?.querySelector("[role=tab]:not([disabled])") === e;
|
|
163
169
|
};
|
|
@@ -177,7 +183,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
177
183
|
key: 0,
|
|
178
184
|
role: "presentation",
|
|
179
185
|
class: E(s.value.tab())
|
|
180
|
-
}, [x(V(
|
|
186
|
+
}, [x(V(Z).Trigger, T({
|
|
181
187
|
ref_key: "trigger",
|
|
182
188
|
ref: l
|
|
183
189
|
}, {
|
|
@@ -203,7 +209,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
203
209
|
class: E(s.value.close()),
|
|
204
210
|
disabled: t.disabled,
|
|
205
211
|
onClick: y
|
|
206
|
-
}, [x(V(J), { class: E(s.value.closeIcon()) }, null, 8, ["class"])], 10,
|
|
212
|
+
}, [x(V(J), { class: E(s.value.closeIcon()) }, null, 8, ["class"])], 10, je)], 2)) : (j(), h(V(Z).Trigger, T({
|
|
207
213
|
key: 1,
|
|
208
214
|
ref_key: "trigger",
|
|
209
215
|
ref: l
|
|
@@ -223,7 +229,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
223
229
|
_: 3
|
|
224
230
|
}, 16, ["value", "disabled"]));
|
|
225
231
|
}
|
|
226
|
-
}),
|
|
232
|
+
}), Ne = Symbol("wirecore-dialog-root"), Pe = Symbol("wirecore-dialog-content"), Fe = /* @__PURE__ */ S({
|
|
227
233
|
__name: "Dialog",
|
|
228
234
|
props: {
|
|
229
235
|
open: {
|
|
@@ -250,12 +256,12 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
250
256
|
},
|
|
251
257
|
emits: ["update:open"],
|
|
252
258
|
setup(e, { emit: t }) {
|
|
253
|
-
let r = e, i = t, a = n("dialog",
|
|
254
|
-
M(
|
|
259
|
+
let r = e, i = t, a = n("dialog", Y), o = m(() => r.closeOnInteractOutside ?? a().closeOnInteractOutside);
|
|
260
|
+
M(Ne, m(() => ({ modal: r.modal })));
|
|
255
261
|
let s = L(null);
|
|
256
|
-
M(
|
|
262
|
+
M(Pe, s);
|
|
257
263
|
let c = () => le(s.value) ?? (r.role === "alertdialog" ? s.value?.querySelector("[data-part=close-trigger]") : null) ?? null;
|
|
258
|
-
return (t, n) => (j(), h(V(
|
|
264
|
+
return (t, n) => (j(), h(V(Q).Root, {
|
|
259
265
|
open: e.open,
|
|
260
266
|
"default-open": e.defaultOpen,
|
|
261
267
|
role: e.role,
|
|
@@ -281,7 +287,7 @@ var Ee = Symbol("wirecore-tabs-none-selected"), De = /* @__PURE__ */ S({
|
|
|
281
287
|
});
|
|
282
288
|
//#endregion
|
|
283
289
|
//#region src/components/Dialog/drag.ts
|
|
284
|
-
function
|
|
290
|
+
function Ie(e) {
|
|
285
291
|
let t = N({
|
|
286
292
|
x: 0,
|
|
287
293
|
y: 0
|
|
@@ -320,7 +326,7 @@ function Pe(e) {
|
|
|
320
326
|
}
|
|
321
327
|
function s(n) {
|
|
322
328
|
if (!e()) return;
|
|
323
|
-
let i =
|
|
329
|
+
let i = me(n);
|
|
324
330
|
i && (n.preventDefault(), r({
|
|
325
331
|
x: t.value.x + i.x,
|
|
326
332
|
y: t.value.y + i.y
|
|
@@ -345,7 +351,7 @@ function Pe(e) {
|
|
|
345
351
|
}
|
|
346
352
|
//#endregion
|
|
347
353
|
//#region src/components/Dialog/DialogContent.vue?vue&type=script&setup=true&lang.ts
|
|
348
|
-
var
|
|
354
|
+
var Le = ["aria-label"], Re = /* @__PURE__ */ S({
|
|
349
355
|
inheritAttrs: !1,
|
|
350
356
|
__name: "DialogContent",
|
|
351
357
|
props: {
|
|
@@ -385,19 +391,19 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
385
391
|
},
|
|
386
392
|
emits: ["update:maximized"],
|
|
387
393
|
setup(r, { expose: i, emit: a }) {
|
|
388
|
-
let o = t(), s = r, c = a, l = te(), u = e("dialog",
|
|
394
|
+
let o = t(), s = r, c = a, l = te(), u = e("dialog", Y, () => s.classes), d = n("dialog", Y), f = m(() => s.titlePosition ?? (d().titleInHeader ? "header" : "body")), y = H(), S = C(Ne, null), w = m(() => S?.value.modal ?? !0), D = C(Pe, null), O = W("content");
|
|
389
395
|
G(() => O.value?.$el ?? null, (e) => {
|
|
390
396
|
D && (D.value = e);
|
|
391
397
|
}, {
|
|
392
398
|
immediate: !0,
|
|
393
399
|
flush: "sync"
|
|
394
|
-
}), i({ focusFirst: () =>
|
|
400
|
+
}), i({ focusFirst: () => ge(O.value?.$el) });
|
|
395
401
|
let k = N(s.defaultMaximized ?? !1), A = m(() => s.maximized ?? k.value);
|
|
396
402
|
function M() {
|
|
397
403
|
let e = !A.value;
|
|
398
404
|
k.value = e, c("update:maximized", e);
|
|
399
405
|
}
|
|
400
|
-
let P =
|
|
406
|
+
let P = Ie(() => s.draggable && !A.value && !s.fullscreen), L = we();
|
|
401
407
|
G(() => L.value.open, (e) => !e && P.reset());
|
|
402
408
|
let B = m(() => u({
|
|
403
409
|
status: s.status,
|
|
@@ -411,18 +417,18 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
411
417
|
hideTitle: s.hideTitle ?? !!l.header,
|
|
412
418
|
titleInHeader: f.value === "header"
|
|
413
419
|
}));
|
|
414
|
-
return (e, t) => (j(), h(p, { to: r.portalTarget ?? "body" }, [w.value ? (j(), h(V(
|
|
420
|
+
return (e, t) => (j(), h(p, { to: r.portalTarget ?? "body" }, [w.value ? (j(), h(V(Q).Backdrop, {
|
|
415
421
|
key: 0,
|
|
416
422
|
class: E(B.value.backdrop())
|
|
417
|
-
}, null, 8, ["class"])) : g("", !0), x(V(
|
|
418
|
-
default: K(() => [x(V(
|
|
423
|
+
}, null, 8, ["class"])) : g("", !0), x(V(Q).Positioner, { class: E(B.value.positioner()) }, {
|
|
424
|
+
default: K(() => [x(V(Q).Content, T({
|
|
419
425
|
ref_key: "content",
|
|
420
426
|
ref: O
|
|
421
427
|
}, {
|
|
422
428
|
...V(y),
|
|
423
429
|
class: B.value.content({ class: E(V(y).class) }),
|
|
424
430
|
...V(P).style.value ? { style: [V(y).style, V(P).style.value] } : {},
|
|
425
|
-
...r.draggable ? { "aria-keyshortcuts": V(
|
|
431
|
+
...r.draggable ? { "aria-keyshortcuts": V(he) } : {}
|
|
426
432
|
}, { onKeydown: t[0] ||= (e) => r.draggable && V(P).onKeyDown(e) }), {
|
|
427
433
|
default: K(() => [
|
|
428
434
|
v("div", T({ class: B.value.header() }, z(r.draggable ? V(P).header : {}, !0)), [
|
|
@@ -436,13 +442,13 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
436
442
|
e.$slots.header ? (j(), _("div", {
|
|
437
443
|
key: 1,
|
|
438
444
|
class: E(B.value.headerContent())
|
|
439
|
-
}, [F(e.$slots, "header"), f.value === "header" ? (j(), h(V(
|
|
445
|
+
}, [F(e.$slots, "header"), f.value === "header" ? (j(), h(V(Q).Title, {
|
|
440
446
|
key: 0,
|
|
441
447
|
class: E(B.value.title())
|
|
442
448
|
}, {
|
|
443
449
|
default: K(() => [b(R(r.title), 1)]),
|
|
444
450
|
_: 1
|
|
445
|
-
}, 8, ["class"])) : g("", !0)], 2)) : f.value === "header" ? (j(), h(V(
|
|
451
|
+
}, 8, ["class"])) : g("", !0)], 2)) : f.value === "header" ? (j(), h(V(Q).Title, {
|
|
446
452
|
key: 2,
|
|
447
453
|
class: E(B.value.title())
|
|
448
454
|
}, {
|
|
@@ -458,8 +464,8 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
458
464
|
}, [(j(), h(I(A.value ? V(ce) : V(q)), {
|
|
459
465
|
class: E(B.value.maximizeIcon()),
|
|
460
466
|
"aria-hidden": "true"
|
|
461
|
-
}, null, 8, ["class"]))], 10,
|
|
462
|
-
r.closable ? (j(), h(V(
|
|
467
|
+
}, null, 8, ["class"]))], 10, Le)) : g("", !0),
|
|
468
|
+
r.closable ? (j(), h(V(Q).CloseTrigger, {
|
|
463
469
|
key: 4,
|
|
464
470
|
class: E(B.value.close()),
|
|
465
471
|
"aria-label": r.closeLabel ?? V(o).common.close
|
|
@@ -472,14 +478,14 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
472
478
|
}, 8, ["class", "aria-label"])) : g("", !0)
|
|
473
479
|
], 16),
|
|
474
480
|
v("div", { class: E(B.value.body()) }, [
|
|
475
|
-
f.value === "header" ? g("", !0) : (j(), h(V(
|
|
481
|
+
f.value === "header" ? g("", !0) : (j(), h(V(Q).Title, {
|
|
476
482
|
key: 0,
|
|
477
483
|
class: E(B.value.title())
|
|
478
484
|
}, {
|
|
479
485
|
default: K(() => [b(R(r.title), 1)]),
|
|
480
486
|
_: 1
|
|
481
487
|
}, 8, ["class"])),
|
|
482
|
-
r.description ? (j(), h(V(
|
|
488
|
+
r.description ? (j(), h(V(Q).Description, {
|
|
483
489
|
key: 1,
|
|
484
490
|
class: E(B.value.description())
|
|
485
491
|
}, {
|
|
@@ -498,7 +504,7 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
498
504
|
_: 3
|
|
499
505
|
}, 8, ["class"])], 8, ["to"]));
|
|
500
506
|
}
|
|
501
|
-
}),
|
|
507
|
+
}), ze = ["data-level", "data-filled"], Be = ["id"], Ve = ["id", "aria-label"], He = ["data-met"], Ue = /* @__PURE__ */ S({
|
|
502
508
|
inheritAttrs: !1,
|
|
503
509
|
__name: "PasswordInput",
|
|
504
510
|
props: /*@__PURE__*/ w({
|
|
@@ -551,11 +557,11 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
551
557
|
}),
|
|
552
558
|
emits: /*@__PURE__*/ w(["update:visible"], ["update:modelValue"]),
|
|
553
559
|
setup(n, { expose: s, emit: c }) {
|
|
554
|
-
let l = t(), u = n, d = c, p = e("passwordInput",
|
|
560
|
+
let l = t(), u = n, d = c, p = e("passwordInput", _e, () => u.classes), y = ee(n, "modelValue"), S = H(), C = m(() => r(S)), w = Se(), D = i(), O = m(() => !!u.invalid || !!w?.value.invalid), k = m(() => !O.value && (!!u.success || D.value.success)), A = m(() => p({
|
|
555
561
|
size: u.size,
|
|
556
562
|
success: k.value,
|
|
557
563
|
mono: u.mono
|
|
558
|
-
})), M = U(), F = N(u.defaultValue), I = m(() => y.value ?? F.value), L = m(() =>
|
|
564
|
+
})), M = U(), F = N(u.defaultValue), I = m(() => y.value ?? F.value), L = m(() => ve(I.value ?? "")), z = m(() => I.value ? l.passwordStrength.levels[L.value] : ""), B = m(() => ue(I.value ?? "", u.requirements ?? []));
|
|
559
565
|
function te(e) {
|
|
560
566
|
F.value = e.target.value, y.value = F.value;
|
|
561
567
|
}
|
|
@@ -566,11 +572,11 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
566
572
|
].filter(Boolean).join(" ") : void 0), re = m(() => !!u.disabled || !!w?.value.disabled), ie = m(() => !!u.readOnly || !!w?.value.readOnly), q = W("control");
|
|
567
573
|
function ce() {
|
|
568
574
|
let e = q.value?.$el.querySelector("input");
|
|
569
|
-
e && (
|
|
575
|
+
e && (be(e), e.focus());
|
|
570
576
|
}
|
|
571
577
|
s(a(() => q.value?.$el.querySelector("input")));
|
|
572
578
|
let J = m(() => u.autocomplete), le = m(() => pe(u.id, "input", { input: w?.value.ids.control }));
|
|
573
|
-
return (e, t) => (j(), h(V(
|
|
579
|
+
return (e, t) => (j(), h(V($).Root, T({
|
|
574
580
|
class: A.value.base({ class: C.value.className }),
|
|
575
581
|
style: C.value.style,
|
|
576
582
|
invalid: n.invalid,
|
|
@@ -584,13 +590,13 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
584
590
|
translations: V(l).passwordInput
|
|
585
591
|
}, le.value, { onVisibilityChange: t[0] ||= (e) => d("update:visible", e.visible) }), {
|
|
586
592
|
default: K(() => [
|
|
587
|
-
x(V(
|
|
593
|
+
x(V($).Control, {
|
|
588
594
|
ref_key: "control",
|
|
589
595
|
ref: q,
|
|
590
596
|
class: E(A.value.control())
|
|
591
597
|
}, {
|
|
592
598
|
default: K(() => [
|
|
593
|
-
x(V(
|
|
599
|
+
x(V($).Input, T(C.value.rest, {
|
|
594
600
|
"aria-describedby": G.value,
|
|
595
601
|
"aria-busy": n.loading || void 0,
|
|
596
602
|
value: I.value,
|
|
@@ -622,8 +628,8 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
622
628
|
"success",
|
|
623
629
|
"classes"
|
|
624
630
|
])) : g("", !0),
|
|
625
|
-
x(V(
|
|
626
|
-
default: K(() => [x(V(
|
|
631
|
+
x(V($).VisibilityTrigger, { class: E(A.value.toggle()) }, {
|
|
632
|
+
default: K(() => [x(V($).Indicator, null, {
|
|
627
633
|
fallback: K(() => [x(V(oe), {
|
|
628
634
|
class: E(A.value.toggleIcon()),
|
|
629
635
|
"aria-hidden": "true"
|
|
@@ -650,11 +656,11 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
650
656
|
class: E(A.value.bar()),
|
|
651
657
|
"data-level": L.value,
|
|
652
658
|
"data-filled": e <= L.value || void 0
|
|
653
|
-
}, null, 10,
|
|
659
|
+
}, null, 10, ze)), 64))], 2), v("span", {
|
|
654
660
|
id: `${V(M)}strength`,
|
|
655
661
|
class: E(A.value.strengthText()),
|
|
656
662
|
"aria-live": "polite"
|
|
657
|
-
}, [z.value ? (j(), _(f, { key: 0 }, [b(R(V(l).passwordStrength.label(z.value)), 1)], 64)) : g("", !0)], 10,
|
|
663
|
+
}, [z.value ? (j(), _(f, { key: 0 }, [b(R(V(l).passwordStrength.label(z.value)), 1)], 64)) : g("", !0)], 10, Be)], 2)) : g("", !0),
|
|
658
664
|
n.requirements?.length ? (j(), _("ul", {
|
|
659
665
|
key: 1,
|
|
660
666
|
id: `${V(M)}requirements`,
|
|
@@ -676,7 +682,7 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
676
682
|
}, null, 8, ["class"])),
|
|
677
683
|
b(" " + R(e.label), 1),
|
|
678
684
|
v("span", { class: E(A.value.requirementState()) }, R(`: ${B.value[t] ? V(l).passwordRequirements.met : V(l).passwordRequirements.unmet}`), 3)
|
|
679
|
-
], 10,
|
|
685
|
+
], 10, He))), 128))], 10, Ve)) : g("", !0)
|
|
680
686
|
]),
|
|
681
687
|
_: 1
|
|
682
688
|
}, 16, [
|
|
@@ -693,7 +699,7 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
693
699
|
"translations"
|
|
694
700
|
]));
|
|
695
701
|
}
|
|
696
|
-
}),
|
|
702
|
+
}), We = /* @__PURE__ */ S({
|
|
697
703
|
inheritAttrs: !1,
|
|
698
704
|
__name: "Tree",
|
|
699
705
|
props: {
|
|
@@ -751,7 +757,7 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
751
757
|
"loadChildren"
|
|
752
758
|
],
|
|
753
759
|
setup(n, { expose: r, emit: i }) {
|
|
754
|
-
let a = t(), o = n, p = e("tree",
|
|
760
|
+
let a = t(), o = n, p = e("tree", xe, () => o.classes), v = i, S = te(), C = H(), w = p(), D = a.tree, O = N(null), k = m(() => O.value?.$el ?? null), A = d(o, v, k);
|
|
755
761
|
M(c, A.drag), M(s, {
|
|
756
762
|
...A,
|
|
757
763
|
showLines: B(o, "showLines")
|
|
@@ -849,4 +855,4 @@ var Fe = ["aria-label"], Ie = /* @__PURE__ */ S({
|
|
|
849
855
|
}
|
|
850
856
|
});
|
|
851
857
|
//#endregion
|
|
852
|
-
export {
|
|
858
|
+
export { Ne as a, ke as c, Fe as i, Oe as l, Ue as n, Me as o, Re as r, Ae as s, We as t };
|
|
@@ -5,8 +5,13 @@ export interface BannerProps {
|
|
|
5
5
|
variant?: BannerVariant;
|
|
6
6
|
/** Bold text before the message */
|
|
7
7
|
title?: string;
|
|
8
|
-
/**
|
|
8
|
+
/**
|
|
9
|
+
* `inline` (default): in the flow; `top`/`bottom`: fixed to that edge of the window; `sticky`: in the flow, stays at
|
|
10
|
+
* the top edge while the page scrolls (opaque, below dialogs and drawers)
|
|
11
|
+
*/
|
|
9
12
|
position?: BannerPosition;
|
|
13
|
+
/** Full fill in the colour of the variant (opaque) – for permanent notices like "TEST SYSTEM" or maintenance */
|
|
14
|
+
solid?: boolean;
|
|
10
15
|
/** Shows a close button */
|
|
11
16
|
dismissible?: boolean;
|
|
12
17
|
/** Controlled visibility – use with v-model:open */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Banner.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/Banner.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Banner.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Banner/Banner.vue"],"names":[],"mappings":"AAqGA,OAAO,EACH,MAAM,IAAI,YAAY,EACtB,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,aAAa,EAErB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAsD,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAIzF,MAAM,WAAW,WAAW;IACxB,uDAAuD;IACvD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,mCAAmC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,gHAAgH;IAChH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oDAAoD;IACpD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yGAAyG;IACzG,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AASD,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,IAAI,OAAO,CAAC;IAAC,OAAO,CAAC,IAAI,OAAO,CAAA;CAAE,CAAC;AAoHhE,QAAA,MAAM,UAAU;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.vue"],"names":[],"mappings":"AAwEA,OAAO,EAAE,KAAK,aAAa,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAKrF,MAAM,WAAW,SAAS;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,6GAA6G;IAC7G,cAAc,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACxC,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AA6FD,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabsContent.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabsContent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabsContent.vue"],"names":[],"mappings":"AA+CA,OAAO,EAAE,KAAK,aAAa,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAKrF,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AA6DD,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU,4SAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
2
|
/** The Tabs' value is null on purpose (no tab selected): the first tab stays reachable with Tab */
|
|
3
3
|
export declare const tabsNoneSelectedKey: InjectionKey<ComputedRef<boolean>>;
|
|
4
|
+
/** lazyMount / unmountOnExit of the Tabs, applied by each TabsContent */
|
|
5
|
+
export declare const tabsRenderStrategyKey: InjectionKey<ComputedRef<{
|
|
6
|
+
lazyMount?: boolean;
|
|
7
|
+
unmountOnExit?: boolean;
|
|
8
|
+
}>>;
|
|
4
9
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAErD,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAyC,CAAC"}
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAErD,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAyC,CAAC;AAE7G,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAAC,WAAW,CAAC;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CACnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.vue"],"names":[],"mappings":"AAmPA,OAAO,EAEH,QAAQ,IAAI,cAAc,EAC1B,aAAa,IAAI,mBAAmB,EACpC,KAAK,aAAa,EAClB,KAAK,IAAI,EACZ,MAAM,6BAA6B,CAAC;AAmBrC,MAAM,WAAW,aAAa;IAC1B,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+GAA+G;IAC/G,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,cAAc,CAAC,GAAG,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC9F;AAID,KAAK,WAAW,GAAG,aAAa,CAAC;AA8GjC,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiKxD,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/data-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, n as t, o as n, r } from "./recipes-CD2Ibsv9.js";
|
|
2
|
-
import { a as i, b as a, i as o, n as s, o as c, r as l, t as u, v as ee, x as d, y as te } from "./RecipesProvider-
|
|
2
|
+
import { a as i, b as a, i as o, n as s, o as c, r as l, t as u, v as ee, x as d, y as te } from "./RecipesProvider-BsuOKVkQ.js";
|
|
3
3
|
import { t as ne } from "./Button-WA6BonwF.js";
|
|
4
4
|
import { t as re } from "./Checkbox-DILwucBG.js";
|
|
5
5
|
import { r as ie } from "./InputStatus-BdHg-ibH.js";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, i as t, n, o as r, r as i, t as a } from "./recipes-CD2Ibsv9.js";
|
|
2
|
-
import { C as o, S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as ee } from "./RecipesProvider-
|
|
2
|
+
import { C as o, S as s, _ as c, a as l, b as u, c as d, d as f, f as p, g as m, h, i as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as ee } from "./RecipesProvider-BsuOKVkQ.js";
|
|
3
3
|
import { t as te } from "./attrs-KNjeRUCf.js";
|
|
4
4
|
import { t as k } from "./Button-WA6BonwF.js";
|
|
5
5
|
import { t as ne } from "./Checkbox-DILwucBG.js";
|
|
@@ -9,7 +9,7 @@ import { n as A, t as se } from "./Input-DqFiLzOR.js";
|
|
|
9
9
|
import { t as ce } from "./label-for-eQvYjsM5.js";
|
|
10
10
|
import { i as le, n as ue, r as de, t as fe } from "./Select-B5c6Y3mf.js";
|
|
11
11
|
import { a as pe, i as me, n as he, r as ge, t as _e } from "./Highlight-BM-J3Jj0.js";
|
|
12
|
-
import { a as ve, c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Tree-
|
|
12
|
+
import { a as ve, c as ye, i as be, l as xe, n as Se, o as Ce, r as we, s as Te, t as Ee } from "./Tree-8KjrR3Z-.js";
|
|
13
13
|
import { t as De } from "./Slider-Z-rsNeI1.js";
|
|
14
14
|
import { t as Oe } from "./CopyButton-BVRwSCRj.js";
|
|
15
15
|
import { Fragment as j, Teleport as ke, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as Ae, createTextVNode as L, createVNode as R, customRef as je, defineComponent as z, getCurrentInstance as Me, getCurrentScope as Ne, guardReactiveProps as B, h as Pe, inject as Fe, isRef as Ie, mergeProps as V, nextTick as Le, normalizeClass as H, normalizeProps as U, normalizeStyle as W, onBeforeUnmount as Re, onMounted as ze, onScopeDispose as Be, onUpdated as Ve, openBlock as G, provide as He, reactive as Ue, ref as K, renderList as q, renderSlot as J, resolveComponent as We, resolveDynamicComponent as Y, shallowRef as Ge, toDisplayString as X, toValue as Ke, unref as Z, useAttrs as Q, useId as qe, useSlots as Je, useTemplateRef as Ye, watch as Xe, watchEffect as Ze, withCtx as $, withKeys as Qe, withModifiers as $e } from "vue";
|
|
@@ -13632,6 +13632,7 @@ var Vg = /* @__PURE__ */ z({
|
|
|
13632
13632
|
variant: {},
|
|
13633
13633
|
title: {},
|
|
13634
13634
|
position: {},
|
|
13635
|
+
solid: { type: Boolean },
|
|
13635
13636
|
dismissible: { type: Boolean },
|
|
13636
13637
|
open: {
|
|
13637
13638
|
type: Boolean,
|
|
@@ -13647,7 +13648,8 @@ var Vg = /* @__PURE__ */ z({
|
|
|
13647
13648
|
setup(e, { emit: t }) {
|
|
13648
13649
|
let i = e, a = n("banner", ir, () => i.classes), o = t, s = Je(), c = Q(), l = r(), u = M(() => a({
|
|
13649
13650
|
variant: i.variant,
|
|
13650
|
-
position: i.position
|
|
13651
|
+
position: i.position,
|
|
13652
|
+
solid: i.solid
|
|
13651
13653
|
})), d = {
|
|
13652
13654
|
info: Mt,
|
|
13653
13655
|
success: xt,
|
package/dist/pdf.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as e, n as t, o as n } from "./recipes-CD2Ibsv9.js";
|
|
|
2
2
|
import { t as r } from "./Button-WA6BonwF.js";
|
|
3
3
|
import { t as i } from "./Field-xVx6PoU7.js";
|
|
4
4
|
import { i as a, t as o } from "./Select-B5c6Y3mf.js";
|
|
5
|
-
import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-
|
|
5
|
+
import { c as s, i as c, l, n as u, o as d, r as ee, s as te, t as ne } from "./Tree-8KjrR3Z-.js";
|
|
6
6
|
import { Fragment as f, computed as p, createBlock as re, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createTextVNode as _, createVNode as v, defineComponent as y, mergeProps as ie, nextTick as ae, normalizeClass as b, normalizeStyle as oe, onBeforeUnmount as se, onMounted as ce, openBlock as x, reactive as le, ref as S, renderList as ue, resolveDynamicComponent as de, toDisplayString as C, unref as w, useAttrs as fe, useId as pe, useTemplateRef as T, vModelText as me, watch as E, withCtx as D, withDirectives as he, withModifiers as ge } from "vue";
|
|
7
7
|
import { CaseSensitive as _e, ChevronDown as ve, ChevronUp as ye, Download as be, FileWarning as xe, Maximize as Se, Minimize as Ce, PanelLeft as we, Printer as Te, RotateCw as Ee, Search as De, X as Oe, ZoomIn as ke, ZoomOut as Ae } from "@lucide/vue";
|
|
8
8
|
import { PDF_ZOOM_MAX as je, PDF_ZOOM_MIN as Me, clampPdfPage as Ne, clampPdfZoom as Pe, downloadBytes as Fe, input as Ie, normalizePdfRotation as O, parsePdfPage as Le, pdfFileName as Re, pdfKeyAction as ze, pdfPrintDocument as k, pdfSearchText as Be, pdfThumbnailSize as Ve, pdfTools as A, pdfViewer as He, pdfZoomFromKey as Ue, pdfZoomKey as We, pdfZoomStep as Ge, pdfZoomSteps as j, pdfZoomSteps as Ke, resolvePdfTools as qe, setupToolbar as Je } from "@wirecore/wirelayer-recipes";
|
package/llms-full.txt
CHANGED
|
@@ -419,7 +419,8 @@ Page-wide notice: message in a live region (role="alert" for danger, else "statu
|
|
|
419
419
|
| --- | --- | --- |
|
|
420
420
|
| variant? | `BannerVariant` | info (default), success, warn, danger or neutral |
|
|
421
421
|
| title? | `string` | Bold text before the message |
|
|
422
|
-
| position? | `BannerPosition` | `inline` (default): in the flow; `top`/`bottom`: fixed to that edge of the window |
|
|
422
|
+
| position? | `BannerPosition` | `inline` (default): in the flow; `top`/`bottom`: fixed to that edge of the window; `sticky`: in the flow, stays at the top edge while the page scrolls (opaque, below dialogs and drawers) |
|
|
423
|
+
| solid? | `boolean` | Full fill in the colour of the variant (opaque) – for permanent notices like "TEST SYSTEM" or maintenance |
|
|
423
424
|
| dismissible? | `boolean` | Shows a close button |
|
|
424
425
|
| v-model:open? | `boolean` | Controlled visibility – use with v-model:open |
|
|
425
426
|
| storage-key? | `string` | Remembers the dismissal in localStorage under this key – the banner stays hidden on the next visit |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecore/wirelayer-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "WireLayer components for Vue 3",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
"@ark-ui/vue": "^5.39.3",
|
|
167
167
|
"@internationalized/date": "^3.12.4",
|
|
168
168
|
"@lucide/vue": "^1.59.0",
|
|
169
|
-
"@wirecore/wirelayer-recipes": "^0.
|
|
169
|
+
"@wirecore/wirelayer-recipes": "^0.15.0",
|
|
170
170
|
"@wirecore/wirelayer-tokens": "^0.9.0"
|
|
171
171
|
},
|
|
172
172
|
"devDependencies": {
|