@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.
Files changed (2) hide show
  1. package/dmx-ag-grid.js +3 -3
  2. 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 (!isNaN(Date.parse(value))) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",