react-luminus-components 2.0.5-beta.r19-19 → 2.0.5-beta.r19-20
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 +13 -13
- package/dist/{FormDisabledProvider-C-9ms0N5.js → FormDisabledProvider-DvfrLH-L.js} +1 -1
- package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -0
- package/dist/components/common/PermissionsSubstitute/Detail/PermissionSubstituteDetail.d.ts +2 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.es.js +4 -4
- package/dist/layout.es.js +35 -35
- package/dist/main.cjs.js +7 -7
- package/dist/main.es.js +4925 -4877
- package/dist/models/index.d.ts +1 -1
- package/dist/models/texts/ReportsTexts.d.ts +5 -0
- package/dist/models/types/dynamicForms/index.d.ts +1 -0
- package/dist/models/types/dynamicForms/types/DynamicFormModifyResult.d.ts +5 -0
- package/dist/{nivo-bar-B0DQaqgI.js → nivo-bar-eqo8TGxR.js} +10 -10
- package/dist/{useIsFormDirty-CdKmsSlx.js → useIsFormDirty-Dn2nhhtz.js} +1 -1
- package/dist/{useLocalStorageState-CNYQiSf6.js → useLocalStorageState-CCIGnkoN.js} +1 -1
- package/dist/utils.es.js +8 -8
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"_nivo-bar-I92eMmVs.cjs"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_FormDisabledProvider-
|
|
10
|
-
"file": "FormDisabledProvider-
|
|
9
|
+
"_FormDisabledProvider-DvfrLH-L.js": {
|
|
10
|
+
"file": "FormDisabledProvider-DvfrLH-L.js",
|
|
11
11
|
"name": "FormDisabledProvider",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_nivo-bar-
|
|
13
|
+
"_nivo-bar-eqo8TGxR.js"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"_localStorageUtils-CZ4HDRzi.js": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"file": "localStorageUtils-CkZslzIU.cjs",
|
|
22
22
|
"name": "localStorageUtils"
|
|
23
23
|
},
|
|
24
|
-
"_nivo-bar-B0DQaqgI.js": {
|
|
25
|
-
"file": "nivo-bar-B0DQaqgI.js",
|
|
26
|
-
"name": "nivo-bar"
|
|
27
|
-
},
|
|
28
24
|
"_nivo-bar-I92eMmVs.cjs": {
|
|
29
25
|
"file": "nivo-bar-I92eMmVs.cjs",
|
|
30
26
|
"name": "nivo-bar"
|
|
31
27
|
},
|
|
28
|
+
"_nivo-bar-eqo8TGxR.js": {
|
|
29
|
+
"file": "nivo-bar-eqo8TGxR.js",
|
|
30
|
+
"name": "nivo-bar"
|
|
31
|
+
},
|
|
32
32
|
"_useIsFormDirty-B723dG-I.cjs": {
|
|
33
33
|
"file": "useIsFormDirty-B723dG-I.cjs",
|
|
34
34
|
"name": "useIsFormDirty",
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"_nivo-bar-I92eMmVs.cjs"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"_useIsFormDirty-
|
|
40
|
-
"file": "useIsFormDirty-
|
|
39
|
+
"_useIsFormDirty-Dn2nhhtz.js": {
|
|
40
|
+
"file": "useIsFormDirty-Dn2nhhtz.js",
|
|
41
41
|
"name": "useIsFormDirty",
|
|
42
42
|
"imports": [
|
|
43
|
-
"_nivo-bar-
|
|
43
|
+
"_nivo-bar-eqo8TGxR.js"
|
|
44
44
|
]
|
|
45
45
|
},
|
|
46
|
-
"_useLocalStorageState-
|
|
47
|
-
"file": "useLocalStorageState-
|
|
46
|
+
"_useLocalStorageState-CCIGnkoN.js": {
|
|
47
|
+
"file": "useLocalStorageState-CCIGnkoN.js",
|
|
48
48
|
"name": "useLocalStorageState",
|
|
49
49
|
"imports": [
|
|
50
|
-
"_nivo-bar-
|
|
50
|
+
"_nivo-bar-eqo8TGxR.js"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
53
|
"_useLocalStorageState-GaJtAO3b.cjs": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as _, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { c, a as i, t as h, b as l, bR as m } from "./nivo-bar-
|
|
2
|
+
import { c, a as i, t as h, b as l, bR as m } from "./nivo-bar-eqo8TGxR.js";
|
|
3
3
|
const g = "_loading_obchl_1", p = "_spinner-grow_obchl_10", u = "_second_obchl_14", b = "_third_obchl_17", f = "_loadingBlock_obchl_21", w = "_sizeLine_obchl_29", F = "_sizeFill_obchl_36", r = {
|
|
4
4
|
loading: g,
|
|
5
5
|
spinnerGrow: p,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type Props = {
|
|
2
2
|
indexRoute: string;
|
|
3
|
+
zastupModifyPermission?: string;
|
|
3
4
|
};
|
|
4
|
-
declare const PermissionsSubstituteDetail: ({ indexRoute }: Props) => import("react").JSX.Element;
|
|
5
|
+
declare const PermissionsSubstituteDetail: ({ indexRoute, zastupModifyPermission, }: Props) => import("react").JSX.Element;
|
|
5
6
|
export default PermissionsSubstituteDetail;
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as j, bK as ie, c as L, bL as ce, Q, am as ue, bM as le, a4 as A, aj as fe, R as V, bN as de, aq as me, ao as he, bc as re, bx as ae, be as $, ap as ge, bO as Se,
|
|
2
|
-
import { bR as at, ag as it } from "./nivo-bar-
|
|
1
|
+
import { t as j, bK as ie, c as L, bL as ce, Q, am as ue, bM as le, a4 as A, aj as fe, R as V, bN as de, aq as me, ao as he, bc as re, bx as ae, be as $, ap as ge, bO as Se, aE as te, bP as xe, bQ as ye, an as ve, b7 as be, a5 as ke } from "./nivo-bar-eqo8TGxR.js";
|
|
2
|
+
import { bR as at, ag as it } from "./nivo-bar-eqo8TGxR.js";
|
|
3
3
|
import { jsxs as D, jsx as b } from "react/jsx-runtime";
|
|
4
4
|
import { useState as _, useContext as G, useEffect as U, useRef as ee, useMemo as K, useCallback as Y } from "react";
|
|
5
5
|
import { EventType as Z, InteractionStatus as we, InteractionRequiredAuthError as Te } from "@azure/msal-browser";
|
|
@@ -8,9 +8,9 @@ import "react-router";
|
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import "react-flexmonster";
|
|
11
|
-
import { L as De, b as Pe } from "./FormDisabledProvider-
|
|
12
|
-
import { F as ut } from "./FormDisabledProvider-
|
|
13
|
-
import { a as _e, u as Me } from "./useLocalStorageState-
|
|
11
|
+
import { L as De, b as Pe } from "./FormDisabledProvider-DvfrLH-L.js";
|
|
12
|
+
import { F as ut } from "./FormDisabledProvider-DvfrLH-L.js";
|
|
13
|
+
import { a as _e, u as Me } from "./useLocalStorageState-CCIGnkoN.js";
|
|
14
14
|
function Ee(t) {
|
|
15
15
|
const e = j(t);
|
|
16
16
|
return e.setHours(23, 59, 59, 999), e;
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ao as H, c as V, aq as J, bd as Q } from "./nivo-bar-
|
|
2
|
-
import { bS as mt, aR as gt, bU as pt, an as vt, bT as St, b7 as ht, ar as wt, bv as bt, am as yt, aG as It, aU as Ot } from "./nivo-bar-
|
|
3
|
-
import { u as Ct, a as Et } from "./useLocalStorageState-
|
|
1
|
+
import { ao as H, c as V, aq as J, bd as Q } from "./nivo-bar-eqo8TGxR.js";
|
|
2
|
+
import { bS as mt, aR as gt, bU as pt, an as vt, bT as St, b7 as ht, ar as wt, bv as bt, am as yt, aG as It, aU as Ot } from "./nivo-bar-eqo8TGxR.js";
|
|
3
|
+
import { u as Ct, a as Et } from "./useLocalStorageState-CCIGnkoN.js";
|
|
4
4
|
import { useRef as D, useState as q, useSyncExternalStore as W, useContext as z, useEffect as U } from "react";
|
|
5
|
-
import { c as xt, u as Bt, a as Lt, b as $t } from "./useIsFormDirty-
|
|
5
|
+
import { c as xt, u as Bt, a as Lt, b as $t } from "./useIsFormDirty-Dn2nhhtz.js";
|
|
6
6
|
import "react/jsx-runtime";
|
|
7
7
|
import "react-router";
|
|
8
8
|
import { createPortal as M } from "react-dom";
|
package/dist/layout.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as T, jsx as o, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { aR as ce, a as p, $ as ie, c as se,
|
|
3
|
-
import {
|
|
2
|
+
import { aR as ce, a as p, $ as ie, c as se, aF as ue, bv as he, aG as _e, bG as be, bH as fe, bI as ve } from "./nivo-bar-eqo8TGxR.js";
|
|
3
|
+
import { aD as at, bJ as ct } from "./nivo-bar-eqo8TGxR.js";
|
|
4
4
|
import { useState as re, useRef as me, useEffect as xe } from "react";
|
|
5
5
|
import { Link as ne } from "react-router";
|
|
6
6
|
import "react-hook-form";
|
|
@@ -24,7 +24,7 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
24
24
|
visible: He,
|
|
25
25
|
children: Re,
|
|
26
26
|
mobile: $e
|
|
27
|
-
},
|
|
27
|
+
}, Le = (l) => {
|
|
28
28
|
const e = se.c(6), {
|
|
29
29
|
item: m,
|
|
30
30
|
menuExpanded: _,
|
|
@@ -69,7 +69,7 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
69
69
|
}, {
|
|
70
70
|
[d === "disable" ? "disabled" : "hidden"]: l.disabled || l.notPermitted || ((r = l.children) == null ? void 0 : r.every((n) => n.notPermitted || n.disabled))
|
|
71
71
|
}), onMouseEnter: () => s(!0), onMouseLeave: () => s(!1), children: [
|
|
72
|
-
/* @__PURE__ */ o(
|
|
72
|
+
/* @__PURE__ */ o(Le, { item: l, menuExpanded: e, useTooltips: N, children: l.children ? /* @__PURE__ */ o(ae, { children: /* @__PURE__ */ T("button", { type: "button", className: p("nav-link", c.navButton), onClick: () => {
|
|
73
73
|
_();
|
|
74
74
|
}, children: [
|
|
75
75
|
/* @__PURE__ */ o("div", { className: p("icon", c.icon), children: l.icon }),
|
|
@@ -92,16 +92,16 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
92
92
|
[d === "disable" ? "disabled" : "hidden"]: n.disabled || n.notPermitted
|
|
93
93
|
}), onClick: _, children: /* @__PURE__ */ o("div", { className: p("text", c.text, "text-nowrap"), children: n.title }) }, n.linkTo)) }) })
|
|
94
94
|
] });
|
|
95
|
-
},
|
|
96
|
-
sideMenu:
|
|
97
|
-
sidebarHeader:
|
|
95
|
+
}, Oe = "_side-menu_140bh_1", Ee = "_sidebar-header_140bh_15", je = "_side-menu-pin_140bh_22", Ae = "_side-menu-content_140bh_27", Ge = "_no-top-margin_140bh_33", qe = "_expand_140bh_39", De = "_only-logo_140bh_43", Fe = "_mobile_140bh_46", ze = "_divider_140bh_61", k = {
|
|
96
|
+
sideMenu: Oe,
|
|
97
|
+
sidebarHeader: Ee,
|
|
98
98
|
sideMenuPin: je,
|
|
99
99
|
sideMenuContent: Ae,
|
|
100
100
|
noTopMargin: Ge,
|
|
101
101
|
expand: qe,
|
|
102
|
-
onlyLogo:
|
|
103
|
-
mobile:
|
|
104
|
-
divider:
|
|
102
|
+
onlyLogo: De,
|
|
103
|
+
mobile: Fe,
|
|
104
|
+
divider: ze
|
|
105
105
|
}, Je = 14, lt = (l) => {
|
|
106
106
|
const e = se.c(102), {
|
|
107
107
|
headerItem: m,
|
|
@@ -128,10 +128,10 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
128
128
|
return {
|
|
129
129
|
...h,
|
|
130
130
|
notPermitted: !n(h.permissions ?? [], "any"),
|
|
131
|
-
children: (g = h.children) == null ? void 0 : g.map((
|
|
132
|
-
...
|
|
133
|
-
notPermitted: !n(
|
|
134
|
-
disabled: h.disabled ||
|
|
131
|
+
children: (g = h.children) == null ? void 0 : g.map((z) => ({
|
|
132
|
+
...z,
|
|
133
|
+
notPermitted: !n(z.permissions ?? [], "any"),
|
|
134
|
+
disabled: h.disabled || z.disabled
|
|
135
135
|
}))
|
|
136
136
|
};
|
|
137
137
|
}, e[3] = n, e[4] = i) : i = e[4], B = P.map(i), e[0] = n, e[1] = P, e[2] = B;
|
|
@@ -146,9 +146,9 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
146
146
|
return {
|
|
147
147
|
...h,
|
|
148
148
|
notPermitted: !n(h.permissions ?? [], "any"),
|
|
149
|
-
children: (g = h.children) == null ? void 0 : g.map((
|
|
150
|
-
...
|
|
151
|
-
notPermitted: !n(
|
|
149
|
+
children: (g = h.children) == null ? void 0 : g.map((z) => ({
|
|
150
|
+
...z,
|
|
151
|
+
notPermitted: !n(z.permissions ?? [], "any")
|
|
152
152
|
}))
|
|
153
153
|
};
|
|
154
154
|
}, e[8] = n, e[9] = i) : i = e[9], J = N.map(i), e[5] = n, e[6] = N, e[7] = J;
|
|
@@ -187,22 +187,22 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
187
187
|
}), e[22] = t, e[23] = M, e[24] = H) : H = e[24];
|
|
188
188
|
let R, $;
|
|
189
189
|
e[25] !== d || e[26] !== s ? (R = () => s && d(!0), $ = () => s && d(!1), e[25] = d, e[26] = s, e[27] = R, e[28] = $) : (R = e[27], $ = e[28]);
|
|
190
|
-
let
|
|
191
|
-
e[29] !== s ? (
|
|
190
|
+
let L;
|
|
191
|
+
e[29] !== s ? (L = p("sidebar-header", k.sidebarHeader, {
|
|
192
192
|
[k.onlyLogo]: s
|
|
193
|
-
}), e[29] = s, e[30] =
|
|
193
|
+
}), e[29] = s, e[30] = L) : L = e[30];
|
|
194
194
|
const ee = s ? void 0 : "button";
|
|
195
|
-
let L;
|
|
196
|
-
e[31] !== t || e[32] !== d || e[33] !== s ? (L = s ? void 0 : () => d(!t), e[31] = t, e[32] = d, e[33] = s, e[34] = L) : L = e[34];
|
|
197
195
|
let O;
|
|
198
|
-
e[
|
|
196
|
+
e[31] !== t || e[32] !== d || e[33] !== s ? (O = s ? void 0 : () => d(!t), e[31] = t, e[32] = d, e[33] = s, e[34] = O) : O = e[34];
|
|
197
|
+
let E;
|
|
198
|
+
e[35] !== t || e[36] !== m || e[37] !== v || e[38] !== y || e[39] !== s ? (E = s ? m : t ? /* @__PURE__ */ T(ae, { children: [
|
|
199
199
|
/* @__PURE__ */ o("div", { role: "button", onClick: (i) => {
|
|
200
200
|
i.stopPropagation(), y();
|
|
201
201
|
}, className: k.sideMenuPin, children: v ? /* @__PURE__ */ o(be, {}) : /* @__PURE__ */ o(fe, {}) }),
|
|
202
202
|
m
|
|
203
|
-
] }) : /* @__PURE__ */ o(ve, {}), e[35] = t, e[36] = m, e[37] = v, e[38] = y, e[39] = s, e[40] =
|
|
203
|
+
] }) : /* @__PURE__ */ o(ve, {}), e[35] = t, e[36] = m, e[37] = v, e[38] = y, e[39] = s, e[40] = E) : E = e[40];
|
|
204
204
|
let j;
|
|
205
|
-
e[41] !==
|
|
205
|
+
e[41] !== L || e[42] !== ee || e[43] !== O || e[44] !== E ? (j = /* @__PURE__ */ o("div", { className: L, role: ee, onClick: O, children: E }), e[41] = L, e[42] = ee, e[43] = O, e[44] = E, e[45] = j) : j = e[45];
|
|
206
206
|
let A;
|
|
207
207
|
e[46] !== t || e[47] !== _ || e[48] !== f ? (A = t && (_ || f) ? /* @__PURE__ */ T("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
208
208
|
f && t ? f : null,
|
|
@@ -221,24 +221,24 @@ const Me = "_side-menu-item_o72rm_1", Pe = "_disabled_o72rm_6", Ne = "_hidden_o7
|
|
|
221
221
|
q = e[61];
|
|
222
222
|
let Y;
|
|
223
223
|
e[71] === Symbol.for("react.memo_cache_sentinel") ? (Y = /* @__PURE__ */ o("hr", { className: p("divider", k.divider) }), e[71] = Y) : Y = e[71];
|
|
224
|
-
let
|
|
224
|
+
let D;
|
|
225
225
|
if (e[72] !== r || e[73] !== b || e[74] !== a || e[75] !== t || e[76] !== M || e[77] !== C || e[78] !== w || e[79] !== s || e[80] !== u) {
|
|
226
226
|
let i;
|
|
227
|
-
e[82] !== r || e[83] !== b || e[84] !== a || e[85] !== t || e[86] !== M || e[87] !== C || e[88] !== s || e[89] !== u ? (i = (h, g) => /* @__PURE__ */ o(oe, { item: h, menuExpanded: t, collapsed: g === r, onCollapse: () => C(g), currentPath: b, useHover: s, useTooltips: u, isMobile: M, disableMode: a }, h.title), e[82] = r, e[83] = b, e[84] = a, e[85] = t, e[86] = M, e[87] = C, e[88] = s, e[89] = u, e[90] = i) : i = e[90],
|
|
227
|
+
e[82] !== r || e[83] !== b || e[84] !== a || e[85] !== t || e[86] !== M || e[87] !== C || e[88] !== s || e[89] !== u ? (i = (h, g) => /* @__PURE__ */ o(oe, { item: h, menuExpanded: t, collapsed: g === r, onCollapse: () => C(g), currentPath: b, useHover: s, useTooltips: u, isMobile: M, disableMode: a }, h.title), e[82] = r, e[83] = b, e[84] = a, e[85] = t, e[86] = M, e[87] = C, e[88] = s, e[89] = u, e[90] = i) : i = e[90], D = w.map(i), e[72] = r, e[73] = b, e[74] = a, e[75] = t, e[76] = M, e[77] = C, e[78] = w, e[79] = s, e[80] = u, e[81] = D;
|
|
228
228
|
} else
|
|
229
|
-
|
|
230
|
-
let
|
|
231
|
-
e[91] !== G || e[92] !== q || e[93] !==
|
|
229
|
+
D = e[81];
|
|
230
|
+
let F;
|
|
231
|
+
e[91] !== G || e[92] !== q || e[93] !== D ? (F = /* @__PURE__ */ T("ul", { className: G, children: [
|
|
232
232
|
q,
|
|
233
233
|
Y,
|
|
234
|
-
|
|
235
|
-
] }), e[91] = G, e[92] = q, e[93] =
|
|
234
|
+
D
|
|
235
|
+
] }), e[91] = G, e[92] = q, e[93] = D, e[94] = F) : F = e[94];
|
|
236
236
|
let Z;
|
|
237
|
-
return e[95] !== H || e[96] !== R || e[97] !== $ || e[98] !== j || e[99] !== A || e[100] !==
|
|
237
|
+
return e[95] !== H || e[96] !== R || e[97] !== $ || e[98] !== j || e[99] !== A || e[100] !== F ? (Z = /* @__PURE__ */ T("section", { ref: le, className: H, onMouseEnter: R, onMouseLeave: $, children: [
|
|
238
238
|
j,
|
|
239
239
|
A,
|
|
240
|
-
|
|
241
|
-
] }), e[95] = H, e[96] = R, e[97] = $, e[98] = j, e[99] = A, e[100] =
|
|
240
|
+
F
|
|
241
|
+
] }), e[95] = H, e[96] = R, e[97] = $, e[98] = j, e[99] = A, e[100] = F, e[101] = Z) : Z = e[101], Z;
|
|
242
242
|
};
|
|
243
243
|
function Ke(l) {
|
|
244
244
|
return !l.disabled && !l.notPermitted;
|