UNPKG

@salla.sa/twilight-components

Version:
45 lines (44 loc) 1.14 kB
export declare class SallaCookiesBar { host: HTMLElement; /** * Whether the cookies bar is visible. */ isVisible: boolean; /** * Whether the viewport is mobile width (updates on resize). */ isMobile: boolean; private mobileQuery; private mobileBreakpoint; private mobileQueryHandler; private readonly openRequestedHandler; private unregisterAfterFetchMenuItemsHook?; /** * The label for component */ messageLabel: string; linkLabel: string; acceptLabel: string; rejectLabel: string; selectedConsent: 'accepted' | 'rejected'; componentWillLoad(): Promise<void>; private loadTranslations; componentDidLoad(): void; disconnectedCallback(): void; /** * Accept cookies consent. */ accept(): Promise<HTMLElement>; /** * Reject cookies consent. */ reject(): Promise<HTMLElement>; /** * Show cookies settings bar to allow updating consent. */ open(): Promise<HTMLElement>; private getStoredConsentChoice; private isRtl; private appendCookiesSettingsLink; render(): any; }