@omniumretail/component-library 1.3.60 → 1.3.61

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.
@@ -24898,7 +24898,6 @@ const ResponsiveTable = (props) => {
24898
24898
  if (disableCellSelection) return;
24899
24899
  const rowKey = record[rowKeyValue];
24900
24900
  const originalCellContent = record[columnKey];
24901
- console.log("🔍 CLICK DEBUG:", { rowKey, columnKey, originalCellContent, selectedCells: selectedCells.length, templateEditMode, calendarMode });
24902
24901
  if (useOrderedCellSelection) {
24903
24902
  const isAlreadySelected = selectedCells.some(
24904
24903
  (cell2) => cell2.rowKey === rowKey && cell2.columnKey === columnKey
@@ -24935,13 +24934,6 @@ const ResponsiveTable = (props) => {
24935
24934
  );
24936
24935
  const isSelected = cellIndex >= 0;
24937
24936
  originalCellContent?.type === "S" || originalCellContent?.type === "D";
24938
- console.log("🔍 STATE:", {
24939
- cellIndex,
24940
- isSelected,
24941
- originalType: originalCellContent?.type,
24942
- calendarMode,
24943
- templateEditMode
24944
- });
24945
24937
  let newSelectedCells = selectedCells;
24946
24938
  if (calendarMode) {
24947
24939
  if (isSelected) {
@@ -24951,16 +24943,13 @@ const ResponsiveTable = (props) => {
24951
24943
  newSelectedCells = selectedCells.map(
24952
24944
  (cell2, idx) => idx === cellIndex ? { ...cell2, value: { type: null, color: null } } : cell2
24953
24945
  );
24954
- console.log("➡️ Marked F as removed (backend F)");
24955
24946
  } else {
24956
24947
  newSelectedCells = selectedCells.filter((_, index) => index !== cellIndex);
24957
- console.log("➡️ Removed F background (calendar)");
24958
24948
  }
24959
24949
  } else if (selectedCell?.value?.type === null) {
24960
24950
  newSelectedCells = selectedCells.map(
24961
24951
  (cell2, idx) => idx === cellIndex ? { ...cell2, value: { type: "F", color: currentTemplateColor } } : cell2
24962
24952
  );
24963
- console.log("➡️ Re-added F after removal");
24964
24953
  }
24965
24954
  } else {
24966
24955
  const newCell = {
@@ -24970,7 +24959,6 @@ const ResponsiveTable = (props) => {
24970
24959
  rowData: record
24971
24960
  };
24972
24961
  newSelectedCells = [...selectedCells, newCell];
24973
- console.log("➡️ Added F background (calendar)");
24974
24962
  }
24975
24963
  } else if (templateEditMode) {
24976
24964
  const isRuleType = (type) => type !== "S" && type !== "D" && type !== "F";
@@ -24981,16 +24969,13 @@ const ResponsiveTable = (props) => {
24981
24969
  newSelectedCells = selectedCells.map(
24982
24970
  (cell2, idx) => idx === cellIndex ? { ...cell2, value: { type: null, color: null } } : cell2
24983
24971
  );
24984
- console.log("➡️ Marked rule as removed (backend rule)");
24985
24972
  } else {
24986
24973
  newSelectedCells = selectedCells.filter((_, index) => index !== cellIndex);
24987
- console.log("➡️ Removed rule (rules)");
24988
24974
  }
24989
24975
  } else if (selectedCell?.value?.type === null) {
24990
24976
  newSelectedCells = selectedCells.map(
24991
24977
  (cell2, idx) => idx === cellIndex ? { ...cell2, value: { type: currentTemplateType, color: currentTemplateColor } } : cell2
24992
24978
  );
24993
- console.log("➡️ Re-added rule after removal");
24994
24979
  }
24995
24980
  } else {
24996
24981
  const newCell = {
@@ -25000,12 +24985,10 @@ const ResponsiveTable = (props) => {
25000
24985
  rowData: record
25001
24986
  };
25002
24987
  newSelectedCells = [...selectedCells, newCell];
25003
- console.log("➡️ Added rule (rules)");
25004
24988
  }
25005
24989
  } else {
25006
24990
  if (isSelected) {
25007
24991
  newSelectedCells = selectedCells.filter((_, index) => index !== cellIndex);
25008
- console.log("➡️ Removed (user mode)");
25009
24992
  } else {
25010
24993
  const newCell = {
25011
24994
  rowKey,
@@ -25018,10 +25001,8 @@ const ResponsiveTable = (props) => {
25018
25001
  } else {
25019
25002
  newSelectedCells = [...selectedCells, newCell];
25020
25003
  }
25021
- console.log("➡️ Added X (user mode)");
25022
25004
  }
25023
25005
  }
25024
- console.log("📤 NEW STATE:", newSelectedCells.length);
25025
25006
  setSelectedCells(newSelectedCells);
25026
25007
  onCellsSelected?.(newSelectedCells);
25027
25008
  }
@@ -25283,7 +25264,7 @@ const ResponsiveTable = (props) => {
25283
25264
  const selectedCell = selectedCells[cellIndex];
25284
25265
  const cellColor = selectedCell?.value?.color || selectedCellColor;
25285
25266
  const cellType = selectedCell?.value?.type || "X";
25286
- if (cellType === "X" || cellType === "R" || cellType === "A" || cellType === "L") {
25267
+ if (cellType === "X" || cellType === "R" || cellType === "A") {
25287
25268
  return /* @__PURE__ */ jsx(
25288
25269
  Tag,
25289
25270
  {
@@ -25292,6 +25273,15 @@ const ResponsiveTable = (props) => {
25292
25273
  children: cellType
25293
25274
  }
25294
25275
  );
25276
+ } else if (cellType === "L") {
25277
+ return /* @__PURE__ */ jsx(
25278
+ Tag,
25279
+ {
25280
+ color: cellColor,
25281
+ style: { margin: -4, cursor: "not-allowed" },
25282
+ children: cellType
25283
+ }
25284
+ );
25295
25285
  }
25296
25286
  if (originalCellContent?.secondaryType) {
25297
25287
  return /* @__PURE__ */ jsx(Tag, { color: originalCellContent.secondaryColor, style: { margin: -4, cursor: "pointer" }, children: originalCellContent.secondaryType });