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.
- package/bundles/ngx-aur-mat-table.umd.js +7 -1
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +8 -3
- package/fesm2015/ngx-aur-mat-table.js +7 -2
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/ngx-aur-mat-table.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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 ({
|
|
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 () {
|