@omniumretail/component-library 1.3.22 → 1.3.24
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.
|
@@ -25055,7 +25055,7 @@ const ResponsiveTable = (props) => {
|
|
|
25055
25055
|
);
|
|
25056
25056
|
const isSelected2 = cellIndex2 !== -1;
|
|
25057
25057
|
if (isDisabled) {
|
|
25058
|
-
if (originalCellContent2?.type === "I" || isReadonly) {
|
|
25058
|
+
if (originalCellContent2?.type === "I" || isReadonly || originalCellContent2?.type === "L") {
|
|
25059
25059
|
return /* @__PURE__ */ jsx(Tag, { color: originalCellContent2.color, style: { margin: -4, cursor: "not-allowed" }, children: originalCellContent2.type });
|
|
25060
25060
|
} else {
|
|
25061
25061
|
return /* @__PURE__ */ jsx(
|
|
@@ -25486,20 +25486,25 @@ const getMenuTopList = (onHome) => [
|
|
|
25486
25486
|
action: onHome
|
|
25487
25487
|
}
|
|
25488
25488
|
];
|
|
25489
|
-
const getMenuBottomList = (onProfile, onLogout, onSupport, userName2) =>
|
|
25490
|
-
|
|
25491
|
-
|
|
25492
|
-
|
|
25493
|
-
|
|
25494
|
-
|
|
25495
|
-
|
|
25496
|
-
|
|
25497
|
-
|
|
25498
|
-
|
|
25489
|
+
const getMenuBottomList = (onProfile, onLogout, onSupport, userName2, showSupport = true) => {
|
|
25490
|
+
const menuItems = [
|
|
25491
|
+
{
|
|
25492
|
+
name: `${t("navigation.profile")}${userName2 ? ` <span>(${userName2})</span>` : ""}`,
|
|
25493
|
+
action: onProfile
|
|
25494
|
+
}
|
|
25495
|
+
];
|
|
25496
|
+
if (showSupport) {
|
|
25497
|
+
menuItems.push({
|
|
25498
|
+
name: t("navigation.support"),
|
|
25499
|
+
action: onSupport
|
|
25500
|
+
});
|
|
25501
|
+
}
|
|
25502
|
+
menuItems.push({
|
|
25499
25503
|
name: t("navigation.logout"),
|
|
25500
25504
|
action: onLogout
|
|
25501
|
-
}
|
|
25502
|
-
|
|
25505
|
+
});
|
|
25506
|
+
return menuItems;
|
|
25507
|
+
};
|
|
25503
25508
|
const dropdownContainer = "_dropdownContainer_1hqwo_1";
|
|
25504
25509
|
const notificationMenu = "_notificationMenu_1hqwo_14";
|
|
25505
25510
|
const optionsMenuStyle = "_optionsMenuStyle_1hqwo_37";
|
|
@@ -26432,7 +26437,8 @@ const Header = ({
|
|
|
26432
26437
|
onSupportSubmit,
|
|
26433
26438
|
applicationOptions,
|
|
26434
26439
|
onProfileClick,
|
|
26435
|
-
onHomeClick
|
|
26440
|
+
onHomeClick,
|
|
26441
|
+
showSupport = true
|
|
26436
26442
|
}) => {
|
|
26437
26443
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
26438
26444
|
const [activeDropdown, setActiveDropdown] = useState(null);
|
|
@@ -26484,7 +26490,8 @@ const Header = ({
|
|
|
26484
26490
|
onProfile,
|
|
26485
26491
|
onLogout,
|
|
26486
26492
|
onSupport,
|
|
26487
|
-
userName2
|
|
26493
|
+
userName2,
|
|
26494
|
+
showSupport
|
|
26488
26495
|
);
|
|
26489
26496
|
const combinedMenuList = [...menuTopList, ...menuList2 || [], ...menuBottomList];
|
|
26490
26497
|
const onToggleMenu = () => {
|