@datorama/core 21.4.0-rc.13 → 21.4.0-rc.14

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.
@@ -12679,12 +12679,12 @@
12679
12679
  var ɵ0$1 = mapToValue;
12680
12680
  var mapToListItem = function (val) { return ({ id: val, label: isNil(val) ? "(Empty)" : ("" + val).trim(), value: val }); };
12681
12681
  var ɵ1$1 = mapToListItem;
12682
- var mapToListItemWithFormatted = function (_a) {
12682
+ var mapToListItemWithFormatted = function (_a, key) {
12683
12683
  var value = _a.value, formattedValue = _a.formattedValue;
12684
12684
  return ({
12685
- id: value,
12686
- label: isNil(formattedValue) ? "(Empty)" : ("" + formattedValue).trim(),
12687
- value: value
12685
+ id: key && value ? value[key] : value,
12686
+ label: isNil(formattedValue) ? "(Empty)" : ("" + (key ? formattedValue[key] : formattedValue)).trim(),
12687
+ value: key && value ? value[key] : value
12688
12688
  });
12689
12689
  };
12690
12690
  var ɵ2$1 = mapToListItemWithFormatted;
@@ -12866,9 +12866,11 @@
12866
12866
  var columnValues = this.getColumnValues();
12867
12867
  this.columnValues = columnValues.map(function (_a) {
12868
12868
  var value = _a.value;
12869
- return _this.pivotColumn && value ? value[_this.colField] : value;
12869
+ return !isNil(_this.pivotColumn) && value ? value[_this.colField] : value;
12870
+ });
12871
+ this.listOptions = columnValues.map(function (colValue) {
12872
+ return mapToListItemWithFormatted(colValue, !isNil(_this.pivotColumn) && _this.colField);
12870
12873
  });
12871
- this.listOptions = columnValues.map(mapToListItemWithFormatted);
12872
12874
  }
12873
12875
  }
12874
12876
  else {