@cdmx/wappler_ag_grid 0.7.3 → 0.7.5
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/dmx-ag-grid.js +3 -3
- package/package.json +1 -1
package/dmx-ag-grid.js
CHANGED
|
@@ -413,9 +413,9 @@ dmx.Component('ag-grid', {
|
|
|
413
413
|
for (const value of values) {
|
|
414
414
|
if (value === null || value === undefined || value === '') {
|
|
415
415
|
hasText = true;
|
|
416
|
-
} else if (!isNaN(Number(value))) {
|
|
416
|
+
} else if (!isNaN(Number(value)) && !(typeof value === "string")) {
|
|
417
417
|
hasNumber = true;
|
|
418
|
-
} else if (
|
|
418
|
+
} else if (moment(value, moment.ISO_8601, true).isValid()) {
|
|
419
419
|
hasDate = true;
|
|
420
420
|
} else {
|
|
421
421
|
hasText = true;
|
|
@@ -701,7 +701,7 @@ dmx.Component('ag-grid', {
|
|
|
701
701
|
evaluateCondition(params.data[left], operator, right)
|
|
702
702
|
) {
|
|
703
703
|
if (area === 'text') {
|
|
704
|
-
return { color: customColor, fontStyle: font };
|
|
704
|
+
return { color: customColor, fontStyle: font, fontWeight: (font==='bold'?'bold':null) };
|
|
705
705
|
} else if (area === 'cell') {
|
|
706
706
|
return { backgroundColor: customColor, fontStyle: font };
|
|
707
707
|
}
|