@cdmx/wappler_ag_grid 1.6.5 → 1.7.1
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/README.md +2 -0
- package/dmx-ag-grid.js +9 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#### Developed and Maintained by: Roney Dsilva
|
|
2
|
+
#Notes: 1.7.0 is released with AC2 support and AC1 support has been deprecated in this release. AG Grid upted to 31.2
|
|
3
|
+
|
|
2
4
|
# AG Grid Module Documentation
|
|
3
5
|
|
|
4
6
|
The AG Grid module allows you to create a flexible and customizable data grid with various options and properties. Below, you'll find the list of properties and options available for configuring the AG Grid module:
|
package/dmx-ag-grid.js
CHANGED
|
@@ -844,7 +844,7 @@ dmx.Component('ag-grid', {
|
|
|
844
844
|
const output = change.output;
|
|
845
845
|
const area = change.area;
|
|
846
846
|
let dataArray;
|
|
847
|
-
this.$
|
|
847
|
+
this.$watch(data_source, (function (e) {
|
|
848
848
|
dataArray = e;
|
|
849
849
|
}));
|
|
850
850
|
keyLookup[change.field] = { dataArray, property, output, area };
|
|
@@ -903,7 +903,7 @@ dmx.Component('ag-grid', {
|
|
|
903
903
|
const output = change.output;
|
|
904
904
|
const area = change.area;
|
|
905
905
|
let dataArray;
|
|
906
|
-
this.$
|
|
906
|
+
this.$watch(data_source, (function (e) {
|
|
907
907
|
dataArray = e;
|
|
908
908
|
}));
|
|
909
909
|
keyLookup[change.field] = { dataArray, property, output, area };
|
|
@@ -950,7 +950,7 @@ dmx.Component('ag-grid', {
|
|
|
950
950
|
const property = change.property;
|
|
951
951
|
const output = change.output;
|
|
952
952
|
let dataArray;
|
|
953
|
-
this.$
|
|
953
|
+
this.$watch(data_source, (function (e) {
|
|
954
954
|
dataArray = e;
|
|
955
955
|
}));
|
|
956
956
|
keyLookup[change.field] = { dataArray, property, output };
|
|
@@ -1698,6 +1698,7 @@ dmx.Component('ag-grid', {
|
|
|
1698
1698
|
const topbar = gridElement.querySelector('.' + options.topbar_class);
|
|
1699
1699
|
const topbarHeight = (topbar ? topbar.getBoundingClientRect().height : 0) + options.fixed_top_offset;
|
|
1700
1700
|
const headerPos = (topbar ? topbar.getBoundingClientRect().bottom : 0) + options.fixed_header_offset;
|
|
1701
|
+
if (!header) return;
|
|
1701
1702
|
if (window.scrollY > headerPos) {
|
|
1702
1703
|
header.style.position = 'fixed';
|
|
1703
1704
|
header.style.top = `${topbarHeight}px`;
|
|
@@ -1895,23 +1896,23 @@ dmx.Component('ag-grid', {
|
|
|
1895
1896
|
row_action_button10: Event
|
|
1896
1897
|
},
|
|
1897
1898
|
|
|
1898
|
-
|
|
1899
|
+
init: function(node) {
|
|
1899
1900
|
if (this.$node) {
|
|
1900
1901
|
this.$parse();
|
|
1901
1902
|
}
|
|
1902
1903
|
},
|
|
1903
1904
|
|
|
1904
|
-
|
|
1905
|
+
requestUpdate: function (props, oldValue) {
|
|
1905
1906
|
this.set('count', this.props.data.length);
|
|
1906
|
-
if (!dmx.equal(this.props.data,
|
|
1907
|
+
if (!dmx.equal(this.props.data, oldValue?.data) && !this.props.noload) {
|
|
1907
1908
|
let gridInstance = this.refreshGrid();
|
|
1908
1909
|
this.set('gridInstance', gridInstance);
|
|
1909
1910
|
}
|
|
1910
|
-
if (!dmx.equal(this.props.dark_mode,
|
|
1911
|
+
if (!dmx.equal(this.props.dark_mode, oldValue?.dark_mode)) {
|
|
1911
1912
|
let gridInstance = this.refreshGrid();
|
|
1912
1913
|
this.set('gridInstance', gridInstance);
|
|
1913
1914
|
}
|
|
1914
|
-
if (!dmx.equal(this.props.cfilters,
|
|
1915
|
+
if (!dmx.equal(this.props.cfilters, oldValue?.cfilters)){
|
|
1915
1916
|
let gridInstance = this.get('gridInstance');
|
|
1916
1917
|
if (gridInstance && this.props.cfilters && this.props.cfilters.length > 0) {
|
|
1917
1918
|
var filterModel = {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdmx/wappler_ag_grid",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.1",
|
|
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": "~31.
|
|
17
|
+
"ag-grid-community": "~31.2.1",
|
|
18
18
|
"exceljs": "4.4.x",
|
|
19
19
|
"papaparse": "5.4.x"
|
|
20
20
|
},
|