@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.
@@ -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) {