react-luminus-components 2.0.2-table-d7f5ad24d53c7cff099af497e38cd1c5dbfb2918 → 2.0.3-beta.r19-3
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/README.md +349 -349
- package/dist/.vite/manifest.json +46 -46
- package/dist/FormDisabledProvider-CNVOqN9X.js +40 -0
- package/dist/FormDisabledProvider-DmZDEoe7.cjs +1 -0
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +6 -3
- package/dist/components/Documents/components/DocumentsModals/components/CreateFolderModal/hooks/useDocCreateFolderForm.d.ts +4 -1
- package/dist/components/Documents/components/DocumentsModals/components/EditFileModal/hooks/useEditFileForm.d.ts +6 -1
- package/dist/components/Documents/hooks/useDocumentsReducer.d.ts +1 -1
- package/dist/components/Dropdown/comps/SimpleToggle/SimpleToggle.d.ts +6 -3
- package/dist/components/Dropdown/comps/UserAvatarToggle/UserAvatarToggle.d.ts +3 -1
- package/dist/components/Flexmonster/Flexmonster.d.ts +1 -1
- package/dist/components/Flexmonster/hooks/useReportVersionApi.d.ts +1 -1
- package/dist/components/Flexmonster/utils/flexMonsterUtils.d.ts +1 -1
- package/dist/components/HookForm/MiniDetailWrapper/MiniDetailWrapper.d.ts +1 -1
- package/dist/components/HookForm/TextInput/HookFormTextInput.d.ts +4 -17
- package/dist/components/InputContainers/FloatingLabelInput/FloatingLabelInput.d.ts +7 -38
- package/dist/components/InputContainers/NoInputContainer/NoInputContainer.d.ts +8 -38
- package/dist/components/InputContainers/RowLabelInput/RowLabelInput.d.ts +8 -38
- package/dist/components/ResponsiveContextDropdown/components/ResponsiveContextDropdownItem/ResponsiveContextDropdownItem.d.ts +1 -1
- package/dist/components/ResponsiveContextDropdown/hooks/useReponsiveContextDropdownHelpers.d.ts +2 -2
- package/dist/components/ResponsiveContextDropdown/utils/responsiveContextDropdownUtils.d.ts +1 -1
- package/dist/components/Tooltip/HtmlTooltip/HtmlTooltip.d.ts +2 -2
- package/dist/components/Tooltip/SimpleTooltip/SimpleTooltip.d.ts +1 -1
- package/dist/components/common/AuthTemplate/AuthTemplate.d.ts +1 -1
- package/dist/components/common/ColumnResizer/ColumnResizer.d.ts +1 -1
- package/dist/components/common/DisabledRowLabelLink/DisabledRowLabelLink.d.ts +1 -1
- package/dist/components/common/ErrorBoundary/ErrorBoundary.d.ts +7 -3
- package/dist/components/common/FromToDatePicker/components/FromToDatePickerDropdownToggle/FromToDatePickerDropdownToggle.d.ts +3 -1
- package/dist/components/common/LineChart/comps/LineChartTooltip/LineChartTooltip.d.ts +2 -2
- package/dist/components/common/PermissionsSubstitute/Detail/hooks/useSubstDetailForm.d.ts +8 -1
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/PhotoPreviews.d.ts +15 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/PhotoPreview.d.ts +14 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/PreviewShadow/PreviewShadow.d.ts +5 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/PhotoPreview/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/PhotoPreviews/comps/index.d.ts +1 -0
- package/dist/components/common/PhotoLightbox/comps/index.d.ts +1 -0
- package/dist/components/common/QrCode/QrCode.d.ts +1 -1
- package/dist/components/common/RouteLink/RouteLink.d.ts +1 -1
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +1 -1
- package/dist/components/common/index.d.ts +0 -1
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +274 -921
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useScrollSave/useScrollSave.d.ts +1 -1
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +105 -89
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +109 -120
- package/dist/{localStorageUtils-NrZA2Syo.js → localStorageUtils-DKh4zlsM.js} +1 -1
- package/dist/localStorageUtils-VI7zmTA0.cjs +1 -0
- package/dist/main.cjs.js +21 -183
- package/dist/main.es.js +6372 -11355
- package/dist/models/bntTable/IBnfTableDefColumn.d.ts +40 -0
- package/dist/models/prop-types/InputContainerProps.d.ts +4 -12
- package/dist/models/prop-types/InputProps/DropdownPickerProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/InputBaseProps.d.ts +4 -2
- package/dist/models/prop-types/InputProps/NumericInputProps.d.ts +1 -1
- package/dist/models/prop-types/InputProps/TextInputProps.d.ts +1 -1
- package/dist/{ShortcutLinksContext-B6B_uG2X.js → nivo-bar-DXK3wbjv.js} +28480 -28322
- package/dist/nivo-bar-U0TkOANS.cjs +306 -0
- package/dist/style.css +1 -1
- package/dist/useEmployeePhotoPath-DdMmh1qU.js +65 -0
- package/dist/useEmployeePhotoPath-Q0EhpWOh.cjs +1 -0
- package/dist/{useLocalStorageState-DG9g_lFm.js → useLocalStorageState-B3o2yBVf.js} +15 -14
- package/dist/useLocalStorageState-BWT4Z8eu.cjs +1 -0
- package/dist/utils/route/apiPathUtils.d.ts +1 -1
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +79 -80
- package/dist/variables.scss +165 -165
- package/package.json +124 -123
- package/dist/FormDisabledProvider-BNE4w-91.cjs +0 -1
- package/dist/FormDisabledProvider-Ct-odePz.js +0 -40
- package/dist/ShortcutLinksContext-d3AdgJhg.cjs +0 -334
- package/dist/components/common/StrictModeDroppable/StrictModeDroppable.d.ts +0 -5
- package/dist/localStorageUtils-CFey67IX.cjs +0 -1
- package/dist/useLocalStorageState-CGKmNXMv.cjs +0 -1
- package/dist/useRenderDraggableInPortal-D0OLp7Qb.js +0 -78
- package/dist/useRenderDraggableInPortal-QPCaw-E_.cjs +0 -1
package/dist/layout.es.js
CHANGED
|
@@ -1,154 +1,143 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { jsxs as p, jsx as n, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import { useState as $, useRef as A, useMemo as w, useEffect as j } from "react";
|
|
3
|
+
import { aQ as O, c as l, _ as T, aD as D, bv as q, aF as F, bG as G, bH as H } from "./nivo-bar-DXK3wbjv.js";
|
|
4
|
+
import { at as Ie, bI as Te } from "./nivo-bar-DXK3wbjv.js";
|
|
5
|
+
import { Link as I } from "react-router";
|
|
5
6
|
import "react-hook-form";
|
|
6
7
|
import "react-flexmonster";
|
|
7
8
|
import "@azure/msal-browser";
|
|
8
9
|
import "@azure/msal-react";
|
|
9
10
|
import "react-dom";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
const [f, b] = R(!1), [v] = h.split("?"), k = n.linkTo === v || ((j = n.children) == null ? void 0 : j.some((i) => i.linkTo === v)), m = S(null);
|
|
34
|
-
return L([m], () => a && _()), /* @__PURE__ */ e.jsxs("li", { ref: m, className: l("luminus-side-menu-item", s.sideMenuItem, { [s.mobile]: M }, {
|
|
35
|
-
[s.expanded]: t
|
|
36
|
-
}, { active: f || k }, { open: a && n.children }, {
|
|
37
|
-
[c === "disable" ? s.disabled : s.hidden]: n.disabled || n.notPermitted || ((y = n.children) == null ? void 0 : y.every((i) => i.notPermitted || i.disabled))
|
|
11
|
+
const K = "_side-menu-item_o72rm_1", z = "_disabled_o72rm_6", Q = "_hidden_o72rm_10", U = "_nav-button_o72rm_13", W = "_child_o72rm_21", E = "_text_o72rm_26", J = "_icon_o72rm_36", V = "_collapse-icon_o72rm_42", X = "_collapsed_o72rm_52", Y = "_collapse-icon-mini_o72rm_55", Z = "_expanded_o72rm_86", ee = "_children-container_o72rm_92", ne = "_visible_o72rm_100", oe = "_children_o72rm_92", ie = "_mobile_o72rm_112", o = {
|
|
12
|
+
sideMenuItem: K,
|
|
13
|
+
disabled: z,
|
|
14
|
+
hidden: Q,
|
|
15
|
+
navButton: U,
|
|
16
|
+
child: W,
|
|
17
|
+
text: E,
|
|
18
|
+
icon: J,
|
|
19
|
+
collapseIcon: V,
|
|
20
|
+
collapsed: X,
|
|
21
|
+
collapseIconMini: Y,
|
|
22
|
+
expanded: Z,
|
|
23
|
+
childrenContainer: ee,
|
|
24
|
+
visible: ne,
|
|
25
|
+
children: oe,
|
|
26
|
+
mobile: ie
|
|
27
|
+
}, se = ({ item: e, menuExpanded: t, useTooltips: a, children: m }) => e.tooltip && !t && a ? /* @__PURE__ */ n(D, { text: e.tooltip, placement: "top", delay: { show: 1e3, hide: 0 }, children: /* @__PURE__ */ n("div", { children: m }) }) : m, L = ({ item: e, menuExpanded: t, collapsed: a, onCollapse: m, currentPath: v, useHover: d, useTooltips: N, isMobile: P, disableMode: c }) => {
|
|
28
|
+
var M, k, g, x;
|
|
29
|
+
const [B, h] = $(!1), [y] = v.split("?"), f = e.linkTo === y || ((M = e.children) == null ? void 0 : M.some((s) => s.linkTo === y)), _ = A(null);
|
|
30
|
+
return O([_], () => a && m()), /* @__PURE__ */ p("li", { ref: _, className: l("luminus-side-menu-item", o.sideMenuItem, { [o.mobile]: P }, {
|
|
31
|
+
[o.expanded]: t
|
|
32
|
+
}, { active: B || f }, { open: a && e.children }, {
|
|
33
|
+
[c === "disable" ? o.disabled : o.hidden]: e.disabled || e.notPermitted || ((k = e.children) == null ? void 0 : k.every((s) => s.notPermitted || s.disabled))
|
|
38
34
|
}, {
|
|
39
|
-
[c === "disable" ? "disabled" : "hidden"]:
|
|
40
|
-
}), onMouseEnter: () =>
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
35
|
+
[c === "disable" ? "disabled" : "hidden"]: e.disabled || e.notPermitted || ((g = e.children) == null ? void 0 : g.every((s) => s.notPermitted || s.disabled))
|
|
36
|
+
}), onMouseEnter: () => h(!0), onMouseLeave: () => h(!1), children: [
|
|
37
|
+
/* @__PURE__ */ n(se, { item: e, menuExpanded: t, useTooltips: N, children: e.children ? /* @__PURE__ */ n(S, { children: /* @__PURE__ */ p("button", { type: "button", className: l("nav-link", o.navButton), onClick: () => {
|
|
38
|
+
m();
|
|
43
39
|
}, children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
!d && !t && /* @__PURE__ */
|
|
46
|
-
[
|
|
47
|
-
}), children: /* @__PURE__ */
|
|
48
|
-
t && /* @__PURE__ */
|
|
49
|
-
t && /* @__PURE__ */
|
|
50
|
-
[
|
|
51
|
-
}), children: /* @__PURE__ */
|
|
52
|
-
] }) }) : /* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
t && /* @__PURE__ */
|
|
40
|
+
/* @__PURE__ */ n("div", { className: l("icon", o.icon), children: e.icon }),
|
|
41
|
+
!d && !t && /* @__PURE__ */ n("div", { className: l("collapse-icon-mini rounded", o.collapseIconMini, {
|
|
42
|
+
[o.collapsed]: a
|
|
43
|
+
}), children: /* @__PURE__ */ n(T, {}) }),
|
|
44
|
+
t && /* @__PURE__ */ n("div", { className: l("text", o.text, "text-nowrap"), children: e.title }),
|
|
45
|
+
t && /* @__PURE__ */ n("div", { className: l("collapse-icon", o.collapseIcon, {
|
|
46
|
+
[o.collapsed]: a
|
|
47
|
+
}), children: /* @__PURE__ */ n(T, {}) })
|
|
48
|
+
] }) }) : /* @__PURE__ */ p(I, { to: e.disabled || e.notPermitted ? "/" : e.linkTo ?? "/", className: l("nav-link", o.navButton), children: [
|
|
49
|
+
/* @__PURE__ */ n("div", { className: l("icon", o.icon), children: e.icon }),
|
|
50
|
+
t && /* @__PURE__ */ n("div", { className: l("text", o.text, "text-nowrap"), children: e.title })
|
|
55
51
|
] }) }),
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
[
|
|
58
|
-
}), children: /* @__PURE__ */
|
|
59
|
-
[c === "disable" ?
|
|
52
|
+
/* @__PURE__ */ n("div", { className: l("children-container", o.childrenContainer, {
|
|
53
|
+
[o.visible]: a
|
|
54
|
+
}), children: /* @__PURE__ */ n("div", { className: l("shadow rounded children", o.children), children: (x = e.children) == null ? void 0 : x.map((s) => /* @__PURE__ */ n(I, { to: s.disabled || s.notPermitted ? "/" : s.linkTo ?? "/", className: l("nav-link child rounded", o.navButton, o.child, {
|
|
55
|
+
[c === "disable" ? o.disabled : o.hidden]: s.disabled || s.notPermitted
|
|
60
56
|
}, {
|
|
61
|
-
[c === "disable" ? "disabled" : "hidden"]:
|
|
62
|
-
}), onClick:
|
|
57
|
+
[c === "disable" ? "disabled" : "hidden"]: s.disabled || s.notPermitted
|
|
58
|
+
}), onClick: m, children: /* @__PURE__ */ n("div", { className: l("text", o.text, "text-nowrap"), children: s.title }) }, s.linkTo)) }) })
|
|
63
59
|
] });
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
onlyLogo: ae,
|
|
76
|
-
mobile: de,
|
|
77
|
-
divider: ce
|
|
78
|
-
}, _e = 14, Ne = ({ headerItem: n, searchItem: t, shortcutsItem: a, mainItems: _, secondaryItems: h, expanded: d, setExpanded: x, currentPath: M, useHover: c, useTooltips: f, disableMode: b = "disable" }) => {
|
|
79
|
-
const [v, k] = R(-1), { checkUserHasPermissions: m } = q(), j = B(() => _.map((o) => {
|
|
60
|
+
}, le = "_side-menu_12rky_1", te = "_sidebar-header_12rky_15", re = "_side-menu-content_12rky_22", ae = "_no-top-margin_12rky_28", de = "_expand_12rky_34", ce = "_only-logo_12rky_38", me = "_mobile_12rky_41", _e = "_divider_12rky_56", b = {
|
|
61
|
+
sideMenu: le,
|
|
62
|
+
sidebarHeader: te,
|
|
63
|
+
sideMenuContent: re,
|
|
64
|
+
noTopMargin: ae,
|
|
65
|
+
expand: de,
|
|
66
|
+
onlyLogo: ce,
|
|
67
|
+
mobile: me,
|
|
68
|
+
divider: _e
|
|
69
|
+
}, ue = 14, Pe = ({ headerItem: e, searchItem: t, shortcutsItem: a, mainItems: m, secondaryItems: v, expanded: d, setExpanded: N, currentPath: P, useHover: c, useTooltips: B, disableMode: h = "disable" }) => {
|
|
70
|
+
const [y, f] = $(-1), { checkUserHasPermissions: _ } = q(), M = w(() => m.map((i) => {
|
|
80
71
|
var r;
|
|
81
72
|
return {
|
|
82
|
-
...
|
|
83
|
-
notPermitted: !
|
|
84
|
-
children: (r =
|
|
85
|
-
...
|
|
86
|
-
notPermitted: !
|
|
87
|
-
disabled:
|
|
73
|
+
...i,
|
|
74
|
+
notPermitted: !_(i.permissions ?? [], "any"),
|
|
75
|
+
children: (r = i.children) == null ? void 0 : r.map((u) => ({
|
|
76
|
+
...u,
|
|
77
|
+
notPermitted: !_(u.permissions ?? [], "any"),
|
|
78
|
+
disabled: i.disabled || u.disabled
|
|
88
79
|
}))
|
|
89
80
|
};
|
|
90
|
-
}), [
|
|
81
|
+
}), [m, _]), k = w(() => v.map((i) => {
|
|
91
82
|
var r;
|
|
92
83
|
return {
|
|
93
|
-
...
|
|
94
|
-
notPermitted: !
|
|
95
|
-
children: (r =
|
|
96
|
-
...
|
|
97
|
-
notPermitted: !
|
|
84
|
+
...i,
|
|
85
|
+
notPermitted: !_(i.permissions ?? [], "any"),
|
|
86
|
+
children: (r = i.children) == null ? void 0 : r.map((u) => ({
|
|
87
|
+
...u,
|
|
88
|
+
notPermitted: !_(u.permissions ?? [], "any")
|
|
98
89
|
}))
|
|
99
90
|
};
|
|
100
|
-
}), [
|
|
101
|
-
|
|
91
|
+
}), [v, _]), g = (i) => {
|
|
92
|
+
f(i === y ? -1 : i);
|
|
102
93
|
};
|
|
103
|
-
|
|
104
|
-
d ||
|
|
94
|
+
j(() => {
|
|
95
|
+
d || f(-1);
|
|
105
96
|
}, [d]);
|
|
106
|
-
const
|
|
107
|
-
|
|
108
|
-
const
|
|
97
|
+
const x = A(null);
|
|
98
|
+
O([x], () => N(!1));
|
|
99
|
+
const s = w(() => [...M, ...k].filter((i) => {
|
|
109
100
|
var r;
|
|
110
|
-
return
|
|
111
|
-
}), [
|
|
112
|
-
return /* @__PURE__ */
|
|
113
|
-
[
|
|
114
|
-
}, { expand: d }), onMouseEnter: () => c &&
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
[
|
|
117
|
-
}), role: c ? void 0 : "button", onClick: c ? void 0 : () =>
|
|
118
|
-
/* @__PURE__ */
|
|
119
|
-
|
|
120
|
-
] }) : /* @__PURE__ */
|
|
121
|
-
d && (t || a) ? /* @__PURE__ */
|
|
101
|
+
return h === "hide" ? !i.disabled && !i.notPermitted && (((r = i.children) == null ? void 0 : r.filter((u) => !u.disabled && !u.notPermitted)) ?? []).length > 0 : !0;
|
|
102
|
+
}), [M, k, h]), { isMobile: C } = F();
|
|
103
|
+
return /* @__PURE__ */ p("section", { ref: x, className: l("luminus-side-menu shadow", b.sideMenu, { [b.mobile]: C }, {
|
|
104
|
+
[b.expand]: d
|
|
105
|
+
}, { expand: d }), onMouseEnter: () => c && N(!0), onMouseLeave: () => c && N(!1), children: [
|
|
106
|
+
/* @__PURE__ */ n("div", { className: l("sidebar-header", b.sidebarHeader, {
|
|
107
|
+
[b.onlyLogo]: c
|
|
108
|
+
}), role: c ? void 0 : "button", onClick: c ? void 0 : () => N(!d), children: c ? e : d ? /* @__PURE__ */ p(S, { children: [
|
|
109
|
+
/* @__PURE__ */ n(G, {}),
|
|
110
|
+
e
|
|
111
|
+
] }) : /* @__PURE__ */ n(H, {}) }),
|
|
112
|
+
d && (t || a) ? /* @__PURE__ */ p("div", { className: "mb-3 d-flex flex-column gap-3", children: [
|
|
122
113
|
a && d ? a : null,
|
|
123
114
|
t && d ? t : null
|
|
124
115
|
] }) : null,
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
[
|
|
116
|
+
/* @__PURE__ */ p("ul", { className: l(b.sideMenuContent, {
|
|
117
|
+
[b.noTopMargin]: s.length > ue
|
|
127
118
|
}), children: [
|
|
128
|
-
|
|
129
|
-
/* @__PURE__ */
|
|
130
|
-
|
|
119
|
+
M.map((i, r) => /* @__PURE__ */ n(L, { item: i, menuExpanded: d, collapsed: r === y, onCollapse: () => g(r), currentPath: P, useHover: c, useTooltips: B, isMobile: C, disableMode: h }, i.title)),
|
|
120
|
+
/* @__PURE__ */ n("hr", { className: l("divider", b.divider) }),
|
|
121
|
+
k.map((i, r) => /* @__PURE__ */ n(L, { item: i, menuExpanded: d, collapsed: r === y, onCollapse: () => g(r), currentPath: P, useHover: c, useTooltips: B, isMobile: C, disableMode: h }, i.title))
|
|
131
122
|
] })
|
|
132
123
|
] });
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
topBarBrand: pe
|
|
138
|
-
}, ge = ({ appName: n, leftOffset: t, leftContent: a, centerContent: _, rightContent: h }) => /* @__PURE__ */ e.jsx("nav", { className: l("luminus-top-bar shadow", T.topBar), style: {
|
|
124
|
+
}, pe = "_top-bar_lnmq0_1", be = "_top-bar-brand_lnmq0_12", R = {
|
|
125
|
+
topBar: pe,
|
|
126
|
+
topBarBrand: be
|
|
127
|
+
}, Be = ({ appName: e, leftOffset: t, leftContent: a, centerContent: m, rightContent: v }) => /* @__PURE__ */ n("nav", { className: l("luminus-top-bar shadow", R.topBar), style: {
|
|
139
128
|
width: t ? `calc(100% - ${t}px)` : void 0,
|
|
140
129
|
left: t ? `${t}px` : void 0
|
|
141
|
-
}, children: /* @__PURE__ */
|
|
142
|
-
/* @__PURE__ */
|
|
143
|
-
/* @__PURE__ */
|
|
130
|
+
}, children: /* @__PURE__ */ p("div", { className: "w-100 row g-0", children: [
|
|
131
|
+
/* @__PURE__ */ p("div", { className: "col-4 d-flex gap-3 align-items-center", children: [
|
|
132
|
+
/* @__PURE__ */ n(I, { to: "/", className: l("luminus-top-bar-brand", R.topBarBrand), children: e }),
|
|
144
133
|
a
|
|
145
134
|
] }),
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ n("div", { className: "col-4 d-flex align-items-center", children: m ?? null }),
|
|
136
|
+
/* @__PURE__ */ n("div", { className: "col-4 d-flex justify-content-end align-items-center", children: v ?? null })
|
|
148
137
|
] }) });
|
|
149
138
|
export {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
139
|
+
Ie as PageContainer,
|
|
140
|
+
Te as SideContentBar,
|
|
141
|
+
Pe as SideMenu,
|
|
142
|
+
Be as TopBar
|
|
154
143
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("react-router"),s=(r,t,o)=>{let e=r;return t!==void 0&&(e=Math.max(e,t)),o!==void 0&&(e=Math.min(e,o)),e};function u(r,t){r.setValue(t,null)}function S(r,t){t.forEach(o=>{u(r,o)})}const l=(r,t,o=!0)=>Object.keys(r).reduce((e,n)=>{const c=r[n];return o&&(c==null||c==="")||(e[n]=t(c,n)),e},{}),a=(r,t)=>{const o=t!=null&&t.query?new URLSearchParams(l(t.query,e=>(e==null?void 0:e.toString())??"")):null;return`${i.generatePath(r,t!=null&&t.path?l(t.path,e=>(e==null?void 0:e.toString())??null):void 0)}${o&&o.size>0?`?${o.toString()}`:""}`},g=[{key:"msal",mode:"includes"},{key:"token",mode:"exact"},{key:"user",mode:"exact"},{key:"user-delegation",mode:"exact"}],h=(r=!0)=>{const t={};for(let o=0;o<localStorage.length;o++){const e=localStorage.key(o);if(e&&!(r&&g.some(({key:n,mode:c})=>c==="includes"?e.includes(n):e===n)))try{t[e]=JSON.parse(localStorage.getItem(e))}catch{t[e]=localStorage.getItem(e)}}return t},f=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=h;exports.generateApiPath=a;exports.hookFormSetNull=u;exports.hookFormSetNulls=S;exports.limitNumber=s;exports.restoreLocalStorage=f;
|