@smartbit4all/ng-client 4.1.21 → 4.1.23

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.
@@ -4692,6 +4692,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImpo
4692
4692
  type: Injectable
4693
4693
  }] });
4694
4694
 
4695
+ Date.prototype.toJSON = function () {
4696
+ return moment(this).format();
4697
+ };
4695
4698
  var SmartFormWidgetWidth;
4696
4699
  (function (SmartFormWidgetWidth) {
4697
4700
  SmartFormWidgetWidth[SmartFormWidgetWidth["SMALL"] = 150] = "SMALL";
@@ -12341,14 +12344,20 @@ class SmartGridComponent {
12341
12344
  if (row.icons[col]) {
12342
12345
  return;
12343
12346
  }
12344
- /* if (col.includes('.')) {
12345
- let pathArray = col.split('.');
12346
- let colValue = row.data;
12347
- pathArray.map((path) => {
12348
- colValue = colValue[path];
12349
- });
12350
- return colValue;
12351
- } */
12347
+ if (col.includes('.')) {
12348
+ let pathArray = col.split('.');
12349
+ let colValue = row.data;
12350
+ pathArray.map((path) => {
12351
+ if (colValue == undefined) {
12352
+ colValue = row.data[col];
12353
+ return;
12354
+ }
12355
+ else {
12356
+ colValue = colValue[path];
12357
+ }
12358
+ });
12359
+ return colValue;
12360
+ }
12352
12361
  return row.data[col];
12353
12362
  }
12354
12363
  getImageResourceIcons(row, header) {