@trudb/tru-common-lib 0.2.172 → 0.2.174

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.
@@ -6327,15 +6327,15 @@ class TruDataGridClipboard {
6327
6327
  this.formatter = formatter;
6328
6328
  this.uiNotification = uiNotification;
6329
6329
  }
6330
- formatCellValue = (controlConfig, propertyConfig, value) => {
6330
+ formatCellValue = (controlConfig, propertyConfig, entity, value) => {
6331
6331
  if (value === null || typeof value === 'undefined')
6332
6332
  return '';
6333
6333
  if (propertyConfig.typeName === 'rich-text-unbounded')
6334
6334
  return this.util.htmlToPlainText(value);
6335
6335
  else if (propertyConfig.typeName === 'foreign-key' || propertyConfig.typeName === 'user-foreign-key')
6336
- return this.formatter.excelFormula(propertyConfig.formatter(controlConfig).hid(controlConfig.$entity));
6336
+ return this.formatter.excelFormula(propertyConfig.formatter(controlConfig).hid(entity));
6337
6337
  else
6338
- return this.formatter.excelFormula(propertyConfig.formatter(propertyConfig));
6338
+ return this.formatter.excelFormula(propertyConfig.formatter(controlConfig));
6339
6339
  };
6340
6340
  copyCell = async (params, tableName, columnName, copiedCellData, copiedCellEntity) => {
6341
6341
  this.tableName = tableName;
@@ -6384,7 +6384,7 @@ class TruDataGridClipboard {
6384
6384
  propertyName !== 'rowver' &&
6385
6385
  propertyName !== 'Merge_Data_Set' &&
6386
6386
  !propertyName.startsWith('o'))
6387
- rowPropertyValues.push(this.formatCellValue(copiedRow[propertyName], copiedRow[propertyName].property, copiedRow.$entity.getProperty(propertyName)));
6387
+ rowPropertyValues.push(this.formatCellValue(copiedRow[propertyName], copiedRow[propertyName].property, copiedRow.$entity, copiedRow.$entity.getProperty(propertyName)));
6388
6388
  });
6389
6389
  multiRowString += rowPropertyValues.join('\t') + '\n';
6390
6390
  });