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
|
@@ -9,21 +9,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
|
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
declare namespace SubMenuContainer {
|
|
11
11
|
namespace propTypes {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
let children: any;
|
|
13
|
+
let handlerGoBack: any;
|
|
14
|
+
let title: any;
|
|
15
|
+
let customClass: any;
|
|
16
|
+
let skeletonize: any;
|
|
17
|
+
let skeletonQtty: any;
|
|
18
18
|
}
|
|
19
19
|
namespace defaultProps {
|
|
20
|
-
|
|
20
|
+
let title_1: undefined;
|
|
21
21
|
export { title_1 as title };
|
|
22
|
-
|
|
22
|
+
let customClass_1: undefined;
|
|
23
23
|
export { customClass_1 as customClass };
|
|
24
|
-
|
|
24
|
+
let skeletonize_1: boolean;
|
|
25
25
|
export { skeletonize_1 as skeletonize };
|
|
26
|
-
|
|
26
|
+
let skeletonQtty_1: number;
|
|
27
27
|
export { skeletonQtty_1 as skeletonQtty };
|
|
28
28
|
}
|
|
29
29
|
}
|
package/lib/menus/float/index.js
CHANGED
|
@@ -1,92 +1,113 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as o } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as y } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { default as K } from "./MenuItem.js";
|
|
4
|
+
import { useEffect as z } from "react";
|
|
5
|
+
import { P as b } from "../../chunks/index.Df3kt2LQ.js";
|
|
6
|
+
import S from "../../icons/index.js";
|
|
7
|
+
import M from "../../skeleton/index.js";
|
|
8
|
+
import B from "../../skeleton/SkeletonContainer.js";
|
|
9
|
+
import F from "../../buttons/Button.js";
|
|
9
10
|
import '../../assets/button.css';import '../../assets/index28.css';/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
n
|
|
26
|
-
)) });
|
|
11
|
+
import I from "../../spinner/index.js";
|
|
12
|
+
import _ from "./helpers.js";
|
|
13
|
+
const E = (k, e, f) => {
|
|
14
|
+
if (k && e) {
|
|
15
|
+
const j = Array.from({
|
|
16
|
+
length: e
|
|
17
|
+
}, (s, u) => u + 1);
|
|
18
|
+
return /* @__PURE__ */ o.jsx(B, { style: {
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
flexFlow: "row wrap"
|
|
21
|
+
}, children: j.map((s) => /* @__PURE__ */ o.jsx(M, { height: 88, width: 88, style: {
|
|
22
|
+
flexGrow: "unset",
|
|
23
|
+
marginBottom: 5
|
|
24
|
+
} }, s)) });
|
|
27
25
|
}
|
|
28
|
-
return
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
26
|
+
return f;
|
|
27
|
+
}, g = (k) => {
|
|
28
|
+
const e = y.c(21), {
|
|
29
|
+
title: f,
|
|
30
|
+
customClass: j,
|
|
31
|
+
handlerGoBack: s,
|
|
32
|
+
skeletonize: u,
|
|
33
|
+
skeletonQtty: r,
|
|
34
|
+
children: i
|
|
35
|
+
} = k;
|
|
36
|
+
let p;
|
|
37
|
+
e[0] !== s ? (p = () => () => {
|
|
38
|
+
s();
|
|
39
|
+
}, e[0] = s, e[1] = p) : p = e[1];
|
|
40
|
+
let x;
|
|
41
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (x = [], e[2] = x) : x = e[2], z(p, x);
|
|
42
|
+
const h = `floatsubmenu ${j}`;
|
|
43
|
+
let d;
|
|
44
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
45
|
+
cursor: "pointer"
|
|
46
|
+
}, e[3] = d) : d = e[3];
|
|
47
|
+
let c;
|
|
48
|
+
e[4] !== s ? (c = /* @__PURE__ */ o.jsx(S, { onClick: s, name: "arrowBack", pointerEvents: "all", style: d }), e[4] = s, e[5] = c) : c = e[5];
|
|
49
|
+
let n;
|
|
50
|
+
e[6] !== f ? (n = f && /* @__PURE__ */ o.jsx("span", { children: f }), e[6] = f, e[7] = n) : n = e[7];
|
|
51
|
+
let a;
|
|
52
|
+
e[8] !== c || e[9] !== n ? (a = /* @__PURE__ */ o.jsxs("div", { className: "submenuheader", children: [
|
|
53
|
+
c,
|
|
54
|
+
n
|
|
55
|
+
] }), e[8] = c, e[9] = n, e[10] = a) : a = e[10];
|
|
56
|
+
let m;
|
|
57
|
+
e[11] !== i || e[12] !== r || e[13] !== u ? (m = E(u, r, i), e[11] = i, e[12] = r, e[13] = u, e[14] = m) : m = e[14];
|
|
58
|
+
let t;
|
|
59
|
+
e[15] !== m ? (t = /* @__PURE__ */ o.jsx("div", { className: "submenucontent", children: m }), e[15] = m, e[16] = t) : t = e[16];
|
|
60
|
+
let l;
|
|
61
|
+
return e[17] !== h || e[18] !== a || e[19] !== t ? (l = /* @__PURE__ */ o.jsxs("div", { className: h, children: [
|
|
62
|
+
a,
|
|
63
|
+
t
|
|
64
|
+
] }), e[17] = h, e[18] = a, e[19] = t, e[20] = l) : l = e[20], l;
|
|
52
65
|
};
|
|
53
|
-
|
|
66
|
+
g.propTypes = {
|
|
67
|
+
children: b.node.isRequired,
|
|
68
|
+
handlerGoBack: b.func.isRequired,
|
|
69
|
+
title: b.string,
|
|
70
|
+
customClass: b.string,
|
|
71
|
+
skeletonize: b.bool,
|
|
72
|
+
skeletonQtty: b.number
|
|
73
|
+
};
|
|
74
|
+
g.defaultProps = {
|
|
54
75
|
title: void 0,
|
|
55
76
|
customClass: void 0,
|
|
56
77
|
skeletonize: !1,
|
|
57
78
|
skeletonQtty: 3
|
|
58
79
|
};
|
|
59
|
-
const
|
|
60
|
-
const {
|
|
61
|
-
iconSize:
|
|
62
|
-
iconColor:
|
|
63
|
-
customClass:
|
|
64
|
-
children:
|
|
65
|
-
spinner:
|
|
66
|
-
isLoading:
|
|
67
|
-
customClassMenuItem:
|
|
68
|
-
} =
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
const V = (k) => {
|
|
81
|
+
const e = y.c(22), {
|
|
82
|
+
iconSize: f,
|
|
83
|
+
iconColor: j,
|
|
84
|
+
customClass: s,
|
|
85
|
+
children: u,
|
|
86
|
+
spinner: r,
|
|
87
|
+
isLoading: i,
|
|
88
|
+
customClassMenuItem: p
|
|
89
|
+
} = k, x = f === void 0 ? 16 : f, h = j === void 0 ? "#676464" : j;
|
|
90
|
+
let d;
|
|
91
|
+
e[0] !== i || e[1] !== r ? (d = () => i ? /* @__PURE__ */ o.jsx(I, { delayTime: 0 }) : r, e[0] = i, e[1] = r, e[2] = d) : d = e[2];
|
|
92
|
+
const c = d;
|
|
93
|
+
let n;
|
|
94
|
+
e[3] !== p ? (n = {
|
|
95
|
+
customClassMenuItem: p
|
|
96
|
+
}, e[3] = p, e[4] = n) : n = e[4];
|
|
97
|
+
const a = n, m = `floatmenu-component ${s}`;
|
|
98
|
+
let t;
|
|
99
|
+
e[5] !== h || e[6] !== x ? (t = /* @__PURE__ */ o.jsx(S, { name: "grid", size: x, color: h }), e[5] = h, e[6] = x, e[7] = t) : t = e[7];
|
|
100
|
+
let l;
|
|
101
|
+
e[8] !== u || e[9] !== c || e[10] !== i || e[11] !== r ? (l = i || r ? c() : u, e[8] = u, e[9] = c, e[10] = i, e[11] = r, e[12] = l) : l = e[12];
|
|
102
|
+
let C;
|
|
103
|
+
e[13] !== t || e[14] !== l ? (C = /* @__PURE__ */ o.jsx(F, { transparent: !0, boxShadow: !1, dropdown: !0, icon: t, customClass: "buttonfloat", tabIndex: -1, isFloatMenu: !0, customClassForDropdown: "-floatdropdown", showIconDropdown: !1, children: l }, "button-"), e[13] = t, e[14] = l, e[15] = C) : C = e[15];
|
|
104
|
+
let w;
|
|
105
|
+
e[16] !== m || e[17] !== C ? (w = /* @__PURE__ */ o.jsx("div", { className: m, children: C }), e[16] = m, e[17] = C, e[18] = w) : w = e[18];
|
|
106
|
+
let v;
|
|
107
|
+
return e[19] !== a || e[20] !== w ? (v = /* @__PURE__ */ o.jsx(_.Provider, { value: a, children: w }), e[19] = a, e[20] = w, e[21] = v) : v = e[21], v;
|
|
87
108
|
};
|
|
88
109
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
110
|
+
K as MenuItem,
|
|
111
|
+
g as SubMenuContainer,
|
|
112
|
+
V as default
|
|
92
113
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "../../icons/index.js";
|
|
4
|
+
const f = (c) => {
|
|
5
|
+
const e = a.c(6), {
|
|
6
|
+
onExpandMenu: t,
|
|
7
|
+
expandMenuCustomClass: i,
|
|
8
|
+
iconName: s
|
|
9
|
+
} = c, m = `openclosemenu ${i}`;
|
|
10
|
+
let n;
|
|
11
|
+
e[0] !== s ? (n = /* @__PURE__ */ r.jsx(l, { name: s, size: 16 }), e[0] = s, e[1] = n) : n = e[1];
|
|
12
|
+
let o;
|
|
13
|
+
return e[2] !== t || e[3] !== m || e[4] !== n ? (o = /* @__PURE__ */ r.jsx("div", { className: m, role: "button", tabIndex: 0, onClick: t, onKeyPress: p, children: n }), e[2] = t, e[3] = m, e[4] = n, e[5] = o) : o = e[5], o;
|
|
14
|
+
};
|
|
15
|
+
function p() {
|
|
16
|
+
}
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
f as default
|
|
17
19
|
};
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { j as f } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { Link as p } from "react-router-dom";
|
|
4
|
+
import u from "../../internals/withTooltip.js";
|
|
5
|
+
const a = (s) => {
|
|
6
|
+
const t = c.c(6), {
|
|
7
|
+
url: r,
|
|
8
|
+
children: i,
|
|
9
|
+
targetRef: o,
|
|
10
|
+
disabled: m
|
|
11
|
+
} = s;
|
|
12
|
+
if (r && !m) {
|
|
13
|
+
let e;
|
|
14
|
+
t[0] !== o ? (e = (l) => {
|
|
15
|
+
o && o(l);
|
|
16
|
+
}, t[0] = o, t[1] = e) : e = t[1];
|
|
17
|
+
let n;
|
|
18
|
+
return t[2] !== i || t[3] !== e || t[4] !== r ? (n = /* @__PURE__ */ f.jsx(p, { to: r, className: "menulink", ref: e, children: i }), t[2] = i, t[3] = e, t[4] = r, t[5] = n) : n = t[5], n;
|
|
13
19
|
}
|
|
14
|
-
|
|
20
|
+
return i;
|
|
21
|
+
}, L = u(a);
|
|
15
22
|
export {
|
|
16
|
-
|
|
23
|
+
L as default
|
|
17
24
|
};
|
|
@@ -1,17 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
);
|
|
1
|
+
import { j as a } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as u } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as p } from "react";
|
|
4
|
+
import x, { SideNavContext as f } from "./helpers.js";
|
|
5
|
+
const N = (c) => {
|
|
6
|
+
const t = u.c(7), {
|
|
7
|
+
children: o,
|
|
8
|
+
scrollable: i,
|
|
9
|
+
style: r
|
|
10
|
+
} = c, {
|
|
11
|
+
isExpanded: l,
|
|
12
|
+
menuSize: n
|
|
13
|
+
} = p(f);
|
|
14
|
+
let e;
|
|
15
|
+
t[0] !== l || t[1] !== n ? (e = x(l, n), t[0] = l, t[1] = n, t[2] = e) : e = t[2];
|
|
16
|
+
const m = `${i && "customscroll"} ${e}`;
|
|
17
|
+
let s;
|
|
18
|
+
return t[3] !== o || t[4] !== r || t[5] !== m ? (s = /* @__PURE__ */ a.jsx("ul", { style: r, className: m, children: o }), t[3] = o, t[4] = r, t[5] = m, t[6] = s) : s = t[6], s;
|
|
14
19
|
};
|
|
15
20
|
export {
|
|
16
|
-
|
|
21
|
+
N as default
|
|
17
22
|
};
|
|
@@ -1,116 +1,136 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
import { j as s } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as xe } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as F, useRef as ie, useContext as be, useEffect as me, Fragment as we } from "react";
|
|
4
|
+
import ve from "../../internals/withTooltip.js";
|
|
5
|
+
import Se from "../../icons/index.js";
|
|
6
|
+
import Ce from "./MenuLink.js";
|
|
7
|
+
import { SideNavContext as Me, SubMenuContext as Ne } from "./helpers.js";
|
|
8
|
+
import { actionsOnPermissionDenied as je, OPTIONS_ON_DENIED as fe } from "../../permissionValidations.js";
|
|
9
|
+
const De = (N) => {
|
|
10
|
+
const e = xe.c(67), {
|
|
11
|
+
iconName: j,
|
|
12
|
+
title: c,
|
|
13
|
+
children: v,
|
|
14
|
+
childrenIsSubMenu: se,
|
|
15
|
+
url: de,
|
|
16
|
+
customClass: he,
|
|
17
|
+
permissionAttr: B,
|
|
18
|
+
maxWidth: oe,
|
|
19
|
+
minWidth: le,
|
|
20
|
+
columnsQtty: A,
|
|
21
|
+
targetRef: D,
|
|
22
|
+
disableDefaultStyle: re,
|
|
23
|
+
style: Q,
|
|
24
|
+
customClassForDropdown: V,
|
|
25
|
+
showDropdownOnClick: ce
|
|
26
|
+
} = N, E = se === void 0 ? !0 : se, q = oe === void 0 ? "90%" : oe, G = le === void 0 ? 500 : le, I = re === void 0 ? !1 : re, t = ce === void 0 ? !1 : ce, [i, R] = F(!1);
|
|
27
|
+
let y;
|
|
28
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = {}, e[0] = y) : y = e[0];
|
|
29
|
+
const [o, ue] = F(y), [u, J] = F(!1), ae = ie(null), K = ie(null), U = ie(null);
|
|
30
|
+
let H, O;
|
|
31
|
+
if (e[1] !== B) {
|
|
32
|
+
const n = [fe.disabled, fe.unvisible];
|
|
33
|
+
H = F, O = je(n, B), e[1] = B, e[2] = H, e[3] = O;
|
|
34
|
+
} else
|
|
35
|
+
H = e[2], O = e[3];
|
|
36
|
+
const [ge] = H(O), {
|
|
37
|
+
isExpanded: X,
|
|
38
|
+
menuSize: S,
|
|
39
|
+
openSearchMenuPopup: Y
|
|
40
|
+
} = be(Me), {
|
|
41
|
+
unvisible: pe,
|
|
42
|
+
disabled: l
|
|
43
|
+
} = ge;
|
|
44
|
+
let $;
|
|
45
|
+
e[4] !== t ? ($ = (n) => {
|
|
46
|
+
if (t)
|
|
47
|
+
return;
|
|
48
|
+
const r = window.innerHeight, M = n.target.getBoundingClientRect();
|
|
49
|
+
R(!0), ue(M), M.bottom >= r - 150 && J(!0);
|
|
50
|
+
}, e[4] = t, e[5] = $) : $ = e[5];
|
|
51
|
+
const Z = $;
|
|
52
|
+
let T;
|
|
53
|
+
e[6] !== t || e[7] !== i ? (T = (n) => {
|
|
54
|
+
if (t && n) {
|
|
55
|
+
const r = n.target;
|
|
56
|
+
if (r === U.current) {
|
|
57
|
+
const C = window.innerHeight, M = r.getBoundingClientRect();
|
|
58
|
+
R(!i), ue(M), M.bottom >= C - 150 && J(!0);
|
|
36
59
|
}
|
|
37
60
|
}
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
61
|
+
}, e[6] = t, e[7] = i, e[8] = T) : T = e[8];
|
|
62
|
+
const a = T;
|
|
63
|
+
let k;
|
|
64
|
+
e[9] !== a ? (k = {
|
|
65
|
+
toggleSubMenu: a
|
|
66
|
+
}, e[9] = a, e[10] = k) : k = e[10];
|
|
67
|
+
const ee = k;
|
|
68
|
+
let W, _;
|
|
69
|
+
e[11] !== t || e[12] !== i ? (W = () => {
|
|
70
|
+
i && t && document.addEventListener("click", (n) => {
|
|
71
|
+
const r = n.target;
|
|
72
|
+
U.current?.contains(r) || R(!1);
|
|
46
73
|
});
|
|
47
|
-
}, [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
)
|
|
110
|
-
]
|
|
111
|
-
}
|
|
112
|
-
) });
|
|
113
|
-
}, ae = J(ee);
|
|
74
|
+
}, _ = [i, t], e[11] = t, e[12] = i, e[13] = W, e[14] = _) : (W = e[13], _ = e[14]), me(W, _);
|
|
75
|
+
let L;
|
|
76
|
+
e[15] !== u || e[16] !== o ? (L = () => {
|
|
77
|
+
const n = ae.current?.clientHeight || 0, r = K.current?.clientHeight || 0, C = u ? "100%" : (window.innerHeight - o.top - (n - r) - 1).toString().concat("px") || "0px";
|
|
78
|
+
K.current?.style.setProperty("max-height", C);
|
|
79
|
+
}, e[15] = u, e[16] = o, e[17] = L) : L = e[17];
|
|
80
|
+
let P;
|
|
81
|
+
if (e[18] !== i ? (P = [i], e[18] = i, e[19] = P) : P = e[19], me(L, P), pe)
|
|
82
|
+
return null;
|
|
83
|
+
let m;
|
|
84
|
+
e[20] !== D ? (m = (n) => {
|
|
85
|
+
U.current = n, D && D(n);
|
|
86
|
+
}, e[20] = D, e[21] = m) : m = e[21];
|
|
87
|
+
const te = `item ${de && !l && "-withlink"} ${he} ${l && "-disabled"}`;
|
|
88
|
+
let f;
|
|
89
|
+
e[22] !== t ? (f = () => {
|
|
90
|
+
t || (R(!1), J(!1));
|
|
91
|
+
}, e[22] = t, e[23] = f) : f = e[23];
|
|
92
|
+
let d;
|
|
93
|
+
e[24] !== t || e[25] !== a ? (d = (n) => {
|
|
94
|
+
t && a(n);
|
|
95
|
+
}, e[24] = t, e[25] = a, e[26] = d) : d = e[26];
|
|
96
|
+
let h;
|
|
97
|
+
e[27] !== j || e[28] !== S ? (h = j && /* @__PURE__ */ s.jsx(Se, { name: j, size: S === "small" && 16 || S === "medium" && 24 || S === "large" && 32 || 16, customClassForContainer: "menuicon-container", customClass: "menuicon" }), e[27] = j, e[28] = S, e[29] = h) : h = e[29];
|
|
98
|
+
let g;
|
|
99
|
+
e[30] !== X || e[31] !== c ? (g = X && /* @__PURE__ */ s.jsx("span", { className: "title", children: c }), e[30] = X, e[31] = c, e[32] = g) : g = e[32];
|
|
100
|
+
const ne = !E && v;
|
|
101
|
+
let p;
|
|
102
|
+
e[33] !== h || e[34] !== g || e[35] !== ne ? (p = /* @__PURE__ */ s.jsxs(we, { children: [
|
|
103
|
+
h,
|
|
104
|
+
g,
|
|
105
|
+
ne
|
|
106
|
+
] }), e[33] = h, e[34] = g, e[35] = ne, e[36] = p) : p = e[36];
|
|
107
|
+
let x;
|
|
108
|
+
e[37] !== l || e[38] !== N || e[39] !== p ? (x = /* @__PURE__ */ s.jsx(Ce, { disabled: l, ...N, targetRef: null, children: p }), e[37] = l, e[38] = N, e[39] = p, e[40] = x) : x = e[40];
|
|
109
|
+
let b;
|
|
110
|
+
e[41] !== v || e[42] !== E || e[43] !== A || e[44] !== V || e[45] !== I || e[46] !== l || e[47] !== u || e[48] !== q || e[49] !== G || e[50] !== Y || e[51] !== i || e[52] !== o || e[53] !== c ? (b = i && v && E && !l && !Y && /* @__PURE__ */ s.jsxs("div", { ref: ae, className: `${V} ${I ? "" : "submenu-container"}`, style: u ? {
|
|
111
|
+
marginLeft: o.width,
|
|
112
|
+
bottom: "0",
|
|
113
|
+
position: "fixed",
|
|
114
|
+
zIndex: I ? 999999999 : void 0
|
|
115
|
+
} : {
|
|
116
|
+
marginLeft: o.width,
|
|
117
|
+
top: o.top,
|
|
118
|
+
minWidth: G,
|
|
119
|
+
maxWidth: q
|
|
120
|
+
}, children: [
|
|
121
|
+
/* @__PURE__ */ s.jsx("h1", { className: "title", children: c }),
|
|
122
|
+
/* @__PURE__ */ s.jsx("div", { ref: K, className: "submenu", style: {
|
|
123
|
+
gridTemplateColumns: `repeat(${A}, 1fr)`
|
|
124
|
+
}, children: v })
|
|
125
|
+
] }), e[41] = v, e[42] = E, e[43] = A, e[44] = V, e[45] = I, e[46] = l, e[47] = u, e[48] = q, e[49] = G, e[50] = Y, e[51] = i, e[52] = o, e[53] = c, e[54] = b) : b = e[54];
|
|
126
|
+
let w;
|
|
127
|
+
e[55] !== Z || e[56] !== Q || e[57] !== m || e[58] !== te || e[59] !== f || e[60] !== d || e[61] !== x || e[62] !== b ? (w = /* @__PURE__ */ s.jsxs("li", { style: Q, ref: m, className: te, onMouseEnter: Z, onMouseLeave: f, onClick: d, children: [
|
|
128
|
+
x,
|
|
129
|
+
b
|
|
130
|
+
] }), e[55] = Z, e[56] = Q, e[57] = m, e[58] = te, e[59] = f, e[60] = d, e[61] = x, e[62] = b, e[63] = w) : w = e[63];
|
|
131
|
+
let z;
|
|
132
|
+
return e[64] !== ee || e[65] !== w ? (z = /* @__PURE__ */ s.jsx(Ne.Provider, { value: ee, children: w }), e[64] = ee, e[65] = w, e[66] = z) : z = e[66], z;
|
|
133
|
+
}, ke = ve(De);
|
|
114
134
|
export {
|
|
115
|
-
|
|
135
|
+
ke as default
|
|
116
136
|
};
|