linear-react-components-ui 1.1.26-beta.5 → 1.1.26-beta.6
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/lib/alerts/AlertProvider.js +2 -2
- package/lib/alerts/BaseAlert.js +8 -8
- package/lib/alerts/Message.js +1 -1
- package/lib/alerts/withAlert.js +1 -1
- package/lib/assets/BaseAlert.css +1 -1
- package/lib/assets/Content.css +1 -1
- package/lib/assets/DefaultFile.css +1 -1
- package/lib/assets/Drawer.css +1 -1
- package/lib/assets/index11.css +1 -1
- package/lib/assets/index5.css +1 -1
- package/lib/avatar/index.js +1 -1
- package/lib/badge/index.js +1 -1
- package/lib/buttons/ActivateButton.js +1 -1
- package/lib/buttons/AddButton.js +1 -1
- package/lib/buttons/Button.js +1 -1
- package/lib/buttons/ButtonGroups.js +1 -1
- package/lib/buttons/CancelButton.js +1 -1
- package/lib/buttons/DangerButton.js +1 -1
- package/lib/buttons/DefaultButton.js +70 -71
- package/lib/buttons/DestroyButton.js +1 -1
- package/lib/buttons/EditButton.js +1 -1
- package/lib/buttons/InactivateButton.js +1 -1
- package/lib/buttons/InfoButton.js +1 -1
- package/lib/buttons/PrimaryButton.js +1 -1
- package/lib/buttons/RestoreButton.js +1 -1
- package/lib/buttons/SaveButton.js +1 -1
- package/lib/buttons/SuccessButton.js +1 -1
- package/lib/buttons/WarningButton.js +1 -1
- package/lib/buttons/button_container/index.js +1 -1
- package/lib/buttons/split_button/index.js +1 -1
- package/lib/calendar/DangerCalendar.js +1 -1
- package/lib/calendar/InfoCalendar.js +1 -1
- package/lib/calendar/PrimaryCalendar.js +1 -1
- package/lib/calendar/SuccessCalendar.js +1 -1
- package/lib/calendar/WarningCalendar.js +1 -1
- package/lib/calendar/base/Day.js +2 -2
- package/lib/calendar/base/Month.js +1 -1
- package/lib/calendar/base/Week.js +1 -1
- package/lib/calendar/base/helpers.js +1 -1
- package/lib/calendar/base/index.js +64 -66
- package/lib/checkbox/index.js +4 -4
- package/lib/chunks/index.CM1aLH2W.js +205 -0
- package/lib/chunks/{index.CBPsbBt0.js → index.Df3kt2LQ.js} +3 -3
- package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
- package/lib/chunks/{lodash.C68pWaTB.js → lodash.CIAK_hAg.js} +433 -433
- package/lib/chunks/{moment.CwOqp704.js → moment.DMLRxgRE.js} +8 -8
- package/lib/chunks/{tabs.CM2We4tV.js → tabs.D0L_nVfP.js} +95 -96
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +1 -1
- package/lib/dialog/Custom.js +3 -3
- package/lib/dialog/Error.js +1 -1
- package/lib/dialog/Information.js +1 -1
- package/lib/dialog/Question.js +36 -39
- package/lib/dialog/Warning.js +1 -1
- package/lib/dialog/base/Content.js +1 -1
- package/lib/dialog/base/Footer.js +1 -1
- package/lib/dialog/base/Header.js +2 -2
- package/lib/dialog/base/index.js +2 -2
- package/lib/dialog/form/index.js +2 -2
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +4 -4
- package/lib/dialog/wizard/progressbar.js +87 -3
- package/lib/dialog/wizard/step.js +2 -2
- package/lib/drawer/Content.js +1 -1
- package/lib/drawer/Drawer.js +19 -19
- package/lib/drawer/Header.js +1 -1
- package/lib/dropdown/Popup.js +1 -1
- package/lib/dropdown/withDropdown.js +31 -31
- package/lib/fieldset/index.js +1 -1
- package/lib/form/Field.js +2 -2
- package/lib/form/FieldArray.js +2 -2
- package/lib/form/FieldNumber.js +27 -27
- package/lib/form/FieldPeriod.js +2 -2
- package/lib/form/helpers.js +1 -1
- package/lib/form/index.js +49 -49
- package/lib/form/withFieldHOC.js +1 -1
- package/lib/form/withFormSecurity.js +1 -1
- package/lib/gridlayout/GridCol.js +1 -1
- package/lib/gridlayout/GridRow.js +1 -1
- package/lib/hint/helpers.js +1 -1
- package/lib/hint/index.js +1 -1
- package/lib/icons/index.js +51 -54
- package/lib/index.js +2 -2
- package/lib/inputs/base/InputTextBase.js +112 -114
- package/lib/inputs/base/Label.js +1 -1
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +1 -1
- package/lib/inputs/color/index.js +2 -2
- package/lib/inputs/date/Dialog.js +2 -2
- package/lib/inputs/date/Dropdown.js +10 -14
- package/lib/inputs/date/helpers.js +1 -1
- package/lib/inputs/date/index.js +102 -114
- package/lib/inputs/errorMessage/index.js +1 -1
- package/lib/inputs/file/DefaultFile.js +43 -44
- package/lib/inputs/file/DragDropFile.js +91 -93
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +33 -34
- package/lib/inputs/file/FileButtonSettings.js +1 -1
- package/lib/inputs/inputHOC.js +1 -1
- package/lib/inputs/mask/BaseMask.js +8 -8
- package/lib/inputs/mask/Cnpj.js +2 -2
- package/lib/inputs/mask/Cpf.js +2 -2
- package/lib/inputs/mask/Phone.js +1 -1
- package/lib/inputs/mask/ZipCode.js +1 -1
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +1 -1
- package/lib/inputs/multiSelect/ActionButtons.js +2 -2
- package/lib/inputs/multiSelect/Dropdown.js +63 -64
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +45 -47
- package/lib/inputs/number/BaseNumber.js +1 -1
- package/lib/inputs/number/Currency.js +1 -1
- package/lib/inputs/number/Decimal.js +1 -1
- package/lib/inputs/number/index.js +10 -10
- package/lib/inputs/period/Dialog.js +2 -2
- package/lib/inputs/period/Dropdown.js +10 -15
- package/lib/inputs/period/PeriodList.js +1 -1
- package/lib/inputs/period/helper.js +1 -1
- package/lib/inputs/period/index.js +207 -223
- package/lib/inputs/search/index.js +29 -29
- package/lib/inputs/select/ActionButtons.js +1 -1
- package/lib/inputs/select/Dropdown.js +53 -53
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +39 -45
- package/lib/inputs/select/index.js +1 -1
- package/lib/inputs/select/multiple/Selecteds.js +1 -1
- package/lib/inputs/select/multiple/index.js +139 -143
- package/lib/inputs/select/simple/index.js +157 -164
- package/lib/inputs/text/index.js +1 -1
- package/lib/inputs/textarea/index.js +1 -1
- package/lib/internals/withTooltip.js +1 -1
- package/lib/labelMessages/index.js +1 -1
- package/lib/labels/DangerLabel.js +1 -1
- package/lib/labels/DefaultLabel.js +1 -1
- package/lib/labels/InfoLabel.js +1 -1
- package/lib/labels/PrimaryLabel.js +1 -1
- package/lib/labels/SuccessLabel.js +1 -1
- package/lib/labels/WarningLabel.js +1 -1
- package/lib/labels/label_container/index.js +1 -1
- package/lib/list/Header.js +1 -1
- package/lib/list/Item.js +2 -2
- package/lib/list/Separator.js +1 -1
- package/lib/list/index.js +2 -2
- package/lib/menus/float/MenuItem.js +18 -18
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +2 -2
- package/lib/menus/sidenav/ExpandMenu.js +1 -1
- package/lib/menus/sidenav/MenuLink.js +1 -1
- package/lib/menus/sidenav/NavMenuGroup.js +1 -1
- package/lib/menus/sidenav/NavMenuItem.js +54 -56
- package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
- package/lib/menus/sidenav/index.js +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
- package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
- package/lib/noPermission/index.js +1 -1
- package/lib/panel/Content.js +30 -31
- package/lib/panel/DangerPanel.js +1 -1
- package/lib/panel/Default.js +1 -1
- package/lib/panel/Header.js +1 -1
- package/lib/panel/InfoPanel.js +1 -1
- package/lib/panel/PrimaryPanel.js +1 -1
- package/lib/panel/SuccessPanel.js +1 -1
- package/lib/panel/ToolBar.js +1 -1
- package/lib/panel/WarningPanel.js +1 -1
- package/lib/permissionValidations.js +11 -11
- package/lib/popover/PopoverText.js +1 -1
- package/lib/popover/PopoverTitle.js +1 -1
- package/lib/popover/index.js +1 -1
- package/lib/progress/Bar.js +1 -1
- package/lib/progress/index.js +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/shortcuts/index.js +1 -1
- package/lib/skeleton/SkeletonContainer.js +1 -1
- package/lib/skeleton/index.js +1 -1
- package/lib/spinner/SpinnerLoading.js +1 -1
- package/lib/spinner/index.js +1 -1
- package/lib/split/Split.js +1 -1
- package/lib/split/SplitSide.js +1 -1
- package/lib/table/Body.js +25 -25
- package/lib/table/Header.js +28 -31
- package/lib/table/HeaderColumn.js +2 -2
- package/lib/table/Row.js +1 -1
- package/lib/table/RowColumn.js +1 -1
- package/lib/table/index.js +2 -2
- package/lib/tabs/DropdownTabs.js +4 -4
- package/lib/tabs/Menu.js +1 -1
- package/lib/tabs/MenuTabs.js +2 -2
- package/lib/tabs/Panel.js +29 -30
- package/lib/tabs/context.js +25 -29
- package/lib/tabs/index.js +2 -2
- package/lib/textContent/index.js +2 -2
- package/lib/toolbar/ButtonBar.js +1 -1
- package/lib/toolbar/LabelBar.js +1 -1
- package/lib/toolbar/Separator.js +1 -1
- package/lib/toolbar/ToolBarGroup.js +1 -1
- package/lib/toolbar/index.js +1 -1
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +2 -2
- package/lib/treetable/Header.js +3 -3
- package/lib/treetable/Row.js +52 -52
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/index.js +1 -1
- package/lib/treeview/Header.js +1 -1
- package/lib/treeview/Node.js +4 -4
- package/lib/treeview/index.js +28 -28
- package/lib/uitour/index.js +32 -32
- package/package.json +24 -39
- package/lib/chunks/index.CjD97zna.js +0 -206
- package/lib/chunks/index.m4wxhMbx.js +0 -89
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as m } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as m } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useContext as n } from "react";
|
|
3
3
|
import u, { SideNavContext as a } from "./helpers.js";
|
|
4
4
|
const l = ({ children: s, scrollable: t, style: e }) => {
|
|
@@ -1,72 +1,70 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useState as l, useRef as p, useContext as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { SideNavContext as
|
|
7
|
-
import { actionsOnPermissionDenied as
|
|
8
|
-
const
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useState as l, useRef as p, useContext as Q, useEffect as E, Fragment as V } from "react";
|
|
3
|
+
import q from "../../internals/withTooltip.js";
|
|
4
|
+
import G from "../../icons/index.js";
|
|
5
|
+
import J from "./MenuLink.js";
|
|
6
|
+
import { SideNavContext as K, SubMenuContext as U } from "./helpers.js";
|
|
7
|
+
import { actionsOnPermissionDenied as X, OPTIONS_ON_DENIED as I } from "../../permissionValidations.js";
|
|
8
|
+
const Y = (x) => {
|
|
9
9
|
const {
|
|
10
10
|
iconName: b,
|
|
11
11
|
title: w,
|
|
12
12
|
children: m,
|
|
13
13
|
childrenIsSubMenu: C = !0,
|
|
14
|
-
url:
|
|
15
|
-
customClass:
|
|
16
|
-
permissionAttr:
|
|
17
|
-
maxWidth:
|
|
18
|
-
minWidth:
|
|
19
|
-
columnsQtty:
|
|
14
|
+
url: R,
|
|
15
|
+
customClass: H,
|
|
16
|
+
permissionAttr: y,
|
|
17
|
+
maxWidth: O = "90%",
|
|
18
|
+
minWidth: T = 500,
|
|
19
|
+
columnsQtty: $,
|
|
20
20
|
targetRef: S,
|
|
21
21
|
disableDefaultStyle: v = !1,
|
|
22
|
-
style:
|
|
23
|
-
customClassForDropdown:
|
|
24
|
-
showDropdownOnClick:
|
|
25
|
-
...
|
|
26
|
-
} = x, [
|
|
27
|
-
if (
|
|
28
|
-
const
|
|
29
|
-
u(!0), M(
|
|
22
|
+
style: k,
|
|
23
|
+
customClassForDropdown: L,
|
|
24
|
+
showDropdownOnClick: i = !1,
|
|
25
|
+
...Z
|
|
26
|
+
} = x, [s, u] = l(!1), [c, M] = l({}), [N, d] = l(!1), j = p(null), f = p(null), g = p(null), P = [I.disabled, I.unvisible], [W] = l(X(P, y)), { isExpanded: z, menuSize: h, openSearchMenuPopup: F } = Q(K), { unvisible: B, disabled: a } = W, _ = (e) => {
|
|
27
|
+
if (i) return;
|
|
28
|
+
const n = window.innerHeight, r = e.target.getBoundingClientRect();
|
|
29
|
+
u(!0), M(r), r.bottom >= n - 150 && d(!0);
|
|
30
30
|
}, D = (e) => {
|
|
31
|
-
if (
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
34
|
-
const
|
|
35
|
-
u(!
|
|
31
|
+
if (i && e) {
|
|
32
|
+
const n = e.target;
|
|
33
|
+
if (n === g.current) {
|
|
34
|
+
const o = window.innerHeight, r = n.getBoundingClientRect();
|
|
35
|
+
u(!s), M(r), r.bottom >= o - 150 && d(!0);
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, A = {
|
|
39
39
|
toggleSubMenu: D
|
|
40
40
|
};
|
|
41
|
-
return
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
((t = g.current) == null ? void 0 : t.contains(i)) || u(!1);
|
|
41
|
+
return E(() => {
|
|
42
|
+
s && i && document.addEventListener("click", (e) => {
|
|
43
|
+
const n = e.target;
|
|
44
|
+
g.current?.contains(n) || u(!1);
|
|
46
45
|
});
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [o]), A ? null : /* @__PURE__ */ n.jsx(Y.Provider, { value: V, children: /* @__PURE__ */ n.jsxs(
|
|
46
|
+
}, [s, i]), E(() => {
|
|
47
|
+
const e = j.current?.clientHeight || 0, n = f.current?.clientHeight || 0, o = N ? "100%" : (window.innerHeight - c.top - (e - n) - 1).toString().concat("px") || "0px";
|
|
48
|
+
f.current?.style.setProperty("max-height", o);
|
|
49
|
+
}, [s]), B ? null : /* @__PURE__ */ t.jsx(U.Provider, { value: A, children: /* @__PURE__ */ t.jsxs(
|
|
52
50
|
"li",
|
|
53
51
|
{
|
|
54
|
-
style:
|
|
52
|
+
style: k,
|
|
55
53
|
ref: (e) => {
|
|
56
54
|
g.current = e, S && S(e);
|
|
57
55
|
},
|
|
58
|
-
className: `item ${
|
|
59
|
-
onMouseEnter:
|
|
56
|
+
className: `item ${R && !a && "-withlink"} ${H} ${a && "-disabled"}`,
|
|
57
|
+
onMouseEnter: _,
|
|
60
58
|
onMouseLeave: () => {
|
|
61
|
-
|
|
59
|
+
i || (u(!1), d(!1));
|
|
62
60
|
},
|
|
63
61
|
onClick: (e) => {
|
|
64
|
-
|
|
62
|
+
i && D(e);
|
|
65
63
|
},
|
|
66
64
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
b && /* @__PURE__ */
|
|
69
|
-
|
|
65
|
+
/* @__PURE__ */ t.jsx(J, { disabled: a, ...x, targetRef: null, children: /* @__PURE__ */ t.jsxs(V, { children: [
|
|
66
|
+
b && /* @__PURE__ */ t.jsx(
|
|
67
|
+
G,
|
|
70
68
|
{
|
|
71
69
|
name: b,
|
|
72
70
|
size: h === "small" && 16 || h === "medium" && 24 || h === "large" && 32 || 16,
|
|
@@ -74,14 +72,14 @@ const ee = (x) => {
|
|
|
74
72
|
customClass: "menuicon"
|
|
75
73
|
}
|
|
76
74
|
),
|
|
77
|
-
|
|
75
|
+
z && /* @__PURE__ */ t.jsx("span", { className: "title", children: w }),
|
|
78
76
|
!C && m
|
|
79
77
|
] }) }),
|
|
80
|
-
|
|
78
|
+
s && m && C && !a && !F && /* @__PURE__ */ t.jsxs(
|
|
81
79
|
"div",
|
|
82
80
|
{
|
|
83
81
|
ref: j,
|
|
84
|
-
className: `${
|
|
82
|
+
className: `${L} ${v ? "" : "submenu-container"}`,
|
|
85
83
|
style: N ? {
|
|
86
84
|
marginLeft: c.width,
|
|
87
85
|
bottom: "0",
|
|
@@ -90,17 +88,17 @@ const ee = (x) => {
|
|
|
90
88
|
} : {
|
|
91
89
|
marginLeft: c.width,
|
|
92
90
|
top: c.top,
|
|
93
|
-
minWidth:
|
|
94
|
-
maxWidth:
|
|
91
|
+
minWidth: T,
|
|
92
|
+
maxWidth: O
|
|
95
93
|
},
|
|
96
94
|
children: [
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ t.jsx("h1", { className: "title", children: w }),
|
|
96
|
+
/* @__PURE__ */ t.jsx(
|
|
99
97
|
"div",
|
|
100
98
|
{
|
|
101
99
|
ref: f,
|
|
102
100
|
className: "submenu",
|
|
103
|
-
style: { gridTemplateColumns: `repeat(${
|
|
101
|
+
style: { gridTemplateColumns: `repeat(${$}, 1fr)` },
|
|
104
102
|
children: m
|
|
105
103
|
}
|
|
106
104
|
)
|
|
@@ -110,7 +108,7 @@ const ee = (x) => {
|
|
|
110
108
|
]
|
|
111
109
|
}
|
|
112
110
|
) });
|
|
113
|
-
},
|
|
111
|
+
}, ue = q(Y);
|
|
114
112
|
export {
|
|
115
|
-
|
|
113
|
+
ue as default
|
|
116
114
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as m, useContext as d } from "react";
|
|
3
3
|
import c from "./MenuLink.js";
|
|
4
4
|
import { SubMenuContext as b } from "./helpers.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "../../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as a, useRef as H, useEffect as l } from "react";
|
|
3
3
|
import I from "./NavMenuItem.js";
|
|
4
4
|
import T from "./NavSubMenuItem.js";
|
|
@@ -8,7 +8,7 @@ import { SideNavContext as B } from "./helpers.js";
|
|
|
8
8
|
import G from "../../icons/index.js";
|
|
9
9
|
import { keyCodes as O } from "../../internals/constants.js";
|
|
10
10
|
import V from "./popup_menu_search/index.js";
|
|
11
|
-
import { v as N } from "../../chunks/v1.
|
|
11
|
+
import { v as N } from "../../chunks/v1.Ds1rkxUj.js";
|
|
12
12
|
import '../../assets/index27.css';const re = (f) => {
|
|
13
13
|
const {
|
|
14
14
|
customClass: $,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as t } from "../../../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../../../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as d, useRef as f, useEffect as u, Fragment as v } from "react";
|
|
3
3
|
import P from "react-dom";
|
|
4
4
|
import w from "../../../inputs/search/index.js";
|
|
5
5
|
import F from "../../../list/index.js";
|
|
6
6
|
import O from "../../../icons/index.js";
|
|
7
7
|
import k from "./EmptyList.js";
|
|
8
|
-
import { L as M } from "../../../chunks/tabs.
|
|
8
|
+
import { L as M } from "../../../chunks/tabs.D0L_nVfP.js";
|
|
9
9
|
const h = document.getElementsByTagName("body")[0], A = (x) => {
|
|
10
10
|
const {
|
|
11
11
|
style: c,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import o from "../icons/index.js";
|
|
3
3
|
import '../assets/noPermission.css';/* empty css */
|
|
4
4
|
const i = () => /* @__PURE__ */ s.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
|
package/lib/panel/Content.js
CHANGED
|
@@ -1,46 +1,45 @@
|
|
|
1
|
-
import { j as d } from "../chunks/jsx-runtime.
|
|
2
|
-
import { useContext as C, useRef as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { j as d } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
|
+
import { useContext as C, useRef as l, useCallback as b, useEffect as g } from "react";
|
|
3
|
+
import j, { getCurrentThreshold as H } from "./helpers.js";
|
|
4
|
+
import L from "../noPermission/index.js";
|
|
5
|
+
const T = ({ customClass: f, children: h, ...m }) => {
|
|
6
6
|
const {
|
|
7
|
-
opened:
|
|
8
|
-
onEndReached:
|
|
9
|
-
onEndReachedThreshold:
|
|
7
|
+
opened: i,
|
|
8
|
+
onEndReached: n,
|
|
9
|
+
onEndReachedThreshold: u = 0.1,
|
|
10
10
|
hideContent: E
|
|
11
|
-
} = C(
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
const { scrollTop:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}),
|
|
11
|
+
} = C(j), e = l(null), o = l(0), s = l(!0), t = b(async () => {
|
|
12
|
+
const r = e.current;
|
|
13
|
+
if (r && n) {
|
|
14
|
+
const { scrollTop: c, scrollHeight: a, clientHeight: v } = r, p = a - v - c - 1, R = H(r, u);
|
|
15
|
+
p <= R && s.current && (s.current = !1, await new Promise((x) => {
|
|
16
|
+
x(n());
|
|
17
|
+
}), o.current = a);
|
|
18
18
|
}
|
|
19
19
|
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
n,
|
|
21
|
+
u,
|
|
22
|
+
e.current,
|
|
23
|
+
o.current
|
|
24
24
|
]);
|
|
25
|
-
return
|
|
26
|
-
let
|
|
27
|
-
return
|
|
28
|
-
const { scrollHeight:
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
|
|
32
|
-
(n = t.current) == null || n.removeEventListener("scroll", r), (c = t.current) == null || c.removeEventListener("resize", r), e == null || e.disconnect();
|
|
25
|
+
return g(() => {
|
|
26
|
+
let r;
|
|
27
|
+
return e.current && n && (r = new ResizeObserver(() => {
|
|
28
|
+
const { scrollHeight: c } = e.current;
|
|
29
|
+
c !== o.current && (s.current = !0, r?.disconnect());
|
|
30
|
+
}), r.observe(e.current), e.current.addEventListener("scroll", t), e.current.addEventListener("resize", t)), () => {
|
|
31
|
+
e.current?.removeEventListener("scroll", t), e.current?.removeEventListener("resize", t), r?.disconnect();
|
|
33
32
|
};
|
|
34
|
-
}, [
|
|
33
|
+
}, [t]), i ? E ? /* @__PURE__ */ d.jsx(L, {}) : /* @__PURE__ */ d.jsx(
|
|
35
34
|
"div",
|
|
36
35
|
{
|
|
37
|
-
ref:
|
|
36
|
+
ref: e,
|
|
38
37
|
className: `panel-content ${f ?? ""}`,
|
|
39
38
|
...m,
|
|
40
|
-
children:
|
|
39
|
+
children: i && h
|
|
41
40
|
}
|
|
42
41
|
) : null;
|
|
43
42
|
};
|
|
44
43
|
export {
|
|
45
|
-
|
|
44
|
+
T as default
|
|
46
45
|
};
|
package/lib/panel/DangerPanel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import t from "./Default.js";
|
|
3
3
|
import e from "../internals/colorStyles.js";
|
|
4
4
|
const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.DANGER });
|
package/lib/panel/Default.js
CHANGED
package/lib/panel/Header.js
CHANGED
package/lib/panel/InfoPanel.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import r from "./Default.js";
|
|
3
3
|
import e from "../internals/colorStyles.js";
|
|
4
4
|
const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.INFO });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import t from "./Default.js";
|
|
3
3
|
import e from "../internals/colorStyles.js";
|
|
4
4
|
const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.PRIMARY });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import r from "./Default.js";
|
|
3
3
|
import e from "../internals/colorStyles.js";
|
|
4
4
|
const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.SUCCESS });
|
package/lib/panel/ToolBar.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import t from "../toolbar/index.js";
|
|
3
3
|
const e = ({ children: o }) => /* @__PURE__ */ r.jsx(t, { style: { width: "auto", backgroundColor: "transparent", border: 0 }, children: o });
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import t from "./Default.js";
|
|
3
3
|
import e from "../internals/colorStyles.js";
|
|
4
4
|
const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.WARNING });
|
|
@@ -4,11 +4,11 @@ const a = (e) => {
|
|
|
4
4
|
return n && n[e] ? n[e] : [];
|
|
5
5
|
}, c = (e, n) => e.some((t) => t.codigo === n), i = (e, n, t) => {
|
|
6
6
|
for (let r = 0; r < e.length; r += 1) {
|
|
7
|
-
const
|
|
8
|
-
if (
|
|
9
|
-
return c(
|
|
10
|
-
if (
|
|
11
|
-
if (i(
|
|
7
|
+
const s = e[r];
|
|
8
|
+
if (s.codigo === n && s.permissoes.length > 0)
|
|
9
|
+
return c(s.permissoes, t);
|
|
10
|
+
if (s.itens.length > 0) {
|
|
11
|
+
if (i(s.itens, n, t)) return !0;
|
|
12
12
|
if (r === e.length - 1) return !1;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -17,18 +17,18 @@ const a = (e) => {
|
|
|
17
17
|
if (!e) return !0;
|
|
18
18
|
const n = Array.isArray(e) ? e : [e];
|
|
19
19
|
for (let t = 0; t < n.length; t += 1) {
|
|
20
|
-
const { module: r, feature:
|
|
21
|
-
if (i(a(r),
|
|
20
|
+
const { module: r, feature: s, operation: o } = n[t];
|
|
21
|
+
if (i(a(r), s, o)) return !0;
|
|
22
22
|
}
|
|
23
23
|
return !1;
|
|
24
24
|
}, d = (e, n) => {
|
|
25
25
|
const t = l(n), r = n && !Array.isArray(n) ? [n] : n;
|
|
26
26
|
if (r && r[0].onDenied && !e.includes(r[0].onDenied))
|
|
27
27
|
throw new Error("in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.");
|
|
28
|
-
const
|
|
29
|
-
return e.forEach((
|
|
30
|
-
o
|
|
31
|
-
}),
|
|
28
|
+
const s = {};
|
|
29
|
+
return e.forEach((o) => {
|
|
30
|
+
s[o] = t ? !1 : o === r?.[0].onDenied;
|
|
31
|
+
}), s;
|
|
32
32
|
}, f = {
|
|
33
33
|
disabled: "disabled",
|
|
34
34
|
unvisible: "unvisible",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
3
|
const s = t(({ children: e }, o) => /* @__PURE__ */ r.jsx("p", { className: "text", ref: o, children: e }));
|
|
4
4
|
s.displayName = "PopoverText";
|
package/lib/popover/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import m from "../buttons/Button.js";
|
|
3
3
|
import f from "../icons/index.js";
|
|
4
4
|
import '../assets/button.css';import '../assets/index3.css';/* empty css */
|
package/lib/progress/Bar.js
CHANGED
package/lib/progress/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import n from "./Bar.js";
|
|
3
3
|
import '../assets/index9.css';const m = (r) => {
|
|
4
4
|
const { style: t, children: e, width: o = "100%", height: a = "24px" } = r, i = {
|
package/lib/radio/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as f, useEffect as S } from "react";
|
|
3
3
|
import '../assets/radio.css';/* empty css */
|
|
4
4
|
import { OPTIONS_ON_DENIED as x, actionsOnPermissionDenied as w } from "../permissionValidations.js";
|
package/lib/shortcuts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import '../assets/index15.css';const d = ({ type: t, style: o, styleShortcut: c, shortcut: e, description: r }) => /* @__PURE__ */ s.jsxs("p", { "data-testid": "description", className: "shortcut-description", style: o, children: [
|
|
3
3
|
/* @__PURE__ */ s.jsx("kbd", { "data-testid": "shortcut", className: `shortcut-component ${t && `-${t}`}`, style: c, children: e }),
|
|
4
4
|
": ",
|
package/lib/skeleton/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as n } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as n } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
|
|
3
3
|
import p from "../gridlayout/GridCol.js";
|
|
4
4
|
import { default as y } from "./SkeletonContainer.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as e } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
const a = ({ color: t = "#3B3B3B", size: i = "50px" }) => /* @__PURE__ */ e.jsxs("svg", { "data-testid": "spinner", className: "lds-spinner spinnerloading", fill: t, width: i, viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", style: { background: "none", float: "right" }, children: [
|
|
3
3
|
/* @__PURE__ */ e.jsx("g", { transform: "rotate(0 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.9166666666666666s", repeatCount: "indefinite" }) }) }),
|
|
4
4
|
/* @__PURE__ */ e.jsx("g", { transform: "rotate(30 50 50)", children: /* @__PURE__ */ e.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ e.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.8333333333333334s", repeatCount: "indefinite" }) }) }),
|
package/lib/spinner/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as i } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useState as h, useRef as j, useEffect as y } from "react";
|
|
3
3
|
import l from "./SpinnerLoading.js";
|
|
4
4
|
import '../assets/index6.css';const S = (c) => {
|
package/lib/split/Split.js
CHANGED
package/lib/split/SplitSide.js
CHANGED
package/lib/table/Body.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { j as e } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.C7wFtzyj.js";
|
|
2
2
|
import { useContext as x } from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "../chunks/lodash.
|
|
6
|
-
import
|
|
3
|
+
import h, { getArrayFromNumber as y } from "./helpers.js";
|
|
4
|
+
import f from "../skeleton/index.js";
|
|
5
|
+
import "../chunks/lodash.CIAK_hAg.js";
|
|
6
|
+
import u from "./Row.js";
|
|
7
7
|
import "../icons/index.js";
|
|
8
|
-
import
|
|
8
|
+
import j from "./RowColumn.js";
|
|
9
9
|
import '../assets/table.css';/* empty css */
|
|
10
|
-
const b = (
|
|
10
|
+
const b = (r, {
|
|
11
11
|
columnsCount: t,
|
|
12
12
|
vertical: o,
|
|
13
|
-
skeletonize:
|
|
14
|
-
skeletonInRows:
|
|
13
|
+
skeletonize: l,
|
|
14
|
+
skeletonInRows: s = 10,
|
|
15
15
|
skeletonHeight: i = 16,
|
|
16
|
-
columnsWidth:
|
|
16
|
+
columnsWidth: a
|
|
17
17
|
}) => {
|
|
18
|
-
if (
|
|
19
|
-
const c = y(
|
|
20
|
-
return c.map((
|
|
18
|
+
if (l && !o && t && s) {
|
|
19
|
+
const c = y(s), m = y(t);
|
|
20
|
+
return c.map((n) => /* @__PURE__ */ e.jsx(u, { customClass: "row-skeleton", children: m.map((p) => /* @__PURE__ */ e.jsx(j, { style: { width: a?.[p - 1] }, children: /* @__PURE__ */ e.jsx(f, { height: i }) }, p)) }, n));
|
|
21
21
|
}
|
|
22
|
-
return
|
|
23
|
-
}, v = ({ children:
|
|
24
|
-
const o = x(
|
|
25
|
-
bodyScrollable:
|
|
26
|
-
bodyContainerRef:
|
|
22
|
+
return r;
|
|
23
|
+
}, v = ({ children: r, customClass: t }) => {
|
|
24
|
+
const o = x(h), {
|
|
25
|
+
bodyScrollable: l,
|
|
26
|
+
bodyContainerRef: s,
|
|
27
27
|
skeletonize: i,
|
|
28
|
-
skeletonInRows:
|
|
28
|
+
skeletonInRows: a = 10,
|
|
29
29
|
strict: c,
|
|
30
30
|
vertical: m,
|
|
31
31
|
columnsCount: d
|
|
32
|
-
} = o,
|
|
33
|
-
return
|
|
32
|
+
} = o, n = !!(i && !m && a && d);
|
|
33
|
+
return l ? /* @__PURE__ */ e.jsx(
|
|
34
34
|
"div",
|
|
35
35
|
{
|
|
36
36
|
className: "bodycontainer",
|
|
37
|
-
ref:
|
|
37
|
+
ref: s,
|
|
38
38
|
children: /* @__PURE__ */ e.jsx(
|
|
39
39
|
"table",
|
|
40
40
|
{
|
|
@@ -45,14 +45,14 @@ const b = (s, {
|
|
|
45
45
|
children: /* @__PURE__ */ e.jsx(
|
|
46
46
|
"tbody",
|
|
47
47
|
{
|
|
48
|
-
className: `tbody ${
|
|
49
|
-
children: b(
|
|
48
|
+
className: `tbody ${n ? "skeleton-transparency" : ""} ${t}`,
|
|
49
|
+
children: b(r, o)
|
|
50
50
|
}
|
|
51
51
|
)
|
|
52
52
|
}
|
|
53
53
|
)
|
|
54
54
|
}
|
|
55
|
-
) : /* @__PURE__ */ e.jsx("tbody", { className: `tbody ${
|
|
55
|
+
) : /* @__PURE__ */ e.jsx("tbody", { className: `tbody ${n ? "skeleton-transparency" : ""} ${t}`, children: b(r, o) });
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
58
|
v as default
|