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