@cdmx/wappler_ag_grid 2.0.15 → 2.0.16

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 -0
  2. package/package.json +1 -1
package/dmx-ag-grid.js CHANGED
@@ -1313,6 +1313,8 @@ dmx.Component('ag-grid', {
1313
1313
  const amountFieldsArray = options.amount_fields.split(',');
1314
1314
  if (amountFieldsArray.includes(key)) {
1315
1315
  valueFormatter = function (params) {
1316
+ const num = Number(params.value);
1317
+ if (isNaN(num)) return '-';
1316
1318
  if (params.value != null) {
1317
1319
  return Number(params.value).toLocaleString(options.date_locale, {
1318
1320
  minimumFractionDigits: options.amount_field_precision,
@@ -1325,6 +1327,7 @@ dmx.Component('ag-grid', {
1325
1327
  } else {
1326
1328
  valueFormatter = blankOrNullValueFormatter;
1327
1329
  }
1330
+ comparator = options.ci_sort ? caseInsensitiveComparator : undefined;
1328
1331
  } else if (dataType === 'date') {
1329
1332
  filter = 'agDateColumnFilter';
1330
1333
  valueFormatter = (params) => formatTime(params, timezone);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid v34 - Advanced data grid with enhanced editing, filtering, and tree data capabilities.",
6
6
  "license": "MIT",