@omniumretail/component-library 1.3.45 → 1.3.46

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.
@@ -25227,13 +25227,16 @@ const ResponsiveTable = (props) => {
25227
25227
  if (isSelectable) {
25228
25228
  const cellContent = (() => {
25229
25229
  if (calendarMode) {
25230
- if (isSelected && (selectedCells[cellIndex]?.value?.type === "I" || selectedCells[cellIndex]?.value?.type === "L")) {
25230
+ const hasIorL = isSelected && (selectedCells[cellIndex]?.value?.type === "I" || selectedCells[cellIndex]?.value?.type === "L") || (originalCellContent?.type === "I" || originalCellContent?.type === "L");
25231
+ if (hasIorL) {
25232
+ const ilType = isSelected && (selectedCells[cellIndex]?.value?.type === "I" || selectedCells[cellIndex]?.value?.type === "L") ? selectedCells[cellIndex].value.type : originalCellContent.type;
25233
+ const ilColor = isSelected && (selectedCells[cellIndex]?.value?.type === "I" || selectedCells[cellIndex]?.value?.type === "L") ? selectedCells[cellIndex].value.color : originalCellContent.color;
25231
25234
  return /* @__PURE__ */ jsx(
25232
25235
  Tag,
25233
25236
  {
25234
- color: selectedCells[cellIndex].value.color,
25235
- style: { margin: -4, cursor: "pointer" },
25236
- children: selectedCells[cellIndex].value.type
25237
+ color: ilColor,
25238
+ style: { margin: -4, cursor: "not-allowed" },
25239
+ children: ilType
25237
25240
  }
25238
25241
  );
25239
25242
  }
@@ -25241,34 +25244,16 @@ const ResponsiveTable = (props) => {
25241
25244
  if (fWasRemoved) {
25242
25245
  return null;
25243
25246
  }
25244
- if (isSelected && selectedCells[cellIndex]?.value?.type === "F") {
25247
+ const hasF = isSelected && selectedCells[cellIndex]?.value?.type === "F" || originalCellContent?.type === "F";
25248
+ if (hasF) {
25245
25249
  if (originalCellContent?.type === "S" || originalCellContent?.type === "D") {
25246
25250
  return null;
25247
25251
  }
25252
+ const fColor = isSelected && selectedCells[cellIndex]?.value?.type === "F" ? selectedCells[cellIndex].value.color : originalCellContent.color;
25248
25253
  return /* @__PURE__ */ jsx(
25249
25254
  Tag,
25250
25255
  {
25251
- color: selectedCells[cellIndex].value.color,
25252
- style: { margin: -4, cursor: "pointer" },
25253
- children: "F"
25254
- }
25255
- );
25256
- }
25257
- if (originalCellContent?.type === "I" || originalCellContent?.type === "L") {
25258
- return /* @__PURE__ */ jsx(
25259
- Tag,
25260
- {
25261
- color: originalCellContent.color,
25262
- style: { margin: -4, cursor: "not-allowed" },
25263
- children: originalCellContent.type
25264
- }
25265
- );
25266
- }
25267
- if (originalCellContent?.type === "F") {
25268
- return /* @__PURE__ */ jsx(
25269
- Tag,
25270
- {
25271
- color: originalCellContent.color,
25256
+ color: fColor,
25272
25257
  style: { margin: -4, cursor: "pointer" },
25273
25258
  children: "F"
25274
25259
  }