@reportportal/ui-kit 0.0.1-alpha.43 → 0.0.1-alpha.44
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/index.js
CHANGED
|
@@ -13,7 +13,7 @@ import { F as L1 } from "./fieldTextFlex-5bddf46a.js";
|
|
|
13
13
|
import { R as u1 } from "./radio-bccc84f2.js";
|
|
14
14
|
import { Tooltip as M1 } from "./tooltip.js";
|
|
15
15
|
import { Popover as I1 } from "./popover.js";
|
|
16
|
-
import { P as S1, a as _1, S as Z1 } from "./pagination-
|
|
16
|
+
import { P as S1, a as _1, S as Z1 } from "./pagination-8e40591a.js";
|
|
17
17
|
import { S as F1, a as A1, T as H1 } from "./table-9bf4ddab.js";
|
|
18
18
|
import { D as b1 } from "./datePicker-543e9043.js";
|
|
19
19
|
import { D as N1 } from "./datePicker-0d4910b6.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { c as m } from "./bind-06a7ff84.js";
|
|
3
3
|
import * as b from "react";
|
|
4
4
|
import { useState as x } from "react";
|
|
@@ -17,7 +17,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
17
17
|
itemsText: c
|
|
18
18
|
}) => {
|
|
19
19
|
const a = e * n, i = a - n;
|
|
20
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ p("div", { className: M("item-counter"), children: [
|
|
21
21
|
`${i + 1} - ${a < s ? a : s}`,
|
|
22
22
|
` ${r} ${s} ${c}`
|
|
23
23
|
] });
|
|
@@ -51,7 +51,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
51
51
|
const [c, a] = x(!1), i = (o) => {
|
|
52
52
|
r(o), a(!1);
|
|
53
53
|
};
|
|
54
|
-
return /* @__PURE__ */
|
|
54
|
+
return /* @__PURE__ */ p("div", { className: S("page-size-control"), children: [
|
|
55
55
|
/* @__PURE__ */ t(
|
|
56
56
|
B,
|
|
57
57
|
{
|
|
@@ -74,17 +74,17 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
74
74
|
goActionText: s,
|
|
75
75
|
selectPage: r
|
|
76
76
|
}) => {
|
|
77
|
-
const [c, a] = x(""), [i, o] = x(!0),
|
|
78
|
-
const
|
|
79
|
-
o(O), a(
|
|
77
|
+
const [c, a] = x(""), [i, o] = x(!0), d = (h) => {
|
|
78
|
+
const u = h.target.value.replace(/\D/g, ""), $ = Number(u), O = $ > 0 && $ <= e;
|
|
79
|
+
o(O), a(u);
|
|
80
80
|
}, l = () => {
|
|
81
81
|
r(Number(c));
|
|
82
82
|
};
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ p("div", { className: N("page-selector"), children: [
|
|
84
84
|
/* @__PURE__ */ t("div", { className: N("field-wrapper"), children: /* @__PURE__ */ t(
|
|
85
85
|
I,
|
|
86
86
|
{
|
|
87
|
-
onChange:
|
|
87
|
+
onChange: d,
|
|
88
88
|
value: c,
|
|
89
89
|
placeholder: n,
|
|
90
90
|
error: i ? "" : "Error",
|
|
@@ -107,10 +107,10 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
107
107
|
goActionText: c,
|
|
108
108
|
changePage: a
|
|
109
109
|
}) => {
|
|
110
|
-
const [i, o] = x(!1),
|
|
110
|
+
const [i, o] = x(!1), d = (l) => {
|
|
111
111
|
a(l), o(!1);
|
|
112
112
|
};
|
|
113
|
-
return /* @__PURE__ */
|
|
113
|
+
return /* @__PURE__ */ p("div", { className: v("active-page"), children: [
|
|
114
114
|
`${s} `,
|
|
115
115
|
/* @__PURE__ */ t(
|
|
116
116
|
B,
|
|
@@ -120,7 +120,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
120
120
|
{
|
|
121
121
|
pageText: s,
|
|
122
122
|
goActionText: c,
|
|
123
|
-
selectPage:
|
|
123
|
+
selectPage: d,
|
|
124
124
|
totalPages: n
|
|
125
125
|
}
|
|
126
126
|
),
|
|
@@ -154,11 +154,11 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
154
154
|
end: l * c,
|
|
155
155
|
pageNumber: l
|
|
156
156
|
});
|
|
157
|
-
const
|
|
158
|
-
return o.forEach((l) => {
|
|
159
|
-
const u =
|
|
160
|
-
|
|
161
|
-
}), /* @__PURE__ */ t("div", { className: g("bar"), children:
|
|
157
|
+
const d = Array.from({ length: a }, () => ({ pages: { from: void 0, to: void 0 } }));
|
|
158
|
+
return o.forEach((l, h) => {
|
|
159
|
+
const u = d[h].pages;
|
|
160
|
+
u.from || (u.from = l.pageNumber), u.to = l.pageNumber;
|
|
161
|
+
}), /* @__PURE__ */ t("div", { className: g("bar"), children: d.map((l, h) => /* @__PURE__ */ t(
|
|
162
162
|
"div",
|
|
163
163
|
{
|
|
164
164
|
className: g("section-with-tooltip"),
|
|
@@ -167,7 +167,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
167
167
|
children: /* @__PURE__ */ t(
|
|
168
168
|
E,
|
|
169
169
|
{
|
|
170
|
-
content: /* @__PURE__ */
|
|
170
|
+
content: /* @__PURE__ */ p("div", { className: g("tooltip"), children: [
|
|
171
171
|
/* @__PURE__ */ t("div", { className: g("tooltip-text"), children: r.goTo }),
|
|
172
172
|
/* @__PURE__ */ t("div", { className: g("page-number"), children: l.pages.from })
|
|
173
173
|
] }),
|
|
@@ -184,7 +184,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
184
184
|
}
|
|
185
185
|
)
|
|
186
186
|
},
|
|
187
|
-
|
|
187
|
+
h
|
|
188
188
|
)) });
|
|
189
189
|
}, Y = "_next_1p2t5_18", ee = {
|
|
190
190
|
"page-navigator": "_page-navigator_1p2t5_1",
|
|
@@ -206,8 +206,8 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
206
206
|
}, o = () => {
|
|
207
207
|
n(s);
|
|
208
208
|
};
|
|
209
|
-
return /* @__PURE__ */
|
|
210
|
-
/* @__PURE__ */
|
|
209
|
+
return /* @__PURE__ */ p("div", { className: _("page-navigator"), children: [
|
|
210
|
+
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
211
211
|
/* @__PURE__ */ t(
|
|
212
212
|
f,
|
|
213
213
|
{
|
|
@@ -236,7 +236,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
236
236
|
captions: r
|
|
237
237
|
}
|
|
238
238
|
),
|
|
239
|
-
/* @__PURE__ */
|
|
239
|
+
/* @__PURE__ */ p("div", { className: _("page-buttons"), children: [
|
|
240
240
|
/* @__PURE__ */ t(
|
|
241
241
|
f,
|
|
242
242
|
{
|
|
@@ -265,7 +265,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
265
265
|
changePage: n,
|
|
266
266
|
captions: s,
|
|
267
267
|
totalPages: r
|
|
268
|
-
}) => /* @__PURE__ */
|
|
268
|
+
}) => /* @__PURE__ */ p("div", { className: L("page-controls"), children: [
|
|
269
269
|
/* @__PURE__ */ t(
|
|
270
270
|
H,
|
|
271
271
|
{
|
|
@@ -286,13 +286,13 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
286
286
|
captions: { goTo: s.goTo }
|
|
287
287
|
}
|
|
288
288
|
),
|
|
289
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ p("span", { className: L("total-pages"), children: [
|
|
290
290
|
`${s.of} `,
|
|
291
291
|
r
|
|
292
292
|
] })
|
|
293
293
|
] }), ne = "_pagination_wi26a_1", re = {
|
|
294
294
|
pagination: ne
|
|
295
|
-
}, le = m.bind(re),
|
|
295
|
+
}, le = m.bind(re), ue = ({
|
|
296
296
|
activePage: e,
|
|
297
297
|
totalPages: n,
|
|
298
298
|
pageSize: s,
|
|
@@ -302,15 +302,15 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
302
302
|
changePageSize: i,
|
|
303
303
|
captions: o
|
|
304
304
|
}) => {
|
|
305
|
-
const
|
|
306
|
-
return /* @__PURE__ */
|
|
305
|
+
const d = (o == null ? void 0 : o.of) || "of", l = (o == null ? void 0 : o.page) || "Page";
|
|
306
|
+
return /* @__PURE__ */ p("div", { className: le("pagination"), children: [
|
|
307
307
|
/* @__PURE__ */ t(
|
|
308
308
|
P,
|
|
309
309
|
{
|
|
310
310
|
activePage: e,
|
|
311
311
|
pageSize: s,
|
|
312
312
|
totalItems: r,
|
|
313
|
-
ofText:
|
|
313
|
+
ofText: d,
|
|
314
314
|
itemsText: (o == null ? void 0 : o.items) || "items"
|
|
315
315
|
}
|
|
316
316
|
),
|
|
@@ -322,7 +322,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
322
322
|
changePage: a,
|
|
323
323
|
captions: {
|
|
324
324
|
page: l,
|
|
325
|
-
of:
|
|
325
|
+
of: d,
|
|
326
326
|
goTo: (o == null ? void 0 : o.goTo) || "Go to page",
|
|
327
327
|
goAction: (o == null ? void 0 : o.goAction) || "Go"
|
|
328
328
|
}
|
|
@@ -340,7 +340,7 @@ const y = (e) => /* @__PURE__ */ b.createElement("svg", { width: 16, height: 16,
|
|
|
340
340
|
] });
|
|
341
341
|
};
|
|
342
342
|
export {
|
|
343
|
-
|
|
343
|
+
ue as P,
|
|
344
344
|
y as S,
|
|
345
345
|
T as a
|
|
346
346
|
};
|
package/dist/pagination.js
CHANGED