@fluxhub/fluxhub-lib 10.0.116 → 10.0.118

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,7 +5806,7 @@
5805
5806
 
5806
5807
  this.gridOptions.api.exportDataAsExcel(params);*/
5807
5808
  };
5808
- FHGridComponent.prototype.sendToClipboard = function (params, a) {
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
5812
  a.copySelectedRowsToClipboard(true);
@@ -5815,7 +5816,12 @@
5815
5816
  this.header_h = n;
5816
5817
  this.gridOptions.api.setHeaderHeight(this.header_h);
5817
5818
  if (!this.enable_paste) {
5818
- this.gridOptions.sendToClipboard = function (v) { _this.sendToClipboard(v, _this.gridOptions.api); };
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
+ };
5819
5825
  }
5820
5826
  };
5821
5827
  FHGridComponent.prototype.getRowNodeId = function (item) {