@indigina/ui-kit 1.1.205 → 1.1.206
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.
|
@@ -8832,7 +8832,10 @@ class KitGridCellService {
|
|
|
8832
8832
|
}
|
|
8833
8833
|
}
|
|
8834
8834
|
getNestedGridCellValue(dataItem, field) {
|
|
8835
|
-
|
|
8835
|
+
const value = field.split('.').reduce((acc, key) => acc !== null && typeof acc === 'object' && key in acc
|
|
8836
|
+
? acc[key]
|
|
8837
|
+
: undefined, dataItem);
|
|
8838
|
+
return value === 0 ? 0 : value || '';
|
|
8836
8839
|
}
|
|
8837
8840
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: KitGridCellService, deps: [{ token: i1$b.TranslateService }, { token: i1$1.DecimalPipe }, { token: i1$1.DatePipe }, { token: KIT_GRID_CELL_DATE_FORMAT_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8838
8841
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: KitGridCellService }); }
|