@cdmx/wappler_ag_grid 0.1.7 → 0.1.9

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.
@@ -133,7 +133,7 @@
133
133
  "attribute": "dmx-bind:suppressRowDeselection",
134
134
  "title": "Supress Row Deselection",
135
135
  "type": "boolean",
136
- "defaultValue": true,
136
+ "defaultValue": false,
137
137
  "help": "Specifies if rows can be deselected"
138
138
  },
139
139
  {
package/dmx-ag-grid.js CHANGED
@@ -115,30 +115,11 @@ dmx.Component('ag-grid', {
115
115
  let columnDefs = [];
116
116
  let exportToCSV = this.props.exportToCSV;
117
117
 
118
-
119
118
  this.$node.innerHTML = `<div id=${gridId}-grid class="${grid_theme}"></div>`;
120
119
  if (!rowData || rowData.length === 0) {
121
120
  console.error('No row data provided.');
122
121
  return;
123
122
  }
124
- // function formatValue(value, key, dataType, timezone) {
125
- // params = {"value":value}
126
- // if (dataType === 'number') {
127
- // if (/(amount|amt)$/.test(key)) {
128
- // return Number(value).toLocaleString("en-US", {
129
- // minimumFractionDigits: 2,
130
- // maximumFractionDigits: 2,
131
- // });
132
- // } else {
133
- // return blankOrNullValueFormatter(params);
134
- // }
135
- // } else if (dataType === 'date') {
136
- // return formatTime(params, timezone);
137
- // }
138
- // else {
139
- // return blankOrNullValueFormatter(params);
140
- // }
141
- // }
142
123
  window.cellClickEvent = (columnName, value, idValue) => {
143
124
  this.set('fields', {"field": columnName, "data": value});
144
125
  this.set('id', idValue);
@@ -493,6 +474,8 @@ dmx.Component('ag-grid', {
493
474
  suppressClipboardPaste: this.props.suppressClipboardPaste,
494
475
  suppressScrollOnNewData: this.props.suppressScrollOnNewData,
495
476
  suppressPropertyNamesCheck: this.props.suppressPropertyNamesCheck,
477
+ suppressRowDeselection: this.props.suppressRowDeselection,
478
+ columnHoverHighlight: this.props.columnHoverHighlight,
496
479
  localeText: this.props.localeText,
497
480
  components: {
498
481
  clickCellRenderer: clickCellRenderer,
@@ -604,11 +587,6 @@ dmx.Component('ag-grid', {
604
587
 
605
588
  update: function (props) {
606
589
  if (!dmx.equal(this.props.data, props.data)) {
607
- this.set("id", {
608
- status: 0,
609
- message: 'tedt',
610
- response: null
611
- })
612
590
  this.refreshGrid();
613
591
  }
614
592
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdmx/wappler_ag_grid",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "type": "module",
5
5
  "description": "App Connect module for AG Grid Table Generation",
6
6
  "license": "MIT",