libs/core/frame/src/services/taly-frame-top-area.service.ts

Description

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 }

Relationships

Depends on

No results matching.

Index

Properties
Methods

Properties

networkErrorMessage$
Type : unknown
Default value : this._networkErrorMessage$.asObservable()

Methods

Public Abstract getNotificationVisibility$
getNotificationVisibility$(visibleIf: string | undefined)
Parameters :
Name Type Optional
visibleIf string | undefined No
Returns : Observable<boolean>
Public Abstract getObservableForStateKey$
getObservableForStateKey$(stateKey: string)
Parameters :
Name Type Optional
stateKey string No
Returns : Observable<any>
Public Abstract getSidebarVisibility$
getSidebarVisibility$(visibleIf: string | undefined)
Parameters :
Name Type Optional
visibleIf string | undefined No
Public Abstract getTabVisibility$
getTabVisibility$(visibleIf: string | undefined)
Parameters :
Name Type Optional
visibleIf string | undefined No
Returns : Observable<boolean>
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>;
  public abstract getSidebarVisibility$(
    visibleIf: string | undefined
  ): Observable<boolean | undefined>;
  public abstract getTabVisibility$(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();
}

results matching ""

    No results matching ""