@indigina/ui-kit 1.1.409 → 1.1.410
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.
|
@@ -9321,13 +9321,18 @@ const getExportedExcelRows = (columns, data, gridColumns, translationMap) => {
|
|
|
9321
9321
|
for (const row of data) {
|
|
9322
9322
|
const rowCells = gridColumns.map((column) => {
|
|
9323
9323
|
const value = row[column.field];
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9327
|
-
|
|
9328
|
-
|
|
9329
|
-
|
|
9330
|
-
|
|
9324
|
+
switch (column.type) {
|
|
9325
|
+
case 'time':
|
|
9326
|
+
return { format: column.excelFormat, value: timeStringToExcelFraction(value) };
|
|
9327
|
+
case 'date':
|
|
9328
|
+
case 'dateLocal': {
|
|
9329
|
+
const format = column.excelFormat || KIT_DATE_FORMAT;
|
|
9330
|
+
return { format, value: value ? new Date(value) : undefined };
|
|
9331
|
+
}
|
|
9332
|
+
case 'dateTime':
|
|
9333
|
+
case 'dateTimeLocal': {
|
|
9334
|
+
const format = column.excelFormat || KIT_DATETIME_FORMAT_LONG;
|
|
9335
|
+
return { format, value: value ? new Date(value) : undefined };
|
|
9331
9336
|
}
|
|
9332
9337
|
}
|
|
9333
9338
|
return { value: gridCellService.createCellValue(column.type, column.field, row, translationMap) };
|