@wolkabout/commons 0.0.52 → 0.0.53
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({ ...item, ...partialUpdate.update }) : item).sort(dataSource.sortingFunction));
|
|
5648
|
+
});
|
|
5646
5649
|
});
|
|
5647
5650
|
afterRenderEffect(() => {
|
|
5648
5651
|
const items = this.filteredItems();
|
|
@@ -5703,10 +5706,12 @@ class StandardListDataControl {
|
|
|
5703
5706
|
_itemUpdated$ = new Subject();
|
|
5704
5707
|
_itemAdded$ = new Subject();
|
|
5705
5708
|
_itemRemoved$ = new Subject();
|
|
5709
|
+
_itemPartiallyUpdated$ = new Subject();
|
|
5706
5710
|
selectItem = (id) => this._changeSelection$.next(id);
|
|
5707
5711
|
updateItem = (item) => this._itemUpdated$.next(item);
|
|
5708
5712
|
addItem = (item) => this._itemAdded$.next(item);
|
|
5709
5713
|
removeItem = (id) => this._itemRemoved$.next(id);
|
|
5714
|
+
updateItemPartially = (id, update) => this._itemPartiallyUpdated$.next({ id, update });
|
|
5710
5715
|
/**
|
|
5711
5716
|
* Internal event hook. Do not use outside the Standard List Component
|
|
5712
5717
|
*/
|
|
@@ -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
|
*/
|