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