ngx-aur-mat-table 12.2.28 → 12.2.30

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.
@@ -1126,6 +1126,7 @@
1126
1126
  });
1127
1127
  NgxAurMatTableComponent.prototype.ngOnChanges = function (changes) {
1128
1128
  if ((changes['tableData'] && this.tableData) || (changes['displayColumns'] && this._displayColumns)) {
1129
+ this.tableData = this.tableData || [];
1129
1130
  this.prepareTableData();
1130
1131
  }
1131
1132
  if (changes['highlight'] && this.highlight) {
@@ -1180,9 +1181,14 @@
1180
1181
  }
1181
1182
  };
1182
1183
  NgxAurMatTableComponent.prototype.updateColumnOffsets = function () {
1184
+ var _this = this;
1183
1185
  var offsets = Array.from(this.table.nativeElement.querySelectorAll('th'))
1184
1186
  .map(function (c) { return c; })
1185
- .map(function (c) { return ({ left: c.offsetLeft, width: c.offsetWidth }); });
1187
+ .map(function (c, index) { return ({
1188
+ left: c.offsetLeft,
1189
+ width: c.offsetWidth,
1190
+ key: _this._displayColumns[index]
1191
+ }); });
1186
1192
  this.columnOffsets.emit(offsets);
1187
1193
  };
1188
1194
  NgxAurMatTableComponent.prototype.prepareTableData = function () {