@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.
@@ -12480,12 +12480,12 @@ var mapToValue = function (_a) {
12480
12480
  var ɵ0$1 = mapToValue;
12481
12481
  var mapToListItem = function (val) { return ({ id: val, label: isNil(val) ? "(Empty)" : ("" + val).trim(), value: val }); };
12482
12482
  var ɵ1$1 = mapToListItem;
12483
- var mapToListItemWithFormatted = function (_a) {
12483
+ var mapToListItemWithFormatted = function (_a, key) {
12484
12484
  var value = _a.value, formattedValue = _a.formattedValue;
12485
12485
  return ({
12486
- id: value,
12487
- label: isNil(formattedValue) ? "(Empty)" : ("" + formattedValue).trim(),
12488
- value: value
12486
+ id: key && value ? value[key] : value,
12487
+ label: isNil(formattedValue) ? "(Empty)" : ("" + (key ? formattedValue[key] : formattedValue)).trim(),
12488
+ value: key && value ? value[key] : value
12489
12489
  });
12490
12490
  };
12491
12491
  var ɵ2$1 = mapToListItemWithFormatted;
@@ -12667,9 +12667,11 @@ var DatoGridFilterComponent = /** @class */ (function () {
12667
12667
  var columnValues = this.getColumnValues();
12668
12668
  this.columnValues = columnValues.map(function (_a) {
12669
12669
  var value = _a.value;
12670
- return _this.pivotColumn && value ? value[_this.colField] : value;
12670
+ return !isNil(_this.pivotColumn) && value ? value[_this.colField] : value;
12671
+ });
12672
+ this.listOptions = columnValues.map(function (colValue) {
12673
+ return mapToListItemWithFormatted(colValue, !isNil(_this.pivotColumn) && _this.colField);
12671
12674
  });
12672
- this.listOptions = columnValues.map(mapToListItemWithFormatted);
12673
12675
  }
12674
12676
  }
12675
12677
  else {