@lumx/vue 4.19.0-next.0 → 4.19.0-next.1
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 +5 -0
- package/components/text-field/TextField.stories.d.ts +1 -0
- package/index.js +529 -526
- 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 w, 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 F(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
|
+
} = F(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] || {}, C = `${t}-title`, O = `${t}-description`, {
|
|
270
270
|
label: P,
|
|
271
271
|
onClick: T,
|
|
272
|
-
...
|
|
272
|
+
...k
|
|
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": C,
|
|
286
|
+
"aria-describedby": O,
|
|
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: C,
|
|
302
302
|
className: "lumx-typography-title"
|
|
303
303
|
}, [n])
|
|
304
304
|
}, null)]), d && m(u, {
|
|
305
|
-
id:
|
|
305
|
+
id: O,
|
|
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(k, {
|
|
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 w(() => {
|
|
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 w(() => (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(w(() => {
|
|
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(w(() => {
|
|
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 = w(() => 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), w({
|
|
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
|
+
} = F(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: C,
|
|
523
|
+
wrapperRef: O,
|
|
524
524
|
hasTopIntersection: P,
|
|
525
525
|
headerChildProps: T,
|
|
526
|
-
setSentinelTop:
|
|
526
|
+
setSentinelTop: k,
|
|
527
527
|
content: _,
|
|
528
528
|
setSentinelBottom: q,
|
|
529
529
|
footerChildContent: j,
|
|
530
530
|
footerChildProps: I,
|
|
531
|
-
ProgressCircular:
|
|
532
|
-
hasBottomIntersection:
|
|
533
|
-
...
|
|
531
|
+
ProgressCircular: B,
|
|
532
|
+
hasBottomIntersection: z,
|
|
533
|
+
...V
|
|
534
534
|
} = e;
|
|
535
535
|
return m(b, null, {
|
|
536
536
|
default: () => [m("div", S({
|
|
537
537
|
ref: n
|
|
538
|
-
},
|
|
538
|
+
}, V, {
|
|
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: C
|
|
564
564
|
}, {
|
|
565
565
|
default: () => [m("section", {
|
|
566
566
|
className: xe("wrapper"),
|
|
567
|
-
ref:
|
|
567
|
+
ref: O
|
|
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: k
|
|
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 || z)
|
|
588
588
|
}), I?.className)
|
|
589
589
|
}), [s, j]), i && m("div", {
|
|
590
590
|
className: xe("progress-overlay")
|
|
591
|
-
}, [m(
|
|
591
|
+
}, [m(B, 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 = w(() => lf(n?.value, a.level)), r = w(() => `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
|
+
} = F(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
|
+
}), w(() => 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 = (C) => {
|
|
1244
|
+
l.value = C;
|
|
1245
|
+
}, u = (C) => {
|
|
1246
|
+
c.value = C;
|
|
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, (C) => {
|
|
1249
|
+
const O = C[0];
|
|
1250
|
+
h.value = O ? !O.isIntersecting : null;
|
|
1251
|
+
}), rs(c, (C) => {
|
|
1252
|
+
const O = C[0];
|
|
1253
|
+
f.value = O ? !O.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 = w(() => e.preventAutoClose || e.preventCloseOnEscape), p = () => t("close");
|
|
1256
|
+
ln(p, w(() => !!(e.isOpen && !g.value)));
|
|
1257
|
+
const b = w(() => e.isOpen && s.value || !1);
|
|
1258
|
+
Cr(b, w(() => e.focusElement)), Or(w(() => !0), w(() => {
|
|
1259
|
+
}), w(() => e.parentElement), s, w(() => !!e.isOpen)), Bc(w(() => e.disableBodyScroll !== !1 && !!e.isOpen));
|
|
1260
|
+
const v = Dc(w(() => !!e.isOpen), ac, w(() => (C) => t("visibilityChange", C))), y = w(() => e.isOpen || v.value || e.closeMode === "hide"), A = w(() => [s]), N = w(() => e.preventAutoClose || e.preventCloseOnClick), x = (C) => {
|
|
1261
|
+
i.value = C, e.contentRef && (e.contentRef.value = C);
|
|
1262
1262
|
};
|
|
1263
1263
|
return () => {
|
|
1264
1264
|
if (!y.value) return null;
|
|
1265
|
-
const
|
|
1265
|
+
const C = n.default?.() ?? [], O = C.find((_) => _.type === "header"), P = C.find((_) => _.type === "footer"), k = !!(O || P) ? C.filter((_) => _.type !== "header" && _.type !== "footer" && _.type !== pr) : C;
|
|
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: k.length ? k : 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?.() ?? O?.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, C = x ? s(x) : "";
|
|
1394
|
+
if (C)
|
|
1395
|
+
switch (C) {
|
|
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]", C = "[object Int32Array]", O = "[object Uint8Array]", P = "[object Uint8ClampedArray]", T = "[object Uint16Array]", k = "[object Uint32Array]", _ = {};
|
|
1489
|
+
_[y] = _[A] = _[N] = _[x] = _[C] = _[O] = _[P] = _[T] = _[k] = !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
|
+
} = F(ih), ch = "lumx-button", {
|
|
1578
1578
|
block: uh
|
|
1579
|
-
} =
|
|
1579
|
+
} = F(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
|
+
} = F(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 = w(() => {
|
|
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 = w(
|
|
1690
1690
|
() => n.value["aria-disabled"] || n.value.disabled || void 0
|
|
1691
|
-
), o =
|
|
1691
|
+
), o = w(() => {
|
|
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
|
+
} = F(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
|
+
} = F(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 = w(() => zc({
|
|
1862
1862
|
...e,
|
|
1863
1863
|
className: s.value
|
|
1864
|
-
})), l =
|
|
1864
|
+
})), l = w(() => {
|
|
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(w(() => ({
|
|
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
|
+
} = F(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 = w(() => 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
|
+
} = F(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: C,
|
|
2148
|
+
variant: O,
|
|
2149
2149
|
linkProps: P,
|
|
2150
2150
|
linkAs: T,
|
|
2151
|
-
handleClick:
|
|
2151
|
+
handleClick: k,
|
|
2152
2152
|
handleKeyPress: _,
|
|
2153
2153
|
...q
|
|
2154
|
-
} = e, j = g ||
|
|
2155
|
-
|
|
2156
|
-
const
|
|
2154
|
+
} = e, j = g || C === "isLoading", I = C === "hasError", B = I && typeof l == "string", z = I && !B, V = {};
|
|
2155
|
+
B ? V.visibility = "hidden" : z && (V.display = "none");
|
|
2156
|
+
const W = !!(P?.href || T), Y = !y && !!(W || k || _), ae = {
|
|
2157
2157
|
...q
|
|
2158
2158
|
};
|
|
2159
2159
|
Y && (Object.assign(ae, {
|
|
2160
2160
|
as: T || (P?.href ? "a" : "button")
|
|
2161
|
-
}, A),
|
|
2161
|
+
}, A), W ? 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-${O}`]: !!O,
|
|
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": B,
|
|
2171
|
+
"has-custom-error-fallback": z,
|
|
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
|
+
...V,
|
|
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
|
+
}, [B ? 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: k,
|
|
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 = w(
|
|
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
|
+
), w(
|
|
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(w(() => ({
|
|
2290
2290
|
...e,
|
|
2291
2291
|
...a
|
|
2292
|
-
}))), h = jh(Q(() => e.image), s), f =
|
|
2292
|
+
}))), h = jh(Q(() => e.image), s), f = w(() => 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, C = Math.abs(N), O = l(), P = d(), T = x ? () => P.nextNode() : () => P.previousNode();
|
|
2511
|
+
let k = null, _ = C;
|
|
2512
|
+
if (O)
|
|
2513
|
+
P.currentNode = O;
|
|
2514
2514
|
else if (!x) {
|
|
2515
|
-
if (
|
|
2515
|
+
if (k = P.lastChild(), !k) 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
|
+
k = j;
|
|
2522
|
+
else if (O && s) {
|
|
2523
2523
|
const I = x ? u() : h();
|
|
2524
|
-
if (!I || I ===
|
|
2525
|
-
|
|
2524
|
+
if (!I || I === O) break;
|
|
2525
|
+
k = I, P.currentNode = I;
|
|
2526
2526
|
} else
|
|
2527
2527
|
break;
|
|
2528
2528
|
}
|
|
2529
|
-
return
|
|
2529
|
+
return k;
|
|
2530
2530
|
}
|
|
2531
2531
|
function p(N) {
|
|
2532
2532
|
const x = d(!1);
|
|
2533
|
-
let
|
|
2534
|
-
for (;
|
|
2535
|
-
if (N(
|
|
2536
|
-
|
|
2533
|
+
let C = x.nextNode();
|
|
2534
|
+
for (; C; ) {
|
|
2535
|
+
if (N(C)) return C;
|
|
2536
|
+
C = 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 C = x.nextNode();
|
|
2563
|
+
return C instanceof HTMLElement ? C : (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 C = l();
|
|
2570
|
+
return C !== x && (C && t.onDeactivate(C), 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", k) {
|
|
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 = k ? k(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 k = d(P);
|
|
2648
|
+
if (k.length === 0) return !1;
|
|
2649
|
+
const _ = Math.min(T, k.length - 1);
|
|
2650
|
+
return i.setActive(k[_]), !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 k = d(T), _ = k.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 < k.length)
|
|
2674
|
+
return b = q, i.setActive(k[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", B = _e(u(T, j)) ?? (P > 0 ? h() : f());
|
|
2677
|
+
if (!B) return !1;
|
|
2678
|
+
const z = d(B);
|
|
2679
|
+
if (z.length === 0) return !1;
|
|
2680
|
+
const V = P > 0 ? 0 : z.length - 1;
|
|
2681
|
+
return b = V, i.setActive(z[V]), !0;
|
|
2682
|
+
}
|
|
2683
|
+
function C(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 k = _e(u(T, P));
|
|
2689
|
+
if (k) return v(k, 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 O = {
|
|
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: O,
|
|
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, B = Math.max(0, Math.min(j + I, T.length - 1));
|
|
2719
|
+
return v(T[B], b);
|
|
2720
2720
|
}
|
|
2721
|
-
const
|
|
2722
|
-
if (!
|
|
2723
|
-
const _ = T.indexOf(
|
|
2721
|
+
const k = g(i.active);
|
|
2722
|
+
if (!k) return !1;
|
|
2723
|
+
const _ = T.indexOf(k);
|
|
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(O);
|
|
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 C("prev");
|
|
2740
2740
|
},
|
|
2741
2741
|
goDown() {
|
|
2742
|
-
return
|
|
2742
|
+
return C("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 = [], C = [];
|
|
2841
|
+
for (const O of v) {
|
|
2842
|
+
if (O.type === "childList") {
|
|
2843
2843
|
if (!y)
|
|
2844
|
-
for (const T of
|
|
2845
|
-
const { value:
|
|
2846
|
-
if (
|
|
2847
|
-
y =
|
|
2844
|
+
for (const T of O.removedNodes) {
|
|
2845
|
+
const { value: k } = vi(T, l).next();
|
|
2846
|
+
if (k) {
|
|
2847
|
+
y = k, A = O.nextSibling ?? O.previousSibling ?? null;
|
|
2848
2848
|
break;
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
|
-
for (const T of
|
|
2852
|
-
for (const
|
|
2853
|
-
|
|
2851
|
+
for (const T of O.addedNodes)
|
|
2852
|
+
for (const k of vi(T, a))
|
|
2853
|
+
C.push(k);
|
|
2854
2854
|
}
|
|
2855
|
-
const P =
|
|
2856
|
-
|
|
2855
|
+
const P = O.target;
|
|
2856
|
+
O.type === "attributes" && P.matches(a) && (O.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 O = d.hasFocus;
|
|
2860
|
+
d.reset(), p(O, A);
|
|
2861
2861
|
}
|
|
2862
|
-
if (
|
|
2863
|
-
const
|
|
2864
|
-
f(
|
|
2862
|
+
if (C.length > 0) {
|
|
2863
|
+
const O = n.querySelector(l) !== null;
|
|
2864
|
+
f(C, O);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (x.length > 0) {
|
|
2867
|
-
const
|
|
2868
|
-
for (const
|
|
2869
|
-
h(
|
|
2870
|
-
const T = !!(
|
|
2867
|
+
const O = u.selectors.activeItem;
|
|
2868
|
+
for (const k of x)
|
|
2869
|
+
h(k, "-1");
|
|
2870
|
+
const T = !!(O && x.includes(O) && d.hasFocus);
|
|
2871
2871
|
p(T);
|
|
2872
2872
|
}
|
|
2873
2873
|
if (N) {
|
|
2874
|
-
const
|
|
2875
|
-
|
|
2874
|
+
const O = n.querySelector(l);
|
|
2875
|
+
O && O !== N && h(O, "-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, B) {
|
|
2992
|
+
b[I].forEach((z) => z(B));
|
|
2993
2993
|
}
|
|
2994
2994
|
function y() {
|
|
2995
2995
|
let I = 0;
|
|
2996
|
-
for (const
|
|
2997
|
-
|
|
2996
|
+
for (const B of c.values())
|
|
2997
|
+
B.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 [V] of d)
|
|
3005
|
+
gi(V, d, c);
|
|
3006
|
+
const I = y(), B = o?.value ?? "";
|
|
3007
|
+
(I !== h || I === 0 && B !== f) && (h = I, f = B, v("optionsChange", { optionsLength: I, inputValue: B })), i && o?.setAttribute("aria-expanded", String(A()));
|
|
3008
3008
|
}
|
|
3009
3009
|
const x = 500;
|
|
3010
|
-
let
|
|
3010
|
+
let C, O = !1;
|
|
3011
3011
|
function P() {
|
|
3012
|
-
clearTimeout(
|
|
3013
|
-
p > 0 && i && (
|
|
3012
|
+
clearTimeout(C), p > 0 && i && (C = setTimeout(() => {
|
|
3013
|
+
p > 0 && i && (O = !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(C), O && (O = !1, v("loadingAnnouncement", !1)));
|
|
3019
3019
|
}
|
|
3020
|
-
let
|
|
3020
|
+
let k;
|
|
3021
3021
|
function _() {
|
|
3022
3022
|
u?.abort(), u = null, s = null;
|
|
3023
3023
|
}
|
|
3024
|
-
function q(I,
|
|
3025
|
-
function W
|
|
3026
|
-
if (
|
|
3027
|
-
|
|
3024
|
+
function q(I, B, z) {
|
|
3025
|
+
function V(W) {
|
|
3026
|
+
if (z?.(W)) {
|
|
3027
|
+
W.stopPropagation(), W.preventDefault();
|
|
3028
3028
|
return;
|
|
3029
3029
|
}
|
|
3030
3030
|
let Y = !1;
|
|
3031
|
-
const { altKey: ae } =
|
|
3032
|
-
switch (
|
|
3031
|
+
const { altKey: ae } = W, Z = k.focusNav;
|
|
3032
|
+
switch (W.key) {
|
|
3033
3033
|
case "Enter":
|
|
3034
|
-
if (
|
|
3034
|
+
if (k.isOpen && Z?.selectors.activeItem) {
|
|
3035
3035
|
const { activeItem: J } = Z.selectors;
|
|
3036
3036
|
Gc(J) || J.click(), Y = !0;
|
|
3037
|
-
} else
|
|
3037
|
+
} else k.isOpen && !k.isMultiSelect && k.setIsOpen(!1);
|
|
3038
3038
|
break;
|
|
3039
3039
|
// Open if closed, else move focus within listbox (wrap if enabled).
|
|
3040
3040
|
case "ArrowDown":
|
|
3041
|
-
|
|
3041
|
+
k.isOpen ? Z?.selectors.hasNavigableItems && !ae && (Z.selectors.activeItem ? Z.goDown() : Z.goTo((J) => J.getMatching(Bt) ?? J.getFirst())) : (k.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
|
+
!k.isOpen && !ae ? (k.setIsOpen(!0), Z?.goTo((J) => J.getMatching(Bt) ?? J.getLast())) : k.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
|
+
k.isOpen ? k.setIsOpen(!1) : k.select(null), Y = !0;
|
|
3049
3049
|
break;
|
|
3050
3050
|
case "PageUp":
|
|
3051
|
-
|
|
3051
|
+
k.isOpen && Z?.selectors.activeItem && Z.goToOffset(-10), Y = !0;
|
|
3052
3052
|
break;
|
|
3053
3053
|
case "PageDown":
|
|
3054
|
-
|
|
3054
|
+
k.isOpen && Z?.selectors.activeItem && Z.goToOffset(10), Y = !0;
|
|
3055
3055
|
break;
|
|
3056
3056
|
}
|
|
3057
|
-
Y && (
|
|
3057
|
+
Y && (W.stopPropagation(), W.preventDefault());
|
|
3058
3058
|
}
|
|
3059
|
-
I.addEventListener("keydown", (
|
|
3059
|
+
I.addEventListener("keydown", (W) => V(W), { signal: B });
|
|
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 B = n?.(k, u.signal) || void 0;
|
|
3066
|
+
q(o, u.signal, B), o.addEventListener(
|
|
3067
3067
|
"focusout",
|
|
3068
3068
|
() => {
|
|
3069
|
-
|
|
3069
|
+
k.setIsOpen(!1);
|
|
3070
3070
|
},
|
|
3071
3071
|
{ signal: u.signal }
|
|
3072
3072
|
);
|
|
3073
3073
|
}
|
|
3074
|
-
r && !s && (s = bi(
|
|
3074
|
+
r && !s && (s = bi(k, u.signal, v, { wrapNavigation: a }));
|
|
3075
3075
|
}
|
|
3076
|
-
return
|
|
3076
|
+
return k = {
|
|
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(C), O && (O = !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 && !k.isMultiSelect && (k.focusNav?.clear(), requestAnimationFrame(() => {
|
|
3100
|
+
k.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, B) {
|
|
3107
|
+
const z = l.toLowerCase(), V = Dt(I).toLowerCase(), W = z.length > 0 && !V.includes(z);
|
|
3108
|
+
return c.set(I, { callback: B, lastFiltered: W }), B(W), 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 B = I.toLowerCase();
|
|
3115
|
+
for (const [z, V] of c) {
|
|
3116
|
+
const W = Dt(z).toLowerCase(), Y = B.length > 0 && !W.includes(B);
|
|
3117
|
+
Y !== V.lastFiltered && (V.lastFiltered = Y, V.callback(Y));
|
|
3118
3118
|
}
|
|
3119
3119
|
N();
|
|
3120
3120
|
},
|
|
3121
3121
|
refilterOption(I) {
|
|
3122
|
-
const
|
|
3123
|
-
if (!
|
|
3124
|
-
const
|
|
3125
|
-
|
|
3122
|
+
const B = c.get(I);
|
|
3123
|
+
if (!B) return;
|
|
3124
|
+
const z = l.toLowerCase(), V = Dt(I).toLowerCase(), W = z.length > 0 && !V.includes(z);
|
|
3125
|
+
W !== B.lastFiltered && (B.lastFiltered = W, B.callback(W), N());
|
|
3126
3126
|
},
|
|
3127
|
-
registerSection(I,
|
|
3128
|
-
return d.set(I, { callback:
|
|
3127
|
+
registerSection(I, B) {
|
|
3128
|
+
return d.set(I, { callback: B, 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 B = !!r;
|
|
3147
|
+
return r = I, o && u && (B ? (_(), j()) : s = bi(k, 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, B) {
|
|
3152
|
+
return b[I].add(B), I === "open" && i && B(!0), I === "loadingChange" && g && B(!0), () => {
|
|
3153
|
+
b[I].delete(B);
|
|
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(C), O = !1;
|
|
3158
3158
|
for (const I of Object.values(b))
|
|
3159
3159
|
I.clear();
|
|
3160
3160
|
}
|
|
3161
|
-
},
|
|
3161
|
+
}, k;
|
|
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: C
|
|
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
|
+
}, C && g <= 50 && (g++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (c = C.rects === !0 ? await s.getElementRects({
|
|
3521
3521
|
reference: e,
|
|
3522
3522
|
floating: t,
|
|
3523
3523
|
strategy: o
|
|
3524
|
-
}) :
|
|
3524
|
+
}) : C.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], C = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
3558
|
+
let O = C ? C[A] : 0;
|
|
3559
|
+
(!O || !await (s.isElement == null ? void 0 : s.isElement(C))) && (O = i.floating[A] || r.floating[g]);
|
|
3560
|
+
const P = N / 2 - x / 2, T = O / 2 - p[g] / 2 - 1, k = Be(u[v], T), _ = Be(u[y], T), q = k, j = O - p[g] - _, I = O / 2 - p[g] / 2 + P, B = rr(q, I, j), z = !l.arrow && de(o) != null && I !== B && r.reference[g] / 2 - (I < q ? k : _) - p[g] / 2 < 0, V = z ? I < q ? I - q : I - j : 0;
|
|
3561
3561
|
return {
|
|
3562
|
-
[f]: h[f] +
|
|
3562
|
+
[f]: h[f] + V,
|
|
3563
3563
|
data: {
|
|
3564
|
-
[f]:
|
|
3565
|
-
centerOffset: I -
|
|
3566
|
-
...
|
|
3567
|
-
alignmentOffset:
|
|
3564
|
+
[f]: B,
|
|
3565
|
+
centerOffset: I - B - V,
|
|
3566
|
+
...z && {
|
|
3567
|
+
alignmentOffset: V
|
|
3568
3568
|
}
|
|
3569
3569
|
},
|
|
3570
|
-
reset:
|
|
3570
|
+
reset: z
|
|
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
|
+
}], C = p[v + 1];
|
|
3609
|
+
if (C)
|
|
3610
3610
|
return {
|
|
3611
3611
|
data: {
|
|
3612
3612
|
index: v + 1,
|
|
3613
3613
|
overflows: x
|
|
3614
3614
|
},
|
|
3615
3615
|
reset: {
|
|
3616
|
-
placement:
|
|
3616
|
+
placement: C
|
|
3617
3617
|
}
|
|
3618
3618
|
};
|
|
3619
|
-
const
|
|
3620
|
-
const _ = de(
|
|
3621
|
-
return [
|
|
3619
|
+
const O = x.map((k) => {
|
|
3620
|
+
const _ = de(k.placement);
|
|
3621
|
+
return [k.placement, _ && d ? (
|
|
3622
3622
|
// Check along the mainAxis and main crossAxis side.
|
|
3623
|
-
|
|
3623
|
+
k.overflows.slice(0, 2).reduce((q, j) => q + j, 0)
|
|
3624
3624
|
) : (
|
|
3625
3625
|
// Check only the mainAxis.
|
|
3626
|
-
|
|
3627
|
-
),
|
|
3628
|
-
}).sort((
|
|
3626
|
+
k.overflows[0]
|
|
3627
|
+
), k.overflows];
|
|
3628
|
+
}).sort((k, _) => k[1] - _[1]), T = ((o = O.filter((k) => k[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(k[0]) ? 2 : 3
|
|
3633
|
+
).every((_) => _ <= 0))[0]) == null ? void 0 : o[0]) || O[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)), C = g !== "none";
|
|
3670
|
+
!h && C && x.push(...mm(i, p, g, N));
|
|
3671
|
+
const O = [i, ...x], P = await l.detectOverflow(t, b), T = [];
|
|
3672
|
+
let k = ((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 (k = [...k, {
|
|
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, B = O[I];
|
|
3683
|
+
if (B && (!(u === "alignment" ? y !== Ce(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3684
3684
|
// overflows the main axis.
|
|
3685
|
-
|
|
3685
|
+
k.every((W) => Ce(W.placement) === y ? W.overflows[0] > 0 : !0)))
|
|
3686
3686
|
return {
|
|
3687
3687
|
data: {
|
|
3688
3688
|
index: I,
|
|
3689
|
-
overflows:
|
|
3689
|
+
overflows: k
|
|
3690
3690
|
},
|
|
3691
3691
|
reset: {
|
|
3692
|
-
placement:
|
|
3692
|
+
placement: B
|
|
3693
3693
|
}
|
|
3694
3694
|
};
|
|
3695
|
-
let
|
|
3696
|
-
if (!
|
|
3695
|
+
let z = (q = k.filter((V) => V.overflows[0] <= 0).sort((V, W) => V.overflows[1] - W.overflows[1])[0]) == null ? void 0 : q.placement;
|
|
3696
|
+
if (!z)
|
|
3697
3697
|
switch (f) {
|
|
3698
3698
|
case "bestFit": {
|
|
3699
3699
|
var j;
|
|
3700
|
-
const
|
|
3701
|
-
if (
|
|
3702
|
-
const Y = Ce(
|
|
3700
|
+
const V = (j = k.filter((W) => {
|
|
3701
|
+
if (C) {
|
|
3702
|
+
const Y = Ce(W.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((W) => [W.placement, W.overflows.filter((Y) => Y > 0).reduce((Y, ae) => Y + ae, 0)]).sort((W, Y) => W[1] - Y[1])[0]) == null ? void 0 : j[0];
|
|
3709
|
+
V && (z = V);
|
|
3710
3710
|
break;
|
|
3711
3711
|
}
|
|
3712
3712
|
case "initialPlacement":
|
|
3713
|
-
|
|
3713
|
+
z = i;
|
|
3714
3714
|
break;
|
|
3715
3715
|
}
|
|
3716
|
-
if (o !==
|
|
3716
|
+
if (o !== z)
|
|
3717
3717
|
return {
|
|
3718
3718
|
reset: {
|
|
3719
|
-
placement:
|
|
3719
|
+
placement: z
|
|
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), C = !t.middlewareData.shift;
|
|
3855
|
+
let O = N, P = x;
|
|
3856
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (P = A), (a = t.middlewareData.shift) != null && a.enabled.y && (O = y), C && !h) {
|
|
3857
|
+
const k = le(d.left, 0), _ = le(d.right, 0), q = le(d.top, 0), j = le(d.bottom, 0);
|
|
3858
|
+
f ? P = g - 2 * (k !== 0 || _ !== 0 ? k + _ : le(d.left, d.right)) : O = 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: O
|
|
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(C) {
|
|
4302
|
+
const O = C[0].intersectionRatio;
|
|
4303
|
+
if (O !== l) {
|
|
4304
4304
|
if (!N)
|
|
4305
4305
|
return s();
|
|
4306
|
-
|
|
4306
|
+
O ? s(!1, O) : a = setTimeout(() => {
|
|
4307
4307
|
s(!1, 1e-7);
|
|
4308
4308
|
}, 1e3);
|
|
4309
4309
|
}
|
|
4310
|
-
|
|
4310
|
+
O === 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 = w(() => {
|
|
4397
|
+
var O;
|
|
4398
|
+
return (O = vt(n.open)) != null ? O : !0;
|
|
4399
|
+
}), r = w(() => vt(n.middleware)), s = w(() => {
|
|
4400
|
+
var O;
|
|
4401
|
+
return (O = vt(n.placement)) != null ? O : "bottom";
|
|
4402
|
+
}), i = w(() => {
|
|
4403
|
+
var O;
|
|
4404
|
+
return (O = vt(n.strategy)) != null ? O : "absolute";
|
|
4405
|
+
}), l = w(() => {
|
|
4406
|
+
var O;
|
|
4407
|
+
return (O = vt(n.transform)) != null ? O : !0;
|
|
4408
|
+
}), c = w(() => ki(e.value)), d = w(() => ki(t.value)), u = R(0), h = R(0), f = R(i.value), g = R(s.value), p = Re({}), b = R(!1), v = w(() => {
|
|
4409
|
+
const O = {
|
|
4410
4410
|
position: f.value,
|
|
4411
4411
|
left: "0",
|
|
4412
4412
|
top: "0"
|
|
4413
4413
|
};
|
|
4414
4414
|
if (!d.value)
|
|
4415
|
-
return
|
|
4415
|
+
return O;
|
|
4416
4416
|
const P = Ti(d.value, u.value), T = Ti(d.value, h.value);
|
|
4417
4417
|
return l.value ? {
|
|
4418
|
-
...
|
|
4418
|
+
...O,
|
|
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 O = 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 = O !== !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 C() {
|
|
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, C, {
|
|
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
|
+
} = F(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 = w(() => e.placement || qt.placement), i = w(() => e.closeMode || qt.closeMode), l = w(() => e.ariaLinkMode || qt.ariaLinkMode), c = w(() => 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(w(() => e.delay), o), p = w(() => (h.value || e.forceOpen) && !!e.label), b = w(() => !!e.label && (p.value || i.value === "hide")), v = w(() => !p.value && i.value === "hide");
|
|
4635
|
+
return ln(w(() => 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 C = x?.$el || x;
|
|
4650
|
+
r.value = C, f(C);
|
|
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(w(() => ({
|
|
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
|
+
} = F(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
|
+
} = F(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(w(() => e.rows ?? bu.rows), r, w(() => 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
|
+
} = F(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
|
+
} = F(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
|
+
} = F(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,87 +5213,89 @@ 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
|
-
|
|
5216
|
+
charCounterMessage: A,
|
|
5217
|
+
helperId: N,
|
|
5218
|
+
errorId: x,
|
|
5219
|
+
labelId: C,
|
|
5220
|
+
theme: O,
|
|
5221
|
+
value: P,
|
|
5222
|
+
afterElement: T,
|
|
5223
|
+
input: k,
|
|
5224
|
+
isFocus: _,
|
|
5225
|
+
IconButton: q,
|
|
5226
|
+
ref: j
|
|
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;
|
|
5227
5234
|
return m("div", {
|
|
5228
|
-
ref:
|
|
5235
|
+
ref: j,
|
|
5229
5236
|
className: L(n, Hp({
|
|
5230
5237
|
"has-chips": !!t,
|
|
5231
5238
|
"has-error": !u && s,
|
|
5232
5239
|
"has-icon": !!l,
|
|
5233
5240
|
"has-input": !b,
|
|
5234
|
-
"has-input-clear": !!(a &&
|
|
5241
|
+
"has-input-clear": !!(a && B),
|
|
5235
5242
|
"has-label": !!h,
|
|
5236
5243
|
"has-placeholder": !!v,
|
|
5237
5244
|
"has-textarea": b,
|
|
5238
|
-
"has-value": !!
|
|
5245
|
+
"has-value": !!P,
|
|
5239
5246
|
"is-disabled": g,
|
|
5240
|
-
"is-focus":
|
|
5247
|
+
"is-focus": _ || r,
|
|
5241
5248
|
"is-valid": u,
|
|
5242
|
-
[`theme-${
|
|
5249
|
+
[`theme-${O}`]: !!O
|
|
5243
5250
|
}))
|
|
5244
5251
|
}, [(h || p) && m("div", {
|
|
5245
5252
|
className: ue("header")
|
|
5246
|
-
}, [
|
|
5253
|
+
}, [Ve({
|
|
5247
5254
|
...f,
|
|
5248
|
-
id:
|
|
5255
|
+
id: C,
|
|
5249
5256
|
htmlFor: c,
|
|
5250
5257
|
className: ue("label"),
|
|
5251
5258
|
isRequired: d,
|
|
5252
|
-
theme:
|
|
5253
|
-
children: h
|
|
5254
|
-
}),
|
|
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", {
|
|
5259
|
+
theme: O,
|
|
5260
|
+
children: [h, V]
|
|
5261
|
+
})]), m("div", {
|
|
5260
5262
|
className: ue("wrapper"),
|
|
5261
5263
|
ref: y
|
|
5262
5264
|
}, [l && ee({
|
|
5263
5265
|
className: ue("input-icon"),
|
|
5264
|
-
color:
|
|
5266
|
+
color: O === he.dark ? "light" : void 0,
|
|
5265
5267
|
icon: l,
|
|
5266
5268
|
size: H.xs
|
|
5267
5269
|
}), t ? m("div", {
|
|
5268
5270
|
className: ue("chips")
|
|
5269
|
-
}, [t,
|
|
5271
|
+
}, [t, k]) : m("div", {
|
|
5270
5272
|
className: ue("input-wrapper")
|
|
5271
|
-
}, [
|
|
5273
|
+
}, [k]), (u || s) && ee({
|
|
5272
5274
|
className: ue("input-validity"),
|
|
5273
|
-
color:
|
|
5275
|
+
color: O === he.dark ? "light" : void 0,
|
|
5274
5276
|
icon: u ? br : wt,
|
|
5275
5277
|
size: H.xxs
|
|
5276
|
-
}), a &&
|
|
5277
|
-
"aria-describedby":
|
|
5278
|
+
}), a && B && !g && m(q, S({
|
|
5279
|
+
"aria-describedby": C
|
|
5278
5280
|
}, a, {
|
|
5279
5281
|
className: ue("input-clear"),
|
|
5280
5282
|
icon: Nd,
|
|
5281
5283
|
emphasis: ve.low,
|
|
5282
5284
|
size: H.s,
|
|
5283
|
-
theme:
|
|
5285
|
+
theme: O,
|
|
5284
5286
|
type: "button"
|
|
5285
|
-
}), null),
|
|
5287
|
+
}), null), T && m("div", {
|
|
5286
5288
|
className: ue("after-element")
|
|
5287
|
-
}, [
|
|
5289
|
+
}, [T])]), s && o && Oe({
|
|
5288
5290
|
children: o,
|
|
5289
5291
|
className: ue("helper"),
|
|
5290
5292
|
kind: ie.error,
|
|
5291
|
-
theme:
|
|
5292
|
-
id:
|
|
5293
|
+
theme: O,
|
|
5294
|
+
id: x
|
|
5293
5295
|
}), i && Oe({
|
|
5294
5296
|
className: ue("helper"),
|
|
5295
|
-
theme:
|
|
5296
|
-
id:
|
|
5297
|
+
theme: O,
|
|
5298
|
+
id: N,
|
|
5297
5299
|
children: i
|
|
5298
5300
|
})]);
|
|
5299
5301
|
}, Wp = {
|
|
@@ -5310,10 +5312,10 @@ const Vp = (e) => {
|
|
|
5310
5312
|
}, Up = /* @__PURE__ */ E((e, {
|
|
5311
5313
|
emit: t
|
|
5312
5314
|
}) => {
|
|
5313
|
-
const n = D(), a = Wc("chips"), o = U(), r = M(() => e.class), s = re(), i =
|
|
5315
|
+
const n = D(), a = Wc("chips"), o = U(), r = M(() => e.class), s = re(), i = w(() => e.id || s), l = R(!1), {
|
|
5314
5316
|
isAnyDisabled: c,
|
|
5315
5317
|
disabledStateProps: d
|
|
5316
|
-
} = te(
|
|
5318
|
+
} = te(w(() => ({
|
|
5317
5319
|
...e,
|
|
5318
5320
|
...n
|
|
5319
5321
|
}))), u = R(null);
|
|
@@ -5323,7 +5325,7 @@ const Vp = (e) => {
|
|
|
5323
5325
|
}, {
|
|
5324
5326
|
flush: "sync"
|
|
5325
5327
|
});
|
|
5326
|
-
const h =
|
|
5328
|
+
const h = w(() => zp(e.helper, e.error, s, n["aria-describedby"] || void 0, e.label)), f = (y, A, N) => {
|
|
5327
5329
|
t("change", y, A, N);
|
|
5328
5330
|
}, g = (y, A, N) => {
|
|
5329
5331
|
t("input", y, A, N);
|
|
@@ -5339,20 +5341,20 @@ const Vp = (e) => {
|
|
|
5339
5341
|
helperId: A,
|
|
5340
5342
|
errorId: N,
|
|
5341
5343
|
describedById: x,
|
|
5342
|
-
labelId:
|
|
5344
|
+
labelId: C
|
|
5343
5345
|
} = h.value, {
|
|
5344
|
-
class:
|
|
5346
|
+
class: O,
|
|
5345
5347
|
className: P,
|
|
5346
5348
|
"aria-describedby": T,
|
|
5347
|
-
disabled:
|
|
5349
|
+
disabled: k,
|
|
5348
5350
|
isDisabled: _,
|
|
5349
5351
|
"aria-disabled": q,
|
|
5350
5352
|
ariaDisabled: j,
|
|
5351
5353
|
onChange: I,
|
|
5352
|
-
onInput:
|
|
5353
|
-
onFocus:
|
|
5354
|
-
onBlur:
|
|
5355
|
-
chips:
|
|
5354
|
+
onInput: B,
|
|
5355
|
+
onFocus: z,
|
|
5356
|
+
onBlur: V,
|
|
5357
|
+
chips: W,
|
|
5356
5358
|
...Y
|
|
5357
5359
|
} = n, ae = {
|
|
5358
5360
|
...Y,
|
|
@@ -5379,7 +5381,7 @@ const Vp = (e) => {
|
|
|
5379
5381
|
type: e.type || "text"
|
|
5380
5382
|
}), null);
|
|
5381
5383
|
return m(Vp, {
|
|
5382
|
-
chips: (a() ??
|
|
5384
|
+
chips: (a() ?? W) || void 0,
|
|
5383
5385
|
error: e.error,
|
|
5384
5386
|
forceFocusStyle: e.forceFocusStyle,
|
|
5385
5387
|
hasError: e.hasError,
|
|
@@ -5391,6 +5393,7 @@ const Vp = (e) => {
|
|
|
5391
5393
|
label: e.label,
|
|
5392
5394
|
labelProps: e.labelProps,
|
|
5393
5395
|
maxLength: e.maxLength,
|
|
5396
|
+
charCounterMessage: e.charCounterMessage,
|
|
5394
5397
|
multiline: e.multiline,
|
|
5395
5398
|
placeholder: e.placeholder,
|
|
5396
5399
|
value: e.value,
|
|
@@ -5399,7 +5402,7 @@ const Vp = (e) => {
|
|
|
5399
5402
|
id: i.value,
|
|
5400
5403
|
isAnyDisabled: c.value,
|
|
5401
5404
|
helperId: A,
|
|
5402
|
-
labelId:
|
|
5405
|
+
labelId: C,
|
|
5403
5406
|
errorId: N,
|
|
5404
5407
|
isFocus: l.value,
|
|
5405
5408
|
input: Z,
|
|
@@ -5414,7 +5417,7 @@ const Vp = (e) => {
|
|
|
5414
5417
|
}, {
|
|
5415
5418
|
name: "LumxTextField",
|
|
5416
5419
|
inheritAttrs: !1,
|
|
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"),
|
|
5420
|
+
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "charCounterMessage", "isDisabled", "disabled", "multiline", "placeholder", "aria-disabled", "id", "clearButtonProps", "name", "type", "minimumRows", "inputRef", "textFieldRef"),
|
|
5418
5421
|
emits: Wp
|
|
5419
5422
|
}), Gp = /* @__PURE__ */ E((e, {
|
|
5420
5423
|
emit: t,
|
|
@@ -5460,19 +5463,19 @@ const Vp = (e) => {
|
|
|
5460
5463
|
class: A,
|
|
5461
5464
|
...N
|
|
5462
5465
|
} = e, x = {
|
|
5463
|
-
onChange: (P, T,
|
|
5466
|
+
onChange: (P, T, k) => t("change", P, T, k),
|
|
5464
5467
|
onInput: (P) => t("change", P),
|
|
5465
5468
|
onFocus: (P) => t("focus", P),
|
|
5466
5469
|
onBlur: (P) => t("blur", P),
|
|
5467
5470
|
onClear: (P) => t("clear", P)
|
|
5468
5471
|
}, {
|
|
5469
|
-
ariaDisabled:
|
|
5470
|
-
...
|
|
5472
|
+
ariaDisabled: C,
|
|
5473
|
+
...O
|
|
5471
5474
|
} = N;
|
|
5472
5475
|
return Sp({
|
|
5473
5476
|
...n,
|
|
5474
|
-
...
|
|
5475
|
-
"aria-disabled":
|
|
5477
|
+
...O,
|
|
5478
|
+
"aria-disabled": C ?? n.ariaDisabled,
|
|
5476
5479
|
...x,
|
|
5477
5480
|
listboxId: o,
|
|
5478
5481
|
isOpen: l.value && (!!u.value?.optionsLength || h.value),
|
|
@@ -5494,7 +5497,7 @@ const Vp = (e) => {
|
|
|
5494
5497
|
}, {
|
|
5495
5498
|
name: "LumxComboboxInput",
|
|
5496
5499
|
inheritAttrs: !1,
|
|
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"),
|
|
5500
|
+
props: $()("class", "theme", "value", "error", "forceFocusStyle", "hasError", "afterElement", "helper", "icon", "isRequired", "isValid", "label", "labelProps", "maxLength", "charCounterMessage", "isDisabled", "disabled", "aria-disabled", "multiline", "placeholder", "id", "clearButtonProps", "name", "type", "minimumRows", "inputRef", "textFieldRef", "toggleButtonProps", "onSelect", "filter", "openOnFocus", "selectionMode"),
|
|
5498
5501
|
emits: {
|
|
5499
5502
|
select: (e) => !!e,
|
|
5500
5503
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -5508,7 +5511,7 @@ const Vp = (e) => {
|
|
|
5508
5511
|
}
|
|
5509
5512
|
}), Kp = "List", Nu = "lumx-list", {
|
|
5510
5513
|
block: Xp
|
|
5511
|
-
} =
|
|
5514
|
+
} = F(Nu), Yp = {}, pt = (e) => {
|
|
5512
5515
|
const {
|
|
5513
5516
|
children: t,
|
|
5514
5517
|
className: n,
|
|
@@ -5596,7 +5599,7 @@ const ng = /* @__PURE__ */ E((e, {
|
|
|
5596
5599
|
}), ag = "ListItem", xu = "lumx-list-item", {
|
|
5597
5600
|
block: og,
|
|
5598
5601
|
element: jt
|
|
5599
|
-
} =
|
|
5602
|
+
} = F(xu), wu = {
|
|
5600
5603
|
size: H.regular
|
|
5601
5604
|
}, tt = (e) => {
|
|
5602
5605
|
const {
|
|
@@ -5671,7 +5674,7 @@ function rg(e) {
|
|
|
5671
5674
|
const sg = "lumx-combobox-option", {
|
|
5672
5675
|
block: ig,
|
|
5673
5676
|
element: Ii
|
|
5674
|
-
} =
|
|
5677
|
+
} = F(sg), lg = (e, {
|
|
5675
5678
|
Tooltip: t
|
|
5676
5679
|
} = {}) => {
|
|
5677
5680
|
const {
|
|
@@ -5707,7 +5710,7 @@ const sg = "lumx-combobox-option", {
|
|
|
5707
5710
|
"aria-disabled": d ? "true" : void 0,
|
|
5708
5711
|
role: A,
|
|
5709
5712
|
children: o
|
|
5710
|
-
}),
|
|
5713
|
+
}), C = t && b && !l ? m(t, b, rg(x) ? x : {
|
|
5711
5714
|
default: () => [x]
|
|
5712
5715
|
}) : x;
|
|
5713
5716
|
return tt({
|
|
@@ -5719,7 +5722,7 @@ const sg = "lumx-combobox-option", {
|
|
|
5719
5722
|
before: n,
|
|
5720
5723
|
after: a,
|
|
5721
5724
|
role: N,
|
|
5722
|
-
children: m(ne, null, [
|
|
5725
|
+
children: m(ne, null, [C, s && m("p", S({
|
|
5723
5726
|
id: i
|
|
5724
5727
|
}, zc({
|
|
5725
5728
|
className: Ii("description"),
|
|
@@ -5851,7 +5854,7 @@ function pg(e) {
|
|
|
5851
5854
|
const gg = "lumx-combobox-option-more-info", {
|
|
5852
5855
|
block: vg,
|
|
5853
5856
|
element: bg
|
|
5854
|
-
} =
|
|
5857
|
+
} = F(gg), yg = (e, {
|
|
5855
5858
|
IconButton: t,
|
|
5856
5859
|
Popover: n
|
|
5857
5860
|
}) => {
|
|
@@ -5914,7 +5917,7 @@ function Pg(e) {
|
|
|
5914
5917
|
const xg = "lumx-popover", {
|
|
5915
5918
|
block: wg,
|
|
5916
5919
|
element: Cg
|
|
5917
|
-
} =
|
|
5920
|
+
} = F(xg), Wt = {
|
|
5918
5921
|
closeMode: "unmount",
|
|
5919
5922
|
elevation: 3,
|
|
5920
5923
|
placement: Ag.AUTO,
|
|
@@ -5945,8 +5948,8 @@ const xg = "lumx-popover", {
|
|
|
5945
5948
|
unmountSentinel: N,
|
|
5946
5949
|
// Forwarded props
|
|
5947
5950
|
...x
|
|
5948
|
-
} = e,
|
|
5949
|
-
return
|
|
5951
|
+
} = e, C = !d && i === "hide", O = d || i === "hide", P = o, T = Math.min(l || 0, 5);
|
|
5952
|
+
return O ? m(t, {
|
|
5950
5953
|
enabled: v
|
|
5951
5954
|
}, {
|
|
5952
5955
|
default: () => [m(P, S(x, {
|
|
@@ -5955,20 +5958,20 @@ const xg = "lumx-popover", {
|
|
|
5955
5958
|
[`theme-${g}`]: !!g,
|
|
5956
5959
|
[`elevation-${T}`]: !!T,
|
|
5957
5960
|
[`position-${u}`]: !!u,
|
|
5958
|
-
"is-hidden": !!
|
|
5961
|
+
"is-hidden": !!C
|
|
5959
5962
|
})),
|
|
5960
|
-
hidden:
|
|
5961
|
-
style:
|
|
5963
|
+
hidden: C || void 0,
|
|
5964
|
+
style: C ? void 0 : h,
|
|
5962
5965
|
"data-popper-placement": u
|
|
5963
5966
|
}), {
|
|
5964
5967
|
default: () => [N, m(n, {
|
|
5965
|
-
callback: !
|
|
5968
|
+
callback: !C && y,
|
|
5966
5969
|
childrenRefs: A
|
|
5967
5970
|
}, {
|
|
5968
5971
|
default: () => [c && m("div", {
|
|
5969
5972
|
ref: b,
|
|
5970
5973
|
className: Cg("arrow"),
|
|
5971
|
-
style:
|
|
5974
|
+
style: C ? void 0 : f
|
|
5972
5975
|
}, [m("svg", {
|
|
5973
5976
|
viewBox: "0 0 14 14",
|
|
5974
5977
|
"aria-hidden": !0
|
|
@@ -6012,17 +6015,17 @@ function Ig(e) {
|
|
|
6012
6015
|
boundary: u,
|
|
6013
6016
|
parsedPlacement: h,
|
|
6014
6017
|
arrowElement: f
|
|
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),
|
|
6016
|
-
return N.push(lu({ mainAxis: x, crossAxis:
|
|
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), C = t?.along ?? 0;
|
|
6019
|
+
return N.push(lu({ mainAxis: x, crossAxis: C })), h.isAuto ? N.push(
|
|
6017
6020
|
Jm({ ...u ? { boundary: u } : {}, alignment: h.autoAlignment })
|
|
6018
6021
|
) : (N.push(ep(u ? { boundary: u } : {})), N.push(Qm(u ? { boundary: u } : {}))), (a || o || g || p || b || v || y || A) && N.push(
|
|
6019
6022
|
tp({
|
|
6020
6023
|
...u ? { boundary: u } : {},
|
|
6021
|
-
apply({ availableHeight: P, rects: T, elements:
|
|
6024
|
+
apply({ availableHeight: P, rects: T, elements: k }) {
|
|
6022
6025
|
const _ = `${T.reference.width}px`;
|
|
6023
|
-
|
|
6026
|
+
k.floating.style.width = g || (a === "width" ? _ : ""), k.floating.style.minWidth = _g(p, a === "minWidth" ? _ : ""), k.floating.style.maxWidth = Li(b, a === "maxWidth" ? _ : ""), k.floating.style.height = v || "", k.floating.style.minHeight = y || "";
|
|
6024
6027
|
const q = `${Math.max(0, P - qa)}px`;
|
|
6025
|
-
|
|
6028
|
+
k.floating.style.maxHeight = Li(
|
|
6026
6029
|
A,
|
|
6027
6030
|
o ? q : ""
|
|
6028
6031
|
);
|
|
@@ -6041,7 +6044,7 @@ function Eg(e) {
|
|
|
6041
6044
|
return e.isAuto ? void 0 : e.floatingPlacement;
|
|
6042
6045
|
}
|
|
6043
6046
|
function $g(e) {
|
|
6044
|
-
const t = R(), n = R(), a =
|
|
6047
|
+
const t = R(), n = R(), a = w(() => kg(e.placement?.value)), o = w(() => Tg(e.fitToAnchorWidth?.value)), r = w(
|
|
6045
6048
|
() => Ig({
|
|
6046
6049
|
offset: e.offset?.value,
|
|
6047
6050
|
hasArrow: e.hasArrow?.value,
|
|
@@ -6057,7 +6060,7 @@ function $g(e) {
|
|
|
6057
6060
|
parsedPlacement: a.value,
|
|
6058
6061
|
arrowElement: n.value
|
|
6059
6062
|
})
|
|
6060
|
-
), s =
|
|
6063
|
+
), s = w(() => Eg(a.value)), {
|
|
6061
6064
|
floatingStyles: i,
|
|
6062
6065
|
placement: l,
|
|
6063
6066
|
isPositioned: c,
|
|
@@ -6066,9 +6069,9 @@ function $g(e) {
|
|
|
6066
6069
|
placement: s,
|
|
6067
6070
|
whileElementsMounted: iu,
|
|
6068
6071
|
middleware: r
|
|
6069
|
-
}), u =
|
|
6072
|
+
}), u = w(
|
|
6070
6073
|
() => l.value ?? e.placement?.value
|
|
6071
|
-
), h =
|
|
6074
|
+
), h = w(() => Lg(d.value?.arrow)), f = w(() => ({
|
|
6072
6075
|
...e.style?.value || {},
|
|
6073
6076
|
...i.value,
|
|
6074
6077
|
zIndex: e.zIndex?.value
|
|
@@ -6095,7 +6098,7 @@ const Rg = {
|
|
|
6095
6098
|
slots: n,
|
|
6096
6099
|
attrs: a
|
|
6097
6100
|
}) => {
|
|
6098
|
-
const o = M(() => e.class), r =
|
|
6101
|
+
const o = M(() => e.class), r = w(() => xt(e.anchorRef)), s = Q(e, "focusElement"), {
|
|
6099
6102
|
styles: i,
|
|
6100
6103
|
isPositioned: l,
|
|
6101
6104
|
position: c,
|
|
@@ -6103,7 +6106,7 @@ const Rg = {
|
|
|
6103
6106
|
arrowRef: u
|
|
6104
6107
|
} = $g({
|
|
6105
6108
|
anchorRef: r,
|
|
6106
|
-
boundaryRef:
|
|
6109
|
+
boundaryRef: w(() => xt(e.boundaryRef)),
|
|
6107
6110
|
offset: Q(e, "offset"),
|
|
6108
6111
|
hasArrow: Q(e, "hasArrow"),
|
|
6109
6112
|
fitToAnchorWidth: Q(e, "fitToAnchorWidth"),
|
|
@@ -6114,21 +6117,21 @@ const Rg = {
|
|
|
6114
6117
|
height: Q(e, "height"),
|
|
6115
6118
|
minHeight: Q(e, "minHeight"),
|
|
6116
6119
|
maxHeight: Q(e, "maxHeight"),
|
|
6117
|
-
placement:
|
|
6118
|
-
style:
|
|
6120
|
+
placement: w(() => e.placement || Wt.placement),
|
|
6121
|
+
style: w(() => {
|
|
6119
6122
|
}),
|
|
6120
|
-
zIndex:
|
|
6123
|
+
zIndex: w(() => e.zIndex ?? Ng)
|
|
6121
6124
|
});
|
|
6122
|
-
Or(
|
|
6125
|
+
Or(w(() => e.focusAnchorOnClose ?? !0), r, w(() => e.parentElement), d, w(() => !!e.isOpen));
|
|
6123
6126
|
const h = () => {
|
|
6124
6127
|
t("close");
|
|
6125
6128
|
};
|
|
6126
|
-
ln(
|
|
6127
|
-
const f =
|
|
6129
|
+
ln(w(() => h), w(() => !!(e.isOpen && e.closeOnEscape)));
|
|
6130
|
+
const f = w(() => !e.withFocusTrap && !!e.isOpen && l.value);
|
|
6128
6131
|
Mg(s, f);
|
|
6129
|
-
const g =
|
|
6132
|
+
const g = w(() => !e.withFocusTrap || !e.isOpen ? !1 : e.focusTrapZoneElement || d.value || !1);
|
|
6130
6133
|
Cr(g, s);
|
|
6131
|
-
const p =
|
|
6134
|
+
const p = w(() => [d, r]);
|
|
6132
6135
|
return () => Og({
|
|
6133
6136
|
...a,
|
|
6134
6137
|
as: e.as,
|
|
@@ -6164,7 +6167,7 @@ function Dg(e) {
|
|
|
6164
6167
|
const ku = /* @__PURE__ */ E((e, {
|
|
6165
6168
|
slots: t
|
|
6166
6169
|
}) => {
|
|
6167
|
-
const n = M(() => e.class), a = R(null), o =
|
|
6170
|
+
const n = M(() => e.class), a = R(null), o = w(() => a.value?.$el ?? void 0), r = R(!1), {
|
|
6168
6171
|
optionId: s
|
|
6169
6172
|
} = ug(), i = ye("activeDescendantChange", null), l = `${s}-more-info`;
|
|
6170
6173
|
function c(u) {
|
|
@@ -6229,7 +6232,7 @@ const ku = /* @__PURE__ */ E((e, {
|
|
|
6229
6232
|
}), Bg = "lumx-skeleton-typography", {
|
|
6230
6233
|
block: Fg,
|
|
6231
6234
|
element: qg
|
|
6232
|
-
} =
|
|
6235
|
+
} = F(Bg), ir = (e) => {
|
|
6233
6236
|
const {
|
|
6234
6237
|
className: t,
|
|
6235
6238
|
theme: n,
|
|
@@ -6310,7 +6313,7 @@ function Vg(e) {
|
|
|
6310
6313
|
const Wg = "lumx-combobox-popover", {
|
|
6311
6314
|
block: Ug,
|
|
6312
6315
|
element: Gg
|
|
6313
|
-
} =
|
|
6316
|
+
} = F(Wg), Kg = (e, {
|
|
6314
6317
|
Popover: t,
|
|
6315
6318
|
FlexBox: n
|
|
6316
6319
|
}) => {
|
|
@@ -6363,7 +6366,7 @@ function Xg() {
|
|
|
6363
6366
|
var Yg = Xg();
|
|
6364
6367
|
const qr = /* @__PURE__ */ Te(Yg), Zg = "lumx-flex-box", {
|
|
6365
6368
|
block: Jg
|
|
6366
|
-
} =
|
|
6369
|
+
} = F(Zg);
|
|
6367
6370
|
function Qg(e) {
|
|
6368
6371
|
const {
|
|
6369
6372
|
className: t,
|
|
@@ -6420,7 +6423,7 @@ const yn = /* @__PURE__ */ E((e, {
|
|
|
6420
6423
|
} = Pe(), {
|
|
6421
6424
|
isOpen: o,
|
|
6422
6425
|
setIsOpen: r
|
|
6423
|
-
} = Br(), s =
|
|
6426
|
+
} = Br(), s = w(() => a.value ?? void 0);
|
|
6424
6427
|
return () => {
|
|
6425
6428
|
const {
|
|
6426
6429
|
class: i,
|
|
@@ -6541,7 +6544,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6541
6544
|
isAnyDisabled: r,
|
|
6542
6545
|
disabledStateProps: s,
|
|
6543
6546
|
otherProps: i
|
|
6544
|
-
} = te(
|
|
6547
|
+
} = te(w(() => ({
|
|
6545
6548
|
...e,
|
|
6546
6549
|
...a
|
|
6547
6550
|
}))), l = (c) => {
|
|
@@ -6575,7 +6578,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6575
6578
|
isAnyDisabled: s,
|
|
6576
6579
|
disabledStateProps: i,
|
|
6577
6580
|
otherProps: l
|
|
6578
|
-
} = te(
|
|
6581
|
+
} = te(w(() => ({
|
|
6579
6582
|
...e,
|
|
6580
6583
|
...a
|
|
6581
6584
|
}))), c = (d) => {
|
|
@@ -6607,7 +6610,7 @@ const Iu = /* @__PURE__ */ E((e) => {
|
|
|
6607
6610
|
}), dv = "ListSection", Lu = "lumx-list-section", {
|
|
6608
6611
|
block: fv,
|
|
6609
6612
|
element: $i
|
|
6610
|
-
} =
|
|
6613
|
+
} = F(Lu), hv = {}, Sn = (e) => {
|
|
6611
6614
|
const {
|
|
6612
6615
|
children: t,
|
|
6613
6616
|
className: n,
|
|
@@ -6698,7 +6701,7 @@ function bt(e) {
|
|
|
6698
6701
|
}
|
|
6699
6702
|
const pv = "lumx-combobox-state", {
|
|
6700
6703
|
block: gv
|
|
6701
|
-
} =
|
|
6704
|
+
} = F(pv), vv = (e, {
|
|
6702
6705
|
GenericBlock: t,
|
|
6703
6706
|
Text: n
|
|
6704
6707
|
}) => {
|
|
@@ -6771,7 +6774,7 @@ function Ha(e) {
|
|
|
6771
6774
|
const Av = "lumx-generic-block", {
|
|
6772
6775
|
block: Sv,
|
|
6773
6776
|
element: za
|
|
6774
|
-
} =
|
|
6777
|
+
} = F(Av), Mi = {
|
|
6775
6778
|
gap: H.big,
|
|
6776
6779
|
orientation: ct.horizontal
|
|
6777
6780
|
}, Nv = (e) => {
|
|
@@ -7495,7 +7498,7 @@ const ub = /* @__PURE__ */ Te(cb), NN = ub(H, ["tiny", "regular", "medium", "big
|
|
|
7495
7498
|
Divider: Iu
|
|
7496
7499
|
}, fb = "Badge", Bu = "lumx-badge", {
|
|
7497
7500
|
block: hb
|
|
7498
|
-
} =
|
|
7501
|
+
} = F(Bu), Fu = {
|
|
7499
7502
|
color: G.primary
|
|
7500
7503
|
}, On = (e) => {
|
|
7501
7504
|
const {
|
|
@@ -7532,7 +7535,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7532
7535
|
}), mb = "lumx-badge-wrapper", {
|
|
7533
7536
|
block: pb,
|
|
7534
7537
|
element: gb
|
|
7535
|
-
} =
|
|
7538
|
+
} = F(mb), vb = (e) => {
|
|
7536
7539
|
const {
|
|
7537
7540
|
badge: t,
|
|
7538
7541
|
children: n,
|
|
@@ -7563,7 +7566,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7563
7566
|
}), qu = "intermediate", bb = "lumx-checkbox", {
|
|
7564
7567
|
block: yb,
|
|
7565
7568
|
element: Ie
|
|
7566
|
-
} =
|
|
7569
|
+
} = F(bb), Ab = (e) => {
|
|
7567
7570
|
const {
|
|
7568
7571
|
checked: t,
|
|
7569
7572
|
className: n,
|
|
@@ -7635,14 +7638,14 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7635
7638
|
}, wN = /* @__PURE__ */ E((e, {
|
|
7636
7639
|
emit: t
|
|
7637
7640
|
}) => {
|
|
7638
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
7641
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = w(() => e.id || r), i = R(null), {
|
|
7639
7642
|
isAnyDisabled: l,
|
|
7640
7643
|
disabledStateProps: c,
|
|
7641
7644
|
otherProps: d
|
|
7642
|
-
} = te(
|
|
7645
|
+
} = te(w(() => ({
|
|
7643
7646
|
...e,
|
|
7644
7647
|
...n
|
|
7645
|
-
}))), u =
|
|
7648
|
+
}))), u = w(() => e.isChecked === qu);
|
|
7646
7649
|
X(u, (f) => {
|
|
7647
7650
|
i.value && (i.value.indeterminate = f);
|
|
7648
7651
|
}, {
|
|
@@ -7674,7 +7677,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7674
7677
|
}), kt = "lumx-chip", {
|
|
7675
7678
|
block: Nb,
|
|
7676
7679
|
element: Fo
|
|
7677
|
-
} =
|
|
7680
|
+
} = F(kt), Pb = {
|
|
7678
7681
|
size: H.m
|
|
7679
7682
|
}, xb = (e) => {
|
|
7680
7683
|
const {
|
|
@@ -7699,14 +7702,14 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7699
7702
|
handleKeyDown: A,
|
|
7700
7703
|
disabledStateProps: N,
|
|
7701
7704
|
isAnyDisabled: x,
|
|
7702
|
-
keyDownProp:
|
|
7703
|
-
tabIndexProp:
|
|
7705
|
+
keyDownProp: C = "onKeyDown",
|
|
7706
|
+
tabIndexProp: O = "tabIndex",
|
|
7704
7707
|
...P
|
|
7705
|
-
} = e, T = g && !y,
|
|
7708
|
+
} = e, T = g && !y, k = !!g || !!y || s, _ = r || (b === he.light ? G.dark : G.light), q = (I) => {
|
|
7706
7709
|
A?.(I), g && u && Hd(u)(I);
|
|
7707
7710
|
}, j = {
|
|
7708
|
-
[
|
|
7709
|
-
[
|
|
7711
|
+
[C]: q,
|
|
7712
|
+
[O]: k && !N.disabled ? 0 : void 0
|
|
7710
7713
|
};
|
|
7711
7714
|
return (
|
|
7712
7715
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
@@ -7716,7 +7719,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7716
7719
|
href: N.disabled ? void 0 : y,
|
|
7717
7720
|
ref: v,
|
|
7718
7721
|
className: L(o, Nb({
|
|
7719
|
-
"is-clickable":
|
|
7722
|
+
"is-clickable": k,
|
|
7720
7723
|
[`color-${_}`]: !!_,
|
|
7721
7724
|
"is-disabled": x,
|
|
7722
7725
|
"has-after": !!t,
|
|
@@ -7726,7 +7729,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7726
7729
|
[`size-${p}`]: !!p,
|
|
7727
7730
|
"is-unselected": !l
|
|
7728
7731
|
})),
|
|
7729
|
-
"aria-disabled":
|
|
7732
|
+
"aria-disabled": k && x || void 0,
|
|
7730
7733
|
onClick: g ? u : void 0
|
|
7731
7734
|
}), [n && // eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-static-element-interactions
|
|
7732
7735
|
m("div", {
|
|
@@ -7756,7 +7759,7 @@ const PN = /* @__PURE__ */ E((e, {
|
|
|
7756
7759
|
isAnyDisabled: c,
|
|
7757
7760
|
disabledStateProps: d,
|
|
7758
7761
|
otherProps: u
|
|
7759
|
-
} = te(
|
|
7762
|
+
} = te(w(() => ({
|
|
7760
7763
|
...e,
|
|
7761
7764
|
...a
|
|
7762
7765
|
}))), h = (b) => {
|
|
@@ -7822,7 +7825,7 @@ function Tb(e) {
|
|
|
7822
7825
|
const _b = "lumx-selection-chip-group", {
|
|
7823
7826
|
block: Ib,
|
|
7824
7827
|
element: Lb
|
|
7825
|
-
} =
|
|
7828
|
+
} = F(_b), Eb = (e, {
|
|
7826
7829
|
Chip: t,
|
|
7827
7830
|
ChipGroup: n,
|
|
7828
7831
|
Icon: a,
|
|
@@ -7851,10 +7854,10 @@ const _b = "lumx-selection-chip-group", {
|
|
|
7851
7854
|
"aria-orientation": "horizontal",
|
|
7852
7855
|
className: Ib([g])
|
|
7853
7856
|
}), Tb(s = i.map((y) => {
|
|
7854
|
-
const A = c && se(c, y) || se(l, y), N = se(l, y), x = p?.(y) || {},
|
|
7857
|
+
const A = c && se(c, y) || se(l, y), N = se(l, y), x = p?.(y) || {}, C = x.isDisabled || h, O = typeof x.children == "string" ? x.children : A, P = u ? `${O} - ${u}` : O;
|
|
7855
7858
|
return m(r, {
|
|
7856
7859
|
key: N,
|
|
7857
|
-
label:
|
|
7860
|
+
label: C ? void 0 : P
|
|
7858
7861
|
}, {
|
|
7859
7862
|
default: () => [m(t, S({
|
|
7860
7863
|
"aria-label": P
|
|
@@ -7869,7 +7872,7 @@ const _b = "lumx-selection-chip-group", {
|
|
|
7869
7872
|
role: "option",
|
|
7870
7873
|
"aria-selected": "true",
|
|
7871
7874
|
theme: f,
|
|
7872
|
-
isDisabled:
|
|
7875
|
+
isDisabled: C
|
|
7873
7876
|
}), {
|
|
7874
7877
|
default: () => [m(o, {
|
|
7875
7878
|
as: "span",
|
|
@@ -7966,7 +7969,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
7966
7969
|
});
|
|
7967
7970
|
c(d);
|
|
7968
7971
|
});
|
|
7969
|
-
const l =
|
|
7972
|
+
const l = w(i);
|
|
7970
7973
|
return ju({
|
|
7971
7974
|
containerRef: l,
|
|
7972
7975
|
itemSelector: `.${kt}`,
|
|
@@ -8021,7 +8024,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8021
8024
|
), Bb = "lumx-lightbox", {
|
|
8022
8025
|
block: Fb,
|
|
8023
8026
|
element: El
|
|
8024
|
-
} =
|
|
8027
|
+
} = F(Bb), qb = (e) => {
|
|
8025
8028
|
const {
|
|
8026
8029
|
"aria-labelledby": t,
|
|
8027
8030
|
ariaLabelledBy: n = t,
|
|
@@ -8044,8 +8047,8 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8044
8047
|
ThemeProvider: A,
|
|
8045
8048
|
ClickAwayProvider: N,
|
|
8046
8049
|
childrenRef: x,
|
|
8047
|
-
clickAwayRefs:
|
|
8048
|
-
closeButtonRef:
|
|
8050
|
+
clickAwayRefs: C,
|
|
8051
|
+
closeButtonRef: O,
|
|
8049
8052
|
IconButton: P,
|
|
8050
8053
|
...T
|
|
8051
8054
|
} = e;
|
|
@@ -8069,7 +8072,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8069
8072
|
}), [i && m("div", {
|
|
8070
8073
|
className: El("close")
|
|
8071
8074
|
}, [m(P, S(i, {
|
|
8072
|
-
ref:
|
|
8075
|
+
ref: O,
|
|
8073
8076
|
emphasis: "low",
|
|
8074
8077
|
hasBackground: !0,
|
|
8075
8078
|
icon: yr,
|
|
@@ -8084,7 +8087,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8084
8087
|
}, {
|
|
8085
8088
|
default: () => [m(N, {
|
|
8086
8089
|
callback: !h && c,
|
|
8087
|
-
childrenRefs:
|
|
8090
|
+
childrenRefs: C
|
|
8088
8091
|
}, {
|
|
8089
8092
|
default: () => [m("div", {
|
|
8090
8093
|
ref: x,
|
|
@@ -8103,14 +8106,14 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8103
8106
|
attrs: a
|
|
8104
8107
|
}) => {
|
|
8105
8108
|
const o = M(() => e.class), r = R(null), s = R(null), i = () => t("close");
|
|
8106
|
-
ln(i,
|
|
8107
|
-
const l =
|
|
8108
|
-
Cr(l,
|
|
8109
|
+
ln(i, w(() => !!(e.isOpen && !e.preventAutoClose)));
|
|
8110
|
+
const l = w(() => e.isOpen && r.value || !1);
|
|
8111
|
+
Cr(l, w(() => {
|
|
8109
8112
|
const h = s.value?.$el ?? s.value;
|
|
8110
8113
|
return e.focusElement || h || r.value;
|
|
8111
|
-
})), Or(
|
|
8112
|
-
}),
|
|
8113
|
-
const c = Dc(
|
|
8114
|
+
})), Or(w(() => !0), w(() => {
|
|
8115
|
+
}), w(() => e.parentElement), r, w(() => !!e.isOpen)), Bc(w(() => !!e.isOpen));
|
|
8116
|
+
const c = Dc(w(() => !!e.isOpen), ac), d = w(() => e.isOpen || c.value), u = w(() => [r]);
|
|
8114
8117
|
return () => d.value ? qb({
|
|
8115
8118
|
...a,
|
|
8116
8119
|
ClickAwayProvider: vr,
|
|
@@ -8137,7 +8140,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8137
8140
|
emits: jb
|
|
8138
8141
|
}), Hb = "lumx-divider", {
|
|
8139
8142
|
block: zb
|
|
8140
|
-
} =
|
|
8143
|
+
} = F(Hb), Vb = (e) => {
|
|
8141
8144
|
const {
|
|
8142
8145
|
className: t,
|
|
8143
8146
|
theme: n,
|
|
@@ -8164,7 +8167,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8164
8167
|
props: $()("class", "theme")
|
|
8165
8168
|
}), Wb = "lumx-drag-handle", {
|
|
8166
8169
|
block: Ub
|
|
8167
|
-
} =
|
|
8170
|
+
} = F(Wb), Gb = (e) => {
|
|
8168
8171
|
const {
|
|
8169
8172
|
className: t,
|
|
8170
8173
|
theme: n,
|
|
@@ -8197,7 +8200,7 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8197
8200
|
}), Kb = "lumx-expansion-panel", {
|
|
8198
8201
|
block: Xb,
|
|
8199
8202
|
element: we
|
|
8200
|
-
} =
|
|
8203
|
+
} = F(Kb), Yb = {
|
|
8201
8204
|
closeMode: "unmount"
|
|
8202
8205
|
}, Zb = (e) => {
|
|
8203
8206
|
const {
|
|
@@ -8222,10 +8225,10 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8222
8225
|
IconButton: A,
|
|
8223
8226
|
footer: N,
|
|
8224
8227
|
closeMode: x,
|
|
8225
|
-
...
|
|
8226
|
-
} = e,
|
|
8228
|
+
...C
|
|
8229
|
+
} = e, O = (k) => {
|
|
8227
8230
|
const _ = !s;
|
|
8228
|
-
c && _ && c(
|
|
8231
|
+
c && _ && c(k), l && !_ && l(k), d && d(_, k);
|
|
8229
8232
|
}, P = u === he.dark ? G.light : G.dark, T = L(t, Xb({
|
|
8230
8233
|
"has-background": a,
|
|
8231
8234
|
"has-header": !Kt(f.children),
|
|
@@ -8237,11 +8240,11 @@ const Hu = (e) => (t) => K(t) && t.type === e, Rb = {
|
|
|
8237
8240
|
}));
|
|
8238
8241
|
return m("section", S({
|
|
8239
8242
|
ref: o
|
|
8240
|
-
},
|
|
8243
|
+
}, C, {
|
|
8241
8244
|
className: T
|
|
8242
8245
|
}), [m("header", {
|
|
8243
8246
|
className: we("header"),
|
|
8244
|
-
onClick:
|
|
8247
|
+
onClick: O
|
|
8245
8248
|
}, [p && m("div", {
|
|
8246
8249
|
className: we("header-drag")
|
|
8247
8250
|
}, [p]), m("div", S(f, {
|
|
@@ -8335,7 +8338,7 @@ function Qb(e) {
|
|
|
8335
8338
|
const ey = "lumx-flag", {
|
|
8336
8339
|
block: ty,
|
|
8337
8340
|
element: $l
|
|
8338
|
-
} =
|
|
8341
|
+
} = F(ey), ny = (e) => {
|
|
8339
8342
|
const {
|
|
8340
8343
|
children: t,
|
|
8341
8344
|
icon: n,
|
|
@@ -8516,7 +8519,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8516
8519
|
}, LN = /* @__PURE__ */ E((e, {
|
|
8517
8520
|
slots: t
|
|
8518
8521
|
}) => {
|
|
8519
|
-
const n = D(), a = xc(), o = M(() => e.class), r =
|
|
8522
|
+
const n = D(), a = xc(), o = M(() => e.class), r = w(() => {
|
|
8520
8523
|
const {
|
|
8521
8524
|
className: s,
|
|
8522
8525
|
...i
|
|
@@ -8568,7 +8571,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8568
8571
|
props: $()("htmlFor", "id", "isRequired", "typography", "theme", "class", "as")
|
|
8569
8572
|
}), Wu = "lumx-link", {
|
|
8570
8573
|
block: py
|
|
8571
|
-
} =
|
|
8574
|
+
} = F(Wu), gy = (e) => {
|
|
8572
8575
|
const {
|
|
8573
8576
|
children: t,
|
|
8574
8577
|
className: n,
|
|
@@ -8605,7 +8608,7 @@ const IN = /* @__PURE__ */ E((e, {
|
|
|
8605
8608
|
isAnyDisabled: r,
|
|
8606
8609
|
disabledStateProps: s,
|
|
8607
8610
|
otherProps: i
|
|
8608
|
-
} = te(
|
|
8611
|
+
} = te(w(() => ({
|
|
8609
8612
|
...e,
|
|
8610
8613
|
...a
|
|
8611
8614
|
}))), l = (c) => {
|
|
@@ -8638,7 +8641,7 @@ function jl(e) {
|
|
|
8638
8641
|
const yy = "lumx-link-preview", {
|
|
8639
8642
|
block: Ay,
|
|
8640
8643
|
element: We
|
|
8641
|
-
} =
|
|
8644
|
+
} = F(yy), Uu = {
|
|
8642
8645
|
size: H.regular,
|
|
8643
8646
|
titleHeading: "h2"
|
|
8644
8647
|
}, Sy = (e) => {
|
|
@@ -8733,7 +8736,7 @@ const yy = "lumx-link-preview", {
|
|
|
8733
8736
|
}), Ny = "lumx-menu-item", {
|
|
8734
8737
|
block: Py,
|
|
8735
8738
|
element: xy
|
|
8736
|
-
} =
|
|
8739
|
+
} = F(Ny), wy = (e) => {
|
|
8737
8740
|
const {
|
|
8738
8741
|
children: t,
|
|
8739
8742
|
className: n,
|
|
@@ -9150,7 +9153,7 @@ function qy(e) {
|
|
|
9150
9153
|
const jy = "lumx-menu-popover", {
|
|
9151
9154
|
block: Hy,
|
|
9152
9155
|
element: zy
|
|
9153
|
-
} =
|
|
9156
|
+
} = F(jy), Vy = (e, {
|
|
9154
9157
|
Popover: t,
|
|
9155
9158
|
FlexBox: n
|
|
9156
9159
|
}) => {
|
|
@@ -9287,7 +9290,7 @@ const jy = "lumx-menu-popover", {
|
|
|
9287
9290
|
}), Yy = "Message", Ku = "lumx-message", {
|
|
9288
9291
|
block: Zy,
|
|
9289
9292
|
element: Uo
|
|
9290
|
-
} =
|
|
9293
|
+
} = F(Ku), Jy = {
|
|
9291
9294
|
[ie.error]: {
|
|
9292
9295
|
color: G.red,
|
|
9293
9296
|
icon: hc
|
|
@@ -9393,7 +9396,7 @@ var tA = eA();
|
|
|
9393
9396
|
const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
9394
9397
|
block: oA,
|
|
9395
9398
|
element: Xo
|
|
9396
|
-
} =
|
|
9399
|
+
} = F(aA), rA = (e) => {
|
|
9397
9400
|
const {
|
|
9398
9401
|
className: t,
|
|
9399
9402
|
theme: n,
|
|
@@ -9467,7 +9470,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9467
9470
|
emit: t,
|
|
9468
9471
|
slots: n
|
|
9469
9472
|
}) => {
|
|
9470
|
-
const a = D(), o = M(() => e.class), r =
|
|
9473
|
+
const a = D(), o = M(() => e.class), r = w(() => e.label ?? e.ariaLabel ?? a["aria-label"]), s = () => t("close");
|
|
9471
9474
|
return () => {
|
|
9472
9475
|
const {
|
|
9473
9476
|
label: i,
|
|
@@ -9501,7 +9504,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9501
9504
|
}), uA = "lumx-progress-linear", {
|
|
9502
9505
|
block: dA,
|
|
9503
9506
|
element: Wl
|
|
9504
|
-
} =
|
|
9507
|
+
} = F(uA), fA = (e) => {
|
|
9505
9508
|
const {
|
|
9506
9509
|
className: t,
|
|
9507
9510
|
theme: n,
|
|
@@ -9532,7 +9535,7 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9532
9535
|
}), hA = "lumx-radio-button", {
|
|
9533
9536
|
block: mA,
|
|
9534
9537
|
element: Le
|
|
9535
|
-
} =
|
|
9538
|
+
} = F(hA), pA = (e) => {
|
|
9536
9539
|
const {
|
|
9537
9540
|
checked: t,
|
|
9538
9541
|
className: n,
|
|
@@ -9600,11 +9603,11 @@ const nA = /* @__PURE__ */ Te(tA), aA = "lumx-mosaic", {
|
|
|
9600
9603
|
}, HN = /* @__PURE__ */ E((e, {
|
|
9601
9604
|
emit: t
|
|
9602
9605
|
}) => {
|
|
9603
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
9606
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = w(() => e.id || r), {
|
|
9604
9607
|
isAnyDisabled: i,
|
|
9605
9608
|
disabledStateProps: l,
|
|
9606
9609
|
otherProps: c
|
|
9607
|
-
} = te(
|
|
9610
|
+
} = te(w(() => ({
|
|
9608
9611
|
...e,
|
|
9609
9612
|
...n
|
|
9610
9613
|
}))), d = (u, h, f) => {
|
|
@@ -9659,7 +9662,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9659
9662
|
props: $()("class")
|
|
9660
9663
|
}), yA = "lumx-skeleton-circle", {
|
|
9661
9664
|
block: AA
|
|
9662
|
-
} =
|
|
9665
|
+
} = F(yA), SA = (e) => {
|
|
9663
9666
|
const {
|
|
9664
9667
|
className: t,
|
|
9665
9668
|
size: n,
|
|
@@ -9684,7 +9687,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9684
9687
|
}, PA = "lumx-skeleton-rectangle", {
|
|
9685
9688
|
block: xA,
|
|
9686
9689
|
element: wA
|
|
9687
|
-
} =
|
|
9690
|
+
} = F(PA), CA = {
|
|
9688
9691
|
variant: NA.squared
|
|
9689
9692
|
}, OA = (e) => {
|
|
9690
9693
|
const {
|
|
@@ -9745,7 +9748,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9745
9748
|
}), kA = "lumx-switch", {
|
|
9746
9749
|
block: TA,
|
|
9747
9750
|
element: Ee
|
|
9748
|
-
} =
|
|
9751
|
+
} = F(kA), _A = {
|
|
9749
9752
|
position: "left"
|
|
9750
9753
|
}, IA = (e) => {
|
|
9751
9754
|
const {
|
|
@@ -9820,11 +9823,11 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9820
9823
|
emit: t,
|
|
9821
9824
|
slots: n
|
|
9822
9825
|
}) => {
|
|
9823
|
-
const a = D(), o = U(), r = M(() => e.class), s = re(), i =
|
|
9826
|
+
const a = D(), o = U(), r = M(() => e.class), s = re(), i = w(() => e.id || s), {
|
|
9824
9827
|
isAnyDisabled: l,
|
|
9825
9828
|
disabledStateProps: c,
|
|
9826
9829
|
otherProps: d
|
|
9827
|
-
} = te(
|
|
9830
|
+
} = te(w(() => ({
|
|
9828
9831
|
...e,
|
|
9829
9832
|
...a
|
|
9830
9833
|
}))), u = (h, f, g, p) => {
|
|
@@ -9856,7 +9859,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9856
9859
|
}, EA = "lumx-uploader", {
|
|
9857
9860
|
block: $A,
|
|
9858
9861
|
element: yt
|
|
9859
|
-
} =
|
|
9862
|
+
} = F(EA), Yo = {
|
|
9860
9863
|
aspectRatio: dt.horizontal,
|
|
9861
9864
|
size: H.xl,
|
|
9862
9865
|
variant: Yu.square
|
|
@@ -9916,11 +9919,11 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9916
9919
|
}, KN = /* @__PURE__ */ E((e, {
|
|
9917
9920
|
emit: t
|
|
9918
9921
|
}) => {
|
|
9919
|
-
const n = D(), a = U(), o = M(() => e.class), r = re(), s =
|
|
9922
|
+
const n = D(), a = U(), o = M(() => e.class), r = re(), s = w(() => e.fileInputProps?.id || r), i = R(!1), {
|
|
9920
9923
|
isAnyDisabled: l,
|
|
9921
9924
|
disabledStateProps: c,
|
|
9922
9925
|
otherProps: d
|
|
9923
|
-
} = te(
|
|
9926
|
+
} = te(w(() => ({
|
|
9924
9927
|
...e,
|
|
9925
9928
|
...n
|
|
9926
9929
|
}))), u = (f) => {
|
|
@@ -9984,7 +9987,7 @@ const zN = /* @__PURE__ */ E((e, {
|
|
|
9984
9987
|
}, Zu = "lumx-image-block", {
|
|
9985
9988
|
block: BA,
|
|
9986
9989
|
element: Ul
|
|
9987
|
-
} =
|
|
9990
|
+
} = F(Zu), Gl = {
|
|
9988
9991
|
captionPosition: DA.below,
|
|
9989
9992
|
align: Ar.left
|
|
9990
9993
|
}, FA = (e) => {
|
|
@@ -10163,7 +10166,7 @@ const qA = (e) => {
|
|
|
10163
10166
|
}), HA = "InlineList", Ju = "lumx-inline-list", {
|
|
10164
10167
|
block: zA,
|
|
10165
10168
|
element: Kl
|
|
10166
|
-
} =
|
|
10169
|
+
} = F(Ju), VA = {}, _n = (e) => {
|
|
10167
10170
|
const {
|
|
10168
10171
|
className: t,
|
|
10169
10172
|
color: n,
|
|
@@ -10213,7 +10216,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10213
10216
|
props: $()("color", "colorVariant", "typography", "wrap", "class")
|
|
10214
10217
|
}), Mt = "lumx-table", {
|
|
10215
10218
|
block: WA
|
|
10216
|
-
} =
|
|
10219
|
+
} = F(Mt), UA = (e) => {
|
|
10217
10220
|
const {
|
|
10218
10221
|
children: t,
|
|
10219
10222
|
className: n,
|
|
@@ -10277,7 +10280,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10277
10280
|
head: "head"
|
|
10278
10281
|
}, Ue = `${Mt}__cell`, {
|
|
10279
10282
|
block: Xl
|
|
10280
|
-
} =
|
|
10283
|
+
} = F(Ue), XA = {
|
|
10281
10284
|
variant: ur.body
|
|
10282
10285
|
}, YA = (e) => {
|
|
10283
10286
|
const {
|
|
@@ -10377,7 +10380,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10377
10380
|
props: $()("class")
|
|
10378
10381
|
}), eS = `${Mt}__row`, {
|
|
10379
10382
|
block: tS
|
|
10380
|
-
} =
|
|
10383
|
+
} = F(eS), nS = (e) => {
|
|
10381
10384
|
const {
|
|
10382
10385
|
children: t,
|
|
10383
10386
|
className: n,
|
|
@@ -10406,7 +10409,7 @@ const YN = /* @__PURE__ */ E((e, {
|
|
|
10406
10409
|
const n = D(), a = M(() => e.class), {
|
|
10407
10410
|
isAnyDisabled: o,
|
|
10408
10411
|
otherProps: r
|
|
10409
|
-
} = te(
|
|
10412
|
+
} = te(w(() => ({
|
|
10410
10413
|
...e,
|
|
10411
10414
|
...n
|
|
10412
10415
|
})));
|
|
@@ -10426,7 +10429,7 @@ function aS(e) {
|
|
|
10426
10429
|
}
|
|
10427
10430
|
const oS = `${Qu}__link`, {
|
|
10428
10431
|
block: rS
|
|
10429
|
-
} =
|
|
10432
|
+
} = F(oS), sS = (e) => {
|
|
10430
10433
|
const {
|
|
10431
10434
|
className: t,
|
|
10432
10435
|
icon: n,
|
|
@@ -10449,12 +10452,12 @@ const oS = `${Qu}__link`, {
|
|
|
10449
10452
|
Text: A,
|
|
10450
10453
|
ref: N,
|
|
10451
10454
|
...x
|
|
10452
|
-
} = e,
|
|
10455
|
+
} = e, C = () => {
|
|
10453
10456
|
o || g?.();
|
|
10454
|
-
},
|
|
10455
|
-
c?.(T), b &&
|
|
10457
|
+
}, O = (T) => {
|
|
10458
|
+
c?.(T), b && C();
|
|
10456
10459
|
}, P = (T) => {
|
|
10457
|
-
d?.(T), !(T.key !== "Enter" || o) &&
|
|
10460
|
+
d?.(T), !(T.key !== "Enter" || o) && C();
|
|
10458
10461
|
};
|
|
10459
10462
|
return m("button", S({
|
|
10460
10463
|
ref: N
|
|
@@ -10465,11 +10468,11 @@ const oS = `${Qu}__link`, {
|
|
|
10465
10468
|
"is-active": i,
|
|
10466
10469
|
"is-disabled": o
|
|
10467
10470
|
})),
|
|
10468
|
-
onClick:
|
|
10471
|
+
onClick: C
|
|
10469
10472
|
}, {
|
|
10470
10473
|
[f]: P
|
|
10471
10474
|
}, {
|
|
10472
|
-
onFocus:
|
|
10475
|
+
onFocus: O,
|
|
10473
10476
|
role: "tab"
|
|
10474
10477
|
}, {
|
|
10475
10478
|
[h]: i ? 0 : u
|
|
@@ -10515,14 +10518,14 @@ const oS = `${Qu}__link`, {
|
|
|
10515
10518
|
}, ed = /* @__PURE__ */ Symbol("LumxTabProvider"), td = (e, t) => {
|
|
10516
10519
|
const n = qe(ed, void 0);
|
|
10517
10520
|
if (!n)
|
|
10518
|
-
return
|
|
10521
|
+
return w(() => {
|
|
10519
10522
|
});
|
|
10520
10523
|
const { state: a, dispatch: o } = n, r = re(), s = t || r;
|
|
10521
10524
|
return Ke(() => {
|
|
10522
10525
|
o({ type: "register", payload: { type: e, id: s } });
|
|
10523
10526
|
}), en(() => {
|
|
10524
10527
|
o({ type: "unregister", payload: { type: e, id: s } });
|
|
10525
|
-
}),
|
|
10528
|
+
}), w(() => {
|
|
10526
10529
|
const i = a.value.ids[e].indexOf(s);
|
|
10527
10530
|
if (i !== -1)
|
|
10528
10531
|
return {
|
|
@@ -10544,10 +10547,10 @@ const oS = `${Qu}__link`, {
|
|
|
10544
10547
|
}) => {
|
|
10545
10548
|
const n = D(), a = M(() => e.class), {
|
|
10546
10549
|
isAnyDisabled: o
|
|
10547
|
-
} = te(
|
|
10550
|
+
} = te(w(() => ({
|
|
10548
10551
|
...e,
|
|
10549
10552
|
...n
|
|
10550
|
-
}))), r = td("tab", e.id), s =
|
|
10553
|
+
}))), r = td("tab", e.id), s = w(() => e.isActive || r.value?.isActive), i = (c) => t("focus", c), l = (c) => t("keypress", c);
|
|
10551
10554
|
return () => m(sS, S(n, {
|
|
10552
10555
|
id: e.id,
|
|
10553
10556
|
className: a.value,
|
|
@@ -10576,7 +10579,7 @@ const oS = `${Qu}__link`, {
|
|
|
10576
10579
|
}), {
|
|
10577
10580
|
block: cS,
|
|
10578
10581
|
element: uS
|
|
10579
|
-
} =
|
|
10582
|
+
} = F(Qu);
|
|
10580
10583
|
let dS = /* @__PURE__ */ (function(e) {
|
|
10581
10584
|
return e.clustered = "clustered", e.fixed = "fixed", e;
|
|
10582
10585
|
})({});
|
|
@@ -10627,7 +10630,7 @@ const Yl = {
|
|
|
10627
10630
|
props: $()("layout", "position", "theme", "class")
|
|
10628
10631
|
}), hS = "lumx-tab-panel", {
|
|
10629
10632
|
block: mS
|
|
10630
|
-
} =
|
|
10633
|
+
} = F(hS), pS = (e) => {
|
|
10631
10634
|
const {
|
|
10632
10635
|
children: t,
|
|
10633
10636
|
className: n,
|
|
@@ -10653,7 +10656,7 @@ const Yl = {
|
|
|
10653
10656
|
"aria-labelledby": r
|
|
10654
10657
|
}), [(!s || a) && t]);
|
|
10655
10658
|
}, oP = /* @__PURE__ */ E((e) => {
|
|
10656
|
-
const t = D(), n = ke(), a = M(() => e.class), o = td("tabPanel", e.id), r =
|
|
10659
|
+
const t = D(), n = ke(), a = M(() => e.class), o = td("tabPanel", e.id), r = w(() => e.isActive || o.value?.isActive);
|
|
10657
10660
|
return () => m(pS, S(t, {
|
|
10658
10661
|
className: a.value,
|
|
10659
10662
|
isActive: r.value,
|
|
@@ -10736,7 +10739,7 @@ function AS(e) {
|
|
|
10736
10739
|
const SS = "lumx-user-block", {
|
|
10737
10740
|
block: NS,
|
|
10738
10741
|
element: $e
|
|
10739
|
-
} =
|
|
10742
|
+
} = F(SS), Ql = {
|
|
10740
10743
|
orientation: ct.horizontal,
|
|
10741
10744
|
size: H.m
|
|
10742
10745
|
}, dr = ({
|
|
@@ -10769,24 +10772,24 @@ const SS = "lumx-user-block", {
|
|
|
10769
10772
|
children: A,
|
|
10770
10773
|
additionalFields: N,
|
|
10771
10774
|
after: x,
|
|
10772
|
-
Text:
|
|
10773
|
-
Avatar:
|
|
10775
|
+
Text: C,
|
|
10776
|
+
Avatar: O,
|
|
10774
10777
|
...P
|
|
10775
10778
|
} = e;
|
|
10776
10779
|
let T = v;
|
|
10777
10780
|
p === ct.vertical && (T = H.l);
|
|
10778
|
-
const
|
|
10781
|
+
const k = p === ct.vertical, _ = dr({
|
|
10779
10782
|
handleClick: h,
|
|
10780
10783
|
linkAs: r,
|
|
10781
10784
|
linkProps: o
|
|
10782
10785
|
}), q = T !== H.s && T !== H.xs, j = a && q && m("div", {
|
|
10783
10786
|
className: $e("fields")
|
|
10784
|
-
}, [a.map((
|
|
10787
|
+
}, [a.map((B, z) => m(C, {
|
|
10785
10788
|
as: "span",
|
|
10786
|
-
key:
|
|
10789
|
+
key: z,
|
|
10787
10790
|
className: $e("field")
|
|
10788
|
-
}, AS(
|
|
10789
|
-
default: () => [
|
|
10791
|
+
}, AS(B) ? B : {
|
|
10792
|
+
default: () => [B]
|
|
10790
10793
|
}))]), I = {
|
|
10791
10794
|
...f && {
|
|
10792
10795
|
[l]: f
|
|
@@ -10804,7 +10807,7 @@ const SS = "lumx-user-block", {
|
|
|
10804
10807
|
[`theme-${y}`]: !!y,
|
|
10805
10808
|
"is-clickable": _
|
|
10806
10809
|
}))
|
|
10807
|
-
}), [t && m(
|
|
10810
|
+
}), [t && m(O, S({
|
|
10808
10811
|
linkAs: r,
|
|
10809
10812
|
linkProps: o,
|
|
10810
10813
|
alt: ""
|
|
@@ -10815,9 +10818,9 @@ const SS = "lumx-user-block", {
|
|
|
10815
10818
|
theme: y
|
|
10816
10819
|
}), null), (a || d || A || N) && m("div", {
|
|
10817
10820
|
className: $e("wrapper")
|
|
10818
|
-
}, [A, j, q ? N : null]),
|
|
10821
|
+
}, [A, j, q ? N : null]), k && b && m("div", {
|
|
10819
10822
|
className: $e("action")
|
|
10820
|
-
}, [b]),
|
|
10823
|
+
}, [b]), k && i && m("div", {
|
|
10821
10824
|
className: $e("actions")
|
|
10822
10825
|
}, [i]), x ? m("div", {
|
|
10823
10826
|
className: $e("after")
|
|
@@ -10840,7 +10843,7 @@ const wS = {
|
|
|
10840
10843
|
t("mouseenter");
|
|
10841
10844
|
}, l = () => {
|
|
10842
10845
|
t("mouseleave");
|
|
10843
|
-
}, c = oe("onClick"), d = oe("onMouseenter"), u = oe("onMouseleave"), h =
|
|
10846
|
+
}, c = oe("onClick"), d = oe("onMouseenter"), u = oe("onMouseleave"), h = w(() => {
|
|
10844
10847
|
const g = e.name || n.name?.();
|
|
10845
10848
|
if (Kt(g))
|
|
10846
10849
|
return null;
|
|
@@ -10866,7 +10869,7 @@ const wS = {
|
|
|
10866
10869
|
default: () => [g]
|
|
10867
10870
|
})]
|
|
10868
10871
|
});
|
|
10869
|
-
}), f =
|
|
10872
|
+
}), f = w(() => {
|
|
10870
10873
|
if (!e.avatarProps) return;
|
|
10871
10874
|
if (dr({
|
|
10872
10875
|
linkAs: e.linkAs,
|
|
@@ -11024,8 +11027,8 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11024
11027
|
translations: A,
|
|
11025
11028
|
onOpen: N,
|
|
11026
11029
|
onLoadMore: x,
|
|
11027
|
-
infiniteScrollOptions:
|
|
11028
|
-
} = e,
|
|
11030
|
+
infiniteScrollOptions: C
|
|
11031
|
+
} = e, O = y === "loading", P = y === "loadingMore", T = y === "error", k = u === "multiple", _ = d != null ? qr(d).map((q) => ad(q, r, o)).filter(Boolean).join(", ") : "";
|
|
11029
11032
|
return m(t.Provider, {
|
|
11030
11033
|
onOpen: N
|
|
11031
11034
|
}, {
|
|
@@ -11041,9 +11044,9 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11041
11044
|
}, p), {
|
|
11042
11045
|
default: () => [m(t.List, S(b, {
|
|
11043
11046
|
"aria-label": h,
|
|
11044
|
-
"aria-multiselectable":
|
|
11047
|
+
"aria-multiselectable": k || void 0
|
|
11045
11048
|
}), {
|
|
11046
|
-
default: () => [
|
|
11049
|
+
default: () => [O ? m(t.OptionSkeleton, {
|
|
11047
11050
|
count: 3
|
|
11048
11051
|
}, null) : Wr({
|
|
11049
11052
|
options: a,
|
|
@@ -11060,7 +11063,7 @@ const OS = "SelectButton", kS = "lumx-select-button", TS = {
|
|
|
11060
11063
|
callback: () => {
|
|
11061
11064
|
y && y !== "idle" || x();
|
|
11062
11065
|
},
|
|
11063
|
-
options:
|
|
11066
|
+
options: C
|
|
11064
11067
|
}, null), P && m(t.OptionSkeleton, {
|
|
11065
11068
|
count: 1
|
|
11066
11069
|
}, null)]
|
|
@@ -11081,7 +11084,7 @@ function _S(e) {
|
|
|
11081
11084
|
}
|
|
11082
11085
|
function od(e) {
|
|
11083
11086
|
const t = D();
|
|
11084
|
-
return
|
|
11087
|
+
return w(() => {
|
|
11085
11088
|
const n = t.renderOption;
|
|
11086
11089
|
if (!(!e && !n))
|
|
11087
11090
|
return (a, o) => {
|
|
@@ -11115,7 +11118,7 @@ function od(e) {
|
|
|
11115
11118
|
});
|
|
11116
11119
|
}
|
|
11117
11120
|
function rd(e) {
|
|
11118
|
-
return
|
|
11121
|
+
return w(() => {
|
|
11119
11122
|
if (e)
|
|
11120
11123
|
return (t, n) => e({
|
|
11121
11124
|
sectionId: t,
|
|
@@ -11147,10 +11150,10 @@ const LS = {
|
|
|
11147
11150
|
}) => {
|
|
11148
11151
|
const o = R(null), r = M(() => e.class), {
|
|
11149
11152
|
disabledStateProps: s
|
|
11150
|
-
} = te(
|
|
11153
|
+
} = te(w(() => ({
|
|
11151
11154
|
...e,
|
|
11152
11155
|
...a
|
|
11153
|
-
}))), i = od(n.option), l = rd(n.sectionTitle), c =
|
|
11156
|
+
}))), i = od(n.option), l = rd(n.sectionTitle), c = w(() => ({
|
|
11154
11157
|
className: f,
|
|
11155
11158
|
children: g,
|
|
11156
11159
|
ref: p,
|
|
@@ -11242,21 +11245,21 @@ const LS = {
|
|
|
11242
11245
|
nbOptionMessage: A,
|
|
11243
11246
|
errorMessage: N,
|
|
11244
11247
|
errorTryReloadMessage: x,
|
|
11245
|
-
onOpen:
|
|
11246
|
-
chips:
|
|
11248
|
+
onOpen: C,
|
|
11249
|
+
chips: O,
|
|
11247
11250
|
beforeOptions: P,
|
|
11248
11251
|
afterOptions: T,
|
|
11249
|
-
onLoadMore:
|
|
11252
|
+
onLoadMore: k,
|
|
11250
11253
|
infiniteScrollOptions: _
|
|
11251
11254
|
} = e, q = b === "loading", j = b === "loadingMore", I = b === "error";
|
|
11252
11255
|
return m(t.Provider, {
|
|
11253
|
-
onOpen:
|
|
11256
|
+
onOpen: C
|
|
11254
11257
|
}, {
|
|
11255
11258
|
default: () => [m(t.Input, S({
|
|
11256
11259
|
label: u
|
|
11257
11260
|
}, f, {
|
|
11258
11261
|
selectionMode: "keep",
|
|
11259
|
-
chips:
|
|
11262
|
+
chips: O
|
|
11260
11263
|
}), null), m(t.Popover, S({
|
|
11261
11264
|
fitToAnchorWidth: "minWidth",
|
|
11262
11265
|
fitWithinViewportHeight: !0,
|
|
@@ -11279,9 +11282,9 @@ const LS = {
|
|
|
11279
11282
|
selected: d
|
|
11280
11283
|
}, {
|
|
11281
11284
|
Combobox: t
|
|
11282
|
-
}), T,
|
|
11285
|
+
}), T, k && n && m(n, {
|
|
11283
11286
|
callback: () => {
|
|
11284
|
-
b && b !== "idle" ||
|
|
11287
|
+
b && b !== "idle" || k();
|
|
11285
11288
|
},
|
|
11286
11289
|
options: _
|
|
11287
11290
|
}, null), j && m(t.OptionSkeleton, {
|
|
@@ -11329,19 +11332,19 @@ const MS = {
|
|
|
11329
11332
|
slots: n,
|
|
11330
11333
|
attrs: a
|
|
11331
11334
|
}) => {
|
|
11332
|
-
const o =
|
|
11335
|
+
const o = w(() => e.selectionType === "multiple"), r = M(() => e.class), {
|
|
11333
11336
|
isAnyDisabled: s,
|
|
11334
11337
|
disabledStateProps: i
|
|
11335
|
-
} = te(
|
|
11338
|
+
} = te(w(() => ({
|
|
11336
11339
|
...e,
|
|
11337
11340
|
...a
|
|
11338
11341
|
}))), l = R(!!e.searchInputValue), c = R(e.searchInputValue ?? ""), d = R(null), u = R(null);
|
|
11339
11342
|
X(() => e.searchInputValue, (x) => {
|
|
11340
11343
|
x !== void 0 && (c.value = x, l.value = !!x);
|
|
11341
11344
|
});
|
|
11342
|
-
const h =
|
|
11343
|
-
const
|
|
11344
|
-
t("change",
|
|
11345
|
+
const h = w(() => e.selectionType === "multiple" || l.value ? c.value : ad(e.value, e.getOptionName, e.getOptionId)), f = (x) => {
|
|
11346
|
+
const C = nd(e.options, e.getOptionId, e.value, x.value, e.selectionType === "multiple");
|
|
11347
|
+
t("change", C), l.value = !1, c.value = "", t("search", "");
|
|
11345
11348
|
}, g = (x) => {
|
|
11346
11349
|
l.value = !0, c.value = x, t("search", x), !o.value && x === "" && e.value !== void 0 && e.value !== null && t("change", void 0);
|
|
11347
11350
|
}, p = (x) => {
|
|
@@ -11350,7 +11353,7 @@ const MS = {
|
|
|
11350
11353
|
l.value = !1, c.value = "", t("search", ""), t("blur", x);
|
|
11351
11354
|
}, v = od(n.option), y = rd(n.sectionTitle), A = oe("onLoadMore") || oe("onLoad-more"), N = () => t("load-more");
|
|
11352
11355
|
return () => {
|
|
11353
|
-
const x = !o.value && !s.value && (e.hasClearButton ?? !0) && e.value !== void 0 && e.value !== null,
|
|
11356
|
+
const x = !o.value && !s.value && (e.hasClearButton ?? !0) && e.value !== void 0 && e.value !== null, C = e.selectionType === "multiple" ? m(Db, {
|
|
11354
11357
|
value: e.value,
|
|
11355
11358
|
theme: e.theme,
|
|
11356
11359
|
getOptionId: e.getOptionId,
|
|
@@ -11362,7 +11365,7 @@ const MS = {
|
|
|
11362
11365
|
chipRemoveLabel: e.translations.chipRemoveLabel
|
|
11363
11366
|
}, {
|
|
11364
11367
|
chip: n.chip || void 0
|
|
11365
|
-
}) : void 0,
|
|
11368
|
+
}) : void 0, O = e.listStatus ?? "idle", P = e.beforeOptions ?? n.beforeOptions?.();
|
|
11366
11369
|
return Gr({
|
|
11367
11370
|
options: e.options,
|
|
11368
11371
|
getOptionId: e.getOptionId,
|
|
@@ -11374,7 +11377,7 @@ const MS = {
|
|
|
11374
11377
|
selected: e.value,
|
|
11375
11378
|
label: e.label,
|
|
11376
11379
|
isMultiselectable: o.value,
|
|
11377
|
-
listStatus:
|
|
11380
|
+
listStatus: O,
|
|
11378
11381
|
onOpen: (T) => t("open", T),
|
|
11379
11382
|
loadingMessage: e.translations.loadingMessage,
|
|
11380
11383
|
emptyMessage: e.translations.emptyMessage,
|
|
@@ -11420,7 +11423,7 @@ const MS = {
|
|
|
11420
11423
|
listProps: {
|
|
11421
11424
|
ref: d
|
|
11422
11425
|
},
|
|
11423
|
-
chips:
|
|
11426
|
+
chips: C,
|
|
11424
11427
|
beforeOptions: P,
|
|
11425
11428
|
onLoadMore: A ? N : void 0,
|
|
11426
11429
|
infiniteScrollOptions: {
|
|
@@ -11439,7 +11442,7 @@ const MS = {
|
|
|
11439
11442
|
emits: MS
|
|
11440
11443
|
}), DS = Ot, cP = Eu, uP = ku, dP = Tu, fP = Iu, BS = "TimePickerField", sd = "lumx-time-picker-field", {
|
|
11441
11444
|
block: FS
|
|
11442
|
-
} =
|
|
11445
|
+
} = F(sd), tc = {
|
|
11443
11446
|
step: 30,
|
|
11444
11447
|
boundsMode: "on-blur"
|
|
11445
11448
|
}, Kr = (e, {
|
|
@@ -11542,12 +11545,12 @@ const WS = () => navigator.languages?.[0] || navigator.language, US = {
|
|
|
11542
11545
|
}, hP = /* @__PURE__ */ E((e, {
|
|
11543
11546
|
emit: t
|
|
11544
11547
|
}) => {
|
|
11545
|
-
const n = M(() => e.class), a =
|
|
11548
|
+
const n = M(() => e.class), a = w(() => e.locale ?? WS()), o = w(() => e.step ?? tc.step), r = w(() => e.boundsMode ?? tc.boundsMode), s = w(() => jS({
|
|
11546
11549
|
step: o.value,
|
|
11547
11550
|
minTime: e.minTime,
|
|
11548
11551
|
maxTime: e.maxTime,
|
|
11549
11552
|
locale: a.value
|
|
11550
|
-
})), i = R(""), l =
|
|
11553
|
+
})), i = R(""), l = w(() => {
|
|
11551
11554
|
const {
|
|
11552
11555
|
value: h
|
|
11553
11556
|
} = e;
|