@cdmx/wappler_ag_grid 1.8.9 → 1.8.11

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.
@@ -3540,7 +3540,7 @@
3540
3540
  }
3541
3541
  },
3542
3542
  {
3543
- "name": "dmx-ag-grid-export-filename",
3543
+ "name": "dmx-ag-grid-export-csv-filename",
3544
3544
  "attributeStartsWith": "dmx-bind",
3545
3545
  "attribute": "export_csv_filename",
3546
3546
  "title": "Export CSV Filename",
@@ -3551,8 +3551,7 @@
3551
3551
  "groupIcon": "fa fa-lg fa-cubes",
3552
3552
  "defaultValue": false,
3553
3553
  "show": [
3554
- "exportCsvFilename",
3555
- "exportPdfFilename"
3554
+ "exportCsvFilename"
3556
3555
  ],
3557
3556
  "noChangeOnHide": true,
3558
3557
  "groupEnabler": true,
@@ -3568,7 +3567,29 @@
3568
3567
  "help": "Export CSV filename.",
3569
3568
  "defaultValue": "export.csv",
3570
3569
  "initDisplay": "none"
3571
- },
3570
+ }
3571
+ ],
3572
+ "allowedOn": {
3573
+ "dmx-ag-grid": true
3574
+ }
3575
+ },
3576
+ {
3577
+ "name": "dmx-ag-grid-export-pdf-filename",
3578
+ "attributeStartsWith": "dmx-bind",
3579
+ "attribute": "export_pdf_filename",
3580
+ "title": "Export PDF Filename",
3581
+ "type": "boolean",
3582
+ "display": "fieldset",
3583
+ "icon": "fa fa-lg fa-chevron-right",
3584
+ "groupTitle": "Grid Config",
3585
+ "groupIcon": "fa fa-lg fa-cubes",
3586
+ "defaultValue": false,
3587
+ "show": [
3588
+ "exportPdfFilename"
3589
+ ],
3590
+ "noChangeOnHide": true,
3591
+ "groupEnabler": true,
3592
+ "children": [
3572
3593
  {
3573
3594
  "name": "exportPdfFilename",
3574
3595
  "attributeStartsWith": "dmx-bind",
package/dmx-ag-grid.js CHANGED
@@ -844,10 +844,10 @@ dmx.Component('ag-grid', {
844
844
  if (params.value) {
845
845
  const date = new Date(params.value)
846
846
  if (timezone) {
847
- const options = {
848
- timeZone: timezone,
847
+ const tzOptions = {
848
+ timeZone: timezone
849
849
  };
850
- const convertedTimestamp = date.toLocaleString(options.date_locale, options);
850
+ const convertedTimestamp = date.toLocaleString('en-GB', tzOptions);
851
851
  const [datePart, timePart] = convertedTimestamp.split(', ');
852
852
  const [day, month, year] = datePart.split('/');
853
853
  const [hours, minutes, seconds] = timePart.split(':');
@@ -863,11 +863,11 @@ dmx.Component('ag-grid', {
863
863
  }
864
864
  // comparator for case-insensitive sorting
865
865
  const caseInsensitiveComparator = (valueA, valueB) => {
866
- if (valueA === null || valueA === undefined) {
867
- return valueB === null || valueB === undefined ? 0 : -1;
866
+ if (valueA === null || valueA === undefined || valueA === '' || typeof valueA === 'number') {
867
+ return valueB === null || valueB === undefined || valueB === '' || typeof valueB === 'number' ? 0 : -1;
868
868
  }
869
869
 
870
- if (valueB === null || valueB === undefined) {
870
+ if (valueB === null || valueB === undefined || valueB === '' || typeof valueB === 'number') {
871
871
  return 1;
872
872
  }
873
873
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.8.9",
3
+ "version": "1.8.11",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "ag-grid"
15
15
  ],
16
16
  "dependencies": {
17
- "ag-grid-community": "~32.0.2",
17
+ "ag-grid-community": "~32.1.0",
18
18
  "exceljs": "4.4.x",
19
19
  "papaparse": "5.4.x"
20
20
  },
@@ -22,4 +22,5 @@
22
22
  "build": "rollup --config",
23
23
  "publish-dry-run": "npm publish ./dist --access public --dry-run"
24
24
  }
25
- }
25
+ }
26
+