react-luminus-components 1.3.166 → 1.3.168
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 +62 -104
- package/dist/{Loading-Cv2FEybZ.js → Loading-mRFgk-i6.js} +1 -1
- package/dist/Loading-zlUOkRwX.cjs +1 -0
- package/dist/{nivo-bar.es-ClTGBGQw.js → ResponsiveContextDropdown-BA71GBMf.js} +5617 -5616
- package/dist/{nivo-bar.es-CaE2W807.cjs → ResponsiveContextDropdown-sC97dURt.cjs} +5 -5
- package/dist/components/common/HrWithText/HrWithText.d.ts +5 -0
- package/dist/components/common/ReportsIndexPage/ReportsIndexPage.d.ts +15 -0
- package/dist/components/common/ReportsIndexPage/comps/ReportsLastUsed/ReportsLastUsed.d.ts +10 -0
- package/dist/components/common/ReportsIndexPage/comps/index.d.ts +1 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +36 -36
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +20 -20
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +22 -22
- package/dist/main.cjs.js +3 -3
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +3412 -3345
- package/dist/models/texts/ReportsTexts.d.ts +4 -0
- package/dist/{searchUtils-DswlQ6WV.js → searchUtils-CuVFPsGA.js} +1 -1
- package/dist/searchUtils-f4KqopxI.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/{useClipboard-7jNxu3p4.js → useClipboard-CfFitSdr.js} +10 -10
- package/dist/useClipboard-yabBfKEB.cjs +1 -0
- package/dist/{useGetApiData-CIfIMetV.js → useGetApiData-CWOcDaIc.js} +7 -7
- package/dist/useGetApiData-CfYwvjwd.cjs +1 -0
- package/dist/usePermissions-27uW1Pbn.cjs +1 -0
- package/dist/usePermissions-Dc69LA0R.js +20 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +33 -33
- package/dist/variables.scss +165 -165
- package/package.json +116 -116
- package/dist/Loading-Bb2_fdjT.cjs +0 -1
- package/dist/searchUtils-b1QW5y-z.cjs +0 -1
- package/dist/useClipboard-CeiKrXjz.cjs +0 -1
- package/dist/useGetApiData-CC06DqnB.cjs +0 -1
- package/dist/usePermissions-BJe0PsSE.cjs +0 -1
- package/dist/usePermissions-D-8uybhA.js +0 -20
package/dist/layout.es.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { j as o, c as i, ac as g,
|
|
2
|
-
import {
|
|
3
|
-
import { useState as I, useRef as
|
|
4
|
-
import { Link as
|
|
1
|
+
import { j as o, c as i, ac as g, aA as L, bg as T, bh as R } from "./ResponsiveContextDropdown-BA71GBMf.js";
|
|
2
|
+
import { b2 as Ne, bi as ye } from "./ResponsiveContextDropdown-BA71GBMf.js";
|
|
3
|
+
import { useState as I, useRef as z, useMemo as k, useEffect as S } from "react";
|
|
4
|
+
import { Link as f } 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
|
-
import { a as
|
|
10
|
-
import { u as A } from "./usePermissions-
|
|
11
|
-
const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1o1uo_10", D = "_child_1o1uo_18",
|
|
9
|
+
import { a as w, u as $ } from "./useWindowSize-OLYtjFv_.js";
|
|
10
|
+
import { u as A } from "./usePermissions-Dc69LA0R.js";
|
|
11
|
+
const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", U = "_text_1o1uo_23", W = "_icon_1o1uo_30", q = "_collapse-icon_1o1uo_36", E = "_collapsed_1o1uo_46", G = "_collapse-icon-mini_1o1uo_49", J = "_expanded_1o1uo_80", Q = "_children-container_1o1uo_86", V = "_visible_1o1uo_94", X = "_children_1o1uo_86", Y = "_mobile_1o1uo_106", s = {
|
|
12
12
|
"side-menu-item": "_side-menu-item_1o1uo_1",
|
|
13
13
|
sideMenuItem: F,
|
|
14
14
|
disabled: K,
|
|
15
15
|
"nav-button": "_nav-button_1o1uo_10",
|
|
16
16
|
navButton: O,
|
|
17
17
|
child: D,
|
|
18
|
-
text:
|
|
19
|
-
icon:
|
|
18
|
+
text: U,
|
|
19
|
+
icon: W,
|
|
20
20
|
"collapse-icon": "_collapse-icon_1o1uo_36",
|
|
21
|
-
collapseIcon:
|
|
22
|
-
collapsed:
|
|
21
|
+
collapseIcon: q,
|
|
22
|
+
collapsed: E,
|
|
23
23
|
"collapse-icon-mini": "_collapse-icon-mini_1o1uo_49",
|
|
24
|
-
collapseIconMini:
|
|
24
|
+
collapseIconMini: G,
|
|
25
25
|
expanded: J,
|
|
26
26
|
"children-container": "_children-container_1o1uo_86",
|
|
27
27
|
childrenContainer: Q,
|
|
@@ -29,9 +29,9 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
29
29
|
children: X,
|
|
30
30
|
mobile: Y
|
|
31
31
|
}, Z = ({ item: n, menuExpanded: t, useTooltips: l, children: a }) => n.tooltip && !t && l ? /* @__PURE__ */ o.jsx(L, { text: n.tooltip, placement: "top", delay: { show: 1e3, hide: 0 }, children: /* @__PURE__ */ o.jsx("div", { children: a }) }) : a, C = ({ item: n, menuExpanded: t, collapsed: l, onCollapse: a, currentPath: c, useHover: m, useTooltips: M, isMobile: r }) => {
|
|
32
|
-
var
|
|
33
|
-
const [N, p] = I(!1), [b] = c.split("?"), _ = n.linkTo === b || ((
|
|
34
|
-
return
|
|
32
|
+
var B, v, j, h;
|
|
33
|
+
const [N, p] = I(!1), [b] = c.split("?"), _ = n.linkTo === b || ((B = n.children) == null ? void 0 : B.some((e) => e.linkTo === b)), y = z(null);
|
|
34
|
+
return w([y], () => l && a()), /* @__PURE__ */ o.jsxs("li", { ref: y, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: r }, {
|
|
35
35
|
[s.expanded]: t
|
|
36
36
|
}, { active: N || _ }, { open: l && n.children }, {
|
|
37
37
|
[s.disabled]: n.disabled || n.notPermitted || ((v = n.children) == null ? void 0 : v.every((e) => e.notPermitted || e.disabled))
|
|
@@ -49,13 +49,13 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
49
49
|
t && /* @__PURE__ */ o.jsx("div", { className: i("collapse-icon", s.collapseIcon, {
|
|
50
50
|
[s.collapsed]: l
|
|
51
51
|
}), children: /* @__PURE__ */ o.jsx(g, {}) })
|
|
52
|
-
] }) }) : /* @__PURE__ */ o.jsxs(
|
|
52
|
+
] }) }) : /* @__PURE__ */ o.jsxs(f, { to: n.disabled || n.notPermitted ? "/" : n.linkTo ?? "/", className: i("nav-link", s.navButton), children: [
|
|
53
53
|
/* @__PURE__ */ o.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
54
54
|
t && /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: n.title })
|
|
55
55
|
] }) }),
|
|
56
56
|
/* @__PURE__ */ o.jsx("div", { className: i("children-container", s.childrenContainer, {
|
|
57
57
|
[s.visible]: l
|
|
58
|
-
}), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (h = n.children) == null ? void 0 : h.map((e) => /* @__PURE__ */ o.jsx(
|
|
58
|
+
}), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (h = n.children) == null ? void 0 : h.map((e) => /* @__PURE__ */ o.jsx(f, { to: e.disabled || e.notPermitted ? "/" : e.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: e.disabled || e.notPermitted }, { disabled: e.disabled || e.notPermitted }), onClick: a, children: /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: e.title }) }, e.linkTo)) }) })
|
|
59
59
|
] });
|
|
60
60
|
}, H = "_side-menu_15z3o_1", ee = "_sidebar-header_15z3o_13", oe = "_side-menu-content_15z3o_20", ne = "_expand_15z3o_24", se = "_only-logo_15z3o_28", ie = "_mobile_15z3o_31", te = "_divider_15z3o_45", u = {
|
|
61
61
|
"side-menu": "_side-menu_15z3o_1",
|
|
@@ -81,7 +81,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
81
81
|
disabled: e.disabled || x.disabled
|
|
82
82
|
}))
|
|
83
83
|
};
|
|
84
|
-
}), [l, _]),
|
|
84
|
+
}), [l, _]), B = k(() => a.map((e) => {
|
|
85
85
|
var d;
|
|
86
86
|
return {
|
|
87
87
|
...e,
|
|
@@ -97,8 +97,8 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
97
97
|
S(() => {
|
|
98
98
|
c || b(-1);
|
|
99
99
|
}, [c]);
|
|
100
|
-
const j =
|
|
101
|
-
|
|
100
|
+
const j = z(null);
|
|
101
|
+
w([j], () => m(!1));
|
|
102
102
|
const { isMobile: h } = $();
|
|
103
103
|
return /* @__PURE__ */ o.jsxs("section", { ref: j, className: i("luminus-side-menu shadow", u.sideMenu, { [u.mobile]: h }, {
|
|
104
104
|
[u.expand]: c
|
|
@@ -113,7 +113,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
113
113
|
t ? /* @__PURE__ */ o.jsx("div", { className: "p-3", children: t }) : null,
|
|
114
114
|
y.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title)),
|
|
115
115
|
/* @__PURE__ */ o.jsx("hr", { className: i("divider", u.divider) }),
|
|
116
|
-
|
|
116
|
+
B.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title))
|
|
117
117
|
] })
|
|
118
118
|
] });
|
|
119
119
|
}, le = "_top-bar_1usoa_1", ae = "_top-bar-brand_1usoa_13", P = {
|
|
@@ -125,7 +125,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
125
125
|
width: t ? `calc(100% - ${t}px)` : void 0,
|
|
126
126
|
left: t ? `${t}px` : void 0
|
|
127
127
|
}, children: [
|
|
128
|
-
/* @__PURE__ */ o.jsx(
|
|
128
|
+
/* @__PURE__ */ o.jsx(f, { to: "/", className: i("luminus-top-bar-brand", P.topBarBrand), children: n }),
|
|
129
129
|
l && /* @__PURE__ */ o.jsx("div", { children: l }),
|
|
130
130
|
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end align-items-center", children: a ?? null })
|
|
131
131
|
] });
|