ngx-aur-mat-table 12.2.11 → 12.2.13

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.
@@ -486,12 +486,13 @@
486
486
  this.selection.clear();
487
487
  }
488
488
  else {
489
- this.tableDataSource.data.forEach(function (row) { return _this.selection.select(row.rowSrc); });
489
+ this.tableDataSource.filteredData.forEach(function (row) { return _this.selection.select(row.rowSrc); });
490
490
  }
491
491
  };
492
492
  SelectionProvider.prototype.isAllSelected = function () {
493
+ var filteredData = this.tableDataSource.filteredData;
493
494
  var numSelected = this.selection.selected.length;
494
- var numRows = this.tableDataSource.data.length;
495
+ var numRows = filteredData.length;
495
496
  return numSelected === numRows;
496
497
  };
497
498
  SelectionProvider.canEnable = function (tableConfig) {
@@ -1059,16 +1060,17 @@
1059
1060
  };
1060
1061
  NgxAurMatTableComponent.prototype.removeFilter = function (filterName) {
1061
1062
  this.filterStorage.delete(filterName);
1063
+ this.applyFiltersInternal();
1062
1064
  };
1063
1065
  NgxAurMatTableComponent.prototype.applyFilter = function (filterName, filter) {
1064
1066
  this.filterStorage.set(filterName, filter);
1065
- this.applyFilterInternal();
1067
+ this.applyFiltersInternal();
1066
1068
  };
1067
1069
  NgxAurMatTableComponent.prototype.clearFilters = function () {
1068
1070
  this.filterStorage.clear();
1069
- this.applyFilterInternal();
1071
+ this.applyFiltersInternal();
1070
1072
  };
1071
- NgxAurMatTableComponent.prototype.applyFilterInternal = function () {
1073
+ NgxAurMatTableComponent.prototype.applyFiltersInternal = function () {
1072
1074
  var filterActions = __spreadArray([], __read(this.filterStorage.values()));
1073
1075
  this.tableDataSource.filterPredicate = function (data) {
1074
1076
  return filterActions.every(function (filterAction) { return filterAction.filterFn()(data); });