@quadrel-enterprise-ui/framework 20.10.1-beta.143.1 → 20.10.1-beta.145.1
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.
|
@@ -27565,6 +27565,7 @@ class QdPageObjectHeaderComponent {
|
|
|
27565
27565
|
_customActionsSubject = new BehaviorSubject({ actions: [] });
|
|
27566
27566
|
_customActionsSub;
|
|
27567
27567
|
_metadataSub;
|
|
27568
|
+
_streamPartial = {};
|
|
27568
27569
|
_destroyed$ = new Subject();
|
|
27569
27570
|
_availableContexts = 0;
|
|
27570
27571
|
pageObjectData$ = this._pageObjectDataSubject.asObservable();
|
|
@@ -27655,7 +27656,6 @@ class QdPageObjectHeaderComponent {
|
|
|
27655
27656
|
if (originalUpdateMetadata)
|
|
27656
27657
|
originalUpdateMetadata(props);
|
|
27657
27658
|
};
|
|
27658
|
-
this.setupResolverTrigger();
|
|
27659
27659
|
}
|
|
27660
27660
|
}
|
|
27661
27661
|
ngOnInit() {
|
|
@@ -27678,8 +27678,8 @@ class QdPageObjectHeaderComponent {
|
|
|
27678
27678
|
this._destroyed$.complete();
|
|
27679
27679
|
}
|
|
27680
27680
|
updateMetadata(metadata) {
|
|
27681
|
-
|
|
27682
|
-
this._pageObjectDataSubject.next(
|
|
27681
|
+
this._streamPartial = { ...this._streamPartial, ...metadata };
|
|
27682
|
+
this._pageObjectDataSubject.next({ ...this._pageObjectDataSubject.value, ...metadata });
|
|
27683
27683
|
}
|
|
27684
27684
|
handleAction(facet) {
|
|
27685
27685
|
facet?.action?.handler();
|
|
@@ -27743,7 +27743,7 @@ class QdPageObjectHeaderComponent {
|
|
|
27743
27743
|
setupResolverTrigger() {
|
|
27744
27744
|
this.resolverTriggerService
|
|
27745
27745
|
.shouldTriggerResolver(this.pageObjectResolver.config?.triggerOn ?? 'pathParamsChange')
|
|
27746
|
-
.pipe(takeUntil(this._destroyed$), filter(shouldTrigger => shouldTrigger), tap(() => this._isLoadingSubject.next(true)), switchMap(() => this.pageObjectResolver.resolve()), tap(objectData => this._pageObjectDataSubject.next(objectData)), tap(() => this._isLoadingSubject.next(false)), tap(() => this.formGroupManagerService.takeFormGroupsSnapshot()))
|
|
27746
|
+
.pipe(takeUntil(this._destroyed$), filter(shouldTrigger => shouldTrigger), tap(() => this._isLoadingSubject.next(true)), switchMap(() => this.pageObjectResolver.resolve()), tap(objectData => this._pageObjectDataSubject.next({ ...objectData, ...this._streamPartial })), tap(() => this._isLoadingSubject.next(false)), tap(() => this.formGroupManagerService.takeFormGroupsSnapshot()))
|
|
27747
27747
|
.subscribe();
|
|
27748
27748
|
}
|
|
27749
27749
|
initContexts() {
|