@trudb/tru-common-lib 0.2.163 → 0.2.164

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.
@@ -6008,18 +6008,18 @@ class TruDataGridClipboard {
6008
6008
  copyRow = async (tableName, copiedRows) => {
6009
6009
  this.tableName = tableName;
6010
6010
  this.copiedRows = copiedRows;
6011
- if (this.copiedRows.length) {
6011
+ if (copiedRows.length) {
6012
6012
  let multiRowString = '';
6013
6013
  this.copiedRows.forEach((copiedRow, index) => {
6014
6014
  let rowPropertyValues = [];
6015
- let properties = copiedRow.entityType.getPropertyNames();
6015
+ let properties = copiedRow.$entiy.entityType.getPropertyNames();
6016
6016
  properties
6017
6017
  .forEach((propertyName) => {
6018
6018
  if (propertyName !== tableName + 'Ref' &&
6019
6019
  propertyName !== 'rowver' &&
6020
6020
  propertyName !== 'Merge_Data_Set' &&
6021
6021
  !propertyName.startsWith('o'))
6022
- rowPropertyValues.push(this.formatCellValue(copiedRow[propertyName].property, copiedRow.getProperty(propertyName)));
6022
+ rowPropertyValues.push(this.formatCellValue(copiedRow[propertyName].property, copiedRow.$entity.getProperty(propertyName)));
6023
6023
  });
6024
6024
  multiRowString += rowPropertyValues.join('\t') + '\n';
6025
6025
  });
@@ -6043,7 +6043,7 @@ class TruDataGridClipboard {
6043
6043
  if (this.copiedRows.length) {
6044
6044
  this.copiedRows.forEach((copiedRow, index) => {
6045
6045
  let selectedRow = selectedRows[index];
6046
- let properties = copiedRow.entityType.getPropertyNames();
6046
+ let properties = copiedRow.$entity.entityType.getPropertyNames();
6047
6047
  properties
6048
6048
  .forEach((propertyName) => {
6049
6049
  if (typeof selectedRow.$entity.setProperty !== 'undefined' &&
@@ -6052,7 +6052,7 @@ class TruDataGridClipboard {
6052
6052
  propertyName !== 'rowver' &&
6053
6053
  propertyName !== 'Merge_Data_Set' &&
6054
6054
  !propertyName.startsWith('o'))
6055
- selectedRow.$entity.setProperty(propertyName, copiedRow.getProperty(propertyName));
6055
+ selectedRow.$entity.setProperty(propertyName, copiedRow.$entity.getProperty(propertyName));
6056
6056
  });
6057
6057
  });
6058
6058
  gridApi.refreshCells({ force: true });
@@ -7656,7 +7656,7 @@ class TruDataGrid {
7656
7656
  else if (params.column.isPinned() && event.ctrlKey && event.code === 'KeyC') {
7657
7657
  let selectedRows = this.api.getSelectedRows();
7658
7658
  if (selectedRows.length)
7659
- this.dataGridClipboard.copyRow(this.config.tableName, selectedRows.map((row) => row.$entity));
7659
+ this.dataGridClipboard.copyRow(this.config.tableName, selectedRows);
7660
7660
  }
7661
7661
  else if (params.column.isPinned() && event.ctrlKey && event.code === 'KeyV') {
7662
7662
  this.dataGridClipboard.pasteRow(this.api, this.config, this.api.getSelectedRows());