ngx-aur-mat-table 12.2.30 → 12.2.32
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.
|
@@ -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);
|
|
@@ -1182,14 +1183,17 @@
|
|
|
1182
1183
|
};
|
|
1183
1184
|
NgxAurMatTableComponent.prototype.updateColumnOffsets = function () {
|
|
1184
1185
|
var _this = this;
|
|
1185
|
-
var
|
|
1186
|
-
|
|
1187
|
-
.
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1186
|
+
var _a, _b;
|
|
1187
|
+
if ((_b = (_a = this.table) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelectorAll('th')) {
|
|
1188
|
+
var offsets = Array.from(this.table.nativeElement.querySelectorAll('th'))
|
|
1189
|
+
.map(function (c) { return c; })
|
|
1190
|
+
.map(function (c, index) { return ({
|
|
1191
|
+
left: c.offsetLeft,
|
|
1192
|
+
width: c.offsetWidth,
|
|
1193
|
+
key: _this._displayColumns[index]
|
|
1194
|
+
}); });
|
|
1195
|
+
this.columnOffsets.emit(offsets);
|
|
1196
|
+
}
|
|
1193
1197
|
};
|
|
1194
1198
|
NgxAurMatTableComponent.prototype.prepareTableData = function () {
|
|
1195
1199
|
this.initTable();
|