@reportportal/ui-kit 0.0.1-alpha.46 → 0.0.1-alpha.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/dist/arrowUp-4a5caee7.js +6 -0
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4b33d7c1.js +5 -0
- package/dist/common/utils/index.d.ts +1 -0
- package/dist/common/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/fieldText/fieldText.d.ts +2 -0
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/{datePicker-68379fe1.js → datePicker-81d77983.js} +4 -5
- package/dist/datePicker.js +7 -4
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-5225df5e.js +263 -0
- package/dist/dropdown.js +2 -1
- package/dist/error-4f493850.js +7 -0
- package/dist/fieldNumber-6a5fdd15.js +125 -0
- package/dist/fieldNumber.js +2 -1
- package/dist/fieldText-df070a3c.js +135 -0
- package/dist/fieldText.js +3 -2
- package/dist/icons.js +32 -0
- package/dist/index.js +72 -114
- package/dist/minus-660ea0d6.js +6 -0
- package/dist/modal.js +144 -14
- package/dist/pagination-38898dc9.js +345 -0
- package/dist/pagination.js +5 -2
- package/dist/prevChapter-ebd5a3a7.js +6 -0
- package/dist/spinLoader-c4a53718.js +11 -0
- package/dist/spinLoader.js +7 -0
- package/dist/style.css +1 -1
- package/dist/systemAlert.js +51 -0
- package/dist/table-32fc8c70.js +144 -0
- package/dist/table.js +2 -2
- package/package.json +1 -1
- package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +0 -24
- package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +0 -15
- package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +0 -3
- package/dist/components/dataPicker2/dataPicker2/index.d.ts +0 -3
- package/dist/components/dataPicker2/dataPicker2/utils.d.ts +0 -3
- package/dist/components/date2/date2.d.ts +0 -24
- package/dist/components/date2/index.d.ts +0 -3
- package/dist/components/datePicker1/datePicker.d.ts +0 -24
- package/dist/components/datePicker1/header/datePickerHeader.d.ts +0 -15
- package/dist/components/datePicker1/header/index.d.ts +0 -3
- package/dist/components/datePicker1/index.d.ts +0 -3
- package/dist/components/datePicker1/utils.d.ts +0 -3
- package/dist/components/reactDatePicker/index.d.ts +0 -3
- package/dist/components/reactDatePicker/reactDatePicker.d.ts +0 -2
- package/dist/components/reactDatePicker2/index.d.ts +0 -3
- package/dist/components/reactDatePicker2/reactDatePicker2.d.ts +0 -2
- package/dist/date2-9273411e.js +0 -46
- package/dist/date2.js +0 -7
- package/dist/datePicker-89394dc8.js +0 -194
- package/dist/datePicker1.js +0 -19
- package/dist/dropdown-b9c6dc2f.js +0 -264
- package/dist/fieldNumber-1f286b40.js +0 -127
- package/dist/fieldText-65e4c614.js +0 -134
- package/dist/index-54e3bfc2.js +0 -147
- package/dist/pagination-4ae395bd.js +0 -347
- package/dist/reactDatePicker2-a31b070e.js +0 -5
- package/dist/reactDatePicker2.js +0 -6
- package/dist/table-9bf4ddab.js +0 -147
- /package/dist/components/{icons/baseIconButton → baseIconButton}/baseIconButton.d.ts +0 -0
- /package/dist/components/{icons/baseIconButton → baseIconButton}/index.d.ts +0 -0
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { c as m } from "./bind-06a7ff84.js";
|
|
3
|
-
import * as f from "react";
|
|
4
|
-
import { useState as b } from "react";
|
|
5
|
-
import { Popover as I } from "./popover.js";
|
|
6
|
-
import { B as v } from "./button-33c88abf.js";
|
|
7
|
-
import { F as O } from "./fieldText-65e4c614.js";
|
|
8
|
-
import { B as u } from "./baseIconButton-b6adc843.js";
|
|
9
|
-
import { Tooltip as k } from "./tooltip.js";
|
|
10
|
-
const y = (t) => /* @__PURE__ */ f.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f.createElement("path", { d: "M12 13L4 8L12 3L12 13Z" })), T = (t) => /* @__PURE__ */ f.createElement("svg", { width: 13, height: 12, viewBox: "0 0 13 12", fill: "#A2AAB5", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ f.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 12L2 12L2 2.38498e-08L1.90798e-07 0L0 12ZM13 1L5 6L13 11L13 1Z" })), E = {
|
|
11
|
-
"item-counter": "_item-counter_4g6do_1"
|
|
12
|
-
}, M = m.bind(E), P = ({
|
|
13
|
-
activePage: t,
|
|
14
|
-
pageSize: n,
|
|
15
|
-
totalItems: s,
|
|
16
|
-
ofText: r,
|
|
17
|
-
itemsText: a
|
|
18
|
-
}) => {
|
|
19
|
-
const c = t * n, i = c - n;
|
|
20
|
-
return /* @__PURE__ */ p("div", { className: M("item-counter"), children: [
|
|
21
|
-
`${i + 1} - ${c < s ? c : s}`,
|
|
22
|
-
` ${r} ${s} ${a}`
|
|
23
|
-
] });
|
|
24
|
-
}, R = "_selected_183l8_32", V = {
|
|
25
|
-
"size-selector": "_size-selector_183l8_1",
|
|
26
|
-
"size-option": "_size-option_183l8_6",
|
|
27
|
-
selected: R
|
|
28
|
-
}, C = m.bind(V), W = ({
|
|
29
|
-
currentSize: t,
|
|
30
|
-
options: n,
|
|
31
|
-
onClickOption: s
|
|
32
|
-
}) => /* @__PURE__ */ o("div", { className: C("size-selector"), children: n.map((r) => /* @__PURE__ */ o(
|
|
33
|
-
"button",
|
|
34
|
-
{
|
|
35
|
-
className: C("size-option", { selected: r === t }),
|
|
36
|
-
onClick: () => {
|
|
37
|
-
s(r);
|
|
38
|
-
},
|
|
39
|
-
children: r
|
|
40
|
-
},
|
|
41
|
-
r
|
|
42
|
-
)) }), D = {
|
|
43
|
-
"page-size-control": "_page-size-control_1y4na_1",
|
|
44
|
-
"size-selector-button": "_size-selector-button_1y4na_10"
|
|
45
|
-
}, S = m.bind(D), F = ({
|
|
46
|
-
size: t,
|
|
47
|
-
sizeOptions: n,
|
|
48
|
-
perPageText: s,
|
|
49
|
-
changeSize: r
|
|
50
|
-
}) => {
|
|
51
|
-
const [a, c] = b(!1), i = (e) => {
|
|
52
|
-
r(e), c(!1);
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ p("div", { className: S("page-size-control"), children: [
|
|
55
|
-
/* @__PURE__ */ o(
|
|
56
|
-
I,
|
|
57
|
-
{
|
|
58
|
-
content: /* @__PURE__ */ o(W, { options: n, onClickOption: i, currentSize: t }),
|
|
59
|
-
placement: "top",
|
|
60
|
-
isOpened: a,
|
|
61
|
-
setIsOpened: c,
|
|
62
|
-
children: /* @__PURE__ */ o(v, { className: S("size-selector-button"), variant: "text", children: t })
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
` ${s}`
|
|
66
|
-
] });
|
|
67
|
-
}, Z = {
|
|
68
|
-
"page-selector": "_page-selector_rtho4_1",
|
|
69
|
-
"field-wrapper": "_field-wrapper_rtho4_6",
|
|
70
|
-
"apply-button": "_apply-button_rtho4_10"
|
|
71
|
-
}, N = m.bind(Z), j = ({
|
|
72
|
-
totalPages: t,
|
|
73
|
-
pageText: n,
|
|
74
|
-
goActionText: s,
|
|
75
|
-
selectPage: r
|
|
76
|
-
}) => {
|
|
77
|
-
const [a, c] = b(""), [i, e] = b(!0), d = (h) => {
|
|
78
|
-
const w = h.target.value.replace(/\D/g, ""), $ = Number(w), L = $ > 0 && $ <= t;
|
|
79
|
-
e(L), c(w);
|
|
80
|
-
}, l = () => {
|
|
81
|
-
r(Number(a));
|
|
82
|
-
};
|
|
83
|
-
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
|
-
/* @__PURE__ */ o("div", { className: N("field-wrapper"), children: /* @__PURE__ */ o(
|
|
85
|
-
O,
|
|
86
|
-
{
|
|
87
|
-
onChange: d,
|
|
88
|
-
value: a,
|
|
89
|
-
placeholder: n,
|
|
90
|
-
error: i ? "" : "Error",
|
|
91
|
-
touched: !0,
|
|
92
|
-
defaultWidth: !1,
|
|
93
|
-
displayError: !1
|
|
94
|
-
}
|
|
95
|
-
) }),
|
|
96
|
-
/* @__PURE__ */ o(v, { onClick: l, disabled: !a || !i, className: N("apply-button"), children: s })
|
|
97
|
-
] });
|
|
98
|
-
}, G = {
|
|
99
|
-
"active-page": "_active-page_rmw5h_1",
|
|
100
|
-
"page-selector": "_page-selector_rmw5h_10",
|
|
101
|
-
"page-selector-button": "_page-selector-button_rmw5h_14"
|
|
102
|
-
}, x = m.bind(G), H = ({
|
|
103
|
-
activePage: t,
|
|
104
|
-
totalPages: n,
|
|
105
|
-
pageText: s,
|
|
106
|
-
goToText: r,
|
|
107
|
-
goActionText: a,
|
|
108
|
-
changePage: c
|
|
109
|
-
}) => {
|
|
110
|
-
const [i, e] = b(!1), d = (l) => {
|
|
111
|
-
c(l), e(!1);
|
|
112
|
-
};
|
|
113
|
-
return /* @__PURE__ */ p("div", { className: x("active-page"), children: [
|
|
114
|
-
`${s} `,
|
|
115
|
-
/* @__PURE__ */ o(
|
|
116
|
-
I,
|
|
117
|
-
{
|
|
118
|
-
content: /* @__PURE__ */ o(
|
|
119
|
-
j,
|
|
120
|
-
{
|
|
121
|
-
pageText: s,
|
|
122
|
-
goActionText: a,
|
|
123
|
-
selectPage: d,
|
|
124
|
-
totalPages: n
|
|
125
|
-
}
|
|
126
|
-
),
|
|
127
|
-
title: r,
|
|
128
|
-
placement: "top",
|
|
129
|
-
isOpened: i,
|
|
130
|
-
setIsOpened: e,
|
|
131
|
-
className: x("page-selector"),
|
|
132
|
-
children: /* @__PURE__ */ o(v, { className: x("page-selector-button"), variant: "text", children: t })
|
|
133
|
-
}
|
|
134
|
-
)
|
|
135
|
-
] });
|
|
136
|
-
}, q = "_bar_dfnmf_1", J = "_section_dfnmf_9", K = "_selected_dfnmf_33", Q = "_tooltip_dfnmf_37", U = {
|
|
137
|
-
bar: q,
|
|
138
|
-
"section-with-tooltip": "_section-with-tooltip_dfnmf_9",
|
|
139
|
-
section: J,
|
|
140
|
-
selected: K,
|
|
141
|
-
"tooltip-wrapper": "_tooltip-wrapper_dfnmf_37",
|
|
142
|
-
tooltip: Q,
|
|
143
|
-
"tooltip-text": "_tooltip-text_dfnmf_48",
|
|
144
|
-
"page-number": "_page-number_dfnmf_52"
|
|
145
|
-
}, g = m.bind(U), z = 13, A = 260, X = ({
|
|
146
|
-
totalPages: t,
|
|
147
|
-
activePage: n,
|
|
148
|
-
changePage: s,
|
|
149
|
-
captions: r
|
|
150
|
-
}) => {
|
|
151
|
-
const a = A / t, c = Math.min(Math.ceil(A / z), t), i = Math.max(z, a), e = [];
|
|
152
|
-
for (let l = 1; l <= t; l++)
|
|
153
|
-
e.push({
|
|
154
|
-
end: l * a,
|
|
155
|
-
pageNumber: l
|
|
156
|
-
});
|
|
157
|
-
const d = Array.from({ length: c }, () => ({ pages: { from: void 0, to: void 0 } }));
|
|
158
|
-
return d.forEach((l, h) => {
|
|
159
|
-
for (l.pages.from = e[0].pageNumber; i * (h + 1) > e[0].end; )
|
|
160
|
-
e.shift();
|
|
161
|
-
l.pages.to = e[0].pageNumber, e.shift();
|
|
162
|
-
}), /* @__PURE__ */ o("div", { className: g("bar"), children: d.map((l, h) => /* @__PURE__ */ o(
|
|
163
|
-
"div",
|
|
164
|
-
{
|
|
165
|
-
className: g("section-with-tooltip"),
|
|
166
|
-
style: { width: i },
|
|
167
|
-
onClick: () => l.pages.from && s(l.pages.from),
|
|
168
|
-
children: /* @__PURE__ */ o(
|
|
169
|
-
k,
|
|
170
|
-
{
|
|
171
|
-
content: /* @__PURE__ */ p("div", { className: g("tooltip"), children: [
|
|
172
|
-
/* @__PURE__ */ o("div", { className: g("tooltip-text"), children: r.goTo }),
|
|
173
|
-
/* @__PURE__ */ o("div", { className: g("page-number"), children: l.pages.from })
|
|
174
|
-
] }),
|
|
175
|
-
wrapperClassName: g("tooltip-wrapper"),
|
|
176
|
-
placement: "top",
|
|
177
|
-
children: /* @__PURE__ */ o(
|
|
178
|
-
"div",
|
|
179
|
-
{
|
|
180
|
-
className: g("section", {
|
|
181
|
-
selected: l.pages.from && l.pages.to && l.pages.from <= n && n <= l.pages.to
|
|
182
|
-
})
|
|
183
|
-
}
|
|
184
|
-
)
|
|
185
|
-
}
|
|
186
|
-
)
|
|
187
|
-
},
|
|
188
|
-
h
|
|
189
|
-
)) });
|
|
190
|
-
}, Y = "_next_1p2t5_18", ee = {
|
|
191
|
-
"page-navigator": "_page-navigator_1p2t5_1",
|
|
192
|
-
"page-buttons": "_page-buttons_1p2t5_6",
|
|
193
|
-
"page-button": "_page-button_1p2t5_6",
|
|
194
|
-
next: Y
|
|
195
|
-
}, _ = m.bind(ee), te = ({
|
|
196
|
-
activePage: t,
|
|
197
|
-
changePage: n,
|
|
198
|
-
totalPages: s,
|
|
199
|
-
captions: r
|
|
200
|
-
}) => {
|
|
201
|
-
const a = () => {
|
|
202
|
-
n(1);
|
|
203
|
-
}, c = () => {
|
|
204
|
-
n(t - 1);
|
|
205
|
-
}, i = () => {
|
|
206
|
-
n(t + 1);
|
|
207
|
-
}, e = () => {
|
|
208
|
-
n(s);
|
|
209
|
-
};
|
|
210
|
-
return /* @__PURE__ */ p("div", { className: _("page-navigator"), children: [
|
|
211
|
-
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
212
|
-
/* @__PURE__ */ o(
|
|
213
|
-
u,
|
|
214
|
-
{
|
|
215
|
-
className: _("page-button"),
|
|
216
|
-
onClick: a,
|
|
217
|
-
disabled: t === 1,
|
|
218
|
-
children: /* @__PURE__ */ o(T, {})
|
|
219
|
-
}
|
|
220
|
-
),
|
|
221
|
-
/* @__PURE__ */ o(
|
|
222
|
-
u,
|
|
223
|
-
{
|
|
224
|
-
className: _("page-button"),
|
|
225
|
-
onClick: c,
|
|
226
|
-
disabled: t === 1,
|
|
227
|
-
children: /* @__PURE__ */ o(y, {})
|
|
228
|
-
}
|
|
229
|
-
)
|
|
230
|
-
] }),
|
|
231
|
-
/* @__PURE__ */ o(
|
|
232
|
-
X,
|
|
233
|
-
{
|
|
234
|
-
totalPages: s,
|
|
235
|
-
activePage: t,
|
|
236
|
-
changePage: n,
|
|
237
|
-
captions: r
|
|
238
|
-
}
|
|
239
|
-
),
|
|
240
|
-
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
241
|
-
/* @__PURE__ */ o(
|
|
242
|
-
u,
|
|
243
|
-
{
|
|
244
|
-
className: _("page-button", "next"),
|
|
245
|
-
onClick: i,
|
|
246
|
-
disabled: t === s,
|
|
247
|
-
children: /* @__PURE__ */ o(y, {})
|
|
248
|
-
}
|
|
249
|
-
),
|
|
250
|
-
/* @__PURE__ */ o(
|
|
251
|
-
u,
|
|
252
|
-
{
|
|
253
|
-
className: _("page-button", "next"),
|
|
254
|
-
onClick: e,
|
|
255
|
-
disabled: t === s,
|
|
256
|
-
children: /* @__PURE__ */ o(T, {})
|
|
257
|
-
}
|
|
258
|
-
)
|
|
259
|
-
] })
|
|
260
|
-
] });
|
|
261
|
-
}, oe = {
|
|
262
|
-
"page-controls": "_page-controls_thyf8_1",
|
|
263
|
-
"total-pages": "_total-pages_thyf8_8"
|
|
264
|
-
}, B = m.bind(oe), se = ({
|
|
265
|
-
activePage: t,
|
|
266
|
-
changePage: n,
|
|
267
|
-
captions: s,
|
|
268
|
-
totalPages: r
|
|
269
|
-
}) => /* @__PURE__ */ p("div", { className: B("page-controls"), children: [
|
|
270
|
-
/* @__PURE__ */ o(
|
|
271
|
-
H,
|
|
272
|
-
{
|
|
273
|
-
activePage: t,
|
|
274
|
-
totalPages: r,
|
|
275
|
-
changePage: n,
|
|
276
|
-
pageText: s.page,
|
|
277
|
-
goToText: s.goTo,
|
|
278
|
-
goActionText: s.goAction
|
|
279
|
-
}
|
|
280
|
-
),
|
|
281
|
-
/* @__PURE__ */ o(
|
|
282
|
-
te,
|
|
283
|
-
{
|
|
284
|
-
changePage: n,
|
|
285
|
-
activePage: t,
|
|
286
|
-
totalPages: r,
|
|
287
|
-
captions: { goTo: s.goTo }
|
|
288
|
-
}
|
|
289
|
-
),
|
|
290
|
-
/* @__PURE__ */ p("span", { className: B("total-pages"), children: [
|
|
291
|
-
`${s.of} `,
|
|
292
|
-
r
|
|
293
|
-
] })
|
|
294
|
-
] }), ne = "_pagination_wi26a_1", re = {
|
|
295
|
-
pagination: ne
|
|
296
|
-
}, le = m.bind(re), he = ({
|
|
297
|
-
activePage: t,
|
|
298
|
-
totalPages: n,
|
|
299
|
-
pageSize: s,
|
|
300
|
-
totalItems: r,
|
|
301
|
-
pageSizeOptions: a,
|
|
302
|
-
changePage: c,
|
|
303
|
-
changePageSize: i,
|
|
304
|
-
captions: e
|
|
305
|
-
}) => {
|
|
306
|
-
const d = (e == null ? void 0 : e.of) || "of", l = (e == null ? void 0 : e.page) || "Page";
|
|
307
|
-
return /* @__PURE__ */ p("div", { className: le("pagination"), children: [
|
|
308
|
-
/* @__PURE__ */ o(
|
|
309
|
-
P,
|
|
310
|
-
{
|
|
311
|
-
activePage: t,
|
|
312
|
-
pageSize: s,
|
|
313
|
-
totalItems: r,
|
|
314
|
-
ofText: d,
|
|
315
|
-
itemsText: (e == null ? void 0 : e.items) || "items"
|
|
316
|
-
}
|
|
317
|
-
),
|
|
318
|
-
n > 1 && /* @__PURE__ */ o(
|
|
319
|
-
se,
|
|
320
|
-
{
|
|
321
|
-
activePage: t,
|
|
322
|
-
totalPages: n,
|
|
323
|
-
changePage: c,
|
|
324
|
-
captions: {
|
|
325
|
-
page: l,
|
|
326
|
-
of: d,
|
|
327
|
-
goTo: (e == null ? void 0 : e.goTo) || "Go to page",
|
|
328
|
-
goAction: (e == null ? void 0 : e.goAction) || "Go"
|
|
329
|
-
}
|
|
330
|
-
}
|
|
331
|
-
),
|
|
332
|
-
/* @__PURE__ */ o(
|
|
333
|
-
F,
|
|
334
|
-
{
|
|
335
|
-
size: s,
|
|
336
|
-
sizeOptions: a,
|
|
337
|
-
changeSize: i,
|
|
338
|
-
perPageText: (e == null ? void 0 : e.perPage) || "per page"
|
|
339
|
-
}
|
|
340
|
-
)
|
|
341
|
-
] });
|
|
342
|
-
};
|
|
343
|
-
export {
|
|
344
|
-
he as P,
|
|
345
|
-
y as S,
|
|
346
|
-
T as a
|
|
347
|
-
};
|
package/dist/reactDatePicker2.js
DELETED
package/dist/table-9bf4ddab.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { jsxs as n, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import * as h from "react";
|
|
3
|
-
import { useState as f, useMemo as F } from "react";
|
|
4
|
-
import { c as G } from "./bind-06a7ff84.js";
|
|
5
|
-
import "./baseIconButton-b6adc843.js";
|
|
6
|
-
import { C as L } from "./checkbox-9a6c7ce1.js";
|
|
7
|
-
const J = (a) => /* @__PURE__ */ h.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ h.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L4.14645 9.85355C3.95118 9.65829 3.95118 9.34171 4.14645 9.14645C4.34171 8.95118 4.65829 8.95118 4.85355 9.14645L7 11.2929L7 3.5C7 3.22386 7.22386 3 7.5 3C7.77614 3 8 3.22386 8 3.5L8 11.2929L10.1464 9.14645C10.3417 8.95119 10.6583 8.95118 10.8536 9.14645C11.0488 9.34171 11.0488 9.65829 10.8536 9.85355L7.85355 12.8536Z", fill: "#A2AAB5" })), m = (a) => /* @__PURE__ */ h.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...a }, /* @__PURE__ */ h.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L10.8536 6.14645C11.0488 6.34171 11.0488 6.65829 10.8536 6.85355C10.6583 7.04882 10.3417 7.04882 10.1464 6.85355L8 4.70711V12.5C8 12.7761 7.77614 13 7.5 13C7.22386 13 7 12.7761 7 12.5L7 4.70711L4.85355 6.85355C4.65829 7.04882 4.34171 7.04882 4.14645 6.85355C3.95118 6.65829 3.95118 6.34171 4.14645 6.14645L7.14645 3.14645Z", fill: "#A2AAB5" })), K = "_table_kha9s_1", O = "_label_kha9s_87", P = {
|
|
8
|
-
table: K,
|
|
9
|
-
"table-header": "_table-header_kha9s_9",
|
|
10
|
-
"table-row": "_table-row_kha9s_16",
|
|
11
|
-
"table-row-content": "_table-row-content_kha9s_21",
|
|
12
|
-
"size-small": "_size-small_kha9s_31",
|
|
13
|
-
"size-large": "_size-large_kha9s_34",
|
|
14
|
-
"table-body": "_table-body_kha9s_38",
|
|
15
|
-
"table-header-cell": "_table-header-cell_kha9s_45",
|
|
16
|
-
"table-cell": "_table-cell_kha9s_45",
|
|
17
|
-
"action-menu-cell": "_action-menu-cell_kha9s_50",
|
|
18
|
-
"checkbox-cell": "_checkbox-cell_kha9s_60",
|
|
19
|
-
"primary-cell": "_primary-cell_kha9s_71",
|
|
20
|
-
label: O,
|
|
21
|
-
"sortable-cell": "_sortable-cell_kha9s_91",
|
|
22
|
-
"align-right": "_align-right_kha9s_94",
|
|
23
|
-
"align-center": "_align-center_kha9s_100"
|
|
24
|
-
};
|
|
25
|
-
var v = /* @__PURE__ */ ((a) => (a.ASC = "asc", a.DESC = "desc", a))(v || {});
|
|
26
|
-
const Q = (a) => a.map((c) => c.key), l = G.bind(P), le = ({
|
|
27
|
-
data: a,
|
|
28
|
-
primaryColumn: c,
|
|
29
|
-
fixedColumns: i,
|
|
30
|
-
renderRowActions: d,
|
|
31
|
-
className: x = "",
|
|
32
|
-
rowClassName: A = "",
|
|
33
|
-
headerClassName: u = "",
|
|
34
|
-
selectable: y = !1,
|
|
35
|
-
selectedRowIds: o = [],
|
|
36
|
-
sortingDirection: p = v.ASC,
|
|
37
|
-
sortingColumn: r = c,
|
|
38
|
-
sortableColumns: _ = Q([c, ...i]),
|
|
39
|
-
onChangeSorting: M = () => {
|
|
40
|
-
},
|
|
41
|
-
onToggleRowSelection: S = () => {
|
|
42
|
-
},
|
|
43
|
-
onToggleAllRowsSelection: z = () => {
|
|
44
|
-
}
|
|
45
|
-
}) => {
|
|
46
|
-
const [E, w] = f(null), [R, g] = f(null), C = F(() => [{ ...c, primary: !0 }, ...i], [c, i]), B = (e) => {
|
|
47
|
-
_.includes(e) && M({ key: e, direction: p });
|
|
48
|
-
}, N = (e) => ({
|
|
49
|
-
width: e.width,
|
|
50
|
-
textAlign: e.align
|
|
51
|
-
}), j = (e) => {
|
|
52
|
-
w(e);
|
|
53
|
-
}, H = () => {
|
|
54
|
-
w(null);
|
|
55
|
-
}, T = (e) => {
|
|
56
|
-
g(e);
|
|
57
|
-
}, Z = () => {
|
|
58
|
-
g(null);
|
|
59
|
-
}, $ = (e) => {
|
|
60
|
-
S(e);
|
|
61
|
-
}, D = () => {
|
|
62
|
-
z();
|
|
63
|
-
}, U = a.every((e) => o.includes(e.id)), b = a.some((e) => o.includes(e.id)), V = (e) => {
|
|
64
|
-
var t;
|
|
65
|
-
return `size-${((t = e.rowConfigs) == null ? void 0 : t.size) ?? "default"}`;
|
|
66
|
-
}, q = (e) => {
|
|
67
|
-
if (_.includes(e))
|
|
68
|
-
return (r == null ? void 0 : r.key) === e ? p === v.ASC ? /* @__PURE__ */ s(m, {}) : /* @__PURE__ */ s(J, {}) : /* @__PURE__ */ s(m, {});
|
|
69
|
-
};
|
|
70
|
-
return /* @__PURE__ */ n("div", { className: l("table", x), children: [
|
|
71
|
-
/* @__PURE__ */ n("div", { className: l("table-header", u), children: [
|
|
72
|
-
y && /* @__PURE__ */ s("div", { className: l("table-header-cell", "checkbox-cell"), children: b && /* @__PURE__ */ s(
|
|
73
|
-
L,
|
|
74
|
-
{
|
|
75
|
-
value: U,
|
|
76
|
-
partiallyChecked: b,
|
|
77
|
-
onChange: D,
|
|
78
|
-
className: l("checkbox-cell")
|
|
79
|
-
}
|
|
80
|
-
) }),
|
|
81
|
-
C.map((e) => /* @__PURE__ */ s(
|
|
82
|
-
"button",
|
|
83
|
-
{
|
|
84
|
-
className: l("table-header-cell", {
|
|
85
|
-
[`align-${e.align}`]: "align" in e,
|
|
86
|
-
"primary-cell": "primary" in e && e.primary,
|
|
87
|
-
"sortable-cell": _.includes(e.key)
|
|
88
|
-
}),
|
|
89
|
-
style: N(e),
|
|
90
|
-
children: /* @__PURE__ */ n(
|
|
91
|
-
"div",
|
|
92
|
-
{
|
|
93
|
-
className: l("label"),
|
|
94
|
-
onClick: () => B(e.key),
|
|
95
|
-
onMouseEnter: () => j(e.key),
|
|
96
|
-
onMouseLeave: H,
|
|
97
|
-
children: [
|
|
98
|
-
/* @__PURE__ */ s("span", { children: e.header }),
|
|
99
|
-
(E === e.key || (r == null ? void 0 : r.key) === e.key) && q(e.key)
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
)
|
|
103
|
-
},
|
|
104
|
-
e.key
|
|
105
|
-
)),
|
|
106
|
-
d && /* @__PURE__ */ s("div", { className: l("table-header-cell", "action-menu-cell") })
|
|
107
|
-
] }),
|
|
108
|
-
/* @__PURE__ */ s("div", { className: l("table-body"), children: a.map((e, k) => /* @__PURE__ */ n(
|
|
109
|
-
"div",
|
|
110
|
-
{
|
|
111
|
-
className: l("table-row", V(e), A),
|
|
112
|
-
onMouseEnter: () => T(k),
|
|
113
|
-
onMouseLeave: Z,
|
|
114
|
-
children: [
|
|
115
|
-
y && /* @__PURE__ */ s("div", { className: l("table-cell", "checkbox-cell"), children: (b || R === k) && /* @__PURE__ */ s(
|
|
116
|
-
L,
|
|
117
|
-
{
|
|
118
|
-
value: o.includes(e.id),
|
|
119
|
-
onChange: () => $(e.id),
|
|
120
|
-
className: l("checkbox-cell")
|
|
121
|
-
}
|
|
122
|
-
) }),
|
|
123
|
-
/* @__PURE__ */ n("div", { className: l("table-row-content"), children: [
|
|
124
|
-
C.map((t) => /* @__PURE__ */ s(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
className: l("table-cell", {
|
|
128
|
-
"primary-cell": "primary" in t && t.primary
|
|
129
|
-
}),
|
|
130
|
-
style: N(t),
|
|
131
|
-
children: e[t.key].component || e[t.key].content || e[t.key]
|
|
132
|
-
},
|
|
133
|
-
t.key
|
|
134
|
-
)),
|
|
135
|
-
d && /* @__PURE__ */ s("div", { className: l("table-cell", "action-menu-cell"), children: d(e.metaData) })
|
|
136
|
-
] })
|
|
137
|
-
]
|
|
138
|
-
},
|
|
139
|
-
e.id
|
|
140
|
-
)) })
|
|
141
|
-
] });
|
|
142
|
-
};
|
|
143
|
-
export {
|
|
144
|
-
J as S,
|
|
145
|
-
le as T,
|
|
146
|
-
m as a
|
|
147
|
-
};
|
|
File without changes
|
|
File without changes
|