@wirecore/wirelayer-vue 0.15.1 → 0.17.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/DataTable.vue.d.ts.map +1 -1
- package/dist/data-table/types.d.ts +9 -0
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1025 -1024
- package/dist/index.js +5 -3
- package/dist/pdf.js +1 -1
- package/llms-full.txt +29 -1
- package/llms.txt +1 -0
- 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"])]),
|