cilog-lib 1.13.22 → 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.
- package/fesm2022/cilog-lib.mjs +1 -21
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -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
|
});
|