import { OnInit, SimpleChanges } from '@angular/core'; import { VhQueryAutoWeb, VhEventMediator } from 'vhautowebdb'; import { FunctionService } from 'vhobjects-service/src/services'; import { ThemeService } from 'vhobjects-service'; import { MatDialog } from '@angular/material/dialog'; import * as i0 from "@angular/core"; export declare class AtwBookingSelectorConfig implements OnInit { private vhEventMediator; functionService: FunctionService; private vhQueryAutoWeb; themeService: ThemeService; private dialog; private platformId; objectChoosing: any; device: any; class: any; config: any; staticdata: any; type: any; blocks_of_page: any; isViewAll: boolean; currentViewAll: any; backgroundColor: any; styles_field: { title: string; index: number; }[]; width: number; height: number; customize: any[]; constructor(vhEventMediator: VhEventMediator, functionService: FunctionService, vhQueryAutoWeb: VhQueryAutoWeb, themeService: ThemeService, dialog: MatDialog, platformId: Object); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): Promise; ensureStyleBuckets(): void; /** * Hàm này dùng để cho phép mở menu config . * Khi mở ở vị trí menu[0] thì các menu khác (menu[n]) đóng lại. * @param: value */ openMap: { [name: string]: boolean; }; openMapSub: { [name: string]: boolean; }; openHandler(value: string, isSub?: boolean): void; /** * hàm này nhận sk thay đổi width height từ component app-width-height-config truyền về * @param event width hieght của element sau khi thay đổi */ changeWidthHeight(event: any): void; updateClassAndConfig(): void; /** * Hàm này dùng để mở rộng phần cấu hình. * @param field_text : trả về phần tử được chọn của mảng style_field */ openViewAll(field_text: any): void; /** * Cập nhật staticdata vào database. */ updateStaticData(): void; /** * Cập nhật Setups vào database. */ updateSetups(): void; /** *Hàm update config vào database. */ updateConfig(): void; /** * Hàm update object vào database. */ updateFields(value: any): void; /** *Hàm update class vào database. */ updateClass(): void; /** * Hàm này thực hiện thêm màu gradient vào array. * */ addGradient(value: any): void; /** * @param index : vị trí phần tử muốn xóa * Hàm này cho phép xóa phần tử màu gradient trong array bằng index của phần tử đó. */ deleteGradient(index: any): void; /** * Chuyển đổi mã màu hexadecimal thành mã màu rgba. * @param hex : tham số trả về mã màu hex * @returns string : trả về chuỗi rgb */ hexToRGB(hex: string): string; updateBackgroundRgb(): void; /** * Hàm update object vào database. */ updateObject(): void; /** Hàm này cho phép chọn options direction của màu gradient * @param direction : trả về hướng phối màu được chọn * @param event : trả về element được active */ chooseOption(direction: any, event: any): void; /**Hàm này dùng để click chọn màu nền của danh sách màu. * @param bgColor : trả về màu được chọn * @param event : trả về element được active */ chooseBg(bgColor: any, event: any, classBg: any): void; openDialogChooseIcon(config: any): void; sections: { title: string; fields: { label: string; model: string; }[]; }[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }