@omniumretail/component-library 1.3.21 → 1.3.23

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