@lumx/vue 4.18.1-alpha.1 → 4.19.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/text-field/TextField.d.ts +0 -5
- package/components/text-field/TextField.stories.d.ts +0 -1
- package/index.js +526 -529
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorVariant as ld, Size as rt, VISUALLY_HIDDEN as cd, DIALOG_TRANSITION_DURATION as ac, AspectRatio as oc, IS_BROWSER as Yr, ColorPalette as ud } 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 m, mergeProps as S, Fragment as ne, isVNode as K, useAttrs as D, computed as
|
|
4
|
+
import { createVNode as m, mergeProps as S, Fragment as ne, isVNode as K, useAttrs as D, computed as C, toValue as Me, getCurrentScope as rc, onScopeDispose as mr, toRef as Q, readonly as dd, customRef as fd, ref as R, shallowRef as Re, watch as X, getCurrentInstance as sc, onMounted as Ke, inject as qe, defineComponent as E, toRefs as hd, reactive as ic, provide as je, watchEffect as Xe, isRef as lt, onUnmounted as He, watchPostEffect as md, onBeforeUnmount as en, Comment as pr, unref as xt, useSlots as ke, useTemplateRef as pd, toRaw as Ye, Text as lc, nextTick as cc, shallowReadonly as nt, h as Zr, cloneVNode as gd, onWatcherCleanup as vd, createTextVNode as bd, withDirectives as yd, resolveDirective as Ad } from "vue";
|
|
5
5
|
import { classNames as fe } from "@lumx/core/js/utils";
|
|
6
6
|
import { k as $, u as U, T as gr, P as tn, C as vr, I as uc } from "./_internal/CHaqSUjw.js";
|
|
7
7
|
import { getDisabledState as Sd } from "@lumx/core/js/utils/disabledState";
|
|
@@ -184,7 +184,7 @@ const an = () => cd;
|
|
|
184
184
|
function jd(e, t, n, a) {
|
|
185
185
|
return Sr(`${e}__${t}`, n, a);
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function B(e) {
|
|
188
188
|
function t(a, o) {
|
|
189
189
|
return Sr(e, a, o);
|
|
190
190
|
}
|
|
@@ -239,7 +239,7 @@ const Wd = {
|
|
|
239
239
|
}
|
|
240
240
|
}, Ud = "AlertDialog", Gd = "lumx-alert-dialog", {
|
|
241
241
|
block: Kd
|
|
242
|
-
} =
|
|
242
|
+
} = B(Gd), as = {
|
|
243
243
|
size: H.tiny,
|
|
244
244
|
kind: ie.info
|
|
245
245
|
}, Xd = (e) => {
|
|
@@ -266,10 +266,10 @@ const Wd = {
|
|
|
266
266
|
} = e, {
|
|
267
267
|
color: N,
|
|
268
268
|
icon: x
|
|
269
|
-
} = Wd[i] || {},
|
|
269
|
+
} = Wd[i] || {}, w = `${t}-title`, k = `${t}-description`, {
|
|
270
270
|
label: P,
|
|
271
271
|
onClick: T,
|
|
272
|
-
...
|
|
272
|
+
...O
|
|
273
273
|
} = r, {
|
|
274
274
|
label: _,
|
|
275
275
|
onClick: q,
|
|
@@ -282,8 +282,8 @@ const Wd = {
|
|
|
282
282
|
dialogProps: {
|
|
283
283
|
id: t,
|
|
284
284
|
role: "alertdialog",
|
|
285
|
-
"aria-labelledby":
|
|
286
|
-
"aria-describedby":
|
|
285
|
+
"aria-labelledby": w,
|
|
286
|
+
"aria-describedby": k,
|
|
287
287
|
...c
|
|
288
288
|
},
|
|
289
289
|
className: L(a, Kd({
|
|
@@ -298,11 +298,11 @@ const Wd = {
|
|
|
298
298
|
color: N
|
|
299
299
|
}, null),
|
|
300
300
|
label: m("h2", {
|
|
301
|
-
id:
|
|
301
|
+
id: w,
|
|
302
302
|
className: "lumx-typography-title"
|
|
303
303
|
}, [n])
|
|
304
304
|
}, null)]), d && m(u, {
|
|
305
|
-
id:
|
|
305
|
+
id: k,
|
|
306
306
|
className: "lumx-typography-body2 lumx-spacing-padding-vertical-big lumx-spacing-padding-horizontal-huge"
|
|
307
307
|
}, Ln(d) ? d : {
|
|
308
308
|
default: () => [d]
|
|
@@ -314,7 +314,7 @@ const Wd = {
|
|
|
314
314
|
onClick: q
|
|
315
315
|
}), Ln(_) ? _ : {
|
|
316
316
|
default: () => [_]
|
|
317
|
-
}), m(v, S(
|
|
317
|
+
}), m(v, S(O, {
|
|
318
318
|
ref: f,
|
|
319
319
|
color: N,
|
|
320
320
|
className: "lumx-spacing-margin-left-regular",
|
|
@@ -331,7 +331,7 @@ function re() {
|
|
|
331
331
|
}
|
|
332
332
|
function yc(e, t, n) {
|
|
333
333
|
const a = D();
|
|
334
|
-
return
|
|
334
|
+
return C(() => {
|
|
335
335
|
const o = Me(e), r = a[t];
|
|
336
336
|
return n ? n(o, r) : o ?? r;
|
|
337
337
|
});
|
|
@@ -377,14 +377,14 @@ function Jd() {
|
|
|
377
377
|
// @__NO_SIDE_EFFECTS__
|
|
378
378
|
function xr(e) {
|
|
379
379
|
const t = /* @__PURE__ */ Jd();
|
|
380
|
-
return
|
|
380
|
+
return C(() => (t.value, !!e()));
|
|
381
381
|
}
|
|
382
382
|
function Qd(e, t, n = {}) {
|
|
383
383
|
const { window: a = Pr, ...o } = n;
|
|
384
384
|
let r;
|
|
385
385
|
const s = /* @__PURE__ */ xr(() => a && "MutationObserver" in a), i = () => {
|
|
386
386
|
r && (r.disconnect(), r = void 0);
|
|
387
|
-
}, l = X(
|
|
387
|
+
}, l = X(C(() => {
|
|
388
388
|
const u = Sc(Me(e)).map(st).filter(Ac);
|
|
389
389
|
return new Set(u);
|
|
390
390
|
}), (u) => {
|
|
@@ -406,7 +406,7 @@ function ef(e, t, n = {}) {
|
|
|
406
406
|
let r;
|
|
407
407
|
const s = /* @__PURE__ */ xr(() => a && "ResizeObserver" in a), i = () => {
|
|
408
408
|
r && (r.disconnect(), r = void 0);
|
|
409
|
-
}, l = X(
|
|
409
|
+
}, l = X(C(() => {
|
|
410
410
|
const d = Me(e);
|
|
411
411
|
return Array.isArray(d) ? d.map((u) => st(u)) : [st(d)];
|
|
412
412
|
}), (d) => {
|
|
@@ -426,7 +426,7 @@ function ef(e, t, n = {}) {
|
|
|
426
426
|
};
|
|
427
427
|
}
|
|
428
428
|
function rs(e, t, n = {}) {
|
|
429
|
-
const { root: a, rootMargin: o = "0px", threshold: r = 0, window: s = Pr, immediate: i = !0 } = n, l = /* @__PURE__ */ xr(() => s && "IntersectionObserver" in s), c =
|
|
429
|
+
const { root: a, rootMargin: o = "0px", threshold: r = 0, window: s = Pr, immediate: i = !0 } = n, l = /* @__PURE__ */ xr(() => s && "IntersectionObserver" in s), c = C(() => Sc(Me(e)).map(st).filter(Ac));
|
|
430
430
|
let d = Vt;
|
|
431
431
|
const u = Re(i), h = l.value ? X(() => [
|
|
432
432
|
c.value,
|
|
@@ -482,7 +482,7 @@ function tf(e, t = !1) {
|
|
|
482
482
|
const s = En(Me(e));
|
|
483
483
|
!s || !n.value || (s.style.overflow = a, $n.delete(s), n.value = !1);
|
|
484
484
|
};
|
|
485
|
-
return on(r),
|
|
485
|
+
return on(r), C({
|
|
486
486
|
get() {
|
|
487
487
|
return n.value;
|
|
488
488
|
},
|
|
@@ -494,7 +494,7 @@ function tf(e, t = !1) {
|
|
|
494
494
|
const nf = "lumx-dialog", {
|
|
495
495
|
block: af,
|
|
496
496
|
element: xe
|
|
497
|
-
} =
|
|
497
|
+
} = B(nf), Nc = {
|
|
498
498
|
size: H.big
|
|
499
499
|
}, of = (e) => {
|
|
500
500
|
const {
|
|
@@ -519,23 +519,23 @@ const nf = "lumx-dialog", {
|
|
|
519
519
|
ClickAwayProvider: A,
|
|
520
520
|
shouldPreventCloseOnClickAway: N,
|
|
521
521
|
clickAwayRefs: x,
|
|
522
|
-
rootRef:
|
|
523
|
-
wrapperRef:
|
|
522
|
+
rootRef: w,
|
|
523
|
+
wrapperRef: k,
|
|
524
524
|
hasTopIntersection: P,
|
|
525
525
|
headerChildProps: T,
|
|
526
|
-
setSentinelTop:
|
|
526
|
+
setSentinelTop: O,
|
|
527
527
|
content: _,
|
|
528
528
|
setSentinelBottom: q,
|
|
529
529
|
footerChildContent: j,
|
|
530
530
|
footerChildProps: I,
|
|
531
|
-
ProgressCircular:
|
|
532
|
-
hasBottomIntersection:
|
|
533
|
-
...
|
|
531
|
+
ProgressCircular: F,
|
|
532
|
+
hasBottomIntersection: V,
|
|
533
|
+
...W
|
|
534
534
|
} = e;
|
|
535
535
|
return m(b, null, {
|
|
536
536
|
default: () => [m("div", S({
|
|
537
537
|
ref: n
|
|
538
|
-
},
|
|
538
|
+
}, W, {
|
|
539
539
|
className: L(t, af({
|
|
540
540
|
"is-hidden": !l,
|
|
541
541
|
"is-loading": i,
|
|
@@ -560,11 +560,11 @@ const nf = "lumx-dialog", {
|
|
|
560
560
|
}, f), [m(A, {
|
|
561
561
|
callback: !N && c,
|
|
562
562
|
childrenRefs: x,
|
|
563
|
-
parentRef:
|
|
563
|
+
parentRef: w
|
|
564
564
|
}, {
|
|
565
565
|
default: () => [m("section", {
|
|
566
566
|
className: xe("wrapper"),
|
|
567
|
-
ref:
|
|
567
|
+
ref: k
|
|
568
568
|
}, [(a || g) && m("header", S(T, {
|
|
569
569
|
className: L(xe("header", {
|
|
570
570
|
"has-divider": !!(r || P)
|
|
@@ -576,7 +576,7 @@ const nf = "lumx-dialog", {
|
|
|
576
576
|
className: xe("sentinel", {
|
|
577
577
|
top: !0
|
|
578
578
|
}),
|
|
579
|
-
ref:
|
|
579
|
+
ref: O
|
|
580
580
|
}, null), _, m("div", {
|
|
581
581
|
className: xe("sentinel", {
|
|
582
582
|
bottom: !0
|
|
@@ -584,11 +584,11 @@ const nf = "lumx-dialog", {
|
|
|
584
584
|
ref: q
|
|
585
585
|
}, null)]), (s || j) && m("footer", S(I, {
|
|
586
586
|
className: L(xe("footer", {
|
|
587
|
-
"has-divider": !!(o ||
|
|
587
|
+
"has-divider": !!(o || V)
|
|
588
588
|
}), I?.className)
|
|
589
589
|
}), [s, j]), i && m("div", {
|
|
590
590
|
className: xe("progress-overlay")
|
|
591
|
-
}, [m(
|
|
591
|
+
}, [m(F, null, null)])])]
|
|
592
592
|
})])]
|
|
593
593
|
})]
|
|
594
594
|
})])]
|
|
@@ -608,7 +608,7 @@ const nf = "lumx-dialog", {
|
|
|
608
608
|
}) => {
|
|
609
609
|
const {
|
|
610
610
|
level: n
|
|
611
|
-
} = hd(e), a = xc(), o =
|
|
611
|
+
} = hd(e), a = xc(), o = C(() => lf(n?.value, a.level)), r = C(() => `h${o.value}`), s = ic({
|
|
612
612
|
level: o,
|
|
613
613
|
headingElement: r
|
|
614
614
|
});
|
|
@@ -619,7 +619,7 @@ const nf = "lumx-dialog", {
|
|
|
619
619
|
}), cf = "lumx-progress-circular", {
|
|
620
620
|
block: uf,
|
|
621
621
|
element: Gt
|
|
622
|
-
} =
|
|
622
|
+
} = B(cf), is = {
|
|
623
623
|
size: H.m,
|
|
624
624
|
display: "block"
|
|
625
625
|
}, df = (e) => {
|
|
@@ -1224,7 +1224,7 @@ function Dc(e, t, n) {
|
|
|
1224
1224
|
s !== r && (r = s, n?.value?.(s));
|
|
1225
1225
|
}), en(() => {
|
|
1226
1226
|
clearTimeout(o);
|
|
1227
|
-
}),
|
|
1227
|
+
}), C(() => e.value || a.value);
|
|
1228
1228
|
}
|
|
1229
1229
|
function Bc(e) {
|
|
1230
1230
|
const t = tf(typeof document < "u" ? document.body : null);
|
|
@@ -1240,29 +1240,29 @@ const qf = {
|
|
|
1240
1240
|
slots: n,
|
|
1241
1241
|
attrs: a
|
|
1242
1242
|
}) => {
|
|
1243
|
-
const o = M(() => e.class), r = R(null), s = R(null), i = R(null), l = R(null), c = R(null), d = (
|
|
1244
|
-
l.value =
|
|
1245
|
-
}, u = (
|
|
1246
|
-
c.value =
|
|
1243
|
+
const o = M(() => e.class), r = R(null), s = R(null), i = R(null), l = R(null), c = R(null), d = (w) => {
|
|
1244
|
+
l.value = w;
|
|
1245
|
+
}, u = (w) => {
|
|
1246
|
+
c.value = w;
|
|
1247
1247
|
}, h = R(null), f = R(null);
|
|
1248
|
-
rs(l, (
|
|
1249
|
-
const
|
|
1250
|
-
h.value =
|
|
1251
|
-
}), rs(c, (
|
|
1252
|
-
const
|
|
1253
|
-
f.value =
|
|
1248
|
+
rs(l, (w) => {
|
|
1249
|
+
const k = w[0];
|
|
1250
|
+
h.value = k ? !k.isIntersecting : null;
|
|
1251
|
+
}), rs(c, (w) => {
|
|
1252
|
+
const k = w[0];
|
|
1253
|
+
f.value = k ? !k.isIntersecting : null;
|
|
1254
1254
|
});
|
|
1255
|
-
const g =
|
|
1256
|
-
ln(p,
|
|
1257
|
-
const b =
|
|
1258
|
-
Cr(b,
|
|
1259
|
-
}),
|
|
1260
|
-
const v = Dc(
|
|
1261
|
-
i.value =
|
|
1255
|
+
const g = C(() => e.preventAutoClose || e.preventCloseOnEscape), p = () => t("close");
|
|
1256
|
+
ln(p, C(() => !!(e.isOpen && !g.value)));
|
|
1257
|
+
const b = C(() => e.isOpen && s.value || !1);
|
|
1258
|
+
Cr(b, C(() => e.focusElement)), Or(C(() => !0), C(() => {
|
|
1259
|
+
}), C(() => e.parentElement), s, C(() => !!e.isOpen)), Bc(C(() => e.disableBodyScroll !== !1 && !!e.isOpen));
|
|
1260
|
+
const v = Dc(C(() => !!e.isOpen), ac, C(() => (w) => t("visibilityChange", w))), y = C(() => e.isOpen || v.value || e.closeMode === "hide"), A = C(() => [s]), N = C(() => e.preventAutoClose || e.preventCloseOnClick), x = (w) => {
|
|
1261
|
+
i.value = w, e.contentRef && (e.contentRef.value = w);
|
|
1262
1262
|
};
|
|
1263
1263
|
return () => {
|
|
1264
1264
|
if (!y.value) return null;
|
|
1265
|
-
const
|
|
1265
|
+
const w = n.default?.() ?? [], k = w.find((_) => _.type === "header"), P = w.find((_) => _.type === "footer"), O = !!(k || P) ? w.filter((_) => _.type !== "header" && _.type !== "footer" && _.type !== pr) : w;
|
|
1266
1266
|
return of({
|
|
1267
1267
|
...a,
|
|
1268
1268
|
ClickAwayProvider: vr,
|
|
@@ -1272,7 +1272,7 @@ const qf = {
|
|
|
1272
1272
|
ProgressCircular: ff,
|
|
1273
1273
|
className: o.value,
|
|
1274
1274
|
clickAwayRefs: A,
|
|
1275
|
-
content:
|
|
1275
|
+
content: O.length ? O : void 0,
|
|
1276
1276
|
contentRef: x,
|
|
1277
1277
|
dialogProps: e.dialogProps,
|
|
1278
1278
|
footer: void 0,
|
|
@@ -1284,7 +1284,7 @@ const qf = {
|
|
|
1284
1284
|
hasBottomIntersection: f.value,
|
|
1285
1285
|
hasTopIntersection: h.value,
|
|
1286
1286
|
header: void 0,
|
|
1287
|
-
headerChildContent: n.header?.() ??
|
|
1287
|
+
headerChildContent: n.header?.() ?? k?.children,
|
|
1288
1288
|
headerChildProps: void 0,
|
|
1289
1289
|
isLoading: e.isLoading,
|
|
1290
1290
|
isOpen: e.isOpen,
|
|
@@ -1390,9 +1390,9 @@ function Xf() {
|
|
|
1390
1390
|
ei = 1;
|
|
1391
1391
|
var e = Wf(), t = qc(), n = Uf(), a = Gf(), o = Kf(), r = Tt(), s = Tc(), i = "[object Map]", l = "[object Object]", c = "[object Promise]", d = "[object Set]", u = "[object WeakMap]", h = "[object DataView]", f = s(e), g = s(t), p = s(n), b = s(a), v = s(o), y = r;
|
|
1392
1392
|
return (e && y(new e(new ArrayBuffer(1))) != h || t && y(new t()) != i || n && y(n.resolve()) != c || a && y(new a()) != d || o && y(new o()) != u) && (y = function(A) {
|
|
1393
|
-
var N = r(A), x = N == l ? A.constructor : void 0,
|
|
1394
|
-
if (
|
|
1395
|
-
switch (
|
|
1393
|
+
var N = r(A), x = N == l ? A.constructor : void 0, w = x ? s(x) : "";
|
|
1394
|
+
if (w)
|
|
1395
|
+
switch (w) {
|
|
1396
1396
|
case f:
|
|
1397
1397
|
return h;
|
|
1398
1398
|
case g:
|
|
@@ -1485,8 +1485,8 @@ var $a, ci;
|
|
|
1485
1485
|
function eh() {
|
|
1486
1486
|
if (ci) return $a;
|
|
1487
1487
|
ci = 1;
|
|
1488
|
-
var e = Tt(), t = Tr(), n = cn(), a = "[object Arguments]", o = "[object Array]", r = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", d = "[object Number]", u = "[object Object]", h = "[object RegExp]", f = "[object Set]", g = "[object String]", p = "[object WeakMap]", b = "[object ArrayBuffer]", v = "[object DataView]", y = "[object Float32Array]", A = "[object Float64Array]", N = "[object Int8Array]", x = "[object Int16Array]",
|
|
1489
|
-
_[y] = _[A] = _[N] = _[x] = _[
|
|
1488
|
+
var e = Tt(), t = Tr(), n = cn(), a = "[object Arguments]", o = "[object Array]", r = "[object Boolean]", s = "[object Date]", i = "[object Error]", l = "[object Function]", c = "[object Map]", d = "[object Number]", u = "[object Object]", h = "[object RegExp]", f = "[object Set]", g = "[object String]", p = "[object WeakMap]", b = "[object ArrayBuffer]", v = "[object DataView]", y = "[object Float32Array]", A = "[object Float64Array]", N = "[object Int8Array]", x = "[object Int16Array]", w = "[object Int32Array]", k = "[object Uint8Array]", P = "[object Uint8ClampedArray]", T = "[object Uint16Array]", O = "[object Uint32Array]", _ = {};
|
|
1489
|
+
_[y] = _[A] = _[N] = _[x] = _[w] = _[k] = _[P] = _[T] = _[O] = !0, _[a] = _[o] = _[b] = _[r] = _[v] = _[s] = _[i] = _[l] = _[c] = _[d] = _[u] = _[h] = _[f] = _[g] = _[p] = !1;
|
|
1490
1490
|
function q(j) {
|
|
1491
1491
|
return n(j) && t(j.length) && !!_[e(j)];
|
|
1492
1492
|
}
|
|
@@ -1574,9 +1574,9 @@ const ft = (e) => {
|
|
|
1574
1574
|
});
|
|
1575
1575
|
}, sh = "ButtonRoot", ih = "lumx-button-wrapper", {
|
|
1576
1576
|
block: lh
|
|
1577
|
-
} =
|
|
1577
|
+
} = B(ih), ch = "lumx-button", {
|
|
1578
1578
|
block: uh
|
|
1579
|
-
} =
|
|
1579
|
+
} = B(ch), dh = (e) => {
|
|
1580
1580
|
const {
|
|
1581
1581
|
color: t,
|
|
1582
1582
|
emphasis: n,
|
|
@@ -1648,7 +1648,7 @@ _t.displayName = sh;
|
|
|
1648
1648
|
_t.defaultProps = {};
|
|
1649
1649
|
const fh = "Button", jc = "lumx-button", {
|
|
1650
1650
|
modifier: hh
|
|
1651
|
-
} =
|
|
1651
|
+
} = B(jc), er = {
|
|
1652
1652
|
emphasis: ve.high,
|
|
1653
1653
|
size: H.m
|
|
1654
1654
|
}, un = (e) => {
|
|
@@ -1679,16 +1679,16 @@ function ph() {
|
|
|
1679
1679
|
return qe(mh, { state: null });
|
|
1680
1680
|
}
|
|
1681
1681
|
function te(e) {
|
|
1682
|
-
const t = ph(), n =
|
|
1682
|
+
const t = ph(), n = C(() => {
|
|
1683
1683
|
const r = typeof e == "function" ? e() : xt(e);
|
|
1684
1684
|
return Sd(t, {
|
|
1685
1685
|
disabled: r.disabled,
|
|
1686
1686
|
isDisabled: r.isDisabled,
|
|
1687
1687
|
"aria-disabled": r["aria-disabled"] ?? r.ariaDisabled
|
|
1688
1688
|
});
|
|
1689
|
-
}), a =
|
|
1689
|
+
}), a = C(
|
|
1690
1690
|
() => n.value["aria-disabled"] || n.value.disabled || void 0
|
|
1691
|
-
), o =
|
|
1691
|
+
), o = C(() => {
|
|
1692
1692
|
const r = typeof e == "function" ? e() : xt(e), { disabled: s, isDisabled: i, "aria-disabled": l, ariaDisabled: c, onClick: d, onChange: u, ...h } = r;
|
|
1693
1693
|
return a.value || (d && (h.onClick = d), u && (h.onChange = u)), h;
|
|
1694
1694
|
});
|
|
@@ -1701,7 +1701,7 @@ const hi = E({
|
|
|
1701
1701
|
}
|
|
1702
1702
|
}), gh = "Icon", vh = "lumx-icon", Hc = vh, {
|
|
1703
1703
|
block: bh
|
|
1704
|
-
} =
|
|
1704
|
+
} = B(Hc), yh = {}, ee = (e) => {
|
|
1705
1705
|
const {
|
|
1706
1706
|
className: t,
|
|
1707
1707
|
color: n,
|
|
@@ -1768,7 +1768,7 @@ const De = /* @__PURE__ */ E((e) => {
|
|
|
1768
1768
|
props: $()("icon", "color", "colorVariant", "hasShape", "size", "alt", "verticalAlign", "theme", "class")
|
|
1769
1769
|
}), Ah = "lumx-text", {
|
|
1770
1770
|
block: Sh
|
|
1771
|
-
} =
|
|
1771
|
+
} = B(Ah), zc = (e) => {
|
|
1772
1772
|
const {
|
|
1773
1773
|
className: t,
|
|
1774
1774
|
color: n,
|
|
@@ -1858,10 +1858,10 @@ const me = /* @__PURE__ */ E((e, {
|
|
|
1858
1858
|
}) => {
|
|
1859
1859
|
const n = D(), a = Wc(), o = pd("tooltip-label"), {
|
|
1860
1860
|
tooltipLabel: r
|
|
1861
|
-
} = wh(o), s = M(() => e.class), i =
|
|
1861
|
+
} = wh(o), s = M(() => e.class), i = C(() => zc({
|
|
1862
1862
|
...e,
|
|
1863
1863
|
className: s.value
|
|
1864
|
-
})), l =
|
|
1864
|
+
})), l = C(() => {
|
|
1865
1865
|
const {
|
|
1866
1866
|
children: c,
|
|
1867
1867
|
...d
|
|
@@ -1897,7 +1897,7 @@ const me = /* @__PURE__ */ E((e, {
|
|
|
1897
1897
|
isAnyDisabled: s,
|
|
1898
1898
|
disabledStateProps: i,
|
|
1899
1899
|
otherProps: l
|
|
1900
|
-
} = te(
|
|
1900
|
+
} = te(C(() => ({
|
|
1901
1901
|
...e,
|
|
1902
1902
|
...a
|
|
1903
1903
|
}))), c = (u) => {
|
|
@@ -1937,7 +1937,7 @@ const me = /* @__PURE__ */ E((e, {
|
|
|
1937
1937
|
}), pN = "Toolbar", kh = "lumx-toolbar", {
|
|
1938
1938
|
block: Th,
|
|
1939
1939
|
element: Da
|
|
1940
|
-
} =
|
|
1940
|
+
} = B(kh), _h = (e) => {
|
|
1941
1941
|
const {
|
|
1942
1942
|
after: t,
|
|
1943
1943
|
before: n,
|
|
@@ -1981,7 +1981,7 @@ const me = /* @__PURE__ */ E((e, {
|
|
|
1981
1981
|
emit: t,
|
|
1982
1982
|
slots: n
|
|
1983
1983
|
}) => {
|
|
1984
|
-
const a = D(), o = M(() => e.class), r = re(), s =
|
|
1984
|
+
const a = D(), o = M(() => e.class), r = re(), s = C(() => e.id || r), i = Re(void 0), l = Re(void 0);
|
|
1985
1985
|
return () => {
|
|
1986
1986
|
const c = n.default?.(), u = c?.length === 1 && c[0].type === lc ? "p" : "div", h = {
|
|
1987
1987
|
isOpen: e.isOpen,
|
|
@@ -2032,7 +2032,7 @@ const me = /* @__PURE__ */ E((e, {
|
|
|
2032
2032
|
}), Eh = "lumx-avatar", {
|
|
2033
2033
|
block: $h,
|
|
2034
2034
|
element: nr
|
|
2035
|
-
} =
|
|
2035
|
+
} = B(Eh), Uc = {
|
|
2036
2036
|
size: H.m
|
|
2037
2037
|
}, Mh = (e) => {
|
|
2038
2038
|
const {
|
|
@@ -2144,31 +2144,31 @@ const Bh = "lumx-thumbnail", {
|
|
|
2144
2144
|
disabledStateProps: A,
|
|
2145
2145
|
size: N,
|
|
2146
2146
|
theme: x,
|
|
2147
|
-
loadingState:
|
|
2148
|
-
variant:
|
|
2147
|
+
loadingState: w,
|
|
2148
|
+
variant: k,
|
|
2149
2149
|
linkProps: P,
|
|
2150
2150
|
linkAs: T,
|
|
2151
|
-
handleClick:
|
|
2151
|
+
handleClick: O,
|
|
2152
2152
|
handleKeyPress: _,
|
|
2153
2153
|
...q
|
|
2154
|
-
} = e, j = g ||
|
|
2155
|
-
|
|
2156
|
-
const
|
|
2154
|
+
} = e, j = g || w === "isLoading", I = w === "hasError", F = I && typeof l == "string", V = I && !F, W = {};
|
|
2155
|
+
F ? W.visibility = "hidden" : V && (W.display = "none");
|
|
2156
|
+
const z = !!(P?.href || T), Y = !y && !!(z || O || _), ae = {
|
|
2157
2157
|
...q
|
|
2158
2158
|
};
|
|
2159
2159
|
Y && (Object.assign(ae, {
|
|
2160
2160
|
as: T || (P?.href ? "a" : "button")
|
|
2161
|
-
}, A),
|
|
2161
|
+
}, A), z ? Object.assign(ae, P) : ae["aria-label"] = q["aria-label"] || n);
|
|
2162
2162
|
const Z = fe.join(P?.className, r, Fh({
|
|
2163
2163
|
[`align-${t}`]: !!t,
|
|
2164
2164
|
[`aspect-ratio-${a}`]: !!a,
|
|
2165
2165
|
[`size-${N}`]: !!N,
|
|
2166
2166
|
[`theme-${x}`]: !!x,
|
|
2167
|
-
[`variant-${
|
|
2167
|
+
[`variant-${k}`]: !!k,
|
|
2168
2168
|
"is-clickable": Y,
|
|
2169
2169
|
"has-error": I,
|
|
2170
|
-
"has-icon-error-fallback":
|
|
2171
|
-
"has-custom-error-fallback":
|
|
2170
|
+
"has-icon-error-fallback": F,
|
|
2171
|
+
"has-custom-error-fallback": V,
|
|
2172
2172
|
"is-loading": j,
|
|
2173
2173
|
[`object-fit-${p}`]: !!p,
|
|
2174
2174
|
"has-badge": !!o,
|
|
@@ -2185,7 +2185,7 @@ const Bh = "lumx-thumbnail", {
|
|
|
2185
2185
|
// Reserve space while loading (when possible)
|
|
2186
2186
|
width: j ? h?.width || J?.naturalWidth : void 0,
|
|
2187
2187
|
...h?.style,
|
|
2188
|
-
...
|
|
2188
|
+
...W,
|
|
2189
2189
|
...c,
|
|
2190
2190
|
...id
|
|
2191
2191
|
},
|
|
@@ -2200,7 +2200,7 @@ const Bh = "lumx-thumbnail", {
|
|
|
2200
2200
|
loading: b
|
|
2201
2201
|
}), null), !j && I && m("span", {
|
|
2202
2202
|
className: Nt("fallback")
|
|
2203
|
-
}, [
|
|
2203
|
+
}, [F ? ee({
|
|
2204
2204
|
icon: l,
|
|
2205
2205
|
size: rt.xxs,
|
|
2206
2206
|
theme: x
|
|
@@ -2210,7 +2210,7 @@ const Bh = "lumx-thumbnail", {
|
|
|
2210
2210
|
...ae,
|
|
2211
2211
|
className: Z,
|
|
2212
2212
|
children: Xr,
|
|
2213
|
-
handleClick:
|
|
2213
|
+
handleClick: O,
|
|
2214
2214
|
handleKeyPress: _
|
|
2215
2215
|
}) : m("div", S({
|
|
2216
2216
|
ref: i
|
|
@@ -2241,7 +2241,7 @@ function jh(e, t) {
|
|
|
2241
2241
|
}), n;
|
|
2242
2242
|
}
|
|
2243
2243
|
function Hh(e) {
|
|
2244
|
-
const { image: t, aspectRatio: n, focusPoint: a, width: o, height: r, element: s, isLoaded: i } = e, l =
|
|
2244
|
+
const { image: t, aspectRatio: n, focusPoint: a, width: o, height: r, element: s, isLoaded: i } = e, l = C(
|
|
2245
2245
|
() => Rh({
|
|
2246
2246
|
image: t.value,
|
|
2247
2247
|
aspectRatio: n.value,
|
|
@@ -2264,7 +2264,7 @@ function Hh(e) {
|
|
|
2264
2264
|
cc(d);
|
|
2265
2265
|
},
|
|
2266
2266
|
{ immediate: !0 }
|
|
2267
|
-
),
|
|
2267
|
+
), C(
|
|
2268
2268
|
() => Dh({
|
|
2269
2269
|
image: t.value,
|
|
2270
2270
|
aspectRatio: n.value,
|
|
@@ -2286,10 +2286,10 @@ const zh = {
|
|
|
2286
2286
|
isAnyDisabled: c,
|
|
2287
2287
|
disabledStateProps: d,
|
|
2288
2288
|
otherProps: u
|
|
2289
|
-
} = te(
|
|
2289
|
+
} = te(C(() => ({
|
|
2290
2290
|
...e,
|
|
2291
2291
|
...a
|
|
2292
|
-
}))), h = jh(Q(() => e.image), s), f =
|
|
2292
|
+
}))), h = jh(Q(() => e.image), s), f = C(() => h.value === "isLoaded"), g = Hh({
|
|
2293
2293
|
image: Q(() => e.image),
|
|
2294
2294
|
aspectRatio: Q(() => e.aspectRatio),
|
|
2295
2295
|
focusPoint: Q(() => e.focusPoint),
|
|
@@ -2507,33 +2507,33 @@ function _r(e, t, n) {
|
|
|
2507
2507
|
}
|
|
2508
2508
|
const f = Kc(n);
|
|
2509
2509
|
function g(N) {
|
|
2510
|
-
const x = N > 0,
|
|
2511
|
-
let
|
|
2512
|
-
if (
|
|
2513
|
-
P.currentNode =
|
|
2510
|
+
const x = N > 0, w = Math.abs(N), k = l(), P = d(), T = x ? () => P.nextNode() : () => P.previousNode();
|
|
2511
|
+
let O = null, _ = w;
|
|
2512
|
+
if (k)
|
|
2513
|
+
P.currentNode = k;
|
|
2514
2514
|
else if (!x) {
|
|
2515
|
-
if (
|
|
2515
|
+
if (O = P.lastChild(), !O) return null;
|
|
2516
2516
|
_ -= 1;
|
|
2517
2517
|
}
|
|
2518
2518
|
for (let q = 0; q < _; q++) {
|
|
2519
2519
|
const j = T();
|
|
2520
2520
|
if (j)
|
|
2521
|
-
|
|
2522
|
-
else if (
|
|
2521
|
+
O = j;
|
|
2522
|
+
else if (k && s) {
|
|
2523
2523
|
const I = x ? u() : h();
|
|
2524
|
-
if (!I || I ===
|
|
2525
|
-
|
|
2524
|
+
if (!I || I === k) break;
|
|
2525
|
+
O = I, P.currentNode = I;
|
|
2526
2526
|
} else
|
|
2527
2527
|
break;
|
|
2528
2528
|
}
|
|
2529
|
-
return
|
|
2529
|
+
return O;
|
|
2530
2530
|
}
|
|
2531
2531
|
function p(N) {
|
|
2532
2532
|
const x = d(!1);
|
|
2533
|
-
let
|
|
2534
|
-
for (;
|
|
2535
|
-
if (N(
|
|
2536
|
-
|
|
2533
|
+
let w = x.nextNode();
|
|
2534
|
+
for (; w; ) {
|
|
2535
|
+
if (N(w)) return w;
|
|
2536
|
+
w = x.nextNode();
|
|
2537
2537
|
}
|
|
2538
2538
|
return null;
|
|
2539
2539
|
}
|
|
@@ -2559,15 +2559,15 @@ function _r(e, t, n) {
|
|
|
2559
2559
|
return N;
|
|
2560
2560
|
const x = d();
|
|
2561
2561
|
x.currentNode = N;
|
|
2562
|
-
const
|
|
2563
|
-
return
|
|
2562
|
+
const w = x.nextNode();
|
|
2563
|
+
return w instanceof HTMLElement ? w : (x.currentNode = N, x.previousNode());
|
|
2564
2564
|
}
|
|
2565
2565
|
};
|
|
2566
2566
|
function y(N) {
|
|
2567
2567
|
const x = N(v);
|
|
2568
2568
|
if (x && x.matches(o) && a.contains(x)) {
|
|
2569
|
-
const
|
|
2570
|
-
return
|
|
2569
|
+
const w = l();
|
|
2570
|
+
return w !== x && (w && t.onDeactivate(w), t.onActivate(x)), f.clear(), !0;
|
|
2571
2571
|
}
|
|
2572
2572
|
return f.defer(() => y(N)), !1;
|
|
2573
2573
|
}
|
|
@@ -2625,13 +2625,13 @@ function _e(e) {
|
|
|
2625
2625
|
}
|
|
2626
2626
|
function Qh(e, t, n) {
|
|
2627
2627
|
const { container: a, rowSelector: o, cellSelector: r, wrap: s = !1 } = e, i = Zh(t, n), l = (P) => P.querySelector(r) !== null, c = (P) => P.querySelector(r), d = (P) => Array.from(P.querySelectorAll(r));
|
|
2628
|
-
function* u(P = "first", T = "next",
|
|
2628
|
+
function* u(P = "first", T = "next", O) {
|
|
2629
2629
|
const _ = Lt(a, o);
|
|
2630
2630
|
P instanceof HTMLElement ? _.currentNode = P : P === "last" && (_.currentNode = Jh(a));
|
|
2631
2631
|
let q;
|
|
2632
2632
|
do
|
|
2633
2633
|
if (q = T === "next" ? _.nextNode() : _.previousNode(), q && l(q)) {
|
|
2634
|
-
const j =
|
|
2634
|
+
const j = O ? O(q) : q;
|
|
2635
2635
|
j && (yield j);
|
|
2636
2636
|
}
|
|
2637
2637
|
while (q);
|
|
@@ -2644,10 +2644,10 @@ function Qh(e, t, n) {
|
|
|
2644
2644
|
const p = Kc(n);
|
|
2645
2645
|
let b = 0;
|
|
2646
2646
|
function v(P, T) {
|
|
2647
|
-
const
|
|
2648
|
-
if (
|
|
2649
|
-
const _ = Math.min(T,
|
|
2650
|
-
return i.setActive(
|
|
2647
|
+
const O = d(P);
|
|
2648
|
+
if (O.length === 0) return !1;
|
|
2649
|
+
const _ = Math.min(T, O.length - 1);
|
|
2650
|
+
return i.setActive(O[_]), !0;
|
|
2651
2651
|
}
|
|
2652
2652
|
function y(P) {
|
|
2653
2653
|
const T = g(P);
|
|
@@ -2667,33 +2667,33 @@ function Qh(e, t, n) {
|
|
|
2667
2667
|
if (!i.active) return !1;
|
|
2668
2668
|
const T = g(i.active);
|
|
2669
2669
|
if (!T) return !1;
|
|
2670
|
-
const
|
|
2670
|
+
const O = d(T), _ = O.indexOf(i.active);
|
|
2671
2671
|
if (_ === -1) return !1;
|
|
2672
2672
|
const q = _ + P;
|
|
2673
|
-
if (q >= 0 && q <
|
|
2674
|
-
return b = q, i.setActive(
|
|
2673
|
+
if (q >= 0 && q < O.length)
|
|
2674
|
+
return b = q, i.setActive(O[q]), !0;
|
|
2675
2675
|
if (!s) return !1;
|
|
2676
|
-
const j = P > 0 ? "next" : "prev",
|
|
2677
|
-
if (!
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
const
|
|
2681
|
-
return b =
|
|
2682
|
-
}
|
|
2683
|
-
function
|
|
2676
|
+
const j = P > 0 ? "next" : "prev", F = _e(u(T, j)) ?? (P > 0 ? h() : f());
|
|
2677
|
+
if (!F) return !1;
|
|
2678
|
+
const V = d(F);
|
|
2679
|
+
if (V.length === 0) return !1;
|
|
2680
|
+
const W = P > 0 ? 0 : V.length - 1;
|
|
2681
|
+
return b = W, i.setActive(V[W]), !0;
|
|
2682
|
+
}
|
|
2683
|
+
function w(P) {
|
|
2684
2684
|
if (!i.active)
|
|
2685
2685
|
return P === "next" ? A() : N();
|
|
2686
2686
|
const T = g(i.active);
|
|
2687
2687
|
if (!T) return !1;
|
|
2688
|
-
const
|
|
2689
|
-
if (
|
|
2688
|
+
const O = _e(u(T, P));
|
|
2689
|
+
if (O) return v(O, b);
|
|
2690
2690
|
if (s) {
|
|
2691
2691
|
const _ = P === "next" ? h() : f();
|
|
2692
2692
|
if (_) return v(_, b);
|
|
2693
2693
|
}
|
|
2694
2694
|
return !1;
|
|
2695
2695
|
}
|
|
2696
|
-
const
|
|
2696
|
+
const k = {
|
|
2697
2697
|
get activeItem() {
|
|
2698
2698
|
return i.active;
|
|
2699
2699
|
},
|
|
@@ -2709,18 +2709,18 @@ function Qh(e, t, n) {
|
|
|
2709
2709
|
};
|
|
2710
2710
|
return {
|
|
2711
2711
|
type: "grid",
|
|
2712
|
-
selectors:
|
|
2712
|
+
selectors: k,
|
|
2713
2713
|
goToOffset(P) {
|
|
2714
2714
|
if (P === 0) return i.active !== null;
|
|
2715
2715
|
const T = Array.from(u());
|
|
2716
2716
|
if (T.length === 0) return !1;
|
|
2717
2717
|
if (!i.active) {
|
|
2718
|
-
const j = P > 0 ? 0 : T.length - 1, I = P > 0 ? P - 1 : P + 1,
|
|
2719
|
-
return v(T[
|
|
2718
|
+
const j = P > 0 ? 0 : T.length - 1, I = P > 0 ? P - 1 : P + 1, F = Math.max(0, Math.min(j + I, T.length - 1));
|
|
2719
|
+
return v(T[F], b);
|
|
2720
2720
|
}
|
|
2721
|
-
const
|
|
2722
|
-
if (!
|
|
2723
|
-
const _ = T.indexOf(
|
|
2721
|
+
const O = g(i.active);
|
|
2722
|
+
if (!O) return !1;
|
|
2723
|
+
const _ = T.indexOf(O);
|
|
2724
2724
|
if (_ === -1) return !1;
|
|
2725
2725
|
const q = Math.max(0, Math.min(_ + P, T.length - 1));
|
|
2726
2726
|
return q === _ ? !1 : v(T[q], b);
|
|
@@ -2729,17 +2729,17 @@ function Qh(e, t, n) {
|
|
|
2729
2729
|
i.clear(), p.clear();
|
|
2730
2730
|
},
|
|
2731
2731
|
goTo(P) {
|
|
2732
|
-
const T = P(
|
|
2732
|
+
const T = P(k);
|
|
2733
2733
|
return T && y(T) ? (p.clear(), !0) : (p.defer(() => this.goTo(P)), !1);
|
|
2734
2734
|
},
|
|
2735
2735
|
flushPendingNavigation() {
|
|
2736
2736
|
p.flush();
|
|
2737
2737
|
},
|
|
2738
2738
|
goUp() {
|
|
2739
|
-
return
|
|
2739
|
+
return w("prev");
|
|
2740
2740
|
},
|
|
2741
2741
|
goDown() {
|
|
2742
|
-
return
|
|
2742
|
+
return w("next");
|
|
2743
2743
|
},
|
|
2744
2744
|
goLeft() {
|
|
2745
2745
|
return x(-1);
|
|
@@ -2837,42 +2837,42 @@ function tm(e, t) {
|
|
|
2837
2837
|
g();
|
|
2838
2838
|
const b = new MutationObserver((v) => {
|
|
2839
2839
|
let y = null, A = null, N = null;
|
|
2840
|
-
const x = [],
|
|
2841
|
-
for (const
|
|
2842
|
-
if (
|
|
2840
|
+
const x = [], w = [];
|
|
2841
|
+
for (const k of v) {
|
|
2842
|
+
if (k.type === "childList") {
|
|
2843
2843
|
if (!y)
|
|
2844
|
-
for (const T of
|
|
2845
|
-
const { value:
|
|
2846
|
-
if (
|
|
2847
|
-
y =
|
|
2844
|
+
for (const T of k.removedNodes) {
|
|
2845
|
+
const { value: O } = vi(T, l).next();
|
|
2846
|
+
if (O) {
|
|
2847
|
+
y = O, A = k.nextSibling ?? k.previousSibling ?? null;
|
|
2848
2848
|
break;
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
|
-
for (const T of
|
|
2852
|
-
for (const
|
|
2853
|
-
|
|
2851
|
+
for (const T of k.addedNodes)
|
|
2852
|
+
for (const O of vi(T, a))
|
|
2853
|
+
w.push(O);
|
|
2854
2854
|
}
|
|
2855
|
-
const P =
|
|
2856
|
-
|
|
2855
|
+
const P = k.target;
|
|
2856
|
+
k.type === "attributes" && P.matches(a) && (k.attributeName === s && P.getAttribute(s) === "true" ? N = P : r && P.matches(r) && x.push(P));
|
|
2857
2857
|
}
|
|
2858
2858
|
if (y) {
|
|
2859
|
-
const
|
|
2860
|
-
d.reset(), p(
|
|
2859
|
+
const k = d.hasFocus;
|
|
2860
|
+
d.reset(), p(k, A);
|
|
2861
2861
|
}
|
|
2862
|
-
if (
|
|
2863
|
-
const
|
|
2864
|
-
f(
|
|
2862
|
+
if (w.length > 0) {
|
|
2863
|
+
const k = n.querySelector(l) !== null;
|
|
2864
|
+
f(w, k);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (x.length > 0) {
|
|
2867
|
-
const
|
|
2868
|
-
for (const
|
|
2869
|
-
h(
|
|
2870
|
-
const T = !!(
|
|
2867
|
+
const k = u.selectors.activeItem;
|
|
2868
|
+
for (const O of x)
|
|
2869
|
+
h(O, "-1");
|
|
2870
|
+
const T = !!(k && x.includes(k) && d.hasFocus);
|
|
2871
2871
|
p(T);
|
|
2872
2872
|
}
|
|
2873
2873
|
if (N) {
|
|
2874
|
-
const
|
|
2875
|
-
|
|
2874
|
+
const k = n.querySelector(l);
|
|
2875
|
+
k && k !== N && h(k, "-1"), h(N, "0");
|
|
2876
2876
|
}
|
|
2877
2877
|
});
|
|
2878
2878
|
return b.observe(n, {
|
|
@@ -2988,92 +2988,92 @@ function Xc(e, t, n) {
|
|
|
2988
2988
|
loadingChange: /* @__PURE__ */ new Set(),
|
|
2989
2989
|
loadingAnnouncement: /* @__PURE__ */ new Set()
|
|
2990
2990
|
};
|
|
2991
|
-
function v(I,
|
|
2992
|
-
b[I].forEach((
|
|
2991
|
+
function v(I, F) {
|
|
2992
|
+
b[I].forEach((V) => V(F));
|
|
2993
2993
|
}
|
|
2994
2994
|
function y() {
|
|
2995
2995
|
let I = 0;
|
|
2996
|
-
for (const
|
|
2997
|
-
|
|
2996
|
+
for (const F of c.values())
|
|
2997
|
+
F.lastFiltered || (I += 1);
|
|
2998
2998
|
return I;
|
|
2999
2999
|
}
|
|
3000
3000
|
function A() {
|
|
3001
3001
|
return y() > 0 || p > 0;
|
|
3002
3002
|
}
|
|
3003
3003
|
function N() {
|
|
3004
|
-
for (const [
|
|
3005
|
-
gi(
|
|
3006
|
-
const I = y(),
|
|
3007
|
-
(I !== h || I === 0 &&
|
|
3004
|
+
for (const [W] of d)
|
|
3005
|
+
gi(W, d, c);
|
|
3006
|
+
const I = y(), F = o?.value ?? "";
|
|
3007
|
+
(I !== h || I === 0 && F !== f) && (h = I, f = F, v("optionsChange", { optionsLength: I, inputValue: F })), i && o?.setAttribute("aria-expanded", String(A()));
|
|
3008
3008
|
}
|
|
3009
3009
|
const x = 500;
|
|
3010
|
-
let
|
|
3010
|
+
let w, k = !1;
|
|
3011
3011
|
function P() {
|
|
3012
|
-
clearTimeout(
|
|
3013
|
-
p > 0 && i && (
|
|
3012
|
+
clearTimeout(w), p > 0 && i && (w = setTimeout(() => {
|
|
3013
|
+
p > 0 && i && (k = !0, v("loadingAnnouncement", !0));
|
|
3014
3014
|
}, x));
|
|
3015
3015
|
}
|
|
3016
3016
|
function T() {
|
|
3017
3017
|
const I = p > 0;
|
|
3018
|
-
g = I, v("loadingChange", I), I ? P() : (clearTimeout(
|
|
3018
|
+
g = I, v("loadingChange", I), I ? P() : (clearTimeout(w), k && (k = !1, v("loadingAnnouncement", !1)));
|
|
3019
3019
|
}
|
|
3020
|
-
let
|
|
3020
|
+
let O;
|
|
3021
3021
|
function _() {
|
|
3022
3022
|
u?.abort(), u = null, s = null;
|
|
3023
3023
|
}
|
|
3024
|
-
function q(I,
|
|
3025
|
-
function
|
|
3026
|
-
if (
|
|
3027
|
-
|
|
3024
|
+
function q(I, F, V) {
|
|
3025
|
+
function W(z) {
|
|
3026
|
+
if (V?.(z)) {
|
|
3027
|
+
z.stopPropagation(), z.preventDefault();
|
|
3028
3028
|
return;
|
|
3029
3029
|
}
|
|
3030
3030
|
let Y = !1;
|
|
3031
|
-
const { altKey: ae } =
|
|
3032
|
-
switch (
|
|
3031
|
+
const { altKey: ae } = z, Z = O.focusNav;
|
|
3032
|
+
switch (z.key) {
|
|
3033
3033
|
case "Enter":
|
|
3034
|
-
if (
|
|
3034
|
+
if (O.isOpen && Z?.selectors.activeItem) {
|
|
3035
3035
|
const { activeItem: J } = Z.selectors;
|
|
3036
3036
|
Gc(J) || J.click(), Y = !0;
|
|
3037
|
-
} else
|
|
3037
|
+
} else O.isOpen && !O.isMultiSelect && O.setIsOpen(!1);
|
|
3038
3038
|
break;
|
|
3039
3039
|
// Open if closed, else move focus within listbox (wrap if enabled).
|
|
3040
3040
|
case "ArrowDown":
|
|
3041
|
-
|
|
3041
|
+
O.isOpen ? Z?.selectors.hasNavigableItems && !ae && (Z.selectors.activeItem ? Z.goDown() : Z.goTo((J) => J.getMatching(Bt) ?? J.getFirst())) : (O.setIsOpen(!0), ae || Z?.goTo((J) => J.getMatching(Bt) ?? J.getFirst())), Y = !0;
|
|
3042
3042
|
break;
|
|
3043
3043
|
// Open if closed, else move focus within listbox (wrap if enabled).
|
|
3044
3044
|
case "ArrowUp":
|
|
3045
|
-
!
|
|
3045
|
+
!O.isOpen && !ae ? (O.setIsOpen(!0), Z?.goTo((J) => J.getMatching(Bt) ?? J.getLast())) : O.isOpen && Z?.selectors.hasNavigableItems && (Z.selectors.activeItem ? Z.goUp() : ae || Z.goTo((J) => J.getMatching(Bt) ?? J.getLast())), Y = !0;
|
|
3046
3046
|
break;
|
|
3047
3047
|
case "Escape":
|
|
3048
|
-
|
|
3048
|
+
O.isOpen ? O.setIsOpen(!1) : O.select(null), Y = !0;
|
|
3049
3049
|
break;
|
|
3050
3050
|
case "PageUp":
|
|
3051
|
-
|
|
3051
|
+
O.isOpen && Z?.selectors.activeItem && Z.goToOffset(-10), Y = !0;
|
|
3052
3052
|
break;
|
|
3053
3053
|
case "PageDown":
|
|
3054
|
-
|
|
3054
|
+
O.isOpen && Z?.selectors.activeItem && Z.goToOffset(10), Y = !0;
|
|
3055
3055
|
break;
|
|
3056
3056
|
}
|
|
3057
|
-
Y && (
|
|
3057
|
+
Y && (z.stopPropagation(), z.preventDefault());
|
|
3058
3058
|
}
|
|
3059
|
-
I.addEventListener("keydown", (
|
|
3059
|
+
I.addEventListener("keydown", (z) => W(z), { signal: F });
|
|
3060
3060
|
}
|
|
3061
3061
|
function j() {
|
|
3062
3062
|
if (!o) return;
|
|
3063
3063
|
const I = !u;
|
|
3064
3064
|
if (u || (u = new AbortController()), o.getAttribute("aria-activedescendant") || o.setAttribute("aria-activedescendant", ""), o.setAttribute("aria-expanded", String(i)), I) {
|
|
3065
|
-
const
|
|
3066
|
-
q(o, u.signal,
|
|
3065
|
+
const F = n?.(O, u.signal) || void 0;
|
|
3066
|
+
q(o, u.signal, F), o.addEventListener(
|
|
3067
3067
|
"focusout",
|
|
3068
3068
|
() => {
|
|
3069
|
-
|
|
3069
|
+
O.setIsOpen(!1);
|
|
3070
3070
|
},
|
|
3071
3071
|
{ signal: u.signal }
|
|
3072
3072
|
);
|
|
3073
3073
|
}
|
|
3074
|
-
r && !s && (s = bi(
|
|
3074
|
+
r && !s && (s = bi(O, u.signal, v, { wrapNavigation: a }));
|
|
3075
3075
|
}
|
|
3076
|
-
return
|
|
3076
|
+
return O = {
|
|
3077
3077
|
get trigger() {
|
|
3078
3078
|
return o;
|
|
3079
3079
|
},
|
|
@@ -3093,39 +3093,39 @@ function Xc(e, t, n) {
|
|
|
3093
3093
|
return p > 0;
|
|
3094
3094
|
},
|
|
3095
3095
|
setIsOpen(I) {
|
|
3096
|
-
i !== I && (i = I, I ? p > 0 && P() : (s?.clear(), clearTimeout(
|
|
3096
|
+
i !== I && (i = I, I ? p > 0 && P() : (s?.clear(), clearTimeout(w), k && (k = !1, v("loadingAnnouncement", !1))), o?.setAttribute("aria-expanded", String(I && A())), v("open", I));
|
|
3097
3097
|
},
|
|
3098
3098
|
select(I) {
|
|
3099
|
-
e.onSelect?.({ value: I ? Dt(I) : "" }), I && !
|
|
3100
|
-
|
|
3099
|
+
e.onSelect?.({ value: I ? Dt(I) : "" }), I && !O.isMultiSelect && (O.focusNav?.clear(), requestAnimationFrame(() => {
|
|
3100
|
+
O.setIsOpen(!1);
|
|
3101
3101
|
}));
|
|
3102
3102
|
},
|
|
3103
3103
|
flushPendingNavigation() {
|
|
3104
3104
|
s?.flushPendingNavigation();
|
|
3105
3105
|
},
|
|
3106
|
-
registerOption(I,
|
|
3107
|
-
const
|
|
3108
|
-
return c.set(I, { callback:
|
|
3106
|
+
registerOption(I, F) {
|
|
3107
|
+
const V = l.toLowerCase(), W = Dt(I).toLowerCase(), z = V.length > 0 && !W.includes(V);
|
|
3108
|
+
return c.set(I, { callback: F, lastFiltered: z }), F(z), N(), () => {
|
|
3109
3109
|
c.delete(I), N();
|
|
3110
3110
|
};
|
|
3111
3111
|
},
|
|
3112
3112
|
setFilter(I) {
|
|
3113
3113
|
l = I;
|
|
3114
|
-
const
|
|
3115
|
-
for (const [
|
|
3116
|
-
const
|
|
3117
|
-
Y !==
|
|
3114
|
+
const F = I.toLowerCase();
|
|
3115
|
+
for (const [V, W] of c) {
|
|
3116
|
+
const z = Dt(V).toLowerCase(), Y = F.length > 0 && !z.includes(F);
|
|
3117
|
+
Y !== W.lastFiltered && (W.lastFiltered = Y, W.callback(Y));
|
|
3118
3118
|
}
|
|
3119
3119
|
N();
|
|
3120
3120
|
},
|
|
3121
3121
|
refilterOption(I) {
|
|
3122
|
-
const
|
|
3123
|
-
if (!
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3122
|
+
const F = c.get(I);
|
|
3123
|
+
if (!F) return;
|
|
3124
|
+
const V = l.toLowerCase(), W = Dt(I).toLowerCase(), z = V.length > 0 && !W.includes(V);
|
|
3125
|
+
z !== F.lastFiltered && (F.lastFiltered = z, F.callback(z), N());
|
|
3126
3126
|
},
|
|
3127
|
-
registerSection(I,
|
|
3128
|
-
return d.set(I, { callback:
|
|
3127
|
+
registerSection(I, F) {
|
|
3128
|
+
return d.set(I, { callback: F, last: { hidden: !1, "aria-hidden": !1 } }), gi(I, d, c, !0), () => {
|
|
3129
3129
|
d.delete(I);
|
|
3130
3130
|
};
|
|
3131
3131
|
},
|
|
@@ -3143,22 +3143,22 @@ function Xc(e, t, n) {
|
|
|
3143
3143
|
registerListbox(I) {
|
|
3144
3144
|
if (r === I) return () => {
|
|
3145
3145
|
};
|
|
3146
|
-
const
|
|
3147
|
-
return r = I, o && u && (
|
|
3146
|
+
const F = !!r;
|
|
3147
|
+
return r = I, o && u && (F ? (_(), j()) : s = bi(O, u.signal, v, { wrapNavigation: a })), () => {
|
|
3148
3148
|
r === I && (r = null, s = null);
|
|
3149
3149
|
};
|
|
3150
3150
|
},
|
|
3151
|
-
subscribe(I,
|
|
3152
|
-
return b[I].add(
|
|
3153
|
-
b[I].delete(
|
|
3151
|
+
subscribe(I, F) {
|
|
3152
|
+
return b[I].add(F), I === "open" && i && F(!0), I === "loadingChange" && g && F(!0), () => {
|
|
3153
|
+
b[I].delete(F);
|
|
3154
3154
|
};
|
|
3155
3155
|
},
|
|
3156
3156
|
destroy() {
|
|
3157
|
-
_(), o = null, r = null, l = "", h = 0, f = "", g = !1, c.clear(), d.clear(), p = 0, clearTimeout(
|
|
3157
|
+
_(), o = null, r = null, l = "", h = 0, f = "", g = !1, c.clear(), d.clear(), p = 0, clearTimeout(w), k = !1;
|
|
3158
3158
|
for (const I of Object.values(b))
|
|
3159
3159
|
I.clear();
|
|
3160
3160
|
}
|
|
3161
|
-
},
|
|
3161
|
+
}, O;
|
|
3162
3162
|
}
|
|
3163
3163
|
const nm = 500;
|
|
3164
3164
|
function Yc(e, t, n) {
|
|
@@ -3493,7 +3493,7 @@ const vm = async (e, t, n) => {
|
|
|
3493
3493
|
x: A,
|
|
3494
3494
|
y: N,
|
|
3495
3495
|
data: x,
|
|
3496
|
-
reset:
|
|
3496
|
+
reset: w
|
|
3497
3497
|
} = await y({
|
|
3498
3498
|
x: d,
|
|
3499
3499
|
y: u,
|
|
@@ -3517,11 +3517,11 @@ const vm = async (e, t, n) => {
|
|
|
3517
3517
|
...f[v],
|
|
3518
3518
|
...x
|
|
3519
3519
|
}
|
|
3520
|
-
},
|
|
3520
|
+
}, w && g <= 50 && (g++, typeof w == "object" && (w.placement && (h = w.placement), w.rects && (c = w.rects === !0 ? await s.getElementRects({
|
|
3521
3521
|
reference: e,
|
|
3522
3522
|
floating: t,
|
|
3523
3523
|
strategy: o
|
|
3524
|
-
}) :
|
|
3524
|
+
}) : w.rects), {
|
|
3525
3525
|
x: d,
|
|
3526
3526
|
y: u
|
|
3527
3527
|
} = Pi(c, h, l)), b = -1);
|
|
@@ -3554,20 +3554,20 @@ const vm = async (e, t, n) => {
|
|
|
3554
3554
|
const u = Qc(d), h = {
|
|
3555
3555
|
x: n,
|
|
3556
3556
|
y: a
|
|
3557
|
-
}, f = Lr(o), g = Ir(f), p = await s.getDimensions(c), b = f === "y", v = b ? "top" : "left", y = b ? "bottom" : "right", A = b ? "clientHeight" : "clientWidth", N = r.reference[g] + r.reference[f] - h[f] - r.floating[g], x = h[f] - r.reference[f],
|
|
3558
|
-
let
|
|
3559
|
-
(!
|
|
3560
|
-
const P = N / 2 - x / 2, T =
|
|
3557
|
+
}, f = Lr(o), g = Ir(f), p = await s.getDimensions(c), b = f === "y", v = b ? "top" : "left", y = b ? "bottom" : "right", A = b ? "clientHeight" : "clientWidth", N = r.reference[g] + r.reference[f] - h[f] - r.floating[g], x = h[f] - r.reference[f], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
3558
|
+
let k = w ? w[A] : 0;
|
|
3559
|
+
(!k || !await (s.isElement == null ? void 0 : s.isElement(w))) && (k = i.floating[A] || r.floating[g]);
|
|
3560
|
+
const P = N / 2 - x / 2, T = k / 2 - p[g] / 2 - 1, O = Be(u[v], T), _ = Be(u[y], T), q = O, j = k - p[g] - _, I = k / 2 - p[g] / 2 + P, F = rr(q, I, j), V = !l.arrow && de(o) != null && I !== F && r.reference[g] / 2 - (I < q ? O : _) - p[g] / 2 < 0, W = V ? I < q ? I - q : I - j : 0;
|
|
3561
3561
|
return {
|
|
3562
|
-
[f]: h[f] +
|
|
3562
|
+
[f]: h[f] + W,
|
|
3563
3563
|
data: {
|
|
3564
|
-
[f]:
|
|
3565
|
-
centerOffset: I -
|
|
3566
|
-
...
|
|
3567
|
-
alignmentOffset:
|
|
3564
|
+
[f]: F,
|
|
3565
|
+
centerOffset: I - F - W,
|
|
3566
|
+
...V && {
|
|
3567
|
+
alignmentOffset: W
|
|
3568
3568
|
}
|
|
3569
3569
|
},
|
|
3570
|
-
reset:
|
|
3570
|
+
reset: V
|
|
3571
3571
|
};
|
|
3572
3572
|
}
|
|
3573
3573
|
});
|
|
@@ -3605,32 +3605,32 @@ const Am = function(e) {
|
|
|
3605
3605
|
const N = [b[Ae(y)], b[A[0]], b[A[1]]], x = [...((a = s.autoPlacement) == null ? void 0 : a.overflows) || [], {
|
|
3606
3606
|
placement: y,
|
|
3607
3607
|
overflows: N
|
|
3608
|
-
}],
|
|
3609
|
-
if (
|
|
3608
|
+
}], w = p[v + 1];
|
|
3609
|
+
if (w)
|
|
3610
3610
|
return {
|
|
3611
3611
|
data: {
|
|
3612
3612
|
index: v + 1,
|
|
3613
3613
|
overflows: x
|
|
3614
3614
|
},
|
|
3615
3615
|
reset: {
|
|
3616
|
-
placement:
|
|
3616
|
+
placement: w
|
|
3617
3617
|
}
|
|
3618
3618
|
};
|
|
3619
|
-
const
|
|
3620
|
-
const _ = de(
|
|
3621
|
-
return [
|
|
3619
|
+
const k = x.map((O) => {
|
|
3620
|
+
const _ = de(O.placement);
|
|
3621
|
+
return [O.placement, _ && d ? (
|
|
3622
3622
|
// Check along the mainAxis and main crossAxis side.
|
|
3623
|
-
|
|
3623
|
+
O.overflows.slice(0, 2).reduce((q, j) => q + j, 0)
|
|
3624
3624
|
) : (
|
|
3625
3625
|
// Check only the mainAxis.
|
|
3626
|
-
|
|
3627
|
-
),
|
|
3628
|
-
}).sort((
|
|
3626
|
+
O.overflows[0]
|
|
3627
|
+
), O.overflows];
|
|
3628
|
+
}).sort((O, _) => O[1] - _[1]), T = ((o = k.filter((O) => O[2].slice(
|
|
3629
3629
|
0,
|
|
3630
3630
|
// Aligned placements should not check their opposite crossAxis
|
|
3631
3631
|
// side.
|
|
3632
|
-
de(
|
|
3633
|
-
).every((_) => _ <= 0))[0]) == null ? void 0 : o[0]) ||
|
|
3632
|
+
de(O[0]) ? 2 : 3
|
|
3633
|
+
).every((_) => _ <= 0))[0]) == null ? void 0 : o[0]) || k[0][0];
|
|
3634
3634
|
return T !== i ? {
|
|
3635
3635
|
data: {
|
|
3636
3636
|
index: v + 1,
|
|
@@ -3666,57 +3666,57 @@ const Am = function(e) {
|
|
|
3666
3666
|
} = Qe(e, t);
|
|
3667
3667
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
3668
3668
|
return {};
|
|
3669
|
-
const v = Ae(o), y = Ce(i), A = Ae(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = h || (A || !p ? [Zt(i)] : um(i)),
|
|
3670
|
-
!h &&
|
|
3671
|
-
const
|
|
3672
|
-
let
|
|
3669
|
+
const v = Ae(o), y = Ce(i), A = Ae(i) === i, N = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = h || (A || !p ? [Zt(i)] : um(i)), w = g !== "none";
|
|
3670
|
+
!h && w && x.push(...mm(i, p, g, N));
|
|
3671
|
+
const k = [i, ...x], P = await l.detectOverflow(t, b), T = [];
|
|
3672
|
+
let O = ((a = r.flip) == null ? void 0 : a.overflows) || [];
|
|
3673
3673
|
if (d && T.push(P[v]), u) {
|
|
3674
3674
|
const I = Jc(o, s, N);
|
|
3675
3675
|
T.push(P[I[0]], P[I[1]]);
|
|
3676
3676
|
}
|
|
3677
|
-
if (
|
|
3677
|
+
if (O = [...O, {
|
|
3678
3678
|
placement: o,
|
|
3679
3679
|
overflows: T
|
|
3680
3680
|
}], !T.every((I) => I <= 0)) {
|
|
3681
3681
|
var _, q;
|
|
3682
|
-
const I = (((_ = r.flip) == null ? void 0 : _.index) || 0) + 1,
|
|
3683
|
-
if (
|
|
3682
|
+
const I = (((_ = r.flip) == null ? void 0 : _.index) || 0) + 1, F = k[I];
|
|
3683
|
+
if (F && (!(u === "alignment" ? y !== Ce(F) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3684
3684
|
// overflows the main axis.
|
|
3685
|
-
|
|
3685
|
+
O.every((z) => Ce(z.placement) === y ? z.overflows[0] > 0 : !0)))
|
|
3686
3686
|
return {
|
|
3687
3687
|
data: {
|
|
3688
3688
|
index: I,
|
|
3689
|
-
overflows:
|
|
3689
|
+
overflows: O
|
|
3690
3690
|
},
|
|
3691
3691
|
reset: {
|
|
3692
|
-
placement:
|
|
3692
|
+
placement: F
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
3695
|
-
let
|
|
3696
|
-
if (!
|
|
3695
|
+
let V = (q = O.filter((W) => W.overflows[0] <= 0).sort((W, z) => W.overflows[1] - z.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
3696
|
+
if (!V)
|
|
3697
3697
|
switch (f) {
|
|
3698
3698
|
case "bestFit": {
|
|
3699
3699
|
var j;
|
|
3700
|
-
const
|
|
3701
|
-
if (
|
|
3702
|
-
const Y = Ce(
|
|
3700
|
+
const W = (j = O.filter((z) => {
|
|
3701
|
+
if (w) {
|
|
3702
|
+
const Y = Ce(z.placement);
|
|
3703
3703
|
return Y === y || // Create a bias to the `y` side axis due to horizontal
|
|
3704
3704
|
// reading directions favoring greater width.
|
|
3705
3705
|
Y === "y";
|
|
3706
3706
|
}
|
|
3707
3707
|
return !0;
|
|
3708
|
-
}).map((
|
|
3709
|
-
|
|
3708
|
+
}).map((z) => [z.placement, z.overflows.filter((Y) => Y > 0).reduce((Y, ae) => Y + ae, 0)]).sort((z, Y) => z[1] - Y[1])[0]) == null ? void 0 : j[0];
|
|
3709
|
+
W && (V = W);
|
|
3710
3710
|
break;
|
|
3711
3711
|
}
|
|
3712
3712
|
case "initialPlacement":
|
|
3713
|
-
|
|
3713
|
+
V = i;
|
|
3714
3714
|
break;
|
|
3715
3715
|
}
|
|
3716
|
-
if (o !==
|
|
3716
|
+
if (o !== V)
|
|
3717
3717
|
return {
|
|
3718
3718
|
reset: {
|
|
3719
|
-
placement:
|
|
3719
|
+
placement: V
|
|
3720
3720
|
}
|
|
3721
3721
|
};
|
|
3722
3722
|
}
|
|
@@ -3851,16 +3851,16 @@ const xm = function(e) {
|
|
|
3851
3851
|
} = r.floating;
|
|
3852
3852
|
let b, v;
|
|
3853
3853
|
u === "top" || u === "bottom" ? (b = u, v = h === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = u, b = h === "end" ? "top" : "bottom");
|
|
3854
|
-
const y = p - d.top - d.bottom, A = g - d.left - d.right, N = Be(p - d[b], y), x = Be(g - d[v], A),
|
|
3855
|
-
let
|
|
3856
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = A), (a = t.middlewareData.shift) != null && a.enabled.y && (
|
|
3857
|
-
const
|
|
3858
|
-
f ? P = g - 2 * (
|
|
3854
|
+
const y = p - d.top - d.bottom, A = g - d.left - d.right, N = Be(p - d[b], y), x = Be(g - d[v], A), w = !t.middlewareData.shift;
|
|
3855
|
+
let k = N, P = x;
|
|
3856
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = A), (a = t.middlewareData.shift) != null && a.enabled.y && (k = y), w && !h) {
|
|
3857
|
+
const O = le(d.left, 0), _ = le(d.right, 0), q = le(d.top, 0), j = le(d.bottom, 0);
|
|
3858
|
+
f ? P = g - 2 * (O !== 0 || _ !== 0 ? O + _ : le(d.left, d.right)) : k = p - 2 * (q !== 0 || j !== 0 ? q + j : le(d.top, d.bottom));
|
|
3859
3859
|
}
|
|
3860
3860
|
await l({
|
|
3861
3861
|
...t,
|
|
3862
3862
|
availableWidth: P,
|
|
3863
|
-
availableHeight:
|
|
3863
|
+
availableHeight: k
|
|
3864
3864
|
});
|
|
3865
3865
|
const T = await s.getDimensions(i.floating);
|
|
3866
3866
|
return g !== T.width || p !== T.height ? {
|
|
@@ -4298,16 +4298,16 @@ function Zm(e, t) {
|
|
|
4298
4298
|
threshold: le(0, Be(1, l)) || 1
|
|
4299
4299
|
};
|
|
4300
4300
|
let N = !0;
|
|
4301
|
-
function x(
|
|
4302
|
-
const
|
|
4303
|
-
if (
|
|
4301
|
+
function x(w) {
|
|
4302
|
+
const k = w[0].intersectionRatio;
|
|
4303
|
+
if (k !== l) {
|
|
4304
4304
|
if (!N)
|
|
4305
4305
|
return s();
|
|
4306
|
-
|
|
4306
|
+
k ? s(!1, k) : a = setTimeout(() => {
|
|
4307
4307
|
s(!1, 1e-7);
|
|
4308
4308
|
}, 1e3);
|
|
4309
4309
|
}
|
|
4310
|
-
|
|
4310
|
+
k === 1 && !su(c, e.getBoundingClientRect()) && s(), N = !1;
|
|
4311
4311
|
}
|
|
4312
4312
|
try {
|
|
4313
4313
|
n = new IntersectionObserver(x, {
|
|
@@ -4393,29 +4393,29 @@ function Ti(e, t) {
|
|
|
4393
4393
|
}
|
|
4394
4394
|
function uu(e, t, n) {
|
|
4395
4395
|
n === void 0 && (n = {});
|
|
4396
|
-
const a = n.whileElementsMounted, o =
|
|
4397
|
-
var
|
|
4398
|
-
return (
|
|
4399
|
-
}), r =
|
|
4400
|
-
var
|
|
4401
|
-
return (
|
|
4402
|
-
}), i =
|
|
4403
|
-
var
|
|
4404
|
-
return (
|
|
4405
|
-
}), l =
|
|
4406
|
-
var
|
|
4407
|
-
return (
|
|
4408
|
-
}), c =
|
|
4409
|
-
const
|
|
4396
|
+
const a = n.whileElementsMounted, o = C(() => {
|
|
4397
|
+
var k;
|
|
4398
|
+
return (k = vt(n.open)) != null ? k : !0;
|
|
4399
|
+
}), r = C(() => vt(n.middleware)), s = C(() => {
|
|
4400
|
+
var k;
|
|
4401
|
+
return (k = vt(n.placement)) != null ? k : "bottom";
|
|
4402
|
+
}), i = C(() => {
|
|
4403
|
+
var k;
|
|
4404
|
+
return (k = vt(n.strategy)) != null ? k : "absolute";
|
|
4405
|
+
}), l = C(() => {
|
|
4406
|
+
var k;
|
|
4407
|
+
return (k = vt(n.transform)) != null ? k : !0;
|
|
4408
|
+
}), c = C(() => ki(e.value)), d = C(() => ki(t.value)), u = R(0), h = R(0), f = R(i.value), g = R(s.value), p = Re({}), b = R(!1), v = C(() => {
|
|
4409
|
+
const k = {
|
|
4410
4410
|
position: f.value,
|
|
4411
4411
|
left: "0",
|
|
4412
4412
|
top: "0"
|
|
4413
4413
|
};
|
|
4414
4414
|
if (!d.value)
|
|
4415
|
-
return
|
|
4415
|
+
return k;
|
|
4416
4416
|
const P = Ti(d.value, u.value), T = Ti(d.value, h.value);
|
|
4417
4417
|
return l.value ? {
|
|
4418
|
-
...
|
|
4418
|
+
...k,
|
|
4419
4419
|
transform: "translate(" + P + "px, " + T + "px)",
|
|
4420
4420
|
...cu(d.value) >= 1.5 && {
|
|
4421
4421
|
willChange: "transform"
|
|
@@ -4430,13 +4430,13 @@ function uu(e, t, n) {
|
|
|
4430
4430
|
function A() {
|
|
4431
4431
|
if (c.value == null || d.value == null)
|
|
4432
4432
|
return;
|
|
4433
|
-
const
|
|
4433
|
+
const k = o.value;
|
|
4434
4434
|
ap(c.value, d.value, {
|
|
4435
4435
|
middleware: r.value,
|
|
4436
4436
|
placement: s.value,
|
|
4437
4437
|
strategy: i.value
|
|
4438
4438
|
}).then((P) => {
|
|
4439
|
-
u.value = P.x, h.value = P.y, f.value = P.strategy, g.value = P.placement, p.value = P.middlewareData, b.value =
|
|
4439
|
+
u.value = P.x, h.value = P.y, f.value = P.strategy, g.value = P.placement, p.value = P.middlewareData, b.value = k !== !1;
|
|
4440
4440
|
});
|
|
4441
4441
|
}
|
|
4442
4442
|
function N() {
|
|
@@ -4452,14 +4452,14 @@ function uu(e, t, n) {
|
|
|
4452
4452
|
return;
|
|
4453
4453
|
}
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4455
|
+
function w() {
|
|
4456
4456
|
o.value || (b.value = !1);
|
|
4457
4457
|
}
|
|
4458
4458
|
return X([r, s, i, o], A, {
|
|
4459
4459
|
flush: "sync"
|
|
4460
4460
|
}), X([c, d], x, {
|
|
4461
4461
|
flush: "sync"
|
|
4462
|
-
}), X(o,
|
|
4462
|
+
}), X(o, w, {
|
|
4463
4463
|
flush: "sync"
|
|
4464
4464
|
}), rc() && mr(N), {
|
|
4465
4465
|
x: nt(u),
|
|
@@ -4480,7 +4480,7 @@ const rp = 8, du = 1e4, qt = {
|
|
|
4480
4480
|
}, sp = "Tooltip", fu = "lumx-tooltip", {
|
|
4481
4481
|
block: ip,
|
|
4482
4482
|
element: _i
|
|
4483
|
-
} =
|
|
4483
|
+
} = B(fu), Dr = (e) => {
|
|
4484
4484
|
const {
|
|
4485
4485
|
id: t,
|
|
4486
4486
|
label: n,
|
|
@@ -4620,7 +4620,7 @@ function mp(e) {
|
|
|
4620
4620
|
const gn = /* @__PURE__ */ E((e, {
|
|
4621
4621
|
slots: t
|
|
4622
4622
|
}) => {
|
|
4623
|
-
const n = re(), a = M(() => e.class), o = R(null), r = R(null), s =
|
|
4623
|
+
const n = re(), a = M(() => e.class), o = R(null), r = R(null), s = C(() => e.placement || qt.placement), i = C(() => e.closeMode || qt.closeMode), l = C(() => e.ariaLinkMode || qt.ariaLinkMode), c = C(() => e.zIndex || qt.zIndex), {
|
|
4624
4624
|
floatingStyles: d,
|
|
4625
4625
|
placement: u
|
|
4626
4626
|
} = uu(o, r, {
|
|
@@ -4631,8 +4631,8 @@ const gn = /* @__PURE__ */ E((e, {
|
|
|
4631
4631
|
isOpen: h,
|
|
4632
4632
|
onPopperMount: f,
|
|
4633
4633
|
manager: g
|
|
4634
|
-
} = dp(
|
|
4635
|
-
return ln(
|
|
4634
|
+
} = dp(C(() => e.delay), o), p = C(() => (h.value || e.forceOpen) && !!e.label), b = C(() => !!e.label && (p.value || i.value === "hide")), v = C(() => !p.value && i.value === "hide");
|
|
4635
|
+
return ln(C(() => p.value ? () => g.value?.close() : void 0)), Ph(), () => {
|
|
4636
4636
|
let y;
|
|
4637
4637
|
const A = u.value ?? s.value, N = hp({
|
|
4638
4638
|
slotContent: t.default?.(),
|
|
@@ -4646,8 +4646,8 @@ const gn = /* @__PURE__ */ E((e, {
|
|
|
4646
4646
|
});
|
|
4647
4647
|
return m(ne, null, [N, b.value && m(tn, null, mp(y = Dr({
|
|
4648
4648
|
ref: (x) => {
|
|
4649
|
-
const
|
|
4650
|
-
r.value =
|
|
4649
|
+
const w = x?.$el || x;
|
|
4650
|
+
r.value = w, f(w);
|
|
4651
4651
|
},
|
|
4652
4652
|
id: n,
|
|
4653
4653
|
label: e.label,
|
|
@@ -4674,7 +4674,7 @@ const gn = /* @__PURE__ */ E((e, {
|
|
|
4674
4674
|
isAnyDisabled: i,
|
|
4675
4675
|
disabledStateProps: l,
|
|
4676
4676
|
otherProps: c
|
|
4677
|
-
} = te(
|
|
4677
|
+
} = te(C(() => ({
|
|
4678
4678
|
...e,
|
|
4679
4679
|
...a
|
|
4680
4680
|
}))), d = (f) => {
|
|
@@ -4947,7 +4947,7 @@ function Np(e, t) {
|
|
|
4947
4947
|
}
|
|
4948
4948
|
const gu = "lumx-text-field", vu = `${gu}__input-native`, {
|
|
4949
4949
|
block: Pp
|
|
4950
|
-
} =
|
|
4950
|
+
} = B(vu), xp = {
|
|
4951
4951
|
type: "text"
|
|
4952
4952
|
}, wp = (e) => {
|
|
4953
4953
|
const {
|
|
@@ -5020,7 +5020,7 @@ const gu = "lumx-text-field", vu = `${gu}__input-native`, {
|
|
|
5020
5020
|
emits: Cp
|
|
5021
5021
|
}), {
|
|
5022
5022
|
block: kp
|
|
5023
|
-
} =
|
|
5023
|
+
} = B(vu), bu = {
|
|
5024
5024
|
rows: 2
|
|
5025
5025
|
}, Tp = (e) => {
|
|
5026
5026
|
const {
|
|
@@ -5087,7 +5087,7 @@ const Ip = {
|
|
|
5087
5087
|
}, Lp = /* @__PURE__ */ E((e, {
|
|
5088
5088
|
emit: t
|
|
5089
5089
|
}) => {
|
|
5090
|
-
const n = D(), a = U(), o = M(() => e.class), r = R(null), s = _p(
|
|
5090
|
+
const n = D(), a = U(), o = M(() => e.class), r = R(null), s = _p(C(() => e.rows ?? bu.rows), r, C(() => e.value)), i = (u, h, f) => {
|
|
5091
5091
|
f?.stopImmediatePropagation(), t("change", u, h, f);
|
|
5092
5092
|
}, l = (u, h, f) => {
|
|
5093
5093
|
t("input", u, h, f);
|
|
@@ -5119,7 +5119,7 @@ function Ep(e) {
|
|
|
5119
5119
|
}
|
|
5120
5120
|
const $p = "InputLabel", Mp = "lumx-input-label", yu = Mp, {
|
|
5121
5121
|
block: Rp
|
|
5122
|
-
} =
|
|
5122
|
+
} = B(yu), Dp = {};
|
|
5123
5123
|
function Ve(e) {
|
|
5124
5124
|
const {
|
|
5125
5125
|
children: t,
|
|
@@ -5154,7 +5154,7 @@ const Bp = {
|
|
|
5154
5154
|
[ie.warning]: { color: "yellow" }
|
|
5155
5155
|
}, Fp = "InputHelper", qp = "lumx-input-helper", Au = qp, {
|
|
5156
5156
|
block: jp
|
|
5157
|
-
} =
|
|
5157
|
+
} = B(Au), Su = {
|
|
5158
5158
|
kind: ie.info
|
|
5159
5159
|
};
|
|
5160
5160
|
function Oe(e) {
|
|
@@ -5183,7 +5183,7 @@ Oe.defaultProps = Su;
|
|
|
5183
5183
|
const {
|
|
5184
5184
|
block: Hp,
|
|
5185
5185
|
element: ue
|
|
5186
|
-
} =
|
|
5186
|
+
} = B(gu);
|
|
5187
5187
|
function zp(e, t, n, a, o) {
|
|
5188
5188
|
const r = e ? `text-field-helper-${n}` : void 0, s = t ? `text-field-error-${n}` : void 0, i = o ? `text-field-label-${n}` : void 0, l = [s, r, a].filter(Boolean), c = l.length === 0 ? void 0 : l.join(" ");
|
|
5189
5189
|
return {
|
|
@@ -5213,89 +5213,87 @@ const Vp = (e) => {
|
|
|
5213
5213
|
multiline: b,
|
|
5214
5214
|
placeholder: v,
|
|
5215
5215
|
textFieldRef: y,
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
} = e, I = (P || "").length, B = I > 0, z = p ? p - I : 0, V = p ? m("span", {
|
|
5228
|
-
className: ue("char-counter"),
|
|
5229
|
-
role: "status"
|
|
5230
|
-
}, [A ? A(z) : z, z === 0 && ee({
|
|
5231
|
-
icon: wt,
|
|
5232
|
-
size: H.xxs
|
|
5233
|
-
})]) : void 0;
|
|
5216
|
+
helperId: A,
|
|
5217
|
+
errorId: N,
|
|
5218
|
+
labelId: x,
|
|
5219
|
+
theme: w,
|
|
5220
|
+
value: k,
|
|
5221
|
+
afterElement: P,
|
|
5222
|
+
input: T,
|
|
5223
|
+
isFocus: O,
|
|
5224
|
+
IconButton: _,
|
|
5225
|
+
ref: q
|
|
5226
|
+
} = e, j = (k || "").length, I = j > 0;
|
|
5234
5227
|
return m("div", {
|
|
5235
|
-
ref:
|
|
5228
|
+
ref: q,
|
|
5236
5229
|
className: L(n, Hp({
|
|
5237
5230
|
"has-chips": !!t,
|
|
5238
5231
|
"has-error": !u && s,
|
|
5239
5232
|
"has-icon": !!l,
|
|
5240
5233
|
"has-input": !b,
|
|
5241
|
-
"has-input-clear": !!(a &&
|
|
5234
|
+
"has-input-clear": !!(a && I),
|
|
5242
5235
|
"has-label": !!h,
|
|
5243
5236
|
"has-placeholder": !!v,
|
|
5244
5237
|
"has-textarea": b,
|
|
5245
|
-
"has-value": !!
|
|
5238
|
+
"has-value": !!k,
|
|
5246
5239
|
"is-disabled": g,
|
|
5247
|
-
"is-focus":
|
|
5240
|
+
"is-focus": O || r,
|
|
5248
5241
|
"is-valid": u,
|
|
5249
|
-
[`theme-${
|
|
5242
|
+
[`theme-${w}`]: !!w
|
|
5250
5243
|
}))
|
|
5251
5244
|
}, [(h || p) && m("div", {
|
|
5252
5245
|
className: ue("header")
|
|
5253
|
-
}, [Ve({
|
|
5246
|
+
}, [h && Ve({
|
|
5254
5247
|
...f,
|
|
5255
|
-
id:
|
|
5248
|
+
id: x,
|
|
5256
5249
|
htmlFor: c,
|
|
5257
5250
|
className: ue("label"),
|
|
5258
5251
|
isRequired: d,
|
|
5259
|
-
theme:
|
|
5260
|
-
children:
|
|
5261
|
-
})
|
|
5252
|
+
theme: w,
|
|
5253
|
+
children: h
|
|
5254
|
+
}), p && m("div", {
|
|
5255
|
+
className: ue("char-counter")
|
|
5256
|
+
}, [m("span", null, [p - j]), p - j === 0 && ee({
|
|
5257
|
+
icon: wt,
|
|
5258
|
+
size: H.xxs
|
|
5259
|
+
})])]), m("div", {
|
|
5262
5260
|
className: ue("wrapper"),
|
|
5263
5261
|
ref: y
|
|
5264
5262
|
}, [l && ee({
|
|
5265
5263
|
className: ue("input-icon"),
|
|
5266
|
-
color:
|
|
5264
|
+
color: w === he.dark ? "light" : void 0,
|
|
5267
5265
|
icon: l,
|
|
5268
5266
|
size: H.xs
|
|
5269
5267
|
}), t ? m("div", {
|
|
5270
5268
|
className: ue("chips")
|
|
5271
|
-
}, [t,
|
|
5269
|
+
}, [t, T]) : m("div", {
|
|
5272
5270
|
className: ue("input-wrapper")
|
|
5273
|
-
}, [
|
|
5271
|
+
}, [T]), (u || s) && ee({
|
|
5274
5272
|
className: ue("input-validity"),
|
|
5275
|
-
color:
|
|
5273
|
+
color: w === he.dark ? "light" : void 0,
|
|
5276
5274
|
icon: u ? br : wt,
|
|
5277
5275
|
size: H.xxs
|
|
5278
|
-
}), a &&
|
|
5279
|
-
"aria-describedby":
|
|
5276
|
+
}), a && I && !g && m(_, S({
|
|
5277
|
+
"aria-describedby": x
|
|
5280
5278
|
}, a, {
|
|
5281
5279
|
className: ue("input-clear"),
|
|
5282
5280
|
icon: Nd,
|
|
5283
5281
|
emphasis: ve.low,
|
|
5284
5282
|
size: H.s,
|
|
5285
|
-
theme:
|
|
5283
|
+
theme: w,
|
|
5286
5284
|
type: "button"
|
|
5287
|
-
}), null),
|
|
5285
|
+
}), null), P && m("div", {
|
|
5288
5286
|
className: ue("after-element")
|
|
5289
|
-
}, [
|
|
5287
|
+
}, [P])]), s && o && Oe({
|
|
5290
5288
|
children: o,
|
|
5291
5289
|
className: ue("helper"),
|
|
5292
5290
|
kind: ie.error,
|
|
5293
|
-
theme:
|
|
5294
|
-
id:
|
|
5291
|
+
theme: w,
|
|
5292
|
+
id: N
|
|
5295
5293
|
}), i && Oe({
|
|
5296
5294
|
className: ue("helper"),
|
|
5297
|
-
theme:
|
|
5298
|
-
id:
|
|
5295
|
+
theme: w,
|
|
5296
|
+
id: A,
|
|
5299
5297
|
children: i
|
|
5300
5298
|
})]);
|
|
5301
5299
|
}, Wp = {
|
|
@@ -5312,10 +5310,10 @@ const Vp = (e) => {
|
|
|
5312
5310
|
}, Up = /* @__PURE__ */ E((e, {
|
|
5313
5311
|
emit: t
|
|
5314
5312
|
}) => {
|
|
5315
|
-
const n = D(), a = Wc("chips"), o = U(), r = M(() => e.class), s = re(), i =
|
|
5313
|
+
const n = D(), a = Wc("chips"), o = U(), r = M(() => e.class), s = re(), i = C(() => e.id || s), l = R(!1), {
|
|
5316
5314
|
isAnyDisabled: c,
|
|
5317
5315
|
disabledStateProps: d
|
|
5318
|
-
} = te(
|
|
5316
|
+
} = te(C(() => ({
|
|
5319
5317
|
...e,
|
|
5320
5318
|
...n
|
|
5321
5319
|
}))), u = R(null);
|
|
@@ -5325,7 +5323,7 @@ const Vp = (e) => {
|
|
|
5325
5323
|
}, {
|
|
5326
5324
|
flush: "sync"
|
|
5327
5325
|
});
|
|
5328
|
-
const h =
|
|
5326
|
+
const h = C(() => zp(e.helper, e.error, s, n["aria-describedby"] || void 0, e.label)), f = (y, A, N) => {
|
|
5329
5327
|
t("change", y, A, N);
|
|
5330
5328
|
}, g = (y, A, N) => {
|
|
5331
5329
|
t("input", y, A, N);
|
|
@@ -5341,20 +5339,20 @@ const Vp = (e) => {
|
|
|
5341
5339
|
helperId: A,
|
|
5342
5340
|
errorId: N,
|
|
5343
5341
|
describedById: x,
|
|
5344
|
-
labelId:
|
|
5342
|
+
labelId: w
|
|
5345
5343
|
} = h.value, {
|
|
5346
|
-
class:
|
|
5344
|
+
class: k,
|
|
5347
5345
|
className: P,
|
|
5348
5346
|
"aria-describedby": T,
|
|
5349
|
-
disabled:
|
|
5347
|
+
disabled: O,
|
|
5350
5348
|
isDisabled: _,
|
|
5351
5349
|
"aria-disabled": q,
|
|
5352
5350
|
ariaDisabled: j,
|
|
5353
5351
|
onChange: I,
|
|
5354
|
-
onInput:
|
|
5355
|
-
onFocus:
|
|
5356
|
-
onBlur:
|
|
5357
|
-
chips:
|
|
5352
|
+
onInput: F,
|
|
5353
|
+
onFocus: V,
|
|
5354
|
+
onBlur: W,
|
|
5355
|
+
chips: z,
|
|
5358
5356
|
...Y
|
|
5359
5357
|
} = n, ae = {
|
|
5360
5358
|
...Y,
|
|
@@ -5381,7 +5379,7 @@ const Vp = (e) => {
|
|
|
5381
5379
|
type: e.type || "text"
|
|
5382
5380
|
}), null);
|
|
5383
5381
|
return m(Vp, {
|
|
5384
|
-
chips: (a() ??
|
|
5382
|
+
chips: (a() ?? z) || void 0,
|
|
5385
5383
|
error: e.error,
|
|
5386
5384
|
forceFocusStyle: e.forceFocusStyle,
|
|
5387
5385
|
hasError: e.hasError,
|
|
@@ -5393,7 +5391,6 @@ const Vp = (e) => {
|
|
|
5393
5391
|
label: e.label,
|
|
5394
5392
|
labelProps: e.labelProps,
|
|
5395
5393
|
maxLength: e.maxLength,
|
|
5396
|
-
charCounterMessage: e.charCounterMessage,
|
|
5397
5394
|
multiline: e.multiline,
|
|
5398
5395
|
placeholder: e.placeholder,
|
|
5399
5396
|
value: e.value,
|
|
@@ -5402,7 +5399,7 @@ const Vp = (e) => {
|
|
|
5402
5399
|
id: i.value,
|
|
5403
5400
|
isAnyDisabled: c.value,
|
|
5404
5401
|
helperId: A,
|
|
5405
|
-
labelId:
|
|
5402
|
+
labelId: w,
|
|
5406
5403
|
errorId: N,
|
|
5407
5404
|
isFocus: l.value,
|
|
5408
5405
|
input: Z,
|
|
@@ -5417,7 +5414,7 @@ const Vp = (e) => {
|
|
|
5417
5414
|
}, {
|
|
5418
5415
|
name: "LumxTextField",
|
|
5419
5416
|
inheritAttrs: !1,
|
|
5420
|
-
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "
|
|
5417
|
+
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "isDisabled", "disabled", "multiline", "placeholder", "aria-disabled", "id", "clearButtonProps", "name", "type", "minimumRows", "inputRef", "textFieldRef"),
|
|
5421
5418
|
emits: Wp
|
|
5422
5419
|
}), Gp = /* @__PURE__ */ E((e, {
|
|
5423
5420
|
emit: t,
|
|
@@ -5463,19 +5460,19 @@ const Vp = (e) => {
|
|
|
5463
5460
|
class: A,
|
|
5464
5461
|
...N
|
|
5465
5462
|
} = e, x = {
|
|
5466
|
-
onChange: (P, T,
|
|
5463
|
+
onChange: (P, T, O) => t("change", P, T, O),
|
|
5467
5464
|
onInput: (P) => t("change", P),
|
|
5468
5465
|
onFocus: (P) => t("focus", P),
|
|
5469
5466
|
onBlur: (P) => t("blur", P),
|
|
5470
5467
|
onClear: (P) => t("clear", P)
|
|
5471
5468
|
}, {
|
|
5472
|
-
ariaDisabled:
|
|
5473
|
-
...
|
|
5469
|
+
ariaDisabled: w,
|
|
5470
|
+
...k
|
|
5474
5471
|
} = N;
|
|
5475
5472
|
return Sp({
|
|
5476
5473
|
...n,
|
|
5477
|
-
...
|
|
5478
|
-
"aria-disabled":
|
|
5474
|
+
...k,
|
|
5475
|
+
"aria-disabled": w ?? n.ariaDisabled,
|
|
5479
5476
|
...x,
|
|
5480
5477
|
listboxId: o,
|
|
5481
5478
|
isOpen: l.value && (!!u.value?.optionsLength || h.value),
|
|
@@ -5497,7 +5494,7 @@ const Vp = (e) => {
|
|
|
5497
5494
|
}, {
|
|
5498
5495
|
name: "LumxComboboxInput",
|
|
5499
5496
|
inheritAttrs: !1,
|
|
5500
|
-
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "
|
|
5497
|
+
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "isDisabled", "disabled", "aria-disabled", "multiline", "placeholder", "id", "clearButtonProps", "name", "type", "minimumRows", "inputRef", "textFieldRef", "toggleButtonProps", "onSelect", "filter", "openOnFocus", "selectionMode"),
|
|
5501
5498
|
emits: {
|
|
5502
5499
|
select: (e) => !!e,
|
|
5503
5500
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5511,7 +5508,7 @@ const Vp = (e) => {
|
|
|
5511
5508
|
}
|
|
5512
5509
|
}), Kp = "List", Nu = "lumx-list", {
|
|
5513
5510
|
block: Xp
|
|
5514
|
-
} =
|
|
5511
|
+
} = B(Nu), Yp = {}, pt = (e) => {
|
|
5515
5512
|
const {
|
|
5516
5513
|
children: t,
|
|
5517
5514
|
className: n,
|
|
@@ -5599,7 +5596,7 @@ const ng = /* @__PURE__ */ E((e, {
|
|
|
5599
5596
|
}), ag = "ListItem", xu = "lumx-list-item", {
|
|
5600
5597
|
block: og,
|
|
5601
5598
|
element: jt
|
|
5602
|
-
} =
|
|
5599
|
+
} = B(xu), wu = {
|
|
5603
5600
|
size: H.regular
|
|
5604
5601
|
}, tt = (e) => {
|
|
5605
5602
|
const {
|
|
@@ -5674,7 +5671,7 @@ function rg(e) {
|
|
|
5674
5671
|
const sg = "lumx-combobox-option", {
|
|
5675
5672
|
block: ig,
|
|
5676
5673
|
element: Ii
|
|
5677
|
-
} =
|
|
5674
|
+
} = B(sg), lg = (e, {
|
|
5678
5675
|
Tooltip: t
|
|
5679
5676
|
} = {}) => {
|
|
5680
5677
|
const {
|
|
@@ -5710,7 +5707,7 @@ const sg = "lumx-combobox-option", {
|
|
|
5710
5707
|
"aria-disabled": d ? "true" : void 0,
|
|
5711
5708
|
role: A,
|
|
5712
5709
|
children: o
|
|
5713
|
-
}),
|
|
5710
|
+
}), w = t && b && !l ? m(t, b, rg(x) ? x : {
|
|
5714
5711
|
default: () => [x]
|
|
5715
5712
|
}) : x;
|
|
5716
5713
|
return tt({
|
|
@@ -5722,7 +5719,7 @@ const sg = "lumx-combobox-option", {
|
|
|
5722
5719
|
before: n,
|
|
5723
5720
|
after: a,
|
|
5724
5721
|
role: N,
|
|
5725
|
-
children: m(ne, null, [
|
|
5722
|
+
children: m(ne, null, [w, s && m("p", S({
|
|
5726
5723
|
id: i
|
|
5727
5724
|
}, zc({
|
|
5728
5725
|
className: Ii("description"),
|
|
@@ -5854,7 +5851,7 @@ function pg(e) {
|
|
|
5854
5851
|
const gg = "lumx-combobox-option-more-info", {
|
|
5855
5852
|
block: vg,
|
|
5856
5853
|
element: bg
|
|
5857
|
-
} =
|
|
5854
|
+
} = B(gg), yg = (e, {
|
|
5858
5855
|
IconButton: t,
|
|
5859
5856
|
Popover: n
|
|
5860
5857
|
}) => {
|
|
@@ -5917,7 +5914,7 @@ function Pg(e) {
|
|
|
5917
5914
|
const xg = "lumx-popover", {
|
|
5918
5915
|
block: wg,
|
|
5919
5916
|
element: Cg
|
|
5920
|
-
} =
|
|
5917
|
+
} = B(xg), Wt = {
|
|
5921
5918
|
closeMode: "unmount",
|
|
5922
5919
|
elevation: 3,
|
|
5923
5920
|
placement: Ag.AUTO,
|
|
@@ -5948,8 +5945,8 @@ const xg = "lumx-popover", {
|
|
|
5948
5945
|
unmountSentinel: N,
|
|
5949
5946
|
// Forwarded props
|
|
5950
5947
|
...x
|
|
5951
|
-
} = e,
|
|
5952
|
-
return
|
|
5948
|
+
} = e, w = !d && i === "hide", k = d || i === "hide", P = o, T = Math.min(l || 0, 5);
|
|
5949
|
+
return k ? m(t, {
|
|
5953
5950
|
enabled: v
|
|
5954
5951
|
}, {
|
|
5955
5952
|
default: () => [m(P, S(x, {
|
|
@@ -5958,20 +5955,20 @@ const xg = "lumx-popover", {
|
|
|
5958
5955
|
[`theme-${g}`]: !!g,
|
|
5959
5956
|
[`elevation-${T}`]: !!T,
|
|
5960
5957
|
[`position-${u}`]: !!u,
|
|
5961
|
-
"is-hidden": !!
|
|
5958
|
+
"is-hidden": !!w
|
|
5962
5959
|
})),
|
|
5963
|
-
hidden:
|
|
5964
|
-
style:
|
|
5960
|
+
hidden: w || void 0,
|
|
5961
|
+
style: w ? void 0 : h,
|
|
5965
5962
|
"data-popper-placement": u
|
|
5966
5963
|
}), {
|
|
5967
5964
|
default: () => [N, m(n, {
|
|
5968
|
-
callback: !
|
|
5965
|
+
callback: !w && y,
|
|
5969
5966
|
childrenRefs: A
|
|
5970
5967
|
}, {
|
|
5971
5968
|
default: () => [c && m("div", {
|
|
5972
5969
|
ref: b,
|
|
5973
5970
|
className: Cg("arrow"),
|
|
5974
|
-
style:
|
|
5971
|
+
style: w ? void 0 : f
|
|
5975
5972
|
}, [m("svg", {
|
|
5976
5973
|
viewBox: "0 0 14 14",
|
|
5977
5974
|
"aria-hidden": !0
|
|
@@ -6015,17 +6012,17 @@ function Ig(e) {
|
|
|
6015
6012
|
boundary: u,
|
|
6016
6013
|
parsedPlacement: h,
|
|
6017
6014
|
arrowElement: f
|
|
6018
|
-
} = e, g = ot(r), p = ot(s), b = ot(i), v = ot(l), y = ot(c), A = ot(d), N = [], x = (t?.away ?? 0) + (n ? qa : 0),
|
|
6019
|
-
return N.push(lu({ mainAxis: x, crossAxis:
|
|
6015
|
+
} = e, g = ot(r), p = ot(s), b = ot(i), v = ot(l), y = ot(c), A = ot(d), N = [], x = (t?.away ?? 0) + (n ? qa : 0), w = t?.along ?? 0;
|
|
6016
|
+
return N.push(lu({ mainAxis: x, crossAxis: w })), h.isAuto ? N.push(
|
|
6020
6017
|
Jm({ ...u ? { boundary: u } : {}, alignment: h.autoAlignment })
|
|
6021
6018
|
) : (N.push(ep(u ? { boundary: u } : {})), N.push(Qm(u ? { boundary: u } : {}))), (a || o || g || p || b || v || y || A) && N.push(
|
|
6022
6019
|
tp({
|
|
6023
6020
|
...u ? { boundary: u } : {},
|
|
6024
|
-
apply({ availableHeight: P, rects: T, elements:
|
|
6021
|
+
apply({ availableHeight: P, rects: T, elements: O }) {
|
|
6025
6022
|
const _ = `${T.reference.width}px`;
|
|
6026
|
-
|
|
6023
|
+
O.floating.style.width = g || (a === "width" ? _ : ""), O.floating.style.minWidth = _g(p, a === "minWidth" ? _ : ""), O.floating.style.maxWidth = Li(b, a === "maxWidth" ? _ : ""), O.floating.style.height = v || "", O.floating.style.minHeight = y || "";
|
|
6027
6024
|
const q = `${Math.max(0, P - qa)}px`;
|
|
6028
|
-
|
|
6025
|
+
O.floating.style.maxHeight = Li(
|
|
6029
6026
|
A,
|
|
6030
6027
|
o ? q : ""
|
|
6031
6028
|
);
|
|
@@ -6044,7 +6041,7 @@ function Eg(e) {
|
|
|
6044
6041
|
return e.isAuto ? void 0 : e.floatingPlacement;
|
|
6045
6042
|
}
|
|
6046
6043
|
function $g(e) {
|
|
6047
|
-
const t = R(), n = R(), a =
|
|
6044
|
+
const t = R(), n = R(), a = C(() => kg(e.placement?.value)), o = C(() => Tg(e.fitToAnchorWidth?.value)), r = C(
|
|
6048
6045
|
() => Ig({
|
|
6049
6046
|
offset: e.offset?.value,
|
|
6050
6047
|
hasArrow: e.hasArrow?.value,
|
|
@@ -6060,7 +6057,7 @@ function $g(e) {
|
|
|
6060
6057
|
parsedPlacement: a.value,
|
|
6061
6058
|
arrowElement: n.value
|
|
6062
6059
|
})
|
|
6063
|
-
), s =
|
|
6060
|
+
), s = C(() => Eg(a.value)), {
|
|
6064
6061
|
floatingStyles: i,
|
|
6065
6062
|
placement: l,
|
|
6066
6063
|
isPositioned: c,
|
|
@@ -6069,9 +6066,9 @@ function $g(e) {
|
|
|
6069
6066
|
placement: s,
|
|
6070
6067
|
whileElementsMounted: iu,
|
|
6071
6068
|
middleware: r
|
|
6072
|
-
}), u =
|
|
6069
|
+
}), u = C(
|
|
6073
6070
|
() => l.value ?? e.placement?.value
|
|
6074
|
-
), h =
|
|
6071
|
+
), h = C(() => Lg(d.value?.arrow)), f = C(() => ({
|
|
6075
6072
|
...e.style?.value || {},
|
|
6076
6073
|
...i.value,
|
|
6077
6074
|
zIndex: e.zIndex?.value
|
|
@@ -6098,7 +6095,7 @@ const Rg = {
|
|
|
6098
6095
|
slots: n,
|
|
6099
6096
|
attrs: a
|
|
6100
6097
|
}) => {
|
|
6101
|
-
const o = M(() => e.class), r =
|
|
6098
|
+
const o = M(() => e.class), r = C(() => xt(e.anchorRef)), s = Q(e, "focusElement"), {
|
|
6102
6099
|
styles: i,
|
|
6103
6100
|
isPositioned: l,
|
|
6104
6101
|
position: c,
|
|
@@ -6106,7 +6103,7 @@ const Rg = {
|
|
|
6106
6103
|
arrowRef: u
|
|
6107
6104
|
} = $g({
|
|
6108
6105
|
anchorRef: r,
|
|
6109
|
-
boundaryRef:
|
|
6106
|
+
boundaryRef: C(() => xt(e.boundaryRef)),
|
|
6110
6107
|
offset: Q(e, "offset"),
|
|
6111
6108
|
hasArrow: Q(e, "hasArrow"),
|
|
6112
6109
|
fitToAnchorWidth: Q(e, "fitToAnchorWidth"),
|
|
@@ -6117,21 +6114,21 @@ const Rg = {
|
|
|
6117
6114
|
height: Q(e, "height"),
|
|
6118
6115
|
minHeight: Q(e, "minHeight"),
|
|
6119
6116
|
maxHeight: Q(e, "maxHeight"),
|
|
6120
|
-
placement:
|
|
6121
|
-
style:
|
|
6117
|
+
placement: C(() => e.placement || Wt.placement),
|
|
6118
|
+
style: C(() => {
|
|
6122
6119
|
}),
|
|
6123
|
-
zIndex:
|
|
6120
|
+
zIndex: C(() => e.zIndex ?? Ng)
|
|
6124
6121
|
});
|
|
6125
|
-
Or(
|
|
6122
|
+
Or(C(() => e.focusAnchorOnClose ?? !0), r, C(() => e.parentElement), d, C(() => !!e.isOpen));
|
|
6126
6123
|
const h = () => {
|
|
6127
6124
|
t("close");
|
|
6128
6125
|
};
|
|
6129
|
-
ln(
|
|
6130
|
-
const f =
|
|
6126
|
+
ln(C(() => h), C(() => !!(e.isOpen && e.closeOnEscape)));
|
|
6127
|
+
const f = C(() => !e.withFocusTrap && !!e.isOpen && l.value);
|
|
6131
6128
|
Mg(s, f);
|
|
6132
|
-
const g =
|
|
6129
|
+
const g = C(() => !e.withFocusTrap || !e.isOpen ? !1 : e.focusTrapZoneElement || d.value || !1);
|
|
6133
6130
|
Cr(g, s);
|
|
6134
|
-
const p =
|
|
6131
|
+
const p = C(() => [d, r]);
|
|
6135
6132
|
return () => Og({
|
|
6136
6133
|
...a,
|
|
6137
6134
|
as: e.as,
|
|
@@ -6167,7 +6164,7 @@ function Dg(e) {
|
|
|
6167
6164
|
const ku = /* @__PURE__ */ E((e, {
|
|
6168
6165
|
slots: t
|
|
6169
6166
|
}) => {
|
|
6170
|
-
const n = M(() => e.class), a = R(null), o =
|
|
6167
|
+
const n = M(() => e.class), a = R(null), o = C(() => a.value?.$el ?? void 0), r = R(!1), {
|
|
6171
6168
|
optionId: s
|
|
6172
6169
|
} = ug(), i = ye("activeDescendantChange", null), l = `${s}-more-info`;
|
|
6173
6170
|
function c(u) {
|
|
@@ -6232,7 +6229,7 @@ const ku = /* @__PURE__ */ E((e, {
|
|
|
6232
6229
|
}), Bg = "lumx-skeleton-typography", {
|
|
6233
6230
|
block: Fg,
|
|
6234
6231
|
element: qg
|
|
6235
|
-
} =
|
|
6232
|
+
} = B(Bg), ir = (e) => {
|
|
6236
6233
|
const {
|
|
6237
6234
|
className: t,
|
|
6238
6235
|
theme: n,
|
|
@@ -6313,7 +6310,7 @@ function Vg(e) {
|
|
|
6313
6310
|
const Wg = "lumx-combobox-popover", {
|
|
6314
6311
|
block: Ug,
|
|
6315
6312
|
element: Gg
|
|
6316
|
-
} =
|
|
6313
|
+
} = B(Wg), Kg = (e, {
|
|
6317
6314
|
Popover: t,
|
|
6318
6315
|
FlexBox: n
|
|
6319
6316
|
}) => {
|
|
@@ -6366,7 +6363,7 @@ function Xg() {
|
|
|
6366
6363
|
var Yg = Xg();
|
|
6367
6364
|
const qr = /* @__PURE__ */ Te(Yg), Zg = "lumx-flex-box", {
|
|
6368
6365
|
block: Jg
|
|
6369
|
-
} =
|
|
6366
|
+
} = B(Zg);
|
|
6370
6367
|
function Qg(e) {
|
|
6371
6368
|
const {
|
|
6372
6369
|
className: t,
|
|
@@ -6423,7 +6420,7 @@ const yn = /* @__PURE__ */ E((e, {
|
|
|
6423
6420
|
} = Pe(), {
|
|
6424
6421
|
isOpen: o,
|
|
6425
6422
|
setIsOpen: r
|
|
6426
|
-
} = Br(), s =
|
|
6423
|
+
} = Br(), s = C(() => a.value ?? void 0);
|
|
6427
6424
|
return () => {
|
|
6428
6425
|
const {
|
|
6429
6426
|
class: i,
|
|
@@ -6544,7 +6541,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6544
6541
|
isAnyDisabled: r,
|
|
6545
6542
|
disabledStateProps: s,
|
|
6546
6543
|
otherProps: i
|
|
6547
|
-
} = te(
|
|
6544
|
+
} = te(C(() => ({
|
|
6548
6545
|
...e,
|
|
6549
6546
|
...a
|
|
6550
6547
|
}))), l = (c) => {
|
|
@@ -6578,7 +6575,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6578
6575
|
isAnyDisabled: s,
|
|
6579
6576
|
disabledStateProps: i,
|
|
6580
6577
|
otherProps: l
|
|
6581
|
-
} = te(
|
|
6578
|
+
} = te(C(() => ({
|
|
6582
6579
|
...e,
|
|
6583
6580
|
...a
|
|
6584
6581
|
}))), c = (d) => {
|
|
@@ -6610,7 +6607,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6610
6607
|
}), dv = "ListSection", Lu = "lumx-list-section", {
|
|
6611
6608
|
block: fv,
|
|
6612
6609
|
element: $i
|
|
6613
|
-
} =
|
|
6610
|
+
} = B(Lu), hv = {}, Sn = (e) => {
|
|
6614
6611
|
const {
|
|
6615
6612
|
children: t,
|
|
6616
6613
|
className: n,
|
|
@@ -6701,7 +6698,7 @@ function bt(e) {
|
|
|
6701
6698
|
}
|
|
6702
6699
|
const pv = "lumx-combobox-state", {
|
|
6703
6700
|
block: gv
|
|
6704
|
-
} =
|
|
6701
|
+
} = B(pv), vv = (e, {
|
|
6705
6702
|
GenericBlock: t,
|
|
6706
6703
|
Text: n
|
|
6707
6704
|
}) => {
|
|
@@ -6774,7 +6771,7 @@ function Ha(e) {
|
|
|
6774
6771
|
const Av = "lumx-generic-block", {
|
|
6775
6772
|
block: Sv,
|
|
6776
6773
|
element: za
|
|
6777
|
-
} =
|
|
6774
|
+
} = B(Av), Mi = {
|
|
6778
6775
|
gap: H.big,
|
|
6779
6776
|
orientation: ct.horizontal
|
|
6780
6777
|
}, Nv = (e) => {
|
|
@@ -7498,7 +7495,7 @@ const ub = /* @__PURE__ */ Te(cb), NN = ub(H, ["tiny", "regular", "medium", "big
|
|
|
7498
7495
|
Divider: Iu
|
|
7499
7496
|
}, fb = "Badge", Bu = "lumx-badge", {
|
|
7500
7497
|
block: hb
|
|
7501
|
-
} =
|
|
7498
|
+
} = B(Bu), Fu = {
|
|
7502
7499
|
color: G.primary
|
|
7503
7500
|
}, On = (e) => {
|
|
7504
7501
|
const {
|
|
@@ -7535,7 +7532,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7535
7532
|
}), mb = "lumx-badge-wrapper", {
|
|
7536
7533
|
block: pb,
|
|
7537
7534
|
element: gb
|
|
7538
|
-
} =
|
|
7535
|
+
} = B(mb), vb = (e) => {
|
|
7539
7536
|
const {
|
|
7540
7537
|
badge: t,
|
|
7541
7538
|
children: n,
|
|
@@ -7566,7 +7563,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7566
7563
|
}), qu = "intermediate", bb = "lumx-checkbox", {
|
|
7567
7564
|
block: yb,
|
|
7568
7565
|
element: Ie
|
|
7569
|
-
} =
|
|
7566
|
+
} = B(bb), Ab = (e) => {
|
|
7570
7567
|
const {
|
|
7571
7568
|
checked: t,
|
|
7572
7569
|
className: n,
|
|
@@ -7638,14 +7635,14 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7638
7635
|
}, wN = /* @__PURE__ */ E((e, {
|
|
7639
7636
|
emit: t
|
|
7640
7637
|
}) => {
|
|
7641
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
7638
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = C(() => e.id || r), i = R(null), {
|
|
7642
7639
|
isAnyDisabled: l,
|
|
7643
7640
|
disabledStateProps: c,
|
|
7644
7641
|
otherProps: d
|
|
7645
|
-
} = te(
|
|
7642
|
+
} = te(C(() => ({
|
|
7646
7643
|
...e,
|
|
7647
7644
|
...n
|
|
7648
|
-
}))), u =
|
|
7645
|
+
}))), u = C(() => e.isChecked === qu);
|
|
7649
7646
|
X(u, (f) => {
|
|
7650
7647
|
i.value && (i.value.indeterminate = f);
|
|
7651
7648
|
}, {
|
|
@@ -7677,7 +7674,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7677
7674
|
}), kt = "lumx-chip", {
|
|
7678
7675
|
block: Nb,
|
|
7679
7676
|
element: Fo
|
|
7680
|
-
} =
|
|
7677
|
+
} = B(kt), Pb = {
|
|
7681
7678
|
size: H.m
|
|
7682
7679
|
}, xb = (e) => {
|
|
7683
7680
|
const {
|
|
@@ -7702,14 +7699,14 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7702
7699
|
handleKeyDown: A,
|
|
7703
7700
|
disabledStateProps: N,
|
|
7704
7701
|
isAnyDisabled: x,
|
|
7705
|
-
keyDownProp:
|
|
7706
|
-
tabIndexProp:
|
|
7702
|
+
keyDownProp: w = "onKeyDown",
|
|
7703
|
+
tabIndexProp: k = "tabIndex",
|
|
7707
7704
|
...P
|
|
7708
|
-
} = e, T = g && !y,
|
|
7705
|
+
} = e, T = g && !y, O = !!g || !!y || s, _ = r || (b === he.light ? G.dark : G.light), q = (I) => {
|
|
7709
7706
|
A?.(I), g && u && Hd(u)(I);
|
|
7710
7707
|
}, j = {
|
|
7711
|
-
[
|
|
7712
|
-
[
|
|
7708
|
+
[w]: q,
|
|
7709
|
+
[k]: O && !N.disabled ? 0 : void 0
|
|
7713
7710
|
};
|
|
7714
7711
|
return (
|
|
7715
7712
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
@@ -7719,7 +7716,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7719
7716
|
href: N.disabled ? void 0 : y,
|
|
7720
7717
|
ref: v,
|
|
7721
7718
|
className: L(o, Nb({
|
|
7722
|
-
"is-clickable":
|
|
7719
|
+
"is-clickable": O,
|
|
7723
7720
|
[`color-${_}`]: !!_,
|
|
7724
7721
|
"is-disabled": x,
|
|
7725
7722
|
"has-after": !!t,
|
|
@@ -7729,7 +7726,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7729
7726
|
[`size-${p}`]: !!p,
|
|
7730
7727
|
"is-unselected": !l
|
|
7731
7728
|
})),
|
|
7732
|
-
"aria-disabled":
|
|
7729
|
+
"aria-disabled": O && x || void 0,
|
|
7733
7730
|
onClick: g ? u : void 0
|
|
7734
7731
|
}), [n && // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
7735
7732
|
m("div", {
|
|
@@ -7759,7 +7756,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7759
7756
|
isAnyDisabled: c,
|
|
7760
7757
|
disabledStateProps: d,
|
|
7761
7758
|
otherProps: u
|
|
7762
|
-
} = te(
|
|
7759
|
+
} = te(C(() => ({
|
|
7763
7760
|
...e,
|
|
7764
7761
|
...a
|
|
7765
7762
|
}))), h = (b) => {
|
|
@@ -7825,7 +7822,7 @@ function Tb(e) {
|
|
|
7825
7822
|
const _b = "lumx-selection-chip-group", {
|
|
7826
7823
|
block: Ib,
|
|
7827
7824
|
element: Lb
|
|
7828
|
-
} =
|
|
7825
|
+
} = B(_b), Eb = (e, {
|
|
7829
7826
|
Chip: t,
|
|
7830
7827
|
ChipGroup: n,
|
|
7831
7828
|
Icon: a,
|
|
@@ -7854,10 +7851,10 @@ const _b = "lumx-selection-chip-group", {
|
|
|
7854
7851
|
"aria-orientation": "horizontal",
|
|
7855
7852
|
className: Ib([g])
|
|
7856
7853
|
}), Tb(s = i.map((y) => {
|
|
7857
|
-
const A = c && se(c, y) || se(l, y), N = se(l, y), x = p?.(y) || {},
|
|
7854
|
+
const A = c && se(c, y) || se(l, y), N = se(l, y), x = p?.(y) || {}, w = x.isDisabled || h, k = typeof x.children == "string" ? x.children : A, P = u ? `${k} - ${u}` : k;
|
|
7858
7855
|
return m(r, {
|
|
7859
7856
|
key: N,
|
|
7860
|
-
label:
|
|
7857
|
+
label: w ? void 0 : P
|
|
7861
7858
|
}, {
|
|
7862
7859
|
default: () => [m(t, S({
|
|
7863
7860
|
"aria-label": P
|
|
@@ -7872,7 +7869,7 @@ const _b = "lumx-selection-chip-group", {
|
|
|
7872
7869
|
role: "option",
|
|
7873
7870
|
"aria-selected": "true",
|
|
7874
7871
|
theme: f,
|
|
7875
|
-
isDisabled:
|
|
7872
|
+
isDisabled: w
|
|
7876
7873
|
}), {
|
|
7877
7874
|
default: () => [m(o, {
|
|
7878
7875
|
as: "span",
|
|
@@ -7969,7 +7966,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
7969
7966
|
});
|
|
7970
7967
|
c(d);
|
|
7971
7968
|
});
|
|
7972
|
-
const l =
|
|
7969
|
+
const l = C(i);
|
|
7973
7970
|
return ju({
|
|
7974
7971
|
containerRef: l,
|
|
7975
7972
|
itemSelector: `.${kt}`,
|
|
@@ -8024,7 +8021,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8024
8021
|
), Bb = "lumx-lightbox", {
|
|
8025
8022
|
block: Fb,
|
|
8026
8023
|
element: El
|
|
8027
|
-
} =
|
|
8024
|
+
} = B(Bb), qb = (e) => {
|
|
8028
8025
|
const {
|
|
8029
8026
|
"aria-labelledby": t,
|
|
8030
8027
|
ariaLabelledBy: n = t,
|
|
@@ -8047,8 +8044,8 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8047
8044
|
ThemeProvider: A,
|
|
8048
8045
|
ClickAwayProvider: N,
|
|
8049
8046
|
childrenRef: x,
|
|
8050
|
-
clickAwayRefs:
|
|
8051
|
-
closeButtonRef:
|
|
8047
|
+
clickAwayRefs: w,
|
|
8048
|
+
closeButtonRef: k,
|
|
8052
8049
|
IconButton: P,
|
|
8053
8050
|
...T
|
|
8054
8051
|
} = e;
|
|
@@ -8072,7 +8069,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8072
8069
|
}), [i && m("div", {
|
|
8073
8070
|
className: El("close")
|
|
8074
8071
|
}, [m(P, S(i, {
|
|
8075
|
-
ref:
|
|
8072
|
+
ref: k,
|
|
8076
8073
|
emphasis: "low",
|
|
8077
8074
|
hasBackground: !0,
|
|
8078
8075
|
icon: yr,
|
|
@@ -8087,7 +8084,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8087
8084
|
}, {
|
|
8088
8085
|
default: () => [m(N, {
|
|
8089
8086
|
callback: !h && c,
|
|
8090
|
-
childrenRefs:
|
|
8087
|
+
childrenRefs: w
|
|
8091
8088
|
}, {
|
|
8092
8089
|
default: () => [m("div", {
|
|
8093
8090
|
ref: x,
|
|
@@ -8106,14 +8103,14 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8106
8103
|
attrs: a
|
|
8107
8104
|
}) => {
|
|
8108
8105
|
const o = M(() => e.class), r = R(null), s = R(null), i = () => t("close");
|
|
8109
|
-
ln(i,
|
|
8110
|
-
const l =
|
|
8111
|
-
Cr(l,
|
|
8106
|
+
ln(i, C(() => !!(e.isOpen && !e.preventAutoClose)));
|
|
8107
|
+
const l = C(() => e.isOpen && r.value || !1);
|
|
8108
|
+
Cr(l, C(() => {
|
|
8112
8109
|
const h = s.value?.$el ?? s.value;
|
|
8113
8110
|
return e.focusElement || h || r.value;
|
|
8114
|
-
})), Or(
|
|
8115
|
-
}),
|
|
8116
|
-
const c = Dc(
|
|
8111
|
+
})), Or(C(() => !0), C(() => {
|
|
8112
|
+
}), C(() => e.parentElement), r, C(() => !!e.isOpen)), Bc(C(() => !!e.isOpen));
|
|
8113
|
+
const c = Dc(C(() => !!e.isOpen), ac), d = C(() => e.isOpen || c.value), u = C(() => [r]);
|
|
8117
8114
|
return () => d.value ? qb({
|
|
8118
8115
|
...a,
|
|
8119
8116
|
ClickAwayProvider: vr,
|
|
@@ -8140,7 +8137,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8140
8137
|
emits: jb
|
|
8141
8138
|
}), Hb = "lumx-divider", {
|
|
8142
8139
|
block: zb
|
|
8143
|
-
} =
|
|
8140
|
+
} = B(Hb), Vb = (e) => {
|
|
8144
8141
|
const {
|
|
8145
8142
|
className: t,
|
|
8146
8143
|
theme: n,
|
|
@@ -8167,7 +8164,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8167
8164
|
props: $()("class", "theme")
|
|
8168
8165
|
}), Wb = "lumx-drag-handle", {
|
|
8169
8166
|
block: Ub
|
|
8170
|
-
} =
|
|
8167
|
+
} = B(Wb), Gb = (e) => {
|
|
8171
8168
|
const {
|
|
8172
8169
|
className: t,
|
|
8173
8170
|
theme: n,
|
|
@@ -8200,7 +8197,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8200
8197
|
}), Kb = "lumx-expansion-panel", {
|
|
8201
8198
|
block: Xb,
|
|
8202
8199
|
element: we
|
|
8203
|
-
} =
|
|
8200
|
+
} = B(Kb), Yb = {
|
|
8204
8201
|
closeMode: "unmount"
|
|
8205
8202
|
}, Zb = (e) => {
|
|
8206
8203
|
const {
|
|
@@ -8225,10 +8222,10 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8225
8222
|
IconButton: A,
|
|
8226
8223
|
footer: N,
|
|
8227
8224
|
closeMode: x,
|
|
8228
|
-
...
|
|
8229
|
-
} = e,
|
|
8225
|
+
...w
|
|
8226
|
+
} = e, k = (O) => {
|
|
8230
8227
|
const _ = !s;
|
|
8231
|
-
c && _ && c(
|
|
8228
|
+
c && _ && c(O), l && !_ && l(O), d && d(_, O);
|
|
8232
8229
|
}, P = u === he.dark ? G.light : G.dark, T = L(t, Xb({
|
|
8233
8230
|
"has-background": a,
|
|
8234
8231
|
"has-header": !Kt(f.children),
|
|
@@ -8240,11 +8237,11 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8240
8237
|
}));
|
|
8241
8238
|
return m("section", S({
|
|
8242
8239
|
ref: o
|
|
8243
|
-
},
|
|
8240
|
+
}, w, {
|
|
8244
8241
|
className: T
|
|
8245
8242
|
}), [m("header", {
|
|
8246
8243
|
className: we("header"),
|
|
8247
|
-
onClick:
|
|
8244
|
+
onClick: k
|
|
8248
8245
|
}, [p && m("div", {
|
|
8249
8246
|
className: we("header-drag")
|
|
8250
8247
|
}, [p]), m("div", S(f, {
|
|
@@ -8338,7 +8335,7 @@ function Qb(e) {
|
|
|
8338
8335
|
const ey = "lumx-flag", {
|
|
8339
8336
|
block: ty,
|
|
8340
8337
|
element: $l
|
|
8341
|
-
} =
|
|
8338
|
+
} = B(ey), ny = (e) => {
|
|
8342
8339
|
const {
|
|
8343
8340
|
children: t,
|
|
8344
8341
|
icon: n,
|
|
@@ -8519,7 +8516,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8519
8516
|
}, LN = /* @__PURE__ */ E((e, {
|
|
8520
8517
|
slots: t
|
|
8521
8518
|
}) => {
|
|
8522
|
-
const n = D(), a = xc(), o = M(() => e.class), r =
|
|
8519
|
+
const n = D(), a = xc(), o = M(() => e.class), r = C(() => {
|
|
8523
8520
|
const {
|
|
8524
8521
|
className: s,
|
|
8525
8522
|
...i
|
|
@@ -8571,7 +8568,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8571
8568
|
props: $()("htmlFor", "id", "isRequired", "typography", "theme", "class", "as")
|
|
8572
8569
|
}), Wu = "lumx-link", {
|
|
8573
8570
|
block: py
|
|
8574
|
-
} =
|
|
8571
|
+
} = B(Wu), gy = (e) => {
|
|
8575
8572
|
const {
|
|
8576
8573
|
children: t,
|
|
8577
8574
|
className: n,
|
|
@@ -8608,7 +8605,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8608
8605
|
isAnyDisabled: r,
|
|
8609
8606
|
disabledStateProps: s,
|
|
8610
8607
|
otherProps: i
|
|
8611
|
-
} = te(
|
|
8608
|
+
} = te(C(() => ({
|
|
8612
8609
|
...e,
|
|
8613
8610
|
...a
|
|
8614
8611
|
}))), l = (c) => {
|
|
@@ -8641,7 +8638,7 @@ function jl(e) {
|
|
|
8641
8638
|
const yy = "lumx-link-preview", {
|
|
8642
8639
|
block: Ay,
|
|
8643
8640
|
element: We
|
|
8644
|
-
} =
|
|
8641
|
+
} = B(yy), Uu = {
|
|
8645
8642
|
size: H.regular,
|
|
8646
8643
|
titleHeading: "h2"
|
|
8647
8644
|
}, Sy = (e) => {
|
|
@@ -8736,7 +8733,7 @@ const yy = "lumx-link-preview", {
|
|
|
8736
8733
|
}), Ny = "lumx-menu-item", {
|
|
8737
8734
|
block: Py,
|
|
8738
8735
|
element: xy
|
|
8739
|
-
} =
|
|
8736
|
+
} = B(Ny), wy = (e) => {
|
|
8740
8737
|
const {
|
|
8741
8738
|
children: t,
|
|
8742
8739
|
className: n,
|
|
@@ -9153,7 +9150,7 @@ function qy(e) {
|
|
|
9153
9150
|
const jy = "lumx-menu-popover", {
|
|
9154
9151
|
block: Hy,
|
|
9155
9152
|
element: zy
|
|
9156
|
-
} =
|
|
9153
|
+
} = B(jy), Vy = (e, {
|
|
9157
9154
|
Popover: t,
|
|
9158
9155
|
FlexBox: n
|
|
9159
9156
|
}) => {
|
|
@@ -9290,7 +9287,7 @@ const jy = "lumx-menu-popover", {
|
|
|
9290
9287
|
}), Yy = "Message", Ku = "lumx-message", {
|
|
9291
9288
|
block: Zy,
|
|
9292
9289
|
element: Uo
|
|
9293
|
-
} =
|
|
9290
|
+
} = B(Ku), Jy = {
|
|
9294
9291
|
[ie.error]: {
|
|
9295
9292
|
color: G.red,
|
|
9296
9293
|
icon: hc
|
|
@@ -9396,7 +9393,7 @@ var tA = eA();
|
|
|
9396
9393
|
const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
9397
9394
|
block: oA,
|
|
9398
9395
|
element: Xo
|
|
9399
|
-
} =
|
|
9396
|
+
} = B(aA), rA = (e) => {
|
|
9400
9397
|
const {
|
|
9401
9398
|
className: t,
|
|
9402
9399
|
theme: n,
|
|
@@ -9470,7 +9467,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9470
9467
|
emit: t,
|
|
9471
9468
|
slots: n
|
|
9472
9469
|
}) => {
|
|
9473
|
-
const a = D(), o = M(() => e.class), r =
|
|
9470
|
+
const a = D(), o = M(() => e.class), r = C(() => e.label ?? e.ariaLabel ?? a["aria-label"]), s = () => t("close");
|
|
9474
9471
|
return () => {
|
|
9475
9472
|
const {
|
|
9476
9473
|
label: i,
|
|
@@ -9504,7 +9501,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9504
9501
|
}), uA = "lumx-progress-linear", {
|
|
9505
9502
|
block: dA,
|
|
9506
9503
|
element: Wl
|
|
9507
|
-
} =
|
|
9504
|
+
} = B(uA), fA = (e) => {
|
|
9508
9505
|
const {
|
|
9509
9506
|
className: t,
|
|
9510
9507
|
theme: n,
|
|
@@ -9535,7 +9532,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9535
9532
|
}), hA = "lumx-radio-button", {
|
|
9536
9533
|
block: mA,
|
|
9537
9534
|
element: Le
|
|
9538
|
-
} =
|
|
9535
|
+
} = B(hA), pA = (e) => {
|
|
9539
9536
|
const {
|
|
9540
9537
|
checked: t,
|
|
9541
9538
|
className: n,
|
|
@@ -9603,11 +9600,11 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9603
9600
|
}, HN = /* @__PURE__ */ E((e, {
|
|
9604
9601
|
emit: t
|
|
9605
9602
|
}) => {
|
|
9606
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
9603
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = C(() => e.id || r), {
|
|
9607
9604
|
isAnyDisabled: i,
|
|
9608
9605
|
disabledStateProps: l,
|
|
9609
9606
|
otherProps: c
|
|
9610
|
-
} = te(
|
|
9607
|
+
} = te(C(() => ({
|
|
9611
9608
|
...e,
|
|
9612
9609
|
...n
|
|
9613
9610
|
}))), d = (u, h, f) => {
|
|
@@ -9662,7 +9659,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9662
9659
|
props: $()("class")
|
|
9663
9660
|
}), yA = "lumx-skeleton-circle", {
|
|
9664
9661
|
block: AA
|
|
9665
|
-
} =
|
|
9662
|
+
} = B(yA), SA = (e) => {
|
|
9666
9663
|
const {
|
|
9667
9664
|
className: t,
|
|
9668
9665
|
size: n,
|
|
@@ -9687,7 +9684,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9687
9684
|
}, PA = "lumx-skeleton-rectangle", {
|
|
9688
9685
|
block: xA,
|
|
9689
9686
|
element: wA
|
|
9690
|
-
} =
|
|
9687
|
+
} = B(PA), CA = {
|
|
9691
9688
|
variant: NA.squared
|
|
9692
9689
|
}, OA = (e) => {
|
|
9693
9690
|
const {
|
|
@@ -9748,7 +9745,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9748
9745
|
}), kA = "lumx-switch", {
|
|
9749
9746
|
block: TA,
|
|
9750
9747
|
element: Ee
|
|
9751
|
-
} =
|
|
9748
|
+
} = B(kA), _A = {
|
|
9752
9749
|
position: "left"
|
|
9753
9750
|
}, IA = (e) => {
|
|
9754
9751
|
const {
|
|
@@ -9823,11 +9820,11 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9823
9820
|
emit: t,
|
|
9824
9821
|
slots: n
|
|
9825
9822
|
}) => {
|
|
9826
|
-
const a = D(), o = U(), r = M(() => e.class), s = re(), i =
|
|
9823
|
+
const a = D(), o = U(), r = M(() => e.class), s = re(), i = C(() => e.id || s), {
|
|
9827
9824
|
isAnyDisabled: l,
|
|
9828
9825
|
disabledStateProps: c,
|
|
9829
9826
|
otherProps: d
|
|
9830
|
-
} = te(
|
|
9827
|
+
} = te(C(() => ({
|
|
9831
9828
|
...e,
|
|
9832
9829
|
...a
|
|
9833
9830
|
}))), u = (h, f, g, p) => {
|
|
@@ -9859,7 +9856,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9859
9856
|
}, EA = "lumx-uploader", {
|
|
9860
9857
|
block: $A,
|
|
9861
9858
|
element: yt
|
|
9862
|
-
} =
|
|
9859
|
+
} = B(EA), Yo = {
|
|
9863
9860
|
aspectRatio: dt.horizontal,
|
|
9864
9861
|
size: H.xl,
|
|
9865
9862
|
variant: Yu.square
|
|
@@ -9919,11 +9916,11 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9919
9916
|
}, KN = /* @__PURE__ */ E((e, {
|
|
9920
9917
|
emit: t
|
|
9921
9918
|
}) => {
|
|
9922
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
9919
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = C(() => e.fileInputProps?.id || r), i = R(!1), {
|
|
9923
9920
|
isAnyDisabled: l,
|
|
9924
9921
|
disabledStateProps: c,
|
|
9925
9922
|
otherProps: d
|
|
9926
|
-
} = te(
|
|
9923
|
+
} = te(C(() => ({
|
|
9927
9924
|
...e,
|
|
9928
9925
|
...n
|
|
9929
9926
|
}))), u = (f) => {
|
|
@@ -9987,7 +9984,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9987
9984
|
}, Zu = "lumx-image-block", {
|
|
9988
9985
|
block: BA,
|
|
9989
9986
|
element: Ul
|
|
9990
|
-
} =
|
|
9987
|
+
} = B(Zu), Gl = {
|
|
9991
9988
|
captionPosition: DA.below,
|
|
9992
9989
|
align: Ar.left
|
|
9993
9990
|
}, FA = (e) => {
|
|
@@ -10166,7 +10163,7 @@ const qA = (e) => {
|
|
|
10166
10163
|
}), HA = "InlineList", Ju = "lumx-inline-list", {
|
|
10167
10164
|
block: zA,
|
|
10168
10165
|
element: Kl
|
|
10169
|
-
} =
|
|
10166
|
+
} = B(Ju), VA = {}, _n = (e) => {
|
|
10170
10167
|
const {
|
|
10171
10168
|
className: t,
|
|
10172
10169
|
color: n,
|
|
@@ -10216,7 +10213,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10216
10213
|
props: $()("color", "colorVariant", "typography", "wrap", "class")
|
|
10217
10214
|
}), Mt = "lumx-table", {
|
|
10218
10215
|
block: WA
|
|
10219
|
-
} =
|
|
10216
|
+
} = B(Mt), UA = (e) => {
|
|
10220
10217
|
const {
|
|
10221
10218
|
children: t,
|
|
10222
10219
|
className: n,
|
|
@@ -10280,7 +10277,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10280
10277
|
head: "head"
|
|
10281
10278
|
}, Ue = `${Mt}__cell`, {
|
|
10282
10279
|
block: Xl
|
|
10283
|
-
} =
|
|
10280
|
+
} = B(Ue), XA = {
|
|
10284
10281
|
variant: ur.body
|
|
10285
10282
|
}, YA = (e) => {
|
|
10286
10283
|
const {
|
|
@@ -10380,7 +10377,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10380
10377
|
props: $()("class")
|
|
10381
10378
|
}), eS = `${Mt}__row`, {
|
|
10382
10379
|
block: tS
|
|
10383
|
-
} =
|
|
10380
|
+
} = B(eS), nS = (e) => {
|
|
10384
10381
|
const {
|
|
10385
10382
|
children: t,
|
|
10386
10383
|
className: n,
|
|
@@ -10409,7 +10406,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10409
10406
|
const n = D(), a = M(() => e.class), {
|
|
10410
10407
|
isAnyDisabled: o,
|
|
10411
10408
|
otherProps: r
|
|
10412
|
-
} = te(
|
|
10409
|
+
} = te(C(() => ({
|
|
10413
10410
|
...e,
|
|
10414
10411
|
...n
|
|
10415
10412
|
})));
|
|
@@ -10429,7 +10426,7 @@ function aS(e) {
|
|
|
10429
10426
|
}
|
|
10430
10427
|
const oS = `${Qu}__link`, {
|
|
10431
10428
|
block: rS
|
|
10432
|
-
} =
|
|
10429
|
+
} = B(oS), sS = (e) => {
|
|
10433
10430
|
const {
|
|
10434
10431
|
className: t,
|
|
10435
10432
|
icon: n,
|
|
@@ -10452,12 +10449,12 @@ const oS = `${Qu}__link`, {
|
|
|
10452
10449
|
Text: A,
|
|
10453
10450
|
ref: N,
|
|
10454
10451
|
...x
|
|
10455
|
-
} = e,
|
|
10452
|
+
} = e, w = () => {
|
|
10456
10453
|
o || g?.();
|
|
10457
|
-
},
|
|
10458
|
-
c?.(T), b &&
|
|
10454
|
+
}, k = (T) => {
|
|
10455
|
+
c?.(T), b && w();
|
|
10459
10456
|
}, P = (T) => {
|
|
10460
|
-
d?.(T), !(T.key !== "Enter" || o) &&
|
|
10457
|
+
d?.(T), !(T.key !== "Enter" || o) && w();
|
|
10461
10458
|
};
|
|
10462
10459
|
return m("button", S({
|
|
10463
10460
|
ref: N
|
|
@@ -10468,11 +10465,11 @@ const oS = `${Qu}__link`, {
|
|
|
10468
10465
|
"is-active": i,
|
|
10469
10466
|
"is-disabled": o
|
|
10470
10467
|
})),
|
|
10471
|
-
onClick:
|
|
10468
|
+
onClick: w
|
|
10472
10469
|
}, {
|
|
10473
10470
|
[f]: P
|
|
10474
10471
|
}, {
|
|
10475
|
-
onFocus:
|
|
10472
|
+
onFocus: k,
|
|
10476
10473
|
role: "tab"
|
|
10477
10474
|
}, {
|
|
10478
10475
|
[h]: i ? 0 : u
|
|
@@ -10518,14 +10515,14 @@ const oS = `${Qu}__link`, {
|
|
|
10518
10515
|
}, ed = /* @__PURE__ */ Symbol("LumxTabProvider"), td = (e, t) => {
|
|
10519
10516
|
const n = qe(ed, void 0);
|
|
10520
10517
|
if (!n)
|
|
10521
|
-
return
|
|
10518
|
+
return C(() => {
|
|
10522
10519
|
});
|
|
10523
10520
|
const { state: a, dispatch: o } = n, r = re(), s = t || r;
|
|
10524
10521
|
return Ke(() => {
|
|
10525
10522
|
o({ type: "register", payload: { type: e, id: s } });
|
|
10526
10523
|
}), en(() => {
|
|
10527
10524
|
o({ type: "unregister", payload: { type: e, id: s } });
|
|
10528
|
-
}),
|
|
10525
|
+
}), C(() => {
|
|
10529
10526
|
const i = a.value.ids[e].indexOf(s);
|
|
10530
10527
|
if (i !== -1)
|
|
10531
10528
|
return {
|
|
@@ -10547,10 +10544,10 @@ const oS = `${Qu}__link`, {
|
|
|
10547
10544
|
}) => {
|
|
10548
10545
|
const n = D(), a = M(() => e.class), {
|
|
10549
10546
|
isAnyDisabled: o
|
|
10550
|
-
} = te(
|
|
10547
|
+
} = te(C(() => ({
|
|
10551
10548
|
...e,
|
|
10552
10549
|
...n
|
|
10553
|
-
}))), r = td("tab", e.id), s =
|
|
10550
|
+
}))), r = td("tab", e.id), s = C(() => e.isActive || r.value?.isActive), i = (c) => t("focus", c), l = (c) => t("keypress", c);
|
|
10554
10551
|
return () => m(sS, S(n, {
|
|
10555
10552
|
id: e.id,
|
|
10556
10553
|
className: a.value,
|
|
@@ -10579,7 +10576,7 @@ const oS = `${Qu}__link`, {
|
|
|
10579
10576
|
}), {
|
|
10580
10577
|
block: cS,
|
|
10581
10578
|
element: uS
|
|
10582
|
-
} =
|
|
10579
|
+
} = B(Qu);
|
|
10583
10580
|
let dS = /* @__PURE__ */ (function(e) {
|
|
10584
10581
|
return e.clustered = "clustered", e.fixed = "fixed", e;
|
|
10585
10582
|
})({});
|
|
@@ -10630,7 +10627,7 @@ const Yl = {
|
|
|
10630
10627
|
props: $()("layout", "position", "theme", "class")
|
|
10631
10628
|
}), hS = "lumx-tab-panel", {
|
|
10632
10629
|
block: mS
|
|
10633
|
-
} =
|
|
10630
|
+
} = B(hS), pS = (e) => {
|
|
10634
10631
|
const {
|
|
10635
10632
|
children: t,
|
|
10636
10633
|
className: n,
|
|
@@ -10656,7 +10653,7 @@ const Yl = {
|
|
|
10656
10653
|
"aria-labelledby": r
|
|
10657
10654
|
}), [(!s || a) && t]);
|
|
10658
10655
|
}, oP = /* @__PURE__ */ E((e) => {
|
|
10659
|
-
const t = D(), n = ke(), a = M(() => e.class), o = td("tabPanel", e.id), r =
|
|
10656
|
+
const t = D(), n = ke(), a = M(() => e.class), o = td("tabPanel", e.id), r = C(() => e.isActive || o.value?.isActive);
|
|
10660
10657
|
return () => m(pS, S(t, {
|
|
10661
10658
|
className: a.value,
|
|
10662
10659
|
isActive: r.value,
|
|
@@ -10739,7 +10736,7 @@ function AS(e) {
|
|
|
10739
10736
|
const SS = "lumx-user-block", {
|
|
10740
10737
|
block: NS,
|
|
10741
10738
|
element: $e
|
|
10742
|
-
} =
|
|
10739
|
+
} = B(SS), Ql = {
|
|
10743
10740
|
orientation: ct.horizontal,
|
|
10744
10741
|
size: H.m
|
|
10745
10742
|
}, dr = ({
|
|
@@ -10772,24 +10769,24 @@ const SS = "lumx-user-block", {
|
|
|
10772
10769
|
children: A,
|
|
10773
10770
|
additionalFields: N,
|
|
10774
10771
|
after: x,
|
|
10775
|
-
Text:
|
|
10776
|
-
Avatar:
|
|
10772
|
+
Text: w,
|
|
10773
|
+
Avatar: k,
|
|
10777
10774
|
...P
|
|
10778
10775
|
} = e;
|
|
10779
10776
|
let T = v;
|
|
10780
10777
|
p === ct.vertical && (T = H.l);
|
|
10781
|
-
const
|
|
10778
|
+
const O = p === ct.vertical, _ = dr({
|
|
10782
10779
|
handleClick: h,
|
|
10783
10780
|
linkAs: r,
|
|
10784
10781
|
linkProps: o
|
|
10785
10782
|
}), q = T !== H.s && T !== H.xs, j = a && q && m("div", {
|
|
10786
10783
|
className: $e("fields")
|
|
10787
|
-
}, [a.map((
|
|
10784
|
+
}, [a.map((F, V) => m(w, {
|
|
10788
10785
|
as: "span",
|
|
10789
|
-
key:
|
|
10786
|
+
key: V,
|
|
10790
10787
|
className: $e("field")
|
|
10791
|
-
}, AS(
|
|
10792
|
-
default: () => [
|
|
10788
|
+
}, AS(F) ? F : {
|
|
10789
|
+
default: () => [F]
|
|
10793
10790
|
}))]), I = {
|
|
10794
10791
|
...f && {
|
|
10795
10792
|
[l]: f
|
|
@@ -10807,7 +10804,7 @@ const SS = "lumx-user-block", {
|
|
|
10807
10804
|
[`theme-${y}`]: !!y,
|
|
10808
10805
|
"is-clickable": _
|
|
10809
10806
|
}))
|
|
10810
|
-
}), [t && m(
|
|
10807
|
+
}), [t && m(k, S({
|
|
10811
10808
|
linkAs: r,
|
|
10812
10809
|
linkProps: o,
|
|
10813
10810
|
alt: ""
|
|
@@ -10818,9 +10815,9 @@ const SS = "lumx-user-block", {
|
|
|
10818
10815
|
theme: y
|
|
10819
10816
|
}), null), (a || d || A || N) && m("div", {
|
|
10820
10817
|
className: $e("wrapper")
|
|
10821
|
-
}, [A, j, q ? N : null]),
|
|
10818
|
+
}, [A, j, q ? N : null]), O && b && m("div", {
|
|
10822
10819
|
className: $e("action")
|
|
10823
|
-
}, [b]),
|
|
10820
|
+
}, [b]), O && i && m("div", {
|
|
10824
10821
|
className: $e("actions")
|
|
10825
10822
|
}, [i]), x ? m("div", {
|
|
10826
10823
|
className: $e("after")
|
|
@@ -10843,7 +10840,7 @@ const wS = {
|
|
|
10843
10840
|
t("mouseenter");
|
|
10844
10841
|
}, l = () => {
|
|
10845
10842
|
t("mouseleave");
|
|
10846
|
-
}, c = oe("onClick"), d = oe("onMouseenter"), u = oe("onMouseleave"), h =
|
|
10843
|
+
}, c = oe("onClick"), d = oe("onMouseenter"), u = oe("onMouseleave"), h = C(() => {
|
|
10847
10844
|
const g = e.name || n.name?.();
|
|
10848
10845
|
if (Kt(g))
|
|
10849
10846
|
return null;
|
|
@@ -10869,7 +10866,7 @@ const wS = {
|
|
|
10869
10866
|
default: () => [g]
|
|
10870
10867
|
})]
|
|
10871
10868
|
});
|
|
10872
|
-
}), f =
|
|
10869
|
+
}), f = C(() => {
|
|
10873
10870
|
if (!e.avatarProps) return;
|
|
10874
10871
|
if (dr({
|
|
10875
10872
|
linkAs: e.linkAs,
|
|
@@ -11027,8 +11024,8 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11027
11024
|
translations: A,
|
|
11028
11025
|
onOpen: N,
|
|
11029
11026
|
onLoadMore: x,
|
|
11030
|
-
infiniteScrollOptions:
|
|
11031
|
-
} = e,
|
|
11027
|
+
infiniteScrollOptions: w
|
|
11028
|
+
} = e, k = y === "loading", P = y === "loadingMore", T = y === "error", O = u === "multiple", _ = d != null ? qr(d).map((q) => ad(q, r, o)).filter(Boolean).join(", ") : "";
|
|
11032
11029
|
return m(t.Provider, {
|
|
11033
11030
|
onOpen: N
|
|
11034
11031
|
}, {
|
|
@@ -11044,9 +11041,9 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11044
11041
|
}, p), {
|
|
11045
11042
|
default: () => [m(t.List, S(b, {
|
|
11046
11043
|
"aria-label": h,
|
|
11047
|
-
"aria-multiselectable":
|
|
11044
|
+
"aria-multiselectable": O || void 0
|
|
11048
11045
|
}), {
|
|
11049
|
-
default: () => [
|
|
11046
|
+
default: () => [k ? m(t.OptionSkeleton, {
|
|
11050
11047
|
count: 3
|
|
11051
11048
|
}, null) : Wr({
|
|
11052
11049
|
options: a,
|
|
@@ -11063,7 +11060,7 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11063
11060
|
callback: () => {
|
|
11064
11061
|
y && y !== "idle" || x();
|
|
11065
11062
|
},
|
|
11066
|
-
options:
|
|
11063
|
+
options: w
|
|
11067
11064
|
}, null), P && m(t.OptionSkeleton, {
|
|
11068
11065
|
count: 1
|
|
11069
11066
|
}, null)]
|
|
@@ -11084,7 +11081,7 @@ function _S(e) {
|
|
|
11084
11081
|
}
|
|
11085
11082
|
function od(e) {
|
|
11086
11083
|
const t = D();
|
|
11087
|
-
return
|
|
11084
|
+
return C(() => {
|
|
11088
11085
|
const n = t.renderOption;
|
|
11089
11086
|
if (!(!e && !n))
|
|
11090
11087
|
return (a, o) => {
|
|
@@ -11118,7 +11115,7 @@ function od(e) {
|
|
|
11118
11115
|
});
|
|
11119
11116
|
}
|
|
11120
11117
|
function rd(e) {
|
|
11121
|
-
return
|
|
11118
|
+
return C(() => {
|
|
11122
11119
|
if (e)
|
|
11123
11120
|
return (t, n) => e({
|
|
11124
11121
|
sectionId: t,
|
|
@@ -11150,10 +11147,10 @@ const LS = {
|
|
|
11150
11147
|
}) => {
|
|
11151
11148
|
const o = R(null), r = M(() => e.class), {
|
|
11152
11149
|
disabledStateProps: s
|
|
11153
|
-
} = te(
|
|
11150
|
+
} = te(C(() => ({
|
|
11154
11151
|
...e,
|
|
11155
11152
|
...a
|
|
11156
|
-
}))), i = od(n.option), l = rd(n.sectionTitle), c =
|
|
11153
|
+
}))), i = od(n.option), l = rd(n.sectionTitle), c = C(() => ({
|
|
11157
11154
|
className: f,
|
|
11158
11155
|
children: g,
|
|
11159
11156
|
ref: p,
|
|
@@ -11245,21 +11242,21 @@ const LS = {
|
|
|
11245
11242
|
nbOptionMessage: A,
|
|
11246
11243
|
errorMessage: N,
|
|
11247
11244
|
errorTryReloadMessage: x,
|
|
11248
|
-
onOpen:
|
|
11249
|
-
chips:
|
|
11245
|
+
onOpen: w,
|
|
11246
|
+
chips: k,
|
|
11250
11247
|
beforeOptions: P,
|
|
11251
11248
|
afterOptions: T,
|
|
11252
|
-
onLoadMore:
|
|
11249
|
+
onLoadMore: O,
|
|
11253
11250
|
infiniteScrollOptions: _
|
|
11254
11251
|
} = e, q = b === "loading", j = b === "loadingMore", I = b === "error";
|
|
11255
11252
|
return m(t.Provider, {
|
|
11256
|
-
onOpen:
|
|
11253
|
+
onOpen: w
|
|
11257
11254
|
}, {
|
|
11258
11255
|
default: () => [m(t.Input, S({
|
|
11259
11256
|
label: u
|
|
11260
11257
|
}, f, {
|
|
11261
11258
|
selectionMode: "keep",
|
|
11262
|
-
chips:
|
|
11259
|
+
chips: k
|
|
11263
11260
|
}), null), m(t.Popover, S({
|
|
11264
11261
|
fitToAnchorWidth: "minWidth",
|
|
11265
11262
|
fitWithinViewportHeight: !0,
|
|
@@ -11282,9 +11279,9 @@ const LS = {
|
|
|
11282
11279
|
selected: d
|
|
11283
11280
|
}, {
|
|
11284
11281
|
Combobox: t
|
|
11285
|
-
}), T,
|
|
11282
|
+
}), T, O && n && m(n, {
|
|
11286
11283
|
callback: () => {
|
|
11287
|
-
b && b !== "idle" ||
|
|
11284
|
+
b && b !== "idle" || O();
|
|
11288
11285
|
},
|
|
11289
11286
|
options: _
|
|
11290
11287
|
}, null), j && m(t.OptionSkeleton, {
|
|
@@ -11332,19 +11329,19 @@ const MS = {
|
|
|
11332
11329
|
slots: n,
|
|
11333
11330
|
attrs: a
|
|
11334
11331
|
}) => {
|
|
11335
|
-
const o =
|
|
11332
|
+
const o = C(() => e.selectionType === "multiple"), r = M(() => e.class), {
|
|
11336
11333
|
isAnyDisabled: s,
|
|
11337
11334
|
disabledStateProps: i
|
|
11338
|
-
} = te(
|
|
11335
|
+
} = te(C(() => ({
|
|
11339
11336
|
...e,
|
|
11340
11337
|
...a
|
|
11341
11338
|
}))), l = R(!!e.searchInputValue), c = R(e.searchInputValue ?? ""), d = R(null), u = R(null);
|
|
11342
11339
|
X(() => e.searchInputValue, (x) => {
|
|
11343
11340
|
x !== void 0 && (c.value = x, l.value = !!x);
|
|
11344
11341
|
});
|
|
11345
|
-
const h =
|
|
11346
|
-
const
|
|
11347
|
-
t("change",
|
|
11342
|
+
const h = C(() => e.selectionType === "multiple" || l.value ? c.value : ad(e.value, e.getOptionName, e.getOptionId)), f = (x) => {
|
|
11343
|
+
const w = nd(e.options, e.getOptionId, e.value, x.value, e.selectionType === "multiple");
|
|
11344
|
+
t("change", w), l.value = !1, c.value = "", t("search", "");
|
|
11348
11345
|
}, g = (x) => {
|
|
11349
11346
|
l.value = !0, c.value = x, t("search", x), !o.value && x === "" && e.value !== void 0 && e.value !== null && t("change", void 0);
|
|
11350
11347
|
}, p = (x) => {
|
|
@@ -11353,7 +11350,7 @@ const MS = {
|
|
|
11353
11350
|
l.value = !1, c.value = "", t("search", ""), t("blur", x);
|
|
11354
11351
|
}, v = od(n.option), y = rd(n.sectionTitle), A = oe("onLoadMore") || oe("onLoad-more"), N = () => t("load-more");
|
|
11355
11352
|
return () => {
|
|
11356
|
-
const x = !o.value && !s.value && (e.hasClearButton ?? !0) && e.value !== void 0 && e.value !== null,
|
|
11353
|
+
const x = !o.value && !s.value && (e.hasClearButton ?? !0) && e.value !== void 0 && e.value !== null, w = e.selectionType === "multiple" ? m(Db, {
|
|
11357
11354
|
value: e.value,
|
|
11358
11355
|
theme: e.theme,
|
|
11359
11356
|
getOptionId: e.getOptionId,
|
|
@@ -11365,7 +11362,7 @@ const MS = {
|
|
|
11365
11362
|
chipRemoveLabel: e.translations.chipRemoveLabel
|
|
11366
11363
|
}, {
|
|
11367
11364
|
chip: n.chip || void 0
|
|
11368
|
-
}) : void 0,
|
|
11365
|
+
}) : void 0, k = e.listStatus ?? "idle", P = e.beforeOptions ?? n.beforeOptions?.();
|
|
11369
11366
|
return Gr({
|
|
11370
11367
|
options: e.options,
|
|
11371
11368
|
getOptionId: e.getOptionId,
|
|
@@ -11377,7 +11374,7 @@ const MS = {
|
|
|
11377
11374
|
selected: e.value,
|
|
11378
11375
|
label: e.label,
|
|
11379
11376
|
isMultiselectable: o.value,
|
|
11380
|
-
listStatus:
|
|
11377
|
+
listStatus: k,
|
|
11381
11378
|
onOpen: (T) => t("open", T),
|
|
11382
11379
|
loadingMessage: e.translations.loadingMessage,
|
|
11383
11380
|
emptyMessage: e.translations.emptyMessage,
|
|
@@ -11423,7 +11420,7 @@ const MS = {
|
|
|
11423
11420
|
listProps: {
|
|
11424
11421
|
ref: d
|
|
11425
11422
|
},
|
|
11426
|
-
chips:
|
|
11423
|
+
chips: w,
|
|
11427
11424
|
beforeOptions: P,
|
|
11428
11425
|
onLoadMore: A ? N : void 0,
|
|
11429
11426
|
infiniteScrollOptions: {
|
|
@@ -11442,7 +11439,7 @@ const MS = {
|
|
|
11442
11439
|
emits: MS
|
|
11443
11440
|
}), DS = Ot, cP = Eu, uP = ku, dP = Tu, fP = Iu, BS = "TimePickerField", sd = "lumx-time-picker-field", {
|
|
11444
11441
|
block: FS
|
|
11445
|
-
} =
|
|
11442
|
+
} = B(sd), tc = {
|
|
11446
11443
|
step: 30,
|
|
11447
11444
|
boundsMode: "on-blur"
|
|
11448
11445
|
}, Kr = (e, {
|
|
@@ -11545,12 +11542,12 @@ const WS = () => navigator.languages?.[0] || navigator.language, US = {
|
|
|
11545
11542
|
}, hP = /* @__PURE__ */ E((e, {
|
|
11546
11543
|
emit: t
|
|
11547
11544
|
}) => {
|
|
11548
|
-
const n = M(() => e.class), a =
|
|
11545
|
+
const n = M(() => e.class), a = C(() => e.locale ?? WS()), o = C(() => e.step ?? tc.step), r = C(() => e.boundsMode ?? tc.boundsMode), s = C(() => jS({
|
|
11549
11546
|
step: o.value,
|
|
11550
11547
|
minTime: e.minTime,
|
|
11551
11548
|
maxTime: e.maxTime,
|
|
11552
11549
|
locale: a.value
|
|
11553
|
-
})), i = R(""), l =
|
|
11550
|
+
})), i = R(""), l = C(() => {
|
|
11554
11551
|
const {
|
|
11555
11552
|
value: h
|
|
11556
11553
|
} = e;
|