@coolon/angular-ui-powerups 14.21.0 → 14.22.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.
@@ -2893,7 +2893,7 @@ class AbstractTableComponent extends DisposableComponent {
2893
2893
  const model = this.getModel();
2894
2894
  this.columnsById = chain(model.columns).indexBy('columnId');
2895
2895
  this._dataSource$.setDelegate(model.dataSource$);
2896
- model.bindToTable(this.injector, (row) => this.identityOf(row));
2896
+ model.initialise(this.injector, (row) => this.identityOf(row));
2897
2897
  }
2898
2898
  get visibleRows$() {
2899
2899
  return this._visibleRows$.readonly;
@@ -3456,7 +3456,7 @@ class AbstractTableModel extends GarbageCollector {
3456
3456
  * @param identityOf
3457
3457
  * @param rest
3458
3458
  */
3459
- bindToTable(injector, identityOf) {
3459
+ initialise(injector, identityOf) {
3460
3460
  // not sure if I should define these at the module level or not...
3461
3461
  const customInjector = Injector.create({
3462
3462
  providers: [
@@ -4622,10 +4622,11 @@ class TreeTableModel extends AbstractTableModel {
4622
4622
  get isExpandedPredicate$() {
4623
4623
  return this._isExpandedPredicate$.readonly;
4624
4624
  }
4625
- useExpansionModel(expansionModel) {
4625
+ bindToTable(expansionModel, visibleRows$) {
4626
4626
  this.treeExpansionModel = expansionModel;
4627
4627
  // TODO: Move all the expansion model stuff out of here and have things use the expansion model directly
4628
4628
  this._isExpandedPredicate$.setDelegate(this.treeExpansionModel.isExpandedPredicate$);
4629
+ this._visibleRows$.setDelegate(visibleRows$);
4629
4630
  }
4630
4631
  treeControlColumn(builder) {
4631
4632
  const columnId = 'tree-label';
@@ -4946,7 +4947,7 @@ class TreeTableComponent extends AbstractTableComponent {
4946
4947
  // Todo, turn this into a plain chain model
4947
4948
  const visibleRows$ = new FlattenedTreeListModel(this._dataSource$, row => this.treeTableModel.childExtractor(row), this.expansionModel);
4948
4949
  this.expansionModel.bindToTable(this._dataSource$, visibleRows$);
4949
- this.treeTableModel.useExpansionModel(this.expansionModel);
4950
+ this.treeTableModel.bindToTable(this.expansionModel, visibleRows$);
4950
4951
  this._visibleRows$.setDelegate(visibleRows$);
4951
4952
  }
4952
4953
  getModel() {