@cdmx/wappler_ag_grid 1.6.4 → 1.7.0

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 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:
@@ -1268,7 +1268,7 @@
1268
1268
  {
1269
1269
  "name": "cellsEditable",
1270
1270
  "attribute": "editable_fields",
1271
- "title": "Editable Cells",
1271
+ "title": "Editable Fields",
1272
1272
  "type": "text",
1273
1273
  "defaultValue": "",
1274
1274
  "help": "Makes Specific cells editable. Values should be comma separated fields."
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.$addBinding(data_source, (function (e) {
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.$addBinding(data_source, (function (e) {
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.$addBinding(data_source, (function (e) {
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
- render: function(node) {
1899
+ init: function(node) {
1899
1900
  if (this.$node) {
1900
1901
  this.$parse();
1901
1902
  }
1902
1903
  },
1903
1904
 
1904
- update: function (props) {
1905
+ requestUpdate: function (props, oldValue) {
1905
1906
  this.set('count', this.props.data.length);
1906
- if (!dmx.equal(this.props.data, props.data) && !this.props.noload) {
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, 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, 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.6.4",
3
+ "version": "1.7.0",
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.0.3",
17
+ "ag-grid-community": "~31.2.1",
18
18
  "exceljs": "4.4.x",
19
19
  "papaparse": "5.4.x"
20
20
  },