react-luminus-components 1.4.42 → 1.4.43
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 +10 -10
- package/dist/{FormDisabledProvider-Cw6K1tzF.js → FormDisabledProvider-BjgQDodI.js} +1 -1
- package/dist/components/Localization/LocalizationSettings/LocalizationSettings.d.ts +2 -1
- package/dist/contexts.es.js +15 -15
- package/dist/hooks.es.js +18 -18
- package/dist/layout.es.js +19 -19
- package/dist/main.cjs.js +44 -44
- package/dist/main.es.js +3893 -3802
- package/dist/{nivo-bar.es-1Kl6HG1T.js → nivo-bar.es-g8nnrjFD.js} +54 -54
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-C2rphn4e.js → useLocalStorageState-BhXBTr_i.js} +1 -1
- package/dist/utils.es.js +8 -8
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_FormDisabledProvider-
|
|
3
|
-
"file": "FormDisabledProvider-
|
|
2
|
+
"_FormDisabledProvider-BjgQDodI.js": {
|
|
3
|
+
"file": "FormDisabledProvider-BjgQDodI.js",
|
|
4
4
|
"name": "FormDisabledProvider",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_nivo-bar.es-
|
|
6
|
+
"_nivo-bar.es-g8nnrjFD.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"_FormDisabledProvider-DCiMFn75.cjs": {
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"file": "apiPathUtils-DiqvB8mF.js",
|
|
22
22
|
"name": "apiPathUtils"
|
|
23
23
|
},
|
|
24
|
-
"_nivo-bar.es-1Kl6HG1T.js": {
|
|
25
|
-
"file": "nivo-bar.es-1Kl6HG1T.js",
|
|
26
|
-
"name": "nivo-bar.es"
|
|
27
|
-
},
|
|
28
24
|
"_nivo-bar.es-HlDpK5cq.cjs": {
|
|
29
25
|
"file": "nivo-bar.es-HlDpK5cq.cjs",
|
|
30
26
|
"name": "nivo-bar.es"
|
|
31
27
|
},
|
|
32
|
-
"
|
|
33
|
-
"file": "
|
|
28
|
+
"_nivo-bar.es-g8nnrjFD.js": {
|
|
29
|
+
"file": "nivo-bar.es-g8nnrjFD.js",
|
|
30
|
+
"name": "nivo-bar.es"
|
|
31
|
+
},
|
|
32
|
+
"_useLocalStorageState-BhXBTr_i.js": {
|
|
33
|
+
"file": "useLocalStorageState-BhXBTr_i.js",
|
|
34
34
|
"name": "useLocalStorageState",
|
|
35
35
|
"imports": [
|
|
36
|
-
"_nivo-bar.es-
|
|
36
|
+
"_nivo-bar.es-g8nnrjFD.js"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"_useLocalStorageState-CI7BqrYF.cjs": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as o, c as n, bL as e } from "./nivo-bar.es-
|
|
1
|
+
import { j as o, c as n, bL as e } from "./nivo-bar.es-g8nnrjFD.js";
|
|
2
2
|
const l = "_loading_obchl_1", a = "_spinner-grow_obchl_10", c = "_second_obchl_14", t = "_third_obchl_17", d = "_loadingBlock_obchl_21", _ = "_sizeLine_obchl_29", p = "_sizeFill_obchl_36", s = {
|
|
3
3
|
loading: l,
|
|
4
4
|
"spinner-grow": "_spinner-grow_obchl_10",
|
|
@@ -12,6 +12,7 @@ type LocalizationSettingsProps = {
|
|
|
12
12
|
downloadXls: () => Promise<void>;
|
|
13
13
|
saveChanges: (data: Array<LocalizationUpdateModel>) => WrappedPromise<undefined>;
|
|
14
14
|
localizationFilesOptions: FileStructureFile[];
|
|
15
|
+
remoteLocalesRoot: string;
|
|
15
16
|
};
|
|
16
|
-
declare const LocalizationSettings: ({ languageOptions, envMode, getOtherSettingsUrl, downloadXls, saveChanges, localizationFilesOptions, }: LocalizationSettingsProps) => import("react").JSX.Element;
|
|
17
|
+
declare const LocalizationSettings: ({ languageOptions, envMode, getOtherSettingsUrl, downloadXls, saveChanges, localizationFilesOptions, remoteLocalesRoot, }: LocalizationSettingsProps) => import("react").JSX.Element;
|
|
17
18
|
export default LocalizationSettings;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, r) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var C = (e, t, r) => Oe(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { t as F, bD as we, j as f, bE as De, P as z, ak as Ie, bF as de, a1 as A, ag as Pe, Q as q, bG as je, ao as ke, am as Le,
|
|
5
|
-
import { bL as Bt, ad as Vt } from "./nivo-bar.es-
|
|
4
|
+
import { t as F, bD as we, j as f, bE as De, P as z, ak as Ie, bF as de, a1 as A, ag as Pe, Q as q, bG as je, ao as ke, am as Le, b6 as me, bt as pe, b7 as Me, b8 as j, an as He, bH as _e, aB as se, bI as $e, aX as he, bJ as oe, bK as Re, al as Ue, a$ as Fe, a2 as Ne } from "./nivo-bar.es-g8nnrjFD.js";
|
|
5
|
+
import { bL as Bt, ad as Vt } from "./nivo-bar.es-g8nnrjFD.js";
|
|
6
6
|
import O, { useState as x, useCallback as p, useMemo as g, useContext as H, useEffect as P, useRef as ye, Component as te } from "react";
|
|
7
7
|
import { EventType as W } from "@azure/msal-browser";
|
|
8
8
|
import { MsalProvider as Ge } from "@azure/msal-react";
|
|
@@ -10,9 +10,9 @@ import "react-router-dom";
|
|
|
10
10
|
import "react-dom";
|
|
11
11
|
import "react-hook-form";
|
|
12
12
|
import "react-flexmonster";
|
|
13
|
-
import { L as qe } from "./FormDisabledProvider-
|
|
14
|
-
import { F as Jt } from "./FormDisabledProvider-
|
|
15
|
-
import { a as ze, u as Ke } from "./useLocalStorageState-
|
|
13
|
+
import { L as qe } from "./FormDisabledProvider-BjgQDodI.js";
|
|
14
|
+
import { F as Jt } from "./FormDisabledProvider-BjgQDodI.js";
|
|
15
|
+
import { a as ze, u as Ke } from "./useLocalStorageState-BhXBTr_i.js";
|
|
16
16
|
function Be(e) {
|
|
17
17
|
const t = F(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
@@ -69,7 +69,7 @@ const We = ({ children: e }) => {
|
|
|
69
69
|
] })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
|
-
},
|
|
72
|
+
}, Xe = ({ children: e }) => {
|
|
73
73
|
const [t, r] = x(!1), [n, s] = x(""), [o, c] = x({ input: "textarea", type: "text" }), i = ye(() => {
|
|
74
74
|
}), l = p((d) => {
|
|
75
75
|
s(d), r(!0);
|
|
@@ -106,7 +106,7 @@ const We = ({ children: e }) => {
|
|
|
106
106
|
n,
|
|
107
107
|
c
|
|
108
108
|
]);
|
|
109
|
-
return /* @__PURE__ */ f.jsx(z.Provider, { value: l, children: /* @__PURE__ */ f.jsx(We, { children: /* @__PURE__ */ f.jsxs(
|
|
109
|
+
return /* @__PURE__ */ f.jsx(z.Provider, { value: l, children: /* @__PURE__ */ f.jsx(We, { children: /* @__PURE__ */ f.jsxs(Xe, { children: [
|
|
110
110
|
/* @__PURE__ */ f.jsx(je, {}),
|
|
111
111
|
i
|
|
112
112
|
] }) }) });
|
|
@@ -275,7 +275,7 @@ const We = ({ children: e }) => {
|
|
|
275
275
|
]);
|
|
276
276
|
return /* @__PURE__ */ f.jsx(pe.Provider, { value: u, children: e });
|
|
277
277
|
};
|
|
278
|
-
var
|
|
278
|
+
var Ze = typeof Element < "u", et = typeof Map == "function", tt = typeof Set == "function", rt = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
|
|
279
279
|
function N(e, t) {
|
|
280
280
|
if (e === t) return !0;
|
|
281
281
|
if (e && t && typeof e == "object" && typeof t == "object") {
|
|
@@ -314,7 +314,7 @@ function N(e, t) {
|
|
|
314
314
|
if (s = Object.keys(e), r = s.length, r !== Object.keys(t).length) return !1;
|
|
315
315
|
for (n = r; n-- !== 0; )
|
|
316
316
|
if (!Object.prototype.hasOwnProperty.call(t, s[n])) return !1;
|
|
317
|
-
if (
|
|
317
|
+
if (Ze && e instanceof Element) return !1;
|
|
318
318
|
for (n = r; n-- !== 0; )
|
|
319
319
|
if (!((s[n] === "_owner" || s[n] === "__v" || s[n] === "__o") && e.$$typeof) && !N(e[s[n]], t[s[n]]))
|
|
320
320
|
return !1;
|
|
@@ -639,7 +639,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
639
639
|
style: v("style", c, n),
|
|
640
640
|
title: v("title", { title: i, titleAttributes: l }, n)
|
|
641
641
|
};
|
|
642
|
-
},
|
|
642
|
+
}, X = xt, U = [], be = !!(typeof window < "u" && window.document && window.document.createElement), Z = class {
|
|
643
643
|
constructor(e, t) {
|
|
644
644
|
C(this, "instances", []);
|
|
645
645
|
C(this, "canUseDOM", be);
|
|
@@ -659,7 +659,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
});
|
|
662
|
-
this.context = e, this.canUseDOM = t || !1, t || (e.helmet =
|
|
662
|
+
this.context = e, this.canUseDOM = t || !1, t || (e.helmet = X({
|
|
663
663
|
baseTag: [],
|
|
664
664
|
bodyAttributes: {},
|
|
665
665
|
encodeSpecialCharacters: !0,
|
|
@@ -677,7 +677,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
677
677
|
constructor(r) {
|
|
678
678
|
super(r);
|
|
679
679
|
C(this, "helmetData");
|
|
680
|
-
this.helmetData = new
|
|
680
|
+
this.helmetData = new Z(this.props.context || {}, I.canUseDOM);
|
|
681
681
|
}
|
|
682
682
|
render() {
|
|
683
683
|
return /* @__PURE__ */ O.createElement(Se.Provider, { value: this.helmetData.value }, this.props.children);
|
|
@@ -781,7 +781,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
781
781
|
return delete c.context, c;
|
|
782
782
|
})
|
|
783
783
|
);
|
|
784
|
-
Ce.canUseDOM ? At(s) :
|
|
784
|
+
Ce.canUseDOM ? At(s) : X && (n = X(s)), r(n);
|
|
785
785
|
}
|
|
786
786
|
// componentWillMount will be deprecated
|
|
787
787
|
// for SSR, initialize on first render
|
|
@@ -908,9 +908,9 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
908
908
|
render() {
|
|
909
909
|
const { children: e, ...t } = this.props;
|
|
910
910
|
let r = { ...t }, { helmetData: n } = t;
|
|
911
|
-
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof
|
|
911
|
+
if (e && (r = this.mapChildrenToProps(e, r)), n && !(n instanceof Z)) {
|
|
912
912
|
const s = n;
|
|
913
|
-
n = new
|
|
913
|
+
n = new Z(s.context, !0), delete r.helmetData;
|
|
914
914
|
}
|
|
915
915
|
return n ? /* @__PURE__ */ O.createElement(ce, { ...r, context: n.value }) : /* @__PURE__ */ O.createElement(Se.Consumer, null, (s) => /* @__PURE__ */ O.createElement(ce, { ...r, context: s }));
|
|
916
916
|
}
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { am as x, ao as
|
|
2
|
-
import { bM as
|
|
3
|
-
import { u as ot, a as ut } from "./useLocalStorageState-
|
|
1
|
+
import { am as x, ao as $, b7 as E } from "./nivo-bar.es-g8nnrjFD.js";
|
|
2
|
+
import { bM as j, aR as J, bO as X, al as Y, bN as _, a$ as K, ap as tt, bq as et, ak as at, aE as st, bs as rt } from "./nivo-bar.es-g8nnrjFD.js";
|
|
3
|
+
import { u as ot, a as ut } from "./useLocalStorageState-BhXBTr_i.js";
|
|
4
4
|
import { useState as v, useEffect as g, useContext as L, useRef as I, useCallback as S } from "react";
|
|
5
5
|
import { c as ct, u as it, a as dt, b as mt } from "./useRenderDraggableInPortal-D0OLp7Qb.js";
|
|
6
6
|
import "react-router-dom";
|
|
@@ -9,7 +9,7 @@ import "react-hook-form";
|
|
|
9
9
|
import "react-flexmonster";
|
|
10
10
|
import "@azure/msal-browser";
|
|
11
11
|
import "@azure/msal-react";
|
|
12
|
-
const
|
|
12
|
+
const O = (e) => {
|
|
13
13
|
let t = "pending", r;
|
|
14
14
|
const a = e.then((s) => {
|
|
15
15
|
t = "success", r = s;
|
|
@@ -29,7 +29,7 @@ const $ = (e) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function R(e, t) {
|
|
33
33
|
const r = x({
|
|
34
34
|
silent: !0,
|
|
35
35
|
differentBaseUrl: t == null ? void 0 : t.customBaseUrl,
|
|
@@ -38,7 +38,7 @@ function z(e, t) {
|
|
|
38
38
|
return g(() => {
|
|
39
39
|
(async () => {
|
|
40
40
|
const n = r.get(e).then((u) => u.data);
|
|
41
|
-
s(
|
|
41
|
+
s(O(n));
|
|
42
42
|
})();
|
|
43
43
|
}, [r, e]), a;
|
|
44
44
|
}
|
|
@@ -70,20 +70,20 @@ const y = (e, t, r) => {
|
|
|
70
70
|
enabled: !0,
|
|
71
71
|
nullStateBeforeLoad: !0,
|
|
72
72
|
nullStateOnFail: !1
|
|
73
|
-
},
|
|
73
|
+
}, z = (e, { loadOnInit: t = d.loadOnInit, enabled: r = d.enabled, silent: a = d.silent, nullStateBeforeLoad: s = d.nullStateBeforeLoad, nullStateOnFail: c = d.nullStateOnFail, customApiUrl: n, customBearerToken: u, dataTransformer: i, errorBoundaryOn404: o } = d) => {
|
|
74
74
|
const l = x({
|
|
75
75
|
silent: a,
|
|
76
76
|
customToken: u,
|
|
77
77
|
differentBaseUrl: n,
|
|
78
78
|
noToastOnStatus: o ? [404] : void 0
|
|
79
|
-
}), { startLoading: m, stopLoading: D } = L(
|
|
79
|
+
}), { startLoading: m, stopLoading: D } = L($), T = I(0), { isAuthenticated: b } = E(), [A, h] = v(null), w = S(async (f, C) => {
|
|
80
80
|
if (!b() || r === !1)
|
|
81
81
|
return;
|
|
82
82
|
!a && m(`loadData-${e}-${C}`), s && h(null);
|
|
83
|
-
const
|
|
83
|
+
const P = l.get(e, {
|
|
84
84
|
signal: f
|
|
85
85
|
}).then((k) => i ? i(k.data) : k.data).finally(() => !a && D(`loadData-${e}-${C}`));
|
|
86
|
-
h(y(
|
|
86
|
+
h(y(P, c ?? !1, o ?? !1));
|
|
87
87
|
}, [
|
|
88
88
|
b,
|
|
89
89
|
r,
|
|
@@ -109,7 +109,7 @@ const y = (e, t, r) => {
|
|
|
109
109
|
storageKey: "--tmp-scroll-save--",
|
|
110
110
|
requiredHeight: 100,
|
|
111
111
|
retryInterval: 50
|
|
112
|
-
},
|
|
112
|
+
}, H = (e, { storageKey: t = p.storageKey, requiredHeight: r = p.requiredHeight, retryInterval: a = p.retryInterval } = p) => {
|
|
113
113
|
const [s, c] = v(!1), n = I(null), u = S(() => {
|
|
114
114
|
const o = localStorage.getItem(t);
|
|
115
115
|
return localStorage.removeItem(t), o === null ? null : Number(o);
|
|
@@ -137,24 +137,24 @@ const y = (e, t, r) => {
|
|
|
137
137
|
}, [i, e]), { saveValue: i, retrieveValue: u };
|
|
138
138
|
};
|
|
139
139
|
export {
|
|
140
|
-
|
|
140
|
+
j as cancelToken,
|
|
141
141
|
E as useAuth,
|
|
142
142
|
x as useAxios,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
J as useClickOutside,
|
|
144
|
+
X as useClipboard,
|
|
145
|
+
Y as useConfirm,
|
|
146
146
|
ct as useEmployeePhotoPath,
|
|
147
147
|
_ as useFormControlType,
|
|
148
148
|
ot as useGetApiData,
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
z as useGetApiDataBound,
|
|
150
|
+
R as useGetDataBound,
|
|
151
151
|
K as useKeyPress,
|
|
152
152
|
ut as useLocalStorageState,
|
|
153
153
|
tt as useNotifications,
|
|
154
154
|
et as usePermissions,
|
|
155
155
|
at as usePrompt,
|
|
156
156
|
it as useRenderDraggableInPortal,
|
|
157
|
-
|
|
157
|
+
H as useScrollSave,
|
|
158
158
|
dt as useSearchQuery,
|
|
159
159
|
mt as useSearchQueryState,
|
|
160
160
|
st as useWindowSize,
|
package/dist/layout.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { as as fe, bC as Be } from "./nivo-bar.es-
|
|
3
|
-
import { useState as L, useRef as
|
|
1
|
+
import { aR as I, j as e, c as i, Z as q, aC as T, bq as S, aE as $, bA as A, bB as F } from "./nivo-bar.es-g8nnrjFD.js";
|
|
2
|
+
import { as as fe, bC as Be } from "./nivo-bar.es-g8nnrjFD.js";
|
|
3
|
+
import { useState as L, useRef as R, useMemo as k, useEffect as K } from "react";
|
|
4
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
|
-
const
|
|
10
|
+
const O = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm_10", E = "_nav-button_o72rm_13", U = "_child_o72rm_21", W = "_text_o72rm_26", Z = "_icon_o72rm_36", G = "_collapse-icon_o72rm_42", J = "_collapsed_o72rm_52", Q = "_collapse-icon-mini_o72rm_55", V = "_expanded_o72rm_86", X = "_children-container_o72rm_92", Y = "_visible_o72rm_100", H = "_children_o72rm_92", ee = "_mobile_o72rm_112", s = {
|
|
11
11
|
"side-menu-item": "_side-menu-item_o72rm_1",
|
|
12
|
-
sideMenuItem:
|
|
12
|
+
sideMenuItem: O,
|
|
13
13
|
disabled: z,
|
|
14
14
|
hidden: D,
|
|
15
15
|
"nav-button": "_nav-button_o72rm_13",
|
|
@@ -28,9 +28,9 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
28
28
|
visible: Y,
|
|
29
29
|
children: H,
|
|
30
30
|
mobile: ee
|
|
31
|
-
}, ne = ({ item: n, menuExpanded: l, useTooltips: a, children: c }) => n.tooltip && !l && a ? /* @__PURE__ */ e.jsx(
|
|
31
|
+
}, ne = ({ 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, P = ({ item: n, menuExpanded: l, collapsed: a, onCollapse: c, currentPath: h, useHover: d, useTooltips: p, isMobile: y, disableMode: r }) => {
|
|
32
32
|
var B, C, N, M;
|
|
33
|
-
const [f, v] = L(!1), [b] =
|
|
33
|
+
const [f, v] = L(!1), [b] = h.split("?"), j = n.linkTo === b || ((B = n.children) == null ? void 0 : B.some((o) => o.linkTo === b)), m = R(null);
|
|
34
34
|
return I([m], () => a && c()), /* @__PURE__ */ e.jsxs("li", { ref: m, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: y }, {
|
|
35
35
|
[s.expanded]: l
|
|
36
36
|
}, { active: f || j }, { open: a && n.children }, {
|
|
@@ -38,7 +38,7 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
38
38
|
}, {
|
|
39
39
|
[r === "disable" ? "disabled" : "hidden"]: n.disabled || n.notPermitted || ((N = n.children) == null ? void 0 : N.every((o) => o.notPermitted || o.disabled))
|
|
40
40
|
}), onMouseEnter: () => v(!0), onMouseLeave: () => v(!1), children: [
|
|
41
|
-
/* @__PURE__ */ e.jsx(ne, { item: n, menuExpanded: l, useTooltips:
|
|
41
|
+
/* @__PURE__ */ e.jsx(ne, { item: n, menuExpanded: l, useTooltips: p, children: n.children ? /* @__PURE__ */ e.jsx(e.Fragment, { children: /* @__PURE__ */ e.jsxs("button", { type: "button", className: i("nav-link", s.navButton), onClick: () => {
|
|
42
42
|
c();
|
|
43
43
|
}, children: [
|
|
44
44
|
/* @__PURE__ */ e.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
@@ -73,7 +73,7 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
73
73
|
onlyLogo: te,
|
|
74
74
|
mobile: ae,
|
|
75
75
|
divider: de
|
|
76
|
-
}, je = ({ headerItem: n, searchItem: l, shortcutsItem: a, mainItems: c, secondaryItems:
|
|
76
|
+
}, je = ({ headerItem: n, searchItem: l, shortcutsItem: a, mainItems: c, secondaryItems: h, expanded: d, setExpanded: p, currentPath: y, useHover: r, useTooltips: f, disableMode: v = "disable" }) => {
|
|
77
77
|
const [b, j] = L(-1), { checkUserHasPermissions: m } = S(), B = k(() => c.map((t) => {
|
|
78
78
|
var _;
|
|
79
79
|
return {
|
|
@@ -85,7 +85,7 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
85
85
|
disabled: t.disabled || x.disabled
|
|
86
86
|
}))
|
|
87
87
|
};
|
|
88
|
-
}), [c, m]), C = k(() =>
|
|
88
|
+
}), [c, m]), C = k(() => h.map((t) => {
|
|
89
89
|
var _;
|
|
90
90
|
return {
|
|
91
91
|
...t,
|
|
@@ -95,24 +95,24 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
95
95
|
notPermitted: !m(x.permissions ?? [], "any")
|
|
96
96
|
}))
|
|
97
97
|
};
|
|
98
|
-
}), [
|
|
98
|
+
}), [h, m]), N = (t) => {
|
|
99
99
|
j(t === b ? -1 : t);
|
|
100
100
|
};
|
|
101
|
-
|
|
101
|
+
K(() => {
|
|
102
102
|
d || j(-1);
|
|
103
103
|
}, [d]);
|
|
104
|
-
const M =
|
|
105
|
-
I([M], () =>
|
|
104
|
+
const M = R(null);
|
|
105
|
+
I([M], () => p(!1));
|
|
106
106
|
const { isMobile: o } = $();
|
|
107
107
|
return /* @__PURE__ */ e.jsxs("section", { ref: M, className: i("luminus-side-menu shadow", u.sideMenu, { [u.mobile]: o }, {
|
|
108
108
|
[u.expand]: d
|
|
109
|
-
}, { expand: d }), onMouseEnter: () => r &&
|
|
109
|
+
}, { expand: d }), onMouseEnter: () => r && p(!0), onMouseLeave: () => r && p(!1), children: [
|
|
110
110
|
/* @__PURE__ */ e.jsx("div", { className: i("sidebar-header", u.sidebarHeader, {
|
|
111
111
|
[u.onlyLogo]: r
|
|
112
|
-
}), role: r ? void 0 : "button", onClick: r ? void 0 : () =>
|
|
112
|
+
}), role: r ? void 0 : "button", onClick: r ? void 0 : () => p(!d), children: r ? n : d ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
113
113
|
/* @__PURE__ */ e.jsx(A, {}),
|
|
114
114
|
n
|
|
115
|
-
] }) : /* @__PURE__ */ e.jsx(
|
|
115
|
+
] }) : /* @__PURE__ */ e.jsx(F, {}) }),
|
|
116
116
|
d && (l || a) ? /* @__PURE__ */ e.jsxs("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
117
117
|
a && d ? a : null,
|
|
118
118
|
l && d ? l : null
|
|
@@ -128,7 +128,7 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
128
128
|
topBar: re,
|
|
129
129
|
"top-bar-brand": "_top-bar-brand_lnmq0_12",
|
|
130
130
|
topBarBrand: ce
|
|
131
|
-
}, Ne = ({ appName: n, leftOffset: l, leftContent: a, centerContent: c, rightContent:
|
|
131
|
+
}, Ne = ({ appName: n, leftOffset: l, leftContent: a, centerContent: c, rightContent: h }) => /* @__PURE__ */ e.jsx("nav", { className: i("luminus-top-bar shadow", w.topBar), style: {
|
|
132
132
|
width: l ? `calc(100% - ${l}px)` : void 0,
|
|
133
133
|
left: l ? `${l}px` : void 0
|
|
134
134
|
}, children: /* @__PURE__ */ e.jsxs("div", { className: "w-100 row g-0", children: [
|
|
@@ -137,7 +137,7 @@ const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", D = "_hidden_o72rm
|
|
|
137
137
|
a
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ e.jsx("div", { className: "col-4 d-flex align-items-center", children: c ?? null }),
|
|
140
|
-
/* @__PURE__ */ e.jsx("div", { className: "col-4 d-flex justify-content-end align-items-center", children:
|
|
140
|
+
/* @__PURE__ */ e.jsx("div", { className: "col-4 d-flex justify-content-end align-items-center", children: h ?? null })
|
|
141
141
|
] }) });
|
|
142
142
|
export {
|
|
143
143
|
fe as PageContainer,
|