@indigina/ui-kit 1.1.427 → 1.1.428
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.
|
@@ -9500,11 +9500,14 @@ class KitGridCellService {
|
|
|
9500
9500
|
return value;
|
|
9501
9501
|
}
|
|
9502
9502
|
formatDateWithUserTimezone(value, format) {
|
|
9503
|
+
if (!value) {
|
|
9504
|
+
return null;
|
|
9505
|
+
}
|
|
9503
9506
|
return this.datePipe.transform(new Intl.DateTimeFormat('en-GB', {
|
|
9504
9507
|
timeZone: this.userState.data?.namedTimeZone ?? 'UTC',
|
|
9505
9508
|
dateStyle: 'medium',
|
|
9506
|
-
timeStyle: '
|
|
9507
|
-
}).format(new Date(value)), format
|
|
9509
|
+
timeStyle: 'medium',
|
|
9510
|
+
}).format(new Date(value)), format);
|
|
9508
9511
|
}
|
|
9509
9512
|
getNestedGridCellValue(dataItem, field) {
|
|
9510
9513
|
const value = field.split('.').reduce((acc, key) => acc !== null && typeof acc === 'object' && key in acc
|