cfc-ds
Version:
Design System do Conselho Federal de Contabilidade baseado no govbr-ds
52 lines (51 loc) • 1.31 kB
TypeScript
import { CookieGroup } from "./cookie-group.model";
export interface CookieBarConfig {
lang: string;
allOptOut: boolean;
acceptButton?: string;
optInButton?: string;
optOutButton?: string;
infoText: string;
mainTitle: string;
lastUpdate?: string;
entryText: string;
selectAll: boolean;
allAlertMessage?: string;
closeLabel?: string;
lastUpdateLabel?: string;
cookieGroupsLabel?: string;
selectAllLabel?: string;
unselectAllLabel?: string;
selectAllGroupLabel?: string;
unselectAllGroupLabel?: string;
onLabel?: string;
offLabel?: string;
alwaysActiveLabel?: string;
cookieNameLabel?: string;
expiresLabel?: string;
domainLabel?: string;
enterpriseLabel?: string;
purposeLabel?: string;
descriptionLabel?: string;
cookieGroups: CookieGroup[];
noteTitle?: string;
noteList?: {
question: string;
answer: string;
}[];
links?: {
name: string;
url: string;
}[];
}
export interface CookieBarOutput {
selectAll: boolean | 'indeterminated';
cookieGroups: {
groupId: string;
groupSelected: boolean | 'indeterminated';
cookieList: {
cookieId: string;
cookieSelected: boolean;
}[];
}[];
}