ngx-aur-mat-table 12.2.33 → 12.2.35
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 +25 -1
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +12 -2
- package/esm2015/lib/utils/offset.util.js +12 -0
- package/fesm2015/ngx-aur-mat-table.js +22 -1
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/ngx-aur-mat-table.component.d.ts +1 -0
- package/lib/utils/offset.util.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1040,6 +1040,21 @@
|
|
|
1040
1040
|
return TotalRowProviderDummy;
|
|
1041
1041
|
}(TotalRowProvider));
|
|
1042
1042
|
|
|
1043
|
+
var OffsetUtil = /** @class */ (function () {
|
|
1044
|
+
function OffsetUtil() {
|
|
1045
|
+
}
|
|
1046
|
+
OffsetUtil.areNotEqual = function (offsets1, offsets2) {
|
|
1047
|
+
if (offsets1.length !== offsets2.length) {
|
|
1048
|
+
return true;
|
|
1049
|
+
}
|
|
1050
|
+
return offsets1.some(function (offset, index) {
|
|
1051
|
+
var otherOffset = offsets2[index];
|
|
1052
|
+
return offset.left !== otherOffset.left || offset.width !== otherOffset.width || offset.key !== otherOffset.key;
|
|
1053
|
+
});
|
|
1054
|
+
};
|
|
1055
|
+
return OffsetUtil;
|
|
1056
|
+
}());
|
|
1057
|
+
|
|
1043
1058
|
var ColumnViewComponent = /** @class */ (function () {
|
|
1044
1059
|
function ColumnViewComponent() {
|
|
1045
1060
|
}
|
|
@@ -1104,6 +1119,7 @@
|
|
|
1104
1119
|
*/
|
|
1105
1120
|
this.onFilter = new i0.EventEmitter();
|
|
1106
1121
|
this.columnOffsets = new i0.EventEmitter();
|
|
1122
|
+
this.prevColumnOffsets = [];
|
|
1107
1123
|
// @ts-ignore
|
|
1108
1124
|
this.resizeColumnOffsetsObserver = EmptyValue.RESIZE_OBSERVER;
|
|
1109
1125
|
this.selectionProvider = new SelectionProviderDummy();
|
|
@@ -1165,6 +1181,7 @@
|
|
|
1165
1181
|
this.resizeColumnOffsetsObserver.observe(this.table.nativeElement);
|
|
1166
1182
|
};
|
|
1167
1183
|
NgxAurMatTableComponent.prototype.ngAfterViewChecked = function () {
|
|
1184
|
+
console.log('!!!! CHECK ngAfterViewChecked');
|
|
1168
1185
|
this.updateColumnOffsets();
|
|
1169
1186
|
};
|
|
1170
1187
|
NgxAurMatTableComponent.prototype.initPaginator = function () {
|
|
@@ -1193,7 +1210,14 @@
|
|
|
1193
1210
|
width: c.offsetWidth,
|
|
1194
1211
|
key: _this._displayColumns[index]
|
|
1195
1212
|
}); });
|
|
1196
|
-
this.
|
|
1213
|
+
if (OffsetUtil.areNotEqual(this.prevColumnOffsets, offsets)) {
|
|
1214
|
+
console.log('!!! EMIT OFFSET', this.prevColumnOffsets, offsets);
|
|
1215
|
+
this.prevColumnOffsets = offsets;
|
|
1216
|
+
this.columnOffsets.emit(offsets);
|
|
1217
|
+
}
|
|
1218
|
+
else {
|
|
1219
|
+
console.log('!!! IGNORE EMIT');
|
|
1220
|
+
}
|
|
1197
1221
|
}
|
|
1198
1222
|
};
|
|
1199
1223
|
NgxAurMatTableComponent.prototype.prepareTableData = function () {
|