@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.
- package/app_connect/components.hjson +1 -1
- package/dmx-ag-grid.js +2 -24
- package/package.json +1 -1
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
|
},
|