@trudb/tru-common-lib 0.2.183 → 0.2.185
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.
|
@@ -6328,8 +6328,6 @@ class TruDataGridClipboard {
|
|
|
6328
6328
|
this.uiNotification = uiNotification;
|
|
6329
6329
|
}
|
|
6330
6330
|
formatCellValue = (controlConfig, propertyConfig, entity, value) => {
|
|
6331
|
-
if (value === null || typeof value === 'undefined')
|
|
6332
|
-
return '';
|
|
6333
6331
|
if (propertyConfig.typeName === 'rich-text-unbounded')
|
|
6334
6332
|
return this.util.htmlToPlainText(value);
|
|
6335
6333
|
else if (propertyConfig.typeName === 'foreign-key' || propertyConfig.typeName === 'user-foreign-key')
|
|
@@ -6376,19 +6374,11 @@ class TruDataGridClipboard {
|
|
|
6376
6374
|
this.copiedRows.forEach((copiedRow, index) => {
|
|
6377
6375
|
let rowPropertyValues = [];
|
|
6378
6376
|
let properties = copiedRow.$entity.entityType.getPropertyNames();
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
return acc;
|
|
6383
|
-
}, []);
|
|
6384
|
-
propertiesFilteredByColDef
|
|
6385
|
-
.forEach((propertyName) => {
|
|
6377
|
+
columnDefs
|
|
6378
|
+
.forEach((columnDef) => {
|
|
6379
|
+
let propertyName = columnDef.field;
|
|
6386
6380
|
let propertyConfig = copiedRow[propertyName]?.property;
|
|
6387
|
-
if (propertyConfig
|
|
6388
|
-
propertyName !== tableName + 'Ref' &&
|
|
6389
|
-
propertyName !== 'rowver' &&
|
|
6390
|
-
propertyName !== 'Merge_Data_Set' &&
|
|
6391
|
-
!propertyName.startsWith('o'))
|
|
6381
|
+
if (propertyConfig)
|
|
6392
6382
|
rowPropertyValues.push(this.formatCellValue(copiedRow[propertyName], copiedRow[propertyName].property, copiedRow.$entity, copiedRow.$entity.getProperty(propertyName)));
|
|
6393
6383
|
});
|
|
6394
6384
|
multiRowString += rowPropertyValues.join('\t') + '\n';
|