@reportportal/ui-kit 0.0.1-alpha.171 → 0.0.1-alpha.173
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/bulkPanel.js +52 -51
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useEllipsisTitle.d.ts +6 -0
- package/dist/common/hooks.js +28 -26
- package/dist/components/filtersButton/filtersButton.d.ts +5 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/{datePicker-cde99de3.js → datePicker-76a82d23.js} +1 -1
- package/dist/datePicker.js +7 -4
- package/dist/{dropdown-7d024c49.js → dropdown-e853293f.js} +247 -257
- package/dist/dropdown.js +6 -3
- package/dist/filterItem.js +56 -63
- package/dist/filtersButton.js +71 -19
- package/dist/index.js +94 -92
- package/dist/modal.js +18 -17
- package/dist/sidePanel.js +15 -14
- package/dist/style.css +1 -1
- package/dist/useEllipsisTitle-462fa254.js +22 -0
- package/package.json +1 -1
package/dist/dropdown.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as r } from "./dropdown-
|
|
2
|
-
import { a as
|
|
1
|
+
import { D as r } from "./dropdown-e853293f.js";
|
|
2
|
+
import { a as E } from "./dropdown-e853293f.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react-dom";
|
|
@@ -16,9 +16,12 @@ import "./adaptiveTagList.js";
|
|
|
16
16
|
import "./button-97d9e587.js";
|
|
17
17
|
import "./close-4d480ef7.js";
|
|
18
18
|
import "./isEmpty-ccacb5ff.js";
|
|
19
|
+
import "react-dnd";
|
|
20
|
+
import "react-dnd-html5-backend";
|
|
21
|
+
import "./useEllipsisTitle-462fa254.js";
|
|
19
22
|
import "./checkbox-493fdc63.js";
|
|
20
23
|
export {
|
|
21
|
-
|
|
24
|
+
E as DROPDOWN_PORTAL_MENU_ATTR,
|
|
22
25
|
r as Dropdown,
|
|
23
26
|
r as default
|
|
24
27
|
};
|
package/dist/filterItem.js
CHANGED
|
@@ -1,89 +1,82 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as D, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as I, useCallback as i } from "react";
|
|
3
|
+
import { c as K } from "./bind-06a7ff84.js";
|
|
4
|
+
import "react-dnd";
|
|
5
|
+
import "react-dnd-html5-backend";
|
|
6
|
+
import { u as L } from "./useEllipsisTitle-462fa254.js";
|
|
7
|
+
import { A as M } from "./actionMenu-77a63b96.js";
|
|
5
8
|
import "./meatballMenu-535635a9.js";
|
|
6
9
|
import "./baseIconButton-251479f7.js";
|
|
7
10
|
import "./popover.js";
|
|
8
11
|
import "@floating-ui/react";
|
|
9
12
|
import "./floatingUi-41f8c7b5.js";
|
|
10
|
-
const
|
|
11
|
-
"filter-item": "_filter-
|
|
12
|
-
disabled:
|
|
13
|
-
selected:
|
|
14
|
-
"actions-button": "_actions-
|
|
15
|
-
"caption-wrapper": "_caption-
|
|
16
|
-
}, p =
|
|
13
|
+
const T = "_disabled_b9lbt_29", F = "_selected_b9lbt_32", W = {
|
|
14
|
+
"filter-item": "_filter-item_b9lbt_16",
|
|
15
|
+
disabled: T,
|
|
16
|
+
selected: F,
|
|
17
|
+
"actions-button": "_actions-button_b9lbt_37",
|
|
18
|
+
"caption-wrapper": "_caption-wrapper_b9lbt_58"
|
|
19
|
+
}, p = K.bind(W), Y = ({
|
|
17
20
|
id: e,
|
|
18
21
|
caption: f,
|
|
19
|
-
actions:
|
|
20
|
-
onClick:
|
|
21
|
-
onHover:
|
|
22
|
-
className:
|
|
23
|
-
captionClassName:
|
|
24
|
-
popoverClassName:
|
|
22
|
+
actions: u,
|
|
23
|
+
onClick: s,
|
|
24
|
+
onHover: r,
|
|
25
|
+
className: _,
|
|
26
|
+
captionClassName: b,
|
|
27
|
+
popoverClassName: h,
|
|
25
28
|
disabled: t = !1,
|
|
26
|
-
selected:
|
|
27
|
-
editMode:
|
|
29
|
+
selected: N = !1,
|
|
30
|
+
editMode: a = !1
|
|
28
31
|
}) => {
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
};
|
|
34
|
-
if (a(), typeof ResizeObserver < "u" && n.current) {
|
|
35
|
-
const c = new ResizeObserver(a);
|
|
36
|
-
return c.observe(n.current), () => c.disconnect();
|
|
37
|
-
}
|
|
38
|
-
}, [f]);
|
|
39
|
-
const y = o(
|
|
40
|
-
(a) => {
|
|
41
|
-
var i;
|
|
42
|
-
if (t || u)
|
|
32
|
+
const { ref: w, title: x } = L(f), o = I(null), g = i(
|
|
33
|
+
(n) => {
|
|
34
|
+
var m;
|
|
35
|
+
if (t || a)
|
|
43
36
|
return;
|
|
44
|
-
const c =
|
|
45
|
-
(
|
|
37
|
+
const c = n.target;
|
|
38
|
+
(m = o.current) != null && m.contains(c) || s == null || s(e);
|
|
46
39
|
},
|
|
47
|
-
[e,
|
|
48
|
-
),
|
|
49
|
-
(
|
|
40
|
+
[e, s, t, a]
|
|
41
|
+
), y = i(
|
|
42
|
+
(n) => {
|
|
50
43
|
var c;
|
|
51
|
-
if (
|
|
52
|
-
const
|
|
53
|
-
if ((c =
|
|
44
|
+
if (n.key === "Enter" && !t && !a) {
|
|
45
|
+
const m = n.target;
|
|
46
|
+
if ((c = o.current) != null && c.contains(m))
|
|
54
47
|
return;
|
|
55
|
-
|
|
48
|
+
s == null || s(e);
|
|
56
49
|
}
|
|
57
50
|
},
|
|
58
|
-
[e,
|
|
59
|
-
),
|
|
60
|
-
t ||
|
|
61
|
-
}, [e,
|
|
62
|
-
t ||
|
|
63
|
-
}, [e,
|
|
64
|
-
selected:
|
|
51
|
+
[e, s, t, a]
|
|
52
|
+
), E = i(() => {
|
|
53
|
+
t || r == null || r(e, !0);
|
|
54
|
+
}, [e, r, t]), R = i(() => {
|
|
55
|
+
t || r == null || r(e, !1);
|
|
56
|
+
}, [e, r, t]), j = p("filter-item", _, {
|
|
57
|
+
selected: N,
|
|
65
58
|
disabled: t
|
|
66
|
-
}),
|
|
67
|
-
return /* @__PURE__ */
|
|
59
|
+
}), A = p("caption-wrapper", b);
|
|
60
|
+
return /* @__PURE__ */ D(
|
|
68
61
|
"div",
|
|
69
62
|
{
|
|
70
|
-
className:
|
|
63
|
+
className: j,
|
|
71
64
|
"data-filter-item-container": !0,
|
|
72
|
-
onClick:
|
|
73
|
-
onKeyDown:
|
|
74
|
-
onMouseEnter:
|
|
75
|
-
onMouseLeave:
|
|
65
|
+
onClick: g,
|
|
66
|
+
onKeyDown: y,
|
|
67
|
+
onMouseEnter: E,
|
|
68
|
+
onMouseLeave: R,
|
|
76
69
|
role: "button",
|
|
77
70
|
tabIndex: t ? -1 : 0,
|
|
78
71
|
children: [
|
|
79
|
-
/* @__PURE__ */ l("div", { className:
|
|
80
|
-
/* @__PURE__ */ l("div", { ref:
|
|
81
|
-
|
|
72
|
+
/* @__PURE__ */ l("div", { className: A, ref: w, title: x, children: f }),
|
|
73
|
+
/* @__PURE__ */ l("div", { ref: o, children: /* @__PURE__ */ l(
|
|
74
|
+
M,
|
|
82
75
|
{
|
|
83
|
-
items:
|
|
84
|
-
disabled: t ||
|
|
76
|
+
items: u,
|
|
77
|
+
disabled: t || a,
|
|
85
78
|
buttonClassName: p("actions-button"),
|
|
86
|
-
popoverClassName:
|
|
79
|
+
popoverClassName: h,
|
|
87
80
|
placement: "bottom-start"
|
|
88
81
|
}
|
|
89
82
|
) })
|
|
@@ -92,5 +85,5 @@ const D = "_disabled_1of31_29", I = "_selected_1of31_32", K = {
|
|
|
92
85
|
);
|
|
93
86
|
};
|
|
94
87
|
export {
|
|
95
|
-
|
|
88
|
+
Y as FilterItem
|
|
96
89
|
};
|
package/dist/filtersButton.js
CHANGED
|
@@ -1,25 +1,77 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { c as
|
|
4
|
-
import { S as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"filters-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsxs as N, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as g } from "react";
|
|
3
|
+
import { c as S } from "./bind-06a7ff84.js";
|
|
4
|
+
import { S as y } from "./clear-53660571.js";
|
|
5
|
+
import { S as D, a as k } from "./filterOutline-819b4b0d.js";
|
|
6
|
+
import "react-dnd";
|
|
7
|
+
import "react-dnd-html5-backend";
|
|
8
|
+
import { u as x } from "./useEllipsisTitle-462fa254.js";
|
|
9
|
+
const F = "_opened_ntvuh_37", T = "_icon_ntvuh_98", j = "_disabled_ntvuh_115", E = {
|
|
10
|
+
"filters-icon-container": "_filters-icon-container_ntvuh_16",
|
|
11
|
+
"filter-icon": "_filter-icon_ntvuh_34",
|
|
12
|
+
opened: F,
|
|
13
|
+
"with-applied": "_with-applied_ntvuh_43",
|
|
14
|
+
"filters-count": "_filters-count_ntvuh_52",
|
|
15
|
+
"clear-wrapper": "_clear-wrapper_ntvuh_89",
|
|
16
|
+
icon: T,
|
|
17
|
+
"clear-icon": "_clear-icon_ntvuh_98",
|
|
18
|
+
disabled: j
|
|
19
|
+
}, n = S.bind(E), q = g(
|
|
20
|
+
({
|
|
21
|
+
appliedFiltersCount: l = 0,
|
|
22
|
+
isOpen: f = !1,
|
|
23
|
+
className: _,
|
|
24
|
+
type: d = "button",
|
|
25
|
+
text: r,
|
|
26
|
+
filtersLabelClassName: c,
|
|
27
|
+
clearable: u = !1,
|
|
28
|
+
onClear: i,
|
|
29
|
+
clearButtonAriaLabel: m = "Clear filters",
|
|
30
|
+
...h
|
|
31
|
+
}, v) => {
|
|
32
|
+
const o = l > 0, s = r !== void 0 && r !== "", b = s ? r : o ? l : void 0, { ref: a, title: p } = x(b), w = n("filters-icon-container", _, {
|
|
33
|
+
"with-applied": o || s,
|
|
34
|
+
opened: f
|
|
16
35
|
});
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */ e("span", { className:
|
|
19
|
-
|
|
36
|
+
return /* @__PURE__ */ N("button", { type: d, className: w, ref: v, ...h, children: [
|
|
37
|
+
/* @__PURE__ */ e("span", { className: n("filter-icon"), children: o || s ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(k, {}) }),
|
|
38
|
+
s ? /* @__PURE__ */ e(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
ref: a,
|
|
42
|
+
title: p,
|
|
43
|
+
className: n("filters-count", c),
|
|
44
|
+
children: r
|
|
45
|
+
}
|
|
46
|
+
) : o ? /* @__PURE__ */ e(
|
|
47
|
+
"span",
|
|
48
|
+
{
|
|
49
|
+
ref: a,
|
|
50
|
+
title: p,
|
|
51
|
+
className: n("filters-count", c),
|
|
52
|
+
children: l
|
|
53
|
+
}
|
|
54
|
+
) : null,
|
|
55
|
+
u && (o || s) && /* @__PURE__ */ e("div", { className: n("clear-wrapper"), children: /* @__PURE__ */ e(
|
|
56
|
+
"span",
|
|
57
|
+
{
|
|
58
|
+
role: "button",
|
|
59
|
+
tabIndex: 0,
|
|
60
|
+
"aria-label": m,
|
|
61
|
+
className: n("clear-icon"),
|
|
62
|
+
onClick: (t) => {
|
|
63
|
+
t.stopPropagation(), i == null || i();
|
|
64
|
+
},
|
|
65
|
+
onKeyDown: (t) => {
|
|
66
|
+
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), i == null || i());
|
|
67
|
+
},
|
|
68
|
+
onMouseDown: (t) => t.preventDefault(),
|
|
69
|
+
children: /* @__PURE__ */ e(y, {})
|
|
70
|
+
}
|
|
71
|
+
) })
|
|
20
72
|
] });
|
|
21
73
|
}
|
|
22
74
|
);
|
|
23
75
|
export {
|
|
24
|
-
|
|
76
|
+
q as FiltersButton
|
|
25
77
|
};
|
package/dist/index.js
CHANGED
|
@@ -9,13 +9,13 @@ import { BulkPanel as J } from "./bulkPanel.js";
|
|
|
9
9
|
import { B as _ } from "./button-97d9e587.js";
|
|
10
10
|
import { C as W } from "./checkbox-493fdc63.js";
|
|
11
11
|
import { Chip as j } from "./chip.js";
|
|
12
|
-
import { D as K } from "./datePicker-
|
|
12
|
+
import { D as K } from "./datePicker-76a82d23.js";
|
|
13
13
|
import "react-datepicker";
|
|
14
|
-
import { D as Y } from "./dropdown-
|
|
14
|
+
import { D as Y } from "./dropdown-e853293f.js";
|
|
15
15
|
import { FieldLabel as $ } from "./fieldLabel.js";
|
|
16
16
|
import { F as ro } from "./fieldNumber-d1b5a7a1.js";
|
|
17
17
|
import { F as to } from "./fieldText-1749da7a.js";
|
|
18
|
-
import { F as
|
|
18
|
+
import { F as no } from "./fieldTextFlex-2f51c173.js";
|
|
19
19
|
import { FileDropArea as mo } from "./fileDropArea.js";
|
|
20
20
|
import { FiltersButton as co } from "./filtersButton.js";
|
|
21
21
|
import { FilterItem as Io } from "./filterItem.js";
|
|
@@ -23,7 +23,7 @@ import { IssueList as xo } from "./issueList.js";
|
|
|
23
23
|
import { Modal as uo } from "./modal.js";
|
|
24
24
|
import { MultipleAutocomplete as Co, SingleAutocomplete as Po } from "./autocompletes.js";
|
|
25
25
|
import { P as Fo } from "./pagination-4ded0ec6.js";
|
|
26
|
-
import { Popover as
|
|
26
|
+
import { Popover as Do } from "./popover.js";
|
|
27
27
|
import { R as bo } from "./radio-62546efa.js";
|
|
28
28
|
import { SegmentedControl as Bo } from "./segmentedControl.js";
|
|
29
29
|
import { S as Mo } from "./selection-9124d029.js";
|
|
@@ -40,23 +40,24 @@ import "react";
|
|
|
40
40
|
import "react-dnd";
|
|
41
41
|
import "react-dnd-html5-backend";
|
|
42
42
|
import { useTreeDropValidation as $o } from "./common/hooks.js";
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import { S as Xr } from "./
|
|
46
|
-
import { S as qr } from "./
|
|
47
|
-
import { S as Qr } from "./
|
|
48
|
-
import { S as Zr
|
|
49
|
-
import { S as re } from "./
|
|
50
|
-
import { S as te
|
|
51
|
-
import { S as Ie } from "./
|
|
52
|
-
import { S as xe
|
|
53
|
-
import { S as
|
|
54
|
-
import { S as ge } from "./
|
|
55
|
-
import { S as
|
|
56
|
-
import { S as Ae } from "./
|
|
57
|
-
import { S as ye
|
|
58
|
-
import { S as Me } from "./
|
|
59
|
-
import { S as Le } from "./
|
|
43
|
+
import { u as rr } from "./useEllipsisTitle-462fa254.js";
|
|
44
|
+
import { AddCsvIcon as tr, AddImageIcon as ar, AddJarIcon as nr, BreadcrumbsTreeIcon as pr, CalendarIcon as mr, CheckmarkIcon as ir, ChevronRightBreadcrumbsIcon as cr, ConfigurationIcon as sr, CopyIcon as Ir, CoverageFullIcon as lr, CoveragePartialIcon as xr, CoveredManuallyIcon as fr, DeleteIcon as dr, DragAndDropIcon as ur, DragNDropIcon as Sr, DurationIcon as Cr, EditIcon as Pr, ExportIcon as gr, FlagIcon as Fr, GroupByIcon as Tr, HideIcon as Dr, LaunchTypeIcon as Ar, MaximizeIcon as br, MoveToFolderIcon as yr, PinFilledIcon as Br, PinOutlineIcon as hr, PriorityBlockerIcon as Mr, PriorityCriticalIcon as vr, PriorityHighIcon as Lr, PriorityLowIcon as wr, PriorityMediumIcon as Er, PriorityUnspecifiedIcon as Rr, RefreshIcon as kr, RerunIcon as Or, RunManualIcon as Nr, SearchIcon as Ur, SortIcon as zr, StatusSuccessIcon as Hr, TestPlanIcon as Jr, UserIcon as Vr } from "./icons.js";
|
|
45
|
+
import { S as Gr, a as Wr, b as Xr } from "./resizeColumn-46b5b30f.js";
|
|
46
|
+
import { S as qr } from "./calendarArrow-44c7e60e.js";
|
|
47
|
+
import { S as Qr } from "./chevronDownDropdown-0260bb66.js";
|
|
48
|
+
import { S as Zr } from "./clear-53660571.js";
|
|
49
|
+
import { S as oe, a as re } from "./openEye-950159cb.js";
|
|
50
|
+
import { S as te } from "./close-4d480ef7.js";
|
|
51
|
+
import { S as ne, a as pe, b as me, c as ie, d as ce, e as se, f as Ie } from "./xls-995781cc.js";
|
|
52
|
+
import { S as xe } from "./dropdown-0260bb66.js";
|
|
53
|
+
import { S as de, a as ue, b as Se } from "./success-8fd8bd2c.js";
|
|
54
|
+
import { S as Pe, a as ge } from "./filterOutline-819b4b0d.js";
|
|
55
|
+
import { S as Te } from "./meatballMenu-535635a9.js";
|
|
56
|
+
import { S as Ae } from "./minus-2857540f.js";
|
|
57
|
+
import { S as ye } from "./plus-199fb2a8.js";
|
|
58
|
+
import { S as he, a as Me } from "./prevPage-87faf576.js";
|
|
59
|
+
import { S as Le } from "./tree-e7a0ef42.js";
|
|
60
|
+
import { S as Ee } from "./warning-537ead32.js";
|
|
60
61
|
import "react/jsx-runtime";
|
|
61
62
|
import "./bind-06a7ff84.js";
|
|
62
63
|
import "./isEmpty-ccacb5ff.js";
|
|
@@ -82,113 +83,114 @@ export {
|
|
|
82
83
|
h as ActionMenu,
|
|
83
84
|
M as ActionMenuItem,
|
|
84
85
|
y as AdaptiveTagList,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
tr as AddCsvIcon,
|
|
87
|
+
ar as AddImageIcon,
|
|
88
|
+
nr as AddJarIcon,
|
|
89
|
+
Gr as ArrowDownIcon,
|
|
90
|
+
Wr as ArrowUpIcon,
|
|
90
91
|
E as AttachedFile,
|
|
91
92
|
k as BaseIconButton,
|
|
92
93
|
N as Breadcrumbs,
|
|
93
|
-
|
|
94
|
+
pr as BreadcrumbsTreeIcon,
|
|
94
95
|
z as BubblesLoader,
|
|
95
96
|
J as BulkPanel,
|
|
96
97
|
_ as Button,
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
qr as CalendarArrowIcon,
|
|
99
|
+
mr as CalendarIcon,
|
|
99
100
|
W as Checkbox,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
ir as CheckmarkIcon,
|
|
102
|
+
Qr as ChevronDownDropdownIcon,
|
|
103
|
+
cr as ChevronRightBreadcrumbsIcon,
|
|
103
104
|
j as Chip,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
Zr as ClearIcon,
|
|
106
|
+
oe as CloseEyeIcon,
|
|
107
|
+
te as CloseIcon,
|
|
108
|
+
sr as ConfigurationIcon,
|
|
109
|
+
Ir as CopyIcon,
|
|
110
|
+
lr as CoverageFullIcon,
|
|
111
|
+
xr as CoveragePartialIcon,
|
|
112
|
+
fr as CoveredManuallyIcon,
|
|
113
|
+
ne as CsvIcon,
|
|
113
114
|
K as DatePicker,
|
|
114
|
-
|
|
115
|
-
|
|
115
|
+
dr as DeleteIcon,
|
|
116
|
+
ur as DragAndDropIcon,
|
|
116
117
|
No as DragLayer,
|
|
117
|
-
|
|
118
|
+
Sr as DragNDropIcon,
|
|
118
119
|
Y as Dropdown,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
xe as DropdownIcon,
|
|
121
|
+
Cr as DurationIcon,
|
|
122
|
+
Pr as EditIcon,
|
|
123
|
+
de as ErrorIcon,
|
|
124
|
+
gr as ExportIcon,
|
|
125
|
+
pe as ExternalLinkIcon,
|
|
125
126
|
$ as FieldLabel,
|
|
126
127
|
ro as FieldNumber,
|
|
127
128
|
to as FieldText,
|
|
128
|
-
|
|
129
|
+
no as FieldTextFlex,
|
|
129
130
|
mo as FileDropArea,
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
me as FileOtherIcon,
|
|
132
|
+
Pe as FilterFilledIcon,
|
|
132
133
|
Io as FilterItem,
|
|
133
|
-
|
|
134
|
+
ge as FilterOutlineIcon,
|
|
134
135
|
co as FiltersButton,
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
136
|
+
Fr as FlagIcon,
|
|
137
|
+
Tr as GroupByIcon,
|
|
138
|
+
Dr as HideIcon,
|
|
139
|
+
ie as ImageIcon,
|
|
140
|
+
ue as InfoIcon,
|
|
140
141
|
xo as IssueList,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
ce as JarIcon,
|
|
143
|
+
Ar as LaunchTypeIcon,
|
|
144
|
+
br as MaximizeIcon,
|
|
145
|
+
Te as MeatballMenuIcon,
|
|
146
|
+
Ae as MinusIcon,
|
|
146
147
|
uo as Modal,
|
|
147
|
-
|
|
148
|
+
yr as MoveToFolderIcon,
|
|
148
149
|
Co as MultipleAutocomplete,
|
|
149
|
-
|
|
150
|
+
re as OpenEyeIcon,
|
|
150
151
|
Fo as Pagination,
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
152
|
+
se as PdfIcon,
|
|
153
|
+
Br as PinFilledIcon,
|
|
154
|
+
hr as PinOutlineIcon,
|
|
155
|
+
ye as PlusIcon,
|
|
156
|
+
Do as Popover,
|
|
157
|
+
he as PrevChapterIcon,
|
|
158
|
+
Me as PrevPageIcon,
|
|
159
|
+
Mr as PriorityBlockerIcon,
|
|
160
|
+
vr as PriorityCriticalIcon,
|
|
161
|
+
Lr as PriorityHighIcon,
|
|
162
|
+
wr as PriorityLowIcon,
|
|
163
|
+
Er as PriorityMediumIcon,
|
|
164
|
+
Rr as PriorityUnspecifiedIcon,
|
|
164
165
|
bo as Radio,
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
kr as RefreshIcon,
|
|
167
|
+
Or as RerunIcon,
|
|
168
|
+
Xr as ResizeColumnIcon,
|
|
169
|
+
Nr as RunManualIcon,
|
|
170
|
+
Ur as SearchIcon,
|
|
170
171
|
Bo as SegmentedControl,
|
|
171
172
|
Mo as Selection,
|
|
172
173
|
Yo as SidePanel,
|
|
173
174
|
Po as SingleAutocomplete,
|
|
174
|
-
|
|
175
|
+
zr as SortIcon,
|
|
175
176
|
Uo as SortableItem,
|
|
176
177
|
zo as SortableList,
|
|
177
178
|
Lo as SpinLoader,
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
Hr as StatusSuccessIcon,
|
|
180
|
+
Se as SuccessIcon,
|
|
180
181
|
Eo as SystemAlert,
|
|
181
182
|
ko as SystemMessage,
|
|
182
183
|
_o as Table,
|
|
183
|
-
|
|
184
|
+
Jr as TestPlanIcon,
|
|
184
185
|
Wo as ThemeProvider,
|
|
185
186
|
jo as Toggle,
|
|
186
187
|
Ko as Tooltip,
|
|
187
|
-
|
|
188
|
+
Le as TreeIcon,
|
|
188
189
|
Ho as TreeSortableContainer,
|
|
189
190
|
Jo as TreeSortableItem,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
191
|
+
Vr as UserIcon,
|
|
192
|
+
Ee as WarningIcon,
|
|
193
|
+
Ie as XlsIcon,
|
|
194
|
+
rr as useEllipsisTitle,
|
|
193
195
|
$o as useTreeDropValidation
|
|
194
196
|
};
|
package/dist/modal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as c, Fragment as F } from "react/jsx-runtime";
|
|
2
2
|
import { useState as v, useRef as G, useEffect as x, useMemo as K } from "react";
|
|
3
3
|
import { Scrollbars as U } from "rc-scrollbars";
|
|
4
4
|
import { AnimatePresence as Y, motion as X } from "framer-motion";
|
|
@@ -7,7 +7,7 @@ import { u as q } from "./useOnClickOutside-8f7d68a1.js";
|
|
|
7
7
|
import "react-dnd";
|
|
8
8
|
import "react-dnd-html5-backend";
|
|
9
9
|
import { u as J } from "./useWindowResize-a7e1ac92.js";
|
|
10
|
-
import { a as Q } from "./dropdown-
|
|
10
|
+
import { a as Q } from "./dropdown-e853293f.js";
|
|
11
11
|
import { K as V } from "./keyCodes-f63c0e11.js";
|
|
12
12
|
import { B as A } from "./button-97d9e587.js";
|
|
13
13
|
import { Tooltip as Z } from "./tooltip.js";
|
|
@@ -21,6 +21,7 @@ import "./dropdown-0260bb66.js";
|
|
|
21
21
|
import "./fieldLabel.js";
|
|
22
22
|
import "./adaptiveTagList.js";
|
|
23
23
|
import "./isEmpty-ccacb5ff.js";
|
|
24
|
+
import "./useEllipsisTitle-462fa254.js";
|
|
24
25
|
import "./checkbox-493fdc63.js";
|
|
25
26
|
import "@floating-ui/react";
|
|
26
27
|
import "./floatingUi-41f8c7b5.js";
|
|
@@ -43,9 +44,9 @@ const eo = {
|
|
|
43
44
|
const m = /* @__PURE__ */ o(A, { adjustWidthOn: l === "small" ? "parent" : "min-width", ...d });
|
|
44
45
|
return u ? /* @__PURE__ */ o(Z, { content: u, placement: "top", width: 270, children: m }) : m;
|
|
45
46
|
};
|
|
46
|
-
return /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ c("div", { className: h("modal-footer", { "with-extra-node": e, [`size-${l}`]: l }), children: [
|
|
47
48
|
e && e,
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ c("div", { className: h("buttons-block"), children: [
|
|
49
50
|
p && /* @__PURE__ */ o("div", { className: h("button-container"), children: /* @__PURE__ */ o(
|
|
50
51
|
A,
|
|
51
52
|
{
|
|
@@ -64,22 +65,22 @@ const eo = {
|
|
|
64
65
|
"modal-header-content": "_modal-header-content_w4aaf_14",
|
|
65
66
|
"modal-title": "_modal-title_w4aaf_20",
|
|
66
67
|
"close-modal-icon": "_close-modal-icon_w4aaf_29"
|
|
67
|
-
}, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */
|
|
68
|
+
}, f = w.bind(so), io = ({ title: e, onClose: n, withDescription: a = !1 }) => /* @__PURE__ */ c("div", { className: f("modal-header", { "width-description": a }), children: [
|
|
68
69
|
/* @__PURE__ */ o("div", { className: f("modal-header-content"), children: e && /* @__PURE__ */ o("div", { className: f("modal-title"), children: e }) }),
|
|
69
70
|
/* @__PURE__ */ o(oo, { className: f("close-modal-icon"), onClick: n, children: /* @__PURE__ */ o(to, {}) })
|
|
70
|
-
] }),
|
|
71
|
-
modal:
|
|
71
|
+
] }), ro = "_modal_35896_1", co = "_description_35896_43", mo = {
|
|
72
|
+
modal: ro,
|
|
72
73
|
"overlay-default": "_overlay-default_35896_12",
|
|
73
74
|
"overlay-light-cyan": "_overlay-light-cyan_35896_16",
|
|
74
75
|
"scrolling-content": "_scrolling-content_35896_20",
|
|
75
76
|
"modal-window": "_modal-window_35896_26",
|
|
76
|
-
description:
|
|
77
|
+
description: co,
|
|
77
78
|
"scrollable-wrapper": "_scrollable-wrapper_35896_54",
|
|
78
79
|
"scrollable-content": "_scrollable-content_35896_58",
|
|
79
80
|
"size-default": "_size-default_35896_62",
|
|
80
81
|
"size-small": "_size-small_35896_74",
|
|
81
82
|
"size-large": "_size-large_35896_86"
|
|
82
|
-
},
|
|
83
|
+
}, r = w.bind(mo), _o = 0.9, po = 32 + 24, uo = 32 + 8, ho = 36 + 16, fo = 32 * 2, Go = ({
|
|
83
84
|
title: e,
|
|
84
85
|
children: n,
|
|
85
86
|
footerNode: a,
|
|
@@ -121,10 +122,10 @@ const eo = {
|
|
|
121
122
|
}),
|
|
122
123
|
[]
|
|
123
124
|
);
|
|
124
|
-
return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className:
|
|
125
|
+
return q(i, C ? _ : void 0, B), /* @__PURE__ */ o(Y, { onExitComplete: g, children: I && /* @__PURE__ */ o("div", { className: r("modal", { [`overlay-${m}`]: m }), style: { zIndex: D }, children: /* @__PURE__ */ c(
|
|
125
126
|
X.div,
|
|
126
127
|
{
|
|
127
|
-
className:
|
|
128
|
+
className: r("modal-window", { [`size-${d}`]: d }, u),
|
|
128
129
|
ref: i,
|
|
129
130
|
tabIndex: 0,
|
|
130
131
|
initial: { opacity: 0, marginTop: -b },
|
|
@@ -134,19 +135,19 @@ const eo = {
|
|
|
134
135
|
onAnimationStart: W,
|
|
135
136
|
children: [
|
|
136
137
|
/* @__PURE__ */ o(io, { title: e, onClose: _, withDescription: !!s }),
|
|
137
|
-
k ? /* @__PURE__ */ o("div", { className:
|
|
138
|
+
k ? /* @__PURE__ */ o("div", { className: r("scrollable-wrapper"), children: /* @__PURE__ */ o(
|
|
138
139
|
U,
|
|
139
140
|
{
|
|
140
141
|
autoHeight: !0,
|
|
141
142
|
autoHeightMax: P(),
|
|
142
143
|
hideTracksWhenNotNeeded: !0,
|
|
143
|
-
children: /* @__PURE__ */
|
|
144
|
-
s && /* @__PURE__ */ o("span", { className:
|
|
144
|
+
children: /* @__PURE__ */ c("div", { className: r("scrollable-content"), children: [
|
|
145
|
+
s && /* @__PURE__ */ o("span", { className: r("description"), children: s }),
|
|
145
146
|
/* @__PURE__ */ o(T, { children: n })
|
|
146
147
|
] })
|
|
147
148
|
}
|
|
148
|
-
) }) : /* @__PURE__ */
|
|
149
|
-
s && /* @__PURE__ */ o("span", { className:
|
|
149
|
+
) }) : /* @__PURE__ */ c(F, { children: [
|
|
150
|
+
s && /* @__PURE__ */ o("span", { className: r("description"), children: s }),
|
|
150
151
|
/* @__PURE__ */ o(T, { children: n })
|
|
151
152
|
] }),
|
|
152
153
|
!y && (N ? N(_) : /* @__PURE__ */ o(
|
|
@@ -165,7 +166,7 @@ const eo = {
|
|
|
165
166
|
) }) });
|
|
166
167
|
};
|
|
167
168
|
export {
|
|
168
|
-
|
|
169
|
+
Go as Modal,
|
|
169
170
|
T as ModalContent,
|
|
170
171
|
lo as ModalFooter,
|
|
171
172
|
io as ModalHeader
|