@indigina/ui-kit 1.1.644 → 1.1.645

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.
@@ -16890,7 +16890,7 @@ class KitGridExportComponent {
16890
16890
  const transformedRow = {};
16891
16891
  for (const col of this.exportedColumns) {
16892
16892
  const title = this.translateService.instant(col.title);
16893
- transformedRow[title] = this.gridCellService.createCellValue(col.type, col.field, row, this.translationMap(), '', this.gridCellValueTransformMap());
16893
+ transformedRow[title] = this.getCsvCellValue(col, row);
16894
16894
  }
16895
16895
  return transformedRow;
16896
16896
  });
@@ -16904,6 +16904,13 @@ class KitGridExportComponent {
16904
16904
  },
16905
16905
  }));
16906
16906
  }
16907
+ getCsvCellValue(column, row) {
16908
+ if (column.type === 'number' && !(column.field in this.translationMap())) {
16909
+ const rawValue = this.gridCellService.getCellValue(row, column.field);
16910
+ return (this.gridCellValueTransformMap()[column.field]?.(rawValue) ?? rawValue);
16911
+ }
16912
+ return this.gridCellService.createCellValue(column.type, column.field, row, this.translationMap(), '', this.gridCellValueTransformMap());
16913
+ }
16907
16914
  onExportXML() {
16908
16915
  return new Promise((resolve, reject) => this.getExportedData()().subscribe({
16909
16916
  next: ({ data }) => {