fw-webbuilder 1.1.152 → 1.1.153

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/index.d.ts CHANGED
@@ -179,9 +179,9 @@ declare class webBuilderService {
179
179
  * @param data ko cần tính index, hàm từ tính luôn
180
180
  * @returns
181
181
  */
182
- addBlock(data: any): Promise<any>;
183
- updateBlock(id: string, data: any): Promise<any>;
184
- deleteBlock(id: string): Promise<any>;
182
+ addBlock(data: any, code?: any): Promise<any>;
183
+ updateBlock(id: string, data: any, code?: string): Promise<any>;
184
+ deleteBlock(id: string, code?: any): Promise<any>;
185
185
  deleteBlockClone(block: any): Promise<any>;
186
186
  /**
187
187
  *
@@ -190,13 +190,13 @@ declare class webBuilderService {
190
190
  * @returns
191
191
  */
192
192
  addObject(data: any, code?: any): Promise<any>;
193
- updateObject(id: string, data: any): Promise<any>;
193
+ updateObject(id: string, data: any, code?: string): Promise<any>;
194
194
  /**
195
195
  * hàm này xóa tất cả object và nhánh con của nó
196
196
  * @param id id của object cần xóa
197
197
  * @returns
198
198
  */
199
- deleteObject(id: string): any;
199
+ deleteObject(id: string, code?: any): any;
200
200
  deleteObjectClone(object: any): Promise<any>;
201
201
  uploadFile(file: File, newPath: string, options?: any): Promise<Object>;
202
202
  upLoadImage(file: any, oldPath: string, newPath: string, options?: any): Promise<any>;
@@ -264,10 +264,13 @@ declare class webBuilderService {
264
264
  handleCtrl_D(): Promise<any>;
265
265
  handleCtrl_V(): any;
266
266
  handleCtrl_Z(): Promise<void>;
267
- private deleteObject2;
268
- private deleteBlock2;
267
+ handleCtrl_Y(): Promise<void>;
268
+ private updateObject2;
269
+ private updateBlock2;
269
270
  private addObject2;
270
271
  private addBlock2;
272
+ private deleteObject2;
273
+ private deleteBlock2;
271
274
  applyFontLinks(fontLinksFromDB: string): void;
272
275
  getFontNames(fontLinkTag: string): string[];
273
276
  /**
@@ -275,7 +278,7 @@ declare class webBuilderService {
275
278
  * @param page _id của page chứa block
276
279
  * @param block block có NHÁNH(objects) cần copy
277
280
  */
278
- handleCopyBlock(page: any, block: any): Promise<void>;
281
+ handleCopyBlock(page: any, block: any, code: any): Promise<void>;
279
282
  /**
280
283
  * Hàm này dùng để copy object
281
284
  * khi copy page thì cần mọi object nằm ở vị trí cũ,
@@ -284,7 +287,7 @@ declare class webBuilderService {
284
287
  * @param object object có NHÁNH(objects) cần copy
285
288
  * @param change_position
286
289
  */
287
- handleCopyObject(parent: any, object: any, change_position?: boolean): Promise<void>;
290
+ handleCopyObject(parent: any, object: any, change_position: boolean | undefined, code: any): Promise<void>;
288
291
  /**
289
292
  * hàm này copy page, page truyền vào phải có nhánh
290
293
  * @param page page phải có NHÁNH
@@ -610,8 +613,8 @@ declare class WbDragDrop implements OnInit {
610
613
  onResizeLeft(e: any): void;
611
614
  onResizeRight(e: any): void;
612
615
  updatePositionDB(): void;
613
- updateClassAndConfig(): void;
614
- updatePositionAndClass(): void;
616
+ updateClassAndConfig(codeUpdate: any): void;
617
+ updatePositionAndClass(codeUpdate: any): void;
615
618
  updateHeight(): void;
616
619
  conditionShowActive(): any;
617
620
  conditionShowResize(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fw-webbuilder",
3
- "version": "1.1.152",
3
+ "version": "1.1.153",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0",