ngx-aur-mat-table 12.2.26 → 12.2.28

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.
@@ -1116,8 +1116,10 @@
1116
1116
  }
1117
1117
  Object.defineProperty(NgxAurMatTableComponent.prototype, "displayColumns", {
1118
1118
  set: function (columns) {
1119
- this._displayColumns = __spreadArray([], __read(columns));
1120
- this._customDisplayColumnsEnabled = columns && columns.length > 0;
1119
+ if (columns) {
1120
+ this._displayColumns = __spreadArray([], __read(columns));
1121
+ this._customDisplayColumnsEnabled = columns && columns.length > 0;
1122
+ }
1121
1123
  },
1122
1124
  enumerable: false,
1123
1125
  configurable: true
@@ -1220,12 +1222,16 @@
1220
1222
  this.emitFilteredValues();
1221
1223
  };
1222
1224
  NgxAurMatTableComponent.prototype.removeFilter = function (filterName) {
1223
- this.filterStorage.delete(filterName);
1224
- this.applyFiltersInternal();
1225
+ if (this.filterStorage.get(filterName)) {
1226
+ this.filterStorage.delete(filterName);
1227
+ this.applyFiltersInternal();
1228
+ }
1225
1229
  };
1226
1230
  NgxAurMatTableComponent.prototype.applyFilter = function (filterName, filter) {
1227
- this.filterStorage.set(filterName, filter);
1228
- this.applyFiltersInternal();
1231
+ if (!this.filterStorage.get(filterName) || (!this.filterStorage.get(filterName).equals(filter))) {
1232
+ this.filterStorage.set(filterName, filter);
1233
+ this.applyFiltersInternal();
1234
+ }
1229
1235
  };
1230
1236
  NgxAurMatTableComponent.prototype.clearFilters = function () {
1231
1237
  this.filterStorage.clear();
@@ -1537,6 +1543,9 @@
1537
1543
  _this.value = value;
1538
1544
  return _this;
1539
1545
  }
1546
+ ValueSingle.prototype.equals = function (other) {
1547
+ return this.value === other.value;
1548
+ };
1540
1549
  return ValueSingle;
1541
1550
  }(ExtractableProperty));
1542
1551
  NgxAurFilters.ValueSingle = ValueSingle;
@@ -1597,6 +1606,9 @@
1597
1606
  enumerable: false,
1598
1607
  configurable: true
1599
1608
  });
1609
+ ValueMinMax.prototype.equals = function (other) {
1610
+ return this._min === other._min && this._max === other._max;
1611
+ };
1600
1612
  return ValueMinMax;
1601
1613
  }(ExtractableProperty));
1602
1614
  NgxAurFilters.ValueMinMax = ValueMinMax;