cilog-lib 1.13.21 → 1.13.23

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.
@@ -644,7 +644,7 @@ class ExportService {
644
644
  if (isNaN(d.getTime()))
645
645
  return null;
646
646
  const safeDate = new Date(d.getTime() + 12 * 60 * 60 * 1000);
647
- return new Date(safeDate.getFullYear(), safeDate.getMonth() + 1, safeDate.getDate(), 12, 0, 0);
647
+ return new Date(safeDate.getFullYear(), safeDate.getMonth(), safeDate.getDate(), 12, 0, 0);
648
648
  default:
649
649
  return cell.value;
650
650
  }
@@ -1760,27 +1760,7 @@ class CilogGridComponent {
1760
1760
  fontWeight: params.data[params.colDef.field].bold ? 'bold' : null,
1761
1761
  fontStyle: params.data[params.colDef.field].italic ? 'italic' : null
1762
1762
  };
1763
- },
1764
- comparator: (valueA, valueB, nodeA, nodeB, isDescending) => {
1765
- if (!valueA && !valueB)
1766
- return 0;
1767
- if (!valueA)
1768
- return -1;
1769
- if (!valueB)
1770
- return 1;
1771
- switch (col.type) {
1772
- case ColType.Number:
1773
- return valueA - valueB;
1774
- case ColType.Dropdown:
1775
- const labelA = valueA[col.options['optionLabel']];
1776
- const labelB = valueB[col.options['optionLabel']];
1777
- return labelA.localeCompare(labelB);
1778
- case ColType.Date:
1779
- return new Date(valueA).getTime() - new Date(valueB).getTime();
1780
- default:
1781
- return String(valueA).localeCompare(String(valueB));
1782
- }
1783
- },
1763
+ }
1784
1764
  };
1785
1765
  cols.push(colDef);
1786
1766
  });