@wizishop/angular-components 0.0.84 → 0.0.87
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/wizishop-angular-components.umd.js +15 -1
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +2 -2
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/table/shared/filters-table.service.js +5 -2
- package/esm2015/lib/components/table/shared/table-filters-group.model.js +4 -0
- package/esm2015/lib/components/table/table.component.js +5 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/wizishop-angular-components.js +12 -4
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/table/shared/filters-table.service.d.ts +2 -1
- package/lib/components/table/shared/table-filters-group.model.d.ts +7 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/wizishop-angular-components-0.0.87.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.84.tgz +0 -0
|
@@ -698,6 +698,8 @@
|
|
|
698
698
|
currentPage: 0
|
|
699
699
|
};
|
|
700
700
|
var filterGroup = this.filterRoutingBuilder.group(dataTableFilters, dataTableName);
|
|
701
|
+
filterGroup.tableFiltersValuesChange$ = new rxjs.ReplaySubject(1);
|
|
702
|
+
filterGroup.tableFiltersValuesDebouncedChange$ = filterGroup.tableFiltersValuesChange$.pipe(operators.debounceTime(300));
|
|
701
703
|
this.filterGroups.set(dataTableName, filterGroup);
|
|
702
704
|
return filterGroup;
|
|
703
705
|
};
|
|
@@ -763,11 +765,12 @@
|
|
|
763
765
|
/* Handle routing filters */
|
|
764
766
|
if (this.tableRoutingName) {
|
|
765
767
|
this._filterGroup = this.filtersTableService.getTableFilterGroup(this.tableRoutingName);
|
|
768
|
+
this.setTablesFilters();
|
|
766
769
|
// Performe initial fetch data
|
|
767
770
|
this._filterGroup.valuesChange$.next([]);
|
|
768
|
-
this.setTablesFilters();
|
|
769
771
|
// Listen to filters changes with debounced time to limit multiple api calls
|
|
770
772
|
this.filterGroupChangeSub = this._filterGroup.valuesChange$.subscribe(function (filters) {
|
|
773
|
+
console.log('valuesChange', filters);
|
|
771
774
|
_this.setTablesFilters();
|
|
772
775
|
});
|
|
773
776
|
}
|
|
@@ -813,6 +816,8 @@
|
|
|
813
816
|
totalItems: this.tableFilters.totalItems
|
|
814
817
|
};
|
|
815
818
|
this.tableFiltersChange.emit(this.tableFilters);
|
|
819
|
+
console.log('tableFiltersValuesChange$.next');
|
|
820
|
+
this._filterGroup.tableFiltersValuesChange$.next(this.tableFilters);
|
|
816
821
|
};
|
|
817
822
|
TableComponent.prototype.ngDestroy = function () {
|
|
818
823
|
if (this.filterGroupChangeSub) {
|
|
@@ -4039,6 +4044,14 @@
|
|
|
4039
4044
|
},] }
|
|
4040
4045
|
];
|
|
4041
4046
|
|
|
4047
|
+
var TableFiltersGroup = /** @class */ (function (_super) {
|
|
4048
|
+
__extends(TableFiltersGroup, _super);
|
|
4049
|
+
function TableFiltersGroup() {
|
|
4050
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
4051
|
+
}
|
|
4052
|
+
return TableFiltersGroup;
|
|
4053
|
+
}(i1$1.NwbFilterGroup));
|
|
4054
|
+
|
|
4042
4055
|
/*
|
|
4043
4056
|
* Public API Surface of angular-components
|
|
4044
4057
|
*/
|
|
@@ -4105,6 +4118,7 @@
|
|
|
4105
4118
|
exports.TableColumn = TableColumn;
|
|
4106
4119
|
exports.TableColumnHeader = TableColumnHeader;
|
|
4107
4120
|
exports.TableComponent = TableComponent;
|
|
4121
|
+
exports.TableFiltersGroup = TableFiltersGroup;
|
|
4108
4122
|
exports.TableRow = TableRow;
|
|
4109
4123
|
exports.TagComponent = TagComponent;
|
|
4110
4124
|
exports.TextAreaComponent = TextAreaComponent;
|