@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.
@@ -11618,8 +11618,9 @@
11618
11618
  GridQuery.prototype.filterChanged = function () {
11619
11619
  return this.selectFilter().pipe(operators.map(function (filter) {
11620
11620
  return Object.keys(filter).reduce(function (filters, field) {
11621
- if (filter[field]) {
11622
- filters.push({ colId: '', field: field, filter: filter[field] });
11621
+ var datoFilter = filter[field];
11622
+ if (datoFilter) {
11623
+ filters.push({ colId: datoFilter.colId, field: field, filter: datoFilter });
11623
11624
  }
11624
11625
  return filters;
11625
11626
  }, []);
@@ -12958,7 +12959,7 @@
12958
12959
  DatoGridFilterComponent.prototype.buildFilter = function () {
12959
12960
  var _this = this;
12960
12961
  var _a = this.filterForm.value, byValue = _a.byValue, conditional = _a.conditional;
12961
- var filter = {};
12962
+ var filter = { colId: this.colDef.colId };
12962
12963
  filter.pivotKeys = this.pivotKeys;
12963
12964
  if (this.pivotColumn) {
12964
12965
  filter.pivotFieldsMap = this.getPivotFields(this.pivotColumn.getParent()).reduce(function (fieldMap, field, index) {
@@ -14365,7 +14366,7 @@
14365
14366
  this.notifyFilterUpdate();
14366
14367
  }
14367
14368
  };
14368
- GridService.prototype.setExternalFilters = function (filters) {
14369
+ GridService.prototype.setGridFilters = function (filters) {
14369
14370
  var e_2, _a;
14370
14371
  try {
14371
14372
  for (var filters_1 = __values(filters), filters_1_1 = filters_1.next(); !filters_1_1.done; filters_1_1 = filters_1.next()) {
@@ -15503,8 +15504,8 @@
15503
15504
  DatoGridControllerComponent.prototype.setGridRows = function (data) {
15504
15505
  this.gridService.setRows(data);
15505
15506
  };
15506
- DatoGridControllerComponent.prototype.setColumnFilters = function (filters) {
15507
- this.gridService.setExternalFilters(filters);
15507
+ DatoGridControllerComponent.prototype.setGridFilters = function (filters) {
15508
+ this.gridService.setGridFilters(filters);
15508
15509
  };
15509
15510
  DatoGridControllerComponent.prototype.onFilterChanged = function () {
15510
15511
  return this.gridQuery.filterChanged();