react-luminus-components 1.4.55 → 1.4.57
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 +11 -11
- package/dist/{FormDisabledProvider-CbNzR9vC.js → FormDisabledProvider-6tUxmuDM.js} +1 -1
- package/dist/{ShortcutLinksContext-D-3_1QWF.js → ShortcutLinksContext-BnnVfkMM.js} +74 -74
- package/dist/contexts.es.js +22 -22
- package/dist/hooks.es.js +30 -30
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +101 -97
- package/dist/main.cjs.js +25 -25
- package/dist/main.es.js +2237 -2226
- package/dist/models/texts/ChartTexts.d.ts +4 -0
- package/dist/models/texts/ComponentsContextTexts.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/{useLocalStorageState-CSuGfUFh.js → useLocalStorageState-DtLtD3Dq.js} +1 -1
- package/dist/utils.es.js +13 -13
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_FormDisabledProvider-
|
|
3
|
-
"file": "FormDisabledProvider-
|
|
2
|
+
"_FormDisabledProvider-6tUxmuDM.js": {
|
|
3
|
+
"file": "FormDisabledProvider-6tUxmuDM.js",
|
|
4
4
|
"name": "FormDisabledProvider",
|
|
5
5
|
"imports": [
|
|
6
|
-
"_ShortcutLinksContext-
|
|
6
|
+
"_ShortcutLinksContext-BnnVfkMM.js"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"_FormDisabledProvider-IJvvekVE.cjs": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"_ShortcutLinksContext-DTVPEbpS.cjs"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
|
-
"_ShortcutLinksContext-
|
|
17
|
-
"file": "ShortcutLinksContext-
|
|
16
|
+
"_ShortcutLinksContext-BnnVfkMM.js": {
|
|
17
|
+
"file": "ShortcutLinksContext-BnnVfkMM.js",
|
|
18
18
|
"name": "ShortcutLinksContext"
|
|
19
19
|
},
|
|
20
20
|
"_ShortcutLinksContext-DTVPEbpS.cjs": {
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"file": "apiPathUtils-DiqvB8mF.js",
|
|
30
30
|
"name": "apiPathUtils"
|
|
31
31
|
},
|
|
32
|
-
"_useLocalStorageState-
|
|
33
|
-
"file": "useLocalStorageState-
|
|
32
|
+
"_useLocalStorageState-CjYiTOYJ.cjs": {
|
|
33
|
+
"file": "useLocalStorageState-CjYiTOYJ.cjs",
|
|
34
34
|
"name": "useLocalStorageState",
|
|
35
35
|
"imports": [
|
|
36
|
-
"_ShortcutLinksContext-
|
|
36
|
+
"_ShortcutLinksContext-DTVPEbpS.cjs"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"_useLocalStorageState-
|
|
40
|
-
"file": "useLocalStorageState-
|
|
39
|
+
"_useLocalStorageState-DtLtD3Dq.js": {
|
|
40
|
+
"file": "useLocalStorageState-DtLtD3Dq.js",
|
|
41
41
|
"name": "useLocalStorageState",
|
|
42
42
|
"imports": [
|
|
43
|
-
"_ShortcutLinksContext-
|
|
43
|
+
"_ShortcutLinksContext-BnnVfkMM.js"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
46
|
"_useRenderDraggableInPortal-D0OLp7Qb.js": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t, c as i, t as d, f as l,
|
|
1
|
+
import { j as t, c as i, t as d, f as l, bL as _ } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
2
2
|
const g = "_loading_obchl_1", h = "_spinner-grow_obchl_10", p = "_second_obchl_14", u = "_third_obchl_17", m = "_loadingBlock_obchl_21", b = "_sizeLine_obchl_29", x = "_sizeFill_obchl_36", o = {
|
|
3
3
|
loading: g,
|
|
4
4
|
"spinner-grow": "_spinner-grow_obchl_10",
|
|
@@ -28011,7 +28011,7 @@ export {
|
|
|
28011
28011
|
Qp as Z,
|
|
28012
28012
|
zx as _,
|
|
28013
28013
|
fp as a,
|
|
28014
|
-
|
|
28014
|
+
k2 as a$,
|
|
28015
28015
|
F2 as a0,
|
|
28016
28016
|
In as a1,
|
|
28017
28017
|
Su as a2,
|
|
@@ -28039,16 +28039,16 @@ export {
|
|
|
28039
28039
|
as as aO,
|
|
28040
28040
|
hp as aP,
|
|
28041
28041
|
wre as aQ,
|
|
28042
|
-
|
|
28043
|
-
|
|
28044
|
-
|
|
28045
|
-
|
|
28046
|
-
|
|
28047
|
-
|
|
28048
|
-
|
|
28049
|
-
|
|
28050
|
-
|
|
28051
|
-
|
|
28042
|
+
m2 as aR,
|
|
28043
|
+
Tre as aS,
|
|
28044
|
+
sh as aT,
|
|
28045
|
+
vs as aU,
|
|
28046
|
+
Z7 as aV,
|
|
28047
|
+
Wne as aW,
|
|
28048
|
+
Fp as aX,
|
|
28049
|
+
Yp as aY,
|
|
28050
|
+
dre as aZ,
|
|
28051
|
+
Ux as a_,
|
|
28052
28052
|
fb as aa,
|
|
28053
28053
|
rn as ab,
|
|
28054
28054
|
ub as ac,
|
|
@@ -28077,69 +28077,69 @@ export {
|
|
|
28077
28077
|
B7 as az,
|
|
28078
28078
|
nb as b,
|
|
28079
28079
|
fre as b$,
|
|
28080
|
-
|
|
28081
|
-
|
|
28082
|
-
|
|
28083
|
-
|
|
28084
|
-
|
|
28085
|
-
|
|
28086
|
-
|
|
28087
|
-
|
|
28088
|
-
|
|
28089
|
-
|
|
28090
|
-
|
|
28091
|
-
|
|
28092
|
-
|
|
28093
|
-
|
|
28094
|
-
|
|
28095
|
-
|
|
28096
|
-
|
|
28097
|
-
|
|
28098
|
-
|
|
28099
|
-
|
|
28100
|
-
|
|
28101
|
-
|
|
28102
|
-
|
|
28103
|
-
|
|
28104
|
-
|
|
28105
|
-
|
|
28106
|
-
|
|
28107
|
-
|
|
28108
|
-
|
|
28109
|
-
|
|
28110
|
-
|
|
28111
|
-
|
|
28112
|
-
|
|
28113
|
-
|
|
28114
|
-
|
|
28115
|
-
|
|
28116
|
-
|
|
28117
|
-
|
|
28118
|
-
|
|
28119
|
-
|
|
28120
|
-
|
|
28121
|
-
|
|
28122
|
-
|
|
28123
|
-
|
|
28124
|
-
|
|
28125
|
-
|
|
28126
|
-
|
|
28127
|
-
|
|
28128
|
-
|
|
28129
|
-
|
|
28130
|
-
|
|
28131
|
-
|
|
28132
|
-
|
|
28133
|
-
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
|
|
28137
|
-
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
|
|
28141
|
-
|
|
28142
|
-
|
|
28080
|
+
uM as b0,
|
|
28081
|
+
$ne as b1,
|
|
28082
|
+
Cne as b2,
|
|
28083
|
+
Sre as b3,
|
|
28084
|
+
jC as b4,
|
|
28085
|
+
Ip as b5,
|
|
28086
|
+
Zne as b6,
|
|
28087
|
+
Ob as b7,
|
|
28088
|
+
mM as b8,
|
|
28089
|
+
Cre as b9,
|
|
28090
|
+
Dne as bA,
|
|
28091
|
+
Une as bB,
|
|
28092
|
+
ate as bC,
|
|
28093
|
+
qg as bD,
|
|
28094
|
+
kO as bE,
|
|
28095
|
+
EO as bF,
|
|
28096
|
+
Hne as bG,
|
|
28097
|
+
p2 as bH,
|
|
28098
|
+
tre as bI,
|
|
28099
|
+
Qg as bJ,
|
|
28100
|
+
U$ as bK,
|
|
28101
|
+
W$ as bL,
|
|
28102
|
+
hre as bM,
|
|
28103
|
+
O2 as bN,
|
|
28104
|
+
B$ as bO,
|
|
28105
|
+
Sk as bP,
|
|
28106
|
+
Nk as bQ,
|
|
28107
|
+
nre as bR,
|
|
28108
|
+
rre as bS,
|
|
28109
|
+
ire as bT,
|
|
28110
|
+
are as bU,
|
|
28111
|
+
Fk as bV,
|
|
28112
|
+
ore as bW,
|
|
28113
|
+
sre as bX,
|
|
28114
|
+
lre as bY,
|
|
28115
|
+
ure as bZ,
|
|
28116
|
+
Bk as b_,
|
|
28117
|
+
Ck as ba,
|
|
28118
|
+
L$ as bb,
|
|
28119
|
+
Vne as bc,
|
|
28120
|
+
Xp as bd,
|
|
28121
|
+
Jp as be,
|
|
28122
|
+
ec as bf,
|
|
28123
|
+
CC as bg,
|
|
28124
|
+
Kp as bh,
|
|
28125
|
+
_k as bi,
|
|
28126
|
+
bn as bj,
|
|
28127
|
+
Ag as bk,
|
|
28128
|
+
Yne as bl,
|
|
28129
|
+
$O as bm,
|
|
28130
|
+
dx as bn,
|
|
28131
|
+
kne as bo,
|
|
28132
|
+
One as bp,
|
|
28133
|
+
kre as bq,
|
|
28134
|
+
Kt as br,
|
|
28135
|
+
Kte as bs,
|
|
28136
|
+
Ane as bt,
|
|
28137
|
+
N$ as bu,
|
|
28138
|
+
Px as bv,
|
|
28139
|
+
bre as bw,
|
|
28140
|
+
P3 as bx,
|
|
28141
|
+
mre as by,
|
|
28142
|
+
Ore as bz,
|
|
28143
28143
|
se as c,
|
|
28144
28144
|
oh as c0,
|
|
28145
28145
|
wk as c1,
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Ee = Object.defineProperty;
|
|
2
2
|
var Oe = (e, t, n) => t in e ? Ee(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var E = (e, t, n) => Oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { t as F,
|
|
5
|
-
import {
|
|
4
|
+
import { t as F, bD as we, j as d, bE as De, P as z, bm as Pe, bF as me, $ as O, bg as ke, Q as G, bG as je, aX as Ie, aw as Le, aq as pe, bi as he, at as I, as as Me, bH as He, aP as oe, bI as _e, ab as ye, bJ as ae, bK as $e, aR as Re, af as Ue, a1 as Fe } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
5
|
+
import { bL as Bt, bd as Yt } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
6
6
|
import D, { useState as S, useCallback as h, useMemo as T, useContext as _, useEffect as j, useRef as te, Component as re } from "react";
|
|
7
7
|
import { EventType as W, InteractionRequiredAuthError as Ne } from "@azure/msal-browser";
|
|
8
8
|
import { MsalProvider as qe } 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 Ge, b as ze } from "./FormDisabledProvider-
|
|
14
|
-
import { F as Wt } from "./FormDisabledProvider-
|
|
15
|
-
import { a as Ke, u as Ve } from "./useLocalStorageState-
|
|
13
|
+
import { L as Ge, b as ze } from "./FormDisabledProvider-6tUxmuDM.js";
|
|
14
|
+
import { F as Wt } from "./FormDisabledProvider-6tUxmuDM.js";
|
|
15
|
+
import { a as Ke, u as Ve } from "./useLocalStorageState-DtLtD3Dq.js";
|
|
16
16
|
function Be(e) {
|
|
17
17
|
const t = F(e);
|
|
18
18
|
return t.setHours(23, 59, 59, 999), t;
|
|
@@ -121,7 +121,7 @@ const Qe = ({ children: e }) => {
|
|
|
121
121
|
e
|
|
122
122
|
] });
|
|
123
123
|
}, Nt = ({ children: e }) => {
|
|
124
|
-
const t =
|
|
124
|
+
const t = Le(), { msalInstance: n, getToken: r } = _(pe), { delegation: s, setDelegation: o, setAvailableDelegations: c, refreshAvailableDelegations: i } = _(he), [l, a] = S(null), u = h(async () => {
|
|
125
125
|
const g = await r();
|
|
126
126
|
g && a(g.token);
|
|
127
127
|
}, [r]);
|
|
@@ -191,7 +191,7 @@ const Qe = ({ children: e }) => {
|
|
|
191
191
|
loginUser: w,
|
|
192
192
|
logoutUser: P
|
|
193
193
|
}), [p, w, P]);
|
|
194
|
-
return /* @__PURE__ */ d.jsx(
|
|
194
|
+
return /* @__PURE__ */ d.jsx(Me.Provider, { value: Ce, children: e });
|
|
195
195
|
}, qt = ({ ...e }) => {
|
|
196
196
|
const { cookieDomain: t } = _(z), [, n] = He(["Authorization"]), r = T(
|
|
197
197
|
() => e.useMsal ? e.msalInstance : null,
|
|
@@ -420,7 +420,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
420
420
|
}, lt = Object.entries(ne).reduce(
|
|
421
421
|
(e, [t, n]) => (e[n] = t, e),
|
|
422
422
|
{}
|
|
423
|
-
), A = "data-rh",
|
|
423
|
+
), A = "data-rh", M = {
|
|
424
424
|
DEFAULT_TITLE: "defaultTitle",
|
|
425
425
|
DEFER: "defer",
|
|
426
426
|
ENCODE_SPECIAL_CHARACTERS: "encodeSpecialCharacters",
|
|
@@ -440,12 +440,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
440
440
|
"title"
|
|
441
441
|
/* TITLE */
|
|
442
442
|
);
|
|
443
|
-
const n = H(e,
|
|
443
|
+
const n = H(e, M.TITLE_TEMPLATE);
|
|
444
444
|
if (Array.isArray(t) && (t = t.join("")), n && t)
|
|
445
445
|
return n.replace(/%s/g, () => t);
|
|
446
|
-
const r = H(e,
|
|
446
|
+
const r = H(e, M.DEFAULT_TITLE);
|
|
447
447
|
return t || r || void 0;
|
|
448
|
-
}, ut = (e) => H(e,
|
|
448
|
+
}, ut = (e) => H(e, M.ON_CHANGE_CLIENT_STATE) || (() => {
|
|
449
449
|
}), B = (e, t) => t.filter((n) => typeof n[e] < "u").map((n) => n[e]).reduce((n, r) => ({ ...n, ...r }), {}), ft = (e, t) => t.filter((n) => typeof n.base < "u").map((n) => n.base).reverse().reduce((n, r) => {
|
|
450
450
|
if (!n.length) {
|
|
451
451
|
const s = Object.keys(r);
|
|
@@ -497,8 +497,8 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
497
497
|
/* HREF */
|
|
498
498
|
], e),
|
|
499
499
|
bodyAttributes: B("bodyAttributes", e),
|
|
500
|
-
defer: H(e,
|
|
501
|
-
encode: H(e,
|
|
500
|
+
defer: H(e, M.DEFER),
|
|
501
|
+
encode: H(e, M.ENCODE_SPECIAL_CHARACTERS),
|
|
502
502
|
htmlAttributes: B("htmlAttributes", e),
|
|
503
503
|
linkTags: $(
|
|
504
504
|
"link",
|
|
@@ -541,7 +541,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
541
541
|
], e),
|
|
542
542
|
title: ct(e),
|
|
543
543
|
titleAttributes: B("titleAttributes", e),
|
|
544
|
-
prioritizeSeoTags: mt(e,
|
|
544
|
+
prioritizeSeoTags: mt(e, M.PRIORITIZE_SEO_TAGS)
|
|
545
545
|
}), Te = (e) => Array.isArray(e) ? e.join("") : e, ht = (e, t) => {
|
|
546
546
|
const n = Object.keys(e);
|
|
547
547
|
for (let r = 0; r < n.length; r += 1)
|
|
@@ -714,7 +714,7 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
714
714
|
render() {
|
|
715
715
|
return /* @__PURE__ */ D.createElement(be.Provider, { value: this.helmetData.value }, this.props.children);
|
|
716
716
|
}
|
|
717
|
-
}, E(k, "canUseDOM", Se), k),
|
|
717
|
+
}, E(k, "canUseDOM", Se), k), L = (e, t) => {
|
|
718
718
|
const n = document.head || document.querySelector(
|
|
719
719
|
"head"
|
|
720
720
|
/* HEAD */
|
|
@@ -772,12 +772,12 @@ var ge = /* @__PURE__ */ ((e) => (e.BASE = "base", e.BODY = "body", e.HEAD = "he
|
|
|
772
772
|
} = e;
|
|
773
773
|
ee("body", r), ee("html", s), At(f, m);
|
|
774
774
|
const p = {
|
|
775
|
-
baseTag:
|
|
776
|
-
linkTags:
|
|
777
|
-
metaTags:
|
|
778
|
-
noscriptTags:
|
|
779
|
-
scriptTags:
|
|
780
|
-
styleTags:
|
|
775
|
+
baseTag: L("base", n),
|
|
776
|
+
linkTags: L("link", o),
|
|
777
|
+
metaTags: L("meta", c),
|
|
778
|
+
noscriptTags: L("noscript", i),
|
|
779
|
+
scriptTags: L("script", a),
|
|
780
|
+
styleTags: L("style", u)
|
|
781
781
|
}, y = {}, v = {};
|
|
782
782
|
Object.keys(p).forEach((C) => {
|
|
783
783
|
const { newTags: w, oldTags: P } = p[C];
|
|
@@ -996,7 +996,7 @@ export {
|
|
|
996
996
|
Ft as LoadingProvider,
|
|
997
997
|
z as LuminusComponentsContext,
|
|
998
998
|
Ut as LuminusComponentsProvider,
|
|
999
|
-
|
|
999
|
+
Me as UserContext,
|
|
1000
1000
|
Nt as UserProvider,
|
|
1001
1001
|
Yt as useFormDisabledContext
|
|
1002
1002
|
};
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { aw as k,
|
|
2
|
-
import {
|
|
3
|
-
import { u as ot, a as ut } from "./useLocalStorageState-
|
|
4
|
-
import { useState as
|
|
1
|
+
import { aw as k, aX as L, ar as O } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
2
|
+
import { bM as Y, bu as Z, bO as j, aR as J, bN as _, af as K, aY as tt, bb as et, bm as at, a2 as st, bh as rt } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
3
|
+
import { u as ot, a as ut } from "./useLocalStorageState-DtLtD3Dq.js";
|
|
4
|
+
import { useState as b, useEffect as g, useContext as $, 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";
|
|
7
7
|
import "react-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 y = (e) => {
|
|
13
13
|
let t = "pending", r;
|
|
14
14
|
const a = e.then((s) => {
|
|
15
15
|
t = "success", r = s;
|
|
@@ -29,20 +29,20 @@ const B = (e) => {
|
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function q(e, t) {
|
|
33
33
|
const r = k({
|
|
34
34
|
silent: !0,
|
|
35
35
|
differentBaseUrl: t == null ? void 0 : t.customBaseUrl,
|
|
36
36
|
customToken: t == null ? void 0 : t.customToken
|
|
37
|
-
}), [a, s] =
|
|
37
|
+
}), [a, s] = b(null);
|
|
38
38
|
return g(() => {
|
|
39
39
|
(async () => {
|
|
40
40
|
const n = r.get(e).then((u) => u.data);
|
|
41
|
-
s(
|
|
41
|
+
s(y(n));
|
|
42
42
|
})();
|
|
43
43
|
}, [r, e]), a;
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const B = (e, t, r) => {
|
|
46
46
|
let a = "pending", s;
|
|
47
47
|
const c = e.then((n) => {
|
|
48
48
|
a = "success", s = n;
|
|
@@ -70,22 +70,22 @@ const E = (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 = k({
|
|
75
75
|
silent: a,
|
|
76
76
|
customToken: u,
|
|
77
77
|
differentBaseUrl: n,
|
|
78
78
|
noToastOnStatus: o ? [404] : void 0
|
|
79
|
-
}), { startLoading: m, stopLoading:
|
|
80
|
-
if (!
|
|
79
|
+
}), { startLoading: m, stopLoading: v } = $(L), T = I(0), { isAuthenticated: D } = O(), [A, h] = b(null), w = S(async (f, C) => {
|
|
80
|
+
if (!D() || r === !1)
|
|
81
81
|
return;
|
|
82
|
-
!a && m(`loadData-${e}-${C}`), s &&
|
|
83
|
-
const
|
|
82
|
+
!a && m(`loadData-${e}-${C}`), s && h(null);
|
|
83
|
+
const P = l.get(e, {
|
|
84
84
|
signal: f
|
|
85
|
-
}).then((x) => i ? i(x.data) : x.data).finally(() => !a &&
|
|
86
|
-
|
|
85
|
+
}).then((x) => i ? i(x.data) : x.data).finally(() => !a && v(`loadData-${e}-${C}`));
|
|
86
|
+
h(B(P, c ?? !1, o ?? !1));
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
D,
|
|
89
89
|
r,
|
|
90
90
|
a,
|
|
91
91
|
m,
|
|
@@ -93,7 +93,7 @@ const E = (e, t, r) => {
|
|
|
93
93
|
s,
|
|
94
94
|
l,
|
|
95
95
|
i,
|
|
96
|
-
|
|
96
|
+
v,
|
|
97
97
|
c,
|
|
98
98
|
o
|
|
99
99
|
]);
|
|
@@ -101,16 +101,16 @@ const E = (e, t, r) => {
|
|
|
101
101
|
if (t === !1)
|
|
102
102
|
return;
|
|
103
103
|
const f = new AbortController();
|
|
104
|
-
return
|
|
104
|
+
return w(f.signal, ++T.current), () => {
|
|
105
105
|
f.abort();
|
|
106
106
|
};
|
|
107
|
-
}, [
|
|
107
|
+
}, [w, t]), { data: A, setData: h, reloadData: w };
|
|
108
108
|
}, p = {
|
|
109
109
|
storageKey: "--tmp-scroll-save--",
|
|
110
110
|
requiredHeight: 100,
|
|
111
111
|
retryInterval: 50
|
|
112
|
-
},
|
|
113
|
-
const [s, c] =
|
|
112
|
+
}, H = (e, { storageKey: t = p.storageKey, requiredHeight: r = p.requiredHeight, retryInterval: a = p.retryInterval } = p) => {
|
|
113
|
+
const [s, c] = b(!1), n = I(null), u = S(() => {
|
|
114
114
|
const o = localStorage.getItem(t);
|
|
115
115
|
return localStorage.removeItem(t), o === null ? null : Number(o);
|
|
116
116
|
}, [t]), i = S((o) => {
|
|
@@ -137,24 +137,24 @@ const E = (e, t, r) => {
|
|
|
137
137
|
}, [i, e]), { saveValue: i, retrieveValue: u };
|
|
138
138
|
};
|
|
139
139
|
export {
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
Y as cancelToken,
|
|
141
|
+
O as useAuth,
|
|
142
142
|
k as useAxios,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
Z as useClickOutside,
|
|
144
|
+
j as useClipboard,
|
|
145
|
+
J as useConfirm,
|
|
146
146
|
ct as useEmployeePhotoPath,
|
|
147
147
|
_ as useFormControlType,
|
|
148
148
|
ot as useGetApiData,
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
z as useGetApiDataBound,
|
|
150
|
+
q 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.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-DTVPEbpS.cjs"),x=require("react"),g=require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-DTVPEbpS.cjs"),x=require("react"),g=require("react-router-dom");require("react-hook-form");require("react-flexmonster");require("@azure/msal-browser");require("@azure/msal-react");require("react-dom");const P="_side-menu-item_o72rm_1",f="_disabled_o72rm_6",w="_hidden_o72rm_10",T="_nav-button_o72rm_13",q="_child_o72rm_21",S="_text_o72rm_26",I="_icon_o72rm_36",L="_collapse-icon_o72rm_42",O="_collapsed_o72rm_52",A="_collapse-icon-mini_o72rm_55",$="_expanded_o72rm_86",D="_children-container_o72rm_92",K="_visible_o72rm_100",F="_children_o72rm_92",z="_mobile_o72rm_112",n={"side-menu-item":"_side-menu-item_o72rm_1",sideMenuItem:P,disabled:f,hidden:w,"nav-button":"_nav-button_o72rm_13",navButton:T,child:q,text:S,icon:I,"collapse-icon":"_collapse-icon_o72rm_42",collapseIcon:L,collapsed:O,"collapse-icon-mini":"_collapse-icon-mini_o72rm_55",collapseIconMini:A,expanded:$,"children-container":"_children-container_o72rm_92",childrenContainer:D,visible:K,children:F,mobile:z},G=({item:s,menuExpanded:i,useTooltips:r,children:c})=>s.tooltip&&!i&&r?e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:s.tooltip,placement:"top",delay:{show:1e3,hide:0},children:e.jsxRuntimeExports.jsx("div",{children:c})}):c,C=({item:s,menuExpanded:i,collapsed:r,onCollapse:c,currentPath:_,useHover:l,useTooltips:p,isMobile:k,disableMode:a})=>{var N,v,E,y;const[M,h]=x.useState(!1),[j]=_.split("?"),R=s.linkTo===j||((N=s.children)==null?void 0:N.some(o=>o.linkTo===j)),m=x.useRef(null);return e.useClickOutside([m],()=>r&&c()),e.jsxRuntimeExports.jsxs("li",{ref:m,className:e.classNames("luminus-side-menu-item",n.sideMenuItem,{[n.mobile]:k},{[n.expanded]:i},{active:M||R},{open:r&&s.children},{[a==="disable"?n.disabled:n.hidden]:s.disabled||s.notPermitted||((v=s.children)==null?void 0:v.every(o=>o.notPermitted||o.disabled))},{[a==="disable"?"disabled":"hidden"]:s.disabled||s.notPermitted||((E=s.children)==null?void 0:E.every(o=>o.notPermitted||o.disabled))}),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),children:[e.jsxRuntimeExports.jsx(G,{item:s,menuExpanded:i,useTooltips:p,children:s.children?e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:e.jsxRuntimeExports.jsxs("button",{type:"button",className:e.classNames("nav-link",n.navButton),onClick:()=>{c()},children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),!l&&!i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon-mini rounded",n.collapseIconMini,{[n.collapsed]:r}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("collapse-icon",n.collapseIcon,{[n.collapsed]:r}),children:e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardArrowRight,{})})]})}):e.jsxRuntimeExports.jsxs(g.Link,{to:s.disabled||s.notPermitted?"/":s.linkTo??"/",className:e.classNames("nav-link",n.navButton),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("icon",n.icon),children:s.icon}),i&&e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:s.title})]})}),e.jsxRuntimeExports.jsx("div",{className:e.classNames("children-container",n.childrenContainer,{[n.visible]:r}),children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("shadow rounded children",n.children),children:(y=s.children)==null?void 0:y.map(o=>e.jsxRuntimeExports.jsx(g.Link,{to:o.disabled||o.notPermitted?"/":o.linkTo??"/",className:e.classNames("nav-link child rounded",n.navButton,n.child,{[a==="disable"?n.disabled:n.hidden]:o.disabled||o.notPermitted},{[a==="disable"?"disabled":"hidden"]:o.disabled||o.notPermitted}),onClick:c,children:e.jsxRuntimeExports.jsx("div",{className:e.classNames("text",n.text,"text-nowrap"),children:o.title})},o.linkTo))})})]})},H="_side-menu_12rky_1",U="_sidebar-header_12rky_15",W="_side-menu-content_12rky_22",J="_no-top-margin_12rky_28",Q="_expand_12rky_34",V="_only-logo_12rky_38",X="_mobile_12rky_41",Y="_divider_12rky_56",u={"side-menu":"_side-menu_12rky_1",sideMenu:H,"sidebar-header":"_sidebar-header_12rky_15",sidebarHeader:U,"side-menu-content":"_side-menu-content_12rky_22",sideMenuContent:W,"no-top-margin":"_no-top-margin_12rky_28",noTopMargin:J,expand:Q,"only-logo":"_only-logo_12rky_38",onlyLogo:V,mobile:X,divider:Y},Z=14,ee=({headerItem:s,searchItem:i,shortcutsItem:r,mainItems:c,secondaryItems:_,expanded:l,setExpanded:p,currentPath:k,useHover:a,useTooltips:M,disableMode:h="disable"})=>{const[j,R]=x.useState(-1),{checkUserHasPermissions:m}=e.usePermissions(),N=x.useMemo(()=>c.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(b=>({...b,notPermitted:!m(b.permissions??[],"any"),disabled:t.disabled||b.disabled}))}}),[c,m]),v=x.useMemo(()=>_.map(t=>{var d;return{...t,notPermitted:!m(t.permissions??[],"any"),children:(d=t.children)==null?void 0:d.map(b=>({...b,notPermitted:!m(b.permissions??[],"any")}))}}),[_,m]),E=t=>{R(t===j?-1:t)};x.useEffect(()=>{l||R(-1)},[l]);const y=x.useRef(null);e.useClickOutside([y],()=>p(!1));const{isMobile:o}=e.useWindowSize();return e.jsxRuntimeExports.jsxs("section",{ref:y,className:e.classNames("luminus-side-menu shadow",u.sideMenu,{[u.mobile]:o},{[u.expand]:l},{expand:l}),onMouseEnter:()=>a&&p(!0),onMouseLeave:()=>a&&p(!1),children:[e.jsxRuntimeExports.jsx("div",{className:e.classNames("sidebar-header",u.sidebarHeader,{[u.onlyLogo]:a}),role:a?void 0:"button",onClick:a?void 0:()=>p(!l),children:a?s:l?e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(e.MdOutlineKeyboardDoubleArrowLeft,{}),s]}):e.jsxRuntimeExports.jsx(e.MdOutlineMenu,{})}),l&&(i||r)?e.jsxRuntimeExports.jsxs("div",{className:"mb-3 d-flex flex-column gap-3",children:[r&&l?r:null,i&&l?i:null]}):null,e.jsxRuntimeExports.jsxs("ul",{className:e.classNames(u.sideMenuContent,{[u.noTopMargin]:[...N,...v].length>Z}),children:[N.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:l,collapsed:d===j,onCollapse:()=>E(d),currentPath:k,useHover:a,useTooltips:M,isMobile:o,disableMode:h},t.title)),e.jsxRuntimeExports.jsx("hr",{className:e.classNames("divider",u.divider)}),v.map((t,d)=>e.jsxRuntimeExports.jsx(C,{item:t,menuExpanded:l,collapsed:d===j,onCollapse:()=>E(d),currentPath:k,useHover:a,useTooltips:M,isMobile:o,disableMode:h},t.title))]})]})},se="_top-bar_lnmq0_1",ne="_top-bar-brand_lnmq0_12",B={"top-bar":"_top-bar_lnmq0_1",topBar:se,"top-bar-brand":"_top-bar-brand_lnmq0_12",topBarBrand:ne},oe=({appName:s,leftOffset:i,leftContent:r,centerContent:c,rightContent:_})=>e.jsxRuntimeExports.jsx("nav",{className:e.classNames("luminus-top-bar shadow",B.topBar),style:{width:i?`calc(100% - ${i}px)`:void 0,left:i?`${i}px`:void 0},children:e.jsxRuntimeExports.jsxs("div",{className:"w-100 row g-0",children:[e.jsxRuntimeExports.jsxs("div",{className:"col-4 d-flex gap-3 align-items-center",children:[e.jsxRuntimeExports.jsx(g.Link,{to:"/",className:e.classNames("luminus-top-bar-brand",B.topBarBrand),children:s}),r]}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex align-items-center",children:c??null}),e.jsxRuntimeExports.jsx("div",{className:"col-4 d-flex justify-content-end align-items-center",children:_??null})]})});exports.PageContainer=e.PageContainer;exports.SideContentBar=e.SideContentBar;exports.SideMenu=ee;exports.TopBar=oe;
|