@reportportal/ui-kit 0.0.1-alpha.46 → 0.0.1-alpha.48
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/baseIconButton-251479f7.js +25 -0
- package/dist/baseIconButton.js +1 -1
- package/dist/clear-53660571.js +5 -0
- package/dist/close-4b33d7c1.js +5 -0
- package/dist/common/types.d.ts +3 -0
- package/dist/components/fieldText/fieldText.d.ts +2 -0
- package/dist/components/fieldTextFlex/fieldTextFlex.d.ts +1 -0
- package/dist/components/icons/index.d.ts +0 -1
- package/dist/components/index.d.ts +1 -3
- package/dist/components/maxValueDisplay/index.d.ts +3 -0
- package/dist/components/maxValueDisplay/maxValueDisplay.d.ts +7 -0
- package/dist/components/maxValueDisplay/utils/index.d.ts +1 -0
- package/dist/components/maxValueDisplay/utils/isPositiveInteger.d.ts +1 -0
- package/dist/components/systemAlert/types.d.ts +1 -0
- package/dist/{datePicker-68379fe1.js → datePicker-7aa41281.js} +4 -5
- package/dist/datePicker.js +8 -4
- package/dist/dropdown-0260bb66.js +5 -0
- package/dist/dropdown-6edea86c.js +263 -0
- package/dist/dropdown.js +3 -2
- package/dist/error-4f493850.js +7 -0
- package/dist/fieldNumber-d517a095.js +125 -0
- package/dist/fieldNumber.js +3 -2
- package/dist/fieldText-404383ce.js +139 -0
- package/dist/fieldText.js +4 -2
- package/dist/fieldTextFlex-23d6ecce.js +78 -0
- package/dist/fieldTextFlex.js +2 -1
- package/dist/icons.js +32 -0
- package/dist/index.js +73 -114
- package/dist/maxValueDisplay-9be01a75.js +13 -0
- package/dist/maxValueDisplay.js +6 -0
- package/dist/minus-660ea0d6.js +6 -0
- package/dist/modal.js +144 -14
- package/dist/pagination-86651d50.js +345 -0
- package/dist/pagination.js +7 -3
- 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 +55 -0
- package/dist/table-32fc8c70.js +144 -0
- package/dist/table.js +2 -2
- package/package.json +1 -1
- package/dist/baseIconButton-b6adc843.js +0 -25
- 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/fieldTextFlex-5bddf46a.js +0 -67
- 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
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
|