@datorama/core 21.4.0-rc.16 → 21.4.0-rc.17

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.
@@ -12625,19 +12625,18 @@ var DatoGridFilterComponent = /** @class */ (function () {
12625
12625
  var _a;
12626
12626
  var _this = this;
12627
12627
  var _b = this.popover.data, gridService = _b.gridService, gridQuery = _b.gridQuery;
12628
- var _c = this.colDef, filter = _c.filter, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
12628
+ var _c = this.colDef, filter = _c.filter, _d = _c.filtersConfig, filtersConfig = _d === void 0 ? {} : _d, pivotValueColumn = _c.pivotValueColumn, pivotKeys = _c.pivotKeys;
12629
12629
  var colDefs = gridQuery.api.columns.getAllColumns().map(function (column) { return column.getColDef(); });
12630
12630
  this.colField = getColField(this.colDef);
12631
12631
  var colDef = colDefs.find(function (colDef) { return colDef.field === _this.colField; });
12632
- var filtersConfig = colDef.filtersConfig;
12632
+ var colFilter = filter || colDef.filter;
12633
+ var filterOptions = DatoGridFilterOptionsMap[colFilter];
12633
12634
  this.pivotColumn = gridQuery.api.columns.getSecondaryPivotColumn(pivotKeys, pivotValueColumn);
12634
12635
  if (filtersConfig.sections) {
12635
12636
  this.filterSections = (_a = {}, _a[filtersConfig.sections] = true, _a);
12636
12637
  }
12637
12638
  this.keepPredefinedListOriginalOrder =
12638
12639
  filtersConfig.keepPredefinedListOriginalOrder && !isEmpty(filtersConfig.predefinedListValues);
12639
- var colFilter = filter || colDef.filter;
12640
- var filterOptions = DatoGridFilterOptionsMap[colFilter];
12641
12640
  this.filterType = filterOptions ? colFilter : DatoGridFilterTypes.String;
12642
12641
  this.listLabelType = this.filterType.toLowerCase();
12643
12642
  this.listSortByKey = this.filterType === DatoGridFilterTypes.Number && this.colDef.valueFormatter ? 'id' : 'label';