import { HttpClient } from '@angular/common/http'; import { MatDialog } from '@angular/material/dialog'; import { VhEventMediator, VhImage, VhQueryAutoWeb } from 'vhautowebdb'; import { NzMessageService } from 'ng-zorro-antd/message'; import { AtwUpdateDbComponent } from 'vhobjects-service'; import { FunctionService } from 'vhobjects-service'; import * as i0 from "@angular/core"; export declare class AtwShapeAdminConfig extends AtwUpdateDbComponent { vhQueryAutoWeb: VhQueryAutoWeb; private http; private nzMessageService; private vhImage; vhEventMediator: VhEventMediator; private matdialog; private matDialog; private platformId; functionService: FunctionService; /** object đang chọn */ objectChoosing: any; /** Thiết bị hiện tại (desktop, tablet_portrait, tablet_landscape, mobile_portrait, mobile_landscape) */ device: any; /** Dữ liệu class của thiết bị hiện tại */ class: any; /** Dữ liệu config của thiết bị hiện tại */ config: any; /** Dữ liệu staticdata */ staticdata: any; /** Dữ liệu blocks_of_page */ blocks_of_page: any; /** Loại trang (page, admin, ...) */ type: any; isViewAll: boolean; currentViewAll: any; imgAddress: string; valueParameter: number; backgroundColor: any; openMap: { [name: string]: boolean; }; styles_field: { title: string; index: number; }[]; clipPaths: any; style_cover: { name: string; title: string; image: string; }[]; typeGradient: { type: string; direction: string; name: string; deg: string; }[]; effect_hover: any[]; effect_hover_data: any; customize: any[]; configMode: 'basic' | 'advanced'; constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, nzMessageService: NzMessageService, vhImage: VhImage, vhEventMediator: VhEventMediator, matdialog: MatDialog, matDialog: MatDialog, platformId: Object, functionService: FunctionService); ngOnInit(): void; ngOnChanges(): void; /** * Hàm này set customize mở phần mở rộng của config từ choose-animations-config truyền về * @param event customize sau khi thay đổi */ openAnimationDetail(event: any): void; /** * Xử lý hình dạng của nút bấm * @param item : trả về mẫu hình dạng được chọn * @param e : trả về element được active */ chooseItem(item: any, event: any): void; /** * Xử lý chọn background-cover khi thêm hình ảnh vào hình dạng * @param option : trả về background-cover được chọn * @param e : trả về element được active */ chooseOptionCover(option: any, e: any): void; /** * Xử lý lấy image address để hiển thị * @param e : trả về đường dẫn ảnh */ handleImageAddress(e: any): 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 */ openHandler(value: string): void; /** * Hàm update object vào database. // */ setBorder(): 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; /** 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; updateBackgroundRgb(): void; hexToRGB(hex: string): string; /** * 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; /** * Hàm này thực hiện thêm màu gradient vào array. * */ addGradient(value: any): void; /** UPLOAD IMAGE */ openUpload(): void; saveImage(): void; /** * Lấy đường dẫn từ máy * @param e Biến lưu hình ảnh */ onUpload(e: any): void; boxShadow(): void; path: string; openLibrary(): void; /** * Cập nhật kiểu background, khi chuyển từ ảnh sang màu thì set màu mặc định */ updateBgCheck(): void; onRadiusChange(position: string, value: any): void; onRadiusBlur(position: string, value: string): void; /** * Mở popup so sánh màu nền và màu chữ có tương phản hay không * (Để tối ưu Accessibility trong SEO) */ openEditShape(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }