@lumx/vue 4.11.0-next.8 → 4.11.0-next.9
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/index.js +259 -248
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorVariant as wu, Size as Xe, VISUALLY_HIDDEN as xu, DIALOG_TRANSITION_DURATION as Cu, AspectRatio as Pl, IS_BROWSER as No, ColorPalette as Pu } from "@lumx/core/js/constants";
|
|
2
2
|
export * from "@lumx/core/js/constants";
|
|
3
3
|
export * from "@lumx/core/js/types";
|
|
4
|
-
import { createVNode as f, mergeProps as w, Fragment as ee, isVNode as X, useAttrs as M, computed as k, toValue as
|
|
4
|
+
import { createVNode as f, mergeProps as w, Fragment as ee, isVNode as X, useAttrs as M, computed as k, toValue as Oe, getCurrentScope as Sl, onScopeDispose as kl, toRef as oe, readonly as Su, customRef as ku, ref as F, shallowRef as Te, watch as K, getCurrentInstance as _l, onMounted as Ht, inject as Fe, defineComponent as E, toRefs as _u, reactive as Ol, provide as qe, watchEffect as ze, isRef as De, onUnmounted as tt, watchPostEffect as Ou, onBeforeUnmount as Vt, Comment as Tl, unref as pt, useSlots as nt, useTemplateRef as Tu, toRaw as je, Text as Il, nextTick as Iu, shallowReadonly as Ge, h as wo, cloneVNode as Eu, createTextVNode as Lu, withDirectives as $u, resolveDirective as Ru } from "vue";
|
|
5
5
|
import { classNames as le } from "@lumx/core/js/utils";
|
|
6
6
|
import { k as L, u as V, T as El, P as Jr, C as Ll } from "./_internal/BiLpoFMC.js";
|
|
7
7
|
import { getDisabledState as Mu } from "@lumx/core/js/utils/disabledState";
|
|
@@ -228,7 +228,7 @@ const nd = {
|
|
|
228
228
|
}
|
|
229
229
|
}, ad = "AlertDialog", rd = "lumx-alert-dialog", {
|
|
230
230
|
block: od
|
|
231
|
-
} = B(rd),
|
|
231
|
+
} = B(rd), Oo = {
|
|
232
232
|
size: H.tiny,
|
|
233
233
|
kind: Q.info
|
|
234
234
|
}, sd = (e) => {
|
|
@@ -239,8 +239,8 @@ const nd = {
|
|
|
239
239
|
cancelProps: r,
|
|
240
240
|
confirmProps: o,
|
|
241
241
|
ref: s,
|
|
242
|
-
kind: i =
|
|
243
|
-
size: l =
|
|
242
|
+
kind: i = Oo.kind,
|
|
243
|
+
size: l = Oo.size,
|
|
244
244
|
dialogProps: c,
|
|
245
245
|
children: u,
|
|
246
246
|
DescriptionElement: d,
|
|
@@ -257,8 +257,8 @@ const nd = {
|
|
|
257
257
|
icon: S
|
|
258
258
|
} = nd[i] || {}, x = `${t}-title`, N = `${t}-description`, {
|
|
259
259
|
label: _,
|
|
260
|
-
onClick:
|
|
261
|
-
...
|
|
260
|
+
onClick: O,
|
|
261
|
+
...T
|
|
262
262
|
} = o, {
|
|
263
263
|
label: C,
|
|
264
264
|
onClick: R,
|
|
@@ -303,25 +303,25 @@ const nd = {
|
|
|
303
303
|
onClick: R
|
|
304
304
|
}), Nn(C) ? C : {
|
|
305
305
|
default: () => [C]
|
|
306
|
-
}), f(b, w(
|
|
306
|
+
}), f(b, w(T, {
|
|
307
307
|
ref: h,
|
|
308
308
|
color: P,
|
|
309
309
|
className: "lumx-spacing-margin-left-regular",
|
|
310
|
-
onClick:
|
|
310
|
+
onClick: O
|
|
311
311
|
}), Nn(_) ? _ : {
|
|
312
312
|
default: () => [_]
|
|
313
313
|
})])
|
|
314
314
|
}, null)])]
|
|
315
315
|
});
|
|
316
316
|
};
|
|
317
|
-
let
|
|
317
|
+
let To = 0;
|
|
318
318
|
function ae() {
|
|
319
|
-
return
|
|
319
|
+
return To += 1, `:lumx${To}:`;
|
|
320
320
|
}
|
|
321
321
|
function Hl(e, t, n) {
|
|
322
322
|
const a = M();
|
|
323
323
|
return k(() => {
|
|
324
|
-
const r =
|
|
324
|
+
const r = Oe(e), o = a[t];
|
|
325
325
|
return n ? n(r, o) : r ?? o;
|
|
326
326
|
});
|
|
327
327
|
}
|
|
@@ -349,12 +349,12 @@ function Wl(e) {
|
|
|
349
349
|
const no = id ? window : void 0;
|
|
350
350
|
function Ye(e) {
|
|
351
351
|
var t;
|
|
352
|
-
const n =
|
|
352
|
+
const n = Oe(e);
|
|
353
353
|
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
354
354
|
}
|
|
355
355
|
// @__NO_SIDE_EFFECTS__
|
|
356
356
|
function cd() {
|
|
357
|
-
const e =
|
|
357
|
+
const e = Te(!1), t = _l();
|
|
358
358
|
return t && Ht(() => {
|
|
359
359
|
e.value = !0;
|
|
360
360
|
}, t), e;
|
|
@@ -370,7 +370,7 @@ function ud(e, t, n = {}) {
|
|
|
370
370
|
const s = /* @__PURE__ */ ao(() => a && "MutationObserver" in a), i = () => {
|
|
371
371
|
o && (o.disconnect(), o = void 0);
|
|
372
372
|
}, l = K(k(() => {
|
|
373
|
-
const d = Wl(
|
|
373
|
+
const d = Wl(Oe(e)).map(Ye).filter(Vl);
|
|
374
374
|
return new Set(d);
|
|
375
375
|
}), (d) => {
|
|
376
376
|
i(), s.value && d.size && (o = new MutationObserver(t), d.forEach((m) => o.observe(m, r)));
|
|
@@ -392,7 +392,7 @@ function dd(e, t, n = {}) {
|
|
|
392
392
|
const s = /* @__PURE__ */ ao(() => a && "ResizeObserver" in a), i = () => {
|
|
393
393
|
o && (o.disconnect(), o = void 0);
|
|
394
394
|
}, l = K(k(() => {
|
|
395
|
-
const u =
|
|
395
|
+
const u = Oe(e);
|
|
396
396
|
return Array.isArray(u) ? u.map((d) => Ye(d)) : [Ye(u)];
|
|
397
397
|
}), (u) => {
|
|
398
398
|
if (i(), s.value && a) {
|
|
@@ -411,9 +411,9 @@ function dd(e, t, n = {}) {
|
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
413
|
function Io(e, t, n = {}) {
|
|
414
|
-
const { root: a, rootMargin: r = "0px", threshold: o = 0, window: s = no, immediate: i = !0 } = n, l = /* @__PURE__ */ ao(() => s && "IntersectionObserver" in s), c = k(() => Wl(
|
|
414
|
+
const { root: a, rootMargin: r = "0px", threshold: o = 0, window: s = no, immediate: i = !0 } = n, l = /* @__PURE__ */ ao(() => s && "IntersectionObserver" in s), c = k(() => Wl(Oe(e)).map(Ye).filter(Vl));
|
|
415
415
|
let u = $t;
|
|
416
|
-
const d =
|
|
416
|
+
const d = Te(i), m = l.value ? K(() => [
|
|
417
417
|
c.value,
|
|
418
418
|
Ye(a),
|
|
419
419
|
d.value
|
|
@@ -450,10 +450,10 @@ function wn(e) {
|
|
|
450
450
|
}
|
|
451
451
|
const xn = /* @__PURE__ */ new WeakMap();
|
|
452
452
|
function fd(e, t = !1) {
|
|
453
|
-
const n =
|
|
453
|
+
const n = Te(t);
|
|
454
454
|
let a = "";
|
|
455
455
|
K(ld(e), (s) => {
|
|
456
|
-
const i = wn(
|
|
456
|
+
const i = wn(Oe(s));
|
|
457
457
|
if (i) {
|
|
458
458
|
const l = i;
|
|
459
459
|
if (xn.get(l) || xn.set(l, l.style.overflow), l.style.overflow !== "hidden" && (a = l.style.overflow), l.style.overflow === "hidden") return n.value = !0;
|
|
@@ -461,10 +461,10 @@ function fd(e, t = !1) {
|
|
|
461
461
|
}
|
|
462
462
|
}, { immediate: !0 });
|
|
463
463
|
const r = () => {
|
|
464
|
-
const s = wn(
|
|
464
|
+
const s = wn(Oe(e));
|
|
465
465
|
!s || n.value || (s.style.overflow = "hidden", n.value = !0);
|
|
466
466
|
}, o = () => {
|
|
467
|
-
const s = wn(
|
|
467
|
+
const s = wn(Oe(e));
|
|
468
468
|
!s || !n.value || (s.style.overflow = a, xn.delete(s), n.value = !1);
|
|
469
469
|
};
|
|
470
470
|
return Gt(o), k({
|
|
@@ -507,8 +507,8 @@ const hd = "lumx-dialog", {
|
|
|
507
507
|
rootRef: x,
|
|
508
508
|
wrapperRef: N,
|
|
509
509
|
hasTopIntersection: _,
|
|
510
|
-
headerChildProps:
|
|
511
|
-
setSentinelTop:
|
|
510
|
+
headerChildProps: O,
|
|
511
|
+
setSentinelTop: T,
|
|
512
512
|
content: C,
|
|
513
513
|
setSentinelBottom: R,
|
|
514
514
|
footerChildContent: D,
|
|
@@ -550,10 +550,10 @@ const hd = "lumx-dialog", {
|
|
|
550
550
|
default: () => [f("section", {
|
|
551
551
|
className: Ae("wrapper"),
|
|
552
552
|
ref: N
|
|
553
|
-
}, [(a || p) && f("header", w(
|
|
553
|
+
}, [(a || p) && f("header", w(O, {
|
|
554
554
|
className: I(Ae("header", {
|
|
555
555
|
"has-divider": !!(o || _)
|
|
556
|
-
}),
|
|
556
|
+
}), O?.className)
|
|
557
557
|
}), [a, p]), f("div", {
|
|
558
558
|
ref: u,
|
|
559
559
|
className: Ae("content")
|
|
@@ -561,7 +561,7 @@ const hd = "lumx-dialog", {
|
|
|
561
561
|
className: Ae("sentinel", {
|
|
562
562
|
top: !0
|
|
563
563
|
}),
|
|
564
|
-
ref:
|
|
564
|
+
ref: T
|
|
565
565
|
}, null), C, f("div", {
|
|
566
566
|
className: Ae("sentinel", {
|
|
567
567
|
bottom: !0
|
|
@@ -593,7 +593,7 @@ const hd = "lumx-dialog", {
|
|
|
593
593
|
}) => {
|
|
594
594
|
const {
|
|
595
595
|
level: n
|
|
596
|
-
} = _u(e), a = Kl(), r = k(() => gd(n?.value, a.level)), o = k(() => `h${r.value}`), s =
|
|
596
|
+
} = _u(e), a = Kl(), r = k(() => gd(n?.value, a.level)), o = k(() => `h${r.value}`), s = Ol({
|
|
597
597
|
level: r,
|
|
598
598
|
headingElement: o
|
|
599
599
|
});
|
|
@@ -726,19 +726,19 @@ function Sd() {
|
|
|
726
726
|
}
|
|
727
727
|
return _n = e, _n;
|
|
728
728
|
}
|
|
729
|
-
var
|
|
729
|
+
var On, qo;
|
|
730
730
|
function Jl() {
|
|
731
|
-
if (qo) return
|
|
731
|
+
if (qo) return On;
|
|
732
732
|
qo = 1;
|
|
733
733
|
var e = typeof kt == "object" && kt && kt.Object === Object && kt;
|
|
734
|
-
return
|
|
734
|
+
return On = e, On;
|
|
735
735
|
}
|
|
736
|
-
var
|
|
736
|
+
var Tn, zo;
|
|
737
737
|
function Le() {
|
|
738
|
-
if (zo) return
|
|
738
|
+
if (zo) return Tn;
|
|
739
739
|
zo = 1;
|
|
740
740
|
var e = Jl(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
741
|
-
return
|
|
741
|
+
return Tn = n, Tn;
|
|
742
742
|
}
|
|
743
743
|
var In, jo;
|
|
744
744
|
function Kt() {
|
|
@@ -808,17 +808,17 @@ function Ql() {
|
|
|
808
808
|
return Mn = s, Mn;
|
|
809
809
|
}
|
|
810
810
|
var Dn, Ko;
|
|
811
|
-
function
|
|
811
|
+
function Od() {
|
|
812
812
|
if (Ko) return Dn;
|
|
813
813
|
Ko = 1;
|
|
814
814
|
var e = Le(), t = e["__core-js_shared__"];
|
|
815
815
|
return Dn = t, Dn;
|
|
816
816
|
}
|
|
817
817
|
var Bn, Xo;
|
|
818
|
-
function
|
|
818
|
+
function Td() {
|
|
819
819
|
if (Xo) return Bn;
|
|
820
820
|
Xo = 1;
|
|
821
|
-
var e =
|
|
821
|
+
var e = Od(), t = (function() {
|
|
822
822
|
var a = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
|
|
823
823
|
return a ? "Symbol(src)_1." + a : "";
|
|
824
824
|
})();
|
|
@@ -851,7 +851,7 @@ var qn, Zo;
|
|
|
851
851
|
function Id() {
|
|
852
852
|
if (Zo) return qn;
|
|
853
853
|
Zo = 1;
|
|
854
|
-
var e = Ql(), t =
|
|
854
|
+
var e = Ql(), t = Td(), n = Xt(), a = ec(), r = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, l = s.toString, c = i.hasOwnProperty, u = RegExp(
|
|
855
855
|
"^" + l.call(c).replace(r, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
856
856
|
);
|
|
857
857
|
function d(m) {
|
|
@@ -1106,7 +1106,7 @@ function jr(e) {
|
|
|
1106
1106
|
const sa = oc();
|
|
1107
1107
|
function sc(e, t) {
|
|
1108
1108
|
let n;
|
|
1109
|
-
|
|
1109
|
+
Ou((a) => {
|
|
1110
1110
|
const r = De(e) ? e.value : e, o = De(t) ? t.value : t;
|
|
1111
1111
|
if (!r) return;
|
|
1112
1112
|
const s = r.shadowRoot || r, i = (c) => {
|
|
@@ -1223,7 +1223,7 @@ const Qd = {
|
|
|
1223
1223
|
};
|
|
1224
1224
|
return () => {
|
|
1225
1225
|
if (!g.value) return null;
|
|
1226
|
-
const x = n.default?.() ?? [], N = x.find((C) => C.type === "header"), _ = x.find((C) => C.type === "footer"),
|
|
1226
|
+
const x = n.default?.() ?? [], N = x.find((C) => C.type === "header"), _ = x.find((C) => C.type === "footer"), T = !!(N || _) ? x.filter((C) => C.type !== "header" && C.type !== "footer" && C.type !== Tl) : x;
|
|
1227
1227
|
return pd({
|
|
1228
1228
|
...a,
|
|
1229
1229
|
ClickAwayProvider: Ll,
|
|
@@ -1233,7 +1233,7 @@ const Qd = {
|
|
|
1233
1233
|
ProgressCircular: wd,
|
|
1234
1234
|
className: r.value,
|
|
1235
1235
|
clickAwayRefs: y,
|
|
1236
|
-
content:
|
|
1236
|
+
content: T.length ? T : void 0,
|
|
1237
1237
|
contentRef: S,
|
|
1238
1238
|
dialogProps: e.dialogProps,
|
|
1239
1239
|
footer: void 0,
|
|
@@ -1398,17 +1398,17 @@ function oo() {
|
|
|
1398
1398
|
};
|
|
1399
1399
|
return ya = o, ya;
|
|
1400
1400
|
}
|
|
1401
|
-
var Aa,
|
|
1401
|
+
var Aa, Os;
|
|
1402
1402
|
function Ve() {
|
|
1403
|
-
if (
|
|
1404
|
-
|
|
1403
|
+
if (Os) return Aa;
|
|
1404
|
+
Os = 1;
|
|
1405
1405
|
var e = Array.isArray;
|
|
1406
1406
|
return Aa = e, Aa;
|
|
1407
1407
|
}
|
|
1408
|
-
var Na,
|
|
1408
|
+
var Na, Ts;
|
|
1409
1409
|
function so() {
|
|
1410
|
-
if (
|
|
1411
|
-
|
|
1410
|
+
if (Ts) return Na;
|
|
1411
|
+
Ts = 1;
|
|
1412
1412
|
var e = 9007199254740991;
|
|
1413
1413
|
function t(n) {
|
|
1414
1414
|
return typeof n == "number" && n > -1 && n % 1 == 0 && n <= e;
|
|
@@ -1446,8 +1446,8 @@ var Ca, $s;
|
|
|
1446
1446
|
function mf() {
|
|
1447
1447
|
if ($s) return Ca;
|
|
1448
1448
|
$s = 1;
|
|
1449
|
-
var e = At(), t = so(), n = Yt(), a = "[object Arguments]", r = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", u = "[object Number]", d = "[object Object]", m = "[object RegExp]", h = "[object Set]", p = "[object String]", v = "[object WeakMap]", A = "[object ArrayBuffer]", b = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", P = "[object Int8Array]", S = "[object Int16Array]", x = "[object Int32Array]", N = "[object Uint8Array]", _ = "[object Uint8ClampedArray]",
|
|
1450
|
-
C[g] = C[y] = C[P] = C[S] = C[x] = C[N] = C[_] = C[
|
|
1449
|
+
var e = At(), t = so(), n = Yt(), a = "[object Arguments]", r = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", u = "[object Number]", d = "[object Object]", m = "[object RegExp]", h = "[object Set]", p = "[object String]", v = "[object WeakMap]", A = "[object ArrayBuffer]", b = "[object DataView]", g = "[object Float32Array]", y = "[object Float64Array]", P = "[object Int8Array]", S = "[object Int16Array]", x = "[object Int32Array]", N = "[object Uint8Array]", _ = "[object Uint8ClampedArray]", O = "[object Uint16Array]", T = "[object Uint32Array]", C = {};
|
|
1450
|
+
C[g] = C[y] = C[P] = C[S] = C[x] = C[N] = C[_] = C[O] = C[T] = !0, C[a] = C[r] = C[A] = C[o] = C[b] = C[s] = C[i] = C[l] = C[c] = C[u] = C[d] = C[m] = C[h] = C[p] = C[v] = !1;
|
|
1451
1451
|
function R(D) {
|
|
1452
1452
|
return n(D) && t(D.length) && !!C[e(D)];
|
|
1453
1453
|
}
|
|
@@ -1636,11 +1636,11 @@ Zt.displayName = Sf;
|
|
|
1636
1636
|
Zt.className = uc;
|
|
1637
1637
|
Zt.defaultProps = Hr;
|
|
1638
1638
|
const _f = /* @__PURE__ */ Symbol("DISABLED_STATE_KEY");
|
|
1639
|
-
function
|
|
1639
|
+
function Of() {
|
|
1640
1640
|
return Fe(_f, { state: null });
|
|
1641
1641
|
}
|
|
1642
1642
|
function J(e) {
|
|
1643
|
-
const t =
|
|
1643
|
+
const t = Of(), n = k(() => {
|
|
1644
1644
|
const o = typeof e == "function" ? e() : pt(e);
|
|
1645
1645
|
return Mu(t, {
|
|
1646
1646
|
disabled: o.disabled,
|
|
@@ -1660,7 +1660,7 @@ const Bs = E({
|
|
|
1660
1660
|
setup(e, { slots: t }) {
|
|
1661
1661
|
return qe("theme", void 0), () => t.default?.();
|
|
1662
1662
|
}
|
|
1663
|
-
}),
|
|
1663
|
+
}), Tf = "Icon", If = "lumx-icon", dc = If, {
|
|
1664
1664
|
block: Ef
|
|
1665
1665
|
} = B(dc), Lf = {}, Z = (e) => {
|
|
1666
1666
|
const {
|
|
@@ -1711,7 +1711,7 @@ const Bs = E({
|
|
|
1711
1711
|
fill: "currentColor"
|
|
1712
1712
|
}, null)])]);
|
|
1713
1713
|
};
|
|
1714
|
-
Z.displayName =
|
|
1714
|
+
Z.displayName = Tf;
|
|
1715
1715
|
Z.className = dc;
|
|
1716
1716
|
Z.defaultProps = Lf;
|
|
1717
1717
|
const Qe = /* @__PURE__ */ E((e) => {
|
|
@@ -1817,7 +1817,7 @@ function qf(e) {
|
|
|
1817
1817
|
const pe = /* @__PURE__ */ E((e, {
|
|
1818
1818
|
slots: t
|
|
1819
1819
|
}) => {
|
|
1820
|
-
const n = M(), a = mc(), r =
|
|
1820
|
+
const n = M(), a = mc(), r = Tu("tooltip-label"), {
|
|
1821
1821
|
tooltipLabel: o
|
|
1822
1822
|
} = Ff(r), s = $(() => e.class), i = k(() => fc({
|
|
1823
1823
|
...e,
|
|
@@ -1942,7 +1942,7 @@ const pe = /* @__PURE__ */ E((e, {
|
|
|
1942
1942
|
emit: t,
|
|
1943
1943
|
slots: n
|
|
1944
1944
|
}) => {
|
|
1945
|
-
const a = M(), r = $(() => e.class), o = ae(), s = k(() => e.id || o), i =
|
|
1945
|
+
const a = M(), r = $(() => e.class), o = ae(), s = k(() => e.id || o), i = Te(void 0), l = Te(void 0);
|
|
1946
1946
|
return () => {
|
|
1947
1947
|
const c = n.default?.(), d = c?.length === 1 && c[0].type === Il ? "p" : "div", m = {
|
|
1948
1948
|
isOpen: e.isOpen,
|
|
@@ -2108,17 +2108,17 @@ const Jf = "lumx-thumbnail", {
|
|
|
2108
2108
|
loadingState: x,
|
|
2109
2109
|
variant: N,
|
|
2110
2110
|
linkProps: _,
|
|
2111
|
-
linkAs:
|
|
2112
|
-
handleClick:
|
|
2111
|
+
linkAs: O,
|
|
2112
|
+
handleClick: T,
|
|
2113
2113
|
handleKeyPress: C,
|
|
2114
2114
|
...R
|
|
2115
2115
|
} = e, D = p || x === "isLoading", q = x === "hasError", j = q && typeof l == "string", U = q && !j, G = {};
|
|
2116
2116
|
j ? G.visibility = "hidden" : U && (G.display = "none");
|
|
2117
|
-
const z = !!(_?.href ||
|
|
2117
|
+
const z = !!(_?.href || O), Y = !g && !!(z || T || C), fe = {
|
|
2118
2118
|
...R
|
|
2119
2119
|
};
|
|
2120
2120
|
Y && (Object.assign(fe, {
|
|
2121
|
-
as:
|
|
2121
|
+
as: O || (_?.href ? "a" : "button")
|
|
2122
2122
|
}, y), z ? Object.assign(fe, _) : fe["aria-label"] = R["aria-label"] || n);
|
|
2123
2123
|
const St = le.join(_?.className, o, Qf({
|
|
2124
2124
|
[`align-${t}`]: !!t,
|
|
@@ -2171,7 +2171,7 @@ const Jf = "lumx-thumbnail", {
|
|
|
2171
2171
|
...fe,
|
|
2172
2172
|
className: St,
|
|
2173
2173
|
children: Ao,
|
|
2174
|
-
handleClick:
|
|
2174
|
+
handleClick: T,
|
|
2175
2175
|
handleKeyPress: C
|
|
2176
2176
|
}) : f("div", w({
|
|
2177
2177
|
ref: i
|
|
@@ -2301,10 +2301,10 @@ const ah = {
|
|
|
2301
2301
|
inheritAttrs: !1,
|
|
2302
2302
|
props: L()("align", "alt", "aspectRatio", "class", "crossOrigin", "fillHeight", "focusPoint", "image", "imgProps", "isLoading", "linkAs", "linkProps", "loading", "loadingPlaceholderImageRef", "objectFit", "size", "theme", "variant", "aria-disabled", "aria-label"),
|
|
2303
2303
|
emits: ah
|
|
2304
|
-
}),
|
|
2304
|
+
}), OA = {
|
|
2305
2305
|
squared: "squared",
|
|
2306
2306
|
rounded: "rounded"
|
|
2307
|
-
},
|
|
2307
|
+
}, TA = {
|
|
2308
2308
|
cover: "cover",
|
|
2309
2309
|
contain: "contain"
|
|
2310
2310
|
}, rh = /* @__PURE__ */ E((e, {
|
|
@@ -2469,19 +2469,19 @@ function Ac(e, t, n) {
|
|
|
2469
2469
|
const N = u();
|
|
2470
2470
|
N.currentNode = P;
|
|
2471
2471
|
const _ = S ? () => N.nextNode() : () => N.previousNode();
|
|
2472
|
-
let
|
|
2472
|
+
let O = 0, T = null;
|
|
2473
2473
|
for (let C = 0; C < x; C++) {
|
|
2474
2474
|
const R = _();
|
|
2475
2475
|
if (R)
|
|
2476
|
-
|
|
2476
|
+
T = R, O += 1;
|
|
2477
2477
|
else if (s) {
|
|
2478
2478
|
const D = S ? d() : m();
|
|
2479
2479
|
if (!D || D === P) break;
|
|
2480
|
-
|
|
2480
|
+
T = D, O += 1, N.currentNode = D;
|
|
2481
2481
|
} else
|
|
2482
2482
|
break;
|
|
2483
2483
|
}
|
|
2484
|
-
return
|
|
2484
|
+
return O === 0 ? !1 : (lt(l, t, T), !0);
|
|
2485
2485
|
}
|
|
2486
2486
|
const A = () => v(1), b = () => v(-1);
|
|
2487
2487
|
function g() {
|
|
@@ -2572,19 +2572,19 @@ function ch(e, t, n) {
|
|
|
2572
2572
|
function h(x) {
|
|
2573
2573
|
const N = m();
|
|
2574
2574
|
if (x === "all") {
|
|
2575
|
-
const
|
|
2575
|
+
const T = [];
|
|
2576
2576
|
let C = N.nextNode();
|
|
2577
2577
|
for (; C; )
|
|
2578
|
-
d(C) &&
|
|
2579
|
-
return
|
|
2578
|
+
d(C) && T.push(C), C = N.nextNode();
|
|
2579
|
+
return T;
|
|
2580
2580
|
}
|
|
2581
|
-
let _ = null,
|
|
2582
|
-
for (;
|
|
2583
|
-
if (d(
|
|
2584
|
-
if (x === "first") return
|
|
2585
|
-
_ =
|
|
2581
|
+
let _ = null, O = N.nextNode();
|
|
2582
|
+
for (; O; ) {
|
|
2583
|
+
if (d(O)) {
|
|
2584
|
+
if (x === "first") return O;
|
|
2585
|
+
_ = O;
|
|
2586
2586
|
}
|
|
2587
|
-
|
|
2587
|
+
O = N.nextNode();
|
|
2588
2588
|
}
|
|
2589
2589
|
return _;
|
|
2590
2590
|
}
|
|
@@ -2598,19 +2598,19 @@ function ch(e, t, n) {
|
|
|
2598
2598
|
function A(x, N) {
|
|
2599
2599
|
const _ = m();
|
|
2600
2600
|
_.currentNode = x;
|
|
2601
|
-
const
|
|
2602
|
-
let
|
|
2603
|
-
for (;
|
|
2604
|
-
if (d(
|
|
2605
|
-
|
|
2601
|
+
const O = N === "next" ? () => _.nextNode() : () => _.previousNode();
|
|
2602
|
+
let T = O();
|
|
2603
|
+
for (; T; ) {
|
|
2604
|
+
if (d(T)) return T;
|
|
2605
|
+
T = O();
|
|
2606
2606
|
}
|
|
2607
2607
|
return null;
|
|
2608
2608
|
}
|
|
2609
2609
|
function b(x, N) {
|
|
2610
2610
|
const _ = p(x);
|
|
2611
2611
|
if (_.length === 0) return !1;
|
|
2612
|
-
const
|
|
2613
|
-
return l.setActive(_[
|
|
2612
|
+
const O = Math.min(N, _.length - 1);
|
|
2613
|
+
return l.setActive(_[O]), !0;
|
|
2614
2614
|
}
|
|
2615
2615
|
function g() {
|
|
2616
2616
|
const x = h("first");
|
|
@@ -2624,11 +2624,11 @@ function ch(e, t, n) {
|
|
|
2624
2624
|
if (!l.active) return !1;
|
|
2625
2625
|
const N = v(l.active);
|
|
2626
2626
|
if (!N) return !1;
|
|
2627
|
-
const _ = p(N),
|
|
2628
|
-
if (
|
|
2629
|
-
const
|
|
2630
|
-
if (
|
|
2631
|
-
return c =
|
|
2627
|
+
const _ = p(N), O = _.indexOf(l.active);
|
|
2628
|
+
if (O === -1) return !1;
|
|
2629
|
+
const T = O + x;
|
|
2630
|
+
if (T >= 0 && T < _.length)
|
|
2631
|
+
return c = T, l.setActive(_[T]), !0;
|
|
2632
2632
|
if (!i) return !1;
|
|
2633
2633
|
const C = x > 0 ? "next" : "prev", D = A(N, C) ?? (x > 0 ? h("first") : h("last"));
|
|
2634
2634
|
if (!D) return !1;
|
|
@@ -2645,8 +2645,8 @@ function ch(e, t, n) {
|
|
|
2645
2645
|
const _ = A(N, x);
|
|
2646
2646
|
if (_) return b(_, c);
|
|
2647
2647
|
if (i) {
|
|
2648
|
-
const
|
|
2649
|
-
if (
|
|
2648
|
+
const O = h(x === "next" ? "first" : "last");
|
|
2649
|
+
if (O) return b(O, c);
|
|
2650
2650
|
}
|
|
2651
2651
|
return !1;
|
|
2652
2652
|
}
|
|
@@ -2673,20 +2673,20 @@ function ch(e, t, n) {
|
|
|
2673
2673
|
}
|
|
2674
2674
|
const _ = v(l.active);
|
|
2675
2675
|
if (!_) return !1;
|
|
2676
|
-
const
|
|
2677
|
-
if (
|
|
2678
|
-
const
|
|
2679
|
-
return
|
|
2676
|
+
const O = N.indexOf(_);
|
|
2677
|
+
if (O === -1) return !1;
|
|
2678
|
+
const T = Math.max(0, Math.min(O + x, N.length - 1));
|
|
2679
|
+
return T === O ? !1 : b(N[T], c);
|
|
2680
2680
|
},
|
|
2681
2681
|
goToItemMatching(x) {
|
|
2682
2682
|
const N = m();
|
|
2683
2683
|
let _ = N.nextNode();
|
|
2684
2684
|
for (; _; ) {
|
|
2685
2685
|
if (d(_)) {
|
|
2686
|
-
const
|
|
2687
|
-
for (let
|
|
2688
|
-
if (x(T
|
|
2689
|
-
return c =
|
|
2686
|
+
const O = p(_);
|
|
2687
|
+
for (let T = 0; T < O.length; T++)
|
|
2688
|
+
if (x(O[T]))
|
|
2689
|
+
return c = T, l.setActive(O[T]), !0;
|
|
2690
2690
|
}
|
|
2691
2691
|
_ = N.nextNode();
|
|
2692
2692
|
}
|
|
@@ -2695,8 +2695,8 @@ function ch(e, t, n) {
|
|
|
2695
2695
|
goToItem(x) {
|
|
2696
2696
|
const N = v(x);
|
|
2697
2697
|
if (!N || !u(N)) return !1;
|
|
2698
|
-
const
|
|
2699
|
-
return
|
|
2698
|
+
const O = p(N).indexOf(x);
|
|
2699
|
+
return O === -1 ? !1 : (c = O, l.setActive(x), !0);
|
|
2700
2700
|
},
|
|
2701
2701
|
clear() {
|
|
2702
2702
|
l.clear();
|
|
@@ -2807,16 +2807,16 @@ function dh(e, t) {
|
|
|
2807
2807
|
for (const N of b) {
|
|
2808
2808
|
if (N.type === "childList") {
|
|
2809
2809
|
if (!g)
|
|
2810
|
-
for (const
|
|
2811
|
-
const { value:
|
|
2812
|
-
if (
|
|
2813
|
-
g =
|
|
2810
|
+
for (const O of N.removedNodes) {
|
|
2811
|
+
const { value: T } = Vs(O, l).next();
|
|
2812
|
+
if (T) {
|
|
2813
|
+
g = T, y = N.nextSibling ?? N.previousSibling ?? null;
|
|
2814
2814
|
break;
|
|
2815
2815
|
}
|
|
2816
2816
|
}
|
|
2817
|
-
for (const
|
|
2818
|
-
for (const
|
|
2819
|
-
x.push(
|
|
2817
|
+
for (const O of N.addedNodes)
|
|
2818
|
+
for (const T of Vs(O, a))
|
|
2819
|
+
x.push(T);
|
|
2820
2820
|
}
|
|
2821
2821
|
const _ = N.target;
|
|
2822
2822
|
N.type === "attributes" && _.matches(a) && (N.attributeName === s && _.getAttribute(s) === "true" ? P = _ : o && _.matches(o) && S.push(_));
|
|
@@ -2831,10 +2831,10 @@ function dh(e, t) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
if (S.length > 0) {
|
|
2833
2833
|
const N = d.activeItem;
|
|
2834
|
-
for (const
|
|
2835
|
-
m(
|
|
2836
|
-
const
|
|
2837
|
-
v(
|
|
2834
|
+
for (const T of S)
|
|
2835
|
+
m(T, "-1");
|
|
2836
|
+
const O = !!(N && S.includes(N) && u.hasFocus);
|
|
2837
|
+
v(O);
|
|
2838
2838
|
}
|
|
2839
2839
|
if (P) {
|
|
2840
2840
|
const N = n.querySelector(l);
|
|
@@ -2980,7 +2980,7 @@ function Nc(e, t, n) {
|
|
|
2980
2980
|
function _() {
|
|
2981
2981
|
d?.abort(), d = null, s = null;
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function O(C, R, D) {
|
|
2984
2984
|
function q(j) {
|
|
2985
2985
|
if (j.ctrlKey || j.shiftKey) return;
|
|
2986
2986
|
if (D?.(j)) {
|
|
@@ -3017,12 +3017,12 @@ function Nc(e, t, n) {
|
|
|
3017
3017
|
}
|
|
3018
3018
|
C.addEventListener("keydown", (j) => q(j), { signal: R });
|
|
3019
3019
|
}
|
|
3020
|
-
function
|
|
3020
|
+
function T() {
|
|
3021
3021
|
if (!r) return;
|
|
3022
3022
|
const C = !d;
|
|
3023
3023
|
if (d || (d = new AbortController()), r.getAttribute("aria-activedescendant") || r.setAttribute("aria-activedescendant", ""), r.setAttribute("aria-expanded", String(i)), C) {
|
|
3024
3024
|
const R = n?.(N, d.signal) || void 0;
|
|
3025
|
-
|
|
3025
|
+
O(r, d.signal, R), r.addEventListener(
|
|
3026
3026
|
"focusout",
|
|
3027
3027
|
() => {
|
|
3028
3028
|
N.setIsOpen(!1);
|
|
@@ -3087,7 +3087,7 @@ function Nc(e, t, n) {
|
|
|
3087
3087
|
};
|
|
3088
3088
|
},
|
|
3089
3089
|
registerTrigger(C) {
|
|
3090
|
-
return r && r !== C && _(), r = C,
|
|
3090
|
+
return r && r !== C && _(), r = C, T(), () => {
|
|
3091
3091
|
r === C && (_(), r = null);
|
|
3092
3092
|
};
|
|
3093
3093
|
},
|
|
@@ -3095,7 +3095,7 @@ function Nc(e, t, n) {
|
|
|
3095
3095
|
if (o === C) return () => {
|
|
3096
3096
|
};
|
|
3097
3097
|
const R = !!o;
|
|
3098
|
-
return o = C, r && d && (R ? (_(),
|
|
3098
|
+
return o = C, r && d && (R ? (_(), T()) : s = Ws(N, d.signal, v)), () => {
|
|
3099
3099
|
o === C && (o = null, s = null);
|
|
3100
3100
|
};
|
|
3101
3101
|
},
|
|
@@ -3417,7 +3417,7 @@ async function _h(e, t) {
|
|
|
3417
3417
|
right: (S.right - b.right + p.right) / P.x
|
|
3418
3418
|
};
|
|
3419
3419
|
}
|
|
3420
|
-
const
|
|
3420
|
+
const Oh = async (e, t, n) => {
|
|
3421
3421
|
const {
|
|
3422
3422
|
placement: a = "bottom",
|
|
3423
3423
|
strategy: r = "absolute",
|
|
@@ -3481,7 +3481,7 @@ const Th = async (e, t, n) => {
|
|
|
3481
3481
|
strategy: r,
|
|
3482
3482
|
middlewareData: h
|
|
3483
3483
|
};
|
|
3484
|
-
},
|
|
3484
|
+
}, Th = (e) => ({
|
|
3485
3485
|
name: "arrow",
|
|
3486
3486
|
options: e,
|
|
3487
3487
|
async fn(t) {
|
|
@@ -3505,7 +3505,7 @@ const Th = async (e, t, n) => {
|
|
|
3505
3505
|
}, h = lo(r), p = io(h), v = await s.getDimensions(c), A = h === "y", b = A ? "top" : "left", g = A ? "bottom" : "right", y = A ? "clientHeight" : "clientWidth", P = o.reference[p] + o.reference[h] - m[h] - o.floating[p], S = m[h] - o.reference[h], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
3506
3506
|
let N = x ? x[y] : 0;
|
|
3507
3507
|
(!N || !await (s.isElement == null ? void 0 : s.isElement(x))) && (N = i.floating[y] || o.floating[p]);
|
|
3508
|
-
const _ = P / 2 - S / 2,
|
|
3508
|
+
const _ = P / 2 - S / 2, O = N / 2 - v[p] / 2 - 1, T = Ie(d[b], O), C = Ie(d[g], O), R = T, D = N - v[p] - C, q = N / 2 - v[p] / 2 + _, j = Gr(R, q, D), U = !l.arrow && ie(r) != null && q !== j && o.reference[p] / 2 - (q < R ? T : C) - v[p] / 2 < 0, G = U ? q < R ? q - R : q - D : 0;
|
|
3509
3509
|
return {
|
|
3510
3510
|
[h]: m[h] + G,
|
|
3511
3511
|
data: {
|
|
@@ -3564,28 +3564,28 @@ const Eh = function(e) {
|
|
|
3564
3564
|
placement: x
|
|
3565
3565
|
}
|
|
3566
3566
|
};
|
|
3567
|
-
const N = S.map((
|
|
3568
|
-
const C = ie(
|
|
3569
|
-
return [
|
|
3567
|
+
const N = S.map((T) => {
|
|
3568
|
+
const C = ie(T.placement);
|
|
3569
|
+
return [T.placement, C && u ? (
|
|
3570
3570
|
// Check along the mainAxis and main crossAxis side.
|
|
3571
|
-
|
|
3571
|
+
T.overflows.slice(0, 2).reduce((R, D) => R + D, 0)
|
|
3572
3572
|
) : (
|
|
3573
3573
|
// Check only the mainAxis.
|
|
3574
|
-
|
|
3575
|
-
),
|
|
3576
|
-
}).sort((
|
|
3574
|
+
T.overflows[0]
|
|
3575
|
+
), T.overflows];
|
|
3576
|
+
}).sort((T, C) => T[1] - C[1]), O = ((r = N.filter((T) => T[2].slice(
|
|
3577
3577
|
0,
|
|
3578
3578
|
// Aligned placements should not check their opposite crossAxis
|
|
3579
3579
|
// side.
|
|
3580
|
-
ie(
|
|
3580
|
+
ie(T[0]) ? 2 : 3
|
|
3581
3581
|
).every((C) => C <= 0))[0]) == null ? void 0 : r[0]) || N[0][0];
|
|
3582
|
-
return
|
|
3582
|
+
return O !== i ? {
|
|
3583
3583
|
data: {
|
|
3584
3584
|
index: b + 1,
|
|
3585
3585
|
overflows: S
|
|
3586
3586
|
},
|
|
3587
3587
|
reset: {
|
|
3588
|
-
placement:
|
|
3588
|
+
placement: O
|
|
3589
3589
|
}
|
|
3590
3590
|
} : {};
|
|
3591
3591
|
}
|
|
@@ -3616,36 +3616,36 @@ const Eh = function(e) {
|
|
|
3616
3616
|
return {};
|
|
3617
3617
|
const b = ve(r), g = we(i), y = ve(i) === i, P = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), S = m || (y || !v ? [zt(i)] : wh(i)), x = p !== "none";
|
|
3618
3618
|
!m && x && S.push(...Sh(i, v, p, P));
|
|
3619
|
-
const N = [i, ...S], _ = await l.detectOverflow(t, A),
|
|
3620
|
-
let
|
|
3621
|
-
if (u &&
|
|
3619
|
+
const N = [i, ...S], _ = await l.detectOverflow(t, A), O = [];
|
|
3620
|
+
let T = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
3621
|
+
if (u && O.push(_[b]), d) {
|
|
3622
3622
|
const q = xc(r, s, P);
|
|
3623
|
-
|
|
3623
|
+
O.push(_[q[0]], _[q[1]]);
|
|
3624
3624
|
}
|
|
3625
|
-
if (
|
|
3625
|
+
if (T = [...T, {
|
|
3626
3626
|
placement: r,
|
|
3627
|
-
overflows:
|
|
3628
|
-
}], !
|
|
3627
|
+
overflows: O
|
|
3628
|
+
}], !O.every((q) => q <= 0)) {
|
|
3629
3629
|
var C, R;
|
|
3630
3630
|
const q = (((C = o.flip) == null ? void 0 : C.index) || 0) + 1, j = N[q];
|
|
3631
3631
|
if (j && (!(d === "alignment" ? g !== we(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3632
3632
|
// overflows the main axis.
|
|
3633
|
-
|
|
3633
|
+
T.every((z) => we(z.placement) === g ? z.overflows[0] > 0 : !0)))
|
|
3634
3634
|
return {
|
|
3635
3635
|
data: {
|
|
3636
3636
|
index: q,
|
|
3637
|
-
overflows:
|
|
3637
|
+
overflows: T
|
|
3638
3638
|
},
|
|
3639
3639
|
reset: {
|
|
3640
3640
|
placement: j
|
|
3641
3641
|
}
|
|
3642
3642
|
};
|
|
3643
|
-
let U = (R =
|
|
3643
|
+
let U = (R = T.filter((G) => G.overflows[0] <= 0).sort((G, z) => G.overflows[1] - z.overflows[1])[0]) == null ? void 0 : R.placement;
|
|
3644
3644
|
if (!U)
|
|
3645
3645
|
switch (h) {
|
|
3646
3646
|
case "bestFit": {
|
|
3647
3647
|
var D;
|
|
3648
|
-
const G = (D =
|
|
3648
|
+
const G = (D = T.filter((z) => {
|
|
3649
3649
|
if (x) {
|
|
3650
3650
|
const Y = we(z.placement);
|
|
3651
3651
|
return Y === g || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -3802,16 +3802,16 @@ const Mh = function(e) {
|
|
|
3802
3802
|
const g = v - u.top - u.bottom, y = p - u.left - u.right, P = Ie(v - u[A], g), S = Ie(p - u[b], y), x = !t.middlewareData.shift;
|
|
3803
3803
|
let N = P, _ = S;
|
|
3804
3804
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (_ = y), (a = t.middlewareData.shift) != null && a.enabled.y && (N = g), x && !m) {
|
|
3805
|
-
const
|
|
3806
|
-
h ? _ = p - 2 * (
|
|
3805
|
+
const T = te(u.left, 0), C = te(u.right, 0), R = te(u.top, 0), D = te(u.bottom, 0);
|
|
3806
|
+
h ? _ = p - 2 * (T !== 0 || C !== 0 ? T + C : te(u.left, u.right)) : N = v - 2 * (R !== 0 || D !== 0 ? R + D : te(u.top, u.bottom));
|
|
3807
3807
|
}
|
|
3808
3808
|
await l({
|
|
3809
3809
|
...t,
|
|
3810
3810
|
availableWidth: _,
|
|
3811
3811
|
availableHeight: N
|
|
3812
3812
|
});
|
|
3813
|
-
const
|
|
3814
|
-
return p !==
|
|
3813
|
+
const O = await s.getDimensions(i.floating);
|
|
3814
|
+
return p !== O.width || v !== O.height ? {
|
|
3815
3815
|
reset: {
|
|
3816
3816
|
rects: !0
|
|
3817
3817
|
}
|
|
@@ -4096,9 +4096,9 @@ function Qs(e, t, n) {
|
|
|
4096
4096
|
}
|
|
4097
4097
|
return jt(a);
|
|
4098
4098
|
}
|
|
4099
|
-
function
|
|
4099
|
+
function Oc(e, t) {
|
|
4100
4100
|
const n = Ee(e);
|
|
4101
|
-
return n === t || !ue(n) || et(n) ? !1 : de(n).position === "fixed" ||
|
|
4101
|
+
return n === t || !ue(n) || et(n) ? !1 : de(n).position === "fixed" || Oc(n, t);
|
|
4102
4102
|
}
|
|
4103
4103
|
function nm(e, t) {
|
|
4104
4104
|
const n = t.get(e);
|
|
@@ -4109,7 +4109,7 @@ function nm(e, t) {
|
|
|
4109
4109
|
let s = o ? Ee(e) : e;
|
|
4110
4110
|
for (; ue(s) && !et(s); ) {
|
|
4111
4111
|
const i = de(s), l = uo(s);
|
|
4112
|
-
!l && i.position === "fixed" && (r = null), (o ? !l && !r : !l && i.position === "static" && !!r && em.has(r.position) || xt(s) && !l &&
|
|
4112
|
+
!l && i.position === "fixed" && (r = null), (o ? !l && !r : !l && i.position === "static" && !!r && em.has(r.position) || xt(s) && !l && Oc(e, s)) ? a = a.filter((u) => u !== s) : r = i, s = Ee(s);
|
|
4113
4113
|
}
|
|
4114
4114
|
return t.set(e, a), a;
|
|
4115
4115
|
}
|
|
@@ -4165,7 +4165,7 @@ function om(e, t, n) {
|
|
|
4165
4165
|
height: s.height
|
|
4166
4166
|
};
|
|
4167
4167
|
}
|
|
4168
|
-
function
|
|
4168
|
+
function Oa(e) {
|
|
4169
4169
|
return de(e).position === "static";
|
|
4170
4170
|
}
|
|
4171
4171
|
function ei(e, t) {
|
|
@@ -4176,26 +4176,26 @@ function ei(e, t) {
|
|
|
4176
4176
|
let n = e.offsetParent;
|
|
4177
4177
|
return ge(e) === n && (n = n.ownerDocument.body), n;
|
|
4178
4178
|
}
|
|
4179
|
-
function
|
|
4179
|
+
function Tc(e, t) {
|
|
4180
4180
|
const n = ne(e);
|
|
4181
4181
|
if (tn(e))
|
|
4182
4182
|
return n;
|
|
4183
4183
|
if (!be(e)) {
|
|
4184
4184
|
let r = Ee(e);
|
|
4185
4185
|
for (; r && !et(r); ) {
|
|
4186
|
-
if (ue(r) && !
|
|
4186
|
+
if (ue(r) && !Oa(r))
|
|
4187
4187
|
return r;
|
|
4188
4188
|
r = Ee(r);
|
|
4189
4189
|
}
|
|
4190
4190
|
return n;
|
|
4191
4191
|
}
|
|
4192
4192
|
let a = ei(e, t);
|
|
4193
|
-
for (; a && zh(a) &&
|
|
4193
|
+
for (; a && zh(a) && Oa(a); )
|
|
4194
4194
|
a = ei(a, t);
|
|
4195
|
-
return a && et(a) &&
|
|
4195
|
+
return a && et(a) && Oa(a) && !uo(a) ? n : a || Uh(e) || n;
|
|
4196
4196
|
}
|
|
4197
4197
|
const sm = async function(e) {
|
|
4198
|
-
const t = this.getOffsetParent ||
|
|
4198
|
+
const t = this.getOffsetParent || Tc, n = this.getDimensions, a = await n(e.floating);
|
|
4199
4199
|
return {
|
|
4200
4200
|
reference: om(e.reference, await t(e.floating), e.strategy),
|
|
4201
4201
|
floating: {
|
|
@@ -4213,7 +4213,7 @@ const lm = {
|
|
|
4213
4213
|
convertOffsetParentRelativeRectToViewportRelativeRect: Yh,
|
|
4214
4214
|
getDocumentElement: ge,
|
|
4215
4215
|
getClippingRect: am,
|
|
4216
|
-
getOffsetParent:
|
|
4216
|
+
getOffsetParent: Tc,
|
|
4217
4217
|
getElementRects: sm,
|
|
4218
4218
|
getClientRects: Zh,
|
|
4219
4219
|
getDimensions: rm,
|
|
@@ -4306,7 +4306,7 @@ function Ec(e, t, n, a) {
|
|
|
4306
4306
|
}), d?.(), (b = h) == null || b.disconnect(), h = null, l && cancelAnimationFrame(p);
|
|
4307
4307
|
};
|
|
4308
4308
|
}
|
|
4309
|
-
const Lc = Mh, um = Eh, dm = Dh, fm = Lh, hm = Bh, mm =
|
|
4309
|
+
const Lc = Mh, um = Eh, dm = Dh, fm = Lh, hm = Bh, mm = Th, pm = (e, t, n) => {
|
|
4310
4310
|
const a = /* @__PURE__ */ new Map(), r = {
|
|
4311
4311
|
platform: lm,
|
|
4312
4312
|
...n
|
|
@@ -4314,7 +4314,7 @@ const Lc = Mh, um = Eh, dm = Dh, fm = Lh, hm = Bh, mm = Oh, pm = (e, t, n) => {
|
|
|
4314
4314
|
...r.platform,
|
|
4315
4315
|
_c: a
|
|
4316
4316
|
};
|
|
4317
|
-
return
|
|
4317
|
+
return Oh(e, t, {
|
|
4318
4318
|
...r,
|
|
4319
4319
|
platform: o
|
|
4320
4320
|
});
|
|
@@ -4353,7 +4353,7 @@ function Rc(e, t, n) {
|
|
|
4353
4353
|
}), l = k(() => {
|
|
4354
4354
|
var N;
|
|
4355
4355
|
return (N = ct(n.transform)) != null ? N : !0;
|
|
4356
|
-
}), c = k(() => ti(e.value)), u = k(() => ti(t.value)), d = F(0), m = F(0), h = F(i.value), p = F(s.value), v =
|
|
4356
|
+
}), c = k(() => ti(e.value)), u = k(() => ti(t.value)), d = F(0), m = F(0), h = F(i.value), p = F(s.value), v = Te({}), A = F(!1), b = k(() => {
|
|
4357
4357
|
const N = {
|
|
4358
4358
|
position: h.value,
|
|
4359
4359
|
left: "0",
|
|
@@ -4361,17 +4361,17 @@ function Rc(e, t, n) {
|
|
|
4361
4361
|
};
|
|
4362
4362
|
if (!u.value)
|
|
4363
4363
|
return N;
|
|
4364
|
-
const _ = ni(u.value, d.value),
|
|
4364
|
+
const _ = ni(u.value, d.value), O = ni(u.value, m.value);
|
|
4365
4365
|
return l.value ? {
|
|
4366
4366
|
...N,
|
|
4367
|
-
transform: "translate(" + _ + "px, " +
|
|
4367
|
+
transform: "translate(" + _ + "px, " + O + "px)",
|
|
4368
4368
|
...$c(u.value) >= 1.5 && {
|
|
4369
4369
|
willChange: "transform"
|
|
4370
4370
|
}
|
|
4371
4371
|
} : {
|
|
4372
4372
|
position: h.value,
|
|
4373
4373
|
left: _ + "px",
|
|
4374
|
-
top:
|
|
4374
|
+
top: O + "px"
|
|
4375
4375
|
};
|
|
4376
4376
|
});
|
|
4377
4377
|
let g;
|
|
@@ -4420,7 +4420,7 @@ function Rc(e, t, n) {
|
|
|
4420
4420
|
update: y
|
|
4421
4421
|
};
|
|
4422
4422
|
}
|
|
4423
|
-
const bm = 8, Mc = 1e4,
|
|
4423
|
+
const bm = 8, Mc = 1e4, Ot = {
|
|
4424
4424
|
placement: "bottom",
|
|
4425
4425
|
closeMode: "unmount",
|
|
4426
4426
|
ariaLinkMode: "aria-describedby",
|
|
@@ -4519,7 +4519,7 @@ function wm(e) {
|
|
|
4519
4519
|
};
|
|
4520
4520
|
}
|
|
4521
4521
|
function xm(e, t) {
|
|
4522
|
-
const n = F(!1), a =
|
|
4522
|
+
const n = F(!1), a = Te();
|
|
4523
4523
|
return ze((o) => {
|
|
4524
4524
|
const s = t.value;
|
|
4525
4525
|
if (!s) return;
|
|
@@ -4547,7 +4547,7 @@ function Pm(e) {
|
|
|
4547
4547
|
const { slotContent: t, setAnchorElement: n, isMounted: a, id: r, label: o, ariaLinkMode: s } = e;
|
|
4548
4548
|
if (!t || !o)
|
|
4549
4549
|
return wo(ee, t);
|
|
4550
|
-
const i = Bc(t), l = i.find((d) => d.type !==
|
|
4550
|
+
const i = Bc(t), l = i.find((d) => d.type !== Tl), c = a ? r : void 0;
|
|
4551
4551
|
if (l && i.length === 1 && l.type !== Il && !Cm(l)) {
|
|
4552
4552
|
const d = { ref: n };
|
|
4553
4553
|
if (c && o !== l.props?.["aria-label"]) {
|
|
@@ -4568,7 +4568,7 @@ function Sm(e) {
|
|
|
4568
4568
|
const rn = /* @__PURE__ */ E((e, {
|
|
4569
4569
|
slots: t
|
|
4570
4570
|
}) => {
|
|
4571
|
-
const n = ae(), a = $(() => e.class), r = F(null), o = F(null), s = k(() => e.placement ||
|
|
4571
|
+
const n = ae(), a = $(() => e.class), r = F(null), o = F(null), s = k(() => e.placement || Ot.placement), i = k(() => e.closeMode || Ot.closeMode), l = k(() => e.ariaLinkMode || Ot.ariaLinkMode), c = k(() => e.zIndex || Ot.zIndex), {
|
|
4572
4572
|
floatingStyles: u,
|
|
4573
4573
|
placement: d
|
|
4574
4574
|
} = Rc(r, o, {
|
|
@@ -4660,7 +4660,7 @@ const rn = /* @__PURE__ */ E((e, {
|
|
|
4660
4660
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
4661
4661
|
props: L()("icon", "image", "color", "label", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "name", "size", "theme", "class", "aria-disabled", "disabled", "fullWidth", "isActive", "isFocused", "isHovered", "isDisabled", "linkAs", "target", "type", "title", "tooltipProps", "hideTooltip"),
|
|
4662
4662
|
emits: km
|
|
4663
|
-
}), _m = "ButtonGroup", Fc = "lumx-button-group",
|
|
4663
|
+
}), _m = "ButtonGroup", Fc = "lumx-button-group", Om = {}, sn = (e) => {
|
|
4664
4664
|
const {
|
|
4665
4665
|
children: t,
|
|
4666
4666
|
className: n,
|
|
@@ -4672,7 +4672,7 @@ const rn = /* @__PURE__ */ E((e, {
|
|
|
4672
4672
|
};
|
|
4673
4673
|
sn.displayName = _m;
|
|
4674
4674
|
sn.className = Fc;
|
|
4675
|
-
sn.defaultProps =
|
|
4675
|
+
sn.defaultProps = Om;
|
|
4676
4676
|
const IA = /* @__PURE__ */ E((e, {
|
|
4677
4677
|
slots: t
|
|
4678
4678
|
}) => {
|
|
@@ -4687,7 +4687,7 @@ const IA = /* @__PURE__ */ E((e, {
|
|
|
4687
4687
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
4688
4688
|
props: L()("class")
|
|
4689
4689
|
}), qc = /* @__PURE__ */ Symbol("combobox-context");
|
|
4690
|
-
function
|
|
4690
|
+
function Tm(e) {
|
|
4691
4691
|
qe(qc, e);
|
|
4692
4692
|
}
|
|
4693
4693
|
function ye() {
|
|
@@ -5118,8 +5118,8 @@ const tp = (e) => {
|
|
|
5118
5118
|
theme: x,
|
|
5119
5119
|
value: N,
|
|
5120
5120
|
afterElement: _,
|
|
5121
|
-
input:
|
|
5122
|
-
isFocus:
|
|
5121
|
+
input: O,
|
|
5122
|
+
isFocus: T,
|
|
5123
5123
|
IconButton: C,
|
|
5124
5124
|
ref: R
|
|
5125
5125
|
} = e, D = (N || "").length, q = D > 0;
|
|
@@ -5136,7 +5136,7 @@ const tp = (e) => {
|
|
|
5136
5136
|
"has-textarea": A,
|
|
5137
5137
|
"has-value": !!N,
|
|
5138
5138
|
"is-disabled": p,
|
|
5139
|
-
"is-focus":
|
|
5139
|
+
"is-focus": T || o,
|
|
5140
5140
|
"is-valid": d,
|
|
5141
5141
|
[`theme-${x}`]: !!x
|
|
5142
5142
|
}))
|
|
@@ -5165,9 +5165,9 @@ const tp = (e) => {
|
|
|
5165
5165
|
size: H.xs
|
|
5166
5166
|
}), t ? f("div", {
|
|
5167
5167
|
className: re("chips")
|
|
5168
|
-
}, [t,
|
|
5168
|
+
}, [t, O]) : f("div", {
|
|
5169
5169
|
className: re("input-wrapper")
|
|
5170
|
-
}, [
|
|
5170
|
+
}, [O]), (d || s) && Z({
|
|
5171
5171
|
className: re("input-validity"),
|
|
5172
5172
|
color: x === ce.dark ? "light" : void 0,
|
|
5173
5173
|
icon: d ? Qr : vt,
|
|
@@ -5242,8 +5242,8 @@ const tp = (e) => {
|
|
|
5242
5242
|
} = m.value, {
|
|
5243
5243
|
class: N,
|
|
5244
5244
|
className: _,
|
|
5245
|
-
"aria-describedby":
|
|
5246
|
-
disabled:
|
|
5245
|
+
"aria-describedby": O,
|
|
5246
|
+
disabled: T,
|
|
5247
5247
|
isDisabled: C,
|
|
5248
5248
|
"aria-disabled": R,
|
|
5249
5249
|
ariaDisabled: D,
|
|
@@ -5489,7 +5489,7 @@ const hp = /* @__PURE__ */ E((e, {
|
|
|
5489
5489
|
props: L()("type", "class")
|
|
5490
5490
|
}), mp = "ListItem", Xc = "lumx-list-item", {
|
|
5491
5491
|
block: pp,
|
|
5492
|
-
element:
|
|
5492
|
+
element: Tt
|
|
5493
5493
|
} = B(Xc), Yc = {
|
|
5494
5494
|
size: H.regular
|
|
5495
5495
|
}, st = (e) => {
|
|
@@ -5521,7 +5521,7 @@ const hp = /* @__PURE__ */ E((e, {
|
|
|
5521
5521
|
isDisabled: i,
|
|
5522
5522
|
"aria-disabled": l,
|
|
5523
5523
|
...u,
|
|
5524
|
-
className:
|
|
5524
|
+
className: Tt(A ? "link" : "wrapper", {
|
|
5525
5525
|
"is-highlighted": o,
|
|
5526
5526
|
"is-selected": s,
|
|
5527
5527
|
"is-disabled": i || l === "true"
|
|
@@ -5529,11 +5529,11 @@ const hp = /* @__PURE__ */ E((e, {
|
|
|
5529
5529
|
handleClick: m,
|
|
5530
5530
|
ref: d,
|
|
5531
5531
|
children: f(ee, null, [n && f("div", {
|
|
5532
|
-
className:
|
|
5532
|
+
className: Tt("before")
|
|
5533
5533
|
}, [n]), f("div", {
|
|
5534
|
-
className:
|
|
5534
|
+
className: Tt("content")
|
|
5535
5535
|
}, [a]), t && f("div", {
|
|
5536
|
-
className:
|
|
5536
|
+
className: Tt("after")
|
|
5537
5537
|
}, [t])])
|
|
5538
5538
|
})]);
|
|
5539
5539
|
};
|
|
@@ -5728,8 +5728,8 @@ function Sp(e) {
|
|
|
5728
5728
|
}
|
|
5729
5729
|
const kp = "lumx-combobox-option-more-info", {
|
|
5730
5730
|
block: _p,
|
|
5731
|
-
element:
|
|
5732
|
-
} = B(kp),
|
|
5731
|
+
element: Op
|
|
5732
|
+
} = B(kp), Tp = (e, {
|
|
5733
5733
|
IconButton: t,
|
|
5734
5734
|
Popover: n
|
|
5735
5735
|
}) => {
|
|
@@ -5756,7 +5756,7 @@ const kp = "lumx-combobox-option-more-info", {
|
|
|
5756
5756
|
label: ""
|
|
5757
5757
|
}), null), f(n, {
|
|
5758
5758
|
id: s,
|
|
5759
|
-
className:
|
|
5759
|
+
className: Op("popover"),
|
|
5760
5760
|
anchorRef: i,
|
|
5761
5761
|
isOpen: o,
|
|
5762
5762
|
closeMode: "unmount",
|
|
@@ -5785,7 +5785,7 @@ const kp = "lumx-combobox-option-more-info", {
|
|
|
5785
5785
|
LEFT_START: "left-start"
|
|
5786
5786
|
}, Ep = {
|
|
5787
5787
|
MIN_WIDTH: "minWidth"
|
|
5788
|
-
},
|
|
5788
|
+
}, Ta = 14, Lp = 9999;
|
|
5789
5789
|
function $p(e) {
|
|
5790
5790
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e);
|
|
5791
5791
|
}
|
|
@@ -5823,7 +5823,7 @@ const Rp = "lumx-popover", {
|
|
|
5823
5823
|
unmountSentinel: P,
|
|
5824
5824
|
// Forwarded props
|
|
5825
5825
|
...S
|
|
5826
|
-
} = e, x = !u && i === "hide", N = u || i === "hide", _ = r,
|
|
5826
|
+
} = e, x = !u && i === "hide", N = u || i === "hide", _ = r, O = Math.min(l || 0, 5);
|
|
5827
5827
|
return N ? f(t, {
|
|
5828
5828
|
enabled: b
|
|
5829
5829
|
}, {
|
|
@@ -5831,7 +5831,7 @@ const Rp = "lumx-popover", {
|
|
|
5831
5831
|
ref: v,
|
|
5832
5832
|
className: I(s, Mp({
|
|
5833
5833
|
[`theme-${p}`]: !!p,
|
|
5834
|
-
[`elevation-${
|
|
5834
|
+
[`elevation-${O}`]: !!O,
|
|
5835
5835
|
[`position-${d}`]: !!d,
|
|
5836
5836
|
"is-hidden": !!x
|
|
5837
5837
|
})),
|
|
@@ -5868,17 +5868,17 @@ function qp(e) {
|
|
|
5868
5868
|
return typeof e == "string" ? e : Ep.MIN_WIDTH;
|
|
5869
5869
|
}
|
|
5870
5870
|
function zp(e) {
|
|
5871
|
-
const { offset: t, hasArrow: n, fitWidth: a, fitWithinViewportHeight: r, boundary: o, parsedPlacement: s, arrowElement: i } = e, l = [], c = (t?.away ?? 0) + (n ?
|
|
5871
|
+
const { offset: t, hasArrow: n, fitWidth: a, fitWithinViewportHeight: r, boundary: o, parsedPlacement: s, arrowElement: i } = e, l = [], c = (t?.away ?? 0) + (n ? Ta : 0), u = t?.along ?? 0;
|
|
5872
5872
|
return l.push(Lc({ mainAxis: c, crossAxis: u })), s.isAuto ? l.push(
|
|
5873
5873
|
um({ ...o ? { boundary: o } : {}, alignment: s.autoAlignment })
|
|
5874
5874
|
) : (l.push(fm(o ? { boundary: o } : {})), l.push(dm(o ? { boundary: o } : {}))), (a || r) && l.push(
|
|
5875
5875
|
hm({
|
|
5876
5876
|
...o ? { boundary: o } : {},
|
|
5877
5877
|
apply({ availableHeight: d, rects: m, elements: h }) {
|
|
5878
|
-
a && Object.assign(h.floating.style, { [a]: `${m.reference.width}px` }), r && (h.floating.style.maxHeight = `${Math.max(0, d -
|
|
5878
|
+
a && Object.assign(h.floating.style, { [a]: `${m.reference.width}px` }), r && (h.floating.style.maxHeight = `${Math.max(0, d - Ta)}px`);
|
|
5879
5879
|
}
|
|
5880
5880
|
})
|
|
5881
|
-
), n && i && l.push(mm({ element: i, padding:
|
|
5881
|
+
), n && i && l.push(mm({ element: i, padding: Ta / 2 })), l;
|
|
5882
5882
|
}
|
|
5883
5883
|
function jp(e) {
|
|
5884
5884
|
if (e)
|
|
@@ -6038,7 +6038,7 @@ const Kp = /* @__PURE__ */ E((e, {
|
|
|
6038
6038
|
};
|
|
6039
6039
|
return () => {
|
|
6040
6040
|
const d = i.value === s, m = o.value || d, h = t.default?.();
|
|
6041
|
-
return
|
|
6041
|
+
return Tp({
|
|
6042
6042
|
// Pass `undefined` for the core template's `ref` prop. The core template
|
|
6043
6043
|
// passes `ref` to `<IconButton ref={ref}>`, but if we pass `iconButtonRef`
|
|
6044
6044
|
// here, Vue would bind the outer functional component's VNode ref to
|
|
@@ -6286,8 +6286,8 @@ const bo = /* @__PURE__ */ E((e, {
|
|
|
6286
6286
|
}), hv = /* @__PURE__ */ E((e, {
|
|
6287
6287
|
slots: t
|
|
6288
6288
|
}) => {
|
|
6289
|
-
const n = ae(), a = F(null), r =
|
|
6290
|
-
return
|
|
6289
|
+
const n = ae(), a = F(null), r = Te(null);
|
|
6290
|
+
return Tm({
|
|
6291
6291
|
handle: r,
|
|
6292
6292
|
setHandle: (s) => {
|
|
6293
6293
|
r.value = s;
|
|
@@ -6495,7 +6495,7 @@ const kv = /* @__PURE__ */ E((e, {
|
|
|
6495
6495
|
}) => {
|
|
6496
6496
|
const n = $(() => e.class), {
|
|
6497
6497
|
handle: a
|
|
6498
|
-
} = ye(), r = F(null), o =
|
|
6498
|
+
} = ye(), r = F(null), o = Ol({
|
|
6499
6499
|
hidden: !1,
|
|
6500
6500
|
"aria-hidden": !1
|
|
6501
6501
|
});
|
|
@@ -6532,9 +6532,9 @@ const kv = /* @__PURE__ */ E((e, {
|
|
|
6532
6532
|
function It(e) {
|
|
6533
6533
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e);
|
|
6534
6534
|
}
|
|
6535
|
-
const
|
|
6536
|
-
block:
|
|
6537
|
-
} = B(
|
|
6535
|
+
const Ov = "lumx-combobox-state", {
|
|
6536
|
+
block: Tv
|
|
6537
|
+
} = B(Ov), Iv = (e, {
|
|
6538
6538
|
GenericBlock: t,
|
|
6539
6539
|
Text: n
|
|
6540
6540
|
}) => {
|
|
@@ -6549,7 +6549,7 @@ const Tv = "lumx-combobox-state", {
|
|
|
6549
6549
|
vAlign: "center"
|
|
6550
6550
|
}, v = l;
|
|
6551
6551
|
return f(t, w({
|
|
6552
|
-
className: I(!h && Ut(),
|
|
6552
|
+
className: I(!h && Ut(), Tv(), Qu("regular")),
|
|
6553
6553
|
orientation: "vertical"
|
|
6554
6554
|
}, p, {
|
|
6555
6555
|
role: "status",
|
|
@@ -6917,20 +6917,20 @@ function Qv() {
|
|
|
6917
6917
|
}
|
|
6918
6918
|
return er = t, er;
|
|
6919
6919
|
}
|
|
6920
|
-
var tr,
|
|
6920
|
+
var tr, Oi;
|
|
6921
6921
|
function eb() {
|
|
6922
|
-
if (
|
|
6923
|
-
|
|
6922
|
+
if (Oi) return tr;
|
|
6923
|
+
Oi = 1;
|
|
6924
6924
|
var e = mn();
|
|
6925
6925
|
function t(n) {
|
|
6926
6926
|
return e(this, n).get(n);
|
|
6927
6927
|
}
|
|
6928
6928
|
return tr = t, tr;
|
|
6929
6929
|
}
|
|
6930
|
-
var nr,
|
|
6930
|
+
var nr, Ti;
|
|
6931
6931
|
function tb() {
|
|
6932
|
-
if (
|
|
6933
|
-
|
|
6932
|
+
if (Ti) return nr;
|
|
6933
|
+
Ti = 1;
|
|
6934
6934
|
var e = mn();
|
|
6935
6935
|
function t(n) {
|
|
6936
6936
|
return e(this, n).has(n);
|
|
@@ -7358,8 +7358,8 @@ const MA = /* @__PURE__ */ E((e, {
|
|
|
7358
7358
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
7359
7359
|
props: L()("color", "class")
|
|
7360
7360
|
}), _b = "lumx-badge-wrapper", {
|
|
7361
|
-
block:
|
|
7362
|
-
element:
|
|
7361
|
+
block: Ob,
|
|
7362
|
+
element: Tb
|
|
7363
7363
|
} = B(_b), Ib = (e) => {
|
|
7364
7364
|
const {
|
|
7365
7365
|
badge: t,
|
|
@@ -7371,9 +7371,9 @@ const MA = /* @__PURE__ */ E((e, {
|
|
|
7371
7371
|
return f("div", w({
|
|
7372
7372
|
ref: r
|
|
7373
7373
|
}, o, {
|
|
7374
|
-
className: I(a,
|
|
7374
|
+
className: I(a, Ob())
|
|
7375
7375
|
}), [n, t && f("div", {
|
|
7376
|
-
className:
|
|
7376
|
+
className: Tb("badge")
|
|
7377
7377
|
}, [t])]);
|
|
7378
7378
|
}, DA = /* @__PURE__ */ E((e, {
|
|
7379
7379
|
slots: t
|
|
@@ -7530,21 +7530,21 @@ const MA = /* @__PURE__ */ E((e, {
|
|
|
7530
7530
|
keyDownProp: x = "onKeyDown",
|
|
7531
7531
|
tabIndexProp: N = "tabIndex",
|
|
7532
7532
|
..._
|
|
7533
|
-
} = e,
|
|
7533
|
+
} = e, O = p && !g, T = !!p || !!g || s, C = o || (A === ce.light ? W.dark : W.light), R = (q) => {
|
|
7534
7534
|
y?.(q), p && d && ed(d)(q);
|
|
7535
7535
|
}, D = {
|
|
7536
7536
|
[x]: R,
|
|
7537
|
-
[N]:
|
|
7537
|
+
[N]: T && !P.disabled ? 0 : void 0
|
|
7538
7538
|
};
|
|
7539
7539
|
return (
|
|
7540
7540
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
7541
7541
|
f("a", w({
|
|
7542
|
-
role:
|
|
7542
|
+
role: O ? "button" : void 0
|
|
7543
7543
|
}, D, _, {
|
|
7544
7544
|
href: P.disabled ? void 0 : g,
|
|
7545
7545
|
ref: b,
|
|
7546
7546
|
className: I(r, Mb({
|
|
7547
|
-
"is-clickable":
|
|
7547
|
+
"is-clickable": T,
|
|
7548
7548
|
[`color-${C}`]: !!C,
|
|
7549
7549
|
"is-disabled": S,
|
|
7550
7550
|
"has-after": !!t,
|
|
@@ -7554,7 +7554,7 @@ const MA = /* @__PURE__ */ E((e, {
|
|
|
7554
7554
|
[`size-${v}`]: !!v,
|
|
7555
7555
|
"is-unselected": !l
|
|
7556
7556
|
})),
|
|
7557
|
-
"aria-disabled":
|
|
7557
|
+
"aria-disabled": T && S || void 0,
|
|
7558
7558
|
onClick: p ? d : void 0
|
|
7559
7559
|
}), [n && // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
7560
7560
|
f("div", {
|
|
@@ -7679,13 +7679,13 @@ const Vb = "lumx-selection-chip-group", {
|
|
|
7679
7679
|
"aria-orientation": "horizontal",
|
|
7680
7680
|
className: Wb([p])
|
|
7681
7681
|
}), Hb(s = i.map((g) => {
|
|
7682
|
-
const y = c && Lt(c, g) || Lt(l, g), P = Lt(l, g), S = v?.(g) || {}, x = S.isDisabled || m, N = typeof S.children == "string" ? S.children : y, _ = d ? `${N}
|
|
7682
|
+
const y = c && Lt(c, g) || Lt(l, g), P = Lt(l, g), S = v?.(g) || {}, x = S.isDisabled || m, N = typeof S.children == "string" ? S.children : y, _ = d ? `${N} - ${d}` : N;
|
|
7683
7683
|
return f(o, {
|
|
7684
7684
|
key: P,
|
|
7685
7685
|
label: x ? void 0 : _
|
|
7686
7686
|
}, {
|
|
7687
7687
|
default: () => [f(t, w({
|
|
7688
|
-
"aria-label":
|
|
7688
|
+
"aria-label": _
|
|
7689
7689
|
}, S, {
|
|
7690
7690
|
size: "s",
|
|
7691
7691
|
after: f(a, {
|
|
@@ -7799,12 +7799,23 @@ const Yb = (e) => (t) => X(t) && t.type === e, Zb = {
|
|
|
7799
7799
|
itemSelector: `.${yt}`,
|
|
7800
7800
|
itemDisabledSelector: `.${yt}[aria-disabled="true"]`
|
|
7801
7801
|
}), () => {
|
|
7802
|
-
const c =
|
|
7803
|
-
const
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7802
|
+
const c = (m) => {
|
|
7803
|
+
const h = e.getChipProps?.(m) || {};
|
|
7804
|
+
let p = {};
|
|
7805
|
+
if (n.chip) {
|
|
7806
|
+
const b = n.chip({
|
|
7807
|
+
option: m
|
|
7808
|
+
})?.find(Yb(nl));
|
|
7809
|
+
p = b?.props || {};
|
|
7810
|
+
const g = b?.children?.before;
|
|
7811
|
+
g && (p.before = g());
|
|
7812
|
+
}
|
|
7813
|
+
const v = Object.fromEntries(Object.entries(p).filter(([, A]) => A !== void 0));
|
|
7814
|
+
return {
|
|
7815
|
+
...h,
|
|
7816
|
+
...v
|
|
7817
|
+
};
|
|
7818
|
+
}, {
|
|
7808
7819
|
class: u,
|
|
7809
7820
|
...d
|
|
7810
7821
|
} = e;
|
|
@@ -7916,10 +7927,10 @@ const Yb = (e) => (t) => X(t) && t.type === e, Zb = {
|
|
|
7916
7927
|
footer: P,
|
|
7917
7928
|
closeMode: S,
|
|
7918
7929
|
...x
|
|
7919
|
-
} = e, N = (
|
|
7930
|
+
} = e, N = (T) => {
|
|
7920
7931
|
const C = !s;
|
|
7921
|
-
c && C && c(
|
|
7922
|
-
}, _ = d === ce.dark ? W.light : W.dark,
|
|
7932
|
+
c && C && c(T), l && !C && l(T), u && u(C, T);
|
|
7933
|
+
}, _ = d === ce.dark ? W.light : W.dark, O = I(t, og({
|
|
7923
7934
|
"has-background": a,
|
|
7924
7935
|
"has-header": !Bt(h.children),
|
|
7925
7936
|
"has-header-divider": o,
|
|
@@ -7931,7 +7942,7 @@ const Yb = (e) => (t) => X(t) && t.type === e, Zb = {
|
|
|
7931
7942
|
return f("section", w({
|
|
7932
7943
|
ref: r
|
|
7933
7944
|
}, x, {
|
|
7934
|
-
className:
|
|
7945
|
+
className: O
|
|
7935
7946
|
}), [f("header", {
|
|
7936
7947
|
className: Ne("header"),
|
|
7937
7948
|
onClick: N
|
|
@@ -8072,9 +8083,9 @@ const ug = "lumx-flag", {
|
|
|
8072
8083
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
8073
8084
|
props: L()("color", "icon", "truncate", "theme", "class")
|
|
8074
8085
|
});
|
|
8075
|
-
var
|
|
8086
|
+
var Or, il;
|
|
8076
8087
|
function hg() {
|
|
8077
|
-
if (il) return
|
|
8088
|
+
if (il) return Or;
|
|
8078
8089
|
il = 1;
|
|
8079
8090
|
var e = /\s/;
|
|
8080
8091
|
function t(n) {
|
|
@@ -8082,17 +8093,17 @@ function hg() {
|
|
|
8082
8093
|
;
|
|
8083
8094
|
return a;
|
|
8084
8095
|
}
|
|
8085
|
-
return
|
|
8096
|
+
return Or = t, Or;
|
|
8086
8097
|
}
|
|
8087
|
-
var
|
|
8098
|
+
var Tr, ll;
|
|
8088
8099
|
function mg() {
|
|
8089
|
-
if (ll) return
|
|
8100
|
+
if (ll) return Tr;
|
|
8090
8101
|
ll = 1;
|
|
8091
8102
|
var e = hg(), t = /^\s+/;
|
|
8092
8103
|
function n(a) {
|
|
8093
8104
|
return a && a.slice(0, e(a) + 1).replace(t, "");
|
|
8094
8105
|
}
|
|
8095
|
-
return
|
|
8106
|
+
return Tr = n, Tr;
|
|
8096
8107
|
}
|
|
8097
8108
|
var Ir, cl;
|
|
8098
8109
|
function pg() {
|
|
@@ -8328,10 +8339,10 @@ const VA = /* @__PURE__ */ E((e, {
|
|
|
8328
8339
|
function hl(e) {
|
|
8329
8340
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e);
|
|
8330
8341
|
}
|
|
8331
|
-
const
|
|
8332
|
-
block:
|
|
8342
|
+
const Og = "lumx-link-preview", {
|
|
8343
|
+
block: Tg,
|
|
8333
8344
|
element: Re
|
|
8334
|
-
} = B(
|
|
8345
|
+
} = B(Og), fu = {
|
|
8335
8346
|
size: H.regular,
|
|
8336
8347
|
titleHeading: "h2"
|
|
8337
8348
|
}, Ig = (e) => {
|
|
@@ -8354,7 +8365,7 @@ const Tg = "lumx-link-preview", {
|
|
|
8354
8365
|
return f("article", w({
|
|
8355
8366
|
ref: c
|
|
8356
8367
|
}, p, {
|
|
8357
|
-
className: I(t,
|
|
8368
|
+
className: I(t, Tg({
|
|
8358
8369
|
[`size-${v}`]: !!v,
|
|
8359
8370
|
[`theme-${i}`]: !!i
|
|
8360
8371
|
}))
|
|
@@ -9384,7 +9395,7 @@ const iN = /* @__PURE__ */ E((e, {
|
|
|
9384
9395
|
name: "LumxTable",
|
|
9385
9396
|
inheritAttrs: !1,
|
|
9386
9397
|
props: L()("class", "hasBefore", "hasDividers", "theme")
|
|
9387
|
-
}),
|
|
9398
|
+
}), Oy = `${Pt}__body`, Ty = (e) => {
|
|
9388
9399
|
const {
|
|
9389
9400
|
children: t,
|
|
9390
9401
|
className: n,
|
|
@@ -9394,13 +9405,13 @@ const iN = /* @__PURE__ */ E((e, {
|
|
|
9394
9405
|
return f("tbody", w({
|
|
9395
9406
|
ref: a
|
|
9396
9407
|
}, r, {
|
|
9397
|
-
className: I(n,
|
|
9408
|
+
className: I(n, Oy)
|
|
9398
9409
|
}), [t]);
|
|
9399
9410
|
}, cN = /* @__PURE__ */ E((e, {
|
|
9400
9411
|
slots: t
|
|
9401
9412
|
}) => {
|
|
9402
9413
|
const n = M(), a = $(() => e.class);
|
|
9403
|
-
return () => f(
|
|
9414
|
+
return () => f(Ty, w(e, n, {
|
|
9404
9415
|
className: a.value,
|
|
9405
9416
|
children: t.default?.()
|
|
9406
9417
|
}), null);
|
|
@@ -9590,10 +9601,10 @@ const qy = `${gu}__link`, {
|
|
|
9590
9601
|
...S
|
|
9591
9602
|
} = e, x = () => {
|
|
9592
9603
|
r || p?.();
|
|
9593
|
-
}, N = (
|
|
9594
|
-
c?.(
|
|
9595
|
-
}, _ = (
|
|
9596
|
-
u?.(
|
|
9604
|
+
}, N = (O) => {
|
|
9605
|
+
c?.(O), A && x();
|
|
9606
|
+
}, _ = (O) => {
|
|
9607
|
+
u?.(O), !(O.key !== "Enter" || r) && x();
|
|
9597
9608
|
};
|
|
9598
9609
|
return f("button", w({
|
|
9599
9610
|
ref: P
|
|
@@ -9912,13 +9923,13 @@ const nA = "lumx-user-block", {
|
|
|
9912
9923
|
Avatar: N,
|
|
9913
9924
|
..._
|
|
9914
9925
|
} = e;
|
|
9915
|
-
let
|
|
9916
|
-
v === Je.vertical && (
|
|
9917
|
-
const
|
|
9926
|
+
let O = b;
|
|
9927
|
+
v === Je.vertical && (O = H.l);
|
|
9928
|
+
const T = v === Je.vertical, C = Zr({
|
|
9918
9929
|
handleClick: m,
|
|
9919
9930
|
linkAs: o,
|
|
9920
9931
|
linkProps: r
|
|
9921
|
-
}), R =
|
|
9932
|
+
}), R = O !== H.s && O !== H.xs, D = a && R && f("div", {
|
|
9922
9933
|
className: _e("fields")
|
|
9923
9934
|
}, [a.map((j, U) => f(x, {
|
|
9924
9935
|
as: "span",
|
|
@@ -9939,7 +9950,7 @@ const nA = "lumx-user-block", {
|
|
|
9939
9950
|
}, _, q, {
|
|
9940
9951
|
className: I(n, aA({
|
|
9941
9952
|
[`orientation-${v}`]: !!v,
|
|
9942
|
-
[`size-${
|
|
9953
|
+
[`size-${O}`]: !!O,
|
|
9943
9954
|
[`theme-${g}`]: !!g,
|
|
9944
9955
|
"is-clickable": C
|
|
9945
9956
|
}))
|
|
@@ -9949,14 +9960,14 @@ const nA = "lumx-user-block", {
|
|
|
9949
9960
|
alt: ""
|
|
9950
9961
|
}, t, {
|
|
9951
9962
|
className: I(_e("avatar"), t.className),
|
|
9952
|
-
size:
|
|
9963
|
+
size: O,
|
|
9953
9964
|
onClick: m,
|
|
9954
9965
|
theme: g
|
|
9955
9966
|
}), null), (a || u || y || P) && f("div", {
|
|
9956
9967
|
className: _e("wrapper")
|
|
9957
|
-
}, [y, D, R ? P : null]),
|
|
9968
|
+
}, [y, D, R ? P : null]), T && A && f("div", {
|
|
9958
9969
|
className: _e("action")
|
|
9959
|
-
}, [A]),
|
|
9970
|
+
}, [A]), T && i && f("div", {
|
|
9960
9971
|
className: _e("actions")
|
|
9961
9972
|
}, [i]), S ? f("div", {
|
|
9962
9973
|
className: _e("after")
|
|
@@ -10128,8 +10139,8 @@ export {
|
|
|
10128
10139
|
ap as TextField,
|
|
10129
10140
|
Et as ThOrder,
|
|
10130
10141
|
Jt as Thumbnail,
|
|
10131
|
-
|
|
10132
|
-
|
|
10142
|
+
TA as ThumbnailObjectFit,
|
|
10143
|
+
OA as ThumbnailVariant,
|
|
10133
10144
|
Wf as Toolbar,
|
|
10134
10145
|
rn as Tooltip,
|
|
10135
10146
|
oN as Uploader,
|