@reportportal/ui-kit 0.0.1-alpha.92 → 0.0.1-alpha.93
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.
|
@@ -9,8 +9,8 @@ import { registerLocale as j } from "react-datepicker";
|
|
|
9
9
|
const ie = (n, s) => {
|
|
10
10
|
j(n, s);
|
|
11
11
|
}, G = (n, s = 20) => {
|
|
12
|
-
const
|
|
13
|
-
return new Array(
|
|
12
|
+
const i = n + s;
|
|
13
|
+
return new Array(i - n).fill(void 0).map((g, t) => n - t);
|
|
14
14
|
}, H = "_header_1q16i_1", V = "_disabled_1q16i_25", O = "_dropdown_1q16i_8", W = {
|
|
15
15
|
header: H,
|
|
16
16
|
"dropdowns-wrapper": "_dropdowns-wrapper_1q16i_8",
|
|
@@ -24,7 +24,7 @@ const ie = (n, s) => {
|
|
|
24
24
|
date: n = /* @__PURE__ */ new Date(),
|
|
25
25
|
changeYear: s = () => {
|
|
26
26
|
},
|
|
27
|
-
changeMonth:
|
|
27
|
+
changeMonth: i = () => {
|
|
28
28
|
},
|
|
29
29
|
decreaseMonth: g = () => {
|
|
30
30
|
},
|
|
@@ -34,22 +34,22 @@ const ie = (n, s) => {
|
|
|
34
34
|
nextMonthButtonDisabled: h = !1,
|
|
35
35
|
headerNodes: b = null,
|
|
36
36
|
customClassName: w = "",
|
|
37
|
-
yearsOptions:
|
|
37
|
+
yearsOptions: p = [],
|
|
38
38
|
locale: N
|
|
39
39
|
}) => {
|
|
40
|
-
const
|
|
40
|
+
const l = n.getFullYear(), C = n.getMonth(), y = P(() => {
|
|
41
41
|
const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
|
|
42
42
|
month: "long"
|
|
43
|
-
}),
|
|
44
|
-
return Array.from(e,
|
|
43
|
+
}), d = (m) => c.format(new Date(l, m));
|
|
44
|
+
return Array.from(e, d).reduce((m, f, x) => m.concat({
|
|
45
45
|
value: x,
|
|
46
46
|
label: f
|
|
47
47
|
}), []);
|
|
48
|
-
}, []), v = P(() => (
|
|
49
|
-
(c,
|
|
48
|
+
}, []), v = P(() => (p.length > 0 ? p : G(l)).reduce(
|
|
49
|
+
(c, d) => c.concat({ value: d, label: `${d}` }),
|
|
50
50
|
[]
|
|
51
|
-
), [
|
|
52
|
-
|
|
51
|
+
), [p, l]), A = (e) => {
|
|
52
|
+
i(e);
|
|
53
53
|
}, k = (e) => {
|
|
54
54
|
s(e);
|
|
55
55
|
};
|
|
@@ -85,7 +85,7 @@ const ie = (n, s) => {
|
|
|
85
85
|
E,
|
|
86
86
|
{
|
|
87
87
|
options: v,
|
|
88
|
-
value:
|
|
88
|
+
value: l,
|
|
89
89
|
onChange: k,
|
|
90
90
|
transparentBackground: !0,
|
|
91
91
|
className: a("dropdown"),
|
|
@@ -121,7 +121,7 @@ const ie = (n, s) => {
|
|
|
121
121
|
onChange: n = () => {
|
|
122
122
|
},
|
|
123
123
|
disabled: s = !1,
|
|
124
|
-
onBlur:
|
|
124
|
+
onBlur: i = () => {
|
|
125
125
|
},
|
|
126
126
|
onFocus: g = () => {
|
|
127
127
|
},
|
|
@@ -130,9 +130,9 @@ const ie = (n, s) => {
|
|
|
130
130
|
headerNodes: h = null,
|
|
131
131
|
customClassName: b = "",
|
|
132
132
|
customTimeInput: w = void 0,
|
|
133
|
-
shouldCloseOnSelect:
|
|
133
|
+
shouldCloseOnSelect: p = !0,
|
|
134
134
|
popperClassName: N = "",
|
|
135
|
-
calendarClassName:
|
|
135
|
+
calendarClassName: l = "",
|
|
136
136
|
fixedHeight: C = !1,
|
|
137
137
|
language: y = te,
|
|
138
138
|
yearsOptions: v = [],
|
|
@@ -141,7 +141,7 @@ const ie = (n, s) => {
|
|
|
141
141
|
selects: e = "start",
|
|
142
142
|
value: c = null
|
|
143
143
|
}) => {
|
|
144
|
-
const
|
|
144
|
+
const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), f = t && o && t > o, x = (u) => {
|
|
145
145
|
const M = u.toDateString(), Y = M === S, q = f && M === m, U = o && t && u > o && u < t;
|
|
146
146
|
return _("date", {
|
|
147
147
|
"current-date": Y,
|
|
@@ -153,18 +153,18 @@ const ie = (n, s) => {
|
|
|
153
153
|
return /* @__PURE__ */ r(
|
|
154
154
|
B,
|
|
155
155
|
{
|
|
156
|
-
customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref:
|
|
156
|
+
customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
|
|
157
157
|
placeholderText: A,
|
|
158
158
|
selected: c,
|
|
159
159
|
startDate: o,
|
|
160
160
|
endDate: t,
|
|
161
161
|
disabled: s,
|
|
162
|
-
shouldCloseOnSelect:
|
|
162
|
+
shouldCloseOnSelect: p,
|
|
163
163
|
fixedHeight: C,
|
|
164
164
|
locale: y,
|
|
165
165
|
showPopperArrow: !1,
|
|
166
166
|
dayClassName: x,
|
|
167
|
-
calendarClassName: _(
|
|
167
|
+
calendarClassName: _(l, "calendar"),
|
|
168
168
|
renderCustomHeader: (u) => /* @__PURE__ */ r(
|
|
169
169
|
z,
|
|
170
170
|
{
|
|
@@ -176,7 +176,7 @@ const ie = (n, s) => {
|
|
|
176
176
|
}
|
|
177
177
|
),
|
|
178
178
|
onChange: n,
|
|
179
|
-
onBlur:
|
|
179
|
+
onBlur: i,
|
|
180
180
|
onFocus: g,
|
|
181
181
|
customTimeInput: w,
|
|
182
182
|
showTimeInput: !!w,
|
package/dist/datePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as q } from "./datePicker-
|
|
1
|
+
import { D as t } from "./datePicker-0aca795c.js";
|
|
2
|
+
import { r as q } from "./datePicker-0aca795c.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-datepicker/dist/es/index.js";
|
|
5
5
|
import "./bind-06a7ff84.js";
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { Popover as X } from "./popover.js";
|
|
|
18
18
|
import { P as Z } from "./pagination-43330c73.js";
|
|
19
19
|
import { S as $ } from "./selection-9124d029.js";
|
|
20
20
|
import { T as ro } from "./table-920fdad9.js";
|
|
21
|
-
import { D as to } from "./datePicker-
|
|
21
|
+
import { D as to } from "./datePicker-0aca795c.js";
|
|
22
22
|
import "react-datepicker";
|
|
23
23
|
import { SystemAlert as ao } from "./systemAlert.js";
|
|
24
24
|
import { AddCsvIcon as po, AddImageIcon as mo, AddJarIcon as io, BreadcrumbsTreeIcon as so, CalendarIcon as Io, CheckmarkIcon as xo, ChevronDownDropdownIcon as fo, ChevronRightBreadcrumbsIcon as lo, CopyIcon as So, DeleteIcon as uo, DragAndDropIcon as Po, DragNDropIcon as Co, DurationIcon as Do, EditIcon as go, ExportIcon as Bo, ExternalLinkIcon as Fo, FilterFilledIcon as To, FilterOutlineIcon as bo, FlagIcon as yo, HideIcon as ho, MaximizeIcon as wo, MoveToFolderIcon as vo, PriorityBlockerIcon as Ao, PriorityCriticalIcon as Mo, PriorityHighIcon as ko, PriorityLowIcon as Eo, PriorityMediumIcon as Ro, PriorityUnspecifiedIcon as Lo, RefreshIcon as Ho, RerunIcon as No, SearchIcon as Oo, SortIcon as Uo, StatusSuccessIcon as zo, WarningIcon as Jo } from "./icons.js";
|