@wizishop/angular-components 0.0.85 → 0.0.86
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 +5 -0
- 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 +4 -1
- package/fesm2015/wizishop-angular-components.js +6 -1
- 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/wizishop-angular-components-0.0.86.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.85.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
|
};
|
|
@@ -768,6 +770,7 @@
|
|
|
768
770
|
this._filterGroup.valuesChange$.next([]);
|
|
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) {
|