@trudb/tru-common-lib 0.2.341 → 0.2.342

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.
@@ -6347,6 +6347,7 @@ class TruDataGridClipboard {
6347
6347
  tableName = null;
6348
6348
  columnName = null;
6349
6349
  copiedCellData = null;
6350
+ copiedCellValue = null;
6350
6351
  copiedCellEntity = null;
6351
6352
  copiedCellParams = null;
6352
6353
  copiedRows = [];
@@ -6368,6 +6369,7 @@ class TruDataGridClipboard {
6368
6369
  this.columnName = columnName;
6369
6370
  this.copiedCellParams = params;
6370
6371
  this.copiedCellData = copiedCellData;
6372
+ this.copiedCellValue = copiedCellData[columnName].$;
6371
6373
  this.copiedCellEntity = copiedCellEntity;
6372
6374
  try {
6373
6375
  await navigator.clipboard.writeText(params.value);
@@ -6390,7 +6392,7 @@ class TruDataGridClipboard {
6390
6392
  return;
6391
6393
  }
6392
6394
  else {
6393
- pastedCell.setProperty(columnName, this.copiedCellEntity?.getProperty(columnName));
6395
+ pastedCellData[params.colDef?.field].$ = this.copiedCellValue;
6394
6396
  params.api.refreshCells({ force: true });
6395
6397
  }
6396
6398
  };