@leodamours/ds-components 0.2.4 → 0.2.6
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/DsTable.vue.d.ts +12 -0
- package/dist/index.js +283 -280
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as
|
|
1
|
+
import { defineComponent as S, ref as j, watch as we, computed as k, openBlock as g, createElementBlock as v, normalizeClass as T, toDisplayString as E, createCommentVNode as D, renderSlot as N, createTextVNode as X, createBlock as I, resolveDynamicComponent as $e, normalizeStyle as he, createElementVNode as F, shallowRef as Ft, getCurrentScope as Ct, onScopeDispose as $t, shallowReadonly as be, unref as R, mergeProps as de, createVNode as _, withCtx as Re, Teleport as Le, withModifiers as Dt, Fragment as se, renderList as re, nextTick as je, withKeys as st, onBeforeUnmount as rt, Transition as at, onMounted as Et, TransitionGroup as At } from "vue";
|
|
2
2
|
const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
3
3
|
__name: "DsAvatar",
|
|
4
4
|
props: {
|
|
@@ -39,22 +39,22 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
39
39
|
neutral: "bg-neutral-soft text-neutral-on-soft"
|
|
40
40
|
}[n.variant]
|
|
41
41
|
].join(" "));
|
|
42
|
-
return (a, d) => (g(),
|
|
42
|
+
return (a, d) => (g(), v("span", {
|
|
43
43
|
class: T(s.value),
|
|
44
44
|
role: "img",
|
|
45
45
|
"aria-label": e.alt || e.name
|
|
46
46
|
}, [
|
|
47
|
-
e.src && !t.value ? (g(),
|
|
47
|
+
e.src && !t.value ? (g(), v("img", {
|
|
48
48
|
key: 0,
|
|
49
49
|
src: e.src,
|
|
50
50
|
alt: e.alt || e.name || "",
|
|
51
51
|
class: "w-full h-full object-cover rounded-full",
|
|
52
52
|
onError: d[0] || (d[0] = (i) => t.value = !0)
|
|
53
|
-
}, null, 40, Tt)) : (g(),
|
|
53
|
+
}, null, 40, Tt)) : (g(), v("span", {
|
|
54
54
|
key: 1,
|
|
55
55
|
class: T(r.value),
|
|
56
56
|
"aria-hidden": "true"
|
|
57
|
-
},
|
|
57
|
+
}, E(o.value), 3))
|
|
58
58
|
], 10, Bt));
|
|
59
59
|
}
|
|
60
60
|
}), os = /* @__PURE__ */ S({
|
|
@@ -99,20 +99,20 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
99
99
|
};
|
|
100
100
|
return ["inline-block", "rounded-full", s[n.size], r[n.variant]].join(" ");
|
|
101
101
|
});
|
|
102
|
-
return (s, r) => (g(),
|
|
102
|
+
return (s, r) => (g(), v("span", {
|
|
103
103
|
class: T(t.value)
|
|
104
104
|
}, [
|
|
105
|
-
e.dot ? (g(),
|
|
105
|
+
e.dot ? (g(), v("span", {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: T(o.value),
|
|
108
108
|
"aria-hidden": "true"
|
|
109
109
|
}, null, 2)) : D("", !0),
|
|
110
110
|
e.dot ? D("", !0) : N(s.$slots, "default", { key: 1 }, () => [
|
|
111
|
-
X(
|
|
111
|
+
X(E(e.label), 1)
|
|
112
112
|
])
|
|
113
113
|
], 2));
|
|
114
114
|
}
|
|
115
|
-
}), Rt = ["type", "disabled", "aria-label", "aria-busy"],
|
|
115
|
+
}), Rt = ["type", "disabled", "aria-label", "aria-busy"], Lt = { key: 1 }, Ot = /* @__PURE__ */ S({
|
|
116
116
|
__name: "DsButton",
|
|
117
117
|
props: {
|
|
118
118
|
label: {},
|
|
@@ -209,7 +209,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
209
209
|
medium: "w-4 h-4",
|
|
210
210
|
large: "w-5 h-5"
|
|
211
211
|
})[n.size]);
|
|
212
|
-
return (s, r) => (g(),
|
|
212
|
+
return (s, r) => (g(), v("button", {
|
|
213
213
|
type: e.htmlType,
|
|
214
214
|
disabled: e.disabled || e.loading,
|
|
215
215
|
"aria-label": e.ariaLabel,
|
|
@@ -223,7 +223,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
223
223
|
style: he(e.label || s.$slots.default ? "margin-right: 0.375rem" : ""),
|
|
224
224
|
"aria-hidden": "true"
|
|
225
225
|
}, null, 8, ["class", "style"])) : D("", !0),
|
|
226
|
-
e.label ? (g(),
|
|
226
|
+
e.label ? (g(), v("span", Lt, E(e.label), 1)) : N(s.$slots, "default", { key: 2 }),
|
|
227
227
|
e.iconRight ? (g(), I($e(e.iconRight), {
|
|
228
228
|
key: 3,
|
|
229
229
|
class: T(o.value),
|
|
@@ -232,7 +232,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
232
232
|
}, null, 8, ["class", "style"])) : D("", !0)
|
|
233
233
|
], 10, Rt));
|
|
234
234
|
}
|
|
235
|
-
}),
|
|
235
|
+
}), Vt = ["id", "checked", "disabled", "value"], St = {
|
|
236
236
|
key: 0,
|
|
237
237
|
viewBox: "0 0 12 12",
|
|
238
238
|
fill: "none",
|
|
@@ -283,7 +283,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
283
283
|
const c = i.target.checked;
|
|
284
284
|
o("update:modelValue", c), o("change", c, i);
|
|
285
285
|
};
|
|
286
|
-
return (i, b) => (g(),
|
|
286
|
+
return (i, b) => (g(), v("label", {
|
|
287
287
|
class: T([
|
|
288
288
|
"inline-flex items-center gap-2",
|
|
289
289
|
e.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
@@ -298,21 +298,21 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
298
298
|
value: e.value,
|
|
299
299
|
class: "sr-only peer",
|
|
300
300
|
onChange: d
|
|
301
|
-
}, null, 40,
|
|
301
|
+
}, null, 40, Vt),
|
|
302
302
|
F("span", {
|
|
303
303
|
class: T(r.value),
|
|
304
304
|
"aria-hidden": "true"
|
|
305
305
|
}, [
|
|
306
|
-
e.modelValue ? (g(),
|
|
306
|
+
e.modelValue ? (g(), v("svg", St, [...b[0] || (b[0] = [
|
|
307
307
|
F("polyline", { points: "2.5 6 5 8.5 9.5 3.5" }, null, -1)
|
|
308
308
|
])])) : D("", !0)
|
|
309
309
|
], 2),
|
|
310
|
-
e.label || i.$slots.default ? (g(),
|
|
310
|
+
e.label || i.$slots.default ? (g(), v("span", {
|
|
311
311
|
key: 0,
|
|
312
312
|
class: T(a.value)
|
|
313
313
|
}, [
|
|
314
314
|
N(i.$slots, "default", {}, () => [
|
|
315
|
-
X(
|
|
315
|
+
X(E(e.label), 1)
|
|
316
316
|
])
|
|
317
317
|
], 2)) : D("", !0)
|
|
318
318
|
], 2));
|
|
@@ -332,7 +332,7 @@ const Bt = ["aria-label"], Tt = ["src", "alt"], ns = /* @__PURE__ */ S({
|
|
|
332
332
|
function Pe(e, n, t) {
|
|
333
333
|
return q(e, ae(n, t));
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function pe(e, n) {
|
|
336
336
|
return typeof e == "function" ? e(n) : e;
|
|
337
337
|
}
|
|
338
338
|
function le(e) {
|
|
@@ -487,7 +487,7 @@ async function Ut(e, n) {
|
|
|
487
487
|
elementContext: l = "floating",
|
|
488
488
|
altBoundary: f = !1,
|
|
489
489
|
padding: u = 0
|
|
490
|
-
} =
|
|
490
|
+
} = pe(n, e), m = it(u), y = d[f ? l === "floating" ? "reference" : "floating" : l], w = Ae(await r.getClippingRect({
|
|
491
491
|
element: (t = await (r.isElement == null ? void 0 : r.isElement(y))) == null || t ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(d.floating)),
|
|
492
492
|
boundary: b,
|
|
493
493
|
rootBoundary: c,
|
|
@@ -503,17 +503,17 @@ async function Ut(e, n) {
|
|
|
503
503
|
} : {
|
|
504
504
|
x: 1,
|
|
505
505
|
y: 1
|
|
506
|
-
},
|
|
506
|
+
}, B = Ae(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
507
507
|
elements: d,
|
|
508
508
|
rect: C,
|
|
509
509
|
offsetParent: x,
|
|
510
510
|
strategy: i
|
|
511
511
|
}) : C);
|
|
512
512
|
return {
|
|
513
|
-
top: (w.top -
|
|
514
|
-
bottom: (
|
|
515
|
-
left: (w.left -
|
|
516
|
-
right: (
|
|
513
|
+
top: (w.top - B.top + m.top) / $.y,
|
|
514
|
+
bottom: (B.bottom - w.bottom + m.bottom) / $.y,
|
|
515
|
+
left: (w.left - B.left + m.left) / $.x,
|
|
516
|
+
right: (B.right - w.right + m.right) / $.x
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
const Xt = async (e, n, t) => {
|
|
@@ -539,8 +539,8 @@ const Xt = async (e, n, t) => {
|
|
|
539
539
|
} = d[y], {
|
|
540
540
|
x,
|
|
541
541
|
y: $,
|
|
542
|
-
data:
|
|
543
|
-
reset:
|
|
542
|
+
data: B,
|
|
543
|
+
reset: O
|
|
544
544
|
} = await C({
|
|
545
545
|
x: c,
|
|
546
546
|
y: l,
|
|
@@ -562,13 +562,13 @@ const Xt = async (e, n, t) => {
|
|
|
562
562
|
...u,
|
|
563
563
|
[w]: {
|
|
564
564
|
...u[w],
|
|
565
|
-
...
|
|
565
|
+
...B
|
|
566
566
|
}
|
|
567
|
-
},
|
|
567
|
+
}, O && m <= 50 && (m++, typeof O == "object" && (O.placement && (f = O.placement), O.rects && (b = O.rects === !0 ? await a.getElementRects({
|
|
568
568
|
reference: e,
|
|
569
569
|
floating: n,
|
|
570
570
|
strategy: s
|
|
571
|
-
}) :
|
|
571
|
+
}) : O.rects), {
|
|
572
572
|
x: c,
|
|
573
573
|
y: l
|
|
574
574
|
} = Ze(b, f, i)), y = -1);
|
|
@@ -595,21 +595,21 @@ const Xt = async (e, n, t) => {
|
|
|
595
595
|
} = n, {
|
|
596
596
|
element: b,
|
|
597
597
|
padding: c = 0
|
|
598
|
-
} =
|
|
598
|
+
} = pe(e, n) || {};
|
|
599
599
|
if (b == null)
|
|
600
600
|
return {};
|
|
601
601
|
const l = it(c), f = {
|
|
602
602
|
x: t,
|
|
603
603
|
y: o
|
|
604
|
-
}, u = qe(s), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = r.reference[m] + r.reference[u] - f[u] - r.floating[m],
|
|
605
|
-
let
|
|
606
|
-
(!
|
|
607
|
-
const z = $ / 2 -
|
|
604
|
+
}, u = qe(s), m = He(u), h = await a.getDimensions(b), y = u === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", $ = r.reference[m] + r.reference[u] - f[u] - r.floating[m], B = f[u] - r.reference[u], O = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(b));
|
|
605
|
+
let A = O ? O[x] : 0;
|
|
606
|
+
(!A || !await (a.isElement == null ? void 0 : a.isElement(O))) && (A = d.floating[x] || r.floating[m]);
|
|
607
|
+
const z = $ / 2 - B / 2, M = A / 2 - h[m] / 2 - 1, W = ae(l[w], M), Y = ae(l[C], M), U = W, p = A - h[m] - Y, L = A / 2 - h[m] / 2 + z, V = Pe(U, L, p), P = !i.arrow && ye(s) != null && L !== V && r.reference[m] / 2 - (L < U ? W : Y) - h[m] / 2 < 0, H = P ? L < U ? L - U : L - p : 0;
|
|
608
608
|
return {
|
|
609
609
|
[u]: f[u] + H,
|
|
610
610
|
data: {
|
|
611
|
-
[u]:
|
|
612
|
-
centerOffset:
|
|
611
|
+
[u]: V,
|
|
612
|
+
centerOffset: L - V - H,
|
|
613
613
|
...P && {
|
|
614
614
|
alignmentOffset: H
|
|
615
615
|
}
|
|
@@ -638,49 +638,49 @@ const Xt = async (e, n, t) => {
|
|
|
638
638
|
fallbackAxisSideDirection: m = "none",
|
|
639
639
|
flipAlignment: h = !0,
|
|
640
640
|
...y
|
|
641
|
-
} =
|
|
641
|
+
} = pe(e, n);
|
|
642
642
|
if ((t = r.arrow) != null && t.alignmentOffset)
|
|
643
643
|
return {};
|
|
644
|
-
const w = le(s), C = ne(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)),
|
|
645
|
-
!f &&
|
|
646
|
-
const
|
|
644
|
+
const w = le(s), C = ne(d), x = le(d) === d, $ = await (i.isRTL == null ? void 0 : i.isRTL(b.floating)), B = f || (x || !h ? [Ee(d)] : It(d)), O = m !== "none";
|
|
645
|
+
!f && O && B.push(...qt(d, h, m, $));
|
|
646
|
+
const A = [d, ...B], z = await i.detectOverflow(n, y), M = [];
|
|
647
647
|
let W = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
648
648
|
if (c && M.push(z[w]), l) {
|
|
649
|
-
const
|
|
650
|
-
M.push(z[
|
|
649
|
+
const L = Pt(s, a, $);
|
|
650
|
+
M.push(z[L[0]], z[L[1]]);
|
|
651
651
|
}
|
|
652
652
|
if (W = [...W, {
|
|
653
653
|
placement: s,
|
|
654
654
|
overflows: M
|
|
655
|
-
}], !M.every((
|
|
655
|
+
}], !M.every((L) => L <= 0)) {
|
|
656
656
|
var Y, U;
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
657
|
+
const L = (((Y = r.flip) == null ? void 0 : Y.index) || 0) + 1, V = A[L];
|
|
658
|
+
if (V && (!(l === "alignment" ? C !== ne(V) : !1) || // We leave the current main axis only if every placement on that axis
|
|
659
659
|
// overflows the main axis.
|
|
660
660
|
W.every((G) => ne(G.placement) === C ? G.overflows[0] > 0 : !0)))
|
|
661
661
|
return {
|
|
662
662
|
data: {
|
|
663
|
-
index:
|
|
663
|
+
index: L,
|
|
664
664
|
overflows: W
|
|
665
665
|
},
|
|
666
666
|
reset: {
|
|
667
|
-
placement:
|
|
667
|
+
placement: V
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
670
|
let P = (U = W.filter((H) => H.overflows[0] <= 0).sort((H, G) => H.overflows[1] - G.overflows[1])[0]) == null ? void 0 : U.placement;
|
|
671
671
|
if (!P)
|
|
672
672
|
switch (u) {
|
|
673
673
|
case "bestFit": {
|
|
674
|
-
var
|
|
675
|
-
const H = (
|
|
676
|
-
if (
|
|
674
|
+
var p;
|
|
675
|
+
const H = (p = W.filter((G) => {
|
|
676
|
+
if (O) {
|
|
677
677
|
const oe = ne(G.placement);
|
|
678
678
|
return oe === C || // Create a bias to the `y` side axis due to horizontal
|
|
679
679
|
// reading directions favoring greater width.
|
|
680
680
|
oe === "y";
|
|
681
681
|
}
|
|
682
682
|
return !0;
|
|
683
|
-
}).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, kt) => oe + kt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 :
|
|
683
|
+
}).map((G) => [G.placement, G.overflows.filter((oe) => oe > 0).reduce((oe, kt) => oe + kt, 0)]).sort((G, oe) => G[1] - oe[1])[0]) == null ? void 0 : p[0];
|
|
684
684
|
H && (P = H);
|
|
685
685
|
break;
|
|
686
686
|
}
|
|
@@ -704,7 +704,7 @@ async function Qt(e, n) {
|
|
|
704
704
|
placement: t,
|
|
705
705
|
platform: o,
|
|
706
706
|
elements: s
|
|
707
|
-
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = le(t), d = ye(t), i = ne(t) === "y", b = Jt.has(a) ? -1 : 1, c = r && i ? -1 : 1, l =
|
|
707
|
+
} = e, r = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), a = le(t), d = ye(t), i = ne(t) === "y", b = Jt.has(a) ? -1 : 1, c = r && i ? -1 : 1, l = pe(n, e);
|
|
708
708
|
let {
|
|
709
709
|
mainAxis: f,
|
|
710
710
|
crossAxis: u,
|
|
@@ -774,7 +774,7 @@ const Zt = function(e) {
|
|
|
774
774
|
}
|
|
775
775
|
},
|
|
776
776
|
...b
|
|
777
|
-
} =
|
|
777
|
+
} = pe(e, n), c = {
|
|
778
778
|
x: t,
|
|
779
779
|
y: o
|
|
780
780
|
}, l = await r.detectOverflow(n, b), f = ne(le(s)), u = lt(f);
|
|
@@ -820,22 +820,22 @@ const Zt = function(e) {
|
|
|
820
820
|
apply: i = () => {
|
|
821
821
|
},
|
|
822
822
|
...b
|
|
823
|
-
} =
|
|
823
|
+
} = pe(e, n), c = await a.detectOverflow(n, b), l = le(s), f = ye(s), u = ne(s) === "y", {
|
|
824
824
|
width: m,
|
|
825
825
|
height: h
|
|
826
826
|
} = r.floating;
|
|
827
827
|
let y, w;
|
|
828
828
|
l === "top" || l === "bottom" ? (y = l, w = f === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (w = l, y = f === "end" ? "top" : "bottom");
|
|
829
|
-
const C = h - c.top - c.bottom, x = m - c.left - c.right, $ = ae(h - c[y], C),
|
|
830
|
-
let
|
|
831
|
-
if ((t = n.middlewareData.shift) != null && t.enabled.x && (z = x), (o = n.middlewareData.shift) != null && o.enabled.y && (
|
|
832
|
-
const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0),
|
|
833
|
-
u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) :
|
|
829
|
+
const C = h - c.top - c.bottom, x = m - c.left - c.right, $ = ae(h - c[y], C), B = ae(m - c[w], x), O = !n.middlewareData.shift;
|
|
830
|
+
let A = $, z = B;
|
|
831
|
+
if ((t = n.middlewareData.shift) != null && t.enabled.x && (z = x), (o = n.middlewareData.shift) != null && o.enabled.y && (A = C), O && !f) {
|
|
832
|
+
const W = q(c.left, 0), Y = q(c.right, 0), U = q(c.top, 0), p = q(c.bottom, 0);
|
|
833
|
+
u ? z = m - 2 * (W !== 0 || Y !== 0 ? W + Y : q(c.left, c.right)) : A = h - 2 * (U !== 0 || p !== 0 ? U + p : q(c.top, c.bottom));
|
|
834
834
|
}
|
|
835
835
|
await i({
|
|
836
836
|
...n,
|
|
837
837
|
availableWidth: z,
|
|
838
|
-
availableHeight:
|
|
838
|
+
availableHeight: A
|
|
839
839
|
});
|
|
840
840
|
const M = await a.getDimensions(d.floating);
|
|
841
841
|
return m !== M.width || h !== M.height ? {
|
|
@@ -846,7 +846,7 @@ const Zt = function(e) {
|
|
|
846
846
|
}
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
|
-
function
|
|
849
|
+
function Oe() {
|
|
850
850
|
return typeof window < "u";
|
|
851
851
|
}
|
|
852
852
|
function ue(e) {
|
|
@@ -861,16 +861,16 @@ function te(e) {
|
|
|
861
861
|
return (n = (Ke(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
|
|
862
862
|
}
|
|
863
863
|
function Ke(e) {
|
|
864
|
-
return
|
|
864
|
+
return Oe() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
865
865
|
}
|
|
866
866
|
function J(e) {
|
|
867
|
-
return
|
|
867
|
+
return Oe() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
868
868
|
}
|
|
869
869
|
function ee(e) {
|
|
870
|
-
return
|
|
870
|
+
return Oe() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
871
871
|
}
|
|
872
872
|
function _e(e) {
|
|
873
|
-
return !
|
|
873
|
+
return !Oe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
874
874
|
}
|
|
875
875
|
const tn = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
876
876
|
function Fe(e) {
|
|
@@ -887,7 +887,7 @@ function on(e) {
|
|
|
887
887
|
return nn.has(ue(e));
|
|
888
888
|
}
|
|
889
889
|
const sn = [":popover-open", ":modal"];
|
|
890
|
-
function
|
|
890
|
+
function Ve(e) {
|
|
891
891
|
return sn.some((n) => {
|
|
892
892
|
try {
|
|
893
893
|
return e.matches(n);
|
|
@@ -903,10 +903,10 @@ function Ue(e) {
|
|
|
903
903
|
}
|
|
904
904
|
function cn(e) {
|
|
905
905
|
let n = ie(e);
|
|
906
|
-
for (; ee(n) && !
|
|
906
|
+
for (; ee(n) && !ve(n); ) {
|
|
907
907
|
if (Ue(n))
|
|
908
908
|
return n;
|
|
909
|
-
if (
|
|
909
|
+
if (Ve(n))
|
|
910
910
|
return null;
|
|
911
911
|
n = ie(n);
|
|
912
912
|
}
|
|
@@ -916,7 +916,7 @@ function Xe() {
|
|
|
916
916
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
917
917
|
}
|
|
918
918
|
const dn = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
919
|
-
function
|
|
919
|
+
function ve(e) {
|
|
920
920
|
return dn.has(ue(e));
|
|
921
921
|
}
|
|
922
922
|
function Q(e) {
|
|
@@ -945,7 +945,7 @@ function ie(e) {
|
|
|
945
945
|
}
|
|
946
946
|
function ct(e) {
|
|
947
947
|
const n = ie(e);
|
|
948
|
-
return
|
|
948
|
+
return ve(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : ee(n) && Fe(n) ? n : ct(n);
|
|
949
949
|
}
|
|
950
950
|
function ke(e, n, t) {
|
|
951
951
|
var o;
|
|
@@ -1039,7 +1039,7 @@ function bn(e) {
|
|
|
1039
1039
|
offsetParent: o,
|
|
1040
1040
|
strategy: s
|
|
1041
1041
|
} = e;
|
|
1042
|
-
const r = s === "fixed", a = te(o), d = n ?
|
|
1042
|
+
const r = s === "fixed", a = te(o), d = n ? Ve(n.floating) : !1;
|
|
1043
1043
|
if (o === a || d && r)
|
|
1044
1044
|
return t;
|
|
1045
1045
|
let i = {
|
|
@@ -1094,8 +1094,8 @@ function hn(e, n) {
|
|
|
1094
1094
|
y: i
|
|
1095
1095
|
};
|
|
1096
1096
|
}
|
|
1097
|
-
const
|
|
1098
|
-
function
|
|
1097
|
+
const vn = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1098
|
+
function pn(e, n) {
|
|
1099
1099
|
const t = ce(e, !0, n === "fixed"), o = t.top + e.clientTop, s = t.left + e.clientLeft, r = ee(e) ? ge(e) : Z(1), a = e.clientWidth * r.x, d = e.clientHeight * r.y, i = s * r.x, b = o * r.y;
|
|
1100
1100
|
return {
|
|
1101
1101
|
width: a,
|
|
@@ -1111,7 +1111,7 @@ function tt(e, n, t) {
|
|
|
1111
1111
|
else if (n === "document")
|
|
1112
1112
|
o = gn(te(e));
|
|
1113
1113
|
else if (J(n))
|
|
1114
|
-
o =
|
|
1114
|
+
o = pn(n, t);
|
|
1115
1115
|
else {
|
|
1116
1116
|
const s = ut(e);
|
|
1117
1117
|
o = {
|
|
@@ -1125,7 +1125,7 @@ function tt(e, n, t) {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
function bt(e, n) {
|
|
1127
1127
|
const t = ie(e);
|
|
1128
|
-
return t === n || !J(t) ||
|
|
1128
|
+
return t === n || !J(t) || ve(t) ? !1 : Q(t).position === "fixed" || bt(t, n);
|
|
1129
1129
|
}
|
|
1130
1130
|
function yn(e, n) {
|
|
1131
1131
|
const t = n.get(e);
|
|
@@ -1134,9 +1134,9 @@ function yn(e, n) {
|
|
|
1134
1134
|
let o = ke(e, [], !1).filter((d) => J(d) && ue(d) !== "body"), s = null;
|
|
1135
1135
|
const r = Q(e).position === "fixed";
|
|
1136
1136
|
let a = r ? ie(e) : e;
|
|
1137
|
-
for (; J(a) && !
|
|
1137
|
+
for (; J(a) && !ve(a); ) {
|
|
1138
1138
|
const d = Q(a), i = Ue(a);
|
|
1139
|
-
!i && d.position === "fixed" && (s = null), (r ? !i && !s : !i && d.position === "static" && !!s &&
|
|
1139
|
+
!i && d.position === "fixed" && (s = null), (r ? !i && !s : !i && d.position === "static" && !!s && vn.has(s.position) || Fe(a) && !i && bt(e, a)) ? o = o.filter((c) => c !== a) : s = d, a = ie(a);
|
|
1140
1140
|
}
|
|
1141
1141
|
return n.set(e, o), o;
|
|
1142
1142
|
}
|
|
@@ -1147,7 +1147,7 @@ function xn(e) {
|
|
|
1147
1147
|
rootBoundary: o,
|
|
1148
1148
|
strategy: s
|
|
1149
1149
|
} = e;
|
|
1150
|
-
const a = [...t === "clippingAncestors" ?
|
|
1150
|
+
const a = [...t === "clippingAncestors" ? Ve(n) ? [] : yn(n, this._c) : [].concat(t), o], d = a[0], i = a.reduce((b, c) => {
|
|
1151
1151
|
const l = tt(n, c, s);
|
|
1152
1152
|
return b.top = q(l.top, b.top), b.right = ae(l.right, b.right), b.bottom = ae(l.bottom, b.bottom), b.left = q(l.left, b.left), b;
|
|
1153
1153
|
}, tt(n, d, s));
|
|
@@ -1205,11 +1205,11 @@ function nt(e, n) {
|
|
|
1205
1205
|
}
|
|
1206
1206
|
function mt(e, n) {
|
|
1207
1207
|
const t = K(e);
|
|
1208
|
-
if (
|
|
1208
|
+
if (Ve(e))
|
|
1209
1209
|
return t;
|
|
1210
1210
|
if (!ee(e)) {
|
|
1211
1211
|
let s = ie(e);
|
|
1212
|
-
for (; s && !
|
|
1212
|
+
for (; s && !ve(s); ) {
|
|
1213
1213
|
if (J(s) && !Me(s))
|
|
1214
1214
|
return s;
|
|
1215
1215
|
s = ie(s);
|
|
@@ -1219,7 +1219,7 @@ function mt(e, n) {
|
|
|
1219
1219
|
let o = nt(e, n);
|
|
1220
1220
|
for (; o && on(o) && Me(o); )
|
|
1221
1221
|
o = nt(o, n);
|
|
1222
|
-
return o &&
|
|
1222
|
+
return o && ve(o) && Me(o) && !Ue(o) ? t : o || cn(e) || t;
|
|
1223
1223
|
}
|
|
1224
1224
|
const Fn = async function(e) {
|
|
1225
1225
|
const n = this.getOffsetParent || mt, t = this.getDimensions, o = await t(e.floating);
|
|
@@ -1273,25 +1273,25 @@ function Dn(e, n) {
|
|
|
1273
1273
|
threshold: q(0, ae(1, i)) || 1
|
|
1274
1274
|
};
|
|
1275
1275
|
let $ = !0;
|
|
1276
|
-
function
|
|
1277
|
-
const
|
|
1278
|
-
if (
|
|
1276
|
+
function B(O) {
|
|
1277
|
+
const A = O[0].intersectionRatio;
|
|
1278
|
+
if (A !== i) {
|
|
1279
1279
|
if (!$)
|
|
1280
1280
|
return a();
|
|
1281
|
-
|
|
1281
|
+
A ? a(!1, A) : o = setTimeout(() => {
|
|
1282
1282
|
a(!1, 1e-7);
|
|
1283
1283
|
}, 1e3);
|
|
1284
1284
|
}
|
|
1285
|
-
|
|
1285
|
+
A === 1 && !gt(b, e.getBoundingClientRect()) && a(), $ = !1;
|
|
1286
1286
|
}
|
|
1287
1287
|
try {
|
|
1288
|
-
t = new IntersectionObserver(
|
|
1288
|
+
t = new IntersectionObserver(B, {
|
|
1289
1289
|
...x,
|
|
1290
1290
|
// Handle <iframe>s
|
|
1291
1291
|
root: s.ownerDocument
|
|
1292
1292
|
});
|
|
1293
1293
|
} catch {
|
|
1294
|
-
t = new IntersectionObserver(
|
|
1294
|
+
t = new IntersectionObserver(B, x);
|
|
1295
1295
|
}
|
|
1296
1296
|
t.observe(e);
|
|
1297
1297
|
}
|
|
@@ -1333,7 +1333,7 @@ function En(e, n, t, o) {
|
|
|
1333
1333
|
}), l == null || l(), (w = u) == null || w.disconnect(), u = null, i && cancelAnimationFrame(m);
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
|
-
const ht = Zt,
|
|
1336
|
+
const ht = Zt, vt = _t, pt = Gt, An = en, Bn = Yt, Tn = (e, n, t) => {
|
|
1337
1337
|
const o = /* @__PURE__ */ new Map(), s = {
|
|
1338
1338
|
platform: $n,
|
|
1339
1339
|
...t
|
|
@@ -1359,7 +1359,7 @@ function We(e) {
|
|
|
1359
1359
|
function me(e) {
|
|
1360
1360
|
return typeof e == "function" ? e() : R(e);
|
|
1361
1361
|
}
|
|
1362
|
-
function
|
|
1362
|
+
function Ln(e) {
|
|
1363
1363
|
return {
|
|
1364
1364
|
name: "arrow",
|
|
1365
1365
|
options: e,
|
|
@@ -1382,28 +1382,28 @@ function ot(e, n) {
|
|
|
1382
1382
|
function xt(e, n, t) {
|
|
1383
1383
|
t === void 0 && (t = {});
|
|
1384
1384
|
const o = t.whileElementsMounted, s = k(() => {
|
|
1385
|
-
var
|
|
1386
|
-
return (
|
|
1385
|
+
var A;
|
|
1386
|
+
return (A = me(t.open)) != null ? A : !0;
|
|
1387
1387
|
}), r = k(() => me(t.middleware)), a = k(() => {
|
|
1388
|
-
var
|
|
1389
|
-
return (
|
|
1388
|
+
var A;
|
|
1389
|
+
return (A = me(t.placement)) != null ? A : "bottom";
|
|
1390
1390
|
}), d = k(() => {
|
|
1391
|
-
var
|
|
1392
|
-
return (
|
|
1391
|
+
var A;
|
|
1392
|
+
return (A = me(t.strategy)) != null ? A : "absolute";
|
|
1393
1393
|
}), i = k(() => {
|
|
1394
|
-
var
|
|
1395
|
-
return (
|
|
1394
|
+
var A;
|
|
1395
|
+
return (A = me(t.transform)) != null ? A : !0;
|
|
1396
1396
|
}), b = k(() => We(e.value)), c = k(() => We(n.value)), l = j(0), f = j(0), u = j(d.value), m = j(a.value), h = Ft({}), y = j(!1), w = k(() => {
|
|
1397
|
-
const
|
|
1397
|
+
const A = {
|
|
1398
1398
|
position: u.value,
|
|
1399
1399
|
left: "0",
|
|
1400
1400
|
top: "0"
|
|
1401
1401
|
};
|
|
1402
1402
|
if (!c.value)
|
|
1403
|
-
return
|
|
1403
|
+
return A;
|
|
1404
1404
|
const z = ot(c.value, l.value), M = ot(c.value, f.value);
|
|
1405
1405
|
return i.value ? {
|
|
1406
|
-
...
|
|
1406
|
+
...A,
|
|
1407
1407
|
transform: "translate(" + z + "px, " + M + "px)",
|
|
1408
1408
|
...yt(c.value) >= 1.5 && {
|
|
1409
1409
|
willChange: "transform"
|
|
@@ -1418,19 +1418,19 @@ function xt(e, n, t) {
|
|
|
1418
1418
|
function x() {
|
|
1419
1419
|
if (b.value == null || c.value == null)
|
|
1420
1420
|
return;
|
|
1421
|
-
const
|
|
1421
|
+
const A = s.value;
|
|
1422
1422
|
Tn(b.value, c.value, {
|
|
1423
1423
|
middleware: r.value,
|
|
1424
1424
|
placement: a.value,
|
|
1425
1425
|
strategy: d.value
|
|
1426
1426
|
}).then((z) => {
|
|
1427
|
-
l.value = z.x, f.value = z.y, u.value = z.strategy, m.value = z.placement, h.value = z.middlewareData, y.value =
|
|
1427
|
+
l.value = z.x, f.value = z.y, u.value = z.strategy, m.value = z.placement, h.value = z.middlewareData, y.value = A !== !1;
|
|
1428
1428
|
});
|
|
1429
1429
|
}
|
|
1430
1430
|
function $() {
|
|
1431
1431
|
typeof C == "function" && (C(), C = void 0);
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function B() {
|
|
1434
1434
|
if ($(), o === void 0) {
|
|
1435
1435
|
x();
|
|
1436
1436
|
return;
|
|
@@ -1440,14 +1440,14 @@ function xt(e, n, t) {
|
|
|
1440
1440
|
return;
|
|
1441
1441
|
}
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function O() {
|
|
1444
1444
|
s.value || (y.value = !1);
|
|
1445
1445
|
}
|
|
1446
1446
|
return we([r, a, d, s], x, {
|
|
1447
1447
|
flush: "sync"
|
|
1448
|
-
}), we([b, c],
|
|
1448
|
+
}), we([b, c], B, {
|
|
1449
1449
|
flush: "sync"
|
|
1450
|
-
}), we(s,
|
|
1450
|
+
}), we(s, O, {
|
|
1451
1451
|
flush: "sync"
|
|
1452
1452
|
}), Ct() && $t($), {
|
|
1453
1453
|
x: be(l),
|
|
@@ -1464,7 +1464,7 @@ const Be = /* @__PURE__ */ S({
|
|
|
1464
1464
|
inheritAttrs: !1,
|
|
1465
1465
|
__name: "DsIconX",
|
|
1466
1466
|
setup(e) {
|
|
1467
|
-
return (n, t) => (g(),
|
|
1467
|
+
return (n, t) => (g(), v("svg", de({
|
|
1468
1468
|
fill: "none",
|
|
1469
1469
|
stroke: "currentColor",
|
|
1470
1470
|
viewBox: "0 0 24 24"
|
|
@@ -1477,11 +1477,11 @@ const Be = /* @__PURE__ */ S({
|
|
|
1477
1477
|
}, null, -1)
|
|
1478
1478
|
])], 16));
|
|
1479
1479
|
}
|
|
1480
|
-
}),
|
|
1480
|
+
}), On = /* @__PURE__ */ S({
|
|
1481
1481
|
inheritAttrs: !1,
|
|
1482
1482
|
__name: "DsIconCheck",
|
|
1483
1483
|
setup(e) {
|
|
1484
|
-
return (n, t) => (g(),
|
|
1484
|
+
return (n, t) => (g(), v("svg", de({
|
|
1485
1485
|
fill: "none",
|
|
1486
1486
|
stroke: "currentColor",
|
|
1487
1487
|
viewBox: "0 0 24 24"
|
|
@@ -1498,7 +1498,7 @@ const Be = /* @__PURE__ */ S({
|
|
|
1498
1498
|
inheritAttrs: !1,
|
|
1499
1499
|
__name: "DsIconWarning",
|
|
1500
1500
|
setup(e) {
|
|
1501
|
-
return (n, t) => (g(),
|
|
1501
|
+
return (n, t) => (g(), v("svg", de({
|
|
1502
1502
|
fill: "none",
|
|
1503
1503
|
stroke: "currentColor",
|
|
1504
1504
|
viewBox: "0 0 24 24"
|
|
@@ -1511,11 +1511,11 @@ const Be = /* @__PURE__ */ S({
|
|
|
1511
1511
|
}, null, -1)
|
|
1512
1512
|
])], 16));
|
|
1513
1513
|
}
|
|
1514
|
-
}),
|
|
1514
|
+
}), Vn = /* @__PURE__ */ S({
|
|
1515
1515
|
inheritAttrs: !1,
|
|
1516
1516
|
__name: "DsIconInfo",
|
|
1517
1517
|
setup(e) {
|
|
1518
|
-
return (n, t) => (g(),
|
|
1518
|
+
return (n, t) => (g(), v("svg", de({
|
|
1519
1519
|
fill: "none",
|
|
1520
1520
|
stroke: "currentColor",
|
|
1521
1521
|
viewBox: "0 0 24 24"
|
|
@@ -1532,7 +1532,7 @@ const Be = /* @__PURE__ */ S({
|
|
|
1532
1532
|
inheritAttrs: !1,
|
|
1533
1533
|
__name: "DsIconChevronDown",
|
|
1534
1534
|
setup(e) {
|
|
1535
|
-
return (n, t) => (g(),
|
|
1535
|
+
return (n, t) => (g(), v("svg", de({
|
|
1536
1536
|
fill: "none",
|
|
1537
1537
|
stroke: "currentColor",
|
|
1538
1538
|
viewBox: "0 0 24 24"
|
|
@@ -1549,7 +1549,7 @@ const Be = /* @__PURE__ */ S({
|
|
|
1549
1549
|
inheritAttrs: !1,
|
|
1550
1550
|
__name: "DsIconChevronUp",
|
|
1551
1551
|
setup(e) {
|
|
1552
|
-
return (n, t) => (g(),
|
|
1552
|
+
return (n, t) => (g(), v("svg", de({
|
|
1553
1553
|
fill: "none",
|
|
1554
1554
|
stroke: "currentColor",
|
|
1555
1555
|
viewBox: "0 0 24 24"
|
|
@@ -1566,7 +1566,7 @@ const Be = /* @__PURE__ */ S({
|
|
|
1566
1566
|
inheritAttrs: !1,
|
|
1567
1567
|
__name: "DsIconSort",
|
|
1568
1568
|
setup(e) {
|
|
1569
|
-
return (n, t) => (g(),
|
|
1569
|
+
return (n, t) => (g(), v("svg", de({
|
|
1570
1570
|
fill: "none",
|
|
1571
1571
|
stroke: "currentColor",
|
|
1572
1572
|
viewBox: "0 0 24 24"
|
|
@@ -1607,87 +1607,87 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1607
1607
|
const t = e, o = n, s = j(), r = j(), a = j(!1), d = fe("listbox"), i = j(-1), b = k(() => {
|
|
1608
1608
|
if (!(!a.value || i.value < 0))
|
|
1609
1609
|
return c(i.value);
|
|
1610
|
-
}), c = (
|
|
1610
|
+
}), c = (p) => `${d}-option-${p}`, { floatingStyles: l } = xt(s, r, {
|
|
1611
1611
|
placement: "bottom-start",
|
|
1612
1612
|
middleware: [
|
|
1613
1613
|
ht(4),
|
|
1614
|
-
|
|
1615
|
-
|
|
1614
|
+
pt(),
|
|
1615
|
+
vt({ padding: 8 }),
|
|
1616
1616
|
An({
|
|
1617
|
-
apply({ rects:
|
|
1617
|
+
apply({ rects: p }) {
|
|
1618
1618
|
r.value && Object.assign(r.value.style, {
|
|
1619
|
-
minWidth: `${
|
|
1619
|
+
minWidth: `${p.reference.width}px`
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
1622
|
})
|
|
1623
1623
|
],
|
|
1624
1624
|
whileElementsMounted: En
|
|
1625
|
-
}), f = k(() => t.modelValue), u = k(() => t.options.find((
|
|
1625
|
+
}), f = k(() => t.modelValue), u = k(() => t.options.find((p) => h(p) === f.value)), m = k(() => u.value ? y(u.value) : ""), h = (p) => typeof p == "object" && p !== null ? p.value : p, y = (p) => typeof p == "object" && p !== null ? p.label : String(p), w = (p) => typeof p == "object" && p !== null && p.disabled || !1, C = () => {
|
|
1626
1626
|
je(() => {
|
|
1627
|
-
const
|
|
1628
|
-
if (!
|
|
1629
|
-
const
|
|
1630
|
-
|
|
1627
|
+
const p = r.value;
|
|
1628
|
+
if (!p || i.value < 0) return;
|
|
1629
|
+
const L = p.querySelector(`#${c(i.value)}`);
|
|
1630
|
+
L == null || L.scrollIntoView({ block: "nearest" });
|
|
1631
1631
|
});
|
|
1632
|
-
}, x = (
|
|
1633
|
-
let
|
|
1634
|
-
for (;
|
|
1635
|
-
if (!w(t.options[
|
|
1636
|
-
|
|
1632
|
+
}, x = (p, L) => {
|
|
1633
|
+
let V = p;
|
|
1634
|
+
for (; V >= 0 && V < t.options.length; ) {
|
|
1635
|
+
if (!w(t.options[V])) return V;
|
|
1636
|
+
V += L;
|
|
1637
1637
|
}
|
|
1638
1638
|
return -1;
|
|
1639
1639
|
}, $ = () => {
|
|
1640
|
-
const
|
|
1641
|
-
|
|
1640
|
+
const p = x(i.value + 1, 1);
|
|
1641
|
+
p >= 0 && (i.value = p, C());
|
|
1642
|
+
}, B = () => {
|
|
1643
|
+
const p = x(i.value - 1, -1);
|
|
1644
|
+
p >= 0 && (i.value = p, C());
|
|
1645
|
+
}, O = () => {
|
|
1646
|
+
const p = x(0, 1);
|
|
1647
|
+
p >= 0 && (i.value = p, C());
|
|
1642
1648
|
}, A = () => {
|
|
1643
|
-
const
|
|
1644
|
-
|
|
1645
|
-
}, V = () => {
|
|
1646
|
-
const v = x(0, 1);
|
|
1647
|
-
v >= 0 && (i.value = v, C());
|
|
1648
|
-
}, E = () => {
|
|
1649
|
-
const v = x(t.options.length - 1, -1);
|
|
1650
|
-
v >= 0 && (i.value = v, C());
|
|
1649
|
+
const p = x(t.options.length - 1, -1);
|
|
1650
|
+
p >= 0 && (i.value = p, C());
|
|
1651
1651
|
}, z = () => {
|
|
1652
1652
|
t.disabled || t.loading || (a.value = !0, je(() => {
|
|
1653
|
-
const
|
|
1654
|
-
(
|
|
1653
|
+
const p = t.options.findIndex(
|
|
1654
|
+
(L) => h(L) === f.value
|
|
1655
1655
|
);
|
|
1656
|
-
|
|
1656
|
+
p >= 0 && !w(t.options[p]) ? i.value = p : O(), C();
|
|
1657
1657
|
}));
|
|
1658
1658
|
}, M = () => {
|
|
1659
1659
|
a.value = !1, i.value = -1;
|
|
1660
1660
|
}, W = () => {
|
|
1661
1661
|
t.disabled || t.loading || (a.value ? M() : z());
|
|
1662
|
-
}, Y = (
|
|
1663
|
-
if (w(
|
|
1664
|
-
const
|
|
1665
|
-
o("update:modelValue",
|
|
1666
|
-
}, U = (
|
|
1662
|
+
}, Y = (p) => {
|
|
1663
|
+
if (w(p)) return;
|
|
1664
|
+
const L = h(p);
|
|
1665
|
+
o("update:modelValue", L), o("change", L, p), M();
|
|
1666
|
+
}, U = (p) => {
|
|
1667
1667
|
if (!(t.disabled || t.loading)) {
|
|
1668
1668
|
if (!a.value) {
|
|
1669
|
-
(
|
|
1669
|
+
(p.key === "ArrowDown" || p.key === "ArrowUp" || p.key === "Enter" || p.key === " ") && (p.preventDefault(), z());
|
|
1670
1670
|
return;
|
|
1671
1671
|
}
|
|
1672
|
-
switch (
|
|
1672
|
+
switch (p.key) {
|
|
1673
1673
|
case "ArrowDown":
|
|
1674
|
-
|
|
1674
|
+
p.preventDefault(), i.value < 0 ? O() : $();
|
|
1675
1675
|
break;
|
|
1676
1676
|
case "ArrowUp":
|
|
1677
|
-
|
|
1677
|
+
p.preventDefault(), i.value < 0 ? A() : B();
|
|
1678
1678
|
break;
|
|
1679
1679
|
case "Home":
|
|
1680
|
-
|
|
1680
|
+
p.preventDefault(), O();
|
|
1681
1681
|
break;
|
|
1682
1682
|
case "End":
|
|
1683
|
-
|
|
1683
|
+
p.preventDefault(), A();
|
|
1684
1684
|
break;
|
|
1685
1685
|
case "Enter":
|
|
1686
1686
|
case " ":
|
|
1687
|
-
|
|
1687
|
+
p.preventDefault(), i.value >= 0 && i.value < t.options.length && Y(t.options[i.value]);
|
|
1688
1688
|
break;
|
|
1689
1689
|
case "Escape":
|
|
1690
|
-
|
|
1690
|
+
p.preventDefault(), M();
|
|
1691
1691
|
break;
|
|
1692
1692
|
case "Tab":
|
|
1693
1693
|
M();
|
|
@@ -1695,8 +1695,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
1697
|
};
|
|
1698
|
-
return (
|
|
1699
|
-
_(
|
|
1698
|
+
return (p, L) => (g(), v("div", jn, [
|
|
1699
|
+
_(Ot, {
|
|
1700
1700
|
ref_key: "triggerRef",
|
|
1701
1701
|
ref: s,
|
|
1702
1702
|
variant: e.variant,
|
|
@@ -1715,14 +1715,14 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1715
1715
|
onKeydown: U
|
|
1716
1716
|
}, {
|
|
1717
1717
|
default: Re(() => [
|
|
1718
|
-
N(
|
|
1719
|
-
X(
|
|
1718
|
+
N(p.$slots, "trigger", {}, () => [
|
|
1719
|
+
X(E(m.value || e.placeholder), 1)
|
|
1720
1720
|
])
|
|
1721
1721
|
]),
|
|
1722
1722
|
_: 3
|
|
1723
1723
|
}, 8, ["variant", "disabled", "loading", "size", "iconLeft", "iconRight", "fullWidth", "aria-expanded", "aria-controls", "aria-activedescendant"]),
|
|
1724
|
-
(g(), I(
|
|
1725
|
-
a.value ? (g(),
|
|
1724
|
+
(g(), I(Le, { to: "body" }, [
|
|
1725
|
+
a.value ? (g(), v("div", {
|
|
1726
1726
|
key: 0,
|
|
1727
1727
|
ref_key: "floatingRef",
|
|
1728
1728
|
ref: r,
|
|
@@ -1731,38 +1731,38 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1731
1731
|
"aria-label": e.placeholder,
|
|
1732
1732
|
style: he(R(l)),
|
|
1733
1733
|
class: "z-50 min-w-32 bg-bg border border-solid border-border rounded-md shadow-default max-h-64 overflow-y-auto",
|
|
1734
|
-
onClick:
|
|
1734
|
+
onClick: L[0] || (L[0] = Dt(() => {
|
|
1735
1735
|
}, ["stop"]))
|
|
1736
1736
|
}, [
|
|
1737
|
-
(g(!0),
|
|
1738
|
-
key: h(
|
|
1737
|
+
(g(!0), v(se, null, re(e.options, (V, P) => (g(), v("div", {
|
|
1738
|
+
key: h(V),
|
|
1739
1739
|
id: c(P),
|
|
1740
1740
|
role: "option",
|
|
1741
|
-
"aria-selected": f.value === h(
|
|
1742
|
-
"aria-disabled": w(
|
|
1741
|
+
"aria-selected": f.value === h(V) ? "true" : "false",
|
|
1742
|
+
"aria-disabled": w(V) ? "true" : void 0,
|
|
1743
1743
|
class: T([
|
|
1744
1744
|
"px-3 py-2 text-sm transition-colors outline-none",
|
|
1745
|
-
w(
|
|
1746
|
-
f.value === h(
|
|
1747
|
-
i.value === P && f.value !== h(
|
|
1748
|
-
(i.value !== P && f.value !== h(
|
|
1745
|
+
w(V) ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
1746
|
+
f.value === h(V) ? "bg-brand text-brand-on-solid" : "",
|
|
1747
|
+
i.value === P && f.value !== h(V) ? "bg-surface-hover" : "",
|
|
1748
|
+
(i.value !== P && f.value !== h(V), ""),
|
|
1749
1749
|
P === 0 ? "rounded-t-md" : "",
|
|
1750
1750
|
P === e.options.length - 1 ? "rounded-b-md" : ""
|
|
1751
1751
|
]),
|
|
1752
|
-
onClick: (H) => Y(
|
|
1752
|
+
onClick: (H) => Y(V),
|
|
1753
1753
|
onMouseenter: (H) => i.value = P
|
|
1754
1754
|
}, [
|
|
1755
|
-
N(
|
|
1756
|
-
option:
|
|
1755
|
+
N(p.$slots, "option", {
|
|
1756
|
+
option: V,
|
|
1757
1757
|
index: P
|
|
1758
1758
|
}, () => [
|
|
1759
|
-
X(
|
|
1759
|
+
X(E(y(V)), 1)
|
|
1760
1760
|
])
|
|
1761
1761
|
], 42, In))), 128)),
|
|
1762
|
-
e.options.length ? D("", !0) : (g(),
|
|
1762
|
+
e.options.length ? D("", !0) : (g(), v("div", Nn, E(e.emptyText), 1))
|
|
1763
1763
|
], 12, Pn)) : D("", !0)
|
|
1764
1764
|
])),
|
|
1765
|
-
a.value ? (g(),
|
|
1765
|
+
a.value ? (g(), v("div", {
|
|
1766
1766
|
key: 0,
|
|
1767
1767
|
class: "fixed inset-0 z-40",
|
|
1768
1768
|
onClick: M
|
|
@@ -1827,18 +1827,18 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1827
1827
|
"disabled:bg-surface-disabled",
|
|
1828
1828
|
"disabled:text-fg-disabled",
|
|
1829
1829
|
"box-border"
|
|
1830
|
-
],
|
|
1830
|
+
], B = {
|
|
1831
1831
|
small: { text: "text-sm", py: "py-1", px: "px-2", pl: "pl-8", pr: "pr-8" },
|
|
1832
1832
|
medium: { text: "text-base", py: "py-2", px: "px-3", pl: "pl-10", pr: "pr-10" },
|
|
1833
1833
|
large: { text: "text-lg", py: "py-3", px: "px-4", pl: "pl-12", pr: "pr-12" }
|
|
1834
|
-
}[o.size],
|
|
1834
|
+
}[o.size], O = o.error ? ["border-error-border", "focus:border-error", "focus:ring-error"] : ["border-border", "focus:border-border-focus", "focus:ring-brand"];
|
|
1835
1835
|
return [
|
|
1836
1836
|
...x,
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
o.iconLeft ?
|
|
1840
|
-
l.value ?
|
|
1841
|
-
...
|
|
1837
|
+
B.text,
|
|
1838
|
+
B.py,
|
|
1839
|
+
o.iconLeft ? B.pl : B.px,
|
|
1840
|
+
l.value ? B.pr : B.px,
|
|
1841
|
+
...O
|
|
1842
1842
|
].join(" ");
|
|
1843
1843
|
}), m = k(() => {
|
|
1844
1844
|
const x = { small: "w-4 h-4", medium: "w-5 h-5", large: "w-6 h-6" }, $ = o.error ? "text-error" : "text-fg-tertiary";
|
|
@@ -1847,8 +1847,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1847
1847
|
function h(x) {
|
|
1848
1848
|
const $ = x.target;
|
|
1849
1849
|
if (o.type === "number") {
|
|
1850
|
-
const
|
|
1851
|
-
s("update:modelValue", Number.isNaN(
|
|
1850
|
+
const B = Number($.value);
|
|
1851
|
+
s("update:modelValue", Number.isNaN(B) ? $.value : B);
|
|
1852
1852
|
} else
|
|
1853
1853
|
s("update:modelValue", $.value);
|
|
1854
1854
|
}
|
|
@@ -1864,17 +1864,17 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1864
1864
|
var x;
|
|
1865
1865
|
(x = r.value) == null || x.blur();
|
|
1866
1866
|
}
|
|
1867
|
-
return n({ focus: w, blur: C, inputRef: r }), (x, $) => (g(),
|
|
1868
|
-
e.label ? (g(),
|
|
1867
|
+
return n({ focus: w, blur: C, inputRef: r }), (x, $) => (g(), v("div", Wn, [
|
|
1868
|
+
e.label ? (g(), v("label", {
|
|
1869
1869
|
key: 0,
|
|
1870
1870
|
for: R(a),
|
|
1871
1871
|
class: "block text-label mb-1"
|
|
1872
1872
|
}, [
|
|
1873
|
-
X(
|
|
1874
|
-
e.required ? (g(),
|
|
1873
|
+
X(E(e.label) + " ", 1),
|
|
1874
|
+
e.required ? (g(), v("span", qn, "*")) : D("", !0)
|
|
1875
1875
|
], 8, Hn)) : D("", !0),
|
|
1876
1876
|
F("div", Kn, [
|
|
1877
|
-
e.iconLeft ? (g(),
|
|
1877
|
+
e.iconLeft ? (g(), v("div", Un, [
|
|
1878
1878
|
(g(), I($e(e.iconLeft), {
|
|
1879
1879
|
class: T(m.value)
|
|
1880
1880
|
}, null, 8, ["class"]))
|
|
@@ -1898,16 +1898,16 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1898
1898
|
"aria-invalid": e.error ? "true" : void 0,
|
|
1899
1899
|
class: T(u.value),
|
|
1900
1900
|
onInput: h,
|
|
1901
|
-
onBlur: $[0] || ($[0] = (
|
|
1902
|
-
onFocus: $[1] || ($[1] = (
|
|
1903
|
-
onKeydown: $[2] || ($[2] = st((
|
|
1901
|
+
onBlur: $[0] || ($[0] = (B) => x.$emit("blur", B)),
|
|
1902
|
+
onFocus: $[1] || ($[1] = (B) => x.$emit("focus", B)),
|
|
1903
|
+
onKeydown: $[2] || ($[2] = st((B) => x.$emit("enter"), ["enter"]))
|
|
1904
1904
|
}, null, 42, Xn),
|
|
1905
|
-
e.iconRight && !c.value ? (g(),
|
|
1905
|
+
e.iconRight && !c.value ? (g(), v("div", Yn, [
|
|
1906
1906
|
(g(), I($e(e.iconRight), {
|
|
1907
1907
|
class: T(m.value)
|
|
1908
1908
|
}, null, 8, ["class"]))
|
|
1909
1909
|
])) : D("", !0),
|
|
1910
|
-
c.value ? (g(),
|
|
1910
|
+
c.value ? (g(), v("button", {
|
|
1911
1911
|
key: 2,
|
|
1912
1912
|
type: "button",
|
|
1913
1913
|
"aria-label": "Clear input",
|
|
@@ -1917,18 +1917,18 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1917
1917
|
_(R(Be), { class: "w-4 h-4" })
|
|
1918
1918
|
])) : D("", !0)
|
|
1919
1919
|
]),
|
|
1920
|
-
e.helpText && !e.error ? (g(),
|
|
1920
|
+
e.helpText && !e.error ? (g(), v("div", {
|
|
1921
1921
|
key: 1,
|
|
1922
1922
|
id: d,
|
|
1923
1923
|
class: "mt-1 text-caption"
|
|
1924
|
-
},
|
|
1925
|
-
e.error ? (g(),
|
|
1924
|
+
}, E(e.helpText), 1)) : D("", !0),
|
|
1925
|
+
e.error ? (g(), v("div", {
|
|
1926
1926
|
key: 2,
|
|
1927
1927
|
id: i,
|
|
1928
1928
|
class: "mt-1 text-sm text-error font-sans",
|
|
1929
1929
|
role: "alert",
|
|
1930
1930
|
"aria-live": "polite"
|
|
1931
|
-
},
|
|
1931
|
+
}, E(e.error), 1)) : D("", !0)
|
|
1932
1932
|
]));
|
|
1933
1933
|
}
|
|
1934
1934
|
}), Gn = {
|
|
@@ -1987,7 +1987,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1987
1987
|
"text-fg-secondary",
|
|
1988
1988
|
"font-medium"
|
|
1989
1989
|
].join(" "));
|
|
1990
|
-
return (r, a) => (g(),
|
|
1990
|
+
return (r, a) => (g(), v("div", {
|
|
1991
1991
|
class: T(t.value),
|
|
1992
1992
|
role: "status",
|
|
1993
1993
|
"aria-live": "polite"
|
|
@@ -1996,10 +1996,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
1996
1996
|
class: T(o.value),
|
|
1997
1997
|
"aria-hidden": "true"
|
|
1998
1998
|
}, null, 2),
|
|
1999
|
-
e.text ? (g(),
|
|
1999
|
+
e.text ? (g(), v("span", {
|
|
2000
2000
|
key: 0,
|
|
2001
2001
|
class: T(s.value)
|
|
2002
|
-
},
|
|
2002
|
+
}, E(e.text), 3)) : (g(), v("span", Gn, "Loading"))
|
|
2003
2003
|
], 2));
|
|
2004
2004
|
}
|
|
2005
2005
|
}), Qn = ["aria-labelledby"], Zn = { class: "flex items-center justify-between px-6 py-4 border-b border-solid border-border" }, _n = ["id"], eo = { class: "px-6 py-4 overflow-y-auto flex-1" }, to = {
|
|
@@ -2055,7 +2055,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2055
2055
|
}
|
|
2056
2056
|
), rt(() => {
|
|
2057
2057
|
document.body.style.overflow = "", document.removeEventListener("keydown", f);
|
|
2058
|
-
}), (u, m) => (g(), I(
|
|
2058
|
+
}), (u, m) => (g(), I(Le, { to: "body" }, [
|
|
2059
2059
|
_(at, {
|
|
2060
2060
|
"enter-active-class": "transition-opacity duration-200",
|
|
2061
2061
|
"enter-from-class": "opacity-0",
|
|
@@ -2065,7 +2065,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2065
2065
|
"leave-to-class": "opacity-0"
|
|
2066
2066
|
}, {
|
|
2067
2067
|
default: Re(() => [
|
|
2068
|
-
e.modelValue ? (g(),
|
|
2068
|
+
e.modelValue ? (g(), v("div", {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
class: "fixed inset-0 z-50 flex items-center justify-center p-4",
|
|
2071
2071
|
onKeydown: st(c, ["escape"])
|
|
@@ -2089,9 +2089,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2089
2089
|
F("h2", {
|
|
2090
2090
|
id: R(s),
|
|
2091
2091
|
class: "text-heading-lg m-0"
|
|
2092
|
-
},
|
|
2092
|
+
}, E(e.title), 9, _n)
|
|
2093
2093
|
]),
|
|
2094
|
-
e.closable ? (g(),
|
|
2094
|
+
e.closable ? (g(), v("button", {
|
|
2095
2095
|
key: 0,
|
|
2096
2096
|
type: "button",
|
|
2097
2097
|
class: "p-1 rounded-md text-fg-tertiary hover:text-fg hover:bg-surface-hover-light transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
|
|
@@ -2104,7 +2104,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2104
2104
|
F("div", eo, [
|
|
2105
2105
|
N(u.$slots, "default")
|
|
2106
2106
|
]),
|
|
2107
|
-
u.$slots.footer ? (g(),
|
|
2107
|
+
u.$slots.footer ? (g(), v("div", to, [
|
|
2108
2108
|
N(u.$slots, "footer")
|
|
2109
2109
|
])) : D("", !0)
|
|
2110
2110
|
], 10, Qn)
|
|
@@ -2160,7 +2160,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2160
2160
|
const l = c.target, f = t.value ?? l.value;
|
|
2161
2161
|
o("update:modelValue", f), o("change", f, c);
|
|
2162
2162
|
};
|
|
2163
|
-
return (c, l) => (g(),
|
|
2163
|
+
return (c, l) => (g(), v("label", {
|
|
2164
2164
|
class: T([
|
|
2165
2165
|
"inline-flex items-center gap-2",
|
|
2166
2166
|
e.disabled ? "cursor-not-allowed" : "cursor-pointer",
|
|
@@ -2181,17 +2181,17 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2181
2181
|
class: T(a.value),
|
|
2182
2182
|
"aria-hidden": "true"
|
|
2183
2183
|
}, [
|
|
2184
|
-
s.value ? (g(),
|
|
2184
|
+
s.value ? (g(), v("span", {
|
|
2185
2185
|
key: 0,
|
|
2186
2186
|
class: T(d.value)
|
|
2187
2187
|
}, null, 2)) : D("", !0)
|
|
2188
2188
|
], 2),
|
|
2189
|
-
e.label || c.$slots.default ? (g(),
|
|
2189
|
+
e.label || c.$slots.default ? (g(), v("span", {
|
|
2190
2190
|
key: 0,
|
|
2191
2191
|
class: T(i.value)
|
|
2192
2192
|
}, [
|
|
2193
2193
|
N(c.$slots, "default", {}, () => [
|
|
2194
|
-
X(
|
|
2194
|
+
X(E(e.label), 1)
|
|
2195
2195
|
])
|
|
2196
2196
|
], 2)) : D("", !0)
|
|
2197
2197
|
], 2));
|
|
@@ -2251,14 +2251,14 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2251
2251
|
const f = c.target.value, u = t.options.find((m) => String(m.value) === f);
|
|
2252
2252
|
o("update:modelValue", u && typeof u.value == "number" ? u.value : f);
|
|
2253
2253
|
};
|
|
2254
|
-
return (c, l) => (g(),
|
|
2255
|
-
e.label ? (g(),
|
|
2254
|
+
return (c, l) => (g(), v("div", oo, [
|
|
2255
|
+
e.label ? (g(), v("label", {
|
|
2256
2256
|
key: 0,
|
|
2257
2257
|
for: R(s),
|
|
2258
2258
|
class: "block text-label mb-1"
|
|
2259
2259
|
}, [
|
|
2260
|
-
X(
|
|
2261
|
-
e.required ? (g(),
|
|
2260
|
+
X(E(e.label) + " ", 1),
|
|
2261
|
+
e.required ? (g(), v("span", ro, "*")) : D("", !0)
|
|
2262
2262
|
], 8, so)) : D("", !0),
|
|
2263
2263
|
F("div", ao, [
|
|
2264
2264
|
F("select", {
|
|
@@ -2273,34 +2273,34 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2273
2273
|
onBlur: l[0] || (l[0] = (f) => c.$emit("blur", f)),
|
|
2274
2274
|
onFocus: l[1] || (l[1] = (f) => c.$emit("focus", f))
|
|
2275
2275
|
}, [
|
|
2276
|
-
e.placeholder ? (g(),
|
|
2276
|
+
e.placeholder ? (g(), v("option", {
|
|
2277
2277
|
key: 0,
|
|
2278
2278
|
value: "",
|
|
2279
2279
|
disabled: "",
|
|
2280
2280
|
selected: !e.modelValue
|
|
2281
|
-
},
|
|
2282
|
-
(g(!0),
|
|
2281
|
+
}, E(e.placeholder), 9, io)) : D("", !0),
|
|
2282
|
+
(g(!0), v(se, null, re(e.options, (f) => (g(), v("option", {
|
|
2283
2283
|
key: f.value,
|
|
2284
2284
|
value: f.value,
|
|
2285
2285
|
disabled: f.disabled
|
|
2286
|
-
},
|
|
2286
|
+
}, E(f.label), 9, co))), 128))
|
|
2287
2287
|
], 42, lo),
|
|
2288
2288
|
F("div", uo, [
|
|
2289
2289
|
_(R(Ge), { class: "w-4 h-4 text-fg-tertiary" })
|
|
2290
2290
|
])
|
|
2291
2291
|
]),
|
|
2292
|
-
e.helpText && !e.error ? (g(),
|
|
2292
|
+
e.helpText && !e.error ? (g(), v("div", {
|
|
2293
2293
|
key: 1,
|
|
2294
2294
|
id: r,
|
|
2295
2295
|
class: "mt-1 text-caption"
|
|
2296
|
-
},
|
|
2297
|
-
e.error ? (g(),
|
|
2296
|
+
}, E(e.helpText), 1)) : D("", !0),
|
|
2297
|
+
e.error ? (g(), v("div", {
|
|
2298
2298
|
key: 2,
|
|
2299
2299
|
id: a,
|
|
2300
2300
|
class: "mt-1 text-sm text-error font-sans",
|
|
2301
2301
|
role: "alert",
|
|
2302
2302
|
"aria-live": "polite"
|
|
2303
|
-
},
|
|
2303
|
+
}, E(e.error), 1)) : D("", !0)
|
|
2304
2304
|
]));
|
|
2305
2305
|
}
|
|
2306
2306
|
}), fo = { class: "w-full overflow-x-auto" }, bo = {
|
|
@@ -2310,7 +2310,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2310
2310
|
key: 0,
|
|
2311
2311
|
class: "inline-flex",
|
|
2312
2312
|
"aria-hidden": "true"
|
|
2313
|
-
},
|
|
2313
|
+
}, vo = { class: "border-solid border-border" }, po = { key: 0 }, yo = ["colspan"], xo = { key: 1 }, wo = ["colspan"], ko = {
|
|
2314
2314
|
key: 0,
|
|
2315
2315
|
class: "flex items-center justify-between px-4 py-3 border-t border-solid border-border bg-bg-secondary text-sm"
|
|
2316
2316
|
}, Fo = { class: "text-fg-secondary" }, Co = { class: "flex gap-2" }, $o = ["disabled"], Do = ["disabled"], ds = /* @__PURE__ */ S({
|
|
@@ -2324,6 +2324,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2324
2324
|
emptyText: { default: "No data available" },
|
|
2325
2325
|
striped: { type: Boolean, default: !1 },
|
|
2326
2326
|
stickyHeader: { type: Boolean, default: !1 },
|
|
2327
|
+
nextPageLabel: { default: "Next" },
|
|
2328
|
+
previousPageLabel: { default: "Previous" },
|
|
2329
|
+
ofLabel: { default: "of" },
|
|
2327
2330
|
pagination: {}
|
|
2328
2331
|
},
|
|
2329
2332
|
emits: ["update:sortBy", "update:sortOrder", "update:page"],
|
|
@@ -2351,13 +2354,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2351
2354
|
function l(f) {
|
|
2352
2355
|
return `px-4 py-3 ${f.align === "center" ? "text-center" : f.align === "right" ? "text-right" : "text-left"}`;
|
|
2353
2356
|
}
|
|
2354
|
-
return (f, u) => (g(),
|
|
2357
|
+
return (f, u) => (g(), v("div", fo, [
|
|
2355
2358
|
F("table", bo, [
|
|
2356
2359
|
F("thead", {
|
|
2357
2360
|
class: T(e.stickyHeader ? "sticky top-0 z-10" : "")
|
|
2358
2361
|
}, [
|
|
2359
2362
|
F("tr", mo, [
|
|
2360
|
-
(g(!0),
|
|
2363
|
+
(g(!0), v(se, null, re(e.columns, (m) => (g(), v("th", {
|
|
2361
2364
|
key: m.key,
|
|
2362
2365
|
style: he(m.width ? { width: m.width } : void 0),
|
|
2363
2366
|
class: T(c(m)),
|
|
@@ -2368,9 +2371,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2368
2371
|
class: T(["flex items-center gap-1", b(m.align)])
|
|
2369
2372
|
}, [
|
|
2370
2373
|
N(f.$slots, `header-${m.key}`, { column: m }, () => [
|
|
2371
|
-
X(
|
|
2374
|
+
X(E(m.label), 1)
|
|
2372
2375
|
]),
|
|
2373
|
-
m.sortable ? (g(),
|
|
2376
|
+
m.sortable ? (g(), v("span", ho, [
|
|
2374
2377
|
e.sortBy === m.key && e.sortOrder === "asc" ? (g(), I(R(Sn), {
|
|
2375
2378
|
key: 0,
|
|
2376
2379
|
class: "w-4 h-4"
|
|
@@ -2386,8 +2389,8 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2386
2389
|
], 14, go))), 128))
|
|
2387
2390
|
])
|
|
2388
2391
|
], 2),
|
|
2389
|
-
F("tbody",
|
|
2390
|
-
e.loading ? (g(),
|
|
2392
|
+
F("tbody", vo, [
|
|
2393
|
+
e.loading ? (g(), v("tr", po, [
|
|
2391
2394
|
F("td", {
|
|
2392
2395
|
colspan: e.columns.length,
|
|
2393
2396
|
class: "text-center py-12"
|
|
@@ -2396,24 +2399,24 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2396
2399
|
_(Jn, { centered: "" })
|
|
2397
2400
|
])
|
|
2398
2401
|
], 8, yo)
|
|
2399
|
-
])) : e.rows.length === 0 ? (g(),
|
|
2402
|
+
])) : e.rows.length === 0 ? (g(), v("tr", xo, [
|
|
2400
2403
|
F("td", {
|
|
2401
2404
|
colspan: e.columns.length,
|
|
2402
2405
|
class: "text-center py-12 text-fg-secondary"
|
|
2403
2406
|
}, [
|
|
2404
2407
|
N(f.$slots, "empty", {}, () => [
|
|
2405
|
-
X(
|
|
2408
|
+
X(E(e.emptyText), 1)
|
|
2406
2409
|
])
|
|
2407
2410
|
], 8, wo)
|
|
2408
2411
|
])) : D("", !0),
|
|
2409
|
-
(g(!0),
|
|
2412
|
+
(g(!0), v(se, null, re(e.rows, (m, h) => (g(), v("tr", {
|
|
2410
2413
|
key: h,
|
|
2411
2414
|
class: T([
|
|
2412
2415
|
"border-b border-solid border-border-light transition-colors hover:bg-surface-hover-light",
|
|
2413
2416
|
e.striped && h % 2 === 1 ? "bg-bg-secondary" : ""
|
|
2414
2417
|
])
|
|
2415
2418
|
}, [
|
|
2416
|
-
(g(!0),
|
|
2419
|
+
(g(!0), v(se, null, re(e.columns, (y) => (g(), v("td", {
|
|
2417
2420
|
key: y.key,
|
|
2418
2421
|
class: T(l(y))
|
|
2419
2422
|
}, [
|
|
@@ -2422,27 +2425,27 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2422
2425
|
value: m[y.key],
|
|
2423
2426
|
index: h
|
|
2424
2427
|
}, () => [
|
|
2425
|
-
X(
|
|
2428
|
+
X(E(m[y.key]), 1)
|
|
2426
2429
|
])
|
|
2427
2430
|
], 2))), 128))
|
|
2428
2431
|
], 2))), 128))
|
|
2429
2432
|
])
|
|
2430
2433
|
]),
|
|
2431
|
-
e.pagination ? (g(),
|
|
2432
|
-
F("span", Fo,
|
|
2434
|
+
e.pagination ? (g(), v("div", ko, [
|
|
2435
|
+
F("span", Fo, E(r.value) + "–" + E(a.value) + " " + E(e.ofLabel) + " " + E(e.pagination.total), 1),
|
|
2433
2436
|
F("div", Co, [
|
|
2434
2437
|
F("button", {
|
|
2435
2438
|
type: "button",
|
|
2436
2439
|
disabled: e.pagination.page <= 1,
|
|
2437
2440
|
class: "px-3 py-1 rounded-md border border-solid border-border bg-bg text-fg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-hover-light transition-colors",
|
|
2438
2441
|
onClick: u[0] || (u[0] = (m) => f.$emit("update:page", e.pagination.page - 1))
|
|
2439
|
-
},
|
|
2442
|
+
}, E(e.previousPageLabel), 9, $o),
|
|
2440
2443
|
F("button", {
|
|
2441
2444
|
type: "button",
|
|
2442
2445
|
disabled: e.pagination.page >= s.value,
|
|
2443
2446
|
class: "px-3 py-1 rounded-md border border-solid border-border bg-bg text-fg disabled:opacity-50 disabled:cursor-not-allowed hover:bg-surface-hover-light transition-colors",
|
|
2444
2447
|
onClick: u[1] || (u[1] = (m) => f.$emit("update:page", e.pagination.page + 1))
|
|
2445
|
-
},
|
|
2448
|
+
}, E(e.nextPageLabel), 9, Do)
|
|
2446
2449
|
])
|
|
2447
2450
|
])) : D("", !0)
|
|
2448
2451
|
]));
|
|
@@ -2503,13 +2506,13 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2503
2506
|
const h = document.getElementById(`${s}-tab-${m.key}`);
|
|
2504
2507
|
h == null || h.focus();
|
|
2505
2508
|
}
|
|
2506
|
-
return (b, c) => (g(),
|
|
2509
|
+
return (b, c) => (g(), v("div", null, [
|
|
2507
2510
|
F("div", {
|
|
2508
2511
|
class: T(r.value),
|
|
2509
2512
|
role: "tablist",
|
|
2510
2513
|
"aria-label": e.ariaLabel
|
|
2511
2514
|
}, [
|
|
2512
|
-
(g(!0),
|
|
2515
|
+
(g(!0), v(se, null, re(e.tabs, (l, f) => (g(), v("button", {
|
|
2513
2516
|
key: l.key,
|
|
2514
2517
|
id: `${R(s)}-tab-${l.key}`,
|
|
2515
2518
|
role: "tab",
|
|
@@ -2521,9 +2524,9 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2521
2524
|
class: T(d(l)),
|
|
2522
2525
|
onClick: (u) => a(l),
|
|
2523
2526
|
onKeydown: (u) => i(u, f)
|
|
2524
|
-
},
|
|
2527
|
+
}, E(l.label), 43, Ao))), 128))
|
|
2525
2528
|
], 10, Eo),
|
|
2526
|
-
(g(!0),
|
|
2529
|
+
(g(!0), v(se, null, re(e.tabs, (l) => (g(), v("div", {
|
|
2527
2530
|
key: l.key,
|
|
2528
2531
|
id: `${R(s)}-panel-${l.key}`,
|
|
2529
2532
|
role: "tabpanel",
|
|
@@ -2535,11 +2538,11 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2535
2538
|
], 8, Bo))), 128))
|
|
2536
2539
|
]));
|
|
2537
2540
|
}
|
|
2538
|
-
}), To = { class: "w-full" }, Ro = ["for"],
|
|
2541
|
+
}), To = { class: "w-full" }, Ro = ["for"], Lo = {
|
|
2539
2542
|
key: 0,
|
|
2540
2543
|
class: "text-error ml-1",
|
|
2541
2544
|
"aria-hidden": "true"
|
|
2542
|
-
},
|
|
2545
|
+
}, Oo = { class: "relative" }, Vo = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows", "maxlength", "aria-describedby", "aria-invalid"], So = {
|
|
2543
2546
|
key: 1,
|
|
2544
2547
|
class: "flex justify-between mt-1"
|
|
2545
2548
|
}, zo = {
|
|
@@ -2603,16 +2606,16 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2603
2606
|
var h;
|
|
2604
2607
|
(h = r.value) == null || h.blur();
|
|
2605
2608
|
}
|
|
2606
|
-
return n({ focus: u, blur: m, textareaRef: r }), (h, y) => (g(),
|
|
2607
|
-
e.label ? (g(),
|
|
2609
|
+
return n({ focus: u, blur: m, textareaRef: r }), (h, y) => (g(), v("div", To, [
|
|
2610
|
+
e.label ? (g(), v("label", {
|
|
2608
2611
|
key: 0,
|
|
2609
2612
|
for: R(a),
|
|
2610
2613
|
class: "block text-label mb-1"
|
|
2611
2614
|
}, [
|
|
2612
|
-
X(
|
|
2613
|
-
e.required ? (g(),
|
|
2615
|
+
X(E(e.label) + " ", 1),
|
|
2616
|
+
e.required ? (g(), v("span", Lo, "*")) : D("", !0)
|
|
2614
2617
|
], 8, Ro)) : D("", !0),
|
|
2615
|
-
F("div",
|
|
2618
|
+
F("div", Oo, [
|
|
2616
2619
|
F("textarea", {
|
|
2617
2620
|
ref_key: "textareaRef",
|
|
2618
2621
|
ref: r,
|
|
@@ -2630,22 +2633,22 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2630
2633
|
onInput: f,
|
|
2631
2634
|
onBlur: y[0] || (y[0] = (w) => h.$emit("blur", w)),
|
|
2632
2635
|
onFocus: y[1] || (y[1] = (w) => h.$emit("focus", w))
|
|
2633
|
-
}, null, 42,
|
|
2636
|
+
}, null, 42, Vo)
|
|
2634
2637
|
]),
|
|
2635
|
-
e.helpText || e.error || e.maxLength ? (g(),
|
|
2636
|
-
e.helpText && !e.error ? (g(),
|
|
2638
|
+
e.helpText || e.error || e.maxLength ? (g(), v("div", So, [
|
|
2639
|
+
e.helpText && !e.error ? (g(), v("div", {
|
|
2637
2640
|
key: 0,
|
|
2638
2641
|
id: d,
|
|
2639
2642
|
class: "text-caption"
|
|
2640
|
-
},
|
|
2641
|
-
e.error ? (g(),
|
|
2643
|
+
}, E(e.helpText), 1)) : D("", !0),
|
|
2644
|
+
e.error ? (g(), v("div", {
|
|
2642
2645
|
key: 1,
|
|
2643
2646
|
id: i,
|
|
2644
2647
|
class: "text-sm text-error font-sans",
|
|
2645
2648
|
role: "alert",
|
|
2646
2649
|
"aria-live": "polite"
|
|
2647
|
-
},
|
|
2648
|
-
e.maxLength ? (g(),
|
|
2650
|
+
}, E(e.error), 1)) : D("", !0),
|
|
2651
|
+
e.maxLength ? (g(), v("div", zo, E(c.value) + " / " + E(e.maxLength), 1)) : D("", !0)
|
|
2649
2652
|
])) : D("", !0)
|
|
2650
2653
|
]));
|
|
2651
2654
|
}
|
|
@@ -2656,10 +2659,10 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2656
2659
|
description: { default: "This page is under construction. Please check back later." }
|
|
2657
2660
|
},
|
|
2658
2661
|
setup(e) {
|
|
2659
|
-
return (n, t) => (g(),
|
|
2662
|
+
return (n, t) => (g(), v("div", Mo, [
|
|
2660
2663
|
_(R(wt), { class: "w-10 h-10 text-fg-secondary" }),
|
|
2661
|
-
F("h2", jo,
|
|
2662
|
-
F("p", Po,
|
|
2664
|
+
F("h2", jo, E(e.title), 1),
|
|
2665
|
+
F("p", Po, E(e.description), 1)
|
|
2663
2666
|
]));
|
|
2664
2667
|
}
|
|
2665
2668
|
}), Io = ["role", "aria-live"], No = { class: "flex items-start gap-3 flex-1 min-w-0" }, Wo = { class: "flex-1 min-w-0" }, Ho = {
|
|
@@ -2706,7 +2709,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2706
2709
|
t.toast.duration > 0 && d();
|
|
2707
2710
|
}), rt(() => {
|
|
2708
2711
|
s && clearTimeout(s);
|
|
2709
|
-
}), (m, h) => (g(),
|
|
2712
|
+
}), (m, h) => (g(), v("div", {
|
|
2710
2713
|
class: T(l.value),
|
|
2711
2714
|
role: e.toast.variant === "error" ? "alert" : "status",
|
|
2712
2715
|
"aria-live": e.toast.variant === "error" ? "assertive" : "polite",
|
|
@@ -2718,7 +2721,7 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2718
2721
|
class: T(u.value),
|
|
2719
2722
|
"aria-hidden": "true"
|
|
2720
2723
|
}, [
|
|
2721
|
-
e.toast.variant === "success" ? (g(), I(R(
|
|
2724
|
+
e.toast.variant === "success" ? (g(), I(R(On), {
|
|
2722
2725
|
key: 0,
|
|
2723
2726
|
class: "w-5 h-5"
|
|
2724
2727
|
})) : e.toast.variant === "error" ? (g(), I(R(Be), {
|
|
@@ -2727,19 +2730,19 @@ const jn = { class: "relative" }, Pn = ["id", "aria-label"], In = ["id", "aria-s
|
|
|
2727
2730
|
})) : e.toast.variant === "warning" ? (g(), I(R(wt), {
|
|
2728
2731
|
key: 2,
|
|
2729
2732
|
class: "w-5 h-5"
|
|
2730
|
-
})) : (g(), I(R(
|
|
2733
|
+
})) : (g(), I(R(Vn), {
|
|
2731
2734
|
key: 3,
|
|
2732
2735
|
class: "w-5 h-5"
|
|
2733
2736
|
}))
|
|
2734
2737
|
], 2),
|
|
2735
2738
|
F("div", Wo, [
|
|
2736
|
-
e.toast.title ? (g(),
|
|
2739
|
+
e.toast.title ? (g(), v("p", Ho, E(e.toast.title), 1)) : D("", !0),
|
|
2737
2740
|
F("p", {
|
|
2738
2741
|
class: T(["text-body-sm m-0", e.toast.title ? "mt-0.5" : ""])
|
|
2739
|
-
},
|
|
2742
|
+
}, E(e.toast.message), 3)
|
|
2740
2743
|
])
|
|
2741
2744
|
]),
|
|
2742
|
-
e.toast.closable ? (g(),
|
|
2745
|
+
e.toast.closable ? (g(), v("button", {
|
|
2743
2746
|
key: 0,
|
|
2744
2747
|
type: "button",
|
|
2745
2748
|
class: "p-1 rounded-md text-fg-tertiary hover:text-fg transition-colors shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand",
|
|
@@ -2786,7 +2789,7 @@ const Yo = {
|
|
|
2786
2789
|
__name: "DsToastContainer",
|
|
2787
2790
|
setup(e) {
|
|
2788
2791
|
const { toasts: n, removeToast: t } = Xo();
|
|
2789
|
-
return (o, s) => (g(), I(
|
|
2792
|
+
return (o, s) => (g(), I(Le, { to: "body" }, [
|
|
2790
2793
|
F("div", Yo, [
|
|
2791
2794
|
_(At, {
|
|
2792
2795
|
"enter-active-class": "transition-all duration-300 ease-out",
|
|
@@ -2797,7 +2800,7 @@ const Yo = {
|
|
|
2797
2800
|
"leave-to-class": "opacity-0 translate-x-8"
|
|
2798
2801
|
}, {
|
|
2799
2802
|
default: Re(() => [
|
|
2800
|
-
(g(!0),
|
|
2803
|
+
(g(!0), v(se, null, re(R(n), (r) => (g(), I(qo, {
|
|
2801
2804
|
key: r.id,
|
|
2802
2805
|
toast: r,
|
|
2803
2806
|
onDismiss: R(t)
|
|
@@ -2818,7 +2821,7 @@ const Yo = {
|
|
|
2818
2821
|
setup(e) {
|
|
2819
2822
|
const n = e, t = fe("tooltip"), o = j(!1), s = j(null), r = j(null), a = j(null), { floatingStyles: d, middlewareData: i, placement: b } = xt(s, r, {
|
|
2820
2823
|
placement: k(() => n.placement),
|
|
2821
|
-
middleware: [ht(8),
|
|
2824
|
+
middleware: [ht(8), pt(), vt({ padding: 8 }), Ln({ element: a })]
|
|
2822
2825
|
}), c = k(() => {
|
|
2823
2826
|
const u = i.value.arrow;
|
|
2824
2827
|
if (!u) return {};
|
|
@@ -2835,7 +2838,7 @@ const Yo = {
|
|
|
2835
2838
|
function f() {
|
|
2836
2839
|
o.value = !1;
|
|
2837
2840
|
}
|
|
2838
|
-
return (u, m) => (g(),
|
|
2841
|
+
return (u, m) => (g(), v("div", {
|
|
2839
2842
|
class: "inline-flex",
|
|
2840
2843
|
onMouseenter: l,
|
|
2841
2844
|
onMouseleave: f,
|
|
@@ -2849,7 +2852,7 @@ const Yo = {
|
|
|
2849
2852
|
}, [
|
|
2850
2853
|
N(u.$slots, "default")
|
|
2851
2854
|
], 8, Go),
|
|
2852
|
-
(g(), I(
|
|
2855
|
+
(g(), I(Le, { to: "body" }, [
|
|
2853
2856
|
_(at, {
|
|
2854
2857
|
"enter-active-class": "transition-opacity duration-150",
|
|
2855
2858
|
"enter-from-class": "opacity-0",
|
|
@@ -2859,7 +2862,7 @@ const Yo = {
|
|
|
2859
2862
|
"leave-to-class": "opacity-0"
|
|
2860
2863
|
}, {
|
|
2861
2864
|
default: Re(() => [
|
|
2862
|
-
o.value && !e.disabled ? (g(),
|
|
2865
|
+
o.value && !e.disabled ? (g(), v("div", {
|
|
2863
2866
|
key: 0,
|
|
2864
2867
|
id: R(t),
|
|
2865
2868
|
ref_key: "floatingRef",
|
|
@@ -2868,7 +2871,7 @@ const Yo = {
|
|
|
2868
2871
|
style: he(R(d)),
|
|
2869
2872
|
class: "z-50 px-2 py-1 text-xs font-medium bg-bg-inverse text-fg-inverse rounded-md shadow-md max-w-xs pointer-events-none"
|
|
2870
2873
|
}, [
|
|
2871
|
-
X(
|
|
2874
|
+
X(E(e.content) + " ", 1),
|
|
2872
2875
|
F("div", {
|
|
2873
2876
|
ref_key: "arrowRef",
|
|
2874
2877
|
ref: a,
|
|
@@ -3010,10 +3013,10 @@ const Yo = {
|
|
|
3010
3013
|
"shadow-md": "0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1)",
|
|
3011
3014
|
"shadow-lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"
|
|
3012
3015
|
}, hs = { ...Qo, ...Zo, ..._o, ...es };
|
|
3013
|
-
function
|
|
3016
|
+
function vs(e) {
|
|
3014
3017
|
return `--ds-${e}`;
|
|
3015
3018
|
}
|
|
3016
|
-
function
|
|
3019
|
+
function ps(e, n = ":root") {
|
|
3017
3020
|
const t = Object.entries(e).map(([o, s]) => ` --ds-${o}: ${s};`).join(`
|
|
3018
3021
|
`);
|
|
3019
3022
|
return `${n} {
|
|
@@ -3023,7 +3026,7 @@ ${t}
|
|
|
3023
3026
|
export {
|
|
3024
3027
|
ns as DsAvatar,
|
|
3025
3028
|
os as DsBadge,
|
|
3026
|
-
|
|
3029
|
+
Ot as DsButton,
|
|
3027
3030
|
ss as DsCheckbox,
|
|
3028
3031
|
rs as DsDropdownSelect,
|
|
3029
3032
|
as as DsInput,
|
|
@@ -3040,11 +3043,11 @@ export {
|
|
|
3040
3043
|
bs as DsUnderConstruction,
|
|
3041
3044
|
hs as allTokens,
|
|
3042
3045
|
Qo as colorTokens,
|
|
3043
|
-
|
|
3046
|
+
ps as generateThemeCss,
|
|
3044
3047
|
_o as radiusTokens,
|
|
3045
3048
|
es as shadowTokens,
|
|
3046
3049
|
Zo as spacingTokens,
|
|
3047
|
-
|
|
3050
|
+
vs as tokenToCssVar,
|
|
3048
3051
|
fe as useId,
|
|
3049
3052
|
Xo as useToast
|
|
3050
3053
|
};
|