import { OnInit, SimpleChanges } from '@angular/core'; import { VhQueryAutoWeb, VhEventMediator, VhAlgorithm } 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 AtwBookingFlowConfig implements OnInit { private vhEventMediator; functionService: FunctionService; private vhQueryAutoWeb; themeService: ThemeService; private dialog; private vhAlgorithm; private platformId; objectChoosing: any; device: any; class: any; config: any; staticdata: any; type: any; blocks_of_page: any; isViewAll: boolean; currentViewAll: any; backgroundColor: any; width: number; height: number; customize: any[]; readonly styles_field: any[]; readonly listColorOptions: any[]; readonly bookingFlowColorGroups: any; readonly colorSections: any[]; readonly sections: any[]; readonly linkSlots: any[]; bookingFlowTheme: any; /** Trạng thái mở/đóng của từng nhóm màu */ openColorGroup: { [key: string]: boolean; }; /** Trạng thái mở/đóng của từng nhóm nội dung */ openContentGroup: { [key: string]: boolean; }; /** * 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. */ openMap: { [name: string]: boolean; }; openMapSub: { [name: string]: boolean; }; arr_link_pages: any[]; constructor(vhEventMediator: VhEventMediator, functionService: FunctionService, vhQueryAutoWeb: VhQueryAutoWeb, themeService: ThemeService, dialog: MatDialog, vhAlgorithm: VhAlgorithm, platformId: Object); ngOnInit(): void; private loadLinkPages; getLinkSlotLabel(link: string): string; ngOnChanges(changes: SimpleChanges): Promise; /** * @param value : tên menu cần mở * @param isSub : true nếu là menu con (openMapSub) */ 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 height 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; /** * Writes `bookingFlowTheme[type]` into every style-class it's mapped to. * @param persist When true (default), immediately persists via updateClass(). * Pass false when applying many keys in a batch (see * so only a single API call fires * at the end instead of one per key. */ updateGroupColor(type: string, persist?: boolean): void; toggleColorGroup(title: string): void; isColorGroupOpen(title: string): boolean; getColorLabel(key: string): string; toggleContentGroup(title: string): void; isContentGroupOpen(title: string): boolean; /** Builds the initial theme object from whatever is already saved in `this.class` */ private buildThemeFromExistingClasses; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }