@wolkabout/commons 0.0.53 → 0.0.54

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.
@@ -5644,7 +5644,7 @@ class StandardListViewComponent {
5644
5644
  this.items.update(items => items.map(item => item.id === updatedItem.id ? updatedItem : item).sort(dataSource.sortingFunction));
5645
5645
  });
5646
5646
  dataControl.itemPartiallyUpdated$.pipe(takeUntilDestroyed(destroyRef)).subscribe((partialUpdate) => {
5647
- this.items.update(items => items.map(item => item.id === partialUpdate.id ? dataSource.prepareItem({ ...item, ...partialUpdate.update }) : item).sort(dataSource.sortingFunction));
5647
+ this.items.update(items => items.map(item => item.id === partialUpdate.id ? dataSource.prepareItem(partialUpdate.update(item.data)) : item).sort(dataSource.sortingFunction));
5648
5648
  });
5649
5649
  });
5650
5650
  afterRenderEffect(() => {
@@ -5704,14 +5704,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
5704
5704
  class StandardListDataControl {
5705
5705
  _changeSelection$ = new BehaviorSubject(null);
5706
5706
  _itemUpdated$ = new Subject();
5707
+ _itemPartiallyUpdated$ = new Subject();
5707
5708
  _itemAdded$ = new Subject();
5708
5709
  _itemRemoved$ = new Subject();
5709
- _itemPartiallyUpdated$ = new Subject();
5710
5710
  selectItem = (id) => this._changeSelection$.next(id);
5711
5711
  updateItem = (item) => this._itemUpdated$.next(item);
5712
+ updateItemPartially = (id, update) => this._itemPartiallyUpdated$.next({ id, update });
5712
5713
  addItem = (item) => this._itemAdded$.next(item);
5713
5714
  removeItem = (id) => this._itemRemoved$.next(id);
5714
- updateItemPartially = (id, update) => this._itemPartiallyUpdated$.next({ id, update });
5715
5715
  /**
5716
5716
  * Internal event hook. Do not use outside the Standard List Component
5717
5717
  */