react-luminus-components 1.3.221 → 1.3.223
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/README.md +349 -349
- package/dist/.vite/manifest.json +52 -52
- package/dist/Loading-BHSN3kz4.cjs +1 -0
- package/dist/{Loading-BoJjAzWf.js → Loading-DuLgnQ2I.js} +1 -1
- package/dist/components/Form/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/HookForm/CustomSelectInput/CustomSelectInput.d.ts +1 -1
- package/dist/components/ResponsiveTabs/ResponsiveTabs.d.ts +2 -2
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +30 -30
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +33 -33
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +22 -22
- package/dist/main.cjs.js +50 -50
- package/dist/main.es.js +9445 -9444
- package/dist/models/prop-types/InputProps/SelectInputProps.d.ts +1 -0
- package/dist/{ShortcutLinksContext-DzfphCu1.js → nivo-bar.es-DZ4VU2jA.js} +10455 -10457
- package/dist/{ShortcutLinksContext-quiVpTmR.cjs → nivo-bar.es-jWuvqw9Y.cjs} +6 -6
- package/dist/{searchUtils-CT79l-ew.js → searchUtils-BsCd2hJS.js} +1 -1
- package/dist/searchUtils-DzNl1kFt.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/useGetApiData-Cmn4D8m2.cjs +1 -0
- package/dist/{useGetApiData-YEm7lmsw.js → useGetApiData-D9yWD6tn.js} +4 -4
- package/dist/usePermissions-D-byaRUU.cjs +1 -0
- package/dist/usePermissions-gjBM7vmg.js +21 -0
- package/dist/useRenderDraggableInPortal-C-qhwY8M.cjs +1 -0
- package/dist/{useRenderDraggableInPortal-BEwjtw-a.js → useRenderDraggableInPortal-D8TdKbXi.js} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +19 -19
- package/dist/variables.scss +165 -165
- package/package.json +120 -120
- package/dist/Loading-KVIIRls8.cjs +0 -1
- package/dist/searchUtils-B2D3GrPW.cjs +0 -1
- package/dist/useGetApiData-2F1aGcu6.cjs +0 -1
- package/dist/usePermissions-BUSAoqoR.js +0 -21
- package/dist/usePermissions-Bt-U0tyQ.cjs +0 -1
- package/dist/useRenderDraggableInPortal-BEHshGHp.cjs +0 -1
package/dist/hooks.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { bC as
|
|
1
|
+
import { ar as S, at as P, b3 as L } from "./nivo-bar.es-DZ4VU2jA.js";
|
|
2
|
+
import { bC as j, aq as H, ae as J, au as M, ap as V, aI as X, bD as Y } from "./nivo-bar.es-DZ4VU2jA.js";
|
|
3
3
|
import { u as ee } from "./useClickOutside-BmlXg38T.js";
|
|
4
|
-
import { u as se } from "./usePermissions-
|
|
5
|
-
import { u as
|
|
6
|
-
import { u as fe } from "./useGetApiData-
|
|
7
|
-
import { useState as
|
|
4
|
+
import { u as se } from "./usePermissions-gjBM7vmg.js";
|
|
5
|
+
import { u as re, e as oe, a as ne, b as ue, c as ce, d as le } from "./useRenderDraggableInPortal-D8TdKbXi.js";
|
|
6
|
+
import { u as fe } from "./useGetApiData-D9yWD6tn.js";
|
|
7
|
+
import { useState as b, useEffect as C, useContext as T, useRef as U, useCallback as $ } from "react";
|
|
8
8
|
import { u as me } from "./useLocalStorageState-Bt99kkCr.js";
|
|
9
9
|
import "react-router-dom";
|
|
10
10
|
import "react-dom";
|
|
@@ -12,9 +12,9 @@ import "react-hook-form";
|
|
|
12
12
|
import "react-flexmonster";
|
|
13
13
|
import "@azure/msal-browser";
|
|
14
14
|
import "@azure/msal-react";
|
|
15
|
-
const B = (
|
|
15
|
+
const B = (r) => {
|
|
16
16
|
let e = "pending", a;
|
|
17
|
-
const t =
|
|
17
|
+
const t = r.then((s) => {
|
|
18
18
|
e = "success", a = s;
|
|
19
19
|
}, (s) => {
|
|
20
20
|
e = "error", a = s;
|
|
@@ -32,26 +32,26 @@ const B = (o) => {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
function z(
|
|
36
|
-
const a =
|
|
35
|
+
function z(r, e) {
|
|
36
|
+
const a = S({
|
|
37
37
|
silent: !0,
|
|
38
38
|
differentBaseUrl: e == null ? void 0 : e.customBaseUrl,
|
|
39
39
|
customToken: e == null ? void 0 : e.customToken
|
|
40
|
-
}), [t, s] =
|
|
40
|
+
}), [t, s] = b(null);
|
|
41
41
|
return C(() => {
|
|
42
42
|
(async () => {
|
|
43
|
-
const
|
|
44
|
-
s(B(
|
|
43
|
+
const o = a.get(r).then((n) => n.data);
|
|
44
|
+
s(B(o));
|
|
45
45
|
})();
|
|
46
|
-
}, [a,
|
|
46
|
+
}, [a, r]), t;
|
|
47
47
|
}
|
|
48
|
-
const E = (
|
|
48
|
+
const E = (r, e, a) => {
|
|
49
49
|
let t = "pending", s;
|
|
50
|
-
const c =
|
|
51
|
-
t = "success", s =
|
|
52
|
-
}, (
|
|
53
|
-
const n =
|
|
54
|
-
(n == null ? void 0 : n.status) === 404 && a ? (t = "error-404", s =
|
|
50
|
+
const c = r.then((o) => {
|
|
51
|
+
t = "success", s = o;
|
|
52
|
+
}, (o) => {
|
|
53
|
+
const n = o == null ? void 0 : o.response;
|
|
54
|
+
(n == null ? void 0 : n.status) === 404 && a ? (t = "error-404", s = o) : (t = "error", s = o);
|
|
55
55
|
});
|
|
56
56
|
return () => {
|
|
57
57
|
switch (t) {
|
|
@@ -73,26 +73,26 @@ const E = (o, e, a) => {
|
|
|
73
73
|
enabled: !0,
|
|
74
74
|
nullStateBeforeLoad: !0,
|
|
75
75
|
nullStateOnFail: !1
|
|
76
|
-
},
|
|
77
|
-
const p =
|
|
76
|
+
}, K = (r, { loadOnInit: e = u.loadOnInit, enabled: a = u.enabled, silent: t = u.silent, nullStateBeforeLoad: s = u.nullStateBeforeLoad, nullStateOnFail: c = u.nullStateOnFail, customApiUrl: o, customBearerToken: n, dataTransformer: i, errorBoundaryOn404: f } = u) => {
|
|
77
|
+
const p = S({
|
|
78
78
|
silent: t,
|
|
79
79
|
customToken: n,
|
|
80
|
-
differentBaseUrl:
|
|
80
|
+
differentBaseUrl: o,
|
|
81
81
|
noToastOnStatus: f ? [404] : void 0
|
|
82
|
-
}), { startLoading: h, stopLoading: g } = T(P), k = U(0), { isAuthenticated: w } = L(), [y, d] =
|
|
82
|
+
}), { startLoading: h, stopLoading: g } = T(P), k = U(0), { isAuthenticated: w } = L(), [y, d] = b(null), m = $(async (l, D) => {
|
|
83
83
|
if (!w() || a === !1)
|
|
84
84
|
return;
|
|
85
|
-
!t && h(`loadData-${
|
|
86
|
-
const A = p.get(
|
|
85
|
+
!t && h(`loadData-${r}-${D}`), s && d(null);
|
|
86
|
+
const A = p.get(r, {
|
|
87
87
|
signal: l
|
|
88
|
-
}).then((
|
|
88
|
+
}).then((x) => i ? i(x.data) : x.data).finally(() => !t && g(`loadData-${r}-${D}`));
|
|
89
89
|
d(E(A, c ?? !1, f ?? !1));
|
|
90
90
|
}, [
|
|
91
91
|
w,
|
|
92
92
|
a,
|
|
93
93
|
t,
|
|
94
94
|
h,
|
|
95
|
-
|
|
95
|
+
r,
|
|
96
96
|
s,
|
|
97
97
|
p,
|
|
98
98
|
i,
|
|
@@ -110,16 +110,16 @@ const E = (o, e, a) => {
|
|
|
110
110
|
}, [m, e]), { data: y, setData: d, reloadData: m };
|
|
111
111
|
};
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
j as cancelToken,
|
|
114
114
|
L as useAuth,
|
|
115
|
-
|
|
115
|
+
S as useAxios,
|
|
116
116
|
ee as useClickOutside,
|
|
117
|
-
|
|
117
|
+
re as useClipboard,
|
|
118
118
|
H as useConfirm,
|
|
119
|
-
|
|
119
|
+
oe as useEmployeePhotoPath,
|
|
120
120
|
J as useFormControlType,
|
|
121
121
|
fe as useGetApiData,
|
|
122
|
-
|
|
122
|
+
K as useGetApiDataBound,
|
|
123
123
|
z as useGetDataBound,
|
|
124
124
|
ne as useKeyPress,
|
|
125
125
|
me as useLocalStorageState,
|
package/dist/layout.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./nivo-bar.es-jWuvqw9Y.cjs"),x=require("react"),y=require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");const C=require("./useClickOutside-D0505nsm.cjs");require("react-dom");const k=require("./usePermissions-D-byaRUU.cjs"),P="_side-menu-item_1o1uo_1",f="_disabled_1o1uo_6",w="_nav-button_1o1uo_10",I="_child_1o1uo_18",S="_text_1o1uo_23",L="_icon_1o1uo_30",T="_collapse-icon_1o1uo_36",O="_collapsed_1o1uo_46",$="_collapse-icon-mini_1o1uo_49",A="_expanded_1o1uo_80",K="_children-container_1o1uo_86",D="_visible_1o1uo_94",F="_children_1o1uo_86",z="_mobile_1o1uo_106",o={"side-menu-item":"_side-menu-item_1o1uo_1",sideMenuItem:P,disabled:f,"nav-button":"_nav-button_1o1uo_10",navButton:w,child:I,text:S,icon:L,"collapse-icon":"_collapse-icon_1o1uo_36",collapseIcon:T,collapsed:O,"collapse-icon-mini":"_collapse-icon-mini_1o1uo_49",collapseIconMini:$,expanded:A,"children-container":"_children-container_1o1uo_86",childrenContainer:K,visible:D,children:F,mobile:z},U=({item:s,menuExpanded:i,useTooltips:l,children:r})=>s.tooltip&&!i&&l?e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:s.tooltip,placement:"top",delay:{show:1e3,hide:0},children:e.jsxRuntimeExports.jsx("div",{children:r})}):r,g=({item:s,menuExpanded:i,collapsed:l,onCollapse:r,currentPath:_,useHover:a,useTooltips:p,isMobile:E})=>{var M,q,v,N;const[d,h]=x.useState(!1),[j]=_.split("?"),R=s.linkTo===j||((M=s.children)==null?void 0:M.some(n=>n.linkTo===j)),u=x.useRef(null);return C.useClickOutside([u],()=>l&&r()),e.jsxRuntimeExports.jsxs("li",{ref:u,className:e.classNames("luminus-side-menu-item",o.sideMenuItem,{[o.mobile]:E},{[o.expanded]:i},{active:d||R},{open:l&&s.children},{[o.disabled]:s.disabled||s.notPermitted||((q=s.children)==null?void 0:q.every(n=>n.notPermitted||n.disabled))},{disabled:s.disabled||s.notPermitted||((v=s.children)==null?void 0:v.every(n=>n.notPermitted||n.disabled))}),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[e.jsxRuntimeExports.jsx(U,{item:s,menuExpanded:i,useTooltips:p,children:s.children?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.classNames("nav-link",o.navButton),onClick:()=>{r()},children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",o.icon),children:s.icon}),!a&&!i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon-mini rounded",o.collapseIconMini,{[o.collapsed]:l}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",o.text,"text-nowrap"),children:s.title}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon",o.collapseIcon,{[o.collapsed]:l}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})})]})}):e.jsxRuntimeExports.jsxs(y.Link,{to:s.disabled||s.notPermitted?"/":s.linkTo??"/",className:e.classNames("nav-link",o.navButton),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",o.icon),children:s.icon}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",o.text,"text-nowrap"),children:s.title})]})}),e.jsxRuntimeExports.jsx("div",{className:e.classNames("children-container",o.childrenContainer,{[o.visible]:l}),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("shadow rounded children",o.children),children:(N=s.children)==null?void 0:N.map(n=>e.jsxRuntimeExports.jsx(y.Link,{to:n.disabled||n.notPermitted?"/":n.linkTo??"/",className:e.classNames("nav-link child rounded",o.navButton,o.child,{[o.disabled]:n.disabled||n.notPermitted},{disabled:n.disabled||n.notPermitted}),onClick:r,children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",o.text,"text-nowrap"),children:n.title})},n.linkTo))})})]})},W="_side-menu_1q9oh_1",G="_sidebar-header_1q9oh_15",J="_side-menu-content_1q9oh_22",Q="_expand_1q9oh_27",V="_only-logo_1q9oh_31",X="_mobile_1q9oh_34",Y="_divider_1q9oh_49",m={"side-menu":"_side-menu_1q9oh_1",sideMenu:W,"sidebar-header":"_sidebar-header_1q9oh_15",sidebarHeader:G,"side-menu-content":"_side-menu-content_1q9oh_22",sideMenuContent:J,expand:Q,"only-logo":"_only-logo_1q9oh_31",onlyLogo:V,mobile:X,divider:Y},Z=({headerItem:s,searchItem:i,shortcutsItem:l,mainItems:r,secondaryItems:_,expanded:a,setExpanded:p,currentPath:E,useHover:d,useTooltips:h})=>{const[j,R]=x.useState(-1),{checkUserHasPermissions:u}=k.usePermissions(),M=x.useMemo(()=>r.map(t=>{var c;return{...t,notPermitted:!u(t.permissions??[],"any"),children:(c=t.children)==null?void 0:c.map(b=>({...b,notPermitted:!u(b.permissions??[],"any"),disabled:t.disabled||b.disabled}))}}),[r,u]),q=x.useMemo(()=>_.map(t=>{var c;return{...t,notPermitted:!u(t.permissions??[],"any"),children:(c=t.children)==null?void 0:c.map(b=>({...b,notPermitted:!u(b.permissions??[],"any")}))}}),[_,u]),v=t=>{R(t===j?-1:t)};x.useEffect(()=>{a||R(-1)},[a]);const N=x.useRef(null);C.useClickOutside([N],()=>p(!1));const{isMobile:n}=e.useWindowSize();return e.jsxRuntimeExports.jsxs("section",{ref:N,className:e.classNames("luminus-side-menu shadow",m.sideMenu,{[m.mobile]:n},{[m.expand]:a},{expand:a}),onMouseEnter:()=>d&&p(!0),onMouseLeave:()=>d&&p(!1),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("sidebar-header",m.sidebarHeader,{[m.onlyLogo]:d}),role:d?void 0:"button",onClick:d?void 0:()=>p(!a),children:d?s:a?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardDoubleArrowLeft,{}),s]}):e.jsxRuntimeExports.jsx(e.MdOutlineMenu,{})}),a&&(i||l)?e.jsxRuntimeExports.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[l&&a?l:null,i&&a?i:null]}):null,e.jsxRuntimeExports.jsxs("ul",{className:m.sideMenuContent,children:[M.map((t,c)=>e.jsxRuntimeExports.jsx(g,{item:t,menuExpanded:a,collapsed:c===j,onCollapse:()=>v(c),currentPath:E,useHover:d,useTooltips:h,isMobile:n},t.title)),e.jsxRuntimeExports.jsx("hr",{className:e.classNames("divider",m.divider)}),q.map((t,c)=>e.jsxRuntimeExports.jsx(g,{item:t,menuExpanded:a,collapsed:c===j,onCollapse:()=>v(c),currentPath:E,useHover:d,useTooltips:h,isMobile:n},t.title))]})]})},H="_top-bar_lnmq0_1",ee="_top-bar-brand_lnmq0_12",B={"top-bar":"_top-bar_lnmq0_1",topBar:H,"top-bar-brand":"_top-bar-brand_lnmq0_12",topBarBrand:ee},se=({appName:s,leftOffset:i,leftContent:l,centerContent:r,rightContent:_})=>e.jsxRuntimeExports.jsx("nav",{className:e.classNames("luminus-top-bar shadow",B.topBar),style:{width:i?`calc(100% - ${i}px)`:void 0,left:i?`${i}px`:void 0},children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 row g-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[e.jsxRuntimeExports.jsx(y.Link,{to:"/",className:e.classNames("luminus-top-bar-brand",B.topBarBrand),children:s}),l]}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex align-items-center",children:r??null}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:_??null})]})});exports.PageContainer=e.PageContainer;exports.SideContentBar=e.SideContentBar;exports.SideMenu=Z;exports.TopBar=se;
|
package/dist/layout.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as e, c as i, aa as B,
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
1
|
+
import { j as e, c as i, aa as B, aG as T, aI as R, bq as S, br as $ } from "./nivo-bar.es-DZ4VU2jA.js";
|
|
2
|
+
import { aw as ye, bs as ge } from "./nivo-bar.es-DZ4VU2jA.js";
|
|
3
|
+
import { useState as P, useRef as I, useMemo as C, useEffect as A } from "react";
|
|
4
4
|
import { Link as q } from "react-router-dom";
|
|
5
5
|
import "react-hook-form";
|
|
6
6
|
import "react-flexmonster";
|
|
@@ -8,30 +8,30 @@ import "@azure/msal-browser";
|
|
|
8
8
|
import "@azure/msal-react";
|
|
9
9
|
import { u as L } from "./useClickOutside-BmlXg38T.js";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
import { u as F } from "./usePermissions-
|
|
12
|
-
const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1o1uo_10", D = "_child_1o1uo_18",
|
|
11
|
+
import { u as F } from "./usePermissions-gjBM7vmg.js";
|
|
12
|
+
const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", G = "_text_1o1uo_23", U = "_icon_1o1uo_30", W = "_collapse-icon_1o1uo_36", E = "_collapsed_1o1uo_46", J = "_collapse-icon-mini_1o1uo_49", Q = "_expanded_1o1uo_80", V = "_children-container_1o1uo_86", X = "_visible_1o1uo_94", Y = "_children_1o1uo_86", Z = "_mobile_1o1uo_106", s = {
|
|
13
13
|
"side-menu-item": "_side-menu-item_1o1uo_1",
|
|
14
14
|
sideMenuItem: K,
|
|
15
15
|
disabled: O,
|
|
16
16
|
"nav-button": "_nav-button_1o1uo_10",
|
|
17
17
|
navButton: z,
|
|
18
18
|
child: D,
|
|
19
|
-
text:
|
|
20
|
-
icon:
|
|
19
|
+
text: G,
|
|
20
|
+
icon: U,
|
|
21
21
|
"collapse-icon": "_collapse-icon_1o1uo_36",
|
|
22
|
-
collapseIcon:
|
|
23
|
-
collapsed:
|
|
22
|
+
collapseIcon: W,
|
|
23
|
+
collapsed: E,
|
|
24
24
|
"collapse-icon-mini": "_collapse-icon-mini_1o1uo_49",
|
|
25
|
-
collapseIconMini:
|
|
26
|
-
expanded:
|
|
25
|
+
collapseIconMini: J,
|
|
26
|
+
expanded: Q,
|
|
27
27
|
"children-container": "_children-container_1o1uo_86",
|
|
28
|
-
childrenContainer:
|
|
29
|
-
visible:
|
|
30
|
-
children:
|
|
31
|
-
mobile:
|
|
32
|
-
},
|
|
28
|
+
childrenContainer: V,
|
|
29
|
+
visible: X,
|
|
30
|
+
children: Y,
|
|
31
|
+
mobile: Z
|
|
32
|
+
}, H = ({ item: n, menuExpanded: l, useTooltips: a, children: c }) => n.tooltip && !l && a ? /* @__PURE__ */ e.jsx(T, { text: n.tooltip, placement: "top", delay: { show: 1e3, hide: 0 }, children: /* @__PURE__ */ e.jsx("div", { children: c }) }) : c, k = ({ item: n, menuExpanded: l, collapsed: a, onCollapse: c, currentPath: p, useHover: d, useTooltips: b, isMobile: f }) => {
|
|
33
33
|
var y, g, M, N;
|
|
34
|
-
const [_, v] =
|
|
34
|
+
const [_, v] = P(!1), [h] = p.split("?"), j = n.linkTo === h || ((y = n.children) == null ? void 0 : y.some((o) => o.linkTo === h)), u = I(null);
|
|
35
35
|
return L([u], () => a && c()), /* @__PURE__ */ e.jsxs("li", { ref: u, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: f }, {
|
|
36
36
|
[s.expanded]: l
|
|
37
37
|
}, { active: _ || j }, { open: a && n.children }, {
|
|
@@ -39,7 +39,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
39
39
|
}, {
|
|
40
40
|
disabled: n.disabled || n.notPermitted || ((M = n.children) == null ? void 0 : M.every((o) => o.notPermitted || o.disabled))
|
|
41
41
|
}), onMouseEnter: () => v(!0), onMouseLeave: () => v(!1), children: [
|
|
42
|
-
/* @__PURE__ */ e.jsx(
|
|
42
|
+
/* @__PURE__ */ e.jsx(H, { item: n, menuExpanded: l, useTooltips: b, children: n.children ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("button", { type: "button", className: i("nav-link", s.navButton), onClick: () => {
|
|
43
43
|
c();
|
|
44
44
|
}, children: [
|
|
45
45
|
/* @__PURE__ */ e.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
@@ -71,7 +71,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
71
71
|
mobile: le,
|
|
72
72
|
divider: te
|
|
73
73
|
}, je = ({ headerItem: n, searchItem: l, shortcutsItem: a, mainItems: c, secondaryItems: p, expanded: d, setExpanded: b, currentPath: f, useHover: _, useTooltips: v }) => {
|
|
74
|
-
const [h, j] =
|
|
74
|
+
const [h, j] = P(-1), { checkUserHasPermissions: u } = F(), y = C(() => c.map((t) => {
|
|
75
75
|
var r;
|
|
76
76
|
return {
|
|
77
77
|
...t,
|
|
@@ -120,17 +120,17 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
120
120
|
g.map((t, r) => /* @__PURE__ */ e.jsx(k, { item: t, menuExpanded: d, collapsed: r === h, onCollapse: () => M(r), currentPath: f, useHover: _, useTooltips: v, isMobile: o }, t.title))
|
|
121
121
|
] })
|
|
122
122
|
] });
|
|
123
|
-
}, ae = "_top-bar_lnmq0_1", de = "_top-bar-brand_lnmq0_12",
|
|
123
|
+
}, ae = "_top-bar_lnmq0_1", de = "_top-bar-brand_lnmq0_12", w = {
|
|
124
124
|
"top-bar": "_top-bar_lnmq0_1",
|
|
125
125
|
topBar: ae,
|
|
126
126
|
"top-bar-brand": "_top-bar-brand_lnmq0_12",
|
|
127
127
|
topBarBrand: de
|
|
128
|
-
}, Me = ({ appName: n, leftOffset: l, leftContent: a, centerContent: c, rightContent: p }) => /* @__PURE__ */ e.jsx("nav", { className: i("luminus-top-bar shadow",
|
|
128
|
+
}, Me = ({ appName: n, leftOffset: l, leftContent: a, centerContent: c, rightContent: p }) => /* @__PURE__ */ e.jsx("nav", { className: i("luminus-top-bar shadow", w.topBar), style: {
|
|
129
129
|
width: l ? `calc(100% - ${l}px)` : void 0,
|
|
130
130
|
left: l ? `${l}px` : void 0
|
|
131
131
|
}, children: /* @__PURE__ */ e.jsxs("div", { className: "w-100 row g-0", children: [
|
|
132
132
|
/* @__PURE__ */ e.jsxs("div", { className: "col-4 d-flex gap-3 align-items-center", children: [
|
|
133
|
-
/* @__PURE__ */ e.jsx(q, { to: "/", className: i("luminus-top-bar-brand",
|
|
133
|
+
/* @__PURE__ */ e.jsx(q, { to: "/", className: i("luminus-top-bar-brand", w.topBarBrand), children: n }),
|
|
134
134
|
a
|
|
135
135
|
] }),
|
|
136
136
|
/* @__PURE__ */ e.jsx("div", { className: "col-4 d-flex align-items-center", children: c ?? null }),
|