ngx-aur-mat-table 12.2.33 → 12.2.36
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 +20 -1
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/ngx-aur-mat-table.component.js +7 -2
- package/esm2015/lib/utils/offset.util.js +12 -0
- package/fesm2015/ngx-aur-mat-table.js +17 -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();
|
|
@@ -1193,7 +1209,10 @@
|
|
|
1193
1209
|
width: c.offsetWidth,
|
|
1194
1210
|
key: _this._displayColumns[index]
|
|
1195
1211
|
}); });
|
|
1196
|
-
this.
|
|
1212
|
+
if (OffsetUtil.areNotEqual(this.prevColumnOffsets, offsets)) {
|
|
1213
|
+
this.prevColumnOffsets = offsets;
|
|
1214
|
+
this.columnOffsets.emit(offsets);
|
|
1215
|
+
}
|
|
1197
1216
|
}
|
|
1198
1217
|
};
|
|
1199
1218
|
NgxAurMatTableComponent.prototype.prepareTableData = function () {
|