libs/common/frame/src/services/taly-frame-top-area.service.ts
Helper service to integrate our top area in the TALY frame with external systems like PFE.
Best used with an actual implementation like the PfeFrameTopAreaService.
Provide it in your app root module.
{ provide: TalyFrameTopAreaService, useClass: PfeFrameTopAreaService }
Properties |
Methods |
|
| networkErrorMessage$ |
Default value : this._networkErrorMessage$.asObservable()
|
| Public Abstract getNotificationVisibility$ | ||||||
getNotificationVisibility$(visibleIf: string | undefined)
|
||||||
|
Parameters :
Returns :
Observable<boolean>
|
| Public Abstract getObservableForStateKey$ | ||||||
getObservableForStateKey$(stateKey: string)
|
||||||
|
Parameters :
Returns :
Observable<any>
|
import { BehaviorSubject, Observable } from 'rxjs';
/**
* Helper service to integrate our top area in the TALY frame with external systems like PFE.
*
* Best used with an actual implementation like the `PfeFrameTopAreaService`.
* Provide it in your app root module.
*
* {
* provide: TalyFrameTopAreaService,
* useClass: PfeFrameTopAreaService
* }
*/
export abstract class TalyFrameTopAreaService {
public abstract getNotificationVisibility$(visibleIf: string | undefined): Observable<boolean>;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
public abstract getObservableForStateKey$(stateKey: string): Observable<any>;
protected _networkErrorMessage$ = new BehaviorSubject<string | undefined>(undefined);
networkErrorMessage$ = this._networkErrorMessage$.asObservable();
}