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.
- package/bundles/ngx-aur-mat-table.umd.js +7 -5
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +5 -4
- package/esm2015/lib/providers/SelectionProvider.js +4 -3
- package/fesm2015/ngx-aur-mat-table.js +7 -5
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/ngx-aur-mat-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -486,12 +486,13 @@
|
|
|
486
486
|
this.selection.clear();
|
|
487
487
|
}
|
|
488
488
|
else {
|
|
489
|
-
this.tableDataSource.
|
|
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 =
|
|
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.
|
|
1067
|
+
this.applyFiltersInternal();
|
|
1066
1068
|
};
|
|
1067
1069
|
NgxAurMatTableComponent.prototype.clearFilters = function () {
|
|
1068
1070
|
this.filterStorage.clear();
|
|
1069
|
-
this.
|
|
1071
|
+
this.applyFiltersInternal();
|
|
1070
1072
|
};
|
|
1071
|
-
NgxAurMatTableComponent.prototype.
|
|
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); });
|