@reportportal/ui-kit 0.0.1-alpha.134 → 0.0.1-alpha.135

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.
@@ -1,7 +1,7 @@
1
1
  import { FC, ReactNode, ReactElement } from 'react';
2
2
 
3
3
  interface DatePickerProps {
4
- onChange?: (date: Date | any) => void;
4
+ onChange?: (date: Date | null) => void;
5
5
  onBlur?: () => void;
6
6
  onFocus?: () => void;
7
7
  headerNodes?: ReactNode;
@@ -57,6 +57,8 @@ export interface TableComponentProps {
57
57
  isRowsExpandable?: boolean;
58
58
  expandedRowIds?: (string | number)[];
59
59
  setExpandedRowIds?: Dispatch<SetStateAction<Set<string | number>>>;
60
+ isAllExpandedByDefault?: boolean;
61
+ expandAllTooltip?: ReactNode;
60
62
  onChangeSorting?: (sortConfig?: SortConfig) => void;
61
63
  onToggleRowSelection?: (id: string | number) => void;
62
64
  onToggleAllRowsSelection?: () => void;
@@ -35,20 +35,20 @@ const ie = (n, s) => {
35
35
  headerNodes: b = null,
36
36
  customClassName: w = "",
37
37
  yearsOptions: p = [],
38
- locale: N
38
+ locale: y
39
39
  }) => {
40
- const l = n.getFullYear(), C = n.getMonth(), y = P(() => {
41
- const e = Array(12).keys(), c = new Intl.DateTimeFormat(N, {
40
+ const c = n.getFullYear(), C = n.getMonth(), f = P(() => {
41
+ const e = Array(12).keys(), l = new Intl.DateTimeFormat(y, {
42
42
  month: "long"
43
- }), d = (m) => c.format(new Date(l, m));
44
- return Array.from(e, d).reduce((m, f, x) => m.concat({
43
+ }), d = (m) => l.format(new Date(c, m));
44
+ return Array.from(e, d).reduce((m, N, x) => m.concat({
45
45
  value: x,
46
- label: f
46
+ label: N
47
47
  }), []);
48
- }, []), v = P(() => (p.length > 0 ? p : G(l)).reduce(
49
- (c, d) => c.concat({ value: d, label: `${d}` }),
48
+ }, [y, c]), v = P(() => (p.length > 0 ? p : G(c)).reduce(
49
+ (l, d) => l.concat({ value: d, label: `${d}` }),
50
50
  []
51
- ), [p, l]), A = (e) => {
51
+ ), [p, c]), A = (e) => {
52
52
  i(e);
53
53
  }, k = (e) => {
54
54
  s(e);
@@ -73,7 +73,7 @@ const ie = (n, s) => {
73
73
  /* @__PURE__ */ r(
74
74
  E,
75
75
  {
76
- options: y,
76
+ options: f,
77
77
  value: C,
78
78
  onChange: A,
79
79
  transparentBackground: !0,
@@ -85,7 +85,7 @@ const ie = (n, s) => {
85
85
  E,
86
86
  {
87
87
  options: v,
88
- value: l,
88
+ value: c,
89
89
  onChange: k,
90
90
  transparentBackground: !0,
91
91
  className: a("dropdown"),
@@ -131,22 +131,22 @@ const ie = (n, s) => {
131
131
  customClassName: b = "",
132
132
  customTimeInput: w = void 0,
133
133
  shouldCloseOnSelect: p = !0,
134
- popperClassName: N = "",
135
- calendarClassName: l = "",
134
+ popperClassName: y = "",
135
+ calendarClassName: c = "",
136
136
  fixedHeight: C = !1,
137
- language: y = te,
137
+ language: f = te,
138
138
  yearsOptions: v = [],
139
139
  placeholder: A = L.toUpperCase(),
140
140
  dateFormat: k = L,
141
141
  selects: e = "start",
142
- value: c = null
142
+ value: l = null
143
143
  }) => {
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
- const M = u.toDateString(), Y = M === S, q = f && M === m, U = o && t && u > o && u < t;
144
+ const d = D(null), S = o == null ? void 0 : o.toDateString(), m = t == null ? void 0 : t.toDateString(), N = t && o && t > o, x = (u) => {
145
+ const M = u.toDateString(), Y = M === S, q = N && M === m, U = o && t && u > o && u < t;
146
146
  return _("date", {
147
147
  "current-date": Y,
148
148
  "selected-range": U && !q,
149
- "end-date": q && f,
149
+ "end-date": q && N,
150
150
  disabled: s
151
151
  });
152
152
  };
@@ -155,16 +155,16 @@ const ie = (n, s) => {
155
155
  {
156
156
  customInput: /* @__PURE__ */ r(I, { className: _("input"), defaultWidth: !1, ref: d }),
157
157
  placeholderText: A,
158
- selected: c,
158
+ selected: l,
159
159
  startDate: o,
160
160
  endDate: t,
161
161
  disabled: s,
162
162
  shouldCloseOnSelect: p,
163
163
  fixedHeight: C,
164
- locale: y,
164
+ locale: f,
165
165
  showPopperArrow: !1,
166
166
  dayClassName: x,
167
- calendarClassName: _(l, "calendar"),
167
+ calendarClassName: _(c, "calendar"),
168
168
  renderCustomHeader: (u) => /* @__PURE__ */ r(
169
169
  z,
170
170
  {
@@ -172,7 +172,7 @@ const ie = (n, s) => {
172
172
  headerNodes: h,
173
173
  customClassName: b,
174
174
  yearsOptions: v,
175
- locale: y
175
+ locale: f
176
176
  }
177
177
  ),
178
178
  onChange: n,
@@ -180,7 +180,7 @@ const ie = (n, s) => {
180
180
  onFocus: g,
181
181
  customTimeInput: w,
182
182
  showTimeInput: !!w,
183
- popperClassName: _(N, "popper"),
183
+ popperClassName: _(y, "popper"),
184
184
  dateFormat: k,
185
185
  selectsStart: e === "start",
186
186
  selectsEnd: e === "end",
@@ -1,5 +1,5 @@
1
- import { D as t } from "./datePicker-5b3b45b6.js";
2
- import { r as z } from "./datePicker-5b3b45b6.js";
1
+ import { D as t } from "./datePicker-926c9cae.js";
2
+ import { r as z } from "./datePicker-926c9cae.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
@@ -4,7 +4,7 @@ import { B as D } from "./breadcrumbs-8e5ca8d7.js";
4
4
  import { B } from "./bubblesLoader-f3ffa240.js";
5
5
  import { B as b } from "./button-97d9e587.js";
6
6
  import { C as A } from "./checkbox-ed6cc375.js";
7
- import { D as M } from "./datePicker-5b3b45b6.js";
7
+ import { D as M } from "./datePicker-926c9cae.js";
8
8
  import "react-datepicker";
9
9
  import { D as k } from "./dropdown-360803d5.js";
10
10
  import { FieldLabel as L } from "./fieldLabel.js";
@@ -22,7 +22,7 @@ import { S as no } from "./selection-9124d029.js";
22
22
  import { S as ao } from "./spinLoader-c4a53718.js";
23
23
  import { SystemAlert as po } from "./systemAlert.js";
24
24
  import { S as mo } from "./systemMessage-924fdaa6.js";
25
- import { T as Io } from "./table-8e223d5d.js";
25
+ import { T as Io } from "./table-fc9f095d.js";
26
26
  import { T as xo } from "./themeProvider-46c2be7b.js";
27
27
  import { T as uo } from "./toggle-304107fa.js";
28
28
  import { Tooltip as Po } from "./tooltip.js";