@cdmx/wappler_ag_grid 1.5.5 → 1.5.6

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
@@ -767,7 +767,7 @@ dmx.Component('ag-grid', {
767
767
  const matchingType = ctypes.find((ct) => ct.field === key);
768
768
  return matchingType ? matchingType.type : null;
769
769
  }
770
- function detectDataType(values) {
770
+ function detectDataType(values) {
771
771
  let hasDate = false;
772
772
  let hasNumber = false;
773
773
  let hasText = false;
@@ -778,7 +778,7 @@ dmx.Component('ag-grid', {
778
778
  } else if (!isNaN(Number(value)) && !(typeof value === "string")) {
779
779
  hasNumber = true;
780
780
  } else if (((new Date(value)).getTime() > 0) && (value.includes('-') || value.includes('/'))) {
781
- hasDate = true;
781
+ hasDate = true;
782
782
  } else {
783
783
  hasText = true;
784
784
  }
@@ -955,7 +955,7 @@ dmx.Component('ag-grid', {
955
955
  // Assuming rowData is an array of objects
956
956
  const values = rowData.map(row => row[key]);
957
957
  const nonNullValues = values.filter(value => value !== null);
958
- const dataType = (ctypes.length>0 ? getCustomDataTypes(key) : detectDataType(nonNullValues));
958
+ const dataType = (ctypes.length > 0 && getCustomDataTypes(key) !== null) ? getCustomDataTypes(key) : detectDataType(nonNullValues);
959
959
  let filter;
960
960
  let valueGetter;
961
961
  let filterValueGetter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",