@lumx/vue 4.3.2-alpha.35 → 4.3.2-alpha.36
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/table/TableCell.d.ts +2 -2
- package/index.js +50 -50
- package/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,13 +2,13 @@ import { TableCellProps as UIProps, ThOrder, TableCellVariant } from '@lumx/core
|
|
|
2
2
|
import { VueToJSXProps } from '../../utils/VueToJSX';
|
|
3
3
|
export { ThOrder, TableCellVariant };
|
|
4
4
|
export type { ThOrder as ThOrderType, TableCellVariant as TableCellVariantType, } from '@lumx/core/js/components/Table/TableCell';
|
|
5
|
-
export type TableCellProps = VueToJSXProps<UIProps
|
|
5
|
+
export type TableCellProps = VueToJSXProps<UIProps>;
|
|
6
6
|
export declare const emitSchema: {
|
|
7
7
|
headerClick: () => boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const TableCell: import('vue').DefineSetupFnComponent<TableCellProps, {
|
|
10
10
|
headerClick: () => boolean;
|
|
11
|
-
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"
|
|
11
|
+
}, {}, Omit<UIProps, "className" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
|
|
12
12
|
class?: string;
|
|
13
13
|
} & {
|
|
14
14
|
onHeaderClick?: (() => any) | undefined;
|
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColorVariant as $a, Theme as Ta, AspectRatio as Ca, Size as _a } 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 l, mergeProps as h, defineComponent as y, useAttrs as P, isVNode as ee, inject as It, computed as $, unref as kt, provide as Kr, getCurrentScope as xa, onScopeDispose as Ea, watch as V, toValue as Lt, shallowRef as wa, getCurrentInstance as Yr, onMounted as Ia, ref as ie, useSlots as Ot, Fragment as
|
|
4
|
+
import { createVNode as l, mergeProps as h, defineComponent as y, useAttrs as P, isVNode as ee, inject as It, computed as $, unref as kt, provide as Kr, getCurrentScope as xa, onScopeDispose as Ea, watch as V, toValue as Lt, shallowRef as wa, getCurrentInstance as Yr, onMounted as Ia, ref as ie, useSlots as Ot, Fragment as U, useTemplateRef as La, toRefs as Oa, reactive as Ba, createTextVNode as pe, onBeforeUnmount as Ra, nextTick as ja, toRef as X } from "vue";
|
|
5
5
|
import { getDisabledState as Ma } from "@lumx/core/js/utils/disabledState";
|
|
6
6
|
import { mdiAlertCircle as Jr } from "@lumx/icons/esm/alert-circle.js";
|
|
7
7
|
import { classNames as Z } from "@lumx/core/js/utils";
|
|
@@ -10,8 +10,8 @@ import { mdiMinus as Da } from "@lumx/icons/esm/minus.js";
|
|
|
10
10
|
import { mdiAlert as Fa } from "@lumx/icons/esm/alert.js";
|
|
11
11
|
import { mdiCheckCircle as za } from "@lumx/icons/esm/check-circle.js";
|
|
12
12
|
import { mdiClose as Ga } from "@lumx/icons/esm/close.js";
|
|
13
|
-
import { mdiInformation as
|
|
14
|
-
import { mdiArrowDown as
|
|
13
|
+
import { mdiInformation as Ua } from "@lumx/icons/esm/information.js";
|
|
14
|
+
import { mdiArrowDown as Ha } from "@lumx/icons/esm/arrow-down.js";
|
|
15
15
|
import { mdiArrowUp as Va } from "@lumx/icons/esm/arrow-up.js";
|
|
16
16
|
import { mdiImageBroken as Wa } from "@lumx/icons/esm/image-broken.js";
|
|
17
17
|
const ve = {
|
|
@@ -26,7 +26,7 @@ const ve = {
|
|
|
26
26
|
xxl: "xxl"
|
|
27
27
|
}, Ka = {
|
|
28
28
|
horizontal: "horizontal"
|
|
29
|
-
},
|
|
29
|
+
}, H = {
|
|
30
30
|
low: "low",
|
|
31
31
|
high: "high"
|
|
32
32
|
}, Ya = {
|
|
@@ -63,9 +63,9 @@ function Ae(e) {
|
|
|
63
63
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
64
64
|
}
|
|
65
65
|
var Ee = { exports: {} };
|
|
66
|
-
var
|
|
66
|
+
var Ht;
|
|
67
67
|
function Ja() {
|
|
68
|
-
return
|
|
68
|
+
return Ht || (Ht = 1, (function(e) {
|
|
69
69
|
(function() {
|
|
70
70
|
var t = {}.hasOwnProperty;
|
|
71
71
|
function r() {
|
|
@@ -347,9 +347,9 @@ function fn() {
|
|
|
347
347
|
var e = F(), t = e["__core-js_shared__"];
|
|
348
348
|
return Ge = t, Ge;
|
|
349
349
|
}
|
|
350
|
-
var
|
|
350
|
+
var Ue, or;
|
|
351
351
|
function mn() {
|
|
352
|
-
if (or) return
|
|
352
|
+
if (or) return Ue;
|
|
353
353
|
or = 1;
|
|
354
354
|
var e = fn(), t = (function() {
|
|
355
355
|
var a = /[^.]+$/.exec(e && e.keys && e.keys.IE_PROTO || "");
|
|
@@ -358,11 +358,11 @@ function mn() {
|
|
|
358
358
|
function r(a) {
|
|
359
359
|
return !!t && t in a;
|
|
360
360
|
}
|
|
361
|
-
return
|
|
361
|
+
return Ue = r, Ue;
|
|
362
362
|
}
|
|
363
|
-
var
|
|
363
|
+
var He, ir;
|
|
364
364
|
function sa() {
|
|
365
|
-
if (ir) return
|
|
365
|
+
if (ir) return He;
|
|
366
366
|
ir = 1;
|
|
367
367
|
var e = Function.prototype, t = e.toString;
|
|
368
368
|
function r(a) {
|
|
@@ -378,7 +378,7 @@ function sa() {
|
|
|
378
378
|
}
|
|
379
379
|
return "";
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return He = r, He;
|
|
382
382
|
}
|
|
383
383
|
var Ve, lr;
|
|
384
384
|
function hn() {
|
|
@@ -657,7 +657,7 @@ const la = (e) => {
|
|
|
657
657
|
emphasis: r,
|
|
658
658
|
variant: a,
|
|
659
659
|
fullWidth: n
|
|
660
|
-
} = e, s = r ===
|
|
660
|
+
} = e, s = r === H.low && (t === E.light ? E.dark : E.light), o = Rn({
|
|
661
661
|
[`color-${s}`]: !!s,
|
|
662
662
|
[`variant-${a}`]: !!a,
|
|
663
663
|
"is-full-width": n
|
|
@@ -688,7 +688,7 @@ const la = (e) => {
|
|
|
688
688
|
fullWidth: v,
|
|
689
689
|
ref: C,
|
|
690
690
|
...k
|
|
691
|
-
} = e, _ = s || o !==
|
|
691
|
+
} = e, _ = s || o !== H.high && g === ve.dark && E.light || o === H.high && E.primary || E.dark;
|
|
692
692
|
if (i)
|
|
693
693
|
return qn({
|
|
694
694
|
...e,
|
|
@@ -705,7 +705,7 @@ const la = (e) => {
|
|
|
705
705
|
"is-focused": d,
|
|
706
706
|
"is-hovered": f,
|
|
707
707
|
[`size-${p}`]: !!p,
|
|
708
|
-
[`theme-${g}`]: !!(o ===
|
|
708
|
+
[`theme-${g}`]: !!(o === H.high && g),
|
|
709
709
|
[`variant-${b}`]: !!b,
|
|
710
710
|
"is-full-width": v
|
|
711
711
|
}));
|
|
@@ -724,7 +724,7 @@ ue.defaultProps = {};
|
|
|
724
724
|
const Dn = "Button", ca = "lumx-button", {
|
|
725
725
|
modifier: Fn
|
|
726
726
|
} = T(ca), $t = {
|
|
727
|
-
emphasis:
|
|
727
|
+
emphasis: H.high,
|
|
728
728
|
size: w.m
|
|
729
729
|
}, ke = (e) => {
|
|
730
730
|
const {
|
|
@@ -778,7 +778,7 @@ const wr = y({
|
|
|
778
778
|
setup(e, { slots: t }) {
|
|
779
779
|
return Kr("theme", void 0), () => t.default?.();
|
|
780
780
|
}
|
|
781
|
-
}),
|
|
781
|
+
}), Un = "Icon", Hn = "lumx-icon", ua = Hn, {
|
|
782
782
|
block: Vn
|
|
783
783
|
} = T(ua), Wn = {}, I = (e) => {
|
|
784
784
|
const {
|
|
@@ -829,7 +829,7 @@ const wr = y({
|
|
|
829
829
|
fill: "currentColor"
|
|
830
830
|
}, null)])]);
|
|
831
831
|
};
|
|
832
|
-
I.displayName =
|
|
832
|
+
I.displayName = Un;
|
|
833
833
|
I.className = ua;
|
|
834
834
|
I.defaultProps = Wn;
|
|
835
835
|
const Tt = /* @__PURE__ */ y((e) => {
|
|
@@ -979,7 +979,7 @@ function _t(e) {
|
|
|
979
979
|
t.push(" "), t.push(r), t.push(" ");
|
|
980
980
|
continue;
|
|
981
981
|
}
|
|
982
|
-
if (r.type ===
|
|
982
|
+
if (r.type === U && Array.isArray(r.children)) {
|
|
983
983
|
const a = _t(r.children);
|
|
984
984
|
a && t.push(...a);
|
|
985
985
|
continue;
|
|
@@ -1050,7 +1050,7 @@ const Mt = /* @__PURE__ */ y((e, {
|
|
|
1050
1050
|
return !d || d.length === 0 ? null : d.length === 1 && d[0].type === Mt ? d[0] : l("span", null, [d]);
|
|
1051
1051
|
};
|
|
1052
1052
|
return () => {
|
|
1053
|
-
const d = l(
|
|
1053
|
+
const d = l(U, null, [e.leftIcon && !Er(e.leftIcon) && l(wr, null, {
|
|
1054
1054
|
default: () => [l(Tt, {
|
|
1055
1055
|
icon: e.leftIcon
|
|
1056
1056
|
}, null)]
|
|
@@ -1073,7 +1073,7 @@ const Mt = /* @__PURE__ */ y((e, {
|
|
|
1073
1073
|
props: A()("leftIcon", "rightIcon", "color", "emphasis", "hasBackground", "href", "isDisabled", "isSelected", "name", "size", "theme", "class", "aria-expanded", "aria-disabled", "aria-haspopup", "aria-label", "aria-pressed", "disabled", "fullWidth", "isActive", "isFocused", "isHovered", "linkAs", "target", "type"),
|
|
1074
1074
|
emits: os
|
|
1075
1075
|
}), is = "IconButton", ls = "lumx-icon-button", xt = {
|
|
1076
|
-
emphasis:
|
|
1076
|
+
emphasis: H.high,
|
|
1077
1077
|
size: w.m
|
|
1078
1078
|
}, de = (e) => {
|
|
1079
1079
|
const {
|
|
@@ -1564,8 +1564,8 @@ function Gs() {
|
|
|
1564
1564
|
}
|
|
1565
1565
|
return yt = t, yt;
|
|
1566
1566
|
}
|
|
1567
|
-
var
|
|
1568
|
-
const
|
|
1567
|
+
var Us = Gs();
|
|
1568
|
+
const Hs = /* @__PURE__ */ Ae(Us);
|
|
1569
1569
|
function Vs(e) {
|
|
1570
1570
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ee(e);
|
|
1571
1571
|
}
|
|
@@ -1586,7 +1586,7 @@ const Ws = "GridColumn", ya = "lumx-grid-column", Ks = {}, Te = (e) => {
|
|
|
1586
1586
|
className: N(o, ya),
|
|
1587
1587
|
style: {
|
|
1588
1588
|
...i,
|
|
1589
|
-
"--lumx-grid-column-item-min-width":
|
|
1589
|
+
"--lumx-grid-column-item-min-width": Hs(n) && `${n}px`,
|
|
1590
1590
|
"--lumx-grid-column-columns": a,
|
|
1591
1591
|
"--lumx-grid-column-gap": r && `var(--lumx-spacing-unit-${r})`
|
|
1592
1592
|
}
|
|
@@ -1723,12 +1723,12 @@ const to = "lumx-link", {
|
|
|
1723
1723
|
[`color-${v}`]: !!v,
|
|
1724
1724
|
[`color-variant-${C}`]: !!C,
|
|
1725
1725
|
"has-typography": !!i
|
|
1726
|
-
}), i && Rt(i)), L = l(
|
|
1726
|
+
}), i && Rt(i)), L = l(U, null, [s && l(U, null, [pe(" "), I({
|
|
1727
1727
|
icon: s,
|
|
1728
1728
|
className: Nt("left-icon")
|
|
1729
1729
|
}), pe(" ")]), t && l("span", {
|
|
1730
1730
|
className: Nt("content")
|
|
1731
|
-
}, [t]), o && l(
|
|
1731
|
+
}, [t]), o && l(U, null, [pe(" "), I({
|
|
1732
1732
|
icon: o,
|
|
1733
1733
|
className: Nt("right-icon")
|
|
1734
1734
|
}), pe(" ")])]), B = {
|
|
@@ -1785,7 +1785,7 @@ const to = "lumx-link", {
|
|
|
1785
1785
|
},
|
|
1786
1786
|
[D.info]: {
|
|
1787
1787
|
color: E.blue,
|
|
1788
|
-
icon:
|
|
1788
|
+
icon: Ua
|
|
1789
1789
|
},
|
|
1790
1790
|
[D.success]: {
|
|
1791
1791
|
color: E.green,
|
|
@@ -1830,7 +1830,7 @@ const to = "lumx-link", {
|
|
|
1830
1830
|
icon: Ga,
|
|
1831
1831
|
onClick: f,
|
|
1832
1832
|
label: m,
|
|
1833
|
-
emphasis:
|
|
1833
|
+
emphasis: H.low
|
|
1834
1834
|
})]);
|
|
1835
1835
|
};
|
|
1836
1836
|
Dt.displayName = so;
|
|
@@ -1914,7 +1914,7 @@ const ji = /* @__PURE__ */ y((e, {
|
|
|
1914
1914
|
props: A()("class", "size", "display", "theme")
|
|
1915
1915
|
}), Di = "ProgressLinear", fo = "lumx-progress-linear", {
|
|
1916
1916
|
block: mo,
|
|
1917
|
-
element:
|
|
1917
|
+
element: Ur
|
|
1918
1918
|
} = T(fo), ho = (e) => {
|
|
1919
1919
|
const {
|
|
1920
1920
|
className: t,
|
|
@@ -1929,9 +1929,9 @@ const ji = /* @__PURE__ */ y((e, {
|
|
|
1929
1929
|
[`theme-${r}`]: !!r
|
|
1930
1930
|
}))
|
|
1931
1931
|
}), [l("div", {
|
|
1932
|
-
className:
|
|
1932
|
+
className: Ur("line1")
|
|
1933
1933
|
}, null), l("div", {
|
|
1934
|
-
className:
|
|
1934
|
+
className: Ur("line2")
|
|
1935
1935
|
}, null)]);
|
|
1936
1936
|
}, Fi = /* @__PURE__ */ y((e) => {
|
|
1937
1937
|
const t = P(), r = x();
|
|
@@ -2154,7 +2154,7 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2154
2154
|
}), [l("div", {
|
|
2155
2155
|
className: Io("inner")
|
|
2156
2156
|
}, null)]);
|
|
2157
|
-
},
|
|
2157
|
+
}, Ui = /* @__PURE__ */ y((e) => {
|
|
2158
2158
|
const t = P(), r = x();
|
|
2159
2159
|
return () => l(Po, h(e, t, {
|
|
2160
2160
|
className: e.class,
|
|
@@ -2164,7 +2164,7 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2164
2164
|
name: "LumxSkeletonCircle",
|
|
2165
2165
|
inheritAttrs: !1,
|
|
2166
2166
|
props: A()("class", "size", "color", "theme")
|
|
2167
|
-
}),
|
|
2167
|
+
}), Hi = /* @__PURE__ */ y((e) => {
|
|
2168
2168
|
const t = P(), r = x();
|
|
2169
2169
|
return () => l(xo, h(e, t, {
|
|
2170
2170
|
className: e.class,
|
|
@@ -2356,16 +2356,16 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2356
2356
|
body: "body",
|
|
2357
2357
|
head: "head"
|
|
2358
2358
|
}, G = `${fe}__cell`, {
|
|
2359
|
-
block:
|
|
2359
|
+
block: Hr
|
|
2360
2360
|
} = T(G), Go = {
|
|
2361
2361
|
variant: Et.body
|
|
2362
|
-
},
|
|
2362
|
+
}, Uo = (e) => {
|
|
2363
2363
|
const {
|
|
2364
2364
|
children: t,
|
|
2365
2365
|
className: r,
|
|
2366
2366
|
icon: a,
|
|
2367
2367
|
isSortable: n,
|
|
2368
|
-
|
|
2368
|
+
handleClick: s,
|
|
2369
2369
|
ref: o,
|
|
2370
2370
|
sortOrder: i,
|
|
2371
2371
|
variant: u = Go.variant,
|
|
@@ -2375,10 +2375,10 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2375
2375
|
onClick: s
|
|
2376
2376
|
} : void 0;
|
|
2377
2377
|
let m;
|
|
2378
|
-
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), l(
|
|
2378
|
+
return n && (m = "none", i === ge.asc && (m = "ascending"), i === ge.desc && (m = "descending")), l(U, null, [u === Et.head && l("th", h({
|
|
2379
2379
|
ref: o
|
|
2380
2380
|
}, c, {
|
|
2381
|
-
className: N(r,
|
|
2381
|
+
className: N(r, Hr({
|
|
2382
2382
|
"is-sortable": n,
|
|
2383
2383
|
"is-sorted": n && !!i,
|
|
2384
2384
|
head: !0
|
|
@@ -2397,7 +2397,7 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2397
2397
|
size: w.xxs
|
|
2398
2398
|
}), n && i === ge.desc && I({
|
|
2399
2399
|
className: `${G}-icon`,
|
|
2400
|
-
icon:
|
|
2400
|
+
icon: Ha,
|
|
2401
2401
|
size: w.xxs
|
|
2402
2402
|
}), l("div", {
|
|
2403
2403
|
className: `${G}-content`
|
|
@@ -2405,13 +2405,13 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2405
2405
|
})]), u === Et.body && l("td", h({
|
|
2406
2406
|
ref: o
|
|
2407
2407
|
}, c, {
|
|
2408
|
-
className: N(r,
|
|
2408
|
+
className: N(r, Hr({
|
|
2409
2409
|
body: !0
|
|
2410
2410
|
}))
|
|
2411
2411
|
}), [l("div", {
|
|
2412
2412
|
className: `${G}-content`
|
|
2413
2413
|
}, [t])])]);
|
|
2414
|
-
}, wt = (e) => Yr()?.vnode.props?.[e] !== void 0,
|
|
2414
|
+
}, wt = (e) => Yr()?.vnode.props?.[e] !== void 0, Ho = {
|
|
2415
2415
|
headerClick: () => !0
|
|
2416
2416
|
}, Xi = /* @__PURE__ */ y((e, {
|
|
2417
2417
|
emit: t,
|
|
@@ -2421,16 +2421,16 @@ const Gi = /* @__PURE__ */ y((e, {
|
|
|
2421
2421
|
const n = () => {
|
|
2422
2422
|
t("headerClick");
|
|
2423
2423
|
}, s = wt("onHeaderClick");
|
|
2424
|
-
return () => l(
|
|
2424
|
+
return () => l(Uo, h(e, a, {
|
|
2425
2425
|
className: e.class,
|
|
2426
|
-
|
|
2426
|
+
handleClick: s ? n : void 0,
|
|
2427
2427
|
children: r.default?.()
|
|
2428
2428
|
}), null);
|
|
2429
2429
|
}, {
|
|
2430
2430
|
name: "LumxTableCell",
|
|
2431
2431
|
inheritAttrs: !1,
|
|
2432
2432
|
props: A()("class", "icon", "isSortable", "sortOrder", "variant"),
|
|
2433
|
-
emits:
|
|
2433
|
+
emits: Ho
|
|
2434
2434
|
}), Vo = `${fe}__header`, Wo = (e) => {
|
|
2435
2435
|
const {
|
|
2436
2436
|
children: t,
|
|
@@ -2616,7 +2616,7 @@ const Zo = "lumx-thumbnail", {
|
|
|
2616
2616
|
"fill-height": d
|
|
2617
2617
|
})), ae = S && C?.current?.complete && C?.current || void 0, ka = ae ? {
|
|
2618
2618
|
backgroundImage: `url(${ae.src})`
|
|
2619
|
-
} : void 0,
|
|
2619
|
+
} : void 0, Ut = l(U, null, [l("span", {
|
|
2620
2620
|
className: oe("background")
|
|
2621
2621
|
}, [l("img", h({
|
|
2622
2622
|
width: ae?.naturalWidth,
|
|
@@ -2650,12 +2650,12 @@ const Zo = "lumx-thumbnail", {
|
|
|
2650
2650
|
ref: i,
|
|
2651
2651
|
...re,
|
|
2652
2652
|
className: Gt,
|
|
2653
|
-
children:
|
|
2653
|
+
children: Ut
|
|
2654
2654
|
}) : l("div", h({
|
|
2655
2655
|
ref: i
|
|
2656
2656
|
}, re, {
|
|
2657
2657
|
className: Gt
|
|
2658
|
-
}), [
|
|
2658
|
+
}), [Ut]);
|
|
2659
2659
|
};
|
|
2660
2660
|
function ri(e, t) {
|
|
2661
2661
|
const r = ie(St(t.value));
|
|
@@ -2854,8 +2854,8 @@ export {
|
|
|
2854
2854
|
Fi as ProgressLinear,
|
|
2855
2855
|
zi as RadioButton,
|
|
2856
2856
|
Gi as RadioGroup,
|
|
2857
|
-
|
|
2858
|
-
|
|
2857
|
+
Ui as SkeletonCircle,
|
|
2858
|
+
Hi as SkeletonRectangle,
|
|
2859
2859
|
ko as SkeletonRectangleVariant,
|
|
2860
2860
|
Vi as SkeletonTypography,
|
|
2861
2861
|
Ki as Switch,
|
|
@@ -2872,7 +2872,7 @@ export {
|
|
|
2872
2872
|
rl as ThumbnailObjectFit,
|
|
2873
2873
|
tl as ThumbnailVariant,
|
|
2874
2874
|
nl as Toolbar,
|
|
2875
|
-
|
|
2875
|
+
Ho as emitSchema,
|
|
2876
2876
|
Aa as useHeadingLevel
|
|
2877
2877
|
};
|
|
2878
2878
|
//# sourceMappingURL=index.js.map
|