linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10
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/AlertContainer.js +8 -2
- package/lib/alerts/AlertProvider.js +11 -5
- package/lib/alerts/BaseAlert.js +10 -8
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- 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 +29 -51
- package/lib/badge/index.js +25 -23
- package/lib/buttons/ActivateButton.js +9 -4
- package/lib/buttons/AddButton.js +12 -5
- package/lib/buttons/Button.js +16 -5
- package/lib/buttons/ButtonGroups.js +10 -3
- package/lib/buttons/CancelButton.js +14 -4
- package/lib/buttons/DangerButton.js +15 -4
- package/lib/buttons/DefaultButton.js +76 -111
- package/lib/buttons/DestroyButton.js +21 -5
- package/lib/buttons/EditButton.js +9 -4
- package/lib/buttons/InactivateButton.js +9 -4
- package/lib/buttons/InfoButton.js +15 -4
- package/lib/buttons/PrimaryButton.js +15 -4
- package/lib/buttons/RestoreButton.js +9 -4
- package/lib/buttons/SaveButton.js +14 -4
- package/lib/buttons/SuccessButton.js +15 -4
- package/lib/buttons/WarningButton.js +15 -4
- package/lib/buttons/button_container/index.js +21 -16
- package/lib/buttons/split_button/index.js +53 -55
- package/lib/calendar/DangerCalendar.js +18 -4
- package/lib/calendar/InfoCalendar.js +18 -4
- package/lib/calendar/PrimaryCalendar.js +18 -4
- package/lib/calendar/SuccessCalendar.js +18 -4
- package/lib/calendar/WarningCalendar.js +18 -4
- package/lib/calendar/base/Day.js +32 -22
- package/lib/calendar/base/Month.js +24 -21
- package/lib/calendar/base/Week.js +20 -19
- package/lib/calendar/base/helpers.js +11 -19
- package/lib/calendar/base/index.js +129 -97
- package/lib/checkbox/index.js +6 -5
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -0
- package/lib/dialog/Alert.js +18 -17
- package/lib/dialog/Custom.js +42 -28
- package/lib/dialog/Error.js +18 -17
- package/lib/dialog/Information.js +18 -17
- package/lib/dialog/Question.js +43 -59
- package/lib/dialog/Warning.js +18 -17
- package/lib/dialog/base/Content.js +13 -4
- package/lib/dialog/base/Footer.js +8 -3
- package/lib/dialog/base/Header.js +4 -3
- package/lib/dialog/base/index.js +5 -4
- package/lib/dialog/form/index.js +5 -4
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +11 -10
- package/lib/dialog/wizard/progressbar.js +96 -3
- package/lib/dialog/wizard/step.js +4 -3
- package/lib/dialog/wizard/useWizard.js +42 -29
- package/lib/drawer/Content.js +15 -8
- package/lib/drawer/Drawer.js +38 -35
- package/lib/drawer/Header.js +53 -40
- package/lib/drawer/helpers.js +2 -2
- package/lib/dropdown/Popup.js +4 -2
- package/lib/dropdown/withDropdown.js +75 -50
- package/lib/fieldset/index.js +66 -47
- package/lib/form/Field.js +88 -62
- package/lib/form/FieldArray.js +18 -39
- package/lib/form/FieldNumber.js +42 -38
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +14 -11
- package/lib/form/index.js +88 -100
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +15 -18
- package/lib/gridlayout/GridCol.js +21 -20
- package/lib/gridlayout/GridRow.js +22 -20
- package/lib/hint/helpers.js +6 -2
- package/lib/hint/index.js +27 -25
- package/lib/icons/helper.js +142 -569
- package/lib/icons/index.js +62 -57
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +121 -207
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +4 -2
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +16 -14
- package/lib/inputs/date/helpers.js +7 -7
- package/lib/inputs/date/index.js +101 -147
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -67
- package/lib/inputs/file/DragDropFile.js +79 -135
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -39
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +51 -30
- package/lib/inputs/mask/Cnpj.js +42 -36
- package/lib/inputs/mask/Cpf.js +45 -33
- package/lib/inputs/mask/Phone.js +10 -6
- package/lib/inputs/mask/ZipCode.js +9 -4
- package/lib/inputs/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +44 -44
- package/lib/inputs/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +94 -133
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +167 -127
- package/lib/inputs/number/BaseNumber.js +43 -31
- package/lib/inputs/number/Currency.js +19 -12
- package/lib/inputs/number/Decimal.js +9 -4
- package/lib/inputs/number/index.js +31 -35
- package/lib/inputs/period/Dialog.js +16 -16
- package/lib/inputs/period/Dropdown.js +15 -15
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +8 -4
- package/lib/inputs/period/index.js +192 -330
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +61 -110
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +106 -176
- package/lib/inputs/select/simple/index.js +126 -196
- package/lib/inputs/text/index.js +9 -4
- package/lib/inputs/textarea/index.js +13 -15
- package/lib/internals/withTooltip.js +114 -67
- package/lib/labelMessages/index.js +50 -45
- package/lib/labels/DangerLabel.js +18 -4
- package/lib/labels/DefaultLabel.js +53 -39
- package/lib/labels/InfoLabel.js +18 -4
- package/lib/labels/PrimaryLabel.js +18 -4
- package/lib/labels/SuccessLabel.js +18 -4
- package/lib/labels/WarningLabel.js +18 -4
- package/lib/labels/label_container/index.js +15 -9
- package/lib/list/Header.js +18 -6
- package/lib/list/Item.js +5 -4
- package/lib/list/Separator.js +8 -3
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +49 -52
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- package/lib/menus/float/index.js +102 -81
- package/lib/menus/sidenav/ExpandMenu.js +17 -15
- package/lib/menus/sidenav/MenuLink.js +21 -14
- package/lib/menus/sidenav/NavMenuGroup.js +19 -14
- package/lib/menus/sidenav/NavMenuItem.js +131 -111
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- package/lib/menus/sidenav/helpers.js +4 -4
- package/lib/menus/sidenav/index.js +145 -123
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
- package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
- package/lib/noPermission/index.js +13 -8
- package/lib/panel/Content.js +49 -40
- package/lib/panel/DangerPanel.js +10 -5
- package/lib/panel/Default.js +62 -36
- package/lib/panel/Header.js +53 -37
- package/lib/panel/InfoPanel.js +10 -5
- package/lib/panel/PrimaryPanel.js +10 -5
- package/lib/panel/SuccessPanel.js +10 -5
- package/lib/panel/ToolBar.js +17 -4
- package/lib/panel/WarningPanel.js +10 -5
- package/lib/panel/helpers.js +8 -5
- package/lib/permissionValidations.js +15 -11
- package/lib/popover/PopoverText.js +12 -5
- package/lib/popover/PopoverTitle.js +10 -3
- package/lib/popover/index.js +36 -56
- package/lib/progress/Bar.js +43 -34
- package/lib/progress/index.js +23 -18
- package/lib/radio/index.js +105 -89
- package/lib/shortcuts/index.js +20 -7
- package/lib/skeleton/SkeletonContainer.js +16 -6
- package/lib/skeleton/index.js +42 -18
- package/lib/spinner/SpinnerLoading.js +53 -16
- package/lib/spinner/index.js +47 -37
- package/lib/split/Split.js +83 -79
- package/lib/split/SplitSide.js +24 -16
- package/lib/table/Body.js +36 -49
- package/lib/table/Header.js +45 -35
- package/lib/table/HeaderColumn.js +40 -27
- package/lib/table/Row.js +47 -48
- package/lib/table/RowColumn.js +50 -38
- package/lib/table/helpers.js +3 -1
- package/lib/table/index.js +101 -104
- package/lib/tabs/DropdownTabs.js +64 -61
- package/lib/tabs/Menu.js +35 -49
- package/lib/tabs/MenuTabs.js +59 -84
- package/lib/tabs/Panel.js +57 -47
- package/lib/tabs/context.js +36 -40
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +10 -8
- package/lib/textContent/index.js +30 -32
- package/lib/toolbar/ButtonBar.js +62 -58
- package/lib/toolbar/LabelBar.js +46 -38
- package/lib/toolbar/Separator.js +8 -3
- package/lib/toolbar/ToolBarGroup.js +14 -3
- package/lib/toolbar/index.js +35 -29
- package/lib/tooltip/index.js +24 -24
- package/lib/treetable/Body.js +26 -27
- package/lib/treetable/Header.js +23 -19
- package/lib/treetable/Row.js +210 -147
- package/lib/treetable/helpers.d.ts +4 -5
- package/lib/treetable/helpers.js +6 -14
- package/lib/treetable/index.js +25 -15
- package/lib/treeview/Header.js +13 -5
- package/lib/treeview/Node.js +198 -175
- package/lib/treeview/index.js +257 -174
- package/lib/uitour/index.js +167 -166
- package/package.json +32 -43
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
|
@@ -1,23 +1,39 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
)
|
|
1
|
+
import { j as d } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as j } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as v, useState as D } from "react";
|
|
4
|
+
import S from "./MenuLink.js";
|
|
5
|
+
import { SubMenuContext as h } from "./helpers.js";
|
|
6
|
+
import { OPTIONS_ON_DENIED as f, actionsOnPermissionDenied as E } from "../../permissionValidations.js";
|
|
7
|
+
const w = (p) => {
|
|
8
|
+
const t = j.c(13), {
|
|
9
|
+
title: l,
|
|
10
|
+
url: m,
|
|
11
|
+
permissionAttr: u
|
|
12
|
+
} = p;
|
|
13
|
+
let o, i;
|
|
14
|
+
if (t[0] !== u) {
|
|
15
|
+
const N = [f.disabled, f.unvisible];
|
|
16
|
+
o = D, i = E(N, u), t[0] = u, t[1] = o, t[2] = i;
|
|
17
|
+
} else
|
|
18
|
+
o = t[1], i = t[2];
|
|
19
|
+
const [b] = o(i), {
|
|
20
|
+
toggleSubMenu: c
|
|
21
|
+
} = v(h), {
|
|
22
|
+
unvisible: x,
|
|
23
|
+
disabled: s
|
|
24
|
+
} = b;
|
|
25
|
+
if (x)
|
|
26
|
+
return null;
|
|
27
|
+
const a = `item hvr-forward ${s && "-disabled"}`;
|
|
28
|
+
let e;
|
|
29
|
+
t[3] !== l ? (e = /* @__PURE__ */ d.jsx("span", { className: "title", children: l }), t[3] = l, t[4] = e) : e = t[4];
|
|
30
|
+
let n;
|
|
31
|
+
t[5] !== s || t[6] !== e || t[7] !== m ? (n = /* @__PURE__ */ d.jsx(S, { disabled: s, url: m, children: e }), t[5] = s, t[6] = e, t[7] = m, t[8] = n) : n = t[8];
|
|
32
|
+
let r;
|
|
33
|
+
return t[9] !== a || t[10] !== n || t[11] !== c ? (r = /* @__PURE__ */ d.jsx("div", { className: a, onKeyDown: I, role: "button", tabIndex: -1, onClick: c, children: n }), t[9] = a, t[10] = n, t[11] = c, t[12] = r) : r = t[12], r;
|
|
20
34
|
};
|
|
35
|
+
function I() {
|
|
36
|
+
}
|
|
21
37
|
export {
|
|
22
|
-
|
|
38
|
+
w as default
|
|
23
39
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t from "react";
|
|
2
|
-
const
|
|
2
|
+
const a = (n, s) => {
|
|
3
3
|
let e = "expandedmenu";
|
|
4
4
|
return n || (e = `collapsedmenu -${s}`), e;
|
|
5
|
-
}, c = t.createContext({}),
|
|
5
|
+
}, c = t.createContext({}), r = t.createContext({});
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
r as SideNavContext,
|
|
8
8
|
c as SubMenuContext,
|
|
9
|
-
|
|
9
|
+
a as default
|
|
10
10
|
};
|
|
@@ -1,128 +1,150 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}, []
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
1
|
+
import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as ae } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as L, useRef as me, useEffect as W } from "react";
|
|
4
|
+
import oe from "./NavMenuItem.js";
|
|
5
|
+
import ue from "./NavSubMenuItem.js";
|
|
6
|
+
import pe from "./NavMenuGroup.js";
|
|
7
|
+
import fe from "./ExpandMenu.js";
|
|
8
|
+
import { SideNavContext as de } from "./helpers.js";
|
|
9
|
+
import he from "../../icons/index.js";
|
|
10
|
+
import { keyCodes as xe } from "../../internals/constants.js";
|
|
11
|
+
import Se from "./popup_menu_search/index.js";
|
|
12
|
+
import { v as se } from "../../chunks/v1.Ds1rkxUj.js";
|
|
13
|
+
import '../../assets/index27.css';const De = (m) => {
|
|
14
|
+
const e = ae.c(52), {
|
|
15
|
+
customClass: re,
|
|
16
|
+
showExpandMenu: A,
|
|
17
|
+
expandMenuCustomClass: H,
|
|
18
|
+
expanded: X,
|
|
19
|
+
menuSize: Y,
|
|
20
|
+
onExpandMenuClick: S,
|
|
21
|
+
children: l,
|
|
22
|
+
enableMenuSearch: c,
|
|
23
|
+
menuSearchCustomComponent: C
|
|
24
|
+
} = m, x = X === void 0 ? !0 : X, r = Y === void 0 ? "medium" : Y, [o, Z] = L(x);
|
|
25
|
+
let v;
|
|
26
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (v = [], e[0] = v) : v = e[0];
|
|
27
|
+
const [u, ie] = L(v);
|
|
28
|
+
let y;
|
|
29
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (y = {}, e[1] = y) : y = e[1];
|
|
30
|
+
const [T, le] = L(y), [a, ee] = L(!1), M = me(null);
|
|
31
|
+
let b;
|
|
32
|
+
e[2] !== o || e[3] !== S ? (b = () => {
|
|
33
|
+
Z(!o), S && S(!o);
|
|
34
|
+
}, e[2] = o, e[3] = S, e[4] = b) : b = e[4];
|
|
35
|
+
const q = b;
|
|
36
|
+
let _;
|
|
37
|
+
e[5] !== T ? (_ = () => {
|
|
38
|
+
const {
|
|
39
|
+
left: n,
|
|
40
|
+
top: t,
|
|
41
|
+
width: s,
|
|
42
|
+
height: U
|
|
43
|
+
} = T;
|
|
44
|
+
return `left: ${n + s + 5}px; top: ${t + 1}px; height: ${U - 8}px;`;
|
|
45
|
+
}, e[5] = T, e[6] = _) : _ = e[6];
|
|
46
|
+
const B = _;
|
|
47
|
+
let E;
|
|
48
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (E = () => {
|
|
49
|
+
ee(!1);
|
|
50
|
+
}, e[7] = E) : E = e[7];
|
|
51
|
+
const ce = E;
|
|
52
|
+
let p, I;
|
|
53
|
+
if (e[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
54
|
+
const n = (t) => {
|
|
55
|
+
const {
|
|
56
|
+
type: s
|
|
57
|
+
} = t;
|
|
58
|
+
(s === oe || s === ue) && !t.props.children && ie((U) => [...U, {
|
|
59
|
+
id: t.props.id || `${t.props.title}-${se()}`,
|
|
60
|
+
content: t.props.title,
|
|
61
|
+
url: t.props.url
|
|
62
|
+
}]);
|
|
59
63
|
};
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
64
|
+
p = (t) => {
|
|
65
|
+
Array.isArray(t) ? t.forEach((s) => {
|
|
66
|
+
s && (n(s), s.props && s.props.children && p(s.props.children));
|
|
67
|
+
}) : t && (n(t), t.props && t.props.children && p(t.props.children));
|
|
68
|
+
}, I = () => {
|
|
69
|
+
ee(!0);
|
|
70
|
+
}, e[8] = p, e[9] = I;
|
|
71
|
+
} else
|
|
72
|
+
p = e[8], I = e[9];
|
|
73
|
+
const te = I;
|
|
74
|
+
let N;
|
|
75
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (N = (n) => {
|
|
76
|
+
[xe.F].includes(n.keyCode) && n.ctrlKey && n.shiftKey && (n.preventDefault(), te());
|
|
77
|
+
}, e[10] = N) : N = e[10];
|
|
78
|
+
const ne = N;
|
|
79
|
+
let $, g;
|
|
80
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (g = () => (document.addEventListener("keydown", ne), () => {
|
|
81
|
+
document.removeEventListener("keydown", ne);
|
|
82
|
+
}), $ = [], e[11] = $, e[12] = g) : ($ = e[11], g = e[12]), W(g, $);
|
|
83
|
+
let j;
|
|
84
|
+
e[13] !== l || e[14] !== c ? (j = () => {
|
|
85
|
+
c && M && M.current && le(M.current.getBoundingClientRect()), c && p(l);
|
|
86
|
+
}, e[13] = l, e[14] = c, e[15] = j) : j = e[15];
|
|
87
|
+
let k;
|
|
88
|
+
e[16] === Symbol.for("react.memo_cache_sentinel") ? (k = [], e[16] = k) : k = e[16], W(j, k);
|
|
89
|
+
let w, R;
|
|
90
|
+
e[17] !== x ? (w = () => {
|
|
91
|
+
Z(x);
|
|
92
|
+
}, R = [x], e[17] = x, e[18] = w, e[19] = R) : (w = e[18], R = e[19]), W(w, R);
|
|
93
|
+
let D;
|
|
94
|
+
e[20] !== u ? (D = () => u.filter(Ce), e[20] = u, e[21] = D) : D = e[21];
|
|
95
|
+
const G = D;
|
|
96
|
+
let K;
|
|
97
|
+
e[22] !== B || e[23] !== u || e[24] !== C || e[25] !== r || e[26] !== a || e[27] !== m || e[28] !== G ? (K = () => {
|
|
98
|
+
const n = {
|
|
99
|
+
...m,
|
|
100
|
+
style: B(),
|
|
101
|
+
handlerClose: ce,
|
|
102
|
+
menuItemsContent: u && G()
|
|
103
|
+
};
|
|
104
|
+
return /* @__PURE__ */ i.jsx(pe, { children: /* @__PURE__ */ i.jsxs(oe, { childrenIsSubMenu: !1, customClass: "-customsidenavitem", tooltip: "Pesquisar funcionalidades (CTRL+SHIFT+F)", tooltipPosition: "right", children: [
|
|
105
|
+
/* @__PURE__ */ i.jsx("div", { className: "searchmenubutton", role: "button", tabIndex: -1, onKeyDown: ve, onClick: () => {
|
|
106
|
+
te();
|
|
107
|
+
}, children: /* @__PURE__ */ i.jsx(he, { name: "search", customClass: "searchmenuicon", size: r === "small" && 16 || r === "medium" && 22 || r === "large" && 32 || 16 }) }, "searchMenuIcon"),
|
|
108
|
+
a && (C ? C(n) : /* @__PURE__ */ i.jsx(Se, { ...n }))
|
|
109
|
+
] }) }, `popup-menusearch-${se()}`);
|
|
110
|
+
}, e[22] = B, e[23] = u, e[24] = C, e[25] = r, e[26] = a, e[27] = m, e[28] = G, e[29] = K) : K = e[29];
|
|
111
|
+
const O = K;
|
|
112
|
+
let P;
|
|
113
|
+
e[30] !== l || e[31] !== c || e[32] !== O ? (P = () => {
|
|
114
|
+
if (!c)
|
|
115
|
+
return l;
|
|
116
|
+
const n = [...l];
|
|
117
|
+
return n.splice(1, 0, O()), n;
|
|
118
|
+
}, e[30] = l, e[31] = c, e[32] = O, e[33] = P) : P = e[33];
|
|
119
|
+
const V = P;
|
|
120
|
+
let z;
|
|
121
|
+
e[34] !== o || e[35] !== r || e[36] !== a ? (z = {
|
|
99
122
|
isExpanded: o,
|
|
100
|
-
menuSize:
|
|
101
|
-
openSearchMenuPopup:
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
}
|
|
116
|
-
),
|
|
117
|
-
L()
|
|
118
|
-
]
|
|
119
|
-
}
|
|
120
|
-
) });
|
|
123
|
+
menuSize: r,
|
|
124
|
+
openSearchMenuPopup: a
|
|
125
|
+
}, e[34] = o, e[35] = r, e[36] = a, e[37] = z) : z = e[37];
|
|
126
|
+
const J = z, Q = `sidenav-component ${o ? "-expanded" : ""} ${a ? "-blocked" : ""} ${re}`;
|
|
127
|
+
let f;
|
|
128
|
+
e[38] !== H || e[39] !== o || e[40] !== q || e[41] !== A ? (f = A && /* @__PURE__ */ i.jsx(fe, { expandMenuCustomClass: `${o && "closefromexpanded"} ${H}`, onExpandMenu: q, iconName: o ? "arrow_left" : "arrow_right" }), e[38] = H, e[39] = o, e[40] = q, e[41] = A, e[42] = f) : f = e[42];
|
|
129
|
+
let d;
|
|
130
|
+
e[43] !== V ? (d = V(), e[43] = V, e[44] = d) : d = e[44];
|
|
131
|
+
let h;
|
|
132
|
+
e[45] !== Q || e[46] !== f || e[47] !== d ? (h = /* @__PURE__ */ i.jsxs("div", { className: Q, ref: M, children: [
|
|
133
|
+
f,
|
|
134
|
+
d
|
|
135
|
+
] }), e[45] = Q, e[46] = f, e[47] = d, e[48] = h) : h = e[48];
|
|
136
|
+
let F;
|
|
137
|
+
return e[49] !== J || e[50] !== h ? (F = /* @__PURE__ */ i.jsx(de.Provider, { value: J, children: h }), e[49] = J, e[50] = h, e[51] = F) : F = e[51], F;
|
|
121
138
|
};
|
|
139
|
+
function Ce(m) {
|
|
140
|
+
return m.content !== "";
|
|
141
|
+
}
|
|
142
|
+
function ve() {
|
|
143
|
+
}
|
|
122
144
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
145
|
+
fe as ExpandedMenu,
|
|
146
|
+
pe as NavMenuGroup,
|
|
147
|
+
oe as NavMenuItem,
|
|
148
|
+
ue as NavSubMenuItem,
|
|
149
|
+
De as default
|
|
128
150
|
};
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
),
|
|
15
|
-
|
|
16
|
-
]
|
|
1
|
+
import { j as i } from "../../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "../../../icons/index.js";
|
|
4
|
+
const d = (c) => {
|
|
5
|
+
const e = l.c(4), {
|
|
6
|
+
info: r,
|
|
7
|
+
visible: n
|
|
8
|
+
} = c;
|
|
9
|
+
if (!(n === void 0 ? !0 : n)) {
|
|
10
|
+
let o;
|
|
11
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i.jsx("noscript", {}), e[0] = o) : o = e[0], o;
|
|
12
|
+
}
|
|
13
|
+
let t;
|
|
14
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ i.jsx(m, { name: "information", color: "#bdbdbd", size: 128 }), e[1] = t) : t = e[1];
|
|
15
|
+
let s;
|
|
16
|
+
return e[2] !== r ? (s = /* @__PURE__ */ i.jsxs("div", { className: "nodata-container", children: [
|
|
17
|
+
t,
|
|
18
|
+
/* @__PURE__ */ i.jsx("p", { className: "subtext", children: r })
|
|
19
|
+
] }), e[2] = r, e[3] = s) : s = e[3], s;
|
|
20
|
+
};
|
|
17
21
|
export {
|
|
18
|
-
|
|
22
|
+
d as default
|
|
19
23
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as t } from "../../../chunks/jsx-runtime.
|
|
1
|
+
import { j as t } from "../../../chunks/jsx-runtime.D1SHvdVE.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.BvKfeA6Y.js";
|
|
9
9
|
const h = document.getElementsByTagName("body")[0], A = (x) => {
|
|
10
10
|
const {
|
|
11
11
|
style: c,
|
|
@@ -33,55 +33,21 @@ const h = document.getElementsByTagName("body")[0], A = (x) => {
|
|
|
33
33
|
const p = (e) => {
|
|
34
34
|
const L = e.toLowerCase(), s = a && a.filter((R) => R.content.toLowerCase().includes(L));
|
|
35
35
|
s && s.length > 0 && i(s[0].id), j(e), I(s);
|
|
36
|
-
}, E = () => n && n.length > 0 ? /* @__PURE__ */ t.jsx(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
text: e.content
|
|
52
|
-
},
|
|
53
|
-
e.id
|
|
54
|
-
))
|
|
55
|
-
}
|
|
56
|
-
) : /* @__PURE__ */ t.jsx(k, { info: g }), S = () => /* @__PURE__ */ t.jsxs(v, { children: [
|
|
57
|
-
/* @__PURE__ */ t.jsx(
|
|
58
|
-
"span",
|
|
59
|
-
{
|
|
60
|
-
onClick: l,
|
|
61
|
-
className: "closebutton",
|
|
62
|
-
onKeyPress: () => {
|
|
63
|
-
},
|
|
64
|
-
role: "button",
|
|
65
|
-
tabIndex: 0,
|
|
66
|
-
children: /* @__PURE__ */ t.jsx(O, { name: "close", size: 22 })
|
|
67
|
-
}
|
|
68
|
-
),
|
|
69
|
-
/* @__PURE__ */ t.jsx(
|
|
70
|
-
w,
|
|
71
|
-
{
|
|
72
|
-
rounded: !0,
|
|
73
|
-
onChange: (e) => {
|
|
74
|
-
e && p(e.target.value);
|
|
75
|
-
},
|
|
76
|
-
inputRef: o,
|
|
77
|
-
value: b,
|
|
78
|
-
placeHolder: y,
|
|
79
|
-
onReset: () => {
|
|
80
|
-
p("");
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
),
|
|
84
|
-
/* @__PURE__ */ t.jsx("div", { style: { height: "90%" }, children: E() })
|
|
36
|
+
}, E = () => n && n.length > 0 ? /* @__PURE__ */ t.jsx(F, { condensed: !0, transparent: !0, selectable: !0, onSelectItem: l, selectedItemId: C, selectOnEnter: !0, style: {
|
|
37
|
+
margin: "25px 0px",
|
|
38
|
+
border: "none",
|
|
39
|
+
boxShadow: "none"
|
|
40
|
+
}, children: n.map((e) => /* @__PURE__ */ t.jsx(M, { itemId: e.id, url: e.url, text: e.content }, e.id)) }) : /* @__PURE__ */ t.jsx(k, { info: g }), S = () => /* @__PURE__ */ t.jsxs(v, { children: [
|
|
41
|
+
/* @__PURE__ */ t.jsx("span", { onClick: l, className: "closebutton", onKeyPress: () => {
|
|
42
|
+
}, role: "button", tabIndex: 0, children: /* @__PURE__ */ t.jsx(O, { name: "close", size: 22 }) }),
|
|
43
|
+
/* @__PURE__ */ t.jsx(w, { rounded: !0, onChange: (e) => {
|
|
44
|
+
e && p(e.target.value);
|
|
45
|
+
}, inputRef: o, value: b, placeHolder: y, onReset: () => {
|
|
46
|
+
p("");
|
|
47
|
+
} }),
|
|
48
|
+
/* @__PURE__ */ t.jsx("div", { style: {
|
|
49
|
+
height: "90%"
|
|
50
|
+
}, children: E() })
|
|
85
51
|
] });
|
|
86
52
|
return P.createPortal(S(), r.current);
|
|
87
53
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
1
|
+
import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as t } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import r from "../icons/index.js";
|
|
3
4
|
import '../assets/noPermission.css';/* empty css */
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
|
|
5
|
+
const c = () => {
|
|
6
|
+
const o = t.c(1);
|
|
7
|
+
let s;
|
|
8
|
+
return o[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ e.jsxs("div", { className: "no-permission-component", "data-testid": "no-permission-component", children: [
|
|
9
|
+
/* @__PURE__ */ e.jsx(r, { name: "warning", size: 128, color: "#bdbdbd" }),
|
|
10
|
+
/* @__PURE__ */ e.jsx("p", { className: "text", children: "Acesso Negado" }),
|
|
11
|
+
/* @__PURE__ */ e.jsx("p", { className: "subtext", children: "Você não tem permissão para acessar este conteúdo. Consulte o Administrador do sistema!" })
|
|
12
|
+
] }), o[0] = s) : s = o[0], s;
|
|
13
|
+
};
|
|
9
14
|
export {
|
|
10
|
-
|
|
15
|
+
c as default
|
|
11
16
|
};
|
package/lib/panel/Content.js
CHANGED
|
@@ -1,46 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { j as H } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as T } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as w, useRef as R, useEffect as z } from "react";
|
|
4
|
+
import O, { getCurrentThreshold as N } from "./helpers.js";
|
|
5
|
+
import S from "../noPermission/index.js";
|
|
6
|
+
const A = (h) => {
|
|
7
|
+
const e = T.c(18);
|
|
8
|
+
let o, c, l;
|
|
9
|
+
e[0] !== h ? ({
|
|
10
|
+
customClass: c,
|
|
11
|
+
children: o,
|
|
12
|
+
...l
|
|
13
|
+
} = h, e[0] = h, e[1] = o, e[2] = c, e[3] = l) : (o = e[1], c = e[2], l = e[3]);
|
|
6
14
|
const {
|
|
7
|
-
opened:
|
|
8
|
-
onEndReached:
|
|
9
|
-
onEndReachedThreshold:
|
|
10
|
-
hideContent:
|
|
11
|
-
} =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
opened: i,
|
|
16
|
+
onEndReached: s,
|
|
17
|
+
onEndReachedThreshold: x,
|
|
18
|
+
hideContent: m
|
|
19
|
+
} = w(O), E = x === void 0 ? 0.1 : x, t = R(null), g = R(0), p = R(!0);
|
|
20
|
+
let u;
|
|
21
|
+
e[4] !== s || e[5] !== E ? (u = async () => {
|
|
22
|
+
const n = t.current;
|
|
23
|
+
if (n && s) {
|
|
24
|
+
const {
|
|
25
|
+
scrollTop: v,
|
|
26
|
+
scrollHeight: C,
|
|
27
|
+
clientHeight: b
|
|
28
|
+
} = n, j = C - b - v - 1, L = N(n, E);
|
|
29
|
+
j <= L && p.current && (p.current = !1, await new Promise((P) => {
|
|
30
|
+
P(s());
|
|
31
|
+
}), g.current = C);
|
|
18
32
|
}
|
|
19
|
-
}, [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
var n, c;
|
|
32
|
-
(n = t.current) == null || n.removeEventListener("scroll", r), (c = t.current) == null || c.removeEventListener("resize", r), e == null || e.disconnect();
|
|
33
|
+
}, e[4] = s, e[5] = E, e[6] = u) : u = e[6];
|
|
34
|
+
const r = u;
|
|
35
|
+
let d;
|
|
36
|
+
e[7] !== s || e[8] !== r ? (d = () => {
|
|
37
|
+
let n;
|
|
38
|
+
return t.current && s && (n = new ResizeObserver(() => {
|
|
39
|
+
const {
|
|
40
|
+
scrollHeight: v
|
|
41
|
+
} = t.current;
|
|
42
|
+
v !== g.current && (p.current = !0, n?.disconnect());
|
|
43
|
+
}), n.observe(t.current), t.current.addEventListener("scroll", r), t.current.addEventListener("resize", r)), () => {
|
|
44
|
+
t.current?.removeEventListener("scroll", r), t.current?.removeEventListener("resize", r), n?.disconnect();
|
|
33
45
|
};
|
|
34
|
-
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
children: u && h
|
|
41
|
-
}
|
|
42
|
-
) : null;
|
|
46
|
+
}, e[7] = s, e[8] = r, e[9] = d) : d = e[9];
|
|
47
|
+
let f;
|
|
48
|
+
if (e[10] !== r ? (f = [r], e[10] = r, e[11] = f) : f = e[11], z(d, f), !i)
|
|
49
|
+
return null;
|
|
50
|
+
let a;
|
|
51
|
+
return e[12] !== o || e[13] !== c || e[14] !== m || e[15] !== i || e[16] !== l ? (a = m ? /* @__PURE__ */ H.jsx(S, {}) : /* @__PURE__ */ H.jsx("div", { ref: t, className: `panel-content ${c ?? ""}`, ...l, children: i && o }), e[12] = o, e[13] = c, e[14] = m, e[15] = i, e[16] = l, e[17] = a) : a = e[17], a;
|
|
43
52
|
};
|
|
44
53
|
export {
|
|
45
|
-
|
|
54
|
+
A as default
|
|
46
55
|
};
|
package/lib/panel/DangerPanel.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { j as r } from "../chunks/jsx-runtime.
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import m from "./Default.js";
|
|
4
|
+
import s from "../internals/colorStyles.js";
|
|
5
|
+
const c = (e) => {
|
|
6
|
+
const t = l.c(2);
|
|
7
|
+
let o;
|
|
8
|
+
return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.DANGER }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
9
|
+
};
|
|
5
10
|
export {
|
|
6
|
-
|
|
11
|
+
c as default
|
|
7
12
|
};
|