@rxap/material-table-system 12.5.7 → 12.5.8
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/rxap-material-table-system.umd.js +9 -8
- package/bundles/rxap-material-table-system.umd.js.map +1 -1
- package/esm2015/lib/table-filter/filter-header-row.directive.js +0 -1
- package/esm2015/lib/table-filter/filter-header-row.directive.js.map +1 -1
- package/esm2015/lib/table-filter/table-filter.service.js +10 -4
- package/esm2015/lib/table-filter/table-filter.service.js.map +1 -1
- package/fesm2015/rxap-material-table-system.js +10 -6
- package/fesm2015/rxap-material-table-system.js.map +1 -1
- package/package.json +2 -2
|
@@ -892,13 +892,18 @@
|
|
|
892
892
|
}
|
|
893
893
|
TableFilterService.prototype.setMap = function (map) {
|
|
894
894
|
var current = this.current;
|
|
895
|
-
var next = Object.assign(current, map);
|
|
895
|
+
var next = utilities.DeleteEmptyProperties(Object.assign(current, map));
|
|
896
896
|
this.change.next(next);
|
|
897
897
|
};
|
|
898
898
|
TableFilterService.prototype.set = function (key, value) {
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
899
|
+
if (value === null || value === undefined || value === '') {
|
|
900
|
+
this.remove(key);
|
|
901
|
+
}
|
|
902
|
+
else {
|
|
903
|
+
var current = this.current;
|
|
904
|
+
current[key] = value;
|
|
905
|
+
this.change.next(current);
|
|
906
|
+
}
|
|
902
907
|
};
|
|
903
908
|
TableFilterService.prototype.remove = function (key) {
|
|
904
909
|
var current = this.current;
|
|
@@ -1171,10 +1176,6 @@
|
|
|
1171
1176
|
_super.prototype.ngOnInit.call(this);
|
|
1172
1177
|
this._subscription = this.form.value$
|
|
1173
1178
|
.pipe(operators.debounceTime(1000), operators.map(function (values) { return Object.entries(values)
|
|
1174
|
-
.filter(function (_b) {
|
|
1175
|
-
var _c = __read(_b, 2), key = _c[0], value = _c[1];
|
|
1176
|
-
return value !== null && value !== undefined && value !== '';
|
|
1177
|
-
})
|
|
1178
1179
|
.reduce(function (obj, _b) {
|
|
1179
1180
|
var _c;
|
|
1180
1181
|
var _d = __read(_b, 2), key = _d[0], value = _d[1];
|