@rxap/material-table-system 12.5.2 → 12.5.3
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 +8 -2
- package/bundles/rxap-material-table-system.umd.js.map +1 -1
- package/esm2015/lib/table-filter/filter-header-row.directive.js +4 -4
- package/esm2015/lib/table-filter/filter-header-row.directive.js.map +1 -1
- package/esm2015/lib/table-filter/table-filter.service.js +5 -0
- package/esm2015/lib/table-filter/table-filter.service.js.map +1 -1
- package/fesm2015/rxap-material-table-system.js +7 -2
- package/fesm2015/rxap-material-table-system.js.map +1 -1
- package/lib/table-filter/table-filter.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -891,6 +891,11 @@
|
|
|
891
891
|
this.current = {};
|
|
892
892
|
this._subscription = this.change.subscribe(function (current) { return _this.current = current; });
|
|
893
893
|
}
|
|
894
|
+
TableFilterService.prototype.setMap = function (map) {
|
|
895
|
+
var current = this.current;
|
|
896
|
+
var next = Object.assign(current, map);
|
|
897
|
+
this.change.next(next);
|
|
898
|
+
};
|
|
894
899
|
TableFilterService.prototype.set = function (key, value) {
|
|
895
900
|
var current = this.current;
|
|
896
901
|
current[key] = value;
|
|
@@ -1163,6 +1168,7 @@
|
|
|
1163
1168
|
return _this;
|
|
1164
1169
|
}
|
|
1165
1170
|
FilterHeaderRowDirective.prototype.ngOnInit = function () {
|
|
1171
|
+
var _this = this;
|
|
1166
1172
|
_super.prototype.ngOnInit.call(this);
|
|
1167
1173
|
this._subscription = this.form.value$
|
|
1168
1174
|
.pipe(operators.debounceTime(1000), operators.map(function (values) { return Object.entries(values)
|
|
@@ -1174,8 +1180,8 @@
|
|
|
1174
1180
|
var _c;
|
|
1175
1181
|
var _d = __read(_b, 2), key = _d[0], value = _d[1];
|
|
1176
1182
|
return (Object.assign(Object.assign({}, obj), (_c = {}, _c[key] = value, _c)));
|
|
1177
|
-
}, {}); }), operators.distinctUntilChanged(function (a, b) { return utilities.equals(a, b); }))
|
|
1178
|
-
.subscribe(
|
|
1183
|
+
}, {}); }), operators.distinctUntilChanged(function (a, b) { return utilities.equals(a, b); }), operators.tap(function (values) { return _this.tableFilter.setMap(values); }))
|
|
1184
|
+
.subscribe();
|
|
1179
1185
|
};
|
|
1180
1186
|
FilterHeaderRowDirective.prototype.ngOnDestroy = function () {
|
|
1181
1187
|
var _a;
|