import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb'; import { HttpClient } from '@angular/common/http'; import { FunctionService } from 'vhobjects-service/src/services'; import * as i0 from "@angular/core"; export declare class AtwTextConfig implements OnInit, OnChanges { vhQueryAutoWeb: VhQueryAutoWeb; private http; private vhEventMediator; functionService: FunctionService; private platformId; objectChoosing: any; device: any; class: any; config: any; staticdata: any; type: any; formulaDraft: any; inputCalculateCustom: any; formulaBox: ElementRef; isViewAll: boolean; currentViewAll: any; isCollapsed: boolean; styles_field: { title: string; index: number; }[]; customize: any[]; effect_hover: any[]; effect_hover_data: any; text_style: any; /** Danh sách giải thích loại văn bản tương ứng SEO */ seoTextTypes: any; id_subproject: any; subProject: any; constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, functionService: FunctionService, platformId: Object); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * Cập nhật transform */ handleSetTextRotate(): void; /** * Cập nhật các thuộc tính border-radius */ handleSetBorderRadius(): void; /** * Cập nhật Kiểu văn bản */ handleSetTextStyle(action: any): void; /** * Cập nhật Kiểu danh sách đầu dòng, đánh số */ handleListStyle(style: string): void; /** * hàm này để xử lý thay đổi cấu hình của hay là StaticData * nếu this.objectChoosing.dynamic_data = true thì cập nhật vào * ngược lại cập nhật vào staticData */ handleChangeConfig(): void; /** * Cập nhật staticdata vào database. */ updateStaticData(): void; /** * Xử lý kiểu Uốn cong */ handleSetCurveText(): void; /** * Cập nhật Gradient */ handleSetGradientText(): void; openbgGradient(): 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; /** Xử lý lấy thông số giá trị background gradient * @param event : trả về giá trị từ 0-100 */ getValueRangeBackgroundGradient(e: any): void; /** * Hàm này thực hiện thêm màu gradient vào array. * */ addGradient(): void; /** 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ử đó. * @param index : vị trí phần tử muốn xóa */ deleteGradient(index: any): void; /** * Hàm update object vào database. */ updateObject(): Promise; /** * Hàm update class */ updateClass(): void; /** * Hàm update config */ updateConfig(): void; /** * Set biểu tượng con trỏ chuột mặc định cho dạng có link */ handleChangeLink(): 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 set customize mở 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; /** * 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; /** * Lấy danh sách các input dạng "input-calculate-custom" từ server. * Nếu component hiện tại không phải 'AtwTextCalculateCustom' thì bỏ qua. * Sau khi lấy dữ liệu, hiển thị công thức với tên thay vì ID. */ getObjectForCalculate(): void; /** * Thêm một biến vào công thức tại vị trí con trỏ hiện tại trong textarea. * @param name - Tên của biến (sẽ được chèn vào dưới dạng {{name}}) */ insertToFormula(name: string): void; /** * Khi người dùng xác nhận công thức: convert tên (name) → ID để lưu vào staticdata. * Sau đó gọi hàm cập nhật staticdata. */ confirmFormula(): void; /** * Chuyển công thức chứa ID sang công thức hiển thị chứa tên. * Ví dụ: {{abc123}} → {{Chiều cao}} * @param formulaWithIds - Công thức chứa ID, ví dụ: "{{abc123}} + {{xyz456}}" * @returns Công thức đã thay ID bằng tên tương ứng, ví dụ: "{{Height}} + {{Weight}}" */ displayFormulaFromId(formulaWithIds: string): string; /** * Chuyển công thức từ tên biến (name) sang ID để lưu trữ. * Ví dụ: {{Chiều cao}} → {{abc123}} * @param formulaWithNames - Công thức chứa tên biến * @returns Công thức đã thay tên bằng ID tương ứng */ convertNameToId(formulaWithNames: string): string; /** * Update nội dung * @example * data = [ { langCode: 'vi', translatedText: 'Bản đồ Việt Nam' } ] */ updateContent(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }