@omniumretail/component-library 1.3.52 → 1.3.54
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.
|
@@ -25267,16 +25267,6 @@ const ResponsiveTable = (props) => {
|
|
|
25267
25267
|
}
|
|
25268
25268
|
if (templateEditMode) {
|
|
25269
25269
|
const isRuleType = (type) => type !== "S" && type !== "D" && type !== "F";
|
|
25270
|
-
if (originalCellContent?.type === "F" || originalCellContent?.type === "S" || originalCellContent?.type === "D") {
|
|
25271
|
-
return /* @__PURE__ */ jsx(
|
|
25272
|
-
Tag,
|
|
25273
|
-
{
|
|
25274
|
-
color: originalCellContent.color,
|
|
25275
|
-
style: { margin: -4, cursor: "pointer" },
|
|
25276
|
-
children: originalCellContent.type
|
|
25277
|
-
}
|
|
25278
|
-
);
|
|
25279
|
-
}
|
|
25280
25270
|
const wasRemoved = isSelected && selectedCells[cellIndex]?.value?.type === null && originalCellContent?.type && isRuleType(originalCellContent.type);
|
|
25281
25271
|
if (wasRemoved) {
|
|
25282
25272
|
return null;
|
|
@@ -25295,12 +25285,25 @@ const ResponsiveTable = (props) => {
|
|
|
25295
25285
|
}
|
|
25296
25286
|
);
|
|
25297
25287
|
}
|
|
25288
|
+
if (originalCellContent?.type) {
|
|
25289
|
+
return /* @__PURE__ */ jsx(
|
|
25290
|
+
Tag,
|
|
25291
|
+
{
|
|
25292
|
+
color: originalCellContent.color,
|
|
25293
|
+
style: { margin: -4, cursor: "pointer" },
|
|
25294
|
+
children: originalCellContent.type
|
|
25295
|
+
}
|
|
25296
|
+
);
|
|
25297
|
+
}
|
|
25298
25298
|
return null;
|
|
25299
25299
|
}
|
|
25300
25300
|
if (isSelected) {
|
|
25301
25301
|
const selectedCell = selectedCells[cellIndex];
|
|
25302
25302
|
const cellColor = selectedCell?.value?.color || selectedCellColor;
|
|
25303
25303
|
const cellType = selectedCell?.value?.type || "X";
|
|
25304
|
+
if (originalCellContent?.secondaryType) {
|
|
25305
|
+
return /* @__PURE__ */ jsx(Tag, { color: originalCellContent.secondaryColor, style: { margin: -4, cursor: "not-allowed" }, children: originalCellContent.secondaryType });
|
|
25306
|
+
}
|
|
25304
25307
|
return /* @__PURE__ */ jsx(
|
|
25305
25308
|
Tag,
|
|
25306
25309
|
{
|
|
@@ -25310,6 +25313,9 @@ const ResponsiveTable = (props) => {
|
|
|
25310
25313
|
}
|
|
25311
25314
|
);
|
|
25312
25315
|
}
|
|
25316
|
+
if (originalCellContent?.secondaryType) {
|
|
25317
|
+
return /* @__PURE__ */ jsx(Tag, { color: originalCellContent.secondaryColor, style: { margin: -4, cursor: "not-allowed" }, children: originalCellContent.secondaryType });
|
|
25318
|
+
}
|
|
25313
25319
|
if (originalCellContent?.type) {
|
|
25314
25320
|
return /* @__PURE__ */ jsx(Tag, { color: originalCellContent.color, style: { margin: -4, cursor: "pointer" }, children: originalCellContent.type });
|
|
25315
25321
|
}
|