cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
57 lines (56 loc) • 2.52 kB
TypeScript
import { OnInit, EventEmitter } from '@angular/core';
import { CookieBarService } from '../../services/cookie-bar.service';
import { CookieBarConfig, CookieBarOutput } from '../../models/cookie-bar.model';
import { CookieGroup } from '../../models/cookie-group.model';
import { Cookie } from '../../models/cookie.model';
import * as i0 from "@angular/core";
export declare class CookieBarComponent implements OnInit {
private cookieBarService;
set config(value: string);
cookieSettingsChange: EventEmitter<CookieBarOutput>;
acceptCookies: EventEmitter<CookieBarOutput>;
cookieConfig: CookieBarConfig;
isOpen: boolean;
expandedGroups: {
[key: string]: boolean;
};
constructor(cookieBarService: CookieBarService);
ngOnInit(): void;
get acceptButtonLabel(): string;
get secondaryButtonLabel(): string;
get lastUpdateLabel(): string;
get cookieGroupsLabel(): string;
get selectAllLabel(): string;
getSelectGroupLabel(group: CookieGroup): string;
get onLabel(): string;
get offLabel(): string;
get alwaysActiveLabel(): string;
get cookieNameLabel(): string;
get expiresLabel(): string;
get domainLabel(): string;
get enterpriseLabel(): string;
get purposeLabel(): string;
get descriptionLabel(): string;
toggleCookieBar(): void;
toggleGroup(groupId: string): void;
isGroupExpanded(groupId: string): boolean;
onSelectAllChange(event: any): void;
onGroupSelectionChange(groupId: string, event: any): void;
onCookieSelectionChange(groupId: string, cookieId: string, event: any): void;
isSelectAllChecked(): boolean;
isSelectAllIndeterminate(): boolean;
isGroupChecked(group: CookieGroup): boolean;
isGroupIndeterminate(group: CookieGroup): boolean;
isCookieOptOut(cookie: Cookie): boolean;
isGroupOptOut(group: CookieGroup): boolean;
accept(): void;
openDetailedView(): void;
private getSelectAllState;
private getGroupState;
getGroupCookieCount(group: CookieGroup): number;
getSelectedCookieCount(group: CookieGroup): number;
getTotalCookieCount(): number;
getTotalSelectedCookieCount(): number;
static ɵfac: i0.ɵɵFactoryDeclaration<CookieBarComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CookieBarComponent, "cfc-cookie-bar", never, { "config": { "alias": "config"; "required": false; }; }, { "cookieSettingsChange": "cookieSettingsChange"; "acceptCookies": "acceptCookies"; }, never, never, false, never>;
}