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