@lumx/vue 4.3.2-alpha.31 → 4.3.2-alpha.32
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/link/Link.d.ts +2 -6
- package/index.js +203 -192
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorVariant as Sa, Theme as ka, AspectRatio as Pa, Size as Ta } 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
|
|
4
|
+
import { createVNode as c, mergeProps as h, defineComponent as y, useAttrs as k, isVNode as ee, inject as It, computed as T, unref as kt, provide as Vr, getCurrentScope as $a, onScopeDispose as Ca, watch as W, toValue as Et, shallowRef as _a, getCurrentInstance as Wr, onMounted as xa, ref as ie, useSlots as Lt, Fragment as G, useTemplateRef as wa, toRefs as Ia, reactive as Ea, createTextVNode as pe, onBeforeUnmount as La, nextTick as Oa, toRef as X } from "vue";
|
|
5
5
|
import { getDisabledState as Ba } from "@lumx/core/js/utils/disabledState";
|
|
6
6
|
import { mdiAlertCircle as Ur } from "@lumx/icons/esm/alert-circle.js";
|
|
7
7
|
import { classNames as Z } from "@lumx/core/js/utils";
|
|
@@ -156,7 +156,7 @@ const Xa = "Badge", Jr = "lumx-badge", {
|
|
|
156
156
|
ref: n,
|
|
157
157
|
...o
|
|
158
158
|
} = e;
|
|
159
|
-
return
|
|
159
|
+
return c("div", h({
|
|
160
160
|
ref: n
|
|
161
161
|
}, o, {
|
|
162
162
|
className: A(r, Qa({
|
|
@@ -174,7 +174,7 @@ const S = () => (...e) => e.reduce(
|
|
|
174
174
|
slots: t
|
|
175
175
|
}) => {
|
|
176
176
|
const r = k();
|
|
177
|
-
return () =>
|
|
177
|
+
return () => c(Ae, h(e, r, {
|
|
178
178
|
className: e.class,
|
|
179
179
|
children: t.default?.()
|
|
180
180
|
}), null);
|
|
@@ -194,18 +194,18 @@ const S = () => (...e) => e.reduce(
|
|
|
194
194
|
ref: n,
|
|
195
195
|
...o
|
|
196
196
|
} = e;
|
|
197
|
-
return
|
|
197
|
+
return c("div", h({
|
|
198
198
|
ref: n
|
|
199
199
|
}, o, {
|
|
200
200
|
className: A(a, en())
|
|
201
|
-
}), [r, t &&
|
|
201
|
+
}), [r, t && c("div", {
|
|
202
202
|
className: tn("badge")
|
|
203
203
|
}, [t])]);
|
|
204
204
|
}, hi = /* @__PURE__ */ y((e, {
|
|
205
205
|
slots: t
|
|
206
206
|
}) => {
|
|
207
207
|
const r = k();
|
|
208
|
-
return () =>
|
|
208
|
+
return () => c(rn, h(e, r, {
|
|
209
209
|
className: e.class,
|
|
210
210
|
badge: e.badge || t.badge?.(),
|
|
211
211
|
children: t.default?.()
|
|
@@ -289,11 +289,11 @@ function sn() {
|
|
|
289
289
|
var i = r.call(s, n), u = s[n];
|
|
290
290
|
try {
|
|
291
291
|
s[n] = void 0;
|
|
292
|
-
var
|
|
292
|
+
var l = !0;
|
|
293
293
|
} catch {
|
|
294
294
|
}
|
|
295
295
|
var d = a.call(s);
|
|
296
|
-
return
|
|
296
|
+
return l && (i ? s[n] = u : delete s[n]), d;
|
|
297
297
|
}
|
|
298
298
|
return Re = o, Re;
|
|
299
299
|
}
|
|
@@ -384,8 +384,8 @@ var Ve, ir;
|
|
|
384
384
|
function dn() {
|
|
385
385
|
if (ir) return Ve;
|
|
386
386
|
ir = 1;
|
|
387
|
-
var e = ta(), t = un(), r = jt(), a = ra(), n = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, u = s.toString,
|
|
388
|
-
"^" + u.call(
|
|
387
|
+
var e = ta(), t = un(), r = jt(), a = ra(), n = /[\\^$.*+?()[\]{}|]/g, o = /^\[object .+?Constructor\]$/, s = Function.prototype, i = Object.prototype, u = s.toString, l = i.hasOwnProperty, d = RegExp(
|
|
388
|
+
"^" + u.call(l).replace(n, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
389
389
|
);
|
|
390
390
|
function f(m) {
|
|
391
391
|
if (!r(m) || t(m))
|
|
@@ -454,8 +454,8 @@ var Ze, pr;
|
|
|
454
454
|
function vn() {
|
|
455
455
|
if (pr) return Ze;
|
|
456
456
|
pr = 1;
|
|
457
|
-
var e = mn(), t = hn(), r = pn(), a = bn(), n = gn(), o = le(), s = ra(), i = "[object Map]", u = "[object Object]",
|
|
458
|
-
return (e && P(new e(new ArrayBuffer(1))) != m || t && P(new t()) != i || r && P(r.resolve()) !=
|
|
457
|
+
var e = mn(), t = hn(), r = pn(), a = bn(), n = gn(), o = le(), s = ra(), i = "[object Map]", u = "[object Object]", l = "[object Promise]", d = "[object Set]", f = "[object WeakMap]", m = "[object DataView]", p = s(e), g = s(t), b = s(r), v = s(a), C = s(n), P = o;
|
|
458
|
+
return (e && P(new e(new ArrayBuffer(1))) != m || t && P(new t()) != i || r && P(r.resolve()) != l || a && P(new a()) != d || n && P(new n()) != f) && (P = function(_) {
|
|
459
459
|
var O = o(_), L = O == u ? _.constructor : void 0, B = L ? s(L) : "";
|
|
460
460
|
if (B)
|
|
461
461
|
switch (B) {
|
|
@@ -464,7 +464,7 @@ function vn() {
|
|
|
464
464
|
case g:
|
|
465
465
|
return i;
|
|
466
466
|
case b:
|
|
467
|
-
return
|
|
467
|
+
return l;
|
|
468
468
|
case v:
|
|
469
469
|
return d;
|
|
470
470
|
case C:
|
|
@@ -543,16 +543,16 @@ ne.exports;
|
|
|
543
543
|
var kr;
|
|
544
544
|
function kn() {
|
|
545
545
|
return kr || (kr = 1, (function(e, t) {
|
|
546
|
-
var r = F(), a = Sn(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, s = o && o.exports === n, i = s ? r.Buffer : void 0, u = i ? i.isBuffer : void 0,
|
|
547
|
-
e.exports =
|
|
546
|
+
var r = F(), a = Sn(), n = t && !t.nodeType && t, o = n && !0 && e && !e.nodeType && e, s = o && o.exports === n, i = s ? r.Buffer : void 0, u = i ? i.isBuffer : void 0, l = u || a;
|
|
547
|
+
e.exports = l;
|
|
548
548
|
})(ne, ne.exports)), ne.exports;
|
|
549
549
|
}
|
|
550
550
|
var it, Pr;
|
|
551
551
|
function Pn() {
|
|
552
552
|
if (Pr) return it;
|
|
553
553
|
Pr = 1;
|
|
554
|
-
var e = le(), t = na(), r = Se(), a = "[object Arguments]", n = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", u = "[object Function]",
|
|
555
|
-
N[P] = N[_] = N[O] = N[L] = N[B] = N[me] = N[Y] = N[he] = N[te] = !0, N[a] = N[n] = N[v] = N[o] = N[C] = N[s] = N[i] = N[u] = N[
|
|
554
|
+
var e = le(), t = na(), r = Se(), a = "[object Arguments]", n = "[object Array]", o = "[object Boolean]", s = "[object Date]", i = "[object Error]", u = "[object Function]", l = "[object Map]", d = "[object Number]", f = "[object Object]", m = "[object RegExp]", p = "[object Set]", g = "[object String]", b = "[object WeakMap]", v = "[object ArrayBuffer]", C = "[object DataView]", P = "[object Float32Array]", _ = "[object Float64Array]", O = "[object Int8Array]", L = "[object Int16Array]", B = "[object Int32Array]", me = "[object Uint8Array]", Y = "[object Uint8ClampedArray]", he = "[object Uint16Array]", te = "[object Uint32Array]", N = {};
|
|
555
|
+
N[P] = N[_] = N[O] = N[L] = N[B] = N[me] = N[Y] = N[he] = N[te] = !0, N[a] = N[n] = N[v] = N[o] = N[C] = N[s] = N[i] = N[u] = N[l] = N[d] = N[f] = N[m] = N[p] = N[g] = N[b] = !1;
|
|
556
556
|
function J(j) {
|
|
557
557
|
return r(j) && t(j.length) && !!N[e(j)];
|
|
558
558
|
}
|
|
@@ -595,14 +595,14 @@ var ut, _r;
|
|
|
595
595
|
function _n() {
|
|
596
596
|
if (_r) return ut;
|
|
597
597
|
_r = 1;
|
|
598
|
-
var e = on(), t = vn(), r = Nn(), a = aa(), n = An(), o = kn(), s = Qr(), i = Cn(), u = "[object Map]",
|
|
598
|
+
var e = on(), t = vn(), r = Nn(), a = aa(), n = An(), o = kn(), s = Qr(), i = Cn(), u = "[object Map]", l = "[object Set]", d = Object.prototype, f = d.hasOwnProperty;
|
|
599
599
|
function m(p) {
|
|
600
600
|
if (p == null)
|
|
601
601
|
return !0;
|
|
602
602
|
if (n(p) && (a(p) || typeof p == "string" || typeof p.splice == "function" || o(p) || i(p) || r(p)))
|
|
603
603
|
return !p.length;
|
|
604
604
|
var g = t(p);
|
|
605
|
-
if (g == u || g ==
|
|
605
|
+
if (g == u || g == l)
|
|
606
606
|
return !p.size;
|
|
607
607
|
if (s(p))
|
|
608
608
|
return !e(p).length;
|
|
@@ -627,14 +627,14 @@ const oa = (e) => {
|
|
|
627
627
|
"aria-disabled": o,
|
|
628
628
|
as: s,
|
|
629
629
|
...i
|
|
630
|
-
} = e, u = n || o === "true" || o === !0,
|
|
630
|
+
} = e, u = n || o === "true" || o === !0, l = s;
|
|
631
631
|
let d;
|
|
632
|
-
return
|
|
632
|
+
return l === "button" ? d = {
|
|
633
633
|
type: i.type || "button",
|
|
634
634
|
disabled: n
|
|
635
635
|
} : d = {
|
|
636
636
|
tabIndex: n ? "-1" : i.tabIndex
|
|
637
|
-
}, l
|
|
637
|
+
}, c(l, h({
|
|
638
638
|
"aria-disabled": u || void 0
|
|
639
639
|
}, i, d, {
|
|
640
640
|
onClick: (f) => {
|
|
@@ -665,7 +665,7 @@ const oa = (e) => {
|
|
|
665
665
|
...e,
|
|
666
666
|
hasBackground: !1
|
|
667
667
|
};
|
|
668
|
-
return
|
|
668
|
+
return c("div", {
|
|
669
669
|
className: s
|
|
670
670
|
}, [ue(i)]);
|
|
671
671
|
}, ue = (e) => {
|
|
@@ -678,7 +678,7 @@ const oa = (e) => {
|
|
|
678
678
|
emphasis: s,
|
|
679
679
|
hasBackground: i,
|
|
680
680
|
isSelected: u,
|
|
681
|
-
isActive:
|
|
681
|
+
isActive: l,
|
|
682
682
|
isFocused: d,
|
|
683
683
|
isHovered: f,
|
|
684
684
|
linkAs: m,
|
|
@@ -701,7 +701,7 @@ const oa = (e) => {
|
|
|
701
701
|
[`emphasis-${s}`]: !!s,
|
|
702
702
|
"is-selected": u,
|
|
703
703
|
"is-disabled": !!(e.isDisabled || e["aria-disabled"]),
|
|
704
|
-
"is-active":
|
|
704
|
+
"is-active": l,
|
|
705
705
|
"is-focused": d,
|
|
706
706
|
"is-hovered": f,
|
|
707
707
|
[`size-${p}`]: !!p,
|
|
@@ -772,7 +772,7 @@ function H(e) {
|
|
|
772
772
|
disabled: s,
|
|
773
773
|
isDisabled: i,
|
|
774
774
|
"aria-disabled": u,
|
|
775
|
-
ariaDisabled:
|
|
775
|
+
ariaDisabled: l,
|
|
776
776
|
onClick: d,
|
|
777
777
|
onChange: f,
|
|
778
778
|
onKeyPress: m,
|
|
@@ -799,7 +799,7 @@ const wr = y({
|
|
|
799
799
|
size: s,
|
|
800
800
|
ref: i,
|
|
801
801
|
theme: u,
|
|
802
|
-
alt:
|
|
802
|
+
alt: l,
|
|
803
803
|
verticalAlign: d,
|
|
804
804
|
...f
|
|
805
805
|
} = e, [m, p] = Ot(r, a);
|
|
@@ -808,7 +808,7 @@ const wr = y({
|
|
|
808
808
|
let b = p;
|
|
809
809
|
!b && n && g === x.dark && (b = "L2");
|
|
810
810
|
let v = s;
|
|
811
|
-
return s && n ? s === E.xxs || s === E.xs ? v = E.s : s === E.xxl && (v = E.xl) : n && (v = E.m),
|
|
811
|
+
return s && n ? s === E.xxs || s === E.xs ? v = E.s : s === E.xxl && (v = E.xl) : n && (v = E.m), c("i", h({
|
|
812
812
|
ref: i
|
|
813
813
|
}, f, {
|
|
814
814
|
className: A(t, zn({
|
|
@@ -822,10 +822,10 @@ const wr = y({
|
|
|
822
822
|
path: !0,
|
|
823
823
|
"vertical-align-middle": d === "middle"
|
|
824
824
|
}))
|
|
825
|
-
}), [
|
|
826
|
-
"aria-hidden":
|
|
827
|
-
role:
|
|
828
|
-
"aria-label":
|
|
825
|
+
}), [c("svg", {
|
|
826
|
+
"aria-hidden": l ? void 0 : "true",
|
|
827
|
+
role: l ? "img" : void 0,
|
|
828
|
+
"aria-label": l,
|
|
829
829
|
height: "1em",
|
|
830
830
|
preserveAspectRatio: "xMidYMid meet",
|
|
831
831
|
style: {
|
|
@@ -833,7 +833,7 @@ const wr = y({
|
|
|
833
833
|
},
|
|
834
834
|
viewBox: "0 0 24 24",
|
|
835
835
|
width: "1em"
|
|
836
|
-
}, [
|
|
836
|
+
}, [c("path", {
|
|
837
837
|
d: o,
|
|
838
838
|
fill: "currentColor"
|
|
839
839
|
}, null)])]);
|
|
@@ -845,7 +845,7 @@ const Tt = /* @__PURE__ */ y((e) => {
|
|
|
845
845
|
const t = k(), r = w({
|
|
846
846
|
defaultTheme: void 0
|
|
847
847
|
});
|
|
848
|
-
return () =>
|
|
848
|
+
return () => c(I, h(e, t, {
|
|
849
849
|
className: e.class,
|
|
850
850
|
theme: e.theme || r.value
|
|
851
851
|
}), null);
|
|
@@ -866,9 +866,9 @@ const Tt = /* @__PURE__ */ y((e) => {
|
|
|
866
866
|
truncate: s,
|
|
867
867
|
whiteSpace: i,
|
|
868
868
|
style: u
|
|
869
|
-
} = e,
|
|
869
|
+
} = e, l = typeof s == "object" && s.lines > 1 && {
|
|
870
870
|
"--lumx-text-truncate-lines": s.lines
|
|
871
|
-
}, d = !!
|
|
871
|
+
}, d = !!l, f = !!s, m = !n && !(f && !d) && i && {
|
|
872
872
|
"--lumx-text-white-space": i
|
|
873
873
|
};
|
|
874
874
|
return {
|
|
@@ -878,7 +878,7 @@ const Tt = /* @__PURE__ */ y((e) => {
|
|
|
878
878
|
"no-wrap": n
|
|
879
879
|
}), o && Bt(o), r && Ja(r, a)),
|
|
880
880
|
style: {
|
|
881
|
-
...
|
|
881
|
+
...l,
|
|
882
882
|
...m,
|
|
883
883
|
...u
|
|
884
884
|
}
|
|
@@ -924,13 +924,13 @@ function Qn(e, t, r = {}) {
|
|
|
924
924
|
}, {
|
|
925
925
|
immediate: !0,
|
|
926
926
|
flush: "post"
|
|
927
|
-
}),
|
|
927
|
+
}), l = () => o?.takeRecords(), d = () => {
|
|
928
928
|
u(), i();
|
|
929
929
|
};
|
|
930
930
|
return la(d), {
|
|
931
931
|
isSupported: s,
|
|
932
932
|
stop: d,
|
|
933
|
-
takeRecords:
|
|
933
|
+
takeRecords: l
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
function Zn(e, t, r = {}) {
|
|
@@ -949,12 +949,12 @@ function Zn(e, t, r = {}) {
|
|
|
949
949
|
}, {
|
|
950
950
|
immediate: !0,
|
|
951
951
|
flush: "post"
|
|
952
|
-
}),
|
|
952
|
+
}), l = () => {
|
|
953
953
|
i(), u();
|
|
954
954
|
};
|
|
955
|
-
return la(
|
|
955
|
+
return la(l), {
|
|
956
956
|
isSupported: s,
|
|
957
|
-
stop:
|
|
957
|
+
stop: l
|
|
958
958
|
};
|
|
959
959
|
}
|
|
960
960
|
function eo(e) {
|
|
@@ -995,7 +995,7 @@ function Ct(e) {
|
|
|
995
995
|
}
|
|
996
996
|
if (typeof r.type == "string" && Array.isArray(r.children)) {
|
|
997
997
|
const a = Ct(r.children), n = { ...r.props || {} };
|
|
998
|
-
r.key != null && (n.key = r.key), r.ref != null && (n.ref = r.ref), t.push(
|
|
998
|
+
r.key != null && (n.key = r.key), r.ref != null && (n.ref = r.ref), t.push(c(r.type, n, a));
|
|
999
999
|
continue;
|
|
1000
1000
|
}
|
|
1001
1001
|
t.push(r);
|
|
@@ -1016,16 +1016,16 @@ const Rt = /* @__PURE__ */ y((e, {
|
|
|
1016
1016
|
})), i = T(() => {
|
|
1017
1017
|
const {
|
|
1018
1018
|
children: u,
|
|
1019
|
-
...
|
|
1019
|
+
...l
|
|
1020
1020
|
} = r;
|
|
1021
1021
|
return {
|
|
1022
|
-
...
|
|
1022
|
+
...l,
|
|
1023
1023
|
...s.value
|
|
1024
1024
|
};
|
|
1025
1025
|
});
|
|
1026
1026
|
return () => {
|
|
1027
|
-
const u = e.as || "div",
|
|
1028
|
-
return
|
|
1027
|
+
const u = e.as || "div", l = a() || t.default?.(), d = l ? Ct(l) : null;
|
|
1028
|
+
return c(u, h({
|
|
1029
1029
|
ref: "tooltip-label"
|
|
1030
1030
|
}, i.value, {
|
|
1031
1031
|
class: i.value.className,
|
|
@@ -1054,21 +1054,21 @@ const Rt = /* @__PURE__ */ y((e, {
|
|
|
1054
1054
|
...a
|
|
1055
1055
|
}))), u = (d) => {
|
|
1056
1056
|
o.value || (d.stopImmediatePropagation(), t("click", d));
|
|
1057
|
-
},
|
|
1057
|
+
}, l = () => {
|
|
1058
1058
|
const d = r.default?.();
|
|
1059
|
-
return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Rt ? d[0] :
|
|
1059
|
+
return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Rt ? d[0] : c("span", null, [d]);
|
|
1060
1060
|
};
|
|
1061
1061
|
return () => {
|
|
1062
|
-
const d =
|
|
1063
|
-
default: () => [
|
|
1062
|
+
const d = c(G, null, [e.leftIcon && !xr(e.leftIcon) && c(wr, null, {
|
|
1063
|
+
default: () => [c(Tt, {
|
|
1064
1064
|
icon: e.leftIcon
|
|
1065
1065
|
}, null)]
|
|
1066
|
-
}),
|
|
1067
|
-
default: () => [
|
|
1066
|
+
}), l(), e.rightIcon && !xr(e.rightIcon) && c(wr, null, {
|
|
1067
|
+
default: () => [c(Tt, {
|
|
1068
1068
|
icon: e.rightIcon
|
|
1069
1069
|
}, null)]
|
|
1070
1070
|
})]);
|
|
1071
|
-
return
|
|
1071
|
+
return c(ke, h(i.value, s.value, {
|
|
1072
1072
|
className: e.class,
|
|
1073
1073
|
theme: e.theme || n.value,
|
|
1074
1074
|
onClick: u,
|
|
@@ -1092,7 +1092,7 @@ const Rt = /* @__PURE__ */ y((e, {
|
|
|
1092
1092
|
label: n,
|
|
1093
1093
|
size: o = _t.size,
|
|
1094
1094
|
...s
|
|
1095
|
-
} = e, i = r ?
|
|
1095
|
+
} = e, i = r ? c("img", {
|
|
1096
1096
|
alt: "",
|
|
1097
1097
|
src: r
|
|
1098
1098
|
}, null) : I({
|
|
@@ -1125,7 +1125,7 @@ const so = {
|
|
|
1125
1125
|
}))), i = (u) => {
|
|
1126
1126
|
n.value || (u.stopImmediatePropagation(), t("click", u));
|
|
1127
1127
|
};
|
|
1128
|
-
return () =>
|
|
1128
|
+
return () => c(de, h(s.value, o.value, {
|
|
1129
1129
|
className: e.class,
|
|
1130
1130
|
theme: e.theme || a.value,
|
|
1131
1131
|
title: e.label,
|
|
@@ -1144,7 +1144,7 @@ const so = {
|
|
|
1144
1144
|
className: r,
|
|
1145
1145
|
...a
|
|
1146
1146
|
} = e;
|
|
1147
|
-
return
|
|
1147
|
+
return c("div", h(a, {
|
|
1148
1148
|
className: A(r, da)
|
|
1149
1149
|
}), [t]);
|
|
1150
1150
|
};
|
|
@@ -1155,7 +1155,7 @@ const gi = /* @__PURE__ */ y((e, {
|
|
|
1155
1155
|
slots: t
|
|
1156
1156
|
}) => {
|
|
1157
1157
|
const r = k();
|
|
1158
|
-
return () =>
|
|
1158
|
+
return () => c(Pe, h(e, r, {
|
|
1159
1159
|
className: e.class,
|
|
1160
1160
|
children: t.default?.()
|
|
1161
1161
|
}), null);
|
|
@@ -1178,7 +1178,7 @@ function U(e) {
|
|
|
1178
1178
|
ref: i,
|
|
1179
1179
|
...u
|
|
1180
1180
|
} = e;
|
|
1181
|
-
return
|
|
1181
|
+
return c("label", h({
|
|
1182
1182
|
ref: i
|
|
1183
1183
|
}, u, {
|
|
1184
1184
|
htmlFor: a,
|
|
@@ -1212,7 +1212,7 @@ function K(e) {
|
|
|
1212
1212
|
} = e, {
|
|
1213
1213
|
color: i
|
|
1214
1214
|
} = ho[a] || {};
|
|
1215
|
-
return
|
|
1215
|
+
return c("p", h({
|
|
1216
1216
|
ref: o
|
|
1217
1217
|
}, s, {
|
|
1218
1218
|
className: A(r, go({
|
|
@@ -1237,7 +1237,7 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1237
1237
|
isChecked: s = t,
|
|
1238
1238
|
label: i,
|
|
1239
1239
|
name: u,
|
|
1240
|
-
ref:
|
|
1240
|
+
ref: l,
|
|
1241
1241
|
onChange: d,
|
|
1242
1242
|
theme: f,
|
|
1243
1243
|
value: m,
|
|
@@ -1248,8 +1248,8 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1248
1248
|
} = e, C = s === pa, P = (_) => {
|
|
1249
1249
|
d && d(!s, m, u, _);
|
|
1250
1250
|
};
|
|
1251
|
-
return
|
|
1252
|
-
ref:
|
|
1251
|
+
return c("div", h({
|
|
1252
|
+
ref: l
|
|
1253
1253
|
}, v, {
|
|
1254
1254
|
className: A(r, yo({
|
|
1255
1255
|
// Whether state is intermediate class name will "-checked"
|
|
@@ -1258,9 +1258,9 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1258
1258
|
"is-unchecked": !s,
|
|
1259
1259
|
[`theme-${f}`]: !!f
|
|
1260
1260
|
}))
|
|
1261
|
-
}), [
|
|
1261
|
+
}), [c("div", {
|
|
1262
1262
|
className: R("input-wrapper")
|
|
1263
|
-
}, [
|
|
1263
|
+
}, [c("input", h({
|
|
1264
1264
|
ref: o,
|
|
1265
1265
|
type: "checkbox",
|
|
1266
1266
|
id: b,
|
|
@@ -1273,15 +1273,15 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1273
1273
|
"aria-checked": C ? "mixed" : !!s
|
|
1274
1274
|
}, p?.readOnly ? {
|
|
1275
1275
|
readOnly: p.readOnly
|
|
1276
|
-
} : {}, p), null),
|
|
1276
|
+
} : {}, p), null), c("div", {
|
|
1277
1277
|
className: R("input-placeholder")
|
|
1278
|
-
}, [
|
|
1278
|
+
}, [c("div", {
|
|
1279
1279
|
className: R("input-background")
|
|
1280
|
-
}, null),
|
|
1280
|
+
}, null), c("div", {
|
|
1281
1281
|
className: R("input-indicator")
|
|
1282
1282
|
}, [I({
|
|
1283
1283
|
icon: C ? Ra : ja
|
|
1284
|
-
})])])]),
|
|
1284
|
+
})])])]), c("div", {
|
|
1285
1285
|
className: R("content")
|
|
1286
1286
|
}, [i && U({
|
|
1287
1287
|
htmlFor: b,
|
|
@@ -1307,7 +1307,7 @@ const Ao = {
|
|
|
1307
1307
|
const r = k(), a = w(), n = Mt(), o = T(() => e.id || n), s = ie(null), {
|
|
1308
1308
|
isAnyDisabled: i,
|
|
1309
1309
|
disabledStateProps: u,
|
|
1310
|
-
otherProps:
|
|
1310
|
+
otherProps: l
|
|
1311
1311
|
} = H(T(() => ({
|
|
1312
1312
|
...e,
|
|
1313
1313
|
...r
|
|
@@ -1320,7 +1320,7 @@ const Ao = {
|
|
|
1320
1320
|
const f = (m, p, g, b) => {
|
|
1321
1321
|
i.value || (b?.stopImmediatePropagation?.(), t("change", m, p, g, b));
|
|
1322
1322
|
};
|
|
1323
|
-
return () =>
|
|
1323
|
+
return () => c(No, h(l.value, {
|
|
1324
1324
|
className: e.class,
|
|
1325
1325
|
theme: e.theme || a.value,
|
|
1326
1326
|
inputId: o.value,
|
|
@@ -1349,7 +1349,7 @@ const Ao = {
|
|
|
1349
1349
|
ref: a,
|
|
1350
1350
|
...n
|
|
1351
1351
|
} = e;
|
|
1352
|
-
return
|
|
1352
|
+
return c("hr", h({
|
|
1353
1353
|
ref: a
|
|
1354
1354
|
}, n, {
|
|
1355
1355
|
className: A(t, ko({
|
|
@@ -1358,7 +1358,7 @@ const Ao = {
|
|
|
1358
1358
|
}), null);
|
|
1359
1359
|
}, yi = /* @__PURE__ */ y((e) => {
|
|
1360
1360
|
const t = k(), r = w();
|
|
1361
|
-
return () =>
|
|
1361
|
+
return () => c(Po, h(t, e, {
|
|
1362
1362
|
className: e.class,
|
|
1363
1363
|
theme: e.theme || r.value
|
|
1364
1364
|
}), null);
|
|
@@ -1384,17 +1384,17 @@ const $o = "lumx-flag", {
|
|
|
1384
1384
|
truncate: s,
|
|
1385
1385
|
Text: i,
|
|
1386
1386
|
...u
|
|
1387
|
-
} = e,
|
|
1388
|
-
return
|
|
1387
|
+
} = e, l = a || (o === ve.light ? x.dark : x.light), d = !!s;
|
|
1388
|
+
return c("div", h(u, {
|
|
1389
1389
|
className: A(n, Co({
|
|
1390
|
-
[`color-${
|
|
1390
|
+
[`color-${l}`]: !!l,
|
|
1391
1391
|
"is-truncated": d
|
|
1392
1392
|
}))
|
|
1393
1393
|
}), [r && I({
|
|
1394
1394
|
icon: r,
|
|
1395
1395
|
size: E.xxs,
|
|
1396
1396
|
className: Er("icon")
|
|
1397
|
-
}),
|
|
1397
|
+
}), c(i, {
|
|
1398
1398
|
as: "span",
|
|
1399
1399
|
truncate: !!s,
|
|
1400
1400
|
typography: "overline",
|
|
@@ -1406,7 +1406,7 @@ const $o = "lumx-flag", {
|
|
|
1406
1406
|
slots: t
|
|
1407
1407
|
}) => {
|
|
1408
1408
|
const r = k(), a = w();
|
|
1409
|
-
return () =>
|
|
1409
|
+
return () => c(_o, h(e, r, {
|
|
1410
1410
|
className: e.class,
|
|
1411
1411
|
theme: e.theme || a.value,
|
|
1412
1412
|
children: t.default?.(),
|
|
@@ -1445,9 +1445,9 @@ function Oo(e) {
|
|
|
1445
1445
|
noShrink: s,
|
|
1446
1446
|
vAlign: i,
|
|
1447
1447
|
wrap: u,
|
|
1448
|
-
orientation:
|
|
1448
|
+
orientation: l,
|
|
1449
1449
|
...d
|
|
1450
|
-
} = e, f =
|
|
1450
|
+
} = e, f = l ?? (u || n || i ? Va.horizontal : null);
|
|
1451
1451
|
return {
|
|
1452
1452
|
...d,
|
|
1453
1453
|
className: A(t, Lo({
|
|
@@ -1472,7 +1472,7 @@ const Ai = /* @__PURE__ */ y((e, {
|
|
|
1472
1472
|
...r,
|
|
1473
1473
|
className: e.class
|
|
1474
1474
|
});
|
|
1475
|
-
return
|
|
1475
|
+
return c(a, n, {
|
|
1476
1476
|
default: () => [t.default?.()]
|
|
1477
1477
|
});
|
|
1478
1478
|
};
|
|
@@ -1519,20 +1519,20 @@ function Mo() {
|
|
|
1519
1519
|
if (Rr) return pt;
|
|
1520
1520
|
Rr = 1;
|
|
1521
1521
|
var e = jo(), t = jt(), r = Ro(), a = NaN, n = /^[-+]0x[0-9a-f]+$/i, o = /^0b[01]+$/i, s = /^0o[0-7]+$/i, i = parseInt;
|
|
1522
|
-
function u(
|
|
1523
|
-
if (typeof
|
|
1524
|
-
return
|
|
1525
|
-
if (r(
|
|
1522
|
+
function u(l) {
|
|
1523
|
+
if (typeof l == "number")
|
|
1524
|
+
return l;
|
|
1525
|
+
if (r(l))
|
|
1526
1526
|
return a;
|
|
1527
|
-
if (t(
|
|
1528
|
-
var d = typeof
|
|
1529
|
-
|
|
1527
|
+
if (t(l)) {
|
|
1528
|
+
var d = typeof l.valueOf == "function" ? l.valueOf() : l;
|
|
1529
|
+
l = t(d) ? d + "" : d;
|
|
1530
1530
|
}
|
|
1531
|
-
if (typeof
|
|
1532
|
-
return
|
|
1533
|
-
|
|
1534
|
-
var f = o.test(
|
|
1535
|
-
return f || s.test(
|
|
1531
|
+
if (typeof l != "string")
|
|
1532
|
+
return l === 0 ? l : +l;
|
|
1533
|
+
l = e(l);
|
|
1534
|
+
var f = o.test(l);
|
|
1535
|
+
return f || s.test(l) ? i(l.slice(2), f ? 2 : 8) : n.test(l) ? a : +l;
|
|
1536
1536
|
}
|
|
1537
1537
|
return pt = u, pt;
|
|
1538
1538
|
}
|
|
@@ -1588,9 +1588,9 @@ const Vo = "GridColumn", ba = "lumx-grid-column", Wo = {}, Te = (e) => {
|
|
|
1588
1588
|
className: s,
|
|
1589
1589
|
style: i = {},
|
|
1590
1590
|
ref: u,
|
|
1591
|
-
...
|
|
1591
|
+
...l
|
|
1592
1592
|
} = e;
|
|
1593
|
-
return
|
|
1593
|
+
return c(t, h(l, {
|
|
1594
1594
|
ref: u,
|
|
1595
1595
|
className: A(s, ba),
|
|
1596
1596
|
style: {
|
|
@@ -1610,7 +1610,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1610
1610
|
slots: t
|
|
1611
1611
|
}) => {
|
|
1612
1612
|
const r = k();
|
|
1613
|
-
return () =>
|
|
1613
|
+
return () => c(Te, h(e, r, {
|
|
1614
1614
|
className: e.class,
|
|
1615
1615
|
children: t.default?.()
|
|
1616
1616
|
}), null);
|
|
@@ -1650,7 +1650,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1650
1650
|
class: o
|
|
1651
1651
|
};
|
|
1652
1652
|
});
|
|
1653
|
-
return () =>
|
|
1653
|
+
return () => c(Rt, n.value, {
|
|
1654
1654
|
default: () => [t.default?.()]
|
|
1655
1655
|
});
|
|
1656
1656
|
}, {
|
|
@@ -1678,7 +1678,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1678
1678
|
slots: t
|
|
1679
1679
|
}) => {
|
|
1680
1680
|
const r = k(), a = w();
|
|
1681
|
-
return () =>
|
|
1681
|
+
return () => c(K, h(e, r, {
|
|
1682
1682
|
className: e.class,
|
|
1683
1683
|
theme: e.theme || a.value,
|
|
1684
1684
|
children: t.default?.()
|
|
@@ -1692,7 +1692,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1692
1692
|
slots: t
|
|
1693
1693
|
}) => {
|
|
1694
1694
|
const r = k(), a = w();
|
|
1695
|
-
return () =>
|
|
1695
|
+
return () => c(U, h(e, r, {
|
|
1696
1696
|
className: e.class,
|
|
1697
1697
|
theme: e.theme || a.value,
|
|
1698
1698
|
children: t.default?.()
|
|
@@ -1719,7 +1719,7 @@ const Zo = "lumx-link", {
|
|
|
1719
1719
|
rightIcon: s,
|
|
1720
1720
|
typography: i,
|
|
1721
1721
|
as: u,
|
|
1722
|
-
ref:
|
|
1722
|
+
ref: l,
|
|
1723
1723
|
isDisabled: d,
|
|
1724
1724
|
theme: f,
|
|
1725
1725
|
href: m,
|
|
@@ -1732,22 +1732,22 @@ const Zo = "lumx-link", {
|
|
|
1732
1732
|
[`color-${v}`]: !!v,
|
|
1733
1733
|
[`color-variant-${C}`]: !!C,
|
|
1734
1734
|
"has-typography": !!i
|
|
1735
|
-
}), i && Bt(i)), L =
|
|
1735
|
+
}), i && Bt(i)), L = c(G, null, [o && c(G, null, [pe(" "), I({
|
|
1736
1736
|
icon: o,
|
|
1737
1737
|
className: yt("left-icon")
|
|
1738
|
-
}), pe(" ")]), t &&
|
|
1738
|
+
}), pe(" ")]), t && c("span", {
|
|
1739
1739
|
className: yt("content")
|
|
1740
|
-
}, [t]), s &&
|
|
1740
|
+
}, [t]), s && c(G, null, [pe(" "), I({
|
|
1741
1741
|
icon: s,
|
|
1742
1742
|
className: yt("right-icon")
|
|
1743
1743
|
}), pe(" ")])]), B = {
|
|
1744
|
-
ref:
|
|
1744
|
+
ref: l,
|
|
1745
1745
|
className: O,
|
|
1746
1746
|
onClick: d ? void 0 : g,
|
|
1747
1747
|
...b,
|
|
1748
1748
|
..._
|
|
1749
1749
|
};
|
|
1750
|
-
return m && (B.href = m), p && (B.target = p),
|
|
1750
|
+
return m && (B.href = m), p && (B.target = p), c(P, B, Qo(L) ? L : {
|
|
1751
1751
|
default: () => [L]
|
|
1752
1752
|
});
|
|
1753
1753
|
}, rs = {
|
|
@@ -1761,7 +1761,7 @@ const Zo = "lumx-link", {
|
|
|
1761
1761
|
} = e, {
|
|
1762
1762
|
isAnyDisabled: i,
|
|
1763
1763
|
disabledStateProps: u,
|
|
1764
|
-
otherProps:
|
|
1764
|
+
otherProps: l
|
|
1765
1765
|
} = H(T(() => ({
|
|
1766
1766
|
...s,
|
|
1767
1767
|
...r
|
|
@@ -1769,8 +1769,8 @@ const Zo = "lumx-link", {
|
|
|
1769
1769
|
i.value || (f?.stopImmediatePropagation?.(), t("click", f));
|
|
1770
1770
|
};
|
|
1771
1771
|
return () => {
|
|
1772
|
-
const m = a.default?.() ||
|
|
1773
|
-
return
|
|
1772
|
+
const m = a.default?.() || l.value.label;
|
|
1773
|
+
return c(ts, h(l.value, u.value, {
|
|
1774
1774
|
className: o,
|
|
1775
1775
|
theme: e.theme || n.value,
|
|
1776
1776
|
isDisabled: i.value,
|
|
@@ -1783,7 +1783,12 @@ const Zo = "lumx-link", {
|
|
|
1783
1783
|
inheritAttrs: !1,
|
|
1784
1784
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
1785
1785
|
props: S()("as", "class", "color", "colorVariant", "disabled", "href", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "typography", "aria-disabled"),
|
|
1786
|
-
emits: rs
|
|
1786
|
+
emits: rs,
|
|
1787
|
+
// Enable compatibility with @vue/compat for event listeners
|
|
1788
|
+
compatConfig: {
|
|
1789
|
+
MODE: 3
|
|
1790
|
+
// Use Vue 3 behavior for this component
|
|
1791
|
+
}
|
|
1787
1792
|
}), as = "Message", ya = "lumx-message", {
|
|
1788
1793
|
block: ns,
|
|
1789
1794
|
element: Nt
|
|
@@ -1815,24 +1820,24 @@ const Zo = "lumx-link", {
|
|
|
1815
1820
|
ref: i,
|
|
1816
1821
|
...u
|
|
1817
1822
|
} = e, {
|
|
1818
|
-
color:
|
|
1823
|
+
color: l,
|
|
1819
1824
|
icon: d
|
|
1820
1825
|
} = os[n] || {}, {
|
|
1821
1826
|
onClick: f,
|
|
1822
1827
|
label: m
|
|
1823
1828
|
} = s || {}, p = a && n === "info" && f && m;
|
|
1824
|
-
return
|
|
1829
|
+
return c("div", h(u, {
|
|
1825
1830
|
ref: i,
|
|
1826
1831
|
className: A(r, ns({
|
|
1827
|
-
[`color-${
|
|
1832
|
+
[`color-${l}`]: !!l,
|
|
1828
1833
|
"has-background": a
|
|
1829
1834
|
}))
|
|
1830
1835
|
}), [(o || d) && I({
|
|
1831
1836
|
className: Nt("icon"),
|
|
1832
1837
|
icon: o || d,
|
|
1833
1838
|
size: E.xs,
|
|
1834
|
-
color:
|
|
1835
|
-
}),
|
|
1839
|
+
color: l
|
|
1840
|
+
}), c("div", {
|
|
1836
1841
|
className: Nt("text")
|
|
1837
1842
|
}, [t]), p && de({
|
|
1838
1843
|
className: Nt("close-button"),
|
|
@@ -1851,7 +1856,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1851
1856
|
const a = k(), {
|
|
1852
1857
|
closeButtonLabel: n
|
|
1853
1858
|
} = e;
|
|
1854
|
-
return () =>
|
|
1859
|
+
return () => c(qt, h(e, a, {
|
|
1855
1860
|
className: e.class,
|
|
1856
1861
|
children: t.default?.(),
|
|
1857
1862
|
closeButtonProps: n ? {
|
|
@@ -1878,7 +1883,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1878
1883
|
isChecked: s = t,
|
|
1879
1884
|
label: i,
|
|
1880
1885
|
name: u,
|
|
1881
|
-
ref:
|
|
1886
|
+
ref: l,
|
|
1882
1887
|
onChange: d,
|
|
1883
1888
|
theme: f,
|
|
1884
1889
|
value: m,
|
|
@@ -1889,8 +1894,8 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1889
1894
|
} = e, C = (P) => {
|
|
1890
1895
|
d && d(m, u, P);
|
|
1891
1896
|
};
|
|
1892
|
-
return
|
|
1893
|
-
ref:
|
|
1897
|
+
return c("div", h({
|
|
1898
|
+
ref: l
|
|
1894
1899
|
}, v, {
|
|
1895
1900
|
className: A(r, is({
|
|
1896
1901
|
"is-checked": s,
|
|
@@ -1898,9 +1903,9 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1898
1903
|
"is-unchecked": !s,
|
|
1899
1904
|
[`theme-${f}`]: !!f
|
|
1900
1905
|
}))
|
|
1901
|
-
}), [
|
|
1906
|
+
}), [c("div", {
|
|
1902
1907
|
className: M("input-wrapper")
|
|
1903
|
-
}, [
|
|
1908
|
+
}, [c("input", h({
|
|
1904
1909
|
ref: o,
|
|
1905
1910
|
className: M("input-native"),
|
|
1906
1911
|
id: b,
|
|
@@ -1912,13 +1917,13 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1912
1917
|
"aria-describedby": a ? `${b}-helper` : void 0
|
|
1913
1918
|
}, p?.readOnly ? {
|
|
1914
1919
|
readOnly: p.readOnly
|
|
1915
|
-
} : {}, p), null),
|
|
1920
|
+
} : {}, p), null), c("div", {
|
|
1916
1921
|
className: M("input-placeholder")
|
|
1917
|
-
}, [
|
|
1922
|
+
}, [c("div", {
|
|
1918
1923
|
className: M("input-background")
|
|
1919
|
-
}, null),
|
|
1924
|
+
}, null), c("div", {
|
|
1920
1925
|
className: M("input-indicator")
|
|
1921
|
-
}, null)])]),
|
|
1926
|
+
}, null)])]), c("div", {
|
|
1922
1927
|
className: M("content")
|
|
1923
1928
|
}, [i && U({
|
|
1924
1929
|
htmlFor: b,
|
|
@@ -1943,15 +1948,15 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1943
1948
|
} = H(T(() => ({
|
|
1944
1949
|
...e,
|
|
1945
1950
|
...r
|
|
1946
|
-
}))),
|
|
1951
|
+
}))), l = (d, f, m) => {
|
|
1947
1952
|
s.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
|
|
1948
1953
|
};
|
|
1949
|
-
return () =>
|
|
1954
|
+
return () => c(ls, h(u.value, {
|
|
1950
1955
|
className: e.class,
|
|
1951
1956
|
theme: e.theme || a.value,
|
|
1952
1957
|
inputId: o.value,
|
|
1953
1958
|
isDisabled: s.value,
|
|
1954
|
-
onChange:
|
|
1959
|
+
onChange: l,
|
|
1955
1960
|
label: e.label,
|
|
1956
1961
|
inputProps: {
|
|
1957
1962
|
...e.inputProps,
|
|
@@ -1972,7 +1977,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1972
1977
|
ref: a,
|
|
1973
1978
|
...n
|
|
1974
1979
|
} = e;
|
|
1975
|
-
return
|
|
1980
|
+
return c("div", h({
|
|
1976
1981
|
ref: a
|
|
1977
1982
|
}, n, {
|
|
1978
1983
|
className: A(r, Na)
|
|
@@ -1985,7 +1990,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
1985
1990
|
slots: t
|
|
1986
1991
|
}) => {
|
|
1987
1992
|
const r = k();
|
|
1988
|
-
return () =>
|
|
1993
|
+
return () => c($e, h(e, r, {
|
|
1989
1994
|
className: e.class,
|
|
1990
1995
|
children: t.default?.()
|
|
1991
1996
|
}), null);
|
|
@@ -2004,7 +2009,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2004
2009
|
ref: o,
|
|
2005
2010
|
...s
|
|
2006
2011
|
} = e;
|
|
2007
|
-
return
|
|
2012
|
+
return c("div", h({
|
|
2008
2013
|
ref: o
|
|
2009
2014
|
}, s, {
|
|
2010
2015
|
className: A(t, ms({
|
|
@@ -2032,11 +2037,11 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2032
2037
|
width: s,
|
|
2033
2038
|
color: i,
|
|
2034
2039
|
ref: u,
|
|
2035
|
-
...
|
|
2040
|
+
...l
|
|
2036
2041
|
} = e;
|
|
2037
|
-
return
|
|
2042
|
+
return c("div", h({
|
|
2038
2043
|
ref: u
|
|
2039
|
-
},
|
|
2044
|
+
}, l, {
|
|
2040
2045
|
className: A(r, gs({
|
|
2041
2046
|
[`aspect-ratio-${t}`]: !!t,
|
|
2042
2047
|
[`height-${a}`]: !!(!t && a),
|
|
@@ -2045,7 +2050,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2045
2050
|
[`width-${s}`]: !!s,
|
|
2046
2051
|
[`color-${i}`]: !!i
|
|
2047
2052
|
}))
|
|
2048
|
-
}), [
|
|
2053
|
+
}), [c("div", {
|
|
2049
2054
|
className: vs("inner")
|
|
2050
2055
|
}, null)]);
|
|
2051
2056
|
}, As = "lumx-skeleton-typography", {
|
|
@@ -2061,7 +2066,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2061
2066
|
ref: s,
|
|
2062
2067
|
...i
|
|
2063
2068
|
} = e;
|
|
2064
|
-
return
|
|
2069
|
+
return c("div", h({
|
|
2065
2070
|
ref: s
|
|
2066
2071
|
}, i, {
|
|
2067
2072
|
className: A(t, Ss({
|
|
@@ -2073,12 +2078,12 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2073
2078
|
...i.style,
|
|
2074
2079
|
width: n
|
|
2075
2080
|
}
|
|
2076
|
-
}), [
|
|
2081
|
+
}), [c("div", {
|
|
2077
2082
|
className: ks("inner")
|
|
2078
2083
|
}, null)]);
|
|
2079
2084
|
}, Ii = /* @__PURE__ */ y((e) => {
|
|
2080
2085
|
const t = k(), r = w();
|
|
2081
|
-
return () =>
|
|
2086
|
+
return () => c(hs, h(e, t, {
|
|
2082
2087
|
className: e.class,
|
|
2083
2088
|
theme: e.theme || r.value
|
|
2084
2089
|
}), null);
|
|
@@ -2088,7 +2093,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2088
2093
|
props: S()("class", "size", "color", "theme")
|
|
2089
2094
|
}), Ei = /* @__PURE__ */ y((e) => {
|
|
2090
2095
|
const t = k(), r = w();
|
|
2091
|
-
return () =>
|
|
2096
|
+
return () => c(Ns, h(e, t, {
|
|
2092
2097
|
className: e.class,
|
|
2093
2098
|
theme: e.theme || r.value
|
|
2094
2099
|
}), null);
|
|
@@ -2098,7 +2103,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2098
2103
|
props: S()("class", "aspectRatio", "height", "variant", "width", "color", "theme")
|
|
2099
2104
|
}), Li = /* @__PURE__ */ y((e) => {
|
|
2100
2105
|
const t = k(), r = w();
|
|
2101
|
-
return () =>
|
|
2106
|
+
return () => c(Ps, h(e, t, {
|
|
2102
2107
|
className: e.class,
|
|
2103
2108
|
theme: e.theme || r.value
|
|
2104
2109
|
}), null);
|
|
@@ -2121,7 +2126,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2121
2126
|
isChecked: s = t,
|
|
2122
2127
|
label: i,
|
|
2123
2128
|
name: u,
|
|
2124
|
-
ref:
|
|
2129
|
+
ref: l,
|
|
2125
2130
|
onChange: d,
|
|
2126
2131
|
theme: f,
|
|
2127
2132
|
value: m,
|
|
@@ -2133,8 +2138,8 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2133
2138
|
} = e, P = (_) => {
|
|
2134
2139
|
d && d(!s, m, u, _);
|
|
2135
2140
|
};
|
|
2136
|
-
return
|
|
2137
|
-
ref:
|
|
2141
|
+
return c("div", h({
|
|
2142
|
+
ref: l
|
|
2138
2143
|
}, C, {
|
|
2139
2144
|
className: A(r, $s({
|
|
2140
2145
|
"is-checked": s,
|
|
@@ -2143,9 +2148,9 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2143
2148
|
[`position-${v}`]: !!v,
|
|
2144
2149
|
[`theme-${f}`]: !!f
|
|
2145
2150
|
}))
|
|
2146
|
-
}), [
|
|
2151
|
+
}), [c("div", {
|
|
2147
2152
|
className: q("input-wrapper")
|
|
2148
|
-
}, [
|
|
2153
|
+
}, [c("input", h({
|
|
2149
2154
|
ref: o,
|
|
2150
2155
|
type: "checkbox",
|
|
2151
2156
|
role: "switch",
|
|
@@ -2159,13 +2164,13 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2159
2164
|
"aria-checked": !!s
|
|
2160
2165
|
}, p?.readOnly ? {
|
|
2161
2166
|
readOnly: p.readOnly
|
|
2162
|
-
} : {}, p), null),
|
|
2167
|
+
} : {}, p), null), c("div", {
|
|
2163
2168
|
className: q("input-placeholder")
|
|
2164
|
-
}, [
|
|
2169
|
+
}, [c("div", {
|
|
2165
2170
|
className: q("input-background")
|
|
2166
|
-
}, null),
|
|
2171
|
+
}, null), c("div", {
|
|
2167
2172
|
className: q("input-indicator")
|
|
2168
|
-
}, null)])]),
|
|
2173
|
+
}, null)])]), c("div", {
|
|
2169
2174
|
className: q("content")
|
|
2170
2175
|
}, [i && U({
|
|
2171
2176
|
htmlFor: b,
|
|
@@ -2187,14 +2192,14 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2187
2192
|
const a = k(), n = w(), o = Mt(), s = T(() => e.id || o), {
|
|
2188
2193
|
isAnyDisabled: i,
|
|
2189
2194
|
disabledStateProps: u,
|
|
2190
|
-
otherProps:
|
|
2195
|
+
otherProps: l
|
|
2191
2196
|
} = H(T(() => ({
|
|
2192
2197
|
...e,
|
|
2193
2198
|
...a
|
|
2194
2199
|
}))), d = (f, m, p, g) => {
|
|
2195
2200
|
i.value || (g.stopImmediatePropagation(), t("change", f, m, p, g));
|
|
2196
2201
|
};
|
|
2197
|
-
return () =>
|
|
2202
|
+
return () => c(_s, h(l.value, {
|
|
2198
2203
|
className: e.class,
|
|
2199
2204
|
theme: e.theme || n.value,
|
|
2200
2205
|
inputId: s.value,
|
|
@@ -2225,7 +2230,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2225
2230
|
theme: s,
|
|
2226
2231
|
...i
|
|
2227
2232
|
} = e;
|
|
2228
|
-
return
|
|
2233
|
+
return c("table", h({
|
|
2229
2234
|
ref: o
|
|
2230
2235
|
}, i, {
|
|
2231
2236
|
className: A(r, ws({
|
|
@@ -2238,7 +2243,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2238
2243
|
slots: t
|
|
2239
2244
|
}) => {
|
|
2240
2245
|
const r = k(), a = w();
|
|
2241
|
-
return () =>
|
|
2246
|
+
return () => c(Is, h(e, r, {
|
|
2242
2247
|
className: e.class,
|
|
2243
2248
|
theme: e.theme || a.value,
|
|
2244
2249
|
children: t.default?.()
|
|
@@ -2254,7 +2259,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2254
2259
|
ref: a,
|
|
2255
2260
|
...n
|
|
2256
2261
|
} = e;
|
|
2257
|
-
return
|
|
2262
|
+
return c("tbody", h({
|
|
2258
2263
|
ref: a
|
|
2259
2264
|
}, n, {
|
|
2260
2265
|
className: A(r, Es)
|
|
@@ -2263,7 +2268,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2263
2268
|
slots: t
|
|
2264
2269
|
}) => {
|
|
2265
2270
|
const r = k();
|
|
2266
|
-
return () =>
|
|
2271
|
+
return () => c(Ls, h(e, r, {
|
|
2267
2272
|
className: e.class,
|
|
2268
2273
|
children: t.default?.()
|
|
2269
2274
|
}), null);
|
|
@@ -2291,7 +2296,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2291
2296
|
ref: s,
|
|
2292
2297
|
sortOrder: i,
|
|
2293
2298
|
variant: u = Os.variant,
|
|
2294
|
-
...
|
|
2299
|
+
...l
|
|
2295
2300
|
} = e;
|
|
2296
2301
|
console.log({
|
|
2297
2302
|
onHeaderClick: o,
|
|
@@ -2302,16 +2307,16 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2302
2307
|
onClick: o
|
|
2303
2308
|
} : void 0;
|
|
2304
2309
|
let m;
|
|
2305
|
-
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")),
|
|
2310
|
+
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), c(G, null, [u === xt.head && c("th", h({
|
|
2306
2311
|
ref: s
|
|
2307
|
-
},
|
|
2312
|
+
}, l, {
|
|
2308
2313
|
className: A(r, Hr({
|
|
2309
2314
|
"is-sortable": n,
|
|
2310
2315
|
"is-sorted": n && !!i,
|
|
2311
2316
|
head: !0
|
|
2312
2317
|
})),
|
|
2313
2318
|
"aria-sort": m
|
|
2314
|
-
}), [
|
|
2319
|
+
}), [c(d, h({
|
|
2315
2320
|
className: `${z}-wrapper`
|
|
2316
2321
|
}, f), {
|
|
2317
2322
|
default: () => [a && !n && I({
|
|
@@ -2326,16 +2331,16 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2326
2331
|
className: `${z}-icon`,
|
|
2327
2332
|
icon: Ha,
|
|
2328
2333
|
size: E.xxs
|
|
2329
|
-
}),
|
|
2334
|
+
}), c("div", {
|
|
2330
2335
|
className: `${z}-content`
|
|
2331
2336
|
}, [t])]
|
|
2332
|
-
})]), u === xt.body &&
|
|
2337
|
+
})]), u === xt.body && c("td", h({
|
|
2333
2338
|
ref: s
|
|
2334
|
-
},
|
|
2339
|
+
}, l, {
|
|
2335
2340
|
className: A(r, Hr({
|
|
2336
2341
|
body: !0
|
|
2337
2342
|
}))
|
|
2338
|
-
}), [
|
|
2343
|
+
}), [c("div", {
|
|
2339
2344
|
className: `${z}-content`
|
|
2340
2345
|
}, [t])])]);
|
|
2341
2346
|
}, wt = (e) => {
|
|
@@ -2359,10 +2364,16 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2359
2364
|
const {
|
|
2360
2365
|
onHeaderClick: s,
|
|
2361
2366
|
...i
|
|
2367
|
+
} = e, {
|
|
2368
|
+
onHeaderClick: u,
|
|
2369
|
+
...l
|
|
2362
2370
|
} = a;
|
|
2363
|
-
return
|
|
2364
|
-
className: e.class,
|
|
2371
|
+
return console.log({
|
|
2365
2372
|
onHeaderClick: n,
|
|
2373
|
+
isSortable: e.isSortable
|
|
2374
|
+
}), c(Bs, h(i, l, {
|
|
2375
|
+
className: e.class,
|
|
2376
|
+
onHeaderClick: o || e.isSortable ? n : void 0,
|
|
2366
2377
|
children: r.default?.()
|
|
2367
2378
|
}), null);
|
|
2368
2379
|
};
|
|
@@ -2378,7 +2389,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2378
2389
|
ref: a,
|
|
2379
2390
|
...n
|
|
2380
2391
|
} = e;
|
|
2381
|
-
return
|
|
2392
|
+
return c("thead", h({
|
|
2382
2393
|
ref: a
|
|
2383
2394
|
}, n, {
|
|
2384
2395
|
className: A(r, Rs)
|
|
@@ -2387,7 +2398,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2387
2398
|
slots: t
|
|
2388
2399
|
}) => {
|
|
2389
2400
|
const r = k();
|
|
2390
|
-
return () =>
|
|
2401
|
+
return () => c(Ms, h(e, r, {
|
|
2391
2402
|
className: e.class,
|
|
2392
2403
|
children: t.default?.()
|
|
2393
2404
|
}), null);
|
|
@@ -2407,17 +2418,17 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2407
2418
|
tabIndex: s,
|
|
2408
2419
|
"aria-disabled": i,
|
|
2409
2420
|
...u
|
|
2410
|
-
} = e,
|
|
2411
|
-
return
|
|
2421
|
+
} = e, l = !!i;
|
|
2422
|
+
return c("tr", h({
|
|
2412
2423
|
ref: o,
|
|
2413
2424
|
"aria-disabled": i
|
|
2414
2425
|
}, s !== void 0 ? {
|
|
2415
2426
|
tabIndex: s
|
|
2416
2427
|
} : {}, u, {
|
|
2417
2428
|
className: A(r, Ds({
|
|
2418
|
-
"is-clickable": a && !
|
|
2419
|
-
"is-disabled":
|
|
2420
|
-
"is-selected": n && !
|
|
2429
|
+
"is-clickable": a && !l,
|
|
2430
|
+
"is-disabled": l,
|
|
2431
|
+
"is-selected": n && !l
|
|
2421
2432
|
}))
|
|
2422
2433
|
}), [t]);
|
|
2423
2434
|
}, Di = /* @__PURE__ */ y((e, {
|
|
@@ -2430,7 +2441,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2430
2441
|
...e,
|
|
2431
2442
|
...r
|
|
2432
2443
|
})));
|
|
2433
|
-
return () =>
|
|
2444
|
+
return () => c(Fs, h(n.value, {
|
|
2434
2445
|
className: e.class,
|
|
2435
2446
|
tabIndex: e.isClickable && !a.value ? 0 : -1,
|
|
2436
2447
|
"aria-disabled": a.value,
|
|
@@ -2485,9 +2496,9 @@ function zs({
|
|
|
2485
2496
|
return { visibility: "hidden" };
|
|
2486
2497
|
if (!o || !n.height || !n.width)
|
|
2487
2498
|
return {};
|
|
2488
|
-
const s = n.height / o.height, i = n.width / o.width, u = Math.min(i, s),
|
|
2499
|
+
const s = n.height / o.height, i = n.width / o.width, u = Math.min(i, s), l = Math.abs((r?.y || 0) - 1) / 2, d = zr({
|
|
2489
2500
|
scale: u,
|
|
2490
|
-
focusPoint:
|
|
2501
|
+
focusPoint: l,
|
|
2491
2502
|
imageSize: n.height,
|
|
2492
2503
|
containerSize: o.height
|
|
2493
2504
|
}), f = Math.abs((r?.x || 0) + 1) / 2;
|
|
@@ -2514,7 +2525,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2514
2525
|
crossOrigin: s,
|
|
2515
2526
|
ref: i,
|
|
2516
2527
|
fallback: u = Gr.fallback,
|
|
2517
|
-
focusPointStyle:
|
|
2528
|
+
focusPointStyle: l,
|
|
2518
2529
|
fillHeight: d,
|
|
2519
2530
|
image: f,
|
|
2520
2531
|
imgProps: m,
|
|
@@ -2556,9 +2567,9 @@ const Gs = "lumx-thumbnail", {
|
|
|
2556
2567
|
"fill-height": d
|
|
2557
2568
|
})), ae = N && C?.current?.complete && C?.current || void 0, Aa = ae ? {
|
|
2558
2569
|
backgroundImage: `url(${ae.src})`
|
|
2559
|
-
} : void 0, zt =
|
|
2570
|
+
} : void 0, zt = c(G, null, [c("span", {
|
|
2560
2571
|
className: se("background")
|
|
2561
|
-
}, [
|
|
2572
|
+
}, [c("img", h({
|
|
2562
2573
|
width: ae?.naturalWidth,
|
|
2563
2574
|
height: ae?.naturalHeight
|
|
2564
2575
|
}, m, {
|
|
@@ -2567,7 +2578,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2567
2578
|
width: N ? m?.width || ae?.naturalWidth : void 0,
|
|
2568
2579
|
...m?.style,
|
|
2569
2580
|
...Ce,
|
|
2570
|
-
...
|
|
2581
|
+
...l,
|
|
2571
2582
|
...Aa
|
|
2572
2583
|
},
|
|
2573
2584
|
ref: p,
|
|
@@ -2579,7 +2590,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2579
2590
|
src: f,
|
|
2580
2591
|
alt: r,
|
|
2581
2592
|
loading: v
|
|
2582
|
-
}), null), !N && J &&
|
|
2593
|
+
}), null), !N && J && c("span", {
|
|
2583
2594
|
className: se("fallback")
|
|
2584
2595
|
}, [j ? I({
|
|
2585
2596
|
icon: u,
|
|
@@ -2591,7 +2602,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2591
2602
|
...re,
|
|
2592
2603
|
className: Ht,
|
|
2593
2604
|
children: zt
|
|
2594
|
-
}) :
|
|
2605
|
+
}) : c("div", h({
|
|
2595
2606
|
ref: i
|
|
2596
2607
|
}, re, {
|
|
2597
2608
|
className: Ht
|
|
@@ -2630,11 +2641,11 @@ function Ks(e) {
|
|
|
2630
2641
|
element: s.value,
|
|
2631
2642
|
isLoaded: i.value
|
|
2632
2643
|
})
|
|
2633
|
-
),
|
|
2644
|
+
), l = ie(void 0), d = () => {
|
|
2634
2645
|
const m = s.value?.offsetWidth, p = s.value?.offsetHeight;
|
|
2635
2646
|
if (m && p) {
|
|
2636
|
-
const g =
|
|
2637
|
-
(g?.width !== m || g?.height !== p) && (
|
|
2647
|
+
const g = l.value;
|
|
2648
|
+
(g?.width !== m || g?.height !== p) && (l.value = { width: m, height: p });
|
|
2638
2649
|
} else u.value && requestAnimationFrame(d);
|
|
2639
2650
|
};
|
|
2640
2651
|
return W(
|
|
@@ -2650,7 +2661,7 @@ function Ks(e) {
|
|
|
2650
2661
|
focusPoint: a.value,
|
|
2651
2662
|
element: s.value,
|
|
2652
2663
|
imageSize: u.value,
|
|
2653
|
-
containerSize:
|
|
2664
|
+
containerSize: l.value
|
|
2654
2665
|
})
|
|
2655
2666
|
);
|
|
2656
2667
|
}
|
|
@@ -2663,7 +2674,7 @@ const Ys = {
|
|
|
2663
2674
|
}) => {
|
|
2664
2675
|
const a = k(), n = w(), o = ie(), s = wt("onClick"), i = wt("onKeyPress"), {
|
|
2665
2676
|
isAnyDisabled: u,
|
|
2666
|
-
disabledStateProps:
|
|
2677
|
+
disabledStateProps: l,
|
|
2667
2678
|
otherProps: d
|
|
2668
2679
|
} = H(T(() => ({
|
|
2669
2680
|
...e,
|
|
@@ -2683,11 +2694,11 @@ const Ys = {
|
|
|
2683
2694
|
};
|
|
2684
2695
|
return () => {
|
|
2685
2696
|
const v = r.badge?.(), C = r.fallback?.();
|
|
2686
|
-
return
|
|
2697
|
+
return c(Ws, h(d.value, {
|
|
2687
2698
|
className: e.class,
|
|
2688
2699
|
theme: e.theme || n.value,
|
|
2689
2700
|
isAnyDisabled: u.value,
|
|
2690
|
-
disabledStateProps:
|
|
2701
|
+
disabledStateProps: l.value,
|
|
2691
2702
|
focusPointStyle: p.value,
|
|
2692
2703
|
loadingState: f.value,
|
|
2693
2704
|
imgRef: o,
|
|
@@ -2733,7 +2744,7 @@ const Ys = {
|
|
|
2733
2744
|
ref: o,
|
|
2734
2745
|
...s
|
|
2735
2746
|
} = e;
|
|
2736
|
-
return
|
|
2747
|
+
return c("div", h({
|
|
2737
2748
|
ref: o
|
|
2738
2749
|
}, s, {
|
|
2739
2750
|
className: A(a, Xs({
|
|
@@ -2741,18 +2752,18 @@ const Ys = {
|
|
|
2741
2752
|
"has-before": !!r,
|
|
2742
2753
|
"has-label": !!n
|
|
2743
2754
|
}))
|
|
2744
|
-
}), [r &&
|
|
2755
|
+
}), [r && c("div", {
|
|
2745
2756
|
className: St("before")
|
|
2746
|
-
}, [r]), n &&
|
|
2757
|
+
}, [r]), n && c("div", {
|
|
2747
2758
|
className: St("label")
|
|
2748
|
-
}, [n]), t &&
|
|
2759
|
+
}, [n]), t && c("div", {
|
|
2749
2760
|
className: St("after")
|
|
2750
2761
|
}, [t])]);
|
|
2751
2762
|
}, Vi = /* @__PURE__ */ y((e, {
|
|
2752
2763
|
slots: t
|
|
2753
2764
|
}) => {
|
|
2754
2765
|
const r = k();
|
|
2755
|
-
return () =>
|
|
2766
|
+
return () => c(Qs, h(e, r, {
|
|
2756
2767
|
className: e.class,
|
|
2757
2768
|
label: t.default?.(),
|
|
2758
2769
|
before: t.before?.(),
|