ngx-aur-mat-table 12.2.25 → 12.2.27

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.
@@ -1220,12 +1220,16 @@
1220
1220
  this.emitFilteredValues();
1221
1221
  };
1222
1222
  NgxAurMatTableComponent.prototype.removeFilter = function (filterName) {
1223
- this.filterStorage.delete(filterName);
1224
- this.applyFiltersInternal();
1223
+ if (this.filterStorage.get(filterName)) {
1224
+ this.filterStorage.delete(filterName);
1225
+ this.applyFiltersInternal();
1226
+ }
1225
1227
  };
1226
1228
  NgxAurMatTableComponent.prototype.applyFilter = function (filterName, filter) {
1227
- this.filterStorage.set(filterName, filter);
1228
- this.applyFiltersInternal();
1229
+ if (!this.filterStorage.get(filterName) || (!this.filterStorage.get(filterName).equals(filter))) {
1230
+ this.filterStorage.set(filterName, filter);
1231
+ this.applyFiltersInternal();
1232
+ }
1229
1233
  };
1230
1234
  NgxAurMatTableComponent.prototype.clearFilters = function () {
1231
1235
  this.filterStorage.clear();
@@ -1537,6 +1541,9 @@
1537
1541
  _this.value = value;
1538
1542
  return _this;
1539
1543
  }
1544
+ ValueSingle.prototype.equals = function (other) {
1545
+ return this.value === other.value;
1546
+ };
1540
1547
  return ValueSingle;
1541
1548
  }(ExtractableProperty));
1542
1549
  NgxAurFilters.ValueSingle = ValueSingle;
@@ -1597,6 +1604,9 @@
1597
1604
  enumerable: false,
1598
1605
  configurable: true
1599
1606
  });
1607
+ ValueMinMax.prototype.equals = function (other) {
1608
+ return this._min === other._min && this._max === other._max;
1609
+ };
1600
1610
  return ValueMinMax;
1601
1611
  }(ExtractableProperty));
1602
1612
  NgxAurFilters.ValueMinMax = ValueMinMax;