UNPKG

@porscheinformatik/clr-addons

Version:
28 lines (27 loc) 1.3 kB
import { ClrHistoryModel, ClrHistorySettingsModel } from './history-model.interface'; import { BehaviorSubject, Observable } from 'rxjs'; import { ClrHistoryHttpService } from './history.http.service'; import * as i0 from "@angular/core"; export declare class ClrHistoryService { private readonly historyHttpService; cookieSettings$: BehaviorSubject<ClrHistorySettingsModel[]>; cookieNameSettings: string; private readonly expiryDate; private readonly changingHistory$; constructor(historyHttpService: ClrHistoryHttpService); /** * Add a new history entry * @param historyEntry The entry to be added */ addHistoryEntry(historyEntry: ClrHistoryModel): Observable<void>; getHistory(username: string, tenantId: string): Observable<ClrHistoryModel[]>; removeFromHistory(historyEntry: ClrHistoryModel): Observable<void>; initializeCookieSettings(username: string, domain?: string): ClrHistorySettingsModel; setHistoryPinned(username: string, pin: boolean, domain?: string): void; private getCookieByName; private setCookie; deleteOldCookie(domain?: string): void; private getDomain; static ɵfac: i0.ɵɵFactoryDeclaration<ClrHistoryService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ClrHistoryService>; }