react-luminus-components 1.3.167 → 1.3.169
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 +23 -23
- package/dist/{Loading-Cv2FEybZ.js → Loading-ay4N0YT7.js} +1 -1
- package/dist/components/common/HrWithText/HrWithText.d.ts +5 -0
- package/dist/components/common/ReportsIndexPage/ReportsIndexPage.d.ts +15 -0
- package/dist/components/common/ReportsIndexPage/comps/ReportsLastUsed/ReportsLastUsed.d.ts +10 -0
- package/dist/components/common/ReportsIndexPage/comps/index.d.ts +1 -0
- package/dist/components/common/index.d.ts +2 -0
- package/dist/contexts.es.js +3 -3
- package/dist/hooks.es.js +5 -5
- package/dist/layout.es.js +11 -11
- package/dist/main.cjs.js +3 -3
- package/dist/main.d.ts +2 -0
- package/dist/main.es.js +1934 -1864
- package/dist/models/texts/ReportsTexts.d.ts +4 -0
- package/dist/{nivo-bar.es-ClTGBGQw.js → nivo-bar.es-D2-caGW9.js} +41 -41
- package/dist/{searchUtils-DswlQ6WV.js → searchUtils-CMCvaFYb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{useClipboard-7jNxu3p4.js → useClipboard-WI8cLinS.js} +1 -1
- package/dist/{useGetApiData-CIfIMetV.js → useGetApiData-BjDTbVdX.js} +1 -1
- package/dist/{usePermissions-D-8uybhA.js → usePermissions-CSxEUxGK.js} +1 -1
- package/dist/utils.es.js +15 -15
- package/package.json +1 -1
package/dist/.vite/manifest.json
CHANGED
|
@@ -6,26 +6,26 @@
|
|
|
6
6
|
"_nivo-bar.es-CaE2W807.cjs"
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
|
-
"_Loading-
|
|
10
|
-
"file": "Loading-
|
|
9
|
+
"_Loading-ay4N0YT7.js": {
|
|
10
|
+
"file": "Loading-ay4N0YT7.js",
|
|
11
11
|
"name": "Loading",
|
|
12
12
|
"imports": [
|
|
13
|
-
"_nivo-bar.es-
|
|
13
|
+
"_nivo-bar.es-D2-caGW9.js"
|
|
14
14
|
]
|
|
15
15
|
},
|
|
16
16
|
"_nivo-bar.es-CaE2W807.cjs": {
|
|
17
17
|
"file": "nivo-bar.es-CaE2W807.cjs",
|
|
18
18
|
"name": "nivo-bar.es"
|
|
19
19
|
},
|
|
20
|
-
"_nivo-bar.es-
|
|
21
|
-
"file": "nivo-bar.es-
|
|
20
|
+
"_nivo-bar.es-D2-caGW9.js": {
|
|
21
|
+
"file": "nivo-bar.es-D2-caGW9.js",
|
|
22
22
|
"name": "nivo-bar.es"
|
|
23
23
|
},
|
|
24
|
-
"_searchUtils-
|
|
25
|
-
"file": "searchUtils-
|
|
24
|
+
"_searchUtils-CMCvaFYb.js": {
|
|
25
|
+
"file": "searchUtils-CMCvaFYb.js",
|
|
26
26
|
"name": "searchUtils",
|
|
27
27
|
"imports": [
|
|
28
|
-
"_nivo-bar.es-
|
|
28
|
+
"_nivo-bar.es-D2-caGW9.js"
|
|
29
29
|
]
|
|
30
30
|
},
|
|
31
31
|
"_searchUtils-b1QW5y-z.cjs": {
|
|
@@ -35,32 +35,32 @@
|
|
|
35
35
|
"_nivo-bar.es-CaE2W807.cjs"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"_useClipboard-
|
|
39
|
-
"file": "useClipboard-
|
|
38
|
+
"_useClipboard-CeiKrXjz.cjs": {
|
|
39
|
+
"file": "useClipboard-CeiKrXjz.cjs",
|
|
40
40
|
"name": "useClipboard",
|
|
41
41
|
"imports": [
|
|
42
|
-
"_nivo-bar.es-
|
|
42
|
+
"_nivo-bar.es-CaE2W807.cjs"
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
|
-
"_useClipboard-
|
|
46
|
-
"file": "useClipboard-
|
|
45
|
+
"_useClipboard-WI8cLinS.js": {
|
|
46
|
+
"file": "useClipboard-WI8cLinS.js",
|
|
47
47
|
"name": "useClipboard",
|
|
48
48
|
"imports": [
|
|
49
|
-
"_nivo-bar.es-
|
|
49
|
+
"_nivo-bar.es-D2-caGW9.js"
|
|
50
50
|
]
|
|
51
51
|
},
|
|
52
|
-
"_useGetApiData-
|
|
53
|
-
"file": "useGetApiData-
|
|
52
|
+
"_useGetApiData-BjDTbVdX.js": {
|
|
53
|
+
"file": "useGetApiData-BjDTbVdX.js",
|
|
54
54
|
"name": "useGetApiData",
|
|
55
55
|
"imports": [
|
|
56
|
-
"_nivo-bar.es-
|
|
56
|
+
"_nivo-bar.es-D2-caGW9.js"
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
-
"_useGetApiData-
|
|
60
|
-
"file": "useGetApiData-
|
|
59
|
+
"_useGetApiData-CC06DqnB.cjs": {
|
|
60
|
+
"file": "useGetApiData-CC06DqnB.cjs",
|
|
61
61
|
"name": "useGetApiData",
|
|
62
62
|
"imports": [
|
|
63
|
-
"_nivo-bar.es-
|
|
63
|
+
"_nivo-bar.es-CaE2W807.cjs"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
66
|
"_useLocalStorageState-BFc8Gc8H.cjs": {
|
|
@@ -78,11 +78,11 @@
|
|
|
78
78
|
"_nivo-bar.es-CaE2W807.cjs"
|
|
79
79
|
]
|
|
80
80
|
},
|
|
81
|
-
"_usePermissions-
|
|
82
|
-
"file": "usePermissions-
|
|
81
|
+
"_usePermissions-CSxEUxGK.js": {
|
|
82
|
+
"file": "usePermissions-CSxEUxGK.js",
|
|
83
83
|
"name": "usePermissions",
|
|
84
84
|
"imports": [
|
|
85
|
-
"_nivo-bar.es-
|
|
85
|
+
"_nivo-bar.es-D2-caGW9.js"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
88
|
"_useWindowSize-CE6DJWzn.cjs": {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as r, c as n } from "./nivo-bar.es-
|
|
1
|
+
import { j as r, c as n } from "./nivo-bar.es-D2-caGW9.js";
|
|
2
2
|
const o = "_loading_rgybp_1", i = "_spinner-grow_rgybp_10", e = "_second_rgybp_14", a = "_third_rgybp_17", t = "_loadingBlock_rgybp_21", s = {
|
|
3
3
|
loading: o,
|
|
4
4
|
"spinner-grow": "_spinner-grow_rgybp_10",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReportDto } from '../../../models/index';
|
|
2
|
+
|
|
3
|
+
type Props = {
|
|
4
|
+
groups: number[];
|
|
5
|
+
getReportName: (report: ReportDto) => string;
|
|
6
|
+
getReportDescription: (report: ReportDto) => string;
|
|
7
|
+
getGroupTitle: (group: number) => string;
|
|
8
|
+
getReportRoute: (report: ReportDto, reportVersionId?: number) => string;
|
|
9
|
+
apiUrls?: {
|
|
10
|
+
reportsGet?: string;
|
|
11
|
+
reportsLastUsedGet?: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
declare const ReportsIndexPage: ({ groups, apiUrls: { reportsGet, reportsLastUsedGet, }, getReportName, getReportDescription, getGroupTitle, getReportRoute, }: Props) => import("react").JSX.Element;
|
|
15
|
+
export default ReportsIndexPage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReportDto } from '../../../../../models/index';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
type Props = {
|
|
5
|
+
reportsLastUsedGet: string;
|
|
6
|
+
getReportRoute: (report: ReportDto, reportVersionId?: number) => string;
|
|
7
|
+
getReportName: (report: ReportDto) => string;
|
|
8
|
+
};
|
|
9
|
+
declare const ReportsLastUsed: ({ reportsLastUsedGet, getReportRoute, getReportName }: Props) => React.JSX.Element;
|
|
10
|
+
export default ReportsLastUsed;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ReportsLastUsed } from './ReportsLastUsed/ReportsLastUsed';
|
|
@@ -40,3 +40,5 @@ export { default as SearchBox } from './SearchBox/SearchBox';
|
|
|
40
40
|
export { default as NumericFormat } from './NumericFormat/NumericFormat';
|
|
41
41
|
export { default as BarChart } from './BarChart/BarChart';
|
|
42
42
|
export { default as ColumnResizer } from './ColumnResizer/ColumnResizer';
|
|
43
|
+
export { default as HrWithText } from './HrWithText/HrWithText';
|
|
44
|
+
export { default as ReportsIndexPage } from './ReportsIndexPage/ReportsIndexPage';
|
package/dist/contexts.es.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var be = Object.defineProperty;
|
|
2
2
|
var Se = (e, t, r) => t in e ? be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var b = (e, t, r) => Se(e, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
-
import { t as N,
|
|
4
|
+
import { t as N, bj as Oe, j as f, bk as Ee, a2 as z, ap as we, bl as ue, av as S, am as Ie, a3 as G, bm as je, at as Pe, ar as De, aV as fe, bn as de, aW as ke, aX as D, as as Le, bo as He, aF as se, bp as _e, bq as me, br as oe, bs as $e, aq as Me } from "./nivo-bar.es-D2-caGW9.js";
|
|
5
5
|
import E, { useState as C, useCallback as p, useMemo as A, useContext as _, useEffect as P, useRef as pe, Component as te } from "react";
|
|
6
6
|
import { EventType as J } from "@azure/msal-browser";
|
|
7
7
|
import { MsalProvider as Re } from "@azure/msal-react";
|
|
8
8
|
import "react-router-dom";
|
|
9
9
|
import "react-hook-form";
|
|
10
10
|
import "react-flexmonster";
|
|
11
|
-
import { L as Ue } from "./Loading-
|
|
12
|
-
import { u as Ne } from "./useGetApiData-
|
|
11
|
+
import { L as Ue } from "./Loading-ay4N0YT7.js";
|
|
12
|
+
import { u as Ne } from "./useGetApiData-BjDTbVdX.js";
|
|
13
13
|
import { u as Fe } from "./useLocalStorageState-Bt99kkCr.js";
|
|
14
14
|
function qe(e) {
|
|
15
15
|
const t = N(e);
|
package/dist/hooks.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ar as S, at as L, aW as P } from "./nivo-bar.es-
|
|
2
|
-
import {
|
|
1
|
+
import { ar as S, at as L, aW as P } from "./nivo-bar.es-D2-caGW9.js";
|
|
2
|
+
import { bt as Z, aq as j, af as H, au as J, ap as M, bu as V } from "./nivo-bar.es-D2-caGW9.js";
|
|
3
3
|
import { a as Y, u as _ } from "./useWindowSize-OLYtjFv_.js";
|
|
4
|
-
import { u as et } from "./usePermissions-
|
|
5
|
-
import { u as at, d as ot, a as rt, b as nt, c as ut } from "./useClipboard-
|
|
6
|
-
import { u as lt } from "./useGetApiData-
|
|
4
|
+
import { u as et } from "./usePermissions-CSxEUxGK.js";
|
|
5
|
+
import { u as at, d as ot, a as rt, b as nt, c as ut } from "./useClipboard-WI8cLinS.js";
|
|
6
|
+
import { u as lt } from "./useGetApiData-BjDTbVdX.js";
|
|
7
7
|
import { useState as b, useEffect as C, useContext as T, useRef as U, useCallback as $ } from "react";
|
|
8
8
|
import { u as ft } from "./useLocalStorageState-Bt99kkCr.js";
|
|
9
9
|
import "react-router-dom";
|
package/dist/layout.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { j as o, c as i, ac as g, aG as L,
|
|
2
|
-
import { aw as Ne,
|
|
1
|
+
import { j as o, c as i, ac as g, aG as L, bg as T, bh as R } from "./nivo-bar.es-D2-caGW9.js";
|
|
2
|
+
import { aw as Ne, bi as ye } from "./nivo-bar.es-D2-caGW9.js";
|
|
3
3
|
import { useState as I, useRef as w, useMemo as k, useEffect as S } from "react";
|
|
4
|
-
import { Link as
|
|
4
|
+
import { Link as f } 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 { a as z, u as $ } from "./useWindowSize-OLYtjFv_.js";
|
|
10
|
-
import { u as A } from "./usePermissions-
|
|
10
|
+
import { u as A } from "./usePermissions-CSxEUxGK.js";
|
|
11
11
|
const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1o1uo_10", D = "_child_1o1uo_18", G = "_text_1o1uo_23", U = "_icon_1o1uo_30", W = "_collapse-icon_1o1uo_36", q = "_collapsed_1o1uo_46", E = "_collapse-icon-mini_1o1uo_49", J = "_expanded_1o1uo_80", Q = "_children-container_1o1uo_86", V = "_visible_1o1uo_94", X = "_children_1o1uo_86", Y = "_mobile_1o1uo_106", s = {
|
|
12
12
|
"side-menu-item": "_side-menu-item_1o1uo_1",
|
|
13
13
|
sideMenuItem: F,
|
|
@@ -29,8 +29,8 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
29
29
|
children: X,
|
|
30
30
|
mobile: Y
|
|
31
31
|
}, Z = ({ item: n, menuExpanded: t, useTooltips: l, children: a }) => n.tooltip && !t && l ? /* @__PURE__ */ o.jsx(L, { text: n.tooltip, placement: "top", delay: { show: 1e3, hide: 0 }, children: /* @__PURE__ */ o.jsx("div", { children: a }) }) : a, C = ({ item: n, menuExpanded: t, collapsed: l, onCollapse: a, currentPath: c, useHover: m, useTooltips: M, isMobile: r }) => {
|
|
32
|
-
var
|
|
33
|
-
const [N, p] = I(!1), [b] = c.split("?"), _ = n.linkTo === b || ((
|
|
32
|
+
var B, v, j, h;
|
|
33
|
+
const [N, p] = I(!1), [b] = c.split("?"), _ = n.linkTo === b || ((B = n.children) == null ? void 0 : B.some((e) => e.linkTo === b)), y = w(null);
|
|
34
34
|
return z([y], () => l && a()), /* @__PURE__ */ o.jsxs("li", { ref: y, className: i("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: r }, {
|
|
35
35
|
[s.expanded]: t
|
|
36
36
|
}, { active: N || _ }, { open: l && n.children }, {
|
|
@@ -49,13 +49,13 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
49
49
|
t && /* @__PURE__ */ o.jsx("div", { className: i("collapse-icon", s.collapseIcon, {
|
|
50
50
|
[s.collapsed]: l
|
|
51
51
|
}), children: /* @__PURE__ */ o.jsx(g, {}) })
|
|
52
|
-
] }) }) : /* @__PURE__ */ o.jsxs(
|
|
52
|
+
] }) }) : /* @__PURE__ */ o.jsxs(f, { to: n.disabled || n.notPermitted ? "/" : n.linkTo ?? "/", className: i("nav-link", s.navButton), children: [
|
|
53
53
|
/* @__PURE__ */ o.jsx("div", { className: i("icon", s.icon), children: n.icon }),
|
|
54
54
|
t && /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: n.title })
|
|
55
55
|
] }) }),
|
|
56
56
|
/* @__PURE__ */ o.jsx("div", { className: i("children-container", s.childrenContainer, {
|
|
57
57
|
[s.visible]: l
|
|
58
|
-
}), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (h = n.children) == null ? void 0 : h.map((e) => /* @__PURE__ */ o.jsx(
|
|
58
|
+
}), children: /* @__PURE__ */ o.jsx("div", { className: i("shadow rounded children", s.children), children: (h = n.children) == null ? void 0 : h.map((e) => /* @__PURE__ */ o.jsx(f, { to: e.disabled || e.notPermitted ? "/" : e.linkTo ?? "/", className: i("nav-link child rounded", s.navButton, s.child, { [s.disabled]: e.disabled || e.notPermitted }, { disabled: e.disabled || e.notPermitted }), onClick: a, children: /* @__PURE__ */ o.jsx("div", { className: i("text", s.text, "text-nowrap"), children: e.title }) }, e.linkTo)) }) })
|
|
59
59
|
] });
|
|
60
60
|
}, H = "_side-menu_15z3o_1", ee = "_sidebar-header_15z3o_13", oe = "_side-menu-content_15z3o_20", ne = "_expand_15z3o_24", se = "_only-logo_15z3o_28", ie = "_mobile_15z3o_31", te = "_divider_15z3o_45", u = {
|
|
61
61
|
"side-menu": "_side-menu_15z3o_1",
|
|
@@ -81,7 +81,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
81
81
|
disabled: e.disabled || x.disabled
|
|
82
82
|
}))
|
|
83
83
|
};
|
|
84
|
-
}), [l, _]),
|
|
84
|
+
}), [l, _]), B = k(() => a.map((e) => {
|
|
85
85
|
var d;
|
|
86
86
|
return {
|
|
87
87
|
...e,
|
|
@@ -113,7 +113,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
113
113
|
t ? /* @__PURE__ */ o.jsx("div", { className: "p-3", children: t }) : null,
|
|
114
114
|
y.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title)),
|
|
115
115
|
/* @__PURE__ */ o.jsx("hr", { className: i("divider", u.divider) }),
|
|
116
|
-
|
|
116
|
+
B.map((e, d) => /* @__PURE__ */ o.jsx(C, { item: e, menuExpanded: c, collapsed: d === p, onCollapse: () => v(d), currentPath: M, useHover: r, useTooltips: N, isMobile: h }, e.title))
|
|
117
117
|
] })
|
|
118
118
|
] });
|
|
119
119
|
}, le = "_top-bar_1usoa_1", ae = "_top-bar-brand_1usoa_13", P = {
|
|
@@ -125,7 +125,7 @@ const F = "_side-menu-item_1o1uo_1", K = "_disabled_1o1uo_6", O = "_nav-button_1
|
|
|
125
125
|
width: t ? `calc(100% - ${t}px)` : void 0,
|
|
126
126
|
left: t ? `${t}px` : void 0
|
|
127
127
|
}, children: [
|
|
128
|
-
/* @__PURE__ */ o.jsx(
|
|
128
|
+
/* @__PURE__ */ o.jsx(f, { to: "/", className: i("luminus-top-bar-brand", P.topBarBrand), children: n }),
|
|
129
129
|
l && /* @__PURE__ */ o.jsx("div", { children: l }),
|
|
130
130
|
/* @__PURE__ */ o.jsx("div", { className: "d-flex justify-content-end align-items-center", children: a ?? null })
|
|
131
131
|
] });
|