import { HttpClient } from '@angular/common/http'; import { OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { MatDialog } from '@angular/material/dialog'; import { VhQueryAutoWeb, VhEventMediator } from 'vhautowebdb'; import { FunctionService } from 'vhobjects-service/src/services'; import { ThemeService } from 'vhobjects-service'; import * as i0 from "@angular/core"; export declare class AtwBtnLoginLogout2StatesConfig implements OnInit, OnChanges { vhQueryAutoWeb: VhQueryAutoWeb; vhEventMediator: VhEventMediator; functionService: FunctionService; themeService: ThemeService; private http; private matDialog; private platformId; objectChoosing: any; device: any; class: any; config: any; type: any; staticdata: any; blocks_of_page: any; isCollapsed: boolean; currentViewAll: any; isViewAll: boolean; width: number; height: number; backgroundColor: any; customize: any[]; effect_hover: any[]; effect_hover_data: any; styles_field: { title: string; index: number; }[]; status: { type: boolean; title: string; }[]; openMap: { [name: string]: boolean; }; /** Is auto translate on? Cached to avoid calling getSetups_byFields too often */ private isAutoTranslate; constructor(vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, functionService: FunctionService, themeService: ThemeService, http: HttpClient, matDialog: MatDialog, platformId: Object); get statePrefix(): '+' | '-'; get wrapperClassKey(): string; get contentClassKey(): string; get iconClassKey(): string; get bgConfigKey(): string; get shadowConfigKey(): string; get flexConfigKey(): string; get paddingConfigKey(): string; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; /** Fill in data that older objects don't have (only missing keys are set) */ private initMissingData; private refreshEffect; updateObject(): void; updateClass(): void; updateConfig(): void; /** Save staticdata, then refresh width/height (the text may have changed the size) */ updateStaticData(): void; private getElement; private toNumber; /** Read the real size after Angular has rendered */ private measure; /** Write width/height into config.dimension (mutate in place, don't replace the object the parent holds) */ updateDimension(): void; /** * The button size is controlled by its padding, so changing width/height recomputes the padding * of the CURRENT state (wrapperClassKey) using the text-align of the current content class. * text-align left/right: the fixed side keeps config[paddingConfigKey], the other side takes the rest. * center: padding / 2 on each side. */ changeWidthHeight(event: { width?: number; height?: number; }, depth?: number): void; /** Save the class, then (after render) refresh the size and tell the ruler */ updateClassAndWidthHeight(): void; /** Login/logout radio changed: show the other state and re-measure it */ onChangeLoginState(): void; hexToRGB(hex: string): string; /** Pick a color from the list: background-color of the current state */ chooseBg(bgColor: any, event: any): void; /** Gradient goes to background-image so it doesn't override background-color */ updateBackgroundRgb(): void; chooseOption(direction: any, event: any): void; addGradient(value: string): void; deleteGradient(index: number): void; /** Popup: compare text/icon color with background color (accessibility) */ openColorContrast(): void; openViewAll(field_text: any): void; openHandler(value: string): void; /** Open the extended animation panel with the customize list from choose-animations-config */ openAnimationDetail(event: any): void; /** * @param fieldContent field name to update * @param isAriaLabel is the field inside staticdata.accessibility */ updateContent(fieldContent: string, isAriaLabel?: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }