react-luminus-components 2.0.31 → 2.0.33
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 +48 -38
- package/dist/{FormDisabledProvider-DYgNxt_V.js → FormDisabledProvider-CknAF8EI.js} +1 -1
- package/dist/FormDisabledProvider-DoGy2C4j.cjs +1 -0
- package/dist/components/Layout/ConnectionNotification/ConnectionAlert.d.ts +5 -0
- package/dist/components/Layout/ConnectionNotification/ConnectionIcon.d.ts +5 -0
- package/dist/components/Layout/index.d.ts +2 -0
- package/dist/contexts/index.d.ts +1 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +619 -612
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +154 -161
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +28 -28
- package/dist/main.cjs.js +15 -15
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +12606 -12568
- package/dist/nivo-bar-BkpPCncR.cjs +285 -0
- package/dist/{ShortcutLinksContext-Bu12oYeg.js → nivo-bar-wBsr2P1t.js} +20542 -20542
- package/dist/style.css +1 -1
- package/dist/useIsBrowserOnline-CREGrf2l.cjs +1 -0
- package/dist/useIsBrowserOnline-RAirIO4c.js +13 -0
- package/dist/{useIsFormDirty-D61PZNiu.js → useIsFormDirty-CTuj9_Nd.js} +5 -5
- package/dist/useIsFormDirty-Cb4GEBID.cjs +1 -0
- package/dist/{useLocalStorageState-C9vgpAvX.js → useLocalStorageState-DBd2vOH1.js} +30 -30
- package/dist/useLocalStorageState-gKbms6va.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +17 -17
- package/dist/variables.scss +165 -165
- package/package.json +128 -128
- package/dist/FormDisabledProvider-DFCB4DVo.cjs +0 -1
- package/dist/ShortcutLinksContext-BGLfiUxG.cjs +0 -285
- package/dist/useIsFormDirty-DQrsSiIC.cjs +0 -1
- package/dist/useLocalStorageState-DnWPyDKJ.cjs +0 -1
package/dist/layout.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as S, jsx as s, Fragment as ce } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { aS as re, a as p, a0 as le, c as ie, aG as ue, bw as he, aH as fe, bN as _e, bO as be, bP as oe } from "./nivo-bar-wBsr2P1t.js";
|
|
3
|
+
import { aE as dn, bQ as an } from "./nivo-bar-wBsr2P1t.js";
|
|
4
4
|
import { useState as me, useRef as pe, useEffect as ve } from "react";
|
|
5
5
|
import { Link as te } from "react-router";
|
|
6
6
|
import "react-hook-form";
|
|
@@ -8,7 +8,7 @@ import "react-flexmonster";
|
|
|
8
8
|
import "@azure/msal-react";
|
|
9
9
|
import "@azure/msal-browser";
|
|
10
10
|
import "react-dom";
|
|
11
|
-
const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o72rm_10", Pe = "_nav-button_o72rm_13", Ie = "_child_o72rm_21", ge = "_text_o72rm_26", ye = "_icon_o72rm_36", ke = "_collapse-icon_o72rm_42", Ce = "_collapsed_o72rm_52", Be = "_collapse-icon-mini_o72rm_55", Se = "_expanded_o72rm_86", we = "_children-container_o72rm_92",
|
|
11
|
+
const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o72rm_10", Pe = "_nav-button_o72rm_13", Ie = "_child_o72rm_21", ge = "_text_o72rm_26", ye = "_icon_o72rm_36", ke = "_collapse-icon_o72rm_42", Ce = "_collapsed_o72rm_52", Be = "_collapse-icon-mini_o72rm_55", Se = "_expanded_o72rm_86", we = "_children-container_o72rm_92", Ee = "_visible_o72rm_100", Te = "_children_o72rm_92", He = "_mobile_o72rm_112", c = {
|
|
12
12
|
sideMenuItem: xe,
|
|
13
13
|
disabled: Me,
|
|
14
14
|
hidden: Ne,
|
|
@@ -21,10 +21,10 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
21
21
|
collapseIconMini: Be,
|
|
22
22
|
expanded: Se,
|
|
23
23
|
childrenContainer: we,
|
|
24
|
-
visible:
|
|
25
|
-
children:
|
|
26
|
-
mobile:
|
|
27
|
-
},
|
|
24
|
+
visible: Ee,
|
|
25
|
+
children: Te,
|
|
26
|
+
mobile: He
|
|
27
|
+
}, $e = (o) => {
|
|
28
28
|
const e = ie.c(6), {
|
|
29
29
|
item: m,
|
|
30
30
|
menuExpanded: f,
|
|
@@ -69,7 +69,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
69
69
|
}, {
|
|
70
70
|
[l === "disable" ? "disabled" : "hidden"]: o.disabled || o.notPermitted || ((a = o.children) == null ? void 0 : a.every((t) => t.notPermitted || t.disabled))
|
|
71
71
|
}), onMouseEnter: () => i(!0), onMouseLeave: () => i(!1), children: [
|
|
72
|
-
/* @__PURE__ */ s(
|
|
72
|
+
/* @__PURE__ */ s($e, { item: o, menuExpanded: e, useTooltips: P, children: o.children ? /* @__PURE__ */ s(ce, { children: /* @__PURE__ */ S("button", { type: "button", className: p("nav-link", c.navButton), onClick: () => {
|
|
73
73
|
f();
|
|
74
74
|
}, children: [
|
|
75
75
|
/* @__PURE__ */ s("div", { className: p("icon", c.icon), children: o.icon }),
|
|
@@ -92,7 +92,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
92
92
|
[l === "disable" ? "disabled" : "hidden"]: t.disabled || t.notPermitted
|
|
93
93
|
}), onClick: f, children: /* @__PURE__ */ s("div", { className: p("text", c.text, "text-nowrap"), children: t.title }) }, t.linkTo)) }) })
|
|
94
94
|
] });
|
|
95
|
-
}, Oe = "_side-menu_2nic9_1", Le = "_sidebar-header_2nic9_15", Re = "_side-menu-pin_2nic9_22", je = "_side-menu-shrinkable-margin_2nic9_27", qe = "_on-mobile-not-expanded_2nic9_31", Ae = "_side-menu-content_2nic9_34", ze = "_expand_2nic9_40", Fe = "_only-logo_2nic9_44",
|
|
95
|
+
}, Oe = "_side-menu_2nic9_1", Le = "_sidebar-header_2nic9_15", Re = "_side-menu-pin_2nic9_22", je = "_side-menu-shrinkable-margin_2nic9_27", qe = "_on-mobile-not-expanded_2nic9_31", Ae = "_side-menu-content_2nic9_34", ze = "_expand_2nic9_40", Fe = "_only-logo_2nic9_44", Ge = "_mobile_2nic9_47", Ke = "_divider_2nic9_68", C = {
|
|
96
96
|
sideMenu: Oe,
|
|
97
97
|
sidebarHeader: Le,
|
|
98
98
|
sideMenuPin: Re,
|
|
@@ -101,7 +101,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
101
101
|
sideMenuContent: Ae,
|
|
102
102
|
expand: ze,
|
|
103
103
|
onlyLogo: Fe,
|
|
104
|
-
mobile:
|
|
104
|
+
mobile: Ge,
|
|
105
105
|
divider: Ke
|
|
106
106
|
}, tn = (o) => {
|
|
107
107
|
const e = ie.c(101), {
|
|
@@ -166,27 +166,27 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
166
166
|
n || y(-1);
|
|
167
167
|
}, D = [n], e[12] = n, e[13] = W, e[14] = D) : (W = e[13], D = e[14]), ve(W, D);
|
|
168
168
|
const se = pe(null);
|
|
169
|
-
let
|
|
170
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
169
|
+
let J;
|
|
170
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (J = [se], e[15] = J) : J = e[15];
|
|
171
171
|
let V;
|
|
172
|
-
e[16] !== l ? (V = () => l(!1), e[16] = l, e[17] = V) : V = e[17], re(
|
|
172
|
+
e[16] !== l ? (V = () => l(!1), e[16] = l, e[17] = V) : V = e[17], re(J, V);
|
|
173
173
|
const {
|
|
174
174
|
isMobile: h
|
|
175
175
|
} = fe();
|
|
176
|
-
let
|
|
177
|
-
e[18] !== n || e[19] !== h ? (
|
|
176
|
+
let E;
|
|
177
|
+
e[18] !== n || e[19] !== h ? (E = p("luminus-side-menu shadow", C.sideMenu, {
|
|
178
178
|
[C.mobile]: h
|
|
179
179
|
}, {
|
|
180
180
|
[C.expand]: n
|
|
181
181
|
}, {
|
|
182
182
|
expand: n
|
|
183
|
-
}), e[18] = n, e[19] = h, e[20] =
|
|
184
|
-
let
|
|
185
|
-
e[21] !== l || e[22] !== i ? (
|
|
186
|
-
let
|
|
187
|
-
e[25] !== i ? (
|
|
183
|
+
}), e[18] = n, e[19] = h, e[20] = E) : E = e[20];
|
|
184
|
+
let T, H;
|
|
185
|
+
e[21] !== l || e[22] !== i ? (T = () => i && l(!0), H = () => i && l(!1), e[21] = l, e[22] = i, e[23] = T, e[24] = H) : (T = e[23], H = e[24]);
|
|
186
|
+
let $;
|
|
187
|
+
e[25] !== i ? ($ = p("sidebar-header", C.sidebarHeader, {
|
|
188
188
|
[C.onlyLogo]: i
|
|
189
|
-
}), e[25] = i, e[26] =
|
|
189
|
+
}), e[25] = i, e[26] = $) : $ = e[26];
|
|
190
190
|
const ee = i ? void 0 : "button";
|
|
191
191
|
let O;
|
|
192
192
|
e[27] !== n || e[28] !== l || e[29] !== i ? (O = i ? void 0 : () => l(!n), e[27] = n, e[28] = l, e[29] = i, e[30] = O) : O = e[30];
|
|
@@ -198,7 +198,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
198
198
|
m
|
|
199
199
|
] }) : /* @__PURE__ */ s(oe, {}), e[31] = n, e[32] = m, e[33] = h, e[34] = x, e[35] = M, e[36] = i, e[37] = L) : L = e[37];
|
|
200
200
|
let R;
|
|
201
|
-
e[38] !==
|
|
201
|
+
e[38] !== $ || e[39] !== ee || e[40] !== O || e[41] !== L ? (R = /* @__PURE__ */ s("div", { className: $, role: ee, onClick: O, children: L }), e[38] = $, e[39] = ee, e[40] = O, e[41] = L, e[42] = R) : R = e[42];
|
|
202
202
|
let j;
|
|
203
203
|
e[43] !== n || e[44] !== f || e[45] !== v ? (j = n && (f || v) ? /* @__PURE__ */ S("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
204
204
|
v && n ? v : null,
|
|
@@ -225,19 +225,19 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
225
225
|
e[81] !== a || e[82] !== _ || e[83] !== u || e[84] !== n || e[85] !== h || e[86] !== k || e[87] !== i || e[88] !== r ? (d = (b, g) => /* @__PURE__ */ s(de, { item: b, menuExpanded: n, collapsed: g === a, onCollapse: () => k(g), currentPath: _, useHover: i, useTooltips: r, isMobile: h, disableMode: u }, b.title), e[81] = a, e[82] = _, e[83] = u, e[84] = n, e[85] = h, e[86] = k, e[87] = i, e[88] = r, e[89] = d) : d = e[89], F = Z.map(d), e[71] = a, e[72] = _, e[73] = u, e[74] = n, e[75] = h, e[76] = k, e[77] = Z, e[78] = i, e[79] = r, e[80] = F;
|
|
226
226
|
} else
|
|
227
227
|
F = e[80];
|
|
228
|
-
let
|
|
229
|
-
e[90] !== z || e[91] !== F ? (
|
|
228
|
+
let G;
|
|
229
|
+
e[90] !== z || e[91] !== F ? (G = /* @__PURE__ */ S("ul", { className: C.sideMenuContent, children: [
|
|
230
230
|
z,
|
|
231
231
|
X,
|
|
232
232
|
F
|
|
233
|
-
] }), e[90] = z, e[91] = F, e[92] =
|
|
233
|
+
] }), e[90] = z, e[91] = F, e[92] = G) : G = e[92];
|
|
234
234
|
let Y;
|
|
235
|
-
return e[93] !==
|
|
235
|
+
return e[93] !== T || e[94] !== H || e[95] !== R || e[96] !== j || e[97] !== A || e[98] !== G || e[99] !== E ? (Y = /* @__PURE__ */ S("section", { ref: se, className: E, onMouseEnter: T, onMouseLeave: H, children: [
|
|
236
236
|
R,
|
|
237
237
|
j,
|
|
238
238
|
A,
|
|
239
|
-
|
|
240
|
-
] }), e[93] =
|
|
239
|
+
G
|
|
240
|
+
] }), e[93] = T, e[94] = H, e[95] = R, e[96] = j, e[97] = A, e[98] = G, e[99] = E, e[100] = Y) : Y = e[100], Y;
|
|
241
241
|
}, Qe = "_top-bar_lnmq0_1", Ue = "_top-bar-brand_lnmq0_12", ae = {
|
|
242
242
|
topBar: Qe,
|
|
243
243
|
topBarBrand: Ue
|