@omniumretail/component-library 1.3.24 → 1.3.26
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.
|
@@ -25080,7 +25080,8 @@ const ResponsiveTable = (props) => {
|
|
|
25080
25080
|
const selectedCell = selectedCells[cellIndex2];
|
|
25081
25081
|
const cellColor = selectedCell?.value?.color || selectedCellColor;
|
|
25082
25082
|
const cellType = selectedCell?.value?.type || "X";
|
|
25083
|
-
|
|
25083
|
+
const isLicenseType = cellType === "L";
|
|
25084
|
+
return /* @__PURE__ */ jsx(Tag, { color: cellColor, style: { margin: -4, cursor: isLicenseType ? "not-allowed" : "pointer" }, children: cellType });
|
|
25084
25085
|
}
|
|
25085
25086
|
if (originalCellContent2) {
|
|
25086
25087
|
return /* @__PURE__ */ jsx(Tag, { color: originalCellContent2.color, style: { margin: -4 }, children: originalCellContent2.type });
|
|
@@ -25092,6 +25093,9 @@ const ResponsiveTable = (props) => {
|
|
|
25092
25093
|
{
|
|
25093
25094
|
onClick: (e) => {
|
|
25094
25095
|
e.stopPropagation();
|
|
25096
|
+
if (isSelected2 && selectedCells[cellIndex2]?.value?.type === "L") {
|
|
25097
|
+
return;
|
|
25098
|
+
}
|
|
25095
25099
|
handleCellClick(record, key);
|
|
25096
25100
|
},
|
|
25097
25101
|
className: classNames(
|
|
@@ -25486,7 +25490,7 @@ const getMenuTopList = (onHome) => [
|
|
|
25486
25490
|
action: onHome
|
|
25487
25491
|
}
|
|
25488
25492
|
];
|
|
25489
|
-
const getMenuBottomList = (onProfile, onLogout, onSupport, userName2, showSupport =
|
|
25493
|
+
const getMenuBottomList = (onProfile, onLogout, onSupport, userName2, showSupport = false) => {
|
|
25490
25494
|
const menuItems = [
|
|
25491
25495
|
{
|
|
25492
25496
|
name: `${t("navigation.profile")}${userName2 ? ` <span>(${userName2})</span>` : ""}`,
|
|
@@ -26438,7 +26442,7 @@ const Header = ({
|
|
|
26438
26442
|
applicationOptions,
|
|
26439
26443
|
onProfileClick,
|
|
26440
26444
|
onHomeClick,
|
|
26441
|
-
showSupport =
|
|
26445
|
+
showSupport = false
|
|
26442
26446
|
}) => {
|
|
26443
26447
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
26444
26448
|
const [activeDropdown, setActiveDropdown] = useState(null);
|