@trudb/tru-common-lib 0.2.164 → 0.2.166

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.
@@ -5967,7 +5967,7 @@ class TruDataGridClipboard {
5967
5967
  this.util = util;
5968
5968
  this.uiNotification = uiNotification;
5969
5969
  }
5970
- formatCellValue = (value, propertyConfig) => {
5970
+ formatCellValue = (propertyConfig, value) => {
5971
5971
  if (value === null || typeof value === 'undefined')
5972
5972
  return '';
5973
5973
  if (propertyConfig.typeName === 'rich-text-unbounded')
@@ -6012,7 +6012,7 @@ class TruDataGridClipboard {
6012
6012
  let multiRowString = '';
6013
6013
  this.copiedRows.forEach((copiedRow, index) => {
6014
6014
  let rowPropertyValues = [];
6015
- let properties = copiedRow.$entiy.entityType.getPropertyNames();
6015
+ let properties = copiedRow.$entity.entityType.getPropertyNames();
6016
6016
  properties
6017
6017
  .forEach((propertyName) => {
6018
6018
  if (propertyName !== tableName + 'Ref' &&
@@ -6131,7 +6131,7 @@ class TruDataGridPkeyCellRenderer {
6131
6131
  onCopy = (event) => {
6132
6132
  let selectedRows = this.params.api.getSelectedRows();
6133
6133
  if (selectedRows.length) {
6134
- let copiedRowData = selectedRows.map((row) => row.$entity);
6134
+ let copiedRowData = selectedRows;
6135
6135
  this.dataGridClipboard.copyRow(this.params.context.grid.config.tableName, copiedRowData);
6136
6136
  }
6137
6137
  };