@lumx/vue 4.3.2-alpha.31 → 4.3.2-alpha.33
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 +220 -200
- 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,24 +1054,25 @@ 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
|
+
onClick: u
|
|
1073
|
+
}, {
|
|
1072
1074
|
className: e.class,
|
|
1073
1075
|
theme: e.theme || n.value,
|
|
1074
|
-
onClick: u,
|
|
1075
1076
|
children: d
|
|
1076
1077
|
}), null);
|
|
1077
1078
|
};
|
|
@@ -1092,7 +1093,7 @@ const Rt = /* @__PURE__ */ y((e, {
|
|
|
1092
1093
|
label: n,
|
|
1093
1094
|
size: o = _t.size,
|
|
1094
1095
|
...s
|
|
1095
|
-
} = e, i = r ?
|
|
1096
|
+
} = e, i = r ? c("img", {
|
|
1096
1097
|
alt: "",
|
|
1097
1098
|
src: r
|
|
1098
1099
|
}, null) : I({
|
|
@@ -1125,12 +1126,13 @@ const so = {
|
|
|
1125
1126
|
}))), i = (u) => {
|
|
1126
1127
|
n.value || (u.stopImmediatePropagation(), t("click", u));
|
|
1127
1128
|
};
|
|
1128
|
-
return () =>
|
|
1129
|
+
return () => c(de, h(s.value, o.value, {
|
|
1130
|
+
onClick: i
|
|
1131
|
+
}, {
|
|
1129
1132
|
className: e.class,
|
|
1130
1133
|
theme: e.theme || a.value,
|
|
1131
1134
|
title: e.label,
|
|
1132
|
-
label: e.label
|
|
1133
|
-
onClick: i
|
|
1135
|
+
label: e.label
|
|
1134
1136
|
}), null);
|
|
1135
1137
|
}, {
|
|
1136
1138
|
name: "IconButton",
|
|
@@ -1144,7 +1146,7 @@ const so = {
|
|
|
1144
1146
|
className: r,
|
|
1145
1147
|
...a
|
|
1146
1148
|
} = e;
|
|
1147
|
-
return
|
|
1149
|
+
return c("div", h(a, {
|
|
1148
1150
|
className: A(r, da)
|
|
1149
1151
|
}), [t]);
|
|
1150
1152
|
};
|
|
@@ -1155,7 +1157,7 @@ const gi = /* @__PURE__ */ y((e, {
|
|
|
1155
1157
|
slots: t
|
|
1156
1158
|
}) => {
|
|
1157
1159
|
const r = k();
|
|
1158
|
-
return () =>
|
|
1160
|
+
return () => c(Pe, h(e, r, {
|
|
1159
1161
|
className: e.class,
|
|
1160
1162
|
children: t.default?.()
|
|
1161
1163
|
}), null);
|
|
@@ -1178,7 +1180,7 @@ function U(e) {
|
|
|
1178
1180
|
ref: i,
|
|
1179
1181
|
...u
|
|
1180
1182
|
} = e;
|
|
1181
|
-
return
|
|
1183
|
+
return c("label", h({
|
|
1182
1184
|
ref: i
|
|
1183
1185
|
}, u, {
|
|
1184
1186
|
htmlFor: a,
|
|
@@ -1212,7 +1214,7 @@ function K(e) {
|
|
|
1212
1214
|
} = e, {
|
|
1213
1215
|
color: i
|
|
1214
1216
|
} = ho[a] || {};
|
|
1215
|
-
return
|
|
1217
|
+
return c("p", h({
|
|
1216
1218
|
ref: o
|
|
1217
1219
|
}, s, {
|
|
1218
1220
|
className: A(r, go({
|
|
@@ -1237,7 +1239,7 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1237
1239
|
isChecked: s = t,
|
|
1238
1240
|
label: i,
|
|
1239
1241
|
name: u,
|
|
1240
|
-
ref:
|
|
1242
|
+
ref: l,
|
|
1241
1243
|
onChange: d,
|
|
1242
1244
|
theme: f,
|
|
1243
1245
|
value: m,
|
|
@@ -1248,8 +1250,8 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1248
1250
|
} = e, C = s === pa, P = (_) => {
|
|
1249
1251
|
d && d(!s, m, u, _);
|
|
1250
1252
|
};
|
|
1251
|
-
return
|
|
1252
|
-
ref:
|
|
1253
|
+
return c("div", h({
|
|
1254
|
+
ref: l
|
|
1253
1255
|
}, v, {
|
|
1254
1256
|
className: A(r, yo({
|
|
1255
1257
|
// Whether state is intermediate class name will "-checked"
|
|
@@ -1258,9 +1260,9 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1258
1260
|
"is-unchecked": !s,
|
|
1259
1261
|
[`theme-${f}`]: !!f
|
|
1260
1262
|
}))
|
|
1261
|
-
}), [
|
|
1263
|
+
}), [c("div", {
|
|
1262
1264
|
className: R("input-wrapper")
|
|
1263
|
-
}, [
|
|
1265
|
+
}, [c("input", h({
|
|
1264
1266
|
ref: o,
|
|
1265
1267
|
type: "checkbox",
|
|
1266
1268
|
id: b,
|
|
@@ -1273,15 +1275,15 @@ const pa = "intermediate", vo = "lumx-checkbox", {
|
|
|
1273
1275
|
"aria-checked": C ? "mixed" : !!s
|
|
1274
1276
|
}, p?.readOnly ? {
|
|
1275
1277
|
readOnly: p.readOnly
|
|
1276
|
-
} : {}, p), null),
|
|
1278
|
+
} : {}, p), null), c("div", {
|
|
1277
1279
|
className: R("input-placeholder")
|
|
1278
|
-
}, [
|
|
1280
|
+
}, [c("div", {
|
|
1279
1281
|
className: R("input-background")
|
|
1280
|
-
}, null),
|
|
1282
|
+
}, null), c("div", {
|
|
1281
1283
|
className: R("input-indicator")
|
|
1282
1284
|
}, [I({
|
|
1283
1285
|
icon: C ? Ra : ja
|
|
1284
|
-
})])])]),
|
|
1286
|
+
})])])]), c("div", {
|
|
1285
1287
|
className: R("content")
|
|
1286
1288
|
}, [i && U({
|
|
1287
1289
|
htmlFor: b,
|
|
@@ -1307,7 +1309,7 @@ const Ao = {
|
|
|
1307
1309
|
const r = k(), a = w(), n = Mt(), o = T(() => e.id || n), s = ie(null), {
|
|
1308
1310
|
isAnyDisabled: i,
|
|
1309
1311
|
disabledStateProps: u,
|
|
1310
|
-
otherProps:
|
|
1312
|
+
otherProps: l
|
|
1311
1313
|
} = H(T(() => ({
|
|
1312
1314
|
...e,
|
|
1313
1315
|
...r
|
|
@@ -1320,13 +1322,14 @@ const Ao = {
|
|
|
1320
1322
|
const f = (m, p, g, b) => {
|
|
1321
1323
|
i.value || (b?.stopImmediatePropagation?.(), t("change", m, p, g, b));
|
|
1322
1324
|
};
|
|
1323
|
-
return () =>
|
|
1325
|
+
return () => c(No, h(l.value, {
|
|
1326
|
+
onChange: f
|
|
1327
|
+
}, {
|
|
1324
1328
|
className: e.class,
|
|
1325
1329
|
theme: e.theme || a.value,
|
|
1326
1330
|
inputId: o.value,
|
|
1327
1331
|
inputRef: s,
|
|
1328
1332
|
isDisabled: i.value,
|
|
1329
|
-
onChange: f,
|
|
1330
1333
|
label: e.label,
|
|
1331
1334
|
inputProps: {
|
|
1332
1335
|
...e.inputProps,
|
|
@@ -1349,7 +1352,7 @@ const Ao = {
|
|
|
1349
1352
|
ref: a,
|
|
1350
1353
|
...n
|
|
1351
1354
|
} = e;
|
|
1352
|
-
return
|
|
1355
|
+
return c("hr", h({
|
|
1353
1356
|
ref: a
|
|
1354
1357
|
}, n, {
|
|
1355
1358
|
className: A(t, ko({
|
|
@@ -1358,7 +1361,7 @@ const Ao = {
|
|
|
1358
1361
|
}), null);
|
|
1359
1362
|
}, yi = /* @__PURE__ */ y((e) => {
|
|
1360
1363
|
const t = k(), r = w();
|
|
1361
|
-
return () =>
|
|
1364
|
+
return () => c(Po, h(t, e, {
|
|
1362
1365
|
className: e.class,
|
|
1363
1366
|
theme: e.theme || r.value
|
|
1364
1367
|
}), null);
|
|
@@ -1384,17 +1387,17 @@ const $o = "lumx-flag", {
|
|
|
1384
1387
|
truncate: s,
|
|
1385
1388
|
Text: i,
|
|
1386
1389
|
...u
|
|
1387
|
-
} = e,
|
|
1388
|
-
return
|
|
1390
|
+
} = e, l = a || (o === ve.light ? x.dark : x.light), d = !!s;
|
|
1391
|
+
return c("div", h(u, {
|
|
1389
1392
|
className: A(n, Co({
|
|
1390
|
-
[`color-${
|
|
1393
|
+
[`color-${l}`]: !!l,
|
|
1391
1394
|
"is-truncated": d
|
|
1392
1395
|
}))
|
|
1393
1396
|
}), [r && I({
|
|
1394
1397
|
icon: r,
|
|
1395
1398
|
size: E.xxs,
|
|
1396
1399
|
className: Er("icon")
|
|
1397
|
-
}),
|
|
1400
|
+
}), c(i, {
|
|
1398
1401
|
as: "span",
|
|
1399
1402
|
truncate: !!s,
|
|
1400
1403
|
typography: "overline",
|
|
@@ -1406,7 +1409,7 @@ const $o = "lumx-flag", {
|
|
|
1406
1409
|
slots: t
|
|
1407
1410
|
}) => {
|
|
1408
1411
|
const r = k(), a = w();
|
|
1409
|
-
return () =>
|
|
1412
|
+
return () => c(_o, h(e, r, {
|
|
1410
1413
|
className: e.class,
|
|
1411
1414
|
theme: e.theme || a.value,
|
|
1412
1415
|
children: t.default?.(),
|
|
@@ -1445,9 +1448,9 @@ function Oo(e) {
|
|
|
1445
1448
|
noShrink: s,
|
|
1446
1449
|
vAlign: i,
|
|
1447
1450
|
wrap: u,
|
|
1448
|
-
orientation:
|
|
1451
|
+
orientation: l,
|
|
1449
1452
|
...d
|
|
1450
|
-
} = e, f =
|
|
1453
|
+
} = e, f = l ?? (u || n || i ? Va.horizontal : null);
|
|
1451
1454
|
return {
|
|
1452
1455
|
...d,
|
|
1453
1456
|
className: A(t, Lo({
|
|
@@ -1472,7 +1475,7 @@ const Ai = /* @__PURE__ */ y((e, {
|
|
|
1472
1475
|
...r,
|
|
1473
1476
|
className: e.class
|
|
1474
1477
|
});
|
|
1475
|
-
return
|
|
1478
|
+
return c(a, n, {
|
|
1476
1479
|
default: () => [t.default?.()]
|
|
1477
1480
|
});
|
|
1478
1481
|
};
|
|
@@ -1519,20 +1522,20 @@ function Mo() {
|
|
|
1519
1522
|
if (Rr) return pt;
|
|
1520
1523
|
Rr = 1;
|
|
1521
1524
|
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(
|
|
1525
|
+
function u(l) {
|
|
1526
|
+
if (typeof l == "number")
|
|
1527
|
+
return l;
|
|
1528
|
+
if (r(l))
|
|
1526
1529
|
return a;
|
|
1527
|
-
if (t(
|
|
1528
|
-
var d = typeof
|
|
1529
|
-
|
|
1530
|
+
if (t(l)) {
|
|
1531
|
+
var d = typeof l.valueOf == "function" ? l.valueOf() : l;
|
|
1532
|
+
l = t(d) ? d + "" : d;
|
|
1530
1533
|
}
|
|
1531
|
-
if (typeof
|
|
1532
|
-
return
|
|
1533
|
-
|
|
1534
|
-
var f = o.test(
|
|
1535
|
-
return f || s.test(
|
|
1534
|
+
if (typeof l != "string")
|
|
1535
|
+
return l === 0 ? l : +l;
|
|
1536
|
+
l = e(l);
|
|
1537
|
+
var f = o.test(l);
|
|
1538
|
+
return f || s.test(l) ? i(l.slice(2), f ? 2 : 8) : n.test(l) ? a : +l;
|
|
1536
1539
|
}
|
|
1537
1540
|
return pt = u, pt;
|
|
1538
1541
|
}
|
|
@@ -1588,9 +1591,9 @@ const Vo = "GridColumn", ba = "lumx-grid-column", Wo = {}, Te = (e) => {
|
|
|
1588
1591
|
className: s,
|
|
1589
1592
|
style: i = {},
|
|
1590
1593
|
ref: u,
|
|
1591
|
-
...
|
|
1594
|
+
...l
|
|
1592
1595
|
} = e;
|
|
1593
|
-
return
|
|
1596
|
+
return c(t, h(l, {
|
|
1594
1597
|
ref: u,
|
|
1595
1598
|
className: A(s, ba),
|
|
1596
1599
|
style: {
|
|
@@ -1610,7 +1613,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1610
1613
|
slots: t
|
|
1611
1614
|
}) => {
|
|
1612
1615
|
const r = k();
|
|
1613
|
-
return () =>
|
|
1616
|
+
return () => c(Te, h(e, r, {
|
|
1614
1617
|
className: e.class,
|
|
1615
1618
|
children: t.default?.()
|
|
1616
1619
|
}), null);
|
|
@@ -1650,7 +1653,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1650
1653
|
class: o
|
|
1651
1654
|
};
|
|
1652
1655
|
});
|
|
1653
|
-
return () =>
|
|
1656
|
+
return () => c(Rt, n.value, {
|
|
1654
1657
|
default: () => [t.default?.()]
|
|
1655
1658
|
});
|
|
1656
1659
|
}, {
|
|
@@ -1678,7 +1681,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1678
1681
|
slots: t
|
|
1679
1682
|
}) => {
|
|
1680
1683
|
const r = k(), a = w();
|
|
1681
|
-
return () =>
|
|
1684
|
+
return () => c(K, h(e, r, {
|
|
1682
1685
|
className: e.class,
|
|
1683
1686
|
theme: e.theme || a.value,
|
|
1684
1687
|
children: t.default?.()
|
|
@@ -1692,7 +1695,7 @@ const Si = /* @__PURE__ */ y((e, {
|
|
|
1692
1695
|
slots: t
|
|
1693
1696
|
}) => {
|
|
1694
1697
|
const r = k(), a = w();
|
|
1695
|
-
return () =>
|
|
1698
|
+
return () => c(U, h(e, r, {
|
|
1696
1699
|
className: e.class,
|
|
1697
1700
|
theme: e.theme || a.value,
|
|
1698
1701
|
children: t.default?.()
|
|
@@ -1719,7 +1722,7 @@ const Zo = "lumx-link", {
|
|
|
1719
1722
|
rightIcon: s,
|
|
1720
1723
|
typography: i,
|
|
1721
1724
|
as: u,
|
|
1722
|
-
ref:
|
|
1725
|
+
ref: l,
|
|
1723
1726
|
isDisabled: d,
|
|
1724
1727
|
theme: f,
|
|
1725
1728
|
href: m,
|
|
@@ -1732,22 +1735,22 @@ const Zo = "lumx-link", {
|
|
|
1732
1735
|
[`color-${v}`]: !!v,
|
|
1733
1736
|
[`color-variant-${C}`]: !!C,
|
|
1734
1737
|
"has-typography": !!i
|
|
1735
|
-
}), i && Bt(i)), L =
|
|
1738
|
+
}), i && Bt(i)), L = c(G, null, [o && c(G, null, [pe(" "), I({
|
|
1736
1739
|
icon: o,
|
|
1737
1740
|
className: yt("left-icon")
|
|
1738
|
-
}), pe(" ")]), t &&
|
|
1741
|
+
}), pe(" ")]), t && c("span", {
|
|
1739
1742
|
className: yt("content")
|
|
1740
|
-
}, [t]), s &&
|
|
1743
|
+
}, [t]), s && c(G, null, [pe(" "), I({
|
|
1741
1744
|
icon: s,
|
|
1742
1745
|
className: yt("right-icon")
|
|
1743
1746
|
}), pe(" ")])]), B = {
|
|
1744
|
-
ref:
|
|
1747
|
+
ref: l,
|
|
1745
1748
|
className: O,
|
|
1746
1749
|
onClick: d ? void 0 : g,
|
|
1747
1750
|
...b,
|
|
1748
1751
|
..._
|
|
1749
1752
|
};
|
|
1750
|
-
return m && (B.href = m), p && (B.target = p),
|
|
1753
|
+
return m && (B.href = m), p && (B.target = p), c(P, B, Qo(L) ? L : {
|
|
1751
1754
|
default: () => [L]
|
|
1752
1755
|
});
|
|
1753
1756
|
}, rs = {
|
|
@@ -1761,7 +1764,7 @@ const Zo = "lumx-link", {
|
|
|
1761
1764
|
} = e, {
|
|
1762
1765
|
isAnyDisabled: i,
|
|
1763
1766
|
disabledStateProps: u,
|
|
1764
|
-
otherProps:
|
|
1767
|
+
otherProps: l
|
|
1765
1768
|
} = H(T(() => ({
|
|
1766
1769
|
...s,
|
|
1767
1770
|
...r
|
|
@@ -1769,12 +1772,13 @@ const Zo = "lumx-link", {
|
|
|
1769
1772
|
i.value || (f?.stopImmediatePropagation?.(), t("click", f));
|
|
1770
1773
|
};
|
|
1771
1774
|
return () => {
|
|
1772
|
-
const m = a.default?.() ||
|
|
1773
|
-
return
|
|
1775
|
+
const m = a.default?.() || l.value.label;
|
|
1776
|
+
return c(ts, h(l.value, u.value, {
|
|
1777
|
+
onClick: d
|
|
1778
|
+
}, {
|
|
1774
1779
|
className: o,
|
|
1775
1780
|
theme: e.theme || n.value,
|
|
1776
1781
|
isDisabled: i.value,
|
|
1777
|
-
onClick: d,
|
|
1778
1782
|
label: m
|
|
1779
1783
|
}), null);
|
|
1780
1784
|
};
|
|
@@ -1783,7 +1787,12 @@ const Zo = "lumx-link", {
|
|
|
1783
1787
|
inheritAttrs: !1,
|
|
1784
1788
|
// Redefine properties so that they come in as `props` on the `defineComponent` function
|
|
1785
1789
|
props: S()("as", "class", "color", "colorVariant", "disabled", "href", "isDisabled", "leftIcon", "rightIcon", "target", "theme", "typography", "aria-disabled"),
|
|
1786
|
-
emits: rs
|
|
1790
|
+
emits: rs,
|
|
1791
|
+
// Enable compatibility with @vue/compat for event listeners
|
|
1792
|
+
compatConfig: {
|
|
1793
|
+
MODE: 3
|
|
1794
|
+
// Use Vue 3 behavior for this component
|
|
1795
|
+
}
|
|
1787
1796
|
}), as = "Message", ya = "lumx-message", {
|
|
1788
1797
|
block: ns,
|
|
1789
1798
|
element: Nt
|
|
@@ -1815,24 +1824,24 @@ const Zo = "lumx-link", {
|
|
|
1815
1824
|
ref: i,
|
|
1816
1825
|
...u
|
|
1817
1826
|
} = e, {
|
|
1818
|
-
color:
|
|
1827
|
+
color: l,
|
|
1819
1828
|
icon: d
|
|
1820
1829
|
} = os[n] || {}, {
|
|
1821
1830
|
onClick: f,
|
|
1822
1831
|
label: m
|
|
1823
1832
|
} = s || {}, p = a && n === "info" && f && m;
|
|
1824
|
-
return
|
|
1833
|
+
return c("div", h(u, {
|
|
1825
1834
|
ref: i,
|
|
1826
1835
|
className: A(r, ns({
|
|
1827
|
-
[`color-${
|
|
1836
|
+
[`color-${l}`]: !!l,
|
|
1828
1837
|
"has-background": a
|
|
1829
1838
|
}))
|
|
1830
1839
|
}), [(o || d) && I({
|
|
1831
1840
|
className: Nt("icon"),
|
|
1832
1841
|
icon: o || d,
|
|
1833
1842
|
size: E.xs,
|
|
1834
|
-
color:
|
|
1835
|
-
}),
|
|
1843
|
+
color: l
|
|
1844
|
+
}), c("div", {
|
|
1836
1845
|
className: Nt("text")
|
|
1837
1846
|
}, [t]), p && de({
|
|
1838
1847
|
className: Nt("close-button"),
|
|
@@ -1851,7 +1860,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1851
1860
|
const a = k(), {
|
|
1852
1861
|
closeButtonLabel: n
|
|
1853
1862
|
} = e;
|
|
1854
|
-
return () =>
|
|
1863
|
+
return () => c(qt, h(e, a, {
|
|
1855
1864
|
className: e.class,
|
|
1856
1865
|
children: t.default?.(),
|
|
1857
1866
|
closeButtonProps: n ? {
|
|
@@ -1878,7 +1887,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1878
1887
|
isChecked: s = t,
|
|
1879
1888
|
label: i,
|
|
1880
1889
|
name: u,
|
|
1881
|
-
ref:
|
|
1890
|
+
ref: l,
|
|
1882
1891
|
onChange: d,
|
|
1883
1892
|
theme: f,
|
|
1884
1893
|
value: m,
|
|
@@ -1889,8 +1898,8 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1889
1898
|
} = e, C = (P) => {
|
|
1890
1899
|
d && d(m, u, P);
|
|
1891
1900
|
};
|
|
1892
|
-
return
|
|
1893
|
-
ref:
|
|
1901
|
+
return c("div", h({
|
|
1902
|
+
ref: l
|
|
1894
1903
|
}, v, {
|
|
1895
1904
|
className: A(r, is({
|
|
1896
1905
|
"is-checked": s,
|
|
@@ -1898,9 +1907,9 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1898
1907
|
"is-unchecked": !s,
|
|
1899
1908
|
[`theme-${f}`]: !!f
|
|
1900
1909
|
}))
|
|
1901
|
-
}), [
|
|
1910
|
+
}), [c("div", {
|
|
1902
1911
|
className: M("input-wrapper")
|
|
1903
|
-
}, [
|
|
1912
|
+
}, [c("input", h({
|
|
1904
1913
|
ref: o,
|
|
1905
1914
|
className: M("input-native"),
|
|
1906
1915
|
id: b,
|
|
@@ -1912,13 +1921,13 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1912
1921
|
"aria-describedby": a ? `${b}-helper` : void 0
|
|
1913
1922
|
}, p?.readOnly ? {
|
|
1914
1923
|
readOnly: p.readOnly
|
|
1915
|
-
} : {}, p), null),
|
|
1924
|
+
} : {}, p), null), c("div", {
|
|
1916
1925
|
className: M("input-placeholder")
|
|
1917
|
-
}, [
|
|
1926
|
+
}, [c("div", {
|
|
1918
1927
|
className: M("input-background")
|
|
1919
|
-
}, null),
|
|
1928
|
+
}, null), c("div", {
|
|
1920
1929
|
className: M("input-indicator")
|
|
1921
|
-
}, null)])]),
|
|
1930
|
+
}, null)])]), c("div", {
|
|
1922
1931
|
className: M("content")
|
|
1923
1932
|
}, [i && U({
|
|
1924
1933
|
htmlFor: b,
|
|
@@ -1943,15 +1952,16 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1943
1952
|
} = H(T(() => ({
|
|
1944
1953
|
...e,
|
|
1945
1954
|
...r
|
|
1946
|
-
}))),
|
|
1955
|
+
}))), l = (d, f, m) => {
|
|
1947
1956
|
s.value || (m?.stopImmediatePropagation?.(), t("change", d, f, m));
|
|
1948
1957
|
};
|
|
1949
|
-
return () =>
|
|
1958
|
+
return () => c(ls, h(u.value, {
|
|
1959
|
+
onChange: l
|
|
1960
|
+
}, {
|
|
1950
1961
|
className: e.class,
|
|
1951
1962
|
theme: e.theme || a.value,
|
|
1952
1963
|
inputId: o.value,
|
|
1953
1964
|
isDisabled: s.value,
|
|
1954
|
-
onChange: c,
|
|
1955
1965
|
label: e.label,
|
|
1956
1966
|
inputProps: {
|
|
1957
1967
|
...e.inputProps,
|
|
@@ -1972,7 +1982,7 @@ const _i = /* @__PURE__ */ y((e, {
|
|
|
1972
1982
|
ref: a,
|
|
1973
1983
|
...n
|
|
1974
1984
|
} = e;
|
|
1975
|
-
return
|
|
1985
|
+
return c("div", h({
|
|
1976
1986
|
ref: a
|
|
1977
1987
|
}, n, {
|
|
1978
1988
|
className: A(r, Na)
|
|
@@ -1985,7 +1995,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
1985
1995
|
slots: t
|
|
1986
1996
|
}) => {
|
|
1987
1997
|
const r = k();
|
|
1988
|
-
return () =>
|
|
1998
|
+
return () => c($e, h(e, r, {
|
|
1989
1999
|
className: e.class,
|
|
1990
2000
|
children: t.default?.()
|
|
1991
2001
|
}), null);
|
|
@@ -2004,7 +2014,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2004
2014
|
ref: o,
|
|
2005
2015
|
...s
|
|
2006
2016
|
} = e;
|
|
2007
|
-
return
|
|
2017
|
+
return c("div", h({
|
|
2008
2018
|
ref: o
|
|
2009
2019
|
}, s, {
|
|
2010
2020
|
className: A(t, ms({
|
|
@@ -2032,11 +2042,11 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2032
2042
|
width: s,
|
|
2033
2043
|
color: i,
|
|
2034
2044
|
ref: u,
|
|
2035
|
-
...
|
|
2045
|
+
...l
|
|
2036
2046
|
} = e;
|
|
2037
|
-
return
|
|
2047
|
+
return c("div", h({
|
|
2038
2048
|
ref: u
|
|
2039
|
-
},
|
|
2049
|
+
}, l, {
|
|
2040
2050
|
className: A(r, gs({
|
|
2041
2051
|
[`aspect-ratio-${t}`]: !!t,
|
|
2042
2052
|
[`height-${a}`]: !!(!t && a),
|
|
@@ -2045,7 +2055,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2045
2055
|
[`width-${s}`]: !!s,
|
|
2046
2056
|
[`color-${i}`]: !!i
|
|
2047
2057
|
}))
|
|
2048
|
-
}), [
|
|
2058
|
+
}), [c("div", {
|
|
2049
2059
|
className: vs("inner")
|
|
2050
2060
|
}, null)]);
|
|
2051
2061
|
}, As = "lumx-skeleton-typography", {
|
|
@@ -2061,7 +2071,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2061
2071
|
ref: s,
|
|
2062
2072
|
...i
|
|
2063
2073
|
} = e;
|
|
2064
|
-
return
|
|
2074
|
+
return c("div", h({
|
|
2065
2075
|
ref: s
|
|
2066
2076
|
}, i, {
|
|
2067
2077
|
className: A(t, Ss({
|
|
@@ -2073,12 +2083,12 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2073
2083
|
...i.style,
|
|
2074
2084
|
width: n
|
|
2075
2085
|
}
|
|
2076
|
-
}), [
|
|
2086
|
+
}), [c("div", {
|
|
2077
2087
|
className: ks("inner")
|
|
2078
2088
|
}, null)]);
|
|
2079
2089
|
}, Ii = /* @__PURE__ */ y((e) => {
|
|
2080
2090
|
const t = k(), r = w();
|
|
2081
|
-
return () =>
|
|
2091
|
+
return () => c(hs, h(e, t, {
|
|
2082
2092
|
className: e.class,
|
|
2083
2093
|
theme: e.theme || r.value
|
|
2084
2094
|
}), null);
|
|
@@ -2088,7 +2098,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2088
2098
|
props: S()("class", "size", "color", "theme")
|
|
2089
2099
|
}), Ei = /* @__PURE__ */ y((e) => {
|
|
2090
2100
|
const t = k(), r = w();
|
|
2091
|
-
return () =>
|
|
2101
|
+
return () => c(Ns, h(e, t, {
|
|
2092
2102
|
className: e.class,
|
|
2093
2103
|
theme: e.theme || r.value
|
|
2094
2104
|
}), null);
|
|
@@ -2098,7 +2108,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2098
2108
|
props: S()("class", "aspectRatio", "height", "variant", "width", "color", "theme")
|
|
2099
2109
|
}), Li = /* @__PURE__ */ y((e) => {
|
|
2100
2110
|
const t = k(), r = w();
|
|
2101
|
-
return () =>
|
|
2111
|
+
return () => c(Ps, h(e, t, {
|
|
2102
2112
|
className: e.class,
|
|
2103
2113
|
theme: e.theme || r.value
|
|
2104
2114
|
}), null);
|
|
@@ -2121,7 +2131,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2121
2131
|
isChecked: s = t,
|
|
2122
2132
|
label: i,
|
|
2123
2133
|
name: u,
|
|
2124
|
-
ref:
|
|
2134
|
+
ref: l,
|
|
2125
2135
|
onChange: d,
|
|
2126
2136
|
theme: f,
|
|
2127
2137
|
value: m,
|
|
@@ -2133,8 +2143,8 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2133
2143
|
} = e, P = (_) => {
|
|
2134
2144
|
d && d(!s, m, u, _);
|
|
2135
2145
|
};
|
|
2136
|
-
return
|
|
2137
|
-
ref:
|
|
2146
|
+
return c("div", h({
|
|
2147
|
+
ref: l
|
|
2138
2148
|
}, C, {
|
|
2139
2149
|
className: A(r, $s({
|
|
2140
2150
|
"is-checked": s,
|
|
@@ -2143,9 +2153,9 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2143
2153
|
[`position-${v}`]: !!v,
|
|
2144
2154
|
[`theme-${f}`]: !!f
|
|
2145
2155
|
}))
|
|
2146
|
-
}), [
|
|
2156
|
+
}), [c("div", {
|
|
2147
2157
|
className: q("input-wrapper")
|
|
2148
|
-
}, [
|
|
2158
|
+
}, [c("input", h({
|
|
2149
2159
|
ref: o,
|
|
2150
2160
|
type: "checkbox",
|
|
2151
2161
|
role: "switch",
|
|
@@ -2159,13 +2169,13 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2159
2169
|
"aria-checked": !!s
|
|
2160
2170
|
}, p?.readOnly ? {
|
|
2161
2171
|
readOnly: p.readOnly
|
|
2162
|
-
} : {}, p), null),
|
|
2172
|
+
} : {}, p), null), c("div", {
|
|
2163
2173
|
className: q("input-placeholder")
|
|
2164
|
-
}, [
|
|
2174
|
+
}, [c("div", {
|
|
2165
2175
|
className: q("input-background")
|
|
2166
|
-
}, null),
|
|
2176
|
+
}, null), c("div", {
|
|
2167
2177
|
className: q("input-indicator")
|
|
2168
|
-
}, null)])]),
|
|
2178
|
+
}, null)])]), c("div", {
|
|
2169
2179
|
className: q("content")
|
|
2170
2180
|
}, [i && U({
|
|
2171
2181
|
htmlFor: b,
|
|
@@ -2187,19 +2197,20 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2187
2197
|
const a = k(), n = w(), o = Mt(), s = T(() => e.id || o), {
|
|
2188
2198
|
isAnyDisabled: i,
|
|
2189
2199
|
disabledStateProps: u,
|
|
2190
|
-
otherProps:
|
|
2200
|
+
otherProps: l
|
|
2191
2201
|
} = H(T(() => ({
|
|
2192
2202
|
...e,
|
|
2193
2203
|
...a
|
|
2194
2204
|
}))), d = (f, m, p, g) => {
|
|
2195
2205
|
i.value || (g.stopImmediatePropagation(), t("change", f, m, p, g));
|
|
2196
2206
|
};
|
|
2197
|
-
return () =>
|
|
2207
|
+
return () => c(_s, h(l.value, {
|
|
2208
|
+
onChange: d
|
|
2209
|
+
}, {
|
|
2198
2210
|
className: e.class,
|
|
2199
2211
|
theme: e.theme || n.value,
|
|
2200
2212
|
inputId: s.value,
|
|
2201
2213
|
isDisabled: i.value,
|
|
2202
|
-
onChange: d,
|
|
2203
2214
|
label: e.label || r.default?.(),
|
|
2204
2215
|
inputProps: {
|
|
2205
2216
|
...e.inputProps,
|
|
@@ -2225,7 +2236,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2225
2236
|
theme: s,
|
|
2226
2237
|
...i
|
|
2227
2238
|
} = e;
|
|
2228
|
-
return
|
|
2239
|
+
return c("table", h({
|
|
2229
2240
|
ref: o
|
|
2230
2241
|
}, i, {
|
|
2231
2242
|
className: A(r, ws({
|
|
@@ -2238,7 +2249,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2238
2249
|
slots: t
|
|
2239
2250
|
}) => {
|
|
2240
2251
|
const r = k(), a = w();
|
|
2241
|
-
return () =>
|
|
2252
|
+
return () => c(Is, h(e, r, {
|
|
2242
2253
|
className: e.class,
|
|
2243
2254
|
theme: e.theme || a.value,
|
|
2244
2255
|
children: t.default?.()
|
|
@@ -2254,7 +2265,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2254
2265
|
ref: a,
|
|
2255
2266
|
...n
|
|
2256
2267
|
} = e;
|
|
2257
|
-
return
|
|
2268
|
+
return c("tbody", h({
|
|
2258
2269
|
ref: a
|
|
2259
2270
|
}, n, {
|
|
2260
2271
|
className: A(r, Es)
|
|
@@ -2263,7 +2274,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2263
2274
|
slots: t
|
|
2264
2275
|
}) => {
|
|
2265
2276
|
const r = k();
|
|
2266
|
-
return () =>
|
|
2277
|
+
return () => c(Ls, h(e, r, {
|
|
2267
2278
|
className: e.class,
|
|
2268
2279
|
children: t.default?.()
|
|
2269
2280
|
}), null);
|
|
@@ -2291,7 +2302,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2291
2302
|
ref: s,
|
|
2292
2303
|
sortOrder: i,
|
|
2293
2304
|
variant: u = Os.variant,
|
|
2294
|
-
...
|
|
2305
|
+
...l
|
|
2295
2306
|
} = e;
|
|
2296
2307
|
console.log({
|
|
2297
2308
|
onHeaderClick: o,
|
|
@@ -2302,16 +2313,16 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2302
2313
|
onClick: o
|
|
2303
2314
|
} : void 0;
|
|
2304
2315
|
let m;
|
|
2305
|
-
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")),
|
|
2316
|
+
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), c(G, null, [u === xt.head && c("th", h({
|
|
2306
2317
|
ref: s
|
|
2307
|
-
},
|
|
2318
|
+
}, l, {
|
|
2308
2319
|
className: A(r, Hr({
|
|
2309
2320
|
"is-sortable": n,
|
|
2310
2321
|
"is-sorted": n && !!i,
|
|
2311
2322
|
head: !0
|
|
2312
2323
|
})),
|
|
2313
2324
|
"aria-sort": m
|
|
2314
|
-
}), [
|
|
2325
|
+
}), [c(d, h({
|
|
2315
2326
|
className: `${z}-wrapper`
|
|
2316
2327
|
}, f), {
|
|
2317
2328
|
default: () => [a && !n && I({
|
|
@@ -2326,16 +2337,16 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2326
2337
|
className: `${z}-icon`,
|
|
2327
2338
|
icon: Ha,
|
|
2328
2339
|
size: E.xxs
|
|
2329
|
-
}),
|
|
2340
|
+
}), c("div", {
|
|
2330
2341
|
className: `${z}-content`
|
|
2331
2342
|
}, [t])]
|
|
2332
|
-
})]), u === xt.body &&
|
|
2343
|
+
})]), u === xt.body && c("td", h({
|
|
2333
2344
|
ref: s
|
|
2334
|
-
},
|
|
2345
|
+
}, l, {
|
|
2335
2346
|
className: A(r, Hr({
|
|
2336
2347
|
body: !0
|
|
2337
2348
|
}))
|
|
2338
|
-
}), [
|
|
2349
|
+
}), [c("div", {
|
|
2339
2350
|
className: `${z}-content`
|
|
2340
2351
|
}, [t])])]);
|
|
2341
2352
|
}, wt = (e) => {
|
|
@@ -2359,10 +2370,17 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2359
2370
|
const {
|
|
2360
2371
|
onHeaderClick: s,
|
|
2361
2372
|
...i
|
|
2373
|
+
} = e, {
|
|
2374
|
+
onHeaderClick: u,
|
|
2375
|
+
...l
|
|
2362
2376
|
} = a;
|
|
2363
|
-
return
|
|
2364
|
-
className: e.class,
|
|
2377
|
+
return console.log({
|
|
2365
2378
|
onHeaderClick: n,
|
|
2379
|
+
isSortable: e.isSortable
|
|
2380
|
+
}), c(Bs, h(i, l, {
|
|
2381
|
+
onHeaderClick: o || e.isSortable ? n : void 0
|
|
2382
|
+
}, {
|
|
2383
|
+
className: e.class,
|
|
2366
2384
|
children: r.default?.()
|
|
2367
2385
|
}), null);
|
|
2368
2386
|
};
|
|
@@ -2378,7 +2396,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2378
2396
|
ref: a,
|
|
2379
2397
|
...n
|
|
2380
2398
|
} = e;
|
|
2381
|
-
return
|
|
2399
|
+
return c("thead", h({
|
|
2382
2400
|
ref: a
|
|
2383
2401
|
}, n, {
|
|
2384
2402
|
className: A(r, Rs)
|
|
@@ -2387,7 +2405,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2387
2405
|
slots: t
|
|
2388
2406
|
}) => {
|
|
2389
2407
|
const r = k();
|
|
2390
|
-
return () =>
|
|
2408
|
+
return () => c(Ms, h(e, r, {
|
|
2391
2409
|
className: e.class,
|
|
2392
2410
|
children: t.default?.()
|
|
2393
2411
|
}), null);
|
|
@@ -2407,17 +2425,17 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2407
2425
|
tabIndex: s,
|
|
2408
2426
|
"aria-disabled": i,
|
|
2409
2427
|
...u
|
|
2410
|
-
} = e,
|
|
2411
|
-
return
|
|
2428
|
+
} = e, l = !!i;
|
|
2429
|
+
return c("tr", h({
|
|
2412
2430
|
ref: o,
|
|
2413
2431
|
"aria-disabled": i
|
|
2414
2432
|
}, s !== void 0 ? {
|
|
2415
2433
|
tabIndex: s
|
|
2416
2434
|
} : {}, u, {
|
|
2417
2435
|
className: A(r, Ds({
|
|
2418
|
-
"is-clickable": a && !
|
|
2419
|
-
"is-disabled":
|
|
2420
|
-
"is-selected": n && !
|
|
2436
|
+
"is-clickable": a && !l,
|
|
2437
|
+
"is-disabled": l,
|
|
2438
|
+
"is-selected": n && !l
|
|
2421
2439
|
}))
|
|
2422
2440
|
}), [t]);
|
|
2423
2441
|
}, Di = /* @__PURE__ */ y((e, {
|
|
@@ -2430,7 +2448,7 @@ const wi = /* @__PURE__ */ y((e, {
|
|
|
2430
2448
|
...e,
|
|
2431
2449
|
...r
|
|
2432
2450
|
})));
|
|
2433
|
-
return () =>
|
|
2451
|
+
return () => c(Fs, h(n.value, {
|
|
2434
2452
|
className: e.class,
|
|
2435
2453
|
tabIndex: e.isClickable && !a.value ? 0 : -1,
|
|
2436
2454
|
"aria-disabled": a.value,
|
|
@@ -2485,9 +2503,9 @@ function zs({
|
|
|
2485
2503
|
return { visibility: "hidden" };
|
|
2486
2504
|
if (!o || !n.height || !n.width)
|
|
2487
2505
|
return {};
|
|
2488
|
-
const s = n.height / o.height, i = n.width / o.width, u = Math.min(i, s),
|
|
2506
|
+
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
2507
|
scale: u,
|
|
2490
|
-
focusPoint:
|
|
2508
|
+
focusPoint: l,
|
|
2491
2509
|
imageSize: n.height,
|
|
2492
2510
|
containerSize: o.height
|
|
2493
2511
|
}), f = Math.abs((r?.x || 0) + 1) / 2;
|
|
@@ -2514,7 +2532,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2514
2532
|
crossOrigin: s,
|
|
2515
2533
|
ref: i,
|
|
2516
2534
|
fallback: u = Gr.fallback,
|
|
2517
|
-
focusPointStyle:
|
|
2535
|
+
focusPointStyle: l,
|
|
2518
2536
|
fillHeight: d,
|
|
2519
2537
|
image: f,
|
|
2520
2538
|
imgProps: m,
|
|
@@ -2556,9 +2574,9 @@ const Gs = "lumx-thumbnail", {
|
|
|
2556
2574
|
"fill-height": d
|
|
2557
2575
|
})), ae = N && C?.current?.complete && C?.current || void 0, Aa = ae ? {
|
|
2558
2576
|
backgroundImage: `url(${ae.src})`
|
|
2559
|
-
} : void 0, zt =
|
|
2577
|
+
} : void 0, zt = c(G, null, [c("span", {
|
|
2560
2578
|
className: se("background")
|
|
2561
|
-
}, [
|
|
2579
|
+
}, [c("img", h({
|
|
2562
2580
|
width: ae?.naturalWidth,
|
|
2563
2581
|
height: ae?.naturalHeight
|
|
2564
2582
|
}, m, {
|
|
@@ -2567,7 +2585,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2567
2585
|
width: N ? m?.width || ae?.naturalWidth : void 0,
|
|
2568
2586
|
...m?.style,
|
|
2569
2587
|
...Ce,
|
|
2570
|
-
...
|
|
2588
|
+
...l,
|
|
2571
2589
|
...Aa
|
|
2572
2590
|
},
|
|
2573
2591
|
ref: p,
|
|
@@ -2579,7 +2597,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2579
2597
|
src: f,
|
|
2580
2598
|
alt: r,
|
|
2581
2599
|
loading: v
|
|
2582
|
-
}), null), !N && J &&
|
|
2600
|
+
}), null), !N && J && c("span", {
|
|
2583
2601
|
className: se("fallback")
|
|
2584
2602
|
}, [j ? I({
|
|
2585
2603
|
icon: u,
|
|
@@ -2591,7 +2609,7 @@ const Gs = "lumx-thumbnail", {
|
|
|
2591
2609
|
...re,
|
|
2592
2610
|
className: Ht,
|
|
2593
2611
|
children: zt
|
|
2594
|
-
}) :
|
|
2612
|
+
}) : c("div", h({
|
|
2595
2613
|
ref: i
|
|
2596
2614
|
}, re, {
|
|
2597
2615
|
className: Ht
|
|
@@ -2630,11 +2648,11 @@ function Ks(e) {
|
|
|
2630
2648
|
element: s.value,
|
|
2631
2649
|
isLoaded: i.value
|
|
2632
2650
|
})
|
|
2633
|
-
),
|
|
2651
|
+
), l = ie(void 0), d = () => {
|
|
2634
2652
|
const m = s.value?.offsetWidth, p = s.value?.offsetHeight;
|
|
2635
2653
|
if (m && p) {
|
|
2636
|
-
const g =
|
|
2637
|
-
(g?.width !== m || g?.height !== p) && (
|
|
2654
|
+
const g = l.value;
|
|
2655
|
+
(g?.width !== m || g?.height !== p) && (l.value = { width: m, height: p });
|
|
2638
2656
|
} else u.value && requestAnimationFrame(d);
|
|
2639
2657
|
};
|
|
2640
2658
|
return W(
|
|
@@ -2650,7 +2668,7 @@ function Ks(e) {
|
|
|
2650
2668
|
focusPoint: a.value,
|
|
2651
2669
|
element: s.value,
|
|
2652
2670
|
imageSize: u.value,
|
|
2653
|
-
containerSize:
|
|
2671
|
+
containerSize: l.value
|
|
2654
2672
|
})
|
|
2655
2673
|
);
|
|
2656
2674
|
}
|
|
@@ -2663,7 +2681,7 @@ const Ys = {
|
|
|
2663
2681
|
}) => {
|
|
2664
2682
|
const a = k(), n = w(), o = ie(), s = wt("onClick"), i = wt("onKeyPress"), {
|
|
2665
2683
|
isAnyDisabled: u,
|
|
2666
|
-
disabledStateProps:
|
|
2684
|
+
disabledStateProps: l,
|
|
2667
2685
|
otherProps: d
|
|
2668
2686
|
} = H(T(() => ({
|
|
2669
2687
|
...e,
|
|
@@ -2683,17 +2701,19 @@ const Ys = {
|
|
|
2683
2701
|
};
|
|
2684
2702
|
return () => {
|
|
2685
2703
|
const v = r.badge?.(), C = r.fallback?.();
|
|
2686
|
-
return
|
|
2704
|
+
return c(Ws, h(d.value, {
|
|
2705
|
+
onClick: s ? g : void 0
|
|
2706
|
+
}, {
|
|
2707
|
+
onKeyPress: i ? b : void 0
|
|
2708
|
+
}, {
|
|
2687
2709
|
className: e.class,
|
|
2688
2710
|
theme: e.theme || n.value,
|
|
2689
2711
|
isAnyDisabled: u.value,
|
|
2690
|
-
disabledStateProps:
|
|
2712
|
+
disabledStateProps: l.value,
|
|
2691
2713
|
focusPointStyle: p.value,
|
|
2692
2714
|
loadingState: f.value,
|
|
2693
2715
|
imgRef: o,
|
|
2694
2716
|
image: e.image,
|
|
2695
|
-
onClick: s ? g : void 0,
|
|
2696
|
-
onKeyPress: i ? b : void 0,
|
|
2697
2717
|
fallback: C,
|
|
2698
2718
|
badge: v && (Array.isArray(v) ? v.map((P) => ({
|
|
2699
2719
|
...P,
|
|
@@ -2733,7 +2753,7 @@ const Ys = {
|
|
|
2733
2753
|
ref: o,
|
|
2734
2754
|
...s
|
|
2735
2755
|
} = e;
|
|
2736
|
-
return
|
|
2756
|
+
return c("div", h({
|
|
2737
2757
|
ref: o
|
|
2738
2758
|
}, s, {
|
|
2739
2759
|
className: A(a, Xs({
|
|
@@ -2741,18 +2761,18 @@ const Ys = {
|
|
|
2741
2761
|
"has-before": !!r,
|
|
2742
2762
|
"has-label": !!n
|
|
2743
2763
|
}))
|
|
2744
|
-
}), [r &&
|
|
2764
|
+
}), [r && c("div", {
|
|
2745
2765
|
className: St("before")
|
|
2746
|
-
}, [r]), n &&
|
|
2766
|
+
}, [r]), n && c("div", {
|
|
2747
2767
|
className: St("label")
|
|
2748
|
-
}, [n]), t &&
|
|
2768
|
+
}, [n]), t && c("div", {
|
|
2749
2769
|
className: St("after")
|
|
2750
2770
|
}, [t])]);
|
|
2751
2771
|
}, Vi = /* @__PURE__ */ y((e, {
|
|
2752
2772
|
slots: t
|
|
2753
2773
|
}) => {
|
|
2754
2774
|
const r = k();
|
|
2755
|
-
return () =>
|
|
2775
|
+
return () => c(Qs, h(e, r, {
|
|
2756
2776
|
className: e.class,
|
|
2757
2777
|
label: t.default?.(),
|
|
2758
2778
|
before: t.before?.(),
|