react-luminus-components 1.4.56 → 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.es.js +8 -8
- 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/{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.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useState as L, useRef as R, useMemo as P, useEffect as
|
|
1
|
+
import { bu as T, j as n, c as i, Y as C, ao as S, bb as A, a2 as $, bA as q, bB as O } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
2
|
+
import { b9 as Bn, bC as Cn } from "./ShortcutLinksContext-BnnVfkMM.js";
|
|
3
|
+
import { useState as L, useRef as R, useMemo as P, useEffect as D } from "react";
|
|
4
4
|
import { Link as B } 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 F = "_side-menu-item_o72rm_1", K = "_disabled_o72rm_6", z = "_hidden_o72rm_10", E = "_nav-button_o72rm_13", G = "_child_o72rm_21", H = "_text_o72rm_26", U = "_icon_o72rm_36", W = "_collapse-icon_o72rm_42", Y = "_collapsed_o72rm_52", J = "_collapse-icon-mini_o72rm_55", Q = "_expanded_o72rm_86", V = "_children-container_o72rm_92", X = "_visible_o72rm_100", Z = "_children_o72rm_92", nn = "_mobile_o72rm_112", s = {
|
|
11
11
|
"side-menu-item": "_side-menu-item_o72rm_1",
|
|
12
|
-
sideMenuItem:
|
|
13
|
-
disabled:
|
|
14
|
-
hidden:
|
|
12
|
+
sideMenuItem: F,
|
|
13
|
+
disabled: K,
|
|
14
|
+
hidden: z,
|
|
15
15
|
"nav-button": "_nav-button_o72rm_13",
|
|
16
16
|
navButton: E,
|
|
17
17
|
child: G,
|
|
@@ -100,7 +100,7 @@ const D = "_side-menu-item_o72rm_1", F = "_disabled_o72rm_6", K = "_hidden_o72rm
|
|
|
100
100
|
}), [u, m]), N = (t) => {
|
|
101
101
|
j(t === h ? -1 : t);
|
|
102
102
|
};
|
|
103
|
-
|
|
103
|
+
D(() => {
|
|
104
104
|
a || j(-1);
|
|
105
105
|
}, [a]);
|
|
106
106
|
const M = R(null);
|