qaema-ui 0.0.61 → 0.0.63
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/dist/components/Badge.js +1 -1
- package/dist/components/PackageCard.d.ts +34 -0
- package/dist/components/PackageCard.js +277 -53
- package/dist/components/PageHeader.js +4 -4
- package/dist/components/PriceCard.d.ts +9 -0
- package/dist/components/PriceCard.js +153 -139
- package/dist/components/SearchBar.js +10 -9
- package/dist/components/Sidemenu.js +58 -51
- package/dist/components/StatCard.js +1 -1
- package/dist/components/Table/Table.js +104 -100
- package/dist/components/Table/Table.styles.d.ts +4 -2
- package/dist/components/Table/Table.styles.js +49 -36
- package/dist/components/Table/Table.types.d.ts +1 -0
- package/dist/node_modules/react-icons/fi/index.js +5 -1
- package/package.json +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as o } from "../_virtual/jsx-runtime.js";
|
|
2
2
|
import { useState as m, useEffect as H } from "react";
|
|
3
|
-
import { FaTimesCircle as O
|
|
4
|
-
import
|
|
3
|
+
import { FaTimesCircle as O } from "../node_modules/react-icons/fa/index.js";
|
|
4
|
+
import { FiSearch as R } from "../node_modules/react-icons/fi/index.js";
|
|
5
|
+
import n, { useTheme as X } from "styled-components";
|
|
5
6
|
import { device as S } from "../constants/breakPoints.constant.js";
|
|
6
7
|
import K from "../hooks/useZIndex.js";
|
|
7
8
|
import { useQaemaCoreTranslation as M } from "../i18n/i18n.js";
|
|
@@ -12,7 +13,7 @@ import b from "./NavItem.js";
|
|
|
12
13
|
import w from "./Typography.js";
|
|
13
14
|
import Z from "../node_modules/react-bootstrap/esm/Button.js";
|
|
14
15
|
import _ from "../node_modules/react-bootstrap/esm/Form.js";
|
|
15
|
-
const v =
|
|
16
|
+
const v = n.div`
|
|
16
17
|
direction: ${({ theme: r }) => r == null ? void 0 : r.dir};
|
|
17
18
|
position: fixed;
|
|
18
19
|
top: 0;
|
|
@@ -43,16 +44,16 @@ const v = o.div`
|
|
|
43
44
|
${({ theme: r }) => {
|
|
44
45
|
if ((r == null ? void 0 : r.dir) === "rtl") return `padding-left: 0 !important;padding-right: ${r.spacing.xs};`;
|
|
45
46
|
}}
|
|
46
|
-
`, A =
|
|
47
|
+
`, A = n.div`
|
|
47
48
|
display: flex;
|
|
48
49
|
flex-direction: row;
|
|
49
50
|
width: 100%;
|
|
50
51
|
justify-content: space-between;
|
|
51
|
-
`, J =
|
|
52
|
+
`, J = n.div`
|
|
52
53
|
padding-right: ${({ theme: r }) => r.spacing.sm};
|
|
53
54
|
padding-left: ${({ theme: r }) => r.spacing.sm};
|
|
54
55
|
cursor: pointer;
|
|
55
|
-
`, Q =
|
|
56
|
+
`, Q = n.div`
|
|
56
57
|
display: none;
|
|
57
58
|
|
|
58
59
|
@media ${S.tablet} {
|
|
@@ -64,15 +65,15 @@ const v = o.div`
|
|
|
64
65
|
height: 1.5rem;
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
|
-
`, q =
|
|
68
|
+
`, q = n.div`
|
|
68
69
|
padding-right: ${({ theme: r }) => r.spacing.s};
|
|
69
70
|
padding-left: ${({ theme: r }) => r.spacing.s};
|
|
70
|
-
`, G =
|
|
71
|
+
`, G = n.div`
|
|
71
72
|
justify-content: space-between;
|
|
72
73
|
display: flex;
|
|
73
74
|
flex-direction: column;
|
|
74
75
|
height: 100%;
|
|
75
|
-
`, Y =
|
|
76
|
+
`, Y = n.div`
|
|
76
77
|
display: flex;
|
|
77
78
|
flex-direction: row;
|
|
78
79
|
gap: ${({ theme: r }) => r.spacing.xxs};
|
|
@@ -80,7 +81,7 @@ const v = o.div`
|
|
|
80
81
|
background-color: ${({ theme: r }) => r.colors.grey.n150};
|
|
81
82
|
border: 1px solid transparent;
|
|
82
83
|
border-radius: ${({ theme: r }) => r.borderRadius.lg};
|
|
83
|
-
`, P =
|
|
84
|
+
`, P = n(Z)`
|
|
84
85
|
border: none;
|
|
85
86
|
padding: 0;
|
|
86
87
|
margin-top: ${({ theme: r }) => r.spacing.xxs};
|
|
@@ -90,16 +91,22 @@ const v = o.div`
|
|
|
90
91
|
svg {
|
|
91
92
|
background-color: ${({ theme: r }) => r.colors.grey.n150};
|
|
92
93
|
}
|
|
93
|
-
`, I =
|
|
94
|
+
`, I = n(_.Control)`
|
|
94
95
|
padding: ${({ theme: r }) => r.spacing.xxs};
|
|
95
96
|
border: none;
|
|
96
97
|
background-color: ${({ theme: r }) => r.colors.grey.n150};
|
|
97
98
|
color: ${({ theme: r }) => r.colors.grey.n350};
|
|
99
|
+
font-size: ${({ theme: r }) => r.typography.sizes.s4};
|
|
98
100
|
|
|
99
101
|
&:focus-visible {
|
|
100
102
|
outline: none;
|
|
101
103
|
}
|
|
102
|
-
|
|
104
|
+
|
|
105
|
+
&::placeholder {
|
|
106
|
+
font-size: ${({ theme: r }) => r.typography.sizes.s4} !important;
|
|
107
|
+
color: ${({ theme: r }) => r.colors.grey.n350} !important;
|
|
108
|
+
}
|
|
109
|
+
`, rr = n.div`
|
|
103
110
|
padding-right: ${({ theme: r }) => r.spacing.s};
|
|
104
111
|
button {
|
|
105
112
|
width: 100%;
|
|
@@ -108,89 +115,89 @@ const v = o.div`
|
|
|
108
115
|
${({ theme: r }) => {
|
|
109
116
|
if ((r == null ? void 0 : r.dir) === "rtl") return `padding-right: 0 !important;padding-left: ${r.spacing.s};`;
|
|
110
117
|
}}
|
|
111
|
-
`,
|
|
118
|
+
`, ir = n(w)`
|
|
112
119
|
padding-right: ${({ theme: r }) => r.spacing.s};
|
|
113
120
|
padding-left: ${({ theme: r }) => r.spacing.s};
|
|
114
121
|
margin-top: 0;
|
|
115
122
|
margin-bottom: ${({ theme: r }) => r.spacing.xs};
|
|
116
|
-
`,
|
|
123
|
+
`, or = n.div`
|
|
117
124
|
padding: ${({ theme: r }) => r.spacing.m};
|
|
118
125
|
text-align: center;
|
|
119
|
-
`,
|
|
126
|
+
`, nr = n.div`
|
|
120
127
|
button {
|
|
121
128
|
width: 100%;
|
|
122
129
|
border-radius: ${({ theme: r }) => r.spacing.xxs};
|
|
123
130
|
}
|
|
124
|
-
`, sr =
|
|
131
|
+
`, sr = n(U)`
|
|
125
132
|
margin-left: -${({ theme: r }) => r.spacing.xs};
|
|
126
133
|
width: calc(100% + ${({ theme: r }) => r.spacing.xs});
|
|
127
134
|
${({ theme: r }) => {
|
|
128
135
|
if ((r == null ? void 0 : r.dir) === "rtl") return `margin-left: 0; margin-right: -${r.spacing.xs}; width: calc(100% + ${r.spacing.xs});`;
|
|
129
136
|
}}
|
|
130
137
|
margin-bottom: ${({ theme: r }) => r.spacing.sm};
|
|
131
|
-
`,
|
|
132
|
-
const { logoSrc: C, searchPlaceHolder: k, categories:
|
|
138
|
+
`, jr = (r) => {
|
|
139
|
+
const { logoSrc: C, searchPlaceHolder: k, categories: p, linkComponent: f, open: z, setOpen: T, currentPath: u, extraSideMenuItems: l, onLogoClick: E } = r, a = X(), { t: D } = M(), L = K("sidemenu"), [c, B] = m(""), [t, F] = m(p), g = (i) => {
|
|
133
140
|
const e = [];
|
|
134
|
-
|
|
141
|
+
p == null || p.forEach((d) => {
|
|
135
142
|
var h;
|
|
136
|
-
const s = (h =
|
|
143
|
+
const s = (h = d == null ? void 0 : d.navItems) == null ? void 0 : h.filter((x) => {
|
|
137
144
|
var $, y;
|
|
138
|
-
return (y = ($ = x == null ? void 0 : x.title) == null ? void 0 : $.toLowerCase()) == null ? void 0 : y.includes(
|
|
145
|
+
return (y = ($ = x == null ? void 0 : x.title) == null ? void 0 : $.toLowerCase()) == null ? void 0 : y.includes(i == null ? void 0 : i.toLowerCase());
|
|
139
146
|
});
|
|
140
|
-
(s == null ? void 0 : s.length) > 0 && e.push({ ...
|
|
141
|
-
}),
|
|
142
|
-
},
|
|
143
|
-
|
|
147
|
+
(s == null ? void 0 : s.length) > 0 && e.push({ ...d, navItems: s });
|
|
148
|
+
}), F(e);
|
|
149
|
+
}, N = (i) => {
|
|
150
|
+
i.key === "Enter" && g(c);
|
|
144
151
|
};
|
|
145
152
|
H(() => {
|
|
146
153
|
c === "" && g(c);
|
|
147
154
|
}, [c]);
|
|
148
|
-
const
|
|
149
|
-
return /* @__PURE__ */
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
/* @__PURE__ */
|
|
155
|
+
const W = (i, e) => i ? e === i || (e == null ? void 0 : e.startsWith(i + "/")) : !1;
|
|
156
|
+
return /* @__PURE__ */ o.jsxs(v, { className: z ? "active" : "", $zIndex: L, children: [
|
|
157
|
+
/* @__PURE__ */ o.jsxs(A, { children: [
|
|
158
|
+
/* @__PURE__ */ o.jsx(J, { onClick: E, children: /* @__PURE__ */ o.jsx(V, { src: C, width: "6.336rem", height: "2rem" }) }),
|
|
159
|
+
/* @__PURE__ */ o.jsx(Q, { onClick: () => T(!1), children: /* @__PURE__ */ o.jsx(O, { color: a.colors.primary.purple.n450 }) })
|
|
153
160
|
] }),
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ o.jsx(q, { children: /* @__PURE__ */ o.jsxs(Y, { children: [
|
|
162
|
+
/* @__PURE__ */ o.jsx(
|
|
156
163
|
P,
|
|
157
164
|
{
|
|
158
165
|
onClick: () => {
|
|
159
166
|
g(c);
|
|
160
167
|
},
|
|
161
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ o.jsx(R, { color: a.colors.grey.n350, size: 20 })
|
|
162
169
|
}
|
|
163
170
|
),
|
|
164
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ o.jsx(
|
|
165
172
|
I,
|
|
166
173
|
{
|
|
167
174
|
placeholder: k ?? "Search",
|
|
168
175
|
value: c,
|
|
169
|
-
onChange: (
|
|
170
|
-
|
|
176
|
+
onChange: (i) => {
|
|
177
|
+
B(i.target.value);
|
|
171
178
|
},
|
|
172
|
-
onKeyDown:
|
|
179
|
+
onKeyDown: N
|
|
173
180
|
}
|
|
174
181
|
)
|
|
175
182
|
] }) }),
|
|
176
|
-
/* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */
|
|
178
|
-
(
|
|
179
|
-
(
|
|
180
|
-
var e,
|
|
181
|
-
return ((e =
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
(
|
|
184
|
-
] },
|
|
183
|
+
/* @__PURE__ */ o.jsxs(G, { children: [
|
|
184
|
+
/* @__PURE__ */ o.jsxs("div", { children: [
|
|
185
|
+
(t == null ? void 0 : t.length) === 0 && /* @__PURE__ */ o.jsx(or, { children: /* @__PURE__ */ o.jsx(w, { variant: "smText", children: D("NO_RESULTS_FOUND") }) }),
|
|
186
|
+
(t == null ? void 0 : t.length) > 0 && (t == null ? void 0 : t.map((i) => {
|
|
187
|
+
var e, d;
|
|
188
|
+
return ((e = i == null ? void 0 : i.navItems) == null ? void 0 : e.length) === 0 ? null : /* @__PURE__ */ o.jsxs(rr, { className: i == null ? void 0 : i.code, children: [
|
|
189
|
+
/* @__PURE__ */ o.jsx(ir, { variant: "xsText", color: a.colors.grey.n300, children: i == null ? void 0 : i.title }),
|
|
190
|
+
(d = i == null ? void 0 : i.navItems) == null ? void 0 : d.map((s) => /* @__PURE__ */ o.jsx(j, { to: (s == null ? void 0 : s.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ o.jsx(b, { item: { variant: "normal", active: W(s.path, u), ...s } }) }, s == null ? void 0 : s.path))
|
|
191
|
+
] }, i == null ? void 0 : i.title);
|
|
185
192
|
}))
|
|
186
193
|
] }),
|
|
187
|
-
/* @__PURE__ */
|
|
188
|
-
(l == null ? void 0 : l.length) > 0 && /* @__PURE__ */
|
|
189
|
-
l == null ? void 0 : l.map((
|
|
194
|
+
/* @__PURE__ */ o.jsxs(nr, { children: [
|
|
195
|
+
(l == null ? void 0 : l.length) > 0 && /* @__PURE__ */ o.jsx(sr, { color: a.colors.grey.n150 }),
|
|
196
|
+
l == null ? void 0 : l.map((i) => /* @__PURE__ */ o.jsx(j, { to: (i == null ? void 0 : i.path) ?? "/", component: f, wrapper: !0, children: /* @__PURE__ */ o.jsx(b, { item: { variant: "normal", active: u === i.path, ...i } }) }, i == null ? void 0 : i.path))
|
|
190
197
|
] })
|
|
191
198
|
] })
|
|
192
199
|
] });
|
|
193
200
|
};
|
|
194
201
|
export {
|
|
195
|
-
|
|
202
|
+
jr as default
|
|
196
203
|
};
|
|
@@ -49,7 +49,7 @@ const w = s.div`
|
|
|
49
49
|
justify-content: start;
|
|
50
50
|
font-family: 'Noto Sans Display', sans-serif;
|
|
51
51
|
font-weight: 600;
|
|
52
|
-
font-size: ${({ theme: r }) => r.typography.sizes.
|
|
52
|
+
font-size: ${({ theme: r }) => r.typography.sizes.s2};
|
|
53
53
|
line-height: 0.8125rem;
|
|
54
54
|
color: ${({ theme: r, state: e }) => e === "negative" ? r.colors.state.error.n450 : r.colors.grey.n650};
|
|
55
55
|
svg {
|
|
@@ -1,167 +1,171 @@
|
|
|
1
1
|
import { j as t } from "../../_virtual/jsx-runtime.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
2
|
+
import { useState as p, useRef as Q, useCallback as U, useEffect as T, useMemo as X } from "react";
|
|
3
|
+
import { useTranslation as Y } from "react-i18next";
|
|
4
|
+
import Z from "../Spinner.js";
|
|
5
|
+
import D from "../Pagination.js";
|
|
6
|
+
import k from "../Typography.js";
|
|
7
|
+
import W, { CheckboxCell as F } from "./components/CellComponents.js";
|
|
8
8
|
import O from "./components/TableHead.js";
|
|
9
|
-
import { TableContainer as
|
|
10
|
-
function
|
|
11
|
-
columns:
|
|
12
|
-
data:
|
|
13
|
-
keyField:
|
|
14
|
-
selectable:
|
|
15
|
-
onRowSelect:
|
|
16
|
-
rowActions:
|
|
17
|
-
stickyHeader:
|
|
18
|
-
loading:
|
|
19
|
-
emptyStateMessage:
|
|
20
|
-
pagination:
|
|
21
|
-
onRowClick:
|
|
22
|
-
rowClassName:
|
|
9
|
+
import { TableContainer as R, LoadingOverlay as w, TablesWrapper as ee, DataScrollBox as te, StyledTable as re, TableBody as y, EmptyState as ne, TableRow as I, TableCellContainer as $, ActionsTable as se, TableFooter as le } from "./Table.styles.js";
|
|
10
|
+
function fe({
|
|
11
|
+
columns: C,
|
|
12
|
+
data: s,
|
|
13
|
+
keyField: l,
|
|
14
|
+
selectable: g = !1,
|
|
15
|
+
onRowSelect: a,
|
|
16
|
+
rowActions: m,
|
|
17
|
+
stickyHeader: B = !1,
|
|
18
|
+
loading: x = !1,
|
|
19
|
+
emptyStateMessage: N,
|
|
20
|
+
pagination: r,
|
|
21
|
+
onRowClick: u,
|
|
22
|
+
rowClassName: b,
|
|
23
23
|
isRowDisabled: d,
|
|
24
|
-
breakpoint:
|
|
25
|
-
alignHeader:
|
|
24
|
+
breakpoint: _ = "md",
|
|
25
|
+
alignHeader: E = "start"
|
|
26
26
|
}) {
|
|
27
|
-
const [h,
|
|
28
|
-
|
|
27
|
+
const [h, v] = p([]), [L, P] = p(_), [K, z] = p(null), [M, V] = p(!1), f = Q(null), { t: q } = Y(), j = U(() => {
|
|
28
|
+
f.current && V(f.current.scrollWidth > f.current.clientWidth);
|
|
29
|
+
}, []);
|
|
30
|
+
T(() => (j(), window.addEventListener("resize", j), () => window.removeEventListener("resize", j)), [j, s]), T(() => {
|
|
29
31
|
const e = () => {
|
|
30
|
-
|
|
32
|
+
z(null);
|
|
31
33
|
};
|
|
32
34
|
return document.addEventListener("click", e), () => {
|
|
33
35
|
document.removeEventListener("click", e);
|
|
34
36
|
};
|
|
35
|
-
}, []),
|
|
37
|
+
}, []), T(() => {
|
|
36
38
|
const e = () => {
|
|
37
|
-
const
|
|
38
|
-
|
|
39
|
+
const i = window.innerWidth;
|
|
40
|
+
i < 576 ? P("sm") : i < 992 ? P("md") : P("lg");
|
|
39
41
|
};
|
|
40
42
|
return e(), window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
41
43
|
}, []);
|
|
42
|
-
const
|
|
43
|
-
h.length ===
|
|
44
|
-
},
|
|
45
|
-
const
|
|
46
|
-
return
|
|
47
|
-
},
|
|
48
|
-
const
|
|
49
|
-
let
|
|
50
|
-
|
|
44
|
+
const S = X(() => C.filter((e) => typeof e.hidden == "function" ? !e.hidden(L) : !e.hidden), [C, L]), G = () => {
|
|
45
|
+
h.length === s.length ? v([]) : v([...s]), a && a(h.length === s.length ? [] : [...s]);
|
|
46
|
+
}, H = (e) => {
|
|
47
|
+
const i = h.filter((n) => e[l] === n[l]);
|
|
48
|
+
return i && i.length > 0;
|
|
49
|
+
}, J = (e) => {
|
|
50
|
+
const i = h.some((o) => o[l] === e[l]);
|
|
51
|
+
let n;
|
|
52
|
+
i ? n = h.filter((o) => o[l] !== e[l]) : n = [...h, e], v(n), a && a(n);
|
|
51
53
|
};
|
|
52
|
-
return /* @__PURE__ */ t.jsxs(
|
|
53
|
-
|
|
54
|
-
/* @__PURE__ */ t.jsxs(
|
|
55
|
-
/* @__PURE__ */ t.jsx(
|
|
54
|
+
return /* @__PURE__ */ t.jsxs(R, { children: [
|
|
55
|
+
x && /* @__PURE__ */ t.jsx(w, { children: /* @__PURE__ */ t.jsx(Z, { size: "3rem" }) }),
|
|
56
|
+
/* @__PURE__ */ t.jsxs(ee, { children: [
|
|
57
|
+
/* @__PURE__ */ t.jsx(te, { ref: f, children: /* @__PURE__ */ t.jsxs(re, { children: [
|
|
56
58
|
/* @__PURE__ */ t.jsx(
|
|
57
59
|
O,
|
|
58
60
|
{
|
|
59
|
-
data:
|
|
60
|
-
handleSelectAll:
|
|
61
|
+
data: s,
|
|
62
|
+
handleSelectAll: G,
|
|
61
63
|
selectedRows: h,
|
|
62
|
-
visibleColumns:
|
|
63
|
-
alignHeader:
|
|
64
|
+
visibleColumns: S,
|
|
65
|
+
alignHeader: E,
|
|
64
66
|
rowActions: void 0,
|
|
65
|
-
stickyHeader:
|
|
66
|
-
selectable:
|
|
67
|
-
loading:
|
|
67
|
+
stickyHeader: B,
|
|
68
|
+
selectable: g,
|
|
69
|
+
loading: x
|
|
68
70
|
}
|
|
69
71
|
),
|
|
70
|
-
/* @__PURE__ */ t.jsx(
|
|
71
|
-
const
|
|
72
|
+
/* @__PURE__ */ t.jsx(y, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { colSpan: (g ? 1 : 0) + S.length, children: /* @__PURE__ */ t.jsx(ne, { children: /* @__PURE__ */ t.jsx(k, { variant: "mdText", children: N ?? q("NO_DATA_AVAILABLE") }) }) }) }) : s.map((e, i) => {
|
|
73
|
+
const n = (d == null ? void 0 : d(e)) ?? !1, o = h.some((c) => c[l] === e[l]), A = e[l];
|
|
72
74
|
return /* @__PURE__ */ t.jsxs(
|
|
73
|
-
|
|
75
|
+
I,
|
|
74
76
|
{
|
|
75
77
|
$selected: o,
|
|
76
|
-
$disabled:
|
|
77
|
-
$clickable: !!
|
|
78
|
-
onClick: () =>
|
|
79
|
-
|
|
78
|
+
$disabled: n,
|
|
79
|
+
$clickable: !!u && !n,
|
|
80
|
+
onClick: () => {
|
|
81
|
+
n || u == null || u(e);
|
|
82
|
+
},
|
|
83
|
+
className: (b == null ? void 0 : b(e, i)) ?? "",
|
|
80
84
|
children: [
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
g && /* @__PURE__ */ t.jsx($, { $align: "center", $isFirstColumn: !0, children: /* @__PURE__ */ t.jsx(
|
|
86
|
+
F,
|
|
83
87
|
{
|
|
84
88
|
checkBoxOptions: {
|
|
85
|
-
checked:
|
|
89
|
+
checked: H(e),
|
|
86
90
|
$variant: "primary",
|
|
87
|
-
$disabled:
|
|
91
|
+
$disabled: n,
|
|
88
92
|
$size: "sm",
|
|
89
|
-
onChange: () => !
|
|
93
|
+
onChange: () => !n && J(e)
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
) }),
|
|
93
|
-
|
|
94
|
-
|
|
97
|
+
S.map((c) => /* @__PURE__ */ t.jsx($, { $align: c.align, children: /* @__PURE__ */ t.jsx(
|
|
98
|
+
W,
|
|
95
99
|
{
|
|
96
|
-
column:
|
|
100
|
+
column: c,
|
|
97
101
|
row: e,
|
|
98
|
-
type:
|
|
99
|
-
align:
|
|
100
|
-
className:
|
|
101
|
-
width:
|
|
102
|
-
minWidth:
|
|
103
|
-
maxWidth:
|
|
102
|
+
type: c.cellType ?? "text",
|
|
103
|
+
align: c.align,
|
|
104
|
+
className: c.className,
|
|
105
|
+
width: c.width ?? "",
|
|
106
|
+
minWidth: c.minWidth ?? "",
|
|
107
|
+
maxWidth: c.maxWidth ?? ""
|
|
104
108
|
}
|
|
105
|
-
) }, `${A}-${
|
|
109
|
+
) }, `${A}-${c.id}`))
|
|
106
110
|
]
|
|
107
111
|
},
|
|
108
112
|
A
|
|
109
113
|
);
|
|
110
114
|
}) })
|
|
111
115
|
] }) }),
|
|
112
|
-
|
|
116
|
+
m && m.length > 0 && /* @__PURE__ */ t.jsxs(se, { $hasScrollbar: M, children: [
|
|
113
117
|
/* @__PURE__ */ t.jsx(
|
|
114
118
|
O,
|
|
115
119
|
{
|
|
116
|
-
data:
|
|
120
|
+
data: s,
|
|
117
121
|
handleSelectAll: () => {
|
|
118
122
|
},
|
|
119
123
|
selectedRows: h,
|
|
120
124
|
visibleColumns: [],
|
|
121
|
-
alignHeader:
|
|
122
|
-
rowActions:
|
|
123
|
-
stickyHeader:
|
|
125
|
+
alignHeader: E,
|
|
126
|
+
rowActions: m,
|
|
127
|
+
stickyHeader: B,
|
|
124
128
|
selectable: !1,
|
|
125
|
-
loading:
|
|
129
|
+
loading: x
|
|
126
130
|
}
|
|
127
131
|
),
|
|
128
|
-
/* @__PURE__ */ t.jsx(
|
|
129
|
-
const
|
|
130
|
-
return /* @__PURE__ */ t.jsx(
|
|
131
|
-
|
|
132
|
+
/* @__PURE__ */ t.jsx(y, { children: s.length === 0 ? /* @__PURE__ */ t.jsx("tr", { children: /* @__PURE__ */ t.jsx("td", { children: /* @__PURE__ */ t.jsx("div", { style: { height: "3.5rem" } }) }) }) : s.map((e) => {
|
|
133
|
+
const i = (d == null ? void 0 : d(e)) ?? !1;
|
|
134
|
+
return /* @__PURE__ */ t.jsx(I, { $disabled: i, children: /* @__PURE__ */ t.jsx($, { $align: "center", $isActionCell: !0, children: /* @__PURE__ */ t.jsx(
|
|
135
|
+
W,
|
|
132
136
|
{
|
|
133
137
|
row: e,
|
|
134
138
|
type: "icon",
|
|
135
139
|
iconOptions: {
|
|
136
|
-
keyField:
|
|
137
|
-
rowActions:
|
|
138
|
-
activeDropdown:
|
|
139
|
-
setActiveDropdown:
|
|
140
|
+
keyField: l,
|
|
141
|
+
rowActions: m,
|
|
142
|
+
activeDropdown: K,
|
|
143
|
+
setActiveDropdown: z
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
|
-
) }) }, `action-${e[
|
|
146
|
+
) }) }, `action-${e[l]}`);
|
|
143
147
|
}) })
|
|
144
148
|
] })
|
|
145
149
|
] }),
|
|
146
|
-
|
|
147
|
-
|
|
150
|
+
r && r.enabled && /* @__PURE__ */ t.jsx(le, { children: /* @__PURE__ */ t.jsx(
|
|
151
|
+
D,
|
|
148
152
|
{
|
|
149
|
-
currentPage:
|
|
150
|
-
totalPages:
|
|
151
|
-
onChange:
|
|
152
|
-
disabled:
|
|
153
|
-
hidePrevButton:
|
|
154
|
-
hideNextButton:
|
|
155
|
-
siblingCount:
|
|
156
|
-
boundaryCount:
|
|
157
|
-
itemsPerPage:
|
|
158
|
-
totalItems:
|
|
159
|
-
itemsPerPageOptions:
|
|
160
|
-
onItemsPerPageChange:
|
|
153
|
+
currentPage: r.currentPage,
|
|
154
|
+
totalPages: r.totalPages,
|
|
155
|
+
onChange: r.onPageChange,
|
|
156
|
+
disabled: x,
|
|
157
|
+
hidePrevButton: r.hidePrevButton,
|
|
158
|
+
hideNextButton: r.hideNextButton,
|
|
159
|
+
siblingCount: r.siblingCount,
|
|
160
|
+
boundaryCount: r.boundaryCount,
|
|
161
|
+
itemsPerPage: r.pageSize,
|
|
162
|
+
totalItems: r.totalItems,
|
|
163
|
+
itemsPerPageOptions: r.itemsPerPageOptions,
|
|
164
|
+
onItemsPerPageChange: r.onItemsPerPageChange
|
|
161
165
|
}
|
|
162
166
|
) })
|
|
163
167
|
] });
|
|
164
168
|
}
|
|
165
169
|
export {
|
|
166
|
-
|
|
170
|
+
fe as default
|
|
167
171
|
};
|
|
@@ -53,6 +53,8 @@ export declare const TablesWrapper: import("styled-components/dist/types").IStyl
|
|
|
53
53
|
export declare const DataScrollBox: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
54
54
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
55
55
|
}, never>> & string;
|
|
56
|
-
export declare const ActionsTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
56
|
+
export declare const ActionsTable: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, never>, "ref"> & {
|
|
57
57
|
ref?: ((instance: HTMLTableElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLTableElement> | null | undefined;
|
|
58
|
-
},
|
|
58
|
+
}, {
|
|
59
|
+
$hasScrollbar?: boolean;
|
|
60
|
+
}>> & string;
|