cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
27 lines (26 loc) • 1.02 kB
TypeScript
import { Observable } from 'rxjs';
import { CookieBarConfig, CookieBarOutput } from '../models/cookie-bar.model';
import * as i0 from "@angular/core";
export declare class CookieBarService {
private cookieConfig;
private cookieOutput;
private isOpen;
constructor();
setConfig(config: string): void;
getConfig(): CookieBarConfig;
getCookieOutput(): Observable<CookieBarOutput | null>;
getIsOpen(): Observable<boolean>;
openCookieBar(): void;
closeCookieBar(): void;
accept(): void;
updateSelectAll(selected: boolean): void;
updateGroupSelection(groupId: string, selected: boolean): void;
updateCookieSelection(groupId: string, cookieId: string, selected: boolean): void;
private updateGroupState;
private updateSelectAllState;
private updateCookieOutput;
private getSelectAllState;
private getGroupState;
static ɵfac: i0.ɵɵFactoryDeclaration<CookieBarService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<CookieBarService>;
}