@datorama/core 21.4.0-rc.10 → 21.4.0-rc.11

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.
@@ -11419,8 +11419,9 @@ var GridQuery = /** @class */ (function (_super) {
11419
11419
  GridQuery.prototype.filterChanged = function () {
11420
11420
  return this.selectFilter().pipe(map$1(function (filter) {
11421
11421
  return Object.keys(filter).reduce(function (filters, field) {
11422
- if (filter[field]) {
11423
- filters.push({ colId: '', field: field, filter: filter[field] });
11422
+ var datoFilter = filter[field];
11423
+ if (datoFilter) {
11424
+ filters.push({ colId: datoFilter.colId, field: field, filter: datoFilter });
11424
11425
  }
11425
11426
  return filters;
11426
11427
  }, []);
@@ -12759,7 +12760,7 @@ var DatoGridFilterComponent = /** @class */ (function () {
12759
12760
  DatoGridFilterComponent.prototype.buildFilter = function () {
12760
12761
  var _this = this;
12761
12762
  var _a = this.filterForm.value, byValue = _a.byValue, conditional = _a.conditional;
12762
- var filter = {};
12763
+ var filter = { colId: this.colDef.colId };
12763
12764
  filter.pivotKeys = this.pivotKeys;
12764
12765
  if (this.pivotColumn) {
12765
12766
  filter.pivotFieldsMap = this.getPivotFields(this.pivotColumn.getParent()).reduce(function (fieldMap, field, index) {
@@ -14166,7 +14167,7 @@ var GridService = /** @class */ (function () {
14166
14167
  this.notifyFilterUpdate();
14167
14168
  }
14168
14169
  };
14169
- GridService.prototype.setExternalFilters = function (filters) {
14170
+ GridService.prototype.setGridFilters = function (filters) {
14170
14171
  var e_2, _a;
14171
14172
  try {
14172
14173
  for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
@@ -15304,8 +15305,8 @@ var DatoGridControllerComponent = /** @class */ (function () {
15304
15305
  DatoGridControllerComponent.prototype.setGridRows = function (data) {
15305
15306
  this.gridService.setRows(data);
15306
15307
  };
15307
- DatoGridControllerComponent.prototype.setColumnFilters = function (filters) {
15308
- this.gridService.setExternalFilters(filters);
15308
+ DatoGridControllerComponent.prototype.setGridFilters = function (filters) {
15309
+ this.gridService.setGridFilters(filters);
15309
15310
  };
15310
15311
  DatoGridControllerComponent.prototype.onFilterChanged = function () {
15311
15312
  return this.gridQuery.filterChanged();