@reportportal/ui-kit 0.0.1-alpha.89 → 0.0.1-alpha.90
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.
|
@@ -37,15 +37,15 @@ const ie = (n, s) => {
|
|
|
37
37
|
yearsOptions: i = [],
|
|
38
38
|
locale: N
|
|
39
39
|
}) => {
|
|
40
|
-
const
|
|
40
|
+
const p = n.getFullYear(), v = n.getMonth(), y = P(() => {
|
|
41
41
|
const e = Array(12).keys(), d = new Intl.DateTimeFormat(N, {
|
|
42
42
|
month: "long"
|
|
43
|
-
}), c = (
|
|
44
|
-
return Array.from(e, c).reduce((
|
|
43
|
+
}), c = (m) => d.format(new Date(p, m));
|
|
44
|
+
return Array.from(e, c).reduce((m, f, k) => m.concat({
|
|
45
45
|
value: k,
|
|
46
|
-
label:
|
|
46
|
+
label: f
|
|
47
47
|
}), []);
|
|
48
|
-
}, []), C = P(() => (i.length > 0 ? i : G(
|
|
48
|
+
}, []), C = P(() => (i.length > 0 ? i : G(p)).reduce(
|
|
49
49
|
(d, c) => d.concat({ value: c, label: `${c}` }),
|
|
50
50
|
[]
|
|
51
51
|
), [i]), x = (e) => {
|
|
@@ -59,6 +59,7 @@ const ie = (n, s) => {
|
|
|
59
59
|
/* @__PURE__ */ r(
|
|
60
60
|
"button",
|
|
61
61
|
{
|
|
62
|
+
type: "button",
|
|
62
63
|
"aria-label": "Previous Months",
|
|
63
64
|
disabled: t,
|
|
64
65
|
onClick: (e) => {
|
|
@@ -72,7 +73,7 @@ const ie = (n, s) => {
|
|
|
72
73
|
/* @__PURE__ */ r(
|
|
73
74
|
E,
|
|
74
75
|
{
|
|
75
|
-
options:
|
|
76
|
+
options: y,
|
|
76
77
|
value: v,
|
|
77
78
|
onChange: x,
|
|
78
79
|
transparentBackground: !0,
|
|
@@ -84,7 +85,7 @@ const ie = (n, s) => {
|
|
|
84
85
|
E,
|
|
85
86
|
{
|
|
86
87
|
options: C,
|
|
87
|
-
value:
|
|
88
|
+
value: p,
|
|
88
89
|
onChange: A,
|
|
89
90
|
transparentBackground: !0,
|
|
90
91
|
className: a("dropdown"),
|
|
@@ -95,6 +96,7 @@ const ie = (n, s) => {
|
|
|
95
96
|
/* @__PURE__ */ r(
|
|
96
97
|
"button",
|
|
97
98
|
{
|
|
99
|
+
type: "button",
|
|
98
100
|
"aria-label": "Next Months",
|
|
99
101
|
disabled: h,
|
|
100
102
|
onClick: (e) => {
|
|
@@ -115,7 +117,7 @@ const ie = (n, s) => {
|
|
|
115
117
|
disabled: Q,
|
|
116
118
|
popper: X,
|
|
117
119
|
input: Z
|
|
118
|
-
}, _ = R.bind(ee), oe = "en", L = "MM-dd-yyyy",
|
|
120
|
+
}, _ = R.bind(ee), oe = "en", L = "MM-dd-yyyy", pe = ({
|
|
119
121
|
onChange: n = () => {
|
|
120
122
|
},
|
|
121
123
|
disabled: s = !1,
|
|
@@ -130,21 +132,21 @@ const ie = (n, s) => {
|
|
|
130
132
|
customTimeInput: w = void 0,
|
|
131
133
|
shouldCloseOnSelect: i = !0,
|
|
132
134
|
popperClassName: N = "",
|
|
133
|
-
calendarClassName:
|
|
135
|
+
calendarClassName: p = "",
|
|
134
136
|
fixedHeight: v = !1,
|
|
135
|
-
language:
|
|
137
|
+
language: y = oe,
|
|
136
138
|
yearsOptions: C = [],
|
|
137
139
|
placeholder: x = L.toUpperCase(),
|
|
138
140
|
dateFormat: A = L,
|
|
139
141
|
selects: e = "start",
|
|
140
142
|
value: d = null
|
|
141
143
|
}) => {
|
|
142
|
-
const c = D(null), S = t == null ? void 0 : t.toDateString(),
|
|
143
|
-
const M = u.toDateString(), Y = M === S, q =
|
|
144
|
+
const c = D(null), S = t == null ? void 0 : t.toDateString(), m = o == null ? void 0 : o.toDateString(), f = o && t && o > t, k = (u) => {
|
|
145
|
+
const M = u.toDateString(), Y = M === S, q = f && M === m, U = t && o && u > t && u < o;
|
|
144
146
|
return _("date", {
|
|
145
147
|
"current-date": Y,
|
|
146
148
|
"selected-range": U && !q,
|
|
147
|
-
"end-date": q &&
|
|
149
|
+
"end-date": q && f,
|
|
148
150
|
disabled: s
|
|
149
151
|
});
|
|
150
152
|
};
|
|
@@ -161,10 +163,10 @@ const ie = (n, s) => {
|
|
|
161
163
|
disabled: s,
|
|
162
164
|
shouldCloseOnSelect: i,
|
|
163
165
|
fixedHeight: v,
|
|
164
|
-
locale:
|
|
166
|
+
locale: y,
|
|
165
167
|
showPopperArrow: !1,
|
|
166
168
|
dayClassName: k,
|
|
167
|
-
calendarClassName: _(
|
|
169
|
+
calendarClassName: _(p, "calendar"),
|
|
168
170
|
renderCustomHeader: (u) => /* @__PURE__ */ r(
|
|
169
171
|
z,
|
|
170
172
|
{
|
|
@@ -172,7 +174,7 @@ const ie = (n, s) => {
|
|
|
172
174
|
headerNodes: h,
|
|
173
175
|
customClassName: b,
|
|
174
176
|
yearsOptions: C,
|
|
175
|
-
locale:
|
|
177
|
+
locale: y
|
|
176
178
|
}
|
|
177
179
|
),
|
|
178
180
|
onChange: n,
|
|
@@ -189,6 +191,6 @@ const ie = (n, s) => {
|
|
|
189
191
|
);
|
|
190
192
|
};
|
|
191
193
|
export {
|
|
192
|
-
|
|
194
|
+
pe as D,
|
|
193
195
|
ie as r
|
|
194
196
|
};
|
package/dist/datePicker.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as t } from "./datePicker-
|
|
2
|
-
import { r as v } from "./datePicker-
|
|
1
|
+
import { D as t } from "./datePicker-f8747600.js";
|
|
2
|
+
import { r as v } from "./datePicker-f8747600.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-b001d791.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-f8747600.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";
|