triafly-ui-kit 1.0.43 → 1.0.47
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/README.md +93 -93
- package/dist/_virtual/index2.js +2 -5
- package/dist/assets/src/components/Ui/Skeleton/Skeleton.module.css +1 -1
- package/dist/assets/src/components/Ui/Table/Table.css +1 -1
- package/dist/assets/src/components/Ui/Table/TableSkeletonRow/TableSkeletonRow.css +1 -0
- package/dist/assets/src/components/Ui/Tooltip/Tooltip.stories.module.css +1 -1
- package/dist/components/Ui/ButtonsArray/ButtonsArray.js +15 -16
- package/dist/components/Ui/ButtonsArray/ButtonsArray.stories.js +8 -8
- package/dist/components/Ui/Icons/Icons.js +32 -24
- package/dist/components/Ui/Icons/index.js +69 -67
- package/dist/components/Ui/ModalWindow/ModalWindow.stories.js +89 -0
- package/dist/components/Ui/Table/MemoizedRow/MemoizedRow.js +30 -31
- package/dist/components/Ui/Table/Table.js +149 -112
- package/dist/components/Ui/Table/TableSkeletonRow/TableSkeletonRow.js +11 -0
- package/dist/main.d.ts +27 -4
- package/dist/main.js +105 -103
- package/dist/node_modules/classnames/index.js +1 -1
- package/dist/src/components/Ui/Skeleton/Skeleton.module.scss.js +5 -5
- package/dist/src/components/Ui/Tooltip/Tooltip.stories.module.css.js +1 -1
- package/package.json +112 -112
- package/src/styles/_mixins.scss +21 -21
- package/src/styles/fix.scss +3 -3
- package/src/styles/main.scss +26 -26
- package/src/styles/reset.scss +105 -105
- package/src/styles/typography.scss +106 -106
- package/src/styles/variables.scss +277 -277
- package/dist/_virtual/index3.js +0 -4
- package/dist/node_modules/fast-deep-equal/index.js +0 -31
- package/dist/styles/_mixins.scss +0 -22
- package/dist/styles/fix.scss +0 -4
- package/dist/styles/main.scss +0 -27
- package/dist/styles/reset.scss +0 -106
- package/dist/styles/typography.scss +0 -106
- package/dist/styles/variables.scss +0 -277
@@ -1,4 +1,4 @@
|
|
1
|
-
import { IconArrowBendUpRight as c, IconArrowClockwise as I, IconArrowDown as e, IconArrowLeft as r, IconArrowLineDown as i, IconArrowLineLeft as t, IconArrowLineRight as a, IconArrowLineUp as l, IconArrowRight as s, IconArrowUp as C, IconArrowsOut as
|
1
|
+
import { IconArrowBendUpRight as c, IconArrowClockwise as I, IconArrowDown as e, IconArrowLeft as r, IconArrowLineDown as i, IconArrowLineLeft as t, IconArrowLineRight as a, IconArrowLineUp as l, IconArrowRight as s, IconArrowUp as C, IconArrowsOut as h, IconArticle as w, IconAt as p, IconBellSimple as u, IconBookOpenText as g, IconCalendarBlank as S, IconCaretDown as A, IconCaretLeft as D, IconCaretRight as L, IconCaretUp as d, IconCaretUpDown as k, IconChartPieSlice as U, IconChatText as P, IconCheck as B, IconCheckCircle as F, IconChecks as T, IconCircleNotch as X, IconClickHouse as f, IconCopy as y, IconCornersOut as R, IconCsv as m, IconCube as x, IconDatabase as H, IconDotsNine as M, IconDotsThreeVertical as v, IconExport as G, IconEye as N, IconEyeSlash as O, IconFile as Q, IconFiles as E, IconFloppyDisk as b, IconFolderSimple as W, IconFolderSimpleX as z, IconFunnel as J, IconGauge as V, IconGear as Y, IconGitBranchX as j, IconGoogleDrive as q, IconHand as K, IconHeadCircuit as Z, IconHouse as _, IconIcon as $, IconInfo as oo, IconJoin as no, IconLanguage as co, IconLink as Io, IconList as eo, IconLock as ro, IconLockOpen as io, IconMariaDB as to, IconMinus as ao, IconMongoDB as lo, IconMoon as so, IconMySQL as Co, IconNavigationArrow as ho, IconNotePencil as wo, IconPassword as po, IconPen as uo, IconPlay as go, IconPlugsX as So, IconPlus as Ao, IconPorsgteSQL as Do, IconPresentationChart as Lo, IconQuestion as ko, IconQuestionFullfilled as Uo, IconRedo as Po, IconRoleX as Bo, IconSearch as Fo, IconSearchX as To, IconSelection as Xo, IconServer as fo, IconSlidersHorizontal as yo, IconSticker as Ro, IconSun as mo, IconThreeDot as xo, IconTrash as Ho, IconTriangleDown as Mo, IconTriangleUp as vo, IconUndo as Go, IconUploadSimple as No, IconUser as Oo, IconUserX as Qo, IconWarningCircle as Eo, IconWrench as bo, IconX as Wo, IconYandexDisk as zo } from "./Icons.js";
|
2
2
|
export {
|
3
3
|
c as IconArrowBendUpRight,
|
4
4
|
I as IconArrowClockwise,
|
@@ -10,11 +10,11 @@ export {
|
|
10
10
|
l as IconArrowLineUp,
|
11
11
|
s as IconArrowRight,
|
12
12
|
C as IconArrowUp,
|
13
|
-
|
14
|
-
|
13
|
+
h as IconArrowsOut,
|
14
|
+
w as IconArticle,
|
15
15
|
p as IconAt,
|
16
|
-
|
17
|
-
|
16
|
+
u as IconBellSimple,
|
17
|
+
g as IconBookOpenText,
|
18
18
|
S as IconCalendarBlank,
|
19
19
|
A as IconCaretDown,
|
20
20
|
D as IconCaretLeft,
|
@@ -23,75 +23,77 @@ export {
|
|
23
23
|
k as IconCaretUpDown,
|
24
24
|
U as IconChartPieSlice,
|
25
25
|
P as IconChatText,
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
26
|
+
B as IconCheck,
|
27
|
+
F as IconCheckCircle,
|
28
|
+
T as IconChecks,
|
29
|
+
X as IconCircleNotch,
|
30
|
+
f as IconClickHouse,
|
31
|
+
y as IconCopy,
|
31
32
|
R as IconCornersOut,
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
m as IconCsv,
|
34
|
+
x as IconCube,
|
35
|
+
H as IconDatabase,
|
35
36
|
M as IconDotsNine,
|
36
37
|
v as IconDotsThreeVertical,
|
37
|
-
|
38
|
+
G as IconExport,
|
38
39
|
N as IconEye,
|
39
40
|
O as IconEyeSlash,
|
40
41
|
Q as IconFile,
|
41
42
|
E as IconFiles,
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
wo as
|
68
|
-
|
69
|
-
|
70
|
-
go as
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
Fo as
|
80
|
-
To as
|
43
|
+
b as IconFloppyDisk,
|
44
|
+
W as IconFolderSimple,
|
45
|
+
z as IconFolderSimpleX,
|
46
|
+
J as IconFunnel,
|
47
|
+
V as IconGauge,
|
48
|
+
Y as IconGear,
|
49
|
+
j as IconGitBranchX,
|
50
|
+
q as IconGoogleDrive,
|
51
|
+
K as IconHand,
|
52
|
+
Z as IconHeadCircuit,
|
53
|
+
_ as IconHouse,
|
54
|
+
$ as IconIcon,
|
55
|
+
oo as IconInfo,
|
56
|
+
no as IconJoin,
|
57
|
+
co as IconLanguage,
|
58
|
+
Io as IconLink,
|
59
|
+
eo as IconList,
|
60
|
+
ro as IconLock,
|
61
|
+
io as IconLockOpen,
|
62
|
+
to as IconMariaDB,
|
63
|
+
ao as IconMinus,
|
64
|
+
lo as IconMongoDB,
|
65
|
+
so as IconMoon,
|
66
|
+
Co as IconMySQL,
|
67
|
+
ho as IconNavigationArrow,
|
68
|
+
wo as IconNotePencil,
|
69
|
+
po as IconPassword,
|
70
|
+
uo as IconPen,
|
71
|
+
go as IconPlay,
|
72
|
+
So as IconPlugsX,
|
73
|
+
Ao as IconPlus,
|
74
|
+
Do as IconPorsgteSQL,
|
75
|
+
Lo as IconPresentationChart,
|
76
|
+
ko as IconQuestion,
|
77
|
+
Uo as IconQuestionFullfilled,
|
78
|
+
Po as IconRedo,
|
79
|
+
Bo as IconRoleX,
|
80
|
+
Fo as IconSearch,
|
81
|
+
To as IconSearchX,
|
82
|
+
Xo as IconSelection,
|
81
83
|
fo as IconServer,
|
82
84
|
yo as IconSlidersHorizontal,
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
85
|
+
Ro as IconSticker,
|
86
|
+
mo as IconSun,
|
87
|
+
xo as IconThreeDot,
|
88
|
+
Ho as IconTrash,
|
89
|
+
Mo as IconTriangleDown,
|
90
|
+
vo as IconTriangleUp,
|
91
|
+
Go as IconUndo,
|
92
|
+
No as IconUploadSimple,
|
93
|
+
Oo as IconUser,
|
94
|
+
Qo as IconUserX,
|
95
|
+
Eo as IconWarningCircle,
|
96
|
+
bo as IconWrench,
|
97
|
+
Wo as IconX,
|
98
|
+
zo as IconYandexDisk
|
97
99
|
};
|
@@ -0,0 +1,89 @@
|
|
1
|
+
import { jsx as o, jsxs as i } from "react/jsx-runtime";
|
2
|
+
import { useState as d } from "react";
|
3
|
+
import { ModalWindow as r } from "./ModalWindow.js";
|
4
|
+
import { IconCheck as t } from "../Icons/Icons.js";
|
5
|
+
const u = {
|
6
|
+
title: "UIKit/ModalWindow",
|
7
|
+
component: r,
|
8
|
+
tags: ["autodocs"]
|
9
|
+
}, l = () => {
|
10
|
+
const [n, e] = d(!1);
|
11
|
+
return /* @__PURE__ */ i("div", { style: { padding: "20px" }, children: [
|
12
|
+
/* @__PURE__ */ o(
|
13
|
+
"button",
|
14
|
+
{
|
15
|
+
onClick: () => e(!0),
|
16
|
+
style: {
|
17
|
+
padding: "8px 16px",
|
18
|
+
backgroundColor: "#007bff",
|
19
|
+
color: "white",
|
20
|
+
border: "none",
|
21
|
+
borderRadius: "4px",
|
22
|
+
cursor: "pointer"
|
23
|
+
},
|
24
|
+
children: "Open Modal"
|
25
|
+
}
|
26
|
+
),
|
27
|
+
/* @__PURE__ */ o(r, { isOpen: n, onClose: () => e(!1), title: "Basic Modal Window", children: /* @__PURE__ */ i("div", { style: { padding: "20px" }, children: [
|
28
|
+
/* @__PURE__ */ o("p", { children: "This is a simple modal content" }),
|
29
|
+
/* @__PURE__ */ o(
|
30
|
+
"button",
|
31
|
+
{
|
32
|
+
onClick: () => e(!1),
|
33
|
+
style: {
|
34
|
+
padding: "6px 12px",
|
35
|
+
backgroundColor: "#6c757d",
|
36
|
+
color: "white",
|
37
|
+
border: "none",
|
38
|
+
borderRadius: "4px",
|
39
|
+
cursor: "pointer"
|
40
|
+
},
|
41
|
+
children: "Close"
|
42
|
+
}
|
43
|
+
)
|
44
|
+
] }) })
|
45
|
+
] });
|
46
|
+
}, s = () => {
|
47
|
+
const [n, e] = d(!1);
|
48
|
+
return /* @__PURE__ */ i("div", { style: { padding: "20px" }, children: [
|
49
|
+
/* @__PURE__ */ o(
|
50
|
+
"button",
|
51
|
+
{
|
52
|
+
onClick: () => e(!0),
|
53
|
+
style: {
|
54
|
+
padding: "8px 16px",
|
55
|
+
backgroundColor: "#007bff",
|
56
|
+
color: "white",
|
57
|
+
border: "none",
|
58
|
+
borderRadius: "4px",
|
59
|
+
cursor: "pointer"
|
60
|
+
},
|
61
|
+
children: "Open Modal with Icon"
|
62
|
+
}
|
63
|
+
),
|
64
|
+
/* @__PURE__ */ o(
|
65
|
+
r,
|
66
|
+
{
|
67
|
+
isOpen: n,
|
68
|
+
onClose: () => e(!1),
|
69
|
+
title: "Modal with Icon",
|
70
|
+
iconHeader: {
|
71
|
+
view: !0,
|
72
|
+
status: "info",
|
73
|
+
icon: t,
|
74
|
+
size: 24
|
75
|
+
},
|
76
|
+
children: /* @__PURE__ */ o("div", { style: { padding: "20px" }, children: /* @__PURE__ */ o("p", { children: "This modal has an icon in the header" }) })
|
77
|
+
}
|
78
|
+
)
|
79
|
+
] });
|
80
|
+
}, x = {
|
81
|
+
render: () => /* @__PURE__ */ o(l, {})
|
82
|
+
}, f = {
|
83
|
+
render: () => /* @__PURE__ */ o(s, {})
|
84
|
+
};
|
85
|
+
export {
|
86
|
+
x as Basic,
|
87
|
+
f as WithIcon,
|
88
|
+
u as default
|
89
|
+
};
|
@@ -1,50 +1,49 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
5
|
-
const h = c.memo(
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
2
|
+
import f from "react";
|
3
|
+
import o from "../../../../_virtual/index.js";
|
4
|
+
const K = f.memo(
|
6
5
|
({
|
7
6
|
record: t,
|
8
|
-
columns:
|
7
|
+
columns: n,
|
9
8
|
rowKey: a,
|
10
|
-
rowClassName:
|
11
|
-
index:
|
12
|
-
stickyLeft:
|
13
|
-
|
14
|
-
|
9
|
+
rowClassName: d,
|
10
|
+
index: i,
|
11
|
+
stickyLeft: e,
|
12
|
+
bordered: y,
|
13
|
+
id: c
|
15
14
|
}) => {
|
16
|
-
const
|
17
|
-
|
18
|
-
};
|
19
|
-
return /* @__PURE__ */ p(
|
15
|
+
const m = c || (typeof a == "function" ? a(t) : String(t[a]));
|
16
|
+
return /* @__PURE__ */ b(
|
20
17
|
"tr",
|
21
18
|
{
|
22
|
-
|
19
|
+
"data-id": m,
|
20
|
+
className: o(
|
23
21
|
"table-component__wrapper__table__tbody__tr",
|
24
|
-
|
25
|
-
{
|
26
|
-
"table-component__wrapper__table__tbody__tr--hoverable": !!b
|
27
|
-
}
|
22
|
+
d == null ? void 0 : d(t, i)
|
28
23
|
),
|
29
|
-
|
30
|
-
children: _.map((e, o) => /* @__PURE__ */ p(
|
24
|
+
children: n.map((_, r) => /* @__PURE__ */ b(
|
31
25
|
"td",
|
32
26
|
{
|
33
|
-
className:
|
34
|
-
"table-component__wrapper__table__tbody__td--bordered":
|
35
|
-
"table-component__wrapper__table__tbody__td--sticky-left":
|
27
|
+
className: o("table-component__wrapper__table__tbody__td", _.className, {
|
28
|
+
"table-component__wrapper__table__tbody__td--bordered": y,
|
29
|
+
"table-component__wrapper__table__tbody__td--sticky-left": e && r === 0
|
36
30
|
}),
|
37
|
-
align:
|
38
|
-
children:
|
31
|
+
align: _.align,
|
32
|
+
children: _.render ? _.render(t[_.dataIndex], t) : String(t[_.dataIndex] ?? "")
|
39
33
|
},
|
40
|
-
`${
|
34
|
+
`${_.key}-${r}`
|
41
35
|
))
|
42
36
|
},
|
43
|
-
|
37
|
+
m
|
44
38
|
);
|
45
39
|
},
|
46
|
-
(t,
|
40
|
+
(t, n) => {
|
41
|
+
if (t.id && n.id)
|
42
|
+
return t.id === n.id;
|
43
|
+
const a = (e) => typeof e.rowKey == "function" ? e.rowKey(e.record) : String(e.record[e.rowKey]), d = a(t), i = a(n);
|
44
|
+
return d !== i ? !1 : t.columns === n.columns;
|
45
|
+
}
|
47
46
|
);
|
48
47
|
export {
|
49
|
-
|
48
|
+
K as MemoizedRow
|
50
49
|
};
|
@@ -1,161 +1,198 @@
|
|
1
|
-
import { jsx as
|
2
|
-
import
|
3
|
-
import
|
1
|
+
import { jsx as n, jsxs as g } from "react/jsx-runtime";
|
2
|
+
import K, { forwardRef as ee, useState as j, useMemo as te, useCallback as k, useEffect as ne } from "react";
|
3
|
+
import i from "../../../_virtual/index.js";
|
4
4
|
import '../../../assets/src/components/Ui/Table/Table.css';/* empty css */
|
5
|
-
import { IconCaretDown as
|
6
|
-
import { MemoizedRow as
|
7
|
-
import { Loader as
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
columns:
|
15
|
-
dataSource:
|
16
|
-
rowKey:
|
17
|
-
tableClassName:
|
18
|
-
theadClassName:
|
19
|
-
trTheadClassNames:
|
20
|
-
thTheadClassNames:
|
21
|
-
tbodyClassName:
|
22
|
-
wrapperClassName:
|
23
|
-
borderBottom:
|
24
|
-
stickyHeader:
|
25
|
-
stickyLeft:
|
26
|
-
bordered:
|
27
|
-
rowClassName:
|
28
|
-
defaultSort:
|
29
|
-
onClickTr:
|
30
|
-
onClickTrHeader:
|
31
|
-
loading:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
),
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
5
|
+
import { IconCaretDown as z, IconCaretUp as ae } from "../Icons/Icons.js";
|
6
|
+
import { MemoizedRow as C } from "./MemoizedRow/MemoizedRow.js";
|
7
|
+
import { Loader as re } from "../Loader/Loader.js";
|
8
|
+
import { TableSkeletonRow as se } from "./TableSkeletonRow/TableSkeletonRow.js";
|
9
|
+
const L = {
|
10
|
+
asc: /* @__PURE__ */ n(z, { viewBox: "0 -6 24 24", "aria-hidden": "true" }),
|
11
|
+
desc: /* @__PURE__ */ n(ae, { viewBox: "0 -4 24 24", "aria-hidden": "true" }),
|
12
|
+
default: /* @__PURE__ */ n(z, { viewBox: "0 -6 24 24", "aria-hidden": "true" })
|
13
|
+
}, le = ({
|
14
|
+
columns: m,
|
15
|
+
dataSource: l,
|
16
|
+
rowKey: f,
|
17
|
+
tableClassName: $,
|
18
|
+
theadClassName: O,
|
19
|
+
trTheadClassNames: U,
|
20
|
+
thTheadClassNames: q,
|
21
|
+
tbodyClassName: F,
|
22
|
+
wrapperClassName: G,
|
23
|
+
borderBottom: y = !1,
|
24
|
+
stickyHeader: H = !1,
|
25
|
+
stickyLeft: b = !1,
|
26
|
+
bordered: p = !1,
|
27
|
+
rowClassName: x,
|
28
|
+
defaultSort: J,
|
29
|
+
onClickTr: d,
|
30
|
+
onClickTrHeader: P,
|
31
|
+
loading: R = !1,
|
32
|
+
hasMore: Q = !1,
|
33
|
+
loadingIndicator: S,
|
34
|
+
loaderRef: B,
|
35
|
+
externalSorting: D = !1,
|
36
|
+
entities: c,
|
37
|
+
sortedIds: u,
|
38
|
+
containerRef: V
|
39
|
+
}, W) => {
|
40
|
+
const T = K.useRef(null), o = !!c && !!u, [A, X] = j(l || []), [s, E] = j(
|
41
|
+
J || null
|
42
|
+
), N = te(() => {
|
43
|
+
if (!o)
|
44
|
+
return D ? l : A;
|
45
|
+
}, [o, l, A, D]), I = k(
|
46
|
+
(e, t) => {
|
47
|
+
if (o) {
|
48
|
+
E({ key: e, order: t });
|
49
|
+
return;
|
50
|
+
}
|
51
|
+
X((_) => [..._].sort((h, M) => {
|
52
|
+
const r = h[e], a = M[e];
|
53
|
+
return typeof r == "string" && typeof a == "string" ? t === "asc" ? r.localeCompare(a) : a.localeCompare(r) : typeof r == "number" && typeof a == "number" ? t === "asc" ? r - a : a - r : r instanceof Date && a instanceof Date ? t === "asc" ? r.getTime() - a.getTime() : a.getTime() - r.getTime() : 0;
|
54
|
+
})), E({ key: e, order: t });
|
55
|
+
},
|
56
|
+
[o]
|
57
|
+
), v = k(
|
58
|
+
(e) => typeof f == "function" ? f(e) : String(e[f]),
|
59
|
+
[f]
|
60
|
+
), Y = k(
|
48
61
|
(e) => {
|
49
|
-
const
|
50
|
-
|
62
|
+
const _ = (s == null ? void 0 : s.key) === e && s.order === "asc" ? "desc" : "asc";
|
63
|
+
I(e, _);
|
51
64
|
},
|
52
|
-
[
|
65
|
+
[s, I]
|
53
66
|
);
|
54
|
-
return
|
67
|
+
return ne(() => {
|
68
|
+
const e = T.current;
|
69
|
+
if (!e) return;
|
70
|
+
const t = (_) => {
|
71
|
+
const w = _.target, h = w.closest("tr");
|
72
|
+
if (!h || w.closest("[data-no-bubble]")) return;
|
73
|
+
const r = h.dataset.id;
|
74
|
+
if (!(!r || !d))
|
75
|
+
if (o && c) {
|
76
|
+
const a = c[r];
|
77
|
+
a && d(a);
|
78
|
+
} else {
|
79
|
+
const a = l == null ? void 0 : l.find((Z) => v(Z) === r);
|
80
|
+
a && d(a);
|
81
|
+
}
|
82
|
+
};
|
83
|
+
return e.addEventListener("click", t), () => e.removeEventListener("click", t);
|
84
|
+
}, [l, d, v, o, c]), /* @__PURE__ */ n("div", { className: i("table-component", G), children: /* @__PURE__ */ n(
|
55
85
|
"div",
|
56
86
|
{
|
57
|
-
className:
|
87
|
+
className: i(
|
58
88
|
"table-component__wrapper",
|
59
89
|
{
|
60
|
-
bordered:
|
61
|
-
borderBottom:
|
90
|
+
bordered: p,
|
91
|
+
borderBottom: y
|
62
92
|
},
|
63
|
-
|
93
|
+
$
|
64
94
|
),
|
65
|
-
|
95
|
+
ref: V,
|
96
|
+
children: /* @__PURE__ */ g(
|
66
97
|
"table",
|
67
98
|
{
|
68
|
-
className:
|
69
|
-
bordered:
|
70
|
-
borderBottom:
|
99
|
+
className: i("table-component__wrapper__table", {
|
100
|
+
bordered: p,
|
101
|
+
borderBottom: y
|
71
102
|
}),
|
103
|
+
ref: W,
|
72
104
|
children: [
|
73
|
-
/* @__PURE__ */
|
105
|
+
/* @__PURE__ */ n(
|
74
106
|
"thead",
|
75
107
|
{
|
76
|
-
className:
|
108
|
+
className: i(
|
77
109
|
"table-component__wrapper__table__thead",
|
78
110
|
{
|
79
|
-
stickyHeader:
|
111
|
+
stickyHeader: H
|
80
112
|
},
|
81
|
-
|
113
|
+
O
|
82
114
|
),
|
83
|
-
children: /* @__PURE__ */
|
115
|
+
children: /* @__PURE__ */ n(
|
84
116
|
"tr",
|
85
117
|
{
|
86
|
-
className:
|
118
|
+
className: i(
|
87
119
|
"table-component__wrapper__table__thead__tr",
|
88
|
-
|
120
|
+
U
|
89
121
|
),
|
90
|
-
onClick:
|
91
|
-
children:
|
122
|
+
onClick: P,
|
123
|
+
children: m.map((e, t) => /* @__PURE__ */ n(
|
92
124
|
"th",
|
93
125
|
{
|
94
|
-
className:
|
126
|
+
className: i(
|
95
127
|
"table-component__wrapper__table__thead__th",
|
96
128
|
{
|
97
|
-
bordered:
|
98
|
-
stickyLeft:
|
129
|
+
bordered: p,
|
130
|
+
stickyLeft: b && t === 0
|
99
131
|
},
|
100
|
-
|
132
|
+
q
|
101
133
|
),
|
102
134
|
style: {
|
103
135
|
...e.width ? { width: e.width } : {},
|
104
136
|
...e.align ? { textAlign: e.align } : {}
|
105
137
|
},
|
106
|
-
onClick: () => e.sorted &&
|
107
|
-
children: /* @__PURE__ */
|
138
|
+
onClick: () => e.sorted && Y(e.key),
|
139
|
+
children: /* @__PURE__ */ g("div", { className: "th-content", children: [
|
108
140
|
e.title,
|
109
|
-
e.sorted && /* @__PURE__ */
|
141
|
+
e.sorted && /* @__PURE__ */ n("span", { className: "sort-icon", children: (s == null ? void 0 : s.key) === e.key ? L[s.order] : L.default })
|
110
142
|
] })
|
111
143
|
},
|
112
|
-
`${e.key}-${
|
144
|
+
`${e.key}-${t}`
|
113
145
|
))
|
114
146
|
}
|
115
147
|
)
|
116
148
|
}
|
117
149
|
),
|
118
|
-
/* @__PURE__ */
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
150
|
+
/* @__PURE__ */ g(
|
151
|
+
"tbody",
|
152
|
+
{
|
153
|
+
ref: T,
|
154
|
+
className: i("table-component__wrapper__table__tbody", F),
|
155
|
+
children: [
|
156
|
+
o && u ? u.map((e) => {
|
157
|
+
const t = c == null ? void 0 : c[e];
|
158
|
+
return t ? /* @__PURE__ */ n(
|
159
|
+
C,
|
160
|
+
{
|
161
|
+
record: t,
|
162
|
+
columns: m,
|
163
|
+
rowKey: f,
|
164
|
+
rowClassName: x,
|
165
|
+
index: u.indexOf(e),
|
166
|
+
stickyLeft: b,
|
167
|
+
bordered: p,
|
168
|
+
id: e
|
169
|
+
},
|
170
|
+
e
|
171
|
+
) : null;
|
172
|
+
}) : N == null ? void 0 : N.map((e, t) => /* @__PURE__ */ n(
|
173
|
+
C,
|
174
|
+
{
|
175
|
+
record: e,
|
176
|
+
columns: m,
|
177
|
+
rowKey: f,
|
178
|
+
rowClassName: x,
|
179
|
+
index: t,
|
180
|
+
stickyLeft: b,
|
181
|
+
bordered: p
|
182
|
+
},
|
183
|
+
v(e)
|
184
|
+
)),
|
185
|
+
R ? /* @__PURE__ */ n("div", { className: "loading_table_init", children: /* @__PURE__ */ n(re, { className: "centered" }) }) : null,
|
186
|
+
!R && Q && B && /* @__PURE__ */ n("tr", { ref: B, children: /* @__PURE__ */ n("td", { colSpan: m.length, children: S || /* @__PURE__ */ n(se, { colSpan: m.length }) }) })
|
187
|
+
]
|
188
|
+
}
|
189
|
+
)
|
152
190
|
]
|
153
191
|
}
|
154
192
|
)
|
155
193
|
}
|
156
194
|
) });
|
157
|
-
}
|
158
|
-
const K = U.memo(J);
|
195
|
+
}, ue = ee(le);
|
159
196
|
export {
|
160
|
-
|
197
|
+
ue as Table
|
161
198
|
};
|