@stemy/ngx-utils 13.6.7 → 13.6.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.
@@ -4703,11 +4703,12 @@ class PaginationDirective {
4703
4703
  return;
4704
4704
  this.page = isNaN(this.page) || this.page < 1 ? 1 : this.page;
4705
4705
  this.itemsPerPage = isNaN(this.itemsPerPage) || this.itemsPerPage < 1 ? 20 : this.itemsPerPage;
4706
- this.updateTimer.time = isNaN(this.updateTime) || this.updateTime < 0 ? 100 : this.updateTime;
4707
4706
  this.waitFor = this.waitFor || Promise.resolve(true);
4708
4707
  this.refresh();
4709
4708
  }
4710
- refresh() {
4709
+ refresh(time) {
4710
+ time = isNaN(time) || time < 0 ? this.updateTime : time;
4711
+ this.updateTimer.time = isNaN(time) || time < 0 ? 100 : this.updateTime;
4711
4712
  this.waitFor.then(() => {
4712
4713
  this.updateTimer.run();
4713
4714
  });
@@ -5226,14 +5227,14 @@ class DynamicTableComponent {
5226
5227
  return;
5227
5228
  this.refresh();
5228
5229
  }
5229
- refresh() {
5230
+ refresh(time) {
5230
5231
  if (!this.pagination)
5231
5232
  return;
5232
- this.pagination.refresh();
5233
+ this.pagination.refresh(time);
5233
5234
  }
5234
5235
  setFilter(filter) {
5235
5236
  this.filter = filter;
5236
- this.refresh();
5237
+ this.refresh(450);
5237
5238
  }
5238
5239
  setOrder(column) {
5239
5240
  this.orderDescending = column == this.orderBy && !this.orderDescending;
@@ -5247,7 +5248,7 @@ class DynamicTableComponent {
5247
5248
  else {
5248
5249
  this.query[col] = value;
5249
5250
  }
5250
- this.refresh();
5251
+ this.refresh(450);
5251
5252
  }
5252
5253
  loadLocalData(page, rowsPerPage, orderBy, orderDescending, filter) {
5253
5254
  if (!this.data) {