@coolon/angular-ui-powerups 14.16.0 → 14.17.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.
@@ -3347,6 +3347,7 @@ class SelectionColumnModel extends ColumnModel {
3347
3347
  this._enableHeaderControls = true;
3348
3348
  this._color = "accent";
3349
3349
  this.selectionModel = DelegatingSelectionModel.createDelegate();
3350
+ const { chain } = Dsl.disposeWith(this);
3350
3351
  this._selectRowOnClick(false);
3351
3352
  this.cellHeaderRenderer(SelectionHeaderCellComponent, (component) => {
3352
3353
  component.selectionModel = this.selectionModel;
@@ -3360,10 +3361,10 @@ class SelectionColumnModel extends ColumnModel {
3360
3361
  }));
3361
3362
  this.setSelectionModel(selectionModel);
3362
3363
  this.setMasterVisibility(this.selectionModel.enabled$);
3364
+ this.setDefaultVisibility(chain(this.selectionModel.mode$).equals(SelectionModel.Mode.MULTIPLE));
3363
3365
  }
3364
3366
  setSelectionModel(selectionModel) {
3365
3367
  this.selectionModel.setDelegate(selectionModel);
3366
- this.setDefaultVisibility(selectionModel instanceof MultipleSelectionModel ? ValueModel.TRUE : ValueModel.FALSE);
3367
3368
  }
3368
3369
  getDefaultHeaderText() {
3369
3370
  return '';