fw-webbuilder 1.1.286 → 1.1.287
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/fw-webbuilder.mjs +1 -1
- package/index.d.ts +16 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ import { NzImageService } from 'ng-zorro-antd/image';
|
|
|
20
20
|
*/
|
|
21
21
|
declare class webBuilderService {
|
|
22
22
|
private http;
|
|
23
|
+
private modal;
|
|
24
|
+
private translate;
|
|
23
25
|
private pendingObjectUpdates;
|
|
24
26
|
private pendingBlockUpdates;
|
|
25
27
|
private pendingPageUpdates;
|
|
@@ -255,11 +257,15 @@ declare class webBuilderService {
|
|
|
255
257
|
*/
|
|
256
258
|
deleteObject(object: any, code?: any): Promise<any>;
|
|
257
259
|
/**
|
|
258
|
-
*
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
*
|
|
260
|
+
* Chuẩn hóa tên file: chuyển tiếng Việt có dấu thành không dấu, thay khoảng trắng và ký tự lạ bằng '-'
|
|
261
|
+
*/
|
|
262
|
+
sanitizeFileName(fileName: string): string;
|
|
263
|
+
/**
|
|
264
|
+
* Nén ảnh trực tiếp trên trình duyệt bằng HTML5 Canvas trước khi tải lên.
|
|
265
|
+
* - Giữ nguyên ảnh <= 1MB, SVG, GIF
|
|
266
|
+
* - Tự động resize nếu kích thước lớn hơn maxWidth/maxHeight
|
|
267
|
+
* - Chuyển đổi PNG lớn sang WebP để giảm tới 80% dung lượng
|
|
268
|
+
* - Chuẩn hóa tên file sạch sẽ, an toàn
|
|
263
269
|
*/
|
|
264
270
|
compressImage(file: File, maxWidth?: number, maxHeight?: number, quality?: number): Promise<File>;
|
|
265
271
|
uploadFileWithProgress(file: File, newPath: string): Observable<HttpEvent<any>>;
|
|
@@ -479,6 +485,10 @@ declare class webBuilderService {
|
|
|
479
485
|
* Tự động đồng bộ Font chữ Google, Font chủ đề, Màu chủ đề và Line Height
|
|
480
486
|
*/
|
|
481
487
|
getTinyMceConfig(customOptions?: any): any;
|
|
488
|
+
/**
|
|
489
|
+
* Mở modal Quản lý đa phương tiện (ManageImgsComponent) để chọn ảnh/video cho TinyMCE editor
|
|
490
|
+
*/
|
|
491
|
+
openManageImgsForEditor(callback: (url: string, meta?: any) => void): void;
|
|
482
492
|
/**
|
|
483
493
|
* hàm chuyển tên thành slug
|
|
484
494
|
* vd: "Giới thieu" => "gioi-thieu"
|
|
@@ -3063,6 +3073,7 @@ declare class ManageImgsComponent implements OnInit {
|
|
|
3063
3073
|
onDelete(item: any): void;
|
|
3064
3074
|
onChangePath(item: any): void;
|
|
3065
3075
|
onSelectFile(item: any, event: MouseEvent): void;
|
|
3076
|
+
onKeydown(event: KeyboardEvent): void;
|
|
3066
3077
|
deleteMany(): void;
|
|
3067
3078
|
handleRename(e: any, item: any): void;
|
|
3068
3079
|
onBackgroundClick(): void;
|