react-luminus-components 1.3.232 → 1.3.234

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/layout.es.js CHANGED
@@ -1,19 +1,19 @@
1
- import { ag as w, j as e, c as i, $ as q, ax as T, a6 as $, bn as R, bo as S } from "./ShortcutLinksContext-DBXwC8rm.js";
2
- import { b7 as fe, bp as ye } from "./ShortcutLinksContext-DBXwC8rm.js";
1
+ import { aK as w, j as e, c as i, $ as q, az as T, aB as $, bn as R, bo as S } from "./nivo-bar.es-DZaV8FRO.js";
2
+ import { ap as fe, bp as ye } from "./nivo-bar.es-DZaV8FRO.js";
3
3
  import { useState as I, useRef as L, useMemo as C, useEffect as A } from "react";
4
- import { Link as B } from "react-router-dom";
4
+ import { Link as g } from "react-router-dom";
5
5
  import "react-hook-form";
6
6
  import "react-flexmonster";
7
7
  import "@azure/msal-browser";
8
8
  import "@azure/msal-react";
9
9
  import "react-dom";
10
- import { u as F } from "./usePermissions-ClB7avYQ.js";
11
- const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", U = "_text_1o1uo_23", W = "_icon_1o1uo_30", E = "_collapse-icon_1o1uo_36", G = "_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 = {
10
+ import { u as K } from "./usePermissions-CHH0GDGS.js";
11
+ const z = "_side-menu-item_1o1uo_1", F = "_disabled_1o1uo_6", O = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", U = "_text_1o1uo_23", W = "_icon_1o1uo_30", E = "_collapse-icon_1o1uo_36", G = "_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 = {
12
12
  "side-menu-item": "_side-menu-item_1o1uo_1",
13
- sideMenuItem: K,
14
- disabled: O,
13
+ sideMenuItem: z,
14
+ disabled: F,
15
15
  "nav-button": "_nav-button_1o1uo_10",
16
- navButton: z,
16
+ navButton: O,
17
17
  child: D,
18
18
  text: U,
19
19
  icon: W,
@@ -29,12 +29,12 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
29
29
  children: Y,
30
30
  mobile: Z
31
31
  }, 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 }) => {
32
- var y, g, M, N;
32
+ var y, B, M, N;
33
33
  const [_, v] = I(!1), [h] = p.split("?"), j = n.linkTo === h || ((y = n.children) == null ? void 0 : y.some((o) => o.linkTo === h)), u = L(null);
34
34
  return w([u], () => a && c()), /* @__PURE__ */ e.jsxs("li", { ref: u, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: f }, {
35
35
  [s.expanded]: l
36
36
  }, { active: _ || j }, { open: a && n.children }, {
37
- [s.disabled]: n.disabled || n.notPermitted || ((g = n.children) == null ? void 0 : g.every((o) => o.notPermitted || o.disabled))
37
+ [s.disabled]: n.disabled || n.notPermitted || ((B = n.children) == null ? void 0 : B.every((o) => o.notPermitted || o.disabled))
38
38
  }, {
39
39
  disabled: n.disabled || n.notPermitted || ((M = n.children) == null ? void 0 : M.every((o) => o.notPermitted || o.disabled))
40
40
  }), onMouseEnter: () => v(!0), onMouseLeave: () => v(!1), children: [
@@ -49,13 +49,13 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
49
49
  l && /* @__PURE__ */ e.jsx("div", { className: i("collapse-icon", s.collapseIcon, {
50
50
  [s.collapsed]: a
51
51
  }), children: /* @__PURE__ */ e.jsx(q, {}) })
52
- ] }) }) : /* @__PURE__ */ e.jsxs(B, { to: n.disabled || n.notPermitted ? "/" : n.linkTo ?? "/", className: i("nav-link", s.navButton), children: [
52
+ ] }) }) : /* @__PURE__ */ e.jsxs(g, { to: n.disabled || n.notPermitted ? "/" : n.linkTo ?? "/", className: i("nav-link", s.navButton), children: [
53
53
  /* @__PURE__ */ e.jsx("div", { className: i("icon", s.icon), children: n.icon }),
54
54
  l && /* @__PURE__ */ e.jsx("div", { className: i("text", s.text, "text-nowrap"), children: n.title })
55
55
  ] }) }),
56
56
  /* @__PURE__ */ e.jsx("div", { className: i("children-container", s.childrenContainer, {
57
57
  [s.visible]: a
58
- }), children: /* @__PURE__ */ e.jsx("div", { className: i("shadow rounded children", s.children), children: (N = n.children) == null ? void 0 : N.map((o) => /* @__PURE__ */ e.jsx(B, { to: o.disabled || o.notPermitted ? "/" : o.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: o.disabled || o.notPermitted }, { disabled: o.disabled || o.notPermitted }), onClick: c, children: /* @__PURE__ */ e.jsx("div", { className: i("text", s.text, "text-nowrap"), children: o.title }) }, o.linkTo)) }) })
58
+ }), children: /* @__PURE__ */ e.jsx("div", { className: i("shadow rounded children", s.children), children: (N = n.children) == null ? void 0 : N.map((o) => /* @__PURE__ */ e.jsx(g, { to: o.disabled || o.notPermitted ? "/" : o.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: o.disabled || o.notPermitted }, { disabled: o.disabled || o.notPermitted }), onClick: c, children: /* @__PURE__ */ e.jsx("div", { className: i("text", s.text, "text-nowrap"), children: o.title }) }, o.linkTo)) }) })
59
59
  ] });
60
60
  }, ee = "_side-menu_1q9oh_1", ne = "_sidebar-header_1q9oh_15", oe = "_side-menu-content_1q9oh_22", se = "_expand_1q9oh_27", ie = "_only-logo_1q9oh_31", le = "_mobile_1q9oh_34", te = "_divider_1q9oh_49", m = {
61
61
  "side-menu": "_side-menu_1q9oh_1",
@@ -70,7 +70,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
70
70
  mobile: le,
71
71
  divider: te
72
72
  }, ve = ({ headerItem: n, searchItem: l, shortcutsItem: a, mainItems: c, secondaryItems: p, expanded: d, setExpanded: b, currentPath: f, useHover: _, useTooltips: v }) => {
73
- const [h, j] = I(-1), { checkUserHasPermissions: u } = F(), y = C(() => c.map((t) => {
73
+ const [h, j] = I(-1), { checkUserHasPermissions: u } = K(), y = C(() => c.map((t) => {
74
74
  var r;
75
75
  return {
76
76
  ...t,
@@ -81,7 +81,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
81
81
  disabled: t.disabled || x.disabled
82
82
  }))
83
83
  };
84
- }), [c, u]), g = C(() => p.map((t) => {
84
+ }), [c, u]), B = C(() => p.map((t) => {
85
85
  var r;
86
86
  return {
87
87
  ...t,
@@ -116,7 +116,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
116
116
  /* @__PURE__ */ e.jsxs("ul", { className: m.sideMenuContent, children: [
117
117
  y.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)),
118
118
  /* @__PURE__ */ e.jsx("hr", { className: i("divider", m.divider) }),
119
- 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))
119
+ B.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))
120
120
  ] })
121
121
  ] });
122
122
  }, ae = "_top-bar_lnmq0_1", de = "_top-bar-brand_lnmq0_12", P = {
@@ -129,7 +129,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
129
129
  left: l ? `${l}px` : void 0
130
130
  }, children: /* @__PURE__ */ e.jsxs("div", { className: "w-100 row g-0", children: [
131
131
  /* @__PURE__ */ e.jsxs("div", { className: "col-4 d-flex gap-3 align-items-center", children: [
132
- /* @__PURE__ */ e.jsx(B, { to: "/", className: i("luminus-top-bar-brand", P.topBarBrand), children: n }),
132
+ /* @__PURE__ */ e.jsx(g, { to: "/", className: i("luminus-top-bar-brand", P.topBarBrand), children: n }),
133
133
  a
134
134
  ] }),
135
135
  /* @__PURE__ */ e.jsx("div", { className: "col-4 d-flex align-items-center", children: c ?? null }),