@fluxhub/fluxhub-lib 10.0.116 → 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.
@@ -7889,6 +7889,7 @@ class FHGridComponent {
7889
7889
  return item.ord;
7890
7890
  },
7891
7891
  };
7892
+ this.last_copy = '';
7892
7893
  this.b_init = false;
7893
7894
  this.b_init1 = false;
7894
7895
  this.errorMsg = "";
@@ -8373,7 +8374,7 @@ class FHGridComponent {
8373
8374
 
8374
8375
  this.gridOptions.api.exportDataAsExcel(params);*/
8375
8376
  }
8376
- sendToClipboard(params, a) {
8377
+ sendToClipboard(params, a, lc) {
8377
8378
  console.log('send to clipboard called with data:');
8378
8379
  console.log(params.data);
8379
8380
  a.copySelectedRowsToClipboard(true);
@@ -8382,7 +8383,8 @@ class FHGridComponent {
8382
8383
  this.header_h = n;
8383
8384
  this.gridOptions.api.setHeaderHeight(this.header_h);
8384
8385
  if (!this.enable_paste) {
8385
- this.gridOptions.sendToClipboard = (v) => { this.sendToClipboard(v, this.gridOptions.api); };
8386
+ this.gridOptions.sendToClipboard = (v) => { if (this.last_copy == v.data)
8387
+ return; this.sendToClipboard(v, this.gridOptions.api, this.last_copy); this.last_copy = v.data; };
8386
8388
  }
8387
8389
  }
8388
8390
  getRowNodeId(item) {