@omniumretail/component-library 1.3.43 → 1.3.45
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,20 +25227,23 @@ 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")) {
|
|
25231
|
+
return /* @__PURE__ */ jsx(
|
|
25232
|
+
Tag,
|
|
25233
|
+
{
|
|
25234
|
+
color: selectedCells[cellIndex].value.color,
|
|
25235
|
+
style: { margin: -4, cursor: "pointer" },
|
|
25236
|
+
children: selectedCells[cellIndex].value.type
|
|
25237
|
+
}
|
|
25238
|
+
);
|
|
25239
|
+
}
|
|
25230
25240
|
const fWasRemoved = isSelected && selectedCells[cellIndex]?.value?.type === null && originalCellContent?.type === "F";
|
|
25231
25241
|
if (fWasRemoved) {
|
|
25232
25242
|
return null;
|
|
25233
25243
|
}
|
|
25234
25244
|
if (isSelected && selectedCells[cellIndex]?.value?.type === "F") {
|
|
25235
|
-
if (originalCellContent?.type === "
|
|
25236
|
-
return
|
|
25237
|
-
Tag,
|
|
25238
|
-
{
|
|
25239
|
-
color: originalCellContent.color,
|
|
25240
|
-
style: { margin: -4, cursor: "pointer" },
|
|
25241
|
-
children: originalCellContent.type
|
|
25242
|
-
}
|
|
25243
|
-
);
|
|
25245
|
+
if (originalCellContent?.type === "S" || originalCellContent?.type === "D") {
|
|
25246
|
+
return null;
|
|
25244
25247
|
}
|
|
25245
25248
|
return /* @__PURE__ */ jsx(
|
|
25246
25249
|
Tag,
|
|
@@ -25251,16 +25254,26 @@ const ResponsiveTable = (props) => {
|
|
|
25251
25254
|
}
|
|
25252
25255
|
);
|
|
25253
25256
|
}
|
|
25254
|
-
if (originalCellContent?.type) {
|
|
25257
|
+
if (originalCellContent?.type === "I" || originalCellContent?.type === "L") {
|
|
25255
25258
|
return /* @__PURE__ */ jsx(
|
|
25256
25259
|
Tag,
|
|
25257
25260
|
{
|
|
25258
25261
|
color: originalCellContent.color,
|
|
25259
|
-
style: { margin: -4, cursor: "
|
|
25262
|
+
style: { margin: -4, cursor: "not-allowed" },
|
|
25260
25263
|
children: originalCellContent.type
|
|
25261
25264
|
}
|
|
25262
25265
|
);
|
|
25263
25266
|
}
|
|
25267
|
+
if (originalCellContent?.type === "F") {
|
|
25268
|
+
return /* @__PURE__ */ jsx(
|
|
25269
|
+
Tag,
|
|
25270
|
+
{
|
|
25271
|
+
color: originalCellContent.color,
|
|
25272
|
+
style: { margin: -4, cursor: "pointer" },
|
|
25273
|
+
children: "F"
|
|
25274
|
+
}
|
|
25275
|
+
);
|
|
25276
|
+
}
|
|
25264
25277
|
return null;
|
|
25265
25278
|
}
|
|
25266
25279
|
if (templateEditMode) {
|