@fluxhub/fluxhub-lib 10.0.115 → 10.0.117

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.
@@ -5316,6 +5316,7 @@
5316
5316
  return item.ord;
5317
5317
  },
5318
5318
  };
5319
+ this.last_copy = '';
5319
5320
  this.b_init = false;
5320
5321
  this.b_init1 = false;
5321
5322
  this.errorMsg = "";
@@ -5805,16 +5806,22 @@
5805
5806
 
5806
5807
  this.gridOptions.api.exportDataAsExcel(params);*/
5807
5808
  };
5808
- FHGridComponent.prototype.sendToClipboard = function (params) {
5809
+ FHGridComponent.prototype.sendToClipboard = function (params, a, lc) {
5809
5810
  console.log('send to clipboard called with data:');
5810
5811
  console.log(params.data);
5811
- this.gridOptions.api.copySelectedRowsToClipboard(true);
5812
+ a.copySelectedRowsToClipboard(true);
5812
5813
  };
5813
5814
  FHGridComponent.prototype.setHeaderHeight = function (n) {
5815
+ var _this = this;
5814
5816
  this.header_h = n;
5815
5817
  this.gridOptions.api.setHeaderHeight(this.header_h);
5816
5818
  if (!this.enable_paste) {
5817
- this.gridOptions.sendToClipboard = this.sendToClipboard;
5819
+ this.gridOptions.sendToClipboard = function (v) {
5820
+ if (_this.last_copy == v.data)
5821
+ return;
5822
+ _this.sendToClipboard(v, _this.gridOptions.api, _this.last_copy);
5823
+ _this.last_copy = v.data;
5824
+ };
5818
5825
  }
5819
5826
  };
5820
5827
  FHGridComponent.prototype.getRowNodeId = function (item) {