ngx-aur-mat-table 12.2.31 → 12.2.33
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 +14 -10
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +15 -11
- package/fesm2015/ngx-aur-mat-table.js +14 -10
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/ngx-aur-mat-table.component.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1128,7 +1128,6 @@
|
|
|
1128
1128
|
if ((changes['tableData'] && this.tableData) || (changes['displayColumns'] && this._displayColumns)) {
|
|
1129
1129
|
this.tableData = this.tableData || [];
|
|
1130
1130
|
this.prepareTableData();
|
|
1131
|
-
this.updateColumnOffsets();
|
|
1132
1131
|
}
|
|
1133
1132
|
if (changes['highlight'] && this.highlight) {
|
|
1134
1133
|
this.handleHighlightChange(this.highlight);
|
|
@@ -1162,10 +1161,12 @@
|
|
|
1162
1161
|
var _this = this;
|
|
1163
1162
|
this.initPaginator();
|
|
1164
1163
|
this.initSortingDataAccessor();
|
|
1165
|
-
this.updateColumnOffsets();
|
|
1166
1164
|
this.resizeColumnOffsetsObserver = new ResizeObserver(function () { return _this.updateColumnOffsets(); });
|
|
1167
1165
|
this.resizeColumnOffsetsObserver.observe(this.table.nativeElement);
|
|
1168
1166
|
};
|
|
1167
|
+
NgxAurMatTableComponent.prototype.ngAfterViewChecked = function () {
|
|
1168
|
+
this.updateColumnOffsets();
|
|
1169
|
+
};
|
|
1169
1170
|
NgxAurMatTableComponent.prototype.initPaginator = function () {
|
|
1170
1171
|
if (this.tableDataSource) {
|
|
1171
1172
|
this.tableDataSource.paginator = this.matPaginator;
|
|
@@ -1183,14 +1184,17 @@
|
|
|
1183
1184
|
};
|
|
1184
1185
|
NgxAurMatTableComponent.prototype.updateColumnOffsets = function () {
|
|
1185
1186
|
var _this = this;
|
|
1186
|
-
var
|
|
1187
|
-
|
|
1188
|
-
.
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1187
|
+
var _a, _b;
|
|
1188
|
+
if ((_b = (_a = this.table) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.querySelectorAll('th')) {
|
|
1189
|
+
var offsets = Array.from(this.table.nativeElement.querySelectorAll('th'))
|
|
1190
|
+
.map(function (c) { return c; })
|
|
1191
|
+
.map(function (c, index) { return ({
|
|
1192
|
+
left: c.offsetLeft,
|
|
1193
|
+
width: c.offsetWidth,
|
|
1194
|
+
key: _this._displayColumns[index]
|
|
1195
|
+
}); });
|
|
1196
|
+
this.columnOffsets.emit(offsets);
|
|
1197
|
+
}
|
|
1194
1198
|
};
|
|
1195
1199
|
NgxAurMatTableComponent.prototype.prepareTableData = function () {
|
|
1196
1200
|
this.initTable();
|