@cdmx/wappler_ag_grid 1.8.8 → 1.8.10

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 +8 -7
  2. package/package.json +1 -1
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(':');
@@ -1592,6 +1592,11 @@ dmx.Component('ag-grid', {
1592
1592
  },
1593
1593
  onGridReady: (params) => {
1594
1594
  const columnApi = params.api;
1595
+ if (options.loading_overlay) {
1596
+ setTimeout(() => {
1597
+ columnApi.setGridOption("loading", false)
1598
+ }, options.loading_overlay_duration);
1599
+ }
1595
1600
  if (options.csort && options.csort.length > 0) {
1596
1601
  let sortModel = options.csort.map(function(sortItem, index) {
1597
1602
  return {
@@ -1764,11 +1769,7 @@ dmx.Component('ag-grid', {
1764
1769
  gridInstance.setGridOption('rowData', rowData)
1765
1770
  if (options.loading_overlay) {
1766
1771
  gridInstance.setGridOption("loading", true)
1767
- setTimeout(() => {
1768
- gridInstance.hideOverlay()
1769
- }, options.loading_overlay_duration);
1770
1772
  }
1771
-
1772
1773
  if (options.cfilters && options.cfilters.length > 0) {
1773
1774
  var filterModel = {};
1774
1775
  const customFilters = options.cfilters
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "1.8.8",
3
+ "version": "1.8.10",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation.",
6
6
  "license": "MIT",