import { HttpClient } from '@angular/common/http'; import { OnInit } from '@angular/core'; import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb'; import { FunctionService } from 'vhobjects-service/src/services'; import * as i0 from "@angular/core"; export declare class AtwTextDiscountConfig implements OnInit { vhQueryAutoWeb: VhQueryAutoWeb; private http; private vhEventMediator; functionService: FunctionService; private platformId; data_tool: any; type_config: string; objectChoosing: any; device: any; class: any; config: any; type: any; staticdata: any; isViewAll: boolean; currentViewAll: any; styles_field: { title: string; index: number; }[]; fonts: any[]; isUsedClipPath: boolean; clipPaths: any; classUpdates: { "text-discount__content": { "clip-path": string; }; }; configUpdates: { "box-shadow": { is_box_shadow: boolean; property_box_shadow: { type: string; "h-offset": number; "v-offset": number; blur: number; spread: number; color: string; }; }; "background-color": { gradient_arr: string[]; background: string; gradient_check: boolean; value_range: number; gradient_type: string; value_parameter: number; gradient_direction: string; }; discount_fold: { display: string; width: string; height: string; left: string; bottom: string; background_color: string; clip_path: string; }; }; constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, functionService: FunctionService, platformId: Object); ngOnChanges(): void; ngOnInit(): void; /** * Xử lý hình dạng của tag giảm giá * @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ý dạng hình */ handleToggleBorderRadius(): 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; /** * 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; /** * 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; updateBackgroundRgb(): void; /** * Hàm update class */ updateClass(): void; /** * Hàm update object vào database. */ updateObject(): void; /** * Hàm update config */ updateConfig(): void; /** * Hàm update staticdata vào database. */ updateStaticData(): 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; /** * 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; openMap: { [name: string]: boolean; }; /** * 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; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }