@coolon/angular-ui-powerups 14.6.3 → 14.8.0
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/esm2020/lib/components/tables/abstract-table-model.mjs +8 -1
- package/esm2020/lib/components/tables/table/table-model.mjs +6 -1
- package/fesm2015/coolon-angular-ui-powerups.mjs +12 -0
- package/fesm2015/coolon-angular-ui-powerups.mjs.map +1 -1
- package/fesm2020/coolon-angular-ui-powerups.mjs +12 -0
- package/fesm2020/coolon-angular-ui-powerups.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3350,6 +3350,13 @@ class AbstractTableModel extends GarbageCollector {
|
|
|
3350
3350
|
this.firstVisibleColumn$ = chain(this._columnList).first();
|
|
3351
3351
|
this.lastVisibleColumn$ = chain(this._columnList).last();
|
|
3352
3352
|
this.rowSelectionDisabledOnAllColumns$ = chain(this._columnList).select(column => column.isRowSelectionEnabled()).count().equals(0);
|
|
3353
|
+
when(chain(this._rawDataSource).first()).becomesTruthy(it => {
|
|
3354
|
+
if (it === this.identityOf(it)) {
|
|
3355
|
+
console.warn("Table model identity function is using reference equality. This can cause lots of table re-rendering", {
|
|
3356
|
+
row: it
|
|
3357
|
+
});
|
|
3358
|
+
}
|
|
3359
|
+
}, { once: true });
|
|
3353
3360
|
}
|
|
3354
3361
|
initialise(injector) {
|
|
3355
3362
|
// not sure if I should define these at the module level or not...
|
|
@@ -3789,6 +3796,11 @@ class TableModel extends AbstractTableModel {
|
|
|
3789
3796
|
this._pageController = pagedListModel.pageController;
|
|
3790
3797
|
}
|
|
3791
3798
|
}
|
|
3799
|
+
// TODO: the selection model needs the option to limit selecction to the filtered items. Currently the selection remains
|
|
3800
|
+
// when the item is no longer in the visible list of items.
|
|
3801
|
+
// addSingleSelectionColumn<Id>(options: SingleSelectionModel.Options<Row, Id>, showSelectionColumn?: ValueModel<boolean> | boolean): SingleSelectionModel<Row> {
|
|
3802
|
+
// return null;
|
|
3803
|
+
// }
|
|
3792
3804
|
addSelectionColumn(selectionModel, showSelectionColumn) {
|
|
3793
3805
|
return this._addSelectionColumn(selectionModel, showSelectionColumn);
|
|
3794
3806
|
}
|