@reportportal/ui-kit 0.0.1-alpha.40 → 0.0.1-alpha.42
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/calendar-f154eb78.js +6 -0
- package/dist/components/dataPicker2/dataPicker2/datePicker.d.ts +24 -0
- package/dist/components/dataPicker2/dataPicker2/header/datePickerHeader.d.ts +15 -0
- package/dist/components/dataPicker2/dataPicker2/header/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/index.d.ts +3 -0
- package/dist/components/dataPicker2/dataPicker2/utils.d.ts +3 -0
- package/dist/components/date2/date2.d.ts +24 -0
- package/dist/components/date2/index.d.ts +3 -0
- package/dist/components/datePicker1/datePicker.d.ts +24 -0
- package/dist/components/datePicker1/header/datePickerHeader.d.ts +15 -0
- package/dist/components/datePicker1/header/index.d.ts +3 -0
- package/dist/components/datePicker1/index.d.ts +3 -0
- package/dist/components/datePicker1/utils.d.ts +3 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/reactDatePicker/index.d.ts +3 -0
- package/dist/components/reactDatePicker/reactDatePicker.d.ts +2 -0
- package/dist/components/reactDatePicker2/index.d.ts +3 -0
- package/dist/components/reactDatePicker2/reactDatePicker2.d.ts +2 -0
- package/dist/date2-9273411e.js +46 -0
- package/dist/date2.js +7 -0
- package/dist/datePicker-a005ebc6.js +194 -0
- package/dist/datePicker-e85bee1d.js +194 -0
- package/dist/datePicker.js +2 -1
- package/dist/datePicker1.js +19 -0
- package/dist/index.js +47 -40
- package/dist/reactDatePicker2-a31b070e.js +5 -0
- package/dist/reactDatePicker2.js +6 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/datePicker-1b333ee2.js +0 -196
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import { jsxs as B, Fragment as U, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import $ from "react-datepicker";
|
|
3
|
-
import { c as P } from "./bind-06a7ff84.js";
|
|
4
|
-
import * as o from "react";
|
|
5
|
-
import { useMemo as F, useRef as D } from "react";
|
|
6
|
-
import { F as G } from "./fieldText-65e4c614.js";
|
|
7
|
-
import "./baseIconButton-b6adc843.js";
|
|
8
|
-
import { D as M } from "./dropdown-9f4d1928.js";
|
|
9
|
-
const R = (e) => /* @__PURE__ */ o.createElement("svg", { width: 8, height: 13, viewBox: "0 0 8 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ o.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.54134 12.2173C6.69755 12.3735 6.95081 12.3735 7.10702 12.2173L7.24844 12.0759C7.40465 11.9197 7.40465 11.6664 7.24844 11.5102L1.90539 6.16715L7.24844 0.824097C7.40465 0.667887 7.40465 0.41462 7.24844 0.258411L7.10702 0.116989C6.95081 -0.0392199 6.69755 -0.0392199 6.54134 0.116989L0.998591 5.65973L0.999562 5.6607L0.767094 5.89317C0.610884 6.04938 0.610884 6.30265 0.767093 6.45886L1.48425 7.17602L1.49215 7.16813L6.54134 12.2173Z", fill: "#C1C7D0" })), H = (e) => /* @__PURE__ */ o.createElement("svg", { width: 14, height: 15, viewBox: "0 0 14 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ o.createElement("rect", { x: 0.5, y: 1.5, width: 13, height: 13, rx: 1.5, stroke: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 9, width: 1, height: 3.00067, rx: 0.5, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 4, width: 1, height: 3.00067, rx: 0.5, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 14, y: 4, width: 1, height: 14, transform: "rotate(90 14 4)", fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 3, y: 10, width: 2, height: 2, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 6, y: 10, width: 2, height: 2, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 6, y: 7, width: 2, height: 2, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 3, y: 7, width: 2, height: 2, fill: "#A2AAB5" }), /* @__PURE__ */ o.createElement("rect", { x: 9, y: 7, width: 2, height: 2, fill: "#A2AAB5" })), V = (e, c = 20) => {
|
|
10
|
-
const i = e + c;
|
|
11
|
-
return new Array(i - e).fill(void 0).map((_, t) => e - t);
|
|
12
|
-
}, O = "_header_a3cjx_1", W = "_disabled_a3cjx_25", Z = "_dropdown_a3cjx_8", q = {
|
|
13
|
-
header: O,
|
|
14
|
-
"dropdowns-wrapper": "_dropdowns-wrapper_a3cjx_8",
|
|
15
|
-
"button-prev": "_button-prev_a3cjx_13",
|
|
16
|
-
"button-next": "_button-next_a3cjx_14",
|
|
17
|
-
disabled: W,
|
|
18
|
-
dropdown: Z,
|
|
19
|
-
"month-dropdown": "_month-dropdown_a3cjx_44",
|
|
20
|
-
"toggle-button": "_toggle-button_a3cjx_47"
|
|
21
|
-
}, l = P.bind(q), z = ({
|
|
22
|
-
date: e = /* @__PURE__ */ new Date(),
|
|
23
|
-
changeYear: c = () => {
|
|
24
|
-
},
|
|
25
|
-
changeMonth: i = () => {
|
|
26
|
-
},
|
|
27
|
-
decreaseMonth: _ = () => {
|
|
28
|
-
},
|
|
29
|
-
increaseMonth: t = () => {
|
|
30
|
-
},
|
|
31
|
-
prevMonthButtonDisabled: n = !1,
|
|
32
|
-
nextMonthButtonDisabled: w = !1,
|
|
33
|
-
headerNodes: A = null,
|
|
34
|
-
customClassName: f = "",
|
|
35
|
-
yearsOptions: m = [],
|
|
36
|
-
locale: v
|
|
37
|
-
}) => {
|
|
38
|
-
const h = e.getFullYear(), C = e.getMonth(), x = F(() => {
|
|
39
|
-
const a = Array(12).keys(), s = new Intl.DateTimeFormat(v, {
|
|
40
|
-
month: "long"
|
|
41
|
-
}), d = (p) => s.format(new Date(h, p));
|
|
42
|
-
return Array.from(a, d).reduce((p, b, N) => p.concat({
|
|
43
|
-
value: N,
|
|
44
|
-
label: b
|
|
45
|
-
}), []);
|
|
46
|
-
}, []), y = F(() => (m.length > 0 ? m : V(h)).reduce(
|
|
47
|
-
(s, d) => s.concat({ value: d, label: `${d}` }),
|
|
48
|
-
[]
|
|
49
|
-
), [m]), E = (a) => {
|
|
50
|
-
i(a);
|
|
51
|
-
}, j = (a) => {
|
|
52
|
-
c(a);
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ B(U, { children: [
|
|
55
|
-
A && /* @__PURE__ */ r("div", { className: l(f), children: A }),
|
|
56
|
-
/* @__PURE__ */ B("div", { className: l("header"), children: [
|
|
57
|
-
/* @__PURE__ */ r(
|
|
58
|
-
"button",
|
|
59
|
-
{
|
|
60
|
-
"aria-label": "Previous Months",
|
|
61
|
-
disabled: n,
|
|
62
|
-
onClick: _,
|
|
63
|
-
className: l("button-prev", { disabled: n }),
|
|
64
|
-
children: /* @__PURE__ */ r(R, {})
|
|
65
|
-
}
|
|
66
|
-
),
|
|
67
|
-
/* @__PURE__ */ B("div", { className: l("dropdowns-wrapper"), children: [
|
|
68
|
-
/* @__PURE__ */ r(
|
|
69
|
-
M,
|
|
70
|
-
{
|
|
71
|
-
options: x,
|
|
72
|
-
value: C,
|
|
73
|
-
onChange: E,
|
|
74
|
-
transparentBackground: !0,
|
|
75
|
-
className: l("dropdown", "month-dropdown"),
|
|
76
|
-
toggleButtonClassName: l("toggle-button")
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ r(
|
|
80
|
-
M,
|
|
81
|
-
{
|
|
82
|
-
options: y,
|
|
83
|
-
value: h,
|
|
84
|
-
onChange: j,
|
|
85
|
-
transparentBackground: !0,
|
|
86
|
-
className: l("dropdown"),
|
|
87
|
-
toggleButtonClassName: l("toggle-button")
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
] }),
|
|
91
|
-
/* @__PURE__ */ r(
|
|
92
|
-
"button",
|
|
93
|
-
{
|
|
94
|
-
"aria-label": "Next Months",
|
|
95
|
-
disabled: w,
|
|
96
|
-
onClick: t,
|
|
97
|
-
className: l("button-next", { disabled: w }),
|
|
98
|
-
children: /* @__PURE__ */ r(R, {})
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
] })
|
|
102
|
-
] });
|
|
103
|
-
}, J = "_calendar_1jr94_5", K = "_date_1jr94_90", Q = "_disabled_1jr94_202", X = "_popper_1jr94_210", ee = "_input_1jr94_214", te = {
|
|
104
|
-
calendar: J,
|
|
105
|
-
"current-date": "_current-date_1jr94_89",
|
|
106
|
-
date: K,
|
|
107
|
-
"selected-range": "_selected-range_1jr94_119",
|
|
108
|
-
"end-date": "_end-date_1jr94_119",
|
|
109
|
-
disabled: Q,
|
|
110
|
-
popper: X,
|
|
111
|
-
input: ee
|
|
112
|
-
}, g = P.bind(te), ne = "en", T = "MM-dd-yyyy", ie = ({
|
|
113
|
-
onChange: e = () => {
|
|
114
|
-
},
|
|
115
|
-
disabled: c = !1,
|
|
116
|
-
onBlur: i = () => {
|
|
117
|
-
},
|
|
118
|
-
onFocus: _ = () => {
|
|
119
|
-
},
|
|
120
|
-
endDate: t = void 0,
|
|
121
|
-
startDate: n = void 0,
|
|
122
|
-
headerNodes: w = null,
|
|
123
|
-
customClassName: A = "",
|
|
124
|
-
customTimeInput: f = void 0,
|
|
125
|
-
shouldCloseOnSelect: m = !0,
|
|
126
|
-
popperClassName: v = "",
|
|
127
|
-
calendarClassName: h = "",
|
|
128
|
-
fixedHeight: C = !1,
|
|
129
|
-
language: x = ne,
|
|
130
|
-
yearsOptions: y = [],
|
|
131
|
-
placeholder: E = T.toUpperCase(),
|
|
132
|
-
dateFormat: j = T,
|
|
133
|
-
selects: a = "start",
|
|
134
|
-
value: s = null
|
|
135
|
-
}) => {
|
|
136
|
-
const d = D(null), L = n == null ? void 0 : n.toDateString(), p = t == null ? void 0 : t.toDateString(), b = t && n && t > n, N = (u) => {
|
|
137
|
-
const S = u.toDateString(), Y = S === L, k = b && S === p, I = n && t && u > n && u < t;
|
|
138
|
-
return g("date", {
|
|
139
|
-
"current-date": Y,
|
|
140
|
-
"selected-range": I && !k,
|
|
141
|
-
"end-date": k && b,
|
|
142
|
-
disabled: c
|
|
143
|
-
});
|
|
144
|
-
};
|
|
145
|
-
return /* @__PURE__ */ r(
|
|
146
|
-
$,
|
|
147
|
-
{
|
|
148
|
-
customInput: /* @__PURE__ */ r(
|
|
149
|
-
G,
|
|
150
|
-
{
|
|
151
|
-
className: g("input"),
|
|
152
|
-
defaultWidth: !1,
|
|
153
|
-
endIcon: /* @__PURE__ */ r(H, {}),
|
|
154
|
-
ref: d
|
|
155
|
-
}
|
|
156
|
-
),
|
|
157
|
-
placeholderText: E,
|
|
158
|
-
selected: s,
|
|
159
|
-
startDate: n,
|
|
160
|
-
endDate: t,
|
|
161
|
-
minDate: a === "end" ? n : void 0,
|
|
162
|
-
disabled: c,
|
|
163
|
-
shouldCloseOnSelect: m,
|
|
164
|
-
fixedHeight: C,
|
|
165
|
-
locale: x,
|
|
166
|
-
showPopperArrow: !1,
|
|
167
|
-
dayClassName: N,
|
|
168
|
-
calendarClassName: g(h, "calendar"),
|
|
169
|
-
renderCustomHeader: (u) => /* @__PURE__ */ r(
|
|
170
|
-
z,
|
|
171
|
-
{
|
|
172
|
-
...u,
|
|
173
|
-
headerNodes: w,
|
|
174
|
-
customClassName: A,
|
|
175
|
-
yearsOptions: y,
|
|
176
|
-
locale: x
|
|
177
|
-
}
|
|
178
|
-
),
|
|
179
|
-
onChange: e,
|
|
180
|
-
onBlur: i,
|
|
181
|
-
onFocus: _,
|
|
182
|
-
customTimeInput: f,
|
|
183
|
-
showTimeInput: !!f,
|
|
184
|
-
popperClassName: g(v, "popper"),
|
|
185
|
-
dateFormat: j,
|
|
186
|
-
selectsStart: a === "start",
|
|
187
|
-
selectsEnd: a === "end",
|
|
188
|
-
className: g("datepicker")
|
|
189
|
-
}
|
|
190
|
-
);
|
|
191
|
-
};
|
|
192
|
-
export {
|
|
193
|
-
ie as D,
|
|
194
|
-
R as S,
|
|
195
|
-
H as a
|
|
196
|
-
};
|