beca-ui 0.1.18 → 0.1.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/beca-ui.js
CHANGED
|
@@ -82894,14 +82894,14 @@ const getLabel = (a, s, c) => {
|
|
|
82894
82894
|
const {
|
|
82895
82895
|
isAdmin: s = !1,
|
|
82896
82896
|
sideBarMenus: c,
|
|
82897
|
-
|
|
82897
|
+
openMenuKeys: d,
|
|
82898
82898
|
activeMenu: u,
|
|
82899
82899
|
collapsed: m,
|
|
82900
82900
|
pathname: h,
|
|
82901
82901
|
isMobile: p,
|
|
82902
82902
|
homePageUrl: b,
|
|
82903
82903
|
LinkComponent: f
|
|
82904
|
-
} = a, [g, Z] = useState(""), [M, T] = useState(), [C, S] = useState(), [W, R] = useState([]);
|
|
82904
|
+
} = a, [g, Z] = useState(""), [M, T] = useState([]), [C, S] = useState(), [W, R] = useState([]);
|
|
82905
82905
|
return useEffect(() => {
|
|
82906
82906
|
var x;
|
|
82907
82907
|
if (h) {
|
|
@@ -82917,11 +82917,11 @@ const getLabel = (a, s, c) => {
|
|
|
82917
82917
|
V && !V.includes("http:") && !V.includes("https:") && (O = V);
|
|
82918
82918
|
const E = ((O == null ? void 0 : O.length) > 0 && O !== "/" ? O ?? O : b).split("/");
|
|
82919
82919
|
S((x = E[1]) == null ? void 0 : x.toLowerCase());
|
|
82920
|
-
let j, P;
|
|
82921
|
-
E.length > 3 ? (j = E[2].toLowerCase() === "" ? M : E[2].toLowerCase(), E[2].toLowerCase() === "report" && E[3].toLowerCase() === "specific" && E[4] ? P = E[4].toLowerCase() : P = E[3].toLowerCase()) : E.length > 2 ? (j = E[2].toLowerCase() === "" ? M : E[2].toLowerCase(), P = E[2].toLowerCase()) :
|
|
82920
|
+
let j = [], P;
|
|
82921
|
+
E.length > 3 ? (j = E[2].toLowerCase() === "" ? M : [E[2].toLowerCase()], E[2].toLowerCase() === "report" && E[3].toLowerCase() === "specific" && E[4] ? P = E[4].toLowerCase() : P = E[3].toLowerCase()) : E.length > 2 ? (j = E[2].toLowerCase() === "" ? M : [E[2].toLowerCase()], P = E[2].toLowerCase()) : E.length === 2 || E.length === 3 && E[2] === "" ? (j = ["0"], P = "0") : (j = ["0"], P = "0"), T(j), Z(P);
|
|
82922
82922
|
}
|
|
82923
82923
|
}, [h]), useEffect(() => {
|
|
82924
|
-
m && T("0");
|
|
82924
|
+
m && T(["0"]);
|
|
82925
82925
|
}, [m]), useEffect(() => {
|
|
82926
82926
|
if (c.length > 0 && C) {
|
|
82927
82927
|
const x = c.find((Y) => Y.name === C);
|
|
@@ -82974,7 +82974,7 @@ const getLabel = (a, s, c) => {
|
|
|
82974
82974
|
mode: "inline",
|
|
82975
82975
|
inlineCollapsed: m,
|
|
82976
82976
|
selectedKeys: [u ?? g],
|
|
82977
|
-
defaultOpenKeys:
|
|
82977
|
+
defaultOpenKeys: d && d.length > 0 ? d : M,
|
|
82978
82978
|
items: W
|
|
82979
82979
|
}
|
|
82980
82980
|
) })
|
|
@@ -84550,7 +84550,7 @@ const AppContext = createContext$1({}), MainLayout = (a) => {
|
|
|
84550
84550
|
const { t: s } = useTrans(), {
|
|
84551
84551
|
children: c,
|
|
84552
84552
|
activeMenu: d,
|
|
84553
|
-
|
|
84553
|
+
openMenuKeys: u = [],
|
|
84554
84554
|
sideBarMenus: m = [],
|
|
84555
84555
|
supportContactData: h = [],
|
|
84556
84556
|
pathname: p,
|
|
@@ -84611,7 +84611,7 @@ const AppContext = createContext$1({}), MainLayout = (a) => {
|
|
|
84611
84611
|
collapsed: x,
|
|
84612
84612
|
sideBarMenus: U,
|
|
84613
84613
|
activeMenu: d,
|
|
84614
|
-
|
|
84614
|
+
openMenuKeys: u,
|
|
84615
84615
|
pathname: p,
|
|
84616
84616
|
isMobile: ee,
|
|
84617
84617
|
homePageUrl: Y,
|
|
@@ -138226,7 +138226,7 @@ const styles = {
|
|
|
138226
138226
|
/* @__PURE__ */ jsx(
|
|
138227
138227
|
Document$2,
|
|
138228
138228
|
{
|
|
138229
|
-
file:
|
|
138229
|
+
file: a,
|
|
138230
138230
|
onLoadSuccess: (O) => {
|
|
138231
138231
|
x(O);
|
|
138232
138232
|
},
|