react-luminus-components 2.1.0 → 2.1.2
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 +40 -40
- package/dist/{FormDisabledProvider-DT0dU-kQ.cjs → FormDisabledProvider-BmGT82vd.cjs} +1 -1
- package/dist/{FormDisabledProvider-CixhRdLK.js → FormDisabledProvider-faatkj2d.js} +4 -4
- package/dist/components/Documents/Documents.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/DocumentsModals.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/EditFileModal.d.ts +2 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/EditFileModalInner.d.ts +2 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/components/HookFormRecipient.d.ts +12 -0
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/components/index.d.ts +1 -0
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +15 -0
- package/dist/components/Documents/utils/documentsConstants.d.ts +3 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +103 -103
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +82 -82
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +92 -92
- package/dist/localStorageUtils-CmHKDfSh.cjs +1 -0
- package/dist/{localStorageUtils-CZ4HDRzi.js → localStorageUtils-Dm59KUwC.js} +10 -29
- package/dist/main.cjs.js +7 -15
- package/dist/main.es.js +7467 -8369
- package/dist/models/api/documents/DocumentFileModel.d.ts +8 -0
- package/dist/models/api/employee/EmployeeLookupModel.d.ts +18 -0
- package/dist/models/texts/DocumentsTexts.d.ts +8 -0
- package/dist/models/texts/NotifCentrumTexts.d.ts +1 -0
- package/dist/models/types/notifCenter/NotificationTemplate.d.ts +1 -0
- package/dist/nivo-bar-CYwXuVs2.cjs +293 -0
- package/dist/{nivo-bar-BkbzRnZi.js → nivo-bar-Dvo_C4bb.js} +15283 -14104
- package/dist/{useIsFormDirty-C2-K6Xed.cjs → useIsFormDirty-C53Kh2XN.cjs} +1 -1
- package/dist/{useIsFormDirty-DZBIvp4X.js → useIsFormDirty-DrM6JmtY.js} +1 -1
- package/dist/useLocalStorageState-CzdQutCi.js +25 -0
- package/dist/useLocalStorageState-hUZJI1T5.cjs +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +55 -55
- package/package.json +1 -1
- package/dist/localStorageUtils-CkZslzIU.cjs +0 -1
- package/dist/nivo-bar-CFkvCosn.cjs +0 -285
- package/dist/useLocalStorageState-B1kFYGzD.js +0 -91
- package/dist/useLocalStorageState-E2HAjd0z.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 { aW as re, a as p, a0 as le, c as ie, aH as ue, bB as he, aI as _e, bX as fe, bY as be, bZ as oe } from "./nivo-bar-Dvo_C4bb.js";
|
|
3
|
+
import { aF as dn, b_ as an } from "./nivo-bar-Dvo_C4bb.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",
|
|
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", Be = "_collapsed_o72rm_52", Ce = "_collapse-icon-mini_o72rm_55", Se = "_expanded_o72rm_86", we = "_children-container_o72rm_92", Te = "_visible_o72rm_100", Ee = "_children_o72rm_92", He = "_mobile_o72rm_112", c = {
|
|
12
12
|
sideMenuItem: xe,
|
|
13
13
|
disabled: Me,
|
|
14
14
|
hidden: Ne,
|
|
@@ -17,21 +17,21 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
17
17
|
text: ge,
|
|
18
18
|
icon: ye,
|
|
19
19
|
collapseIcon: ke,
|
|
20
|
-
collapsed:
|
|
21
|
-
collapseIconMini:
|
|
20
|
+
collapsed: Be,
|
|
21
|
+
collapseIconMini: Ce,
|
|
22
22
|
expanded: Se,
|
|
23
23
|
childrenContainer: we,
|
|
24
|
-
visible:
|
|
25
|
-
children:
|
|
24
|
+
visible: Te,
|
|
25
|
+
children: Ee,
|
|
26
26
|
mobile: He
|
|
27
27
|
}, $e = (o) => {
|
|
28
28
|
const e = ie.c(6), {
|
|
29
29
|
item: m,
|
|
30
|
-
menuExpanded:
|
|
30
|
+
menuExpanded: _,
|
|
31
31
|
useTooltips: v,
|
|
32
32
|
children: N
|
|
33
33
|
} = o;
|
|
34
|
-
if (m.tooltip && !
|
|
34
|
+
if (m.tooltip && !_ && v) {
|
|
35
35
|
let P;
|
|
36
36
|
e[0] === Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
37
37
|
show: 1e3,
|
|
@@ -47,7 +47,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
47
47
|
item: o,
|
|
48
48
|
menuExpanded: e,
|
|
49
49
|
collapsed: m,
|
|
50
|
-
onCollapse:
|
|
50
|
+
onCollapse: _,
|
|
51
51
|
currentPath: v,
|
|
52
52
|
useHover: N,
|
|
53
53
|
useTooltips: P,
|
|
@@ -55,13 +55,13 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
55
55
|
disableMode: l
|
|
56
56
|
}) => {
|
|
57
57
|
var M, u, a, y;
|
|
58
|
-
const [
|
|
59
|
-
return re([x], () => m &&
|
|
58
|
+
const [f, i] = me(!1), [r] = v.split("?"), C = o.linkTo === r || ((M = o.children) == null ? void 0 : M.some((t) => t.linkTo === r)), x = pe(null);
|
|
59
|
+
return re([x], () => m && _()), /* @__PURE__ */ S("li", { ref: x, className: p("luminus-side-menu-item", c.sideMenuItem, {
|
|
60
60
|
[c.mobile]: n
|
|
61
61
|
}, {
|
|
62
62
|
[c.expanded]: e
|
|
63
63
|
}, {
|
|
64
|
-
active:
|
|
64
|
+
active: f || C
|
|
65
65
|
}, {
|
|
66
66
|
open: m && o.children
|
|
67
67
|
}, {
|
|
@@ -70,7 +70,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
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
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
|
+
_();
|
|
74
74
|
}, children: [
|
|
75
75
|
/* @__PURE__ */ s("div", { className: p("icon", c.icon), children: o.icon }),
|
|
76
76
|
!N && !e && /* @__PURE__ */ s("div", { className: p("collapse-icon-mini rounded", c.collapseIconMini, {
|
|
@@ -90,35 +90,35 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
90
90
|
[l === "disable" ? c.disabled : c.hidden]: t.disabled || t.notPermitted
|
|
91
91
|
}, {
|
|
92
92
|
[l === "disable" ? "disabled" : "hidden"]: t.disabled || t.notPermitted
|
|
93
|
-
}), onClick:
|
|
93
|
+
}), onClick: _, children: /* @__PURE__ */ s("div", { className: p("text", c.text, "text-nowrap"), children: t.title }) }, t.linkTo)) }) })
|
|
94
94
|
] });
|
|
95
|
-
},
|
|
96
|
-
sideMenu:
|
|
97
|
-
sidebarHeader:
|
|
95
|
+
}, Le = "_side-menu_2nic9_1", Oe = "_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", Fe = "_expand_2nic9_40", We = "_only-logo_2nic9_44", ze = "_mobile_2nic9_47", Ke = "_divider_2nic9_68", B = {
|
|
96
|
+
sideMenu: Le,
|
|
97
|
+
sidebarHeader: Oe,
|
|
98
98
|
sideMenuPin: Re,
|
|
99
99
|
sideMenuShrinkableMargin: je,
|
|
100
100
|
onMobileNotExpanded: qe,
|
|
101
101
|
sideMenuContent: Ae,
|
|
102
|
-
expand:
|
|
103
|
-
onlyLogo:
|
|
104
|
-
mobile:
|
|
102
|
+
expand: Fe,
|
|
103
|
+
onlyLogo: We,
|
|
104
|
+
mobile: ze,
|
|
105
105
|
divider: Ke
|
|
106
106
|
}, tn = (o) => {
|
|
107
107
|
const e = ie.c(101), {
|
|
108
108
|
headerItem: m,
|
|
109
|
-
searchItem:
|
|
109
|
+
searchItem: _,
|
|
110
110
|
shortcutsItem: v,
|
|
111
111
|
mainItems: N,
|
|
112
112
|
secondaryItems: P,
|
|
113
113
|
expanded: n,
|
|
114
114
|
setExpanded: l,
|
|
115
|
-
currentPath:
|
|
115
|
+
currentPath: f,
|
|
116
116
|
useHover: i,
|
|
117
117
|
useTooltips: r,
|
|
118
|
-
disableMode:
|
|
118
|
+
disableMode: C,
|
|
119
119
|
sideMenuPinned: x,
|
|
120
120
|
toggleSideMenuPinned: M
|
|
121
|
-
} = o, u =
|
|
121
|
+
} = o, u = C === void 0 ? "disable" : C, [a, y] = me(-1), {
|
|
122
122
|
checkUserHasPermissions: t
|
|
123
123
|
} = he();
|
|
124
124
|
let I;
|
|
@@ -139,7 +139,7 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
139
139
|
} else
|
|
140
140
|
I = e[2];
|
|
141
141
|
const w = I;
|
|
142
|
-
let
|
|
142
|
+
let U;
|
|
143
143
|
if (e[5] !== t || e[6] !== P) {
|
|
144
144
|
let d;
|
|
145
145
|
e[8] !== t ? (d = (b) => {
|
|
@@ -152,99 +152,99 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
152
152
|
notPermitted: !t(K.permissions ?? [], "any")
|
|
153
153
|
}))
|
|
154
154
|
};
|
|
155
|
-
}, e[8] = t, e[9] = d) : d = e[9],
|
|
155
|
+
}, e[8] = t, e[9] = d) : d = e[9], U = P.map(d), e[5] = t, e[6] = P, e[7] = U;
|
|
156
156
|
} else
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
let
|
|
160
|
-
e[10] !== a ? (
|
|
157
|
+
U = e[7];
|
|
158
|
+
const V = U;
|
|
159
|
+
let X;
|
|
160
|
+
e[10] !== a ? (X = (d) => {
|
|
161
161
|
y(d === a ? -1 : d);
|
|
162
|
-
}, e[10] = a, e[11] =
|
|
163
|
-
const k =
|
|
164
|
-
let
|
|
165
|
-
e[12] !== n ? (
|
|
162
|
+
}, e[10] = a, e[11] = X) : X = e[11];
|
|
163
|
+
const k = X;
|
|
164
|
+
let Y, Z;
|
|
165
|
+
e[12] !== n ? (Y = () => {
|
|
166
166
|
n || y(-1);
|
|
167
|
-
},
|
|
167
|
+
}, Z = [n], e[12] = n, e[13] = Y, e[14] = Z) : (Y = e[13], Z = e[14]), ve(Y, Z);
|
|
168
168
|
const se = pe(null);
|
|
169
|
-
let
|
|
170
|
-
e[15] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
171
|
-
let
|
|
172
|
-
e[16] !== l ? (
|
|
169
|
+
let D;
|
|
170
|
+
e[15] === Symbol.for("react.memo_cache_sentinel") ? (D = [se], e[15] = D) : D = e[15];
|
|
171
|
+
let G;
|
|
172
|
+
e[16] !== l ? (G = () => l(!1), e[16] = l, e[17] = G) : G = e[17], re(D, G);
|
|
173
173
|
const {
|
|
174
174
|
isMobile: h
|
|
175
|
-
} =
|
|
176
|
-
let
|
|
177
|
-
e[18] !== n || e[19] !== h ? (
|
|
178
|
-
[
|
|
175
|
+
} = _e();
|
|
176
|
+
let T;
|
|
177
|
+
e[18] !== n || e[19] !== h ? (T = p("luminus-side-menu shadow", B.sideMenu, {
|
|
178
|
+
[B.mobile]: h
|
|
179
179
|
}, {
|
|
180
|
-
[
|
|
180
|
+
[B.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 ? (
|
|
183
|
+
}), e[18] = n, e[19] = h, e[20] = T) : T = e[20];
|
|
184
|
+
let E, H;
|
|
185
|
+
e[21] !== l || e[22] !== i ? (E = () => i && l(!0), H = () => i && l(!1), e[21] = l, e[22] = i, e[23] = E, e[24] = H) : (E = e[23], H = e[24]);
|
|
186
186
|
let $;
|
|
187
|
-
e[25] !== i ? ($ = p("sidebar-header",
|
|
188
|
-
[
|
|
187
|
+
e[25] !== i ? ($ = p("sidebar-header", B.sidebarHeader, {
|
|
188
|
+
[B.onlyLogo]: i
|
|
189
189
|
}), e[25] = i, e[26] = $) : $ = e[26];
|
|
190
190
|
const ee = i ? void 0 : "button";
|
|
191
|
-
let O;
|
|
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];
|
|
193
191
|
let L;
|
|
194
|
-
e[
|
|
192
|
+
e[27] !== n || e[28] !== l || e[29] !== i ? (L = i ? void 0 : () => l(!n), e[27] = n, e[28] = l, e[29] = i, e[30] = L) : L = e[30];
|
|
193
|
+
let O;
|
|
194
|
+
e[31] !== n || e[32] !== m || e[33] !== h || e[34] !== x || e[35] !== M || e[36] !== i ? (O = i ? m : n ? /* @__PURE__ */ S(ce, { children: [
|
|
195
195
|
h ? /* @__PURE__ */ s(oe, {}) : /* @__PURE__ */ s("div", { role: "button", onClick: (d) => {
|
|
196
196
|
d.stopPropagation(), M();
|
|
197
|
-
}, className:
|
|
197
|
+
}, className: B.sideMenuPin, children: x ? /* @__PURE__ */ s(fe, {}) : /* @__PURE__ */ s(be, {}) }),
|
|
198
198
|
m
|
|
199
|
-
] }) : /* @__PURE__ */ s(oe, {}), e[31] = n, e[32] = m, e[33] = h, e[34] = x, e[35] = M, e[36] = i, e[37] =
|
|
199
|
+
] }) : /* @__PURE__ */ s(oe, {}), e[31] = n, e[32] = m, e[33] = h, e[34] = x, e[35] = M, e[36] = i, e[37] = O) : O = e[37];
|
|
200
200
|
let R;
|
|
201
|
-
e[38] !== $ || e[39] !== ee || e[40] !==
|
|
201
|
+
e[38] !== $ || e[39] !== ee || e[40] !== L || e[41] !== O ? (R = /* @__PURE__ */ s("div", { className: $, role: ee, onClick: L, children: O }), e[38] = $, e[39] = ee, e[40] = L, e[41] = O, e[42] = R) : R = e[42];
|
|
202
202
|
let j;
|
|
203
|
-
e[43] !== n || e[44] !==
|
|
203
|
+
e[43] !== n || e[44] !== _ || e[45] !== v ? (j = n && (_ || v) ? /* @__PURE__ */ S("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
204
204
|
v && n ? v : null,
|
|
205
|
-
|
|
206
|
-
] }) : null, e[43] = n, e[44] =
|
|
205
|
+
_ && n ? _ : null
|
|
206
|
+
] }) : null, e[43] = n, e[44] = _, e[45] = v, e[46] = j) : j = e[46];
|
|
207
207
|
const ne = !n && h;
|
|
208
208
|
let q;
|
|
209
|
-
e[47] !== ne ? (q = p(
|
|
210
|
-
[
|
|
209
|
+
e[47] !== ne ? (q = p(B.sideMenuShrinkableMargin, {
|
|
210
|
+
[B.onMobileNotExpanded]: ne
|
|
211
211
|
}), e[47] = ne, e[48] = q) : q = e[48];
|
|
212
212
|
let A;
|
|
213
213
|
e[49] !== q ? (A = /* @__PURE__ */ s("div", { className: q }), e[49] = q, e[50] = A) : A = e[50];
|
|
214
|
-
let
|
|
215
|
-
if (e[51] !== a || e[52] !==
|
|
214
|
+
let F;
|
|
215
|
+
if (e[51] !== a || e[52] !== f || e[53] !== u || e[54] !== n || e[55] !== h || e[56] !== w || e[57] !== k || e[58] !== i || e[59] !== r) {
|
|
216
216
|
let d;
|
|
217
|
-
e[61] !== a || e[62] !==
|
|
217
|
+
e[61] !== a || e[62] !== f || e[63] !== u || e[64] !== n || e[65] !== h || e[66] !== k || e[67] !== i || e[68] !== r ? (d = (b, g) => /* @__PURE__ */ s(de, { item: b, menuExpanded: n, collapsed: g === a, onCollapse: () => k(g), currentPath: f, useHover: i, useTooltips: r, isMobile: h, disableMode: u }, b.title), e[61] = a, e[62] = f, e[63] = u, e[64] = n, e[65] = h, e[66] = k, e[67] = i, e[68] = r, e[69] = d) : d = e[69], F = w.map(d), e[51] = a, e[52] = f, e[53] = u, e[54] = n, e[55] = h, e[56] = w, e[57] = k, e[58] = i, e[59] = r, e[60] = F;
|
|
218
218
|
} else
|
|
219
|
-
|
|
220
|
-
let
|
|
221
|
-
e[70] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
222
|
-
let
|
|
223
|
-
if (e[71] !== a || e[72] !==
|
|
219
|
+
F = e[60];
|
|
220
|
+
let J;
|
|
221
|
+
e[70] === Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ s("hr", { className: p("divider", B.divider) }), e[70] = J) : J = e[70];
|
|
222
|
+
let W;
|
|
223
|
+
if (e[71] !== a || e[72] !== f || e[73] !== u || e[74] !== n || e[75] !== h || e[76] !== k || e[77] !== V || e[78] !== i || e[79] !== r) {
|
|
224
224
|
let d;
|
|
225
|
-
e[81] !== a || e[82] !==
|
|
225
|
+
e[81] !== a || e[82] !== f || 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: f, useHover: i, useTooltips: r, isMobile: h, disableMode: u }, b.title), e[81] = a, e[82] = f, e[83] = u, e[84] = n, e[85] = h, e[86] = k, e[87] = i, e[88] = r, e[89] = d) : d = e[89], W = V.map(d), e[71] = a, e[72] = f, e[73] = u, e[74] = n, e[75] = h, e[76] = k, e[77] = V, e[78] = i, e[79] = r, e[80] = W;
|
|
226
226
|
} else
|
|
227
|
-
|
|
228
|
-
let
|
|
229
|
-
e[90] !==
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
] }), e[90] =
|
|
234
|
-
let
|
|
235
|
-
return e[93] !==
|
|
227
|
+
W = e[80];
|
|
228
|
+
let z;
|
|
229
|
+
e[90] !== F || e[91] !== W ? (z = /* @__PURE__ */ S("ul", { className: B.sideMenuContent, children: [
|
|
230
|
+
F,
|
|
231
|
+
J,
|
|
232
|
+
W
|
|
233
|
+
] }), e[90] = F, e[91] = W, e[92] = z) : z = e[92];
|
|
234
|
+
let Q;
|
|
235
|
+
return e[93] !== E || e[94] !== H || e[95] !== R || e[96] !== j || e[97] !== A || e[98] !== z || e[99] !== T ? (Q = /* @__PURE__ */ S("section", { ref: se, className: T, onMouseEnter: E, onMouseLeave: H, children: [
|
|
236
236
|
R,
|
|
237
237
|
j,
|
|
238
238
|
A,
|
|
239
|
-
|
|
240
|
-
] }), e[93] =
|
|
241
|
-
},
|
|
242
|
-
topBar:
|
|
243
|
-
topBarBrand:
|
|
239
|
+
z
|
|
240
|
+
] }), e[93] = E, e[94] = H, e[95] = R, e[96] = j, e[97] = A, e[98] = z, e[99] = T, e[100] = Q) : Q = e[100], Q;
|
|
241
|
+
}, Ue = "_top-bar_lnmq0_1", Xe = "_top-bar-brand_lnmq0_12", ae = {
|
|
242
|
+
topBar: Ue,
|
|
243
|
+
topBarBrand: Xe
|
|
244
244
|
}, sn = (o) => {
|
|
245
245
|
const e = ie.c(23), {
|
|
246
246
|
appName: m,
|
|
247
|
-
leftOffset:
|
|
247
|
+
leftOffset: _,
|
|
248
248
|
leftContent: v,
|
|
249
249
|
centerContent: N,
|
|
250
250
|
rightContent: P,
|
|
@@ -254,16 +254,16 @@ const xe = "_side-menu-item_o72rm_1", Me = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
254
254
|
e[0] !== n ? (l = p("luminus-top-bar shadow", ae.topBar, {
|
|
255
255
|
offline: n
|
|
256
256
|
}), e[0] = n, e[1] = l) : l = e[1];
|
|
257
|
-
const
|
|
257
|
+
const f = _ ? `calc(100% - ${_}px)` : void 0, i = _ ? `${_}px` : void 0;
|
|
258
258
|
let r;
|
|
259
|
-
e[2] !==
|
|
260
|
-
width:
|
|
259
|
+
e[2] !== f || e[3] !== i ? (r = {
|
|
260
|
+
width: f,
|
|
261
261
|
left: i
|
|
262
|
-
}, e[2] =
|
|
263
|
-
let
|
|
264
|
-
e[5] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
262
|
+
}, e[2] = f, e[3] = i, e[4] = r) : r = e[4];
|
|
263
|
+
let C;
|
|
264
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (C = p("luminus-top-bar-brand", ae.topBarBrand), e[5] = C) : C = e[5];
|
|
265
265
|
let x;
|
|
266
|
-
e[6] !== m ? (x = /* @__PURE__ */ s(te, { to: "/", className:
|
|
266
|
+
e[6] !== m ? (x = /* @__PURE__ */ s(te, { to: "/", className: C, children: m }), e[6] = m, e[7] = x) : x = e[7];
|
|
267
267
|
let M;
|
|
268
268
|
e[8] !== v || e[9] !== x ? (M = /* @__PURE__ */ S("div", { className: "col-4 d-flex gap-3 align-items-center", children: [
|
|
269
269
|
x,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const l=(r,t,o)=>{let e=r;return t!==void 0&&(e=Math.max(e,t)),o!==void 0&&(e=Math.min(e,o)),e},n=[{key:"msal",mode:"includes"},{key:"token",mode:"exact"},{key:"user",mode:"exact"},{key:"user-delegation",mode:"exact"}],s=(r=!0)=>{const t={};for(let o=0;o<localStorage.length;o++){const e=localStorage.key(o);if(e&&!(r&&n.some(({key:a,mode:c})=>c==="includes"?e.includes(a):e===a)))try{t[e]=JSON.parse(localStorage.getItem(e))}catch{t[e]=localStorage.getItem(e)}}return t},i=r=>{try{const t=JSON.parse(r);if(typeof t!="object"||t===null)return!1;Object.entries(t).forEach(([o,e])=>{localStorage.setItem(o,JSON.stringify(e))})}catch{return!1}return localStorage.removeItem("BnfTable-SettingsMigration"),!0};exports.dumpLocalStorage=s;exports.limitNumber=l;exports.restoreLocalStorage=i;
|
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
const S = (r, t, o) => {
|
|
1
|
+
const n = (r, t, o) => {
|
|
3
2
|
let e = r;
|
|
4
3
|
return t !== void 0 && (e = Math.max(e, t)), o !== void 0 && (e = Math.min(e, o)), e;
|
|
5
|
-
}
|
|
6
|
-
function i(r, t) {
|
|
7
|
-
r.setValue(t, null);
|
|
8
|
-
}
|
|
9
|
-
function g(r, t) {
|
|
10
|
-
t.forEach((o) => {
|
|
11
|
-
i(r, o);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
const l = (r, t, o = !0) => Object.keys(r).reduce((e, n) => {
|
|
15
|
-
const c = r[n];
|
|
16
|
-
return o && c == null || (e[n] = t(c, n)), e;
|
|
17
|
-
}, {}), f = (r, t) => {
|
|
18
|
-
const o = t != null && t.query ? new URLSearchParams(l(t.query, (e) => (e == null ? void 0 : e.toString()) ?? "")) : null;
|
|
19
|
-
return `${u(r, t != null && t.path ? l(t.path, (e) => (e == null ? void 0 : e.toString()) ?? null) : void 0)}${o && o.size > 0 ? `?${o.toString()}` : ""}`;
|
|
20
|
-
}, s = [{
|
|
4
|
+
}, l = [{
|
|
21
5
|
key: "msal",
|
|
22
6
|
mode: "includes"
|
|
23
7
|
}, {
|
|
@@ -29,14 +13,14 @@ const l = (r, t, o = !0) => Object.keys(r).reduce((e, n) => {
|
|
|
29
13
|
}, {
|
|
30
14
|
key: "user-delegation",
|
|
31
15
|
mode: "exact"
|
|
32
|
-
}],
|
|
16
|
+
}], s = (r = !0) => {
|
|
33
17
|
const t = {};
|
|
34
18
|
for (let o = 0; o < localStorage.length; o++) {
|
|
35
19
|
const e = localStorage.key(o);
|
|
36
|
-
if (e && !(r &&
|
|
37
|
-
key:
|
|
20
|
+
if (e && !(r && l.some(({
|
|
21
|
+
key: a,
|
|
38
22
|
mode: c
|
|
39
|
-
}) => c === "includes" ? e.includes(
|
|
23
|
+
}) => c === "includes" ? e.includes(a) : e === a)))
|
|
40
24
|
try {
|
|
41
25
|
t[e] = JSON.parse(localStorage.getItem(e));
|
|
42
26
|
} catch {
|
|
@@ -44,7 +28,7 @@ const l = (r, t, o = !0) => Object.keys(r).reduce((e, n) => {
|
|
|
44
28
|
}
|
|
45
29
|
}
|
|
46
30
|
return t;
|
|
47
|
-
},
|
|
31
|
+
}, i = (r) => {
|
|
48
32
|
try {
|
|
49
33
|
const t = JSON.parse(r);
|
|
50
34
|
if (typeof t != "object" || t === null)
|
|
@@ -58,10 +42,7 @@ const l = (r, t, o = !0) => Object.keys(r).reduce((e, n) => {
|
|
|
58
42
|
return localStorage.removeItem("BnfTable-SettingsMigration"), !0;
|
|
59
43
|
};
|
|
60
44
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
i as h,
|
|
65
|
-
S as l,
|
|
66
|
-
h as r
|
|
45
|
+
s as d,
|
|
46
|
+
n as l,
|
|
47
|
+
i as r
|
|
67
48
|
};
|