@omniumretail/component-library 1.3.33 → 1.3.34

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.
@@ -25087,15 +25087,21 @@ const ResponsiveTable = (props) => {
25087
25087
  (cell) => cell.rowKey === record[rowKeyValue] && cell.columnKey === key
25088
25088
  );
25089
25089
  const getBackgroundColor = () => {
25090
- if (!originalCellContent2?.type) return void 0;
25091
- if (originalCellContent2.type === "F") {
25092
- return originalCellContent2.color;
25090
+ if (templateEditMode && isSelected2) {
25091
+ const selectedCell = selectedCells[cellIndex2];
25092
+ const cellType = selectedCell?.value?.type;
25093
+ if (cellType === "F" || cellType === "S" || cellType === "D") {
25094
+ return selectedCell?.value?.color;
25095
+ }
25096
+ return void 0;
25093
25097
  }
25094
- if (originalCellContent2.type === "S") {
25095
- return originalCellContent2.color;
25098
+ if (templateEditMode && !isSelected2) {
25099
+ return void 0;
25096
25100
  }
25097
- if (originalCellContent2.type === "D") {
25098
- return originalCellContent2.color;
25101
+ if (!templateEditMode && originalCellContent2?.type) {
25102
+ if (originalCellContent2.type === "F") return originalCellContent2.color;
25103
+ if (originalCellContent2.type === "S") return originalCellContent2.color;
25104
+ if (originalCellContent2.type === "D") return originalCellContent2.color;
25099
25105
  }
25100
25106
  return void 0;
25101
25107
  };