react-luminus-components 1.3.206 → 1.3.208
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/.vite/manifest.json +61 -61
- package/dist/{Loading-CTiNUYCJ.js → Loading-CUAwLobe.js} +1 -1
- package/dist/{Loading-74l0p5M0.cjs → Loading-CviIKAXk.cjs} +1 -1
- package/dist/ShortcutLinksContext-C0cqjgcD.cjs +279 -0
- package/dist/{ShortcutLinksContext-DjWgKFrF.js → ShortcutLinksContext-CWhdXOHr.js} +7985 -7833
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +47 -47
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +20 -20
- package/dist/layout/SideContentBar/SideContentBar.d.ts +3 -2
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +20 -20
- package/dist/main.cjs.js +36 -36
- package/dist/main.es.js +15 -15
- package/dist/{searchUtils-Dn39KADP.js → searchUtils-Bp8yXinN.js} +1 -1
- package/dist/{searchUtils-D1Q5ffaA.cjs → searchUtils-DYmWBzNz.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/useClickOutside-BmlXg38T.js +14 -0
- package/dist/useClickOutside-D0505nsm.cjs +1 -0
- package/dist/{useGetApiData-Dng3v-c1.js → useGetApiData-D_-HSGND.js} +6 -6
- package/dist/{useGetApiData-BiGeqiNF.cjs → useGetApiData-DqSRgy-f.cjs} +1 -1
- package/dist/{usePermissions-DpJaM3Pd.cjs → usePermissions-C33v3N_i.cjs} +1 -1
- package/dist/{usePermissions-DH1EcMcR.js → usePermissions-V9zkN4dy.js} +1 -1
- package/dist/{useRenderDraggableInPortal-DhdgZl3K.js → useRenderDraggableInPortal-TPIucOLq.js} +4 -4
- package/dist/{useRenderDraggableInPortal-DIQFNh3P.cjs → useRenderDraggableInPortal-gH6eEVZV.cjs} +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +11 -11
- package/package.json +3 -2
- package/dist/ShortcutLinksContext-D6SOjqrB.cjs +0 -279
- package/dist/layout/FullScreenContainer/FullScreenContainer.d.ts +0 -4
- package/dist/layout/MainContainer/MainContainer.d.ts +0 -4
- package/dist/useWindowSize-CE6DJWzn.cjs +0 -1
- package/dist/useWindowSize-OLYtjFv_.js +0 -20
package/dist/layout.es.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { j as e, c as i, aa as
|
|
2
|
-
import {
|
|
3
|
-
import { useState as w, useRef as I, useMemo as C, useEffect as
|
|
4
|
-
import { Link as
|
|
1
|
+
import { j as e, c as i, aa as B, aG as T, af as R, bo as S, bp as $ } from "./ShortcutLinksContext-CWhdXOHr.js";
|
|
2
|
+
import { b8 as ye, bq as ge } from "./ShortcutLinksContext-CWhdXOHr.js";
|
|
3
|
+
import { useState as w, useRef as I, useMemo as C, useEffect as A } from "react";
|
|
4
|
+
import { Link as q } 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 {
|
|
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-V9zkN4dy.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
25
|
collapseIconMini: J,
|
|
26
26
|
expanded: Q,
|
|
@@ -45,18 +45,18 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
45
45
|
/* @__PURE__ */ e.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
46
46
|
!d && !l && /* @__PURE__ */ e.jsx("div", { className: i("collapse-icon-mini rounded", s.collapseIconMini, {
|
|
47
47
|
[s.collapsed]: a
|
|
48
|
-
}), children: /* @__PURE__ */ e.jsx(
|
|
48
|
+
}), children: /* @__PURE__ */ e.jsx(B, {}) }),
|
|
49
49
|
l && /* @__PURE__ */ e.jsx("div", { className: i("text", s.text, "text-nowrap"), children: n.title }),
|
|
50
50
|
l && /* @__PURE__ */ e.jsx("div", { className: i("collapse-icon", s.collapseIcon, {
|
|
51
51
|
[s.collapsed]: a
|
|
52
|
-
}), children: /* @__PURE__ */ e.jsx(
|
|
53
|
-
] }) }) : /* @__PURE__ */ e.jsxs(
|
|
52
|
+
}), children: /* @__PURE__ */ e.jsx(B, {}) })
|
|
53
|
+
] }) }) : /* @__PURE__ */ e.jsxs(q, { to: n.disabled || n.notPermitted ? "/" : n.linkTo ?? "/", className: i("nav-link", s.navButton), children: [
|
|
54
54
|
/* @__PURE__ */ e.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
55
55
|
l && /* @__PURE__ */ e.jsx("div", { className: i("text", s.text, "text-nowrap"), children: n.title })
|
|
56
56
|
] }) }),
|
|
57
57
|
/* @__PURE__ */ e.jsx("div", { className: i("children-container", s.childrenContainer, {
|
|
58
58
|
[s.visible]: a
|
|
59
|
-
}), 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(
|
|
59
|
+
}), 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(q, { 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)) }) })
|
|
60
60
|
] });
|
|
61
61
|
}, 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 = {
|
|
62
62
|
"side-menu": "_side-menu_1q9oh_1",
|
|
@@ -95,21 +95,21 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
95
95
|
}), [p, u]), M = (t) => {
|
|
96
96
|
j(t === h ? -1 : t);
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
A(() => {
|
|
99
99
|
d || j(-1);
|
|
100
100
|
}, [d]);
|
|
101
101
|
const N = I(null);
|
|
102
102
|
L([N], () => b(!1));
|
|
103
|
-
const { isMobile: o } =
|
|
103
|
+
const { isMobile: o } = R();
|
|
104
104
|
return /* @__PURE__ */ e.jsxs("section", { ref: N, className: i("luminus-side-menu shadow", m.sideMenu, { [m.mobile]: o }, {
|
|
105
105
|
[m.expand]: d
|
|
106
106
|
}, { expand: d }), onMouseEnter: () => _ && b(!0), onMouseLeave: () => _ && b(!1), children: [
|
|
107
107
|
/* @__PURE__ */ e.jsx("div", { className: i("sidebar-header", m.sidebarHeader, {
|
|
108
108
|
[m.onlyLogo]: _
|
|
109
109
|
}), role: _ ? void 0 : "button", onClick: _ ? void 0 : () => b(!d), children: _ ? n : d ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
110
|
-
/* @__PURE__ */ e.jsx(
|
|
110
|
+
/* @__PURE__ */ e.jsx(S, {}),
|
|
111
111
|
n
|
|
112
|
-
] }) : /* @__PURE__ */ e.jsx(
|
|
112
|
+
] }) : /* @__PURE__ */ e.jsx($, {}) }),
|
|
113
113
|
d && (l || a) ? /* @__PURE__ */ e.jsxs("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
114
114
|
a && d ? a : null,
|
|
115
115
|
l && d ? l : null
|
|
@@ -130,7 +130,7 @@ const K = "_side-menu-item_1o1uo_1", O = "_disabled_1o1uo_6", z = "_nav-button_1
|
|
|
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(
|
|
133
|
+
/* @__PURE__ */ e.jsx(q, { to: "/", className: i("luminus-top-bar-brand", P.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 }),
|