@cagatayfdn/flora-components 0.0.164 → 0.0.166
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/ErrorLogModal-DJd2j2Qz.js +611 -0
- package/dist/ReactToastify.css +1 -1
- package/dist/components/Datepicker/Datepicker.js +973 -806
- package/dist/components/ErrorLogModal/ErrorLogModal.js +1 -1
- package/dist/components/RealtimeLogModal/RealtimeLogModal.js +3 -2
- package/dist/components/Table/Table.js +273 -210
- package/dist/components/index.js +1 -1
- package/dist/index-Bkqwn3Ht.js +3311 -0
- package/dist/index.d.mts +175 -0
- package/dist/index.d.ts +175 -0
- package/dist/index.js +108 -95
- package/dist/main.js +1 -1
- package/dist/utils/http/createFetchClient.js +76 -0
- package/dist/utils/http/errors.js +41 -0
- package/dist/utils/http/helpers.js +100 -0
- package/dist/utils/http/index.js +15 -0
- package/dist/utils/http/interceptorManager.js +31 -0
- package/dist/utils/http/types.js +1 -0
- package/dist/utils/index.js +41 -28
- package/dist/utils/table.js +1 -1
- package/package.json +50 -44
- package/dist/ErrorLogModal-CQFdcFKP.js +0 -3700
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "../../index-BHf7G3IG.js";
|
|
4
|
-
import { E as K } from "../../ErrorLogModal-
|
|
4
|
+
import { E as K } from "../../ErrorLogModal-DJd2j2Qz.js";
|
|
5
5
|
import "../../hooks/useAauth.js";
|
|
6
6
|
import "../../hooks/useNiceModal.js";
|
|
7
7
|
import "../Drawer/Provider.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../../jsx-runtime-BcAkpsdy.js";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
3
|
+
import "../../index-Bkqwn3Ht.js";
|
|
4
4
|
import "../../helper-1SQ9SI45.js";
|
|
5
5
|
import "../../index-BHf7G3IG.js";
|
|
6
|
+
import { R as J } from "../../ErrorLogModal-DJd2j2Qz.js";
|
|
6
7
|
import "../../utils/date.js";
|
|
7
8
|
import "../../utils/fetcher.js";
|
|
8
9
|
import "../../locales/i18n.js";
|
|
@@ -33,5 +34,5 @@ import "../Textarea/Textarea.js";
|
|
|
33
34
|
import "../../react-toastify.esm-BUWNP7Nm.js";
|
|
34
35
|
import '../../ReactToastify.css';/* empty css */
|
|
35
36
|
export {
|
|
36
|
-
|
|
37
|
+
J as default
|
|
37
38
|
};
|
|
@@ -1,264 +1,327 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { _ as
|
|
17
|
-
import { _ as
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { j as a } from "../../jsx-runtime-BcAkpsdy.js";
|
|
2
|
+
import y, { useState as P, useEffect as Q } from "react";
|
|
3
|
+
import { Z as be } from "../../index-Bkqwn3Ht.js";
|
|
4
|
+
import Y from "../NoResult/NoResult.js";
|
|
5
|
+
import { c as b } from "../../index-BHf7G3IG.js";
|
|
6
|
+
import { s as o } from "../../Table.module-rFa4-NE2.js";
|
|
7
|
+
import { ThemeAppearance as I, AppearanceSpinner as ee } from "../../enums/appearance.js";
|
|
8
|
+
import te from "../Checkbox/Checkbox.js";
|
|
9
|
+
import je from "../Loading/Loading.js";
|
|
10
|
+
import ge from "../ScrollContainer/ScrollContainer.js";
|
|
11
|
+
import ae from "./TableHeader.js";
|
|
12
|
+
import me from "./TableSort.js";
|
|
13
|
+
import we from "../Icon/index.js";
|
|
14
|
+
import { FloraIcons as Ce } from "../../assets/icons/flora-icons.js";
|
|
15
|
+
import { i } from "../../includes-8YTFrx85.js";
|
|
16
|
+
import { _ as se, k as Ne } from "../../keys-B0bo5Q7o.js";
|
|
17
|
+
import { _ as re, a as ke, b as ye } from "../../_reduce-DsUCMz4O.js";
|
|
18
|
+
import { _ as Ee } from "../../Select-nhp2PiJK.js";
|
|
19
|
+
function Re(l, n) {
|
|
20
|
+
for (var d = 0, c = n.length, f = []; d < c; )
|
|
21
|
+
l(n[d]) && (f[f.length] = n[d]), d += 1;
|
|
22
|
+
return f;
|
|
22
23
|
}
|
|
23
|
-
var
|
|
24
|
-
function l(
|
|
25
|
-
this.xf =
|
|
24
|
+
var Se = /* @__PURE__ */ function() {
|
|
25
|
+
function l(n, d) {
|
|
26
|
+
this.xf = d, this.f = n;
|
|
26
27
|
}
|
|
27
|
-
return l.prototype["@@transducer/init"] =
|
|
28
|
-
return this.f(
|
|
28
|
+
return l.prototype["@@transducer/init"] = re.init, l.prototype["@@transducer/result"] = re.result, l.prototype["@@transducer/step"] = function(n, d) {
|
|
29
|
+
return this.f(d) ? this.xf["@@transducer/step"](n, d) : n;
|
|
29
30
|
}, l;
|
|
30
|
-
}(),
|
|
31
|
-
return new
|
|
31
|
+
}(), _e = /* @__PURE__ */ se(function(n, d) {
|
|
32
|
+
return new Se(n, d);
|
|
32
33
|
});
|
|
33
|
-
const
|
|
34
|
-
var
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
return
|
|
37
|
-
return l(
|
|
38
|
-
}, {},
|
|
34
|
+
const ve = _e;
|
|
35
|
+
var v = /* @__PURE__ */ se(
|
|
36
|
+
/* @__PURE__ */ ke(["filter"], ve, function(l, n) {
|
|
37
|
+
return Ee(n) ? ye(function(d, c) {
|
|
38
|
+
return l(n[c]) && (d[c] = n[c]), d;
|
|
39
|
+
}, {}, Ne(n)) : (
|
|
39
40
|
// else
|
|
40
|
-
|
|
41
|
+
Re(l, n)
|
|
41
42
|
);
|
|
42
43
|
})
|
|
43
44
|
);
|
|
44
|
-
const
|
|
45
|
+
const Je = (l) => {
|
|
45
46
|
const {
|
|
46
|
-
columns:
|
|
47
|
-
dataSource:
|
|
48
|
-
totalCount:
|
|
49
|
-
currentPage:
|
|
50
|
-
className:
|
|
51
|
-
wrapperClass:
|
|
52
|
-
title:
|
|
53
|
-
rowSelection:
|
|
54
|
-
actionOnChange:
|
|
55
|
-
rowSelectionChange:
|
|
56
|
-
pagerVisible:
|
|
57
|
-
pagerOnChange:
|
|
58
|
-
columnRenderer:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
),
|
|
85
|
-
|
|
47
|
+
columns: n = [],
|
|
48
|
+
dataSource: d = [],
|
|
49
|
+
totalCount: c,
|
|
50
|
+
currentPage: f,
|
|
51
|
+
className: H,
|
|
52
|
+
wrapperClass: ne,
|
|
53
|
+
title: de,
|
|
54
|
+
rowSelection: E = !1,
|
|
55
|
+
actionOnChange: T,
|
|
56
|
+
rowSelectionChange: p,
|
|
57
|
+
pagerVisible: L,
|
|
58
|
+
pagerOnChange: $,
|
|
59
|
+
columnRenderer: m,
|
|
60
|
+
rowRenderer: F,
|
|
61
|
+
pageSizeOnChange: A,
|
|
62
|
+
pageSize: V,
|
|
63
|
+
headerVisible: le = !0,
|
|
64
|
+
headerLeftItem: oe,
|
|
65
|
+
customFooterItem: ie,
|
|
66
|
+
isLoading: ce = !1,
|
|
67
|
+
footerAction: pe = !0,
|
|
68
|
+
pageSizeVisible: he = !0,
|
|
69
|
+
appearance: w = I.LIGHT,
|
|
70
|
+
fixedHeader: z,
|
|
71
|
+
showItemsText: B,
|
|
72
|
+
customHeader: O,
|
|
73
|
+
selectedItems: D = [],
|
|
74
|
+
scrollClass: G,
|
|
75
|
+
disabledItems: j = [],
|
|
76
|
+
expandable: s,
|
|
77
|
+
virtualized: R
|
|
78
|
+
} = l, S = typeof R == "object" ? R : {}, [x, C] = P(D), [N, g] = P([]), fe = (e) => {
|
|
79
|
+
p && (e.target.checked ? (C(
|
|
80
|
+
d.filter((t) => !i(t, j))
|
|
81
|
+
), p(
|
|
82
|
+
d.filter((t) => !i(t, j))
|
|
83
|
+
)) : (C([]), p([])));
|
|
84
|
+
}, xe = (e, t) => {
|
|
85
|
+
p && (e.target.checked ? (C([...x, t]), p([...x, t])) : (C(
|
|
86
|
+
v((r) => r.pk !== t.pk, x)
|
|
87
|
+
), p(
|
|
88
|
+
v((r) => r.pk !== t.pk, x)
|
|
86
89
|
)));
|
|
87
|
-
},
|
|
88
|
-
var
|
|
89
|
-
const
|
|
90
|
-
(
|
|
91
|
-
},
|
|
90
|
+
}, W = (e, t) => {
|
|
91
|
+
var h;
|
|
92
|
+
const r = i(e, N);
|
|
93
|
+
(s == null ? void 0 : s.expandStrategy) === "single" ? g(r ? [] : [e]) : g(r ? (u) => v((_) => _ !== e, u) : (u) => [...u, e]), (h = s == null ? void 0 : s.onExpand) == null || h.call(s, !r, t);
|
|
94
|
+
}, U = (e, t) => e == null ? void 0 : e.map((r, h) => /* @__PURE__ */ a.jsx(
|
|
92
95
|
"td",
|
|
93
96
|
{
|
|
94
|
-
width:
|
|
95
|
-
onClick: (
|
|
96
|
-
|
|
97
|
+
width: r.width,
|
|
98
|
+
onClick: (u) => {
|
|
99
|
+
r != null && r.onClick && (r == null || r.onClick(u, t, r, h));
|
|
97
100
|
},
|
|
98
|
-
className:
|
|
99
|
-
children:
|
|
101
|
+
className: b(r.className, r.tdClassName),
|
|
102
|
+
children: r.render ? r.render(t[r.dataIndex], t) : t[r.dataIndex]
|
|
100
103
|
},
|
|
101
|
-
`col-${
|
|
102
|
-
))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
`col-${h}`
|
|
105
|
+
)), k = n.length + (E ? 1 : 0) + (s ? 1 : 0), X = () => s ? /* @__PURE__ */ a.jsx("th", { className: "w-[48px]" }) : null, Z = () => E ? /* @__PURE__ */ a.jsx("th", { className: "w-[26px]", children: /* @__PURE__ */ a.jsx(
|
|
106
|
+
te,
|
|
107
|
+
{
|
|
108
|
+
name: "selectAll",
|
|
109
|
+
isDisabled: d.length === 0,
|
|
110
|
+
checked: d.length > 0 && d.length === x.length,
|
|
111
|
+
onChange: fe
|
|
112
|
+
}
|
|
113
|
+
) }) : null, K = () => n == null ? void 0 : n.map((e, t) => {
|
|
114
|
+
var r, h;
|
|
115
|
+
return e.sortable ? /* @__PURE__ */ a.jsx(
|
|
116
|
+
"th",
|
|
117
|
+
{
|
|
118
|
+
"data-testid": "table-head-item",
|
|
119
|
+
style: { width: e.width },
|
|
120
|
+
className: e.className,
|
|
121
|
+
children: /* @__PURE__ */ a.jsx(
|
|
122
|
+
me,
|
|
123
|
+
{
|
|
124
|
+
title: (r = e.title) == null ? void 0 : r.toString().toLocaleUpperCase(),
|
|
125
|
+
onClick: (u, _) => {
|
|
126
|
+
var M;
|
|
127
|
+
return (M = e == null ? void 0 : e.onSort) == null ? void 0 : M.call(e, u, _);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
)
|
|
131
|
+
},
|
|
132
|
+
`table-header-${t}`
|
|
133
|
+
) : /* @__PURE__ */ a.jsx(
|
|
134
|
+
"th",
|
|
135
|
+
{
|
|
136
|
+
"data-testid": "table-head-item",
|
|
137
|
+
style: { width: e.width },
|
|
138
|
+
className: e.className,
|
|
139
|
+
children: typeof e.title == "string" || e.title instanceof String ? (h = e.title) == null ? void 0 : h.toString().toLocaleUpperCase() : e.title
|
|
140
|
+
},
|
|
141
|
+
`table-header-${t}`
|
|
142
|
+
);
|
|
143
|
+
}), q = (e, t) => s ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
|
|
144
|
+
"span",
|
|
145
|
+
{
|
|
146
|
+
className: "inline-block transition-transform duration-200",
|
|
147
|
+
style: {
|
|
148
|
+
transform: t ? "rotate(90deg)" : "rotate(0deg)"
|
|
149
|
+
},
|
|
150
|
+
children: s.rowExpandable && s.rowExpandable(e) ? /* @__PURE__ */ a.jsx(we, { name: Ce.ChevronRight }) : null
|
|
151
|
+
}
|
|
152
|
+
) }) : null, J = (e, t) => E ? /* @__PURE__ */ a.jsx("td", { children: /* @__PURE__ */ a.jsx(
|
|
153
|
+
te,
|
|
154
|
+
{
|
|
155
|
+
checked: i(e, x),
|
|
156
|
+
name: `select-${t}`,
|
|
157
|
+
onChange: (r) => xe(r, e),
|
|
158
|
+
isDisabled: i(e, j)
|
|
159
|
+
}
|
|
160
|
+
) }) : null, ue = () => {
|
|
161
|
+
const e = [];
|
|
162
|
+
return d.forEach((t, r) => {
|
|
163
|
+
e.push({ kind: "data", item: t, index: r }), s && i(r, N) && e.push({ kind: "expanded", item: t, index: r });
|
|
164
|
+
}), e;
|
|
165
|
+
};
|
|
166
|
+
return Q(() => {
|
|
167
|
+
p && p(D.filter((e) => !i(e, j)));
|
|
168
|
+
}, [x, j]), Q(() => {
|
|
169
|
+
g([]);
|
|
170
|
+
}, [f]), /* @__PURE__ */ a.jsxs(
|
|
108
171
|
"div",
|
|
109
172
|
{
|
|
110
173
|
"data-testid": "table-container",
|
|
111
|
-
className:
|
|
112
|
-
[
|
|
174
|
+
className: b(o.wrapper, ne, {
|
|
175
|
+
[o[`${w}`]]: w
|
|
113
176
|
}),
|
|
114
177
|
children: [
|
|
115
|
-
|
|
116
|
-
|
|
178
|
+
le && /* @__PURE__ */ a.jsx(
|
|
179
|
+
ae,
|
|
117
180
|
{
|
|
118
|
-
title:
|
|
119
|
-
showItemsText:
|
|
120
|
-
actionOnChange:
|
|
121
|
-
pageSize:
|
|
122
|
-
pageSizeOnChange:
|
|
123
|
-
pagerOnChange:
|
|
124
|
-
pagerVisible:
|
|
125
|
-
totalCount:
|
|
126
|
-
currentPage:
|
|
181
|
+
title: de,
|
|
182
|
+
showItemsText: B,
|
|
183
|
+
actionOnChange: T,
|
|
184
|
+
pageSize: V,
|
|
185
|
+
pageSizeOnChange: A,
|
|
186
|
+
pagerOnChange: $,
|
|
187
|
+
pagerVisible: L,
|
|
188
|
+
totalCount: c,
|
|
189
|
+
currentPage: f
|
|
127
190
|
}
|
|
128
191
|
),
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
131
|
-
|
|
192
|
+
/* @__PURE__ */ a.jsxs("div", { className: o.tableWrap, children: [
|
|
193
|
+
ce && /* @__PURE__ */ a.jsx(
|
|
194
|
+
je,
|
|
132
195
|
{
|
|
133
|
-
wrapperClass:
|
|
134
|
-
appearance: w ===
|
|
196
|
+
wrapperClass: o.tableLoading,
|
|
197
|
+
appearance: w === I.LIGHT ? ee.LIGHT : ee.DARK
|
|
135
198
|
}
|
|
136
199
|
),
|
|
137
|
-
|
|
138
|
-
|
|
200
|
+
O && O,
|
|
201
|
+
R ? /* @__PURE__ */ a.jsx(
|
|
202
|
+
be,
|
|
203
|
+
{
|
|
204
|
+
style: { height: S.height ?? 400 },
|
|
205
|
+
data: ue(),
|
|
206
|
+
overscan: S.overscan,
|
|
207
|
+
increaseViewportBy: S.increaseViewportBy,
|
|
208
|
+
className: G || o.scrollWrap,
|
|
209
|
+
components: {
|
|
210
|
+
Table: (e) => /* @__PURE__ */ a.jsx(
|
|
211
|
+
"table",
|
|
212
|
+
{
|
|
213
|
+
...e,
|
|
214
|
+
"data-testid": "table-content",
|
|
215
|
+
className: b(o.table, H, {
|
|
216
|
+
[o.fixed]: z
|
|
217
|
+
})
|
|
218
|
+
}
|
|
219
|
+
),
|
|
220
|
+
TableHead: y.forwardRef(
|
|
221
|
+
(e, t) => /* @__PURE__ */ a.jsx("thead", { ...e, ref: t, "data-testid": "table-head" })
|
|
222
|
+
),
|
|
223
|
+
TableBody: y.forwardRef(
|
|
224
|
+
(e, t) => /* @__PURE__ */ a.jsx("tbody", { ...e, ref: t, "data-testid": "table-body" })
|
|
225
|
+
),
|
|
226
|
+
TableRow: ({ item: e, ...t }) => {
|
|
227
|
+
if (e.kind === "expanded")
|
|
228
|
+
return /* @__PURE__ */ a.jsx("tr", { ...t });
|
|
229
|
+
const r = s && s.rowExpandable ? s.rowExpandable(e.item) : !!s;
|
|
230
|
+
return /* @__PURE__ */ a.jsx(
|
|
231
|
+
"tr",
|
|
232
|
+
{
|
|
233
|
+
...t,
|
|
234
|
+
"data-testid": "table-row",
|
|
235
|
+
onClick: () => {
|
|
236
|
+
s && s.rowExpandable && s.rowExpandable(e.item) && W(e.index, e.item);
|
|
237
|
+
},
|
|
238
|
+
className: b(t.className, {
|
|
239
|
+
"cursor-pointer": r
|
|
240
|
+
})
|
|
241
|
+
}
|
|
242
|
+
);
|
|
243
|
+
},
|
|
244
|
+
EmptyPlaceholder: () => /* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: k, children: /* @__PURE__ */ a.jsx(Y, {}) }) }) })
|
|
245
|
+
},
|
|
246
|
+
fixedHeaderContent: () => /* @__PURE__ */ a.jsxs("tr", { "data-testid": "table-row", children: [
|
|
247
|
+
X(),
|
|
248
|
+
Z(),
|
|
249
|
+
K()
|
|
250
|
+
] }),
|
|
251
|
+
itemContent: (e, t) => {
|
|
252
|
+
if (t.kind === "expanded")
|
|
253
|
+
return /* @__PURE__ */ a.jsx("td", { colSpan: k, className: "p-0 border-0", children: s == null ? void 0 : s.expandedRowRender(t.item) });
|
|
254
|
+
const r = i(t.index, N);
|
|
255
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
256
|
+
q(t.item, r),
|
|
257
|
+
J(t.item, t.index),
|
|
258
|
+
m ? m(n, t.item) : U(n, t.item)
|
|
259
|
+
] });
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
) : /* @__PURE__ */ a.jsx(ge, { className: G || o.scrollWrap, children: /* @__PURE__ */ a.jsxs(
|
|
139
263
|
"table",
|
|
140
264
|
{
|
|
141
265
|
"data-testid": "table-content",
|
|
142
|
-
className:
|
|
143
|
-
[
|
|
266
|
+
className: b(o.table, H, {
|
|
267
|
+
[o.fixed]: z
|
|
144
268
|
}),
|
|
145
269
|
children: [
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
{
|
|
151
|
-
name: "selectAll",
|
|
152
|
-
isDisabled: o.length === 0,
|
|
153
|
-
checked: o.length > 0 && o.length === h.length,
|
|
154
|
-
onChange: ee
|
|
155
|
-
}
|
|
156
|
-
) }),
|
|
157
|
-
t == null ? void 0 : t.map((e, s) => {
|
|
158
|
-
var a, d;
|
|
159
|
-
return e.sortable ? /* @__PURE__ */ r.jsx(
|
|
160
|
-
"th",
|
|
161
|
-
{
|
|
162
|
-
"data-testid": "table-head-item",
|
|
163
|
-
style: { width: e.width },
|
|
164
|
-
className: e.className,
|
|
165
|
-
children: /* @__PURE__ */ r.jsx(
|
|
166
|
-
de,
|
|
167
|
-
{
|
|
168
|
-
title: (a = e.title) == null ? void 0 : a.toString().toLocaleUpperCase(),
|
|
169
|
-
onClick: (f, N) => {
|
|
170
|
-
var A;
|
|
171
|
-
return (A = e == null ? void 0 : e.onSort) == null ? void 0 : A.call(e, f, N);
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
)
|
|
175
|
-
},
|
|
176
|
-
`table-header-${s}`
|
|
177
|
-
) : /* @__PURE__ */ r.jsx(
|
|
178
|
-
"th",
|
|
179
|
-
{
|
|
180
|
-
"data-testid": "table-head-item",
|
|
181
|
-
style: { width: e.width },
|
|
182
|
-
className: e.className,
|
|
183
|
-
children: typeof e.title == "string" || e.title instanceof String ? (d = e.title) == null ? void 0 : d.toString().toLocaleUpperCase() : e.title
|
|
184
|
-
},
|
|
185
|
-
`table-header-${s}`
|
|
186
|
-
);
|
|
187
|
-
})
|
|
270
|
+
/* @__PURE__ */ a.jsx("thead", { "data-testid": "table-head", children: /* @__PURE__ */ a.jsxs("tr", { "data-testid": "table-row", children: [
|
|
271
|
+
X(),
|
|
272
|
+
Z(),
|
|
273
|
+
K()
|
|
188
274
|
] }) }),
|
|
189
|
-
/* @__PURE__ */
|
|
190
|
-
const
|
|
191
|
-
return /* @__PURE__ */
|
|
192
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ a.jsx("tbody", { "data-testid": "table-body", children: d.length > 0 ? d.map((e, t) => {
|
|
276
|
+
const r = i(t, N);
|
|
277
|
+
return F ? /* @__PURE__ */ a.jsx(y.Fragment, { children: F(e, t) }, `row-${t}`) : /* @__PURE__ */ a.jsxs(y.Fragment, { children: [
|
|
278
|
+
/* @__PURE__ */ a.jsxs(
|
|
193
279
|
"tr",
|
|
194
280
|
{
|
|
195
281
|
"data-testid": "table-row",
|
|
196
282
|
onClick: () => {
|
|
197
|
-
|
|
283
|
+
s && s.rowExpandable && s.rowExpandable(e) && W(t, e);
|
|
198
284
|
},
|
|
199
|
-
className:
|
|
200
|
-
"cursor-pointer":
|
|
285
|
+
className: b({
|
|
286
|
+
"cursor-pointer": s && s.rowExpandable ? s.rowExpandable(e) : s
|
|
201
287
|
}),
|
|
202
288
|
children: [
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
className: "inline-block transition-transform duration-200",
|
|
207
|
-
style: {
|
|
208
|
-
transform: a ? "rotate(90deg)" : "rotate(0deg)"
|
|
209
|
-
},
|
|
210
|
-
children: n.rowExpandable && n.rowExpandable(e) ? /* @__PURE__ */ r.jsx(ie, { name: ce.ChevronRight }) : null
|
|
211
|
-
}
|
|
212
|
-
) }),
|
|
213
|
-
b && /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(
|
|
214
|
-
G,
|
|
215
|
-
{
|
|
216
|
-
checked: u(e, h),
|
|
217
|
-
name: `select-${s}`,
|
|
218
|
-
onChange: (d) => re(d, e),
|
|
219
|
-
isDisabled: u(e, g)
|
|
220
|
-
}
|
|
221
|
-
) }),
|
|
222
|
-
y ? y(t, e) : te(t, e)
|
|
289
|
+
q(e, r),
|
|
290
|
+
J(e, t),
|
|
291
|
+
m ? m(n, e) : U(n, e)
|
|
223
292
|
]
|
|
224
293
|
},
|
|
225
|
-
`table-row-${
|
|
294
|
+
`table-row-${t}`
|
|
226
295
|
),
|
|
227
|
-
|
|
296
|
+
s && r && /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx(
|
|
228
297
|
"td",
|
|
229
298
|
{
|
|
230
|
-
colSpan:
|
|
299
|
+
colSpan: k,
|
|
231
300
|
className: "p-0 border-0",
|
|
232
|
-
children:
|
|
301
|
+
children: s.expandedRowRender(e)
|
|
233
302
|
}
|
|
234
303
|
) })
|
|
235
|
-
] }, `row-${
|
|
236
|
-
}) : /* @__PURE__ */
|
|
237
|
-
"td",
|
|
238
|
-
{
|
|
239
|
-
colSpan: t.length + (b ? 1 : 0) + (n ? 1 : 0),
|
|
240
|
-
children: /* @__PURE__ */ r.jsx(ne, {})
|
|
241
|
-
}
|
|
242
|
-
) }) })
|
|
304
|
+
] }, `row-${t}`);
|
|
305
|
+
}) : /* @__PURE__ */ a.jsx("tr", { children: /* @__PURE__ */ a.jsx("td", { colSpan: k, children: /* @__PURE__ */ a.jsx(Y, {}) }) }) })
|
|
243
306
|
]
|
|
244
307
|
}
|
|
245
308
|
) })
|
|
246
309
|
] }),
|
|
247
|
-
|
|
248
|
-
|
|
310
|
+
pe && /* @__PURE__ */ a.jsx(
|
|
311
|
+
ae,
|
|
249
312
|
{
|
|
250
313
|
className: "mt-0",
|
|
251
|
-
showItemsText:
|
|
252
|
-
actionOnChange:
|
|
253
|
-
pageSize:
|
|
254
|
-
pageSizeOnChange:
|
|
255
|
-
pagerOnChange:
|
|
256
|
-
pagerVisible:
|
|
257
|
-
pageSizeVisible:
|
|
258
|
-
totalCount:
|
|
259
|
-
customItem:
|
|
260
|
-
headerLeftItem:
|
|
261
|
-
currentPage:
|
|
314
|
+
showItemsText: B,
|
|
315
|
+
actionOnChange: T,
|
|
316
|
+
pageSize: V,
|
|
317
|
+
pageSizeOnChange: A,
|
|
318
|
+
pagerOnChange: $,
|
|
319
|
+
pagerVisible: L,
|
|
320
|
+
pageSizeVisible: he,
|
|
321
|
+
totalCount: c,
|
|
322
|
+
customItem: ie,
|
|
323
|
+
headerLeftItem: oe,
|
|
324
|
+
currentPage: f,
|
|
262
325
|
appearance: w
|
|
263
326
|
}
|
|
264
327
|
)
|
|
@@ -267,5 +330,5 @@ const Oe = (l) => {
|
|
|
267
330
|
);
|
|
268
331
|
};
|
|
269
332
|
export {
|
|
270
|
-
|
|
333
|
+
Je as default
|
|
271
334
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import { default as H } from "./Datepicker/Datepicker.js";
|
|
|
19
19
|
import { default as W } from "./Divider/Divider.js";
|
|
20
20
|
import { default as q } from "./Drawer/index.js";
|
|
21
21
|
import { default as G } from "./Dropdown/DropdownList.js";
|
|
22
|
-
import { E as K, R as O } from "../ErrorLogModal-
|
|
22
|
+
import { E as K, R as O } from "../ErrorLogModal-DJd2j2Qz.js";
|
|
23
23
|
import { default as X } from "./FileUpload/FileUpload.js";
|
|
24
24
|
import { default as Z } from "./FileUpload/ImagePreview.js";
|
|
25
25
|
import { default as $ } from "./FileUpload/LengthCard.js";
|