@wolkabout/commons 0.0.52 → 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.
@@ -5643,6 +5643,9 @@ class StandardListViewComponent {
5643
5643
  dataControl.itemUpdated$.pipe(map((item) => dataSource.prepareItem(item)), takeUntilDestroyed(destroyRef)).subscribe((updatedItem) => {
5644
5644
  this.items.update(items => items.map(item => item.id === updatedItem.id ? updatedItem : item).sort(dataSource.sortingFunction));
5645
5645
  });
5646
+ dataControl.itemPartiallyUpdated$.pipe(takeUntilDestroyed(destroyRef)).subscribe((partialUpdate) => {
5647
+ this.items.update(items => items.map(item => item.id === partialUpdate.id ? dataSource.prepareItem(partialUpdate.update(item.data)) : item).sort(dataSource.sortingFunction));
5648
+ });
5646
5649
  });
5647
5650
  afterRenderEffect(() => {
5648
5651
  const items = this.filteredItems();
@@ -5701,10 +5704,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
5701
5704
  class StandardListDataControl {
5702
5705
  _changeSelection$ = new BehaviorSubject(null);
5703
5706
  _itemUpdated$ = new Subject();
5707
+ _itemPartiallyUpdated$ = new Subject();
5704
5708
  _itemAdded$ = new Subject();
5705
5709
  _itemRemoved$ = new Subject();
5706
5710
  selectItem = (id) => this._changeSelection$.next(id);
5707
5711
  updateItem = (item) => this._itemUpdated$.next(item);
5712
+ updateItemPartially = (id, update) => this._itemPartiallyUpdated$.next({ id, update });
5708
5713
  addItem = (item) => this._itemAdded$.next(item);
5709
5714
  removeItem = (id) => this._itemRemoved$.next(id);
5710
5715
  /**
@@ -5719,6 +5724,12 @@ class StandardListDataControl {
5719
5724
  get itemUpdated$() {
5720
5725
  return this._itemUpdated$.asObservable();
5721
5726
  }
5727
+ /**
5728
+ * Internal event hook. Do not use outside of the Standard List Component
5729
+ */
5730
+ get itemPartiallyUpdated$() {
5731
+ return this._itemPartiallyUpdated$.asObservable();
5732
+ }
5722
5733
  /**
5723
5734
  * Internal event hook. Do not use outside the Standard List Component
5724
5735
  */