fw-webbuilder 1.1.255 → 1.1.257
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 +30 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Subject, Observable, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { OnInit, ElementRef, Renderer2, SimpleChanges,
|
|
4
|
+
import { OnInit, ElementRef, Renderer2, SimpleChanges, OnDestroy, DoCheck, ChangeDetectorRef, AfterViewInit, InjectionToken } from '@angular/core';
|
|
5
5
|
import { SocialAuthService } from '@abacritt/angularx-social-login';
|
|
6
6
|
import * as ng_zorro_antd_message from 'ng-zorro-antd/message';
|
|
7
7
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
@@ -350,8 +350,6 @@ declare class webBuilderService {
|
|
|
350
350
|
private updatePage2;
|
|
351
351
|
private deleteObject2;
|
|
352
352
|
private deleteBlock2;
|
|
353
|
-
applyFontLinks(fontLinksFromDB: string): void;
|
|
354
|
-
getFontNames(fontLinkTag: string): string[];
|
|
355
353
|
/**
|
|
356
354
|
* hàm này dùng để copy block
|
|
357
355
|
* @param page _id của page chứa block
|
|
@@ -427,6 +425,14 @@ declare class webBuilderService {
|
|
|
427
425
|
pasteFormatStyle(item: any): void;
|
|
428
426
|
exportProjectBackup(type: 'template' | 'content'): Promise<any>;
|
|
429
427
|
importProjectBackup(file: File): Promise<any>;
|
|
428
|
+
/**
|
|
429
|
+
* Tải và áp dụng các thẻ <link> font vào <head> của trang
|
|
430
|
+
*/
|
|
431
|
+
applyFontLinks(fontHtml: string): void;
|
|
432
|
+
/**
|
|
433
|
+
* Trích xuất tên các Font từ chuỗi HTML link của Google Fonts
|
|
434
|
+
*/
|
|
435
|
+
getFontNames(fontHtml: string): string[];
|
|
430
436
|
static ɵfac: i0.ɵɵFactoryDeclaration<webBuilderService, never>;
|
|
431
437
|
static ɵprov: i0.ɵɵInjectableDeclaration<webBuilderService>;
|
|
432
438
|
}
|
|
@@ -695,7 +701,14 @@ declare class WbDragDrop implements OnInit {
|
|
|
695
701
|
*/
|
|
696
702
|
updateInitBottomAndRight(): void;
|
|
697
703
|
onPointerDown(e: any): void;
|
|
704
|
+
private vGuideEle;
|
|
705
|
+
private hGuideEle;
|
|
706
|
+
private gapEles;
|
|
698
707
|
private onMouseMove;
|
|
708
|
+
private createOrUpdateGuideLines;
|
|
709
|
+
private updateGapBadges;
|
|
710
|
+
private clearGapBadges;
|
|
711
|
+
private removeGuideLines;
|
|
699
712
|
private onMouseUp;
|
|
700
713
|
ngOnDestroy(): void;
|
|
701
714
|
private cleanupListeners;
|
|
@@ -720,9 +733,10 @@ declare class WbDragDrop implements OnInit {
|
|
|
720
733
|
static ɵcmp: i0.ɵɵComponentDeclaration<WbDragDrop, "[wbdragdrop]", never, { "boundaryEle": { "alias": "boundaryEle"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "top": { "alias": "top"; "required": false; }; "left": { "alias": "left"; "required": false; }; "position": { "alias": "position"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
721
734
|
}
|
|
722
735
|
|
|
723
|
-
declare class WbVirtualSelected implements OnInit {
|
|
736
|
+
declare class WbVirtualSelected implements OnInit, OnDestroy {
|
|
724
737
|
webBuilderService: webBuilderService;
|
|
725
738
|
el: ElementRef;
|
|
739
|
+
private renderer;
|
|
726
740
|
boundaryEle: any;
|
|
727
741
|
isDragging: boolean;
|
|
728
742
|
parentEleRect: any;
|
|
@@ -734,11 +748,19 @@ declare class WbVirtualSelected implements OnInit {
|
|
|
734
748
|
idParent: string;
|
|
735
749
|
changed: boolean;
|
|
736
750
|
keyPosition: any;
|
|
737
|
-
|
|
751
|
+
private vGuideEle;
|
|
752
|
+
private hGuideEle;
|
|
753
|
+
private gapEles;
|
|
754
|
+
constructor(webBuilderService: webBuilderService, el: ElementRef, renderer: Renderer2);
|
|
738
755
|
ngOnInit(): void;
|
|
739
756
|
onHostMouseDown(e: any): void;
|
|
740
757
|
onPointerMove(event: any): void;
|
|
758
|
+
private createOrUpdateGuideLines;
|
|
759
|
+
private updateGapBadges;
|
|
760
|
+
private clearGapBadges;
|
|
761
|
+
private removeGuideLines;
|
|
741
762
|
onPointerUp(e: any): void;
|
|
763
|
+
ngOnDestroy(): void;
|
|
742
764
|
static ɵfac: i0.ɵɵFactoryDeclaration<WbVirtualSelected, never>;
|
|
743
765
|
static ɵcmp: i0.ɵɵComponentDeclaration<WbVirtualSelected, "[wbVirtualSelected]", never, { "boundaryEle": { "alias": "boundaryEle"; "required": false; }; }, {}, never, never, true, never>;
|
|
744
766
|
}
|
|
@@ -1648,6 +1670,8 @@ declare class WbFrameBlankConfig implements OnInit {
|
|
|
1648
1670
|
declare class WbFrameTab implements OnInit {
|
|
1649
1671
|
webBuilderService: webBuilderService;
|
|
1650
1672
|
map: ComponentMapService;
|
|
1673
|
+
private router;
|
|
1674
|
+
private route;
|
|
1651
1675
|
data: any;
|
|
1652
1676
|
device: any;
|
|
1653
1677
|
class: any;
|
|
@@ -1656,7 +1680,7 @@ declare class WbFrameTab implements OnInit {
|
|
|
1656
1680
|
type: any;
|
|
1657
1681
|
product: any;
|
|
1658
1682
|
currentTab: number;
|
|
1659
|
-
constructor(webBuilderService: webBuilderService, map: ComponentMapService);
|
|
1683
|
+
constructor(webBuilderService: webBuilderService, map: ComponentMapService, router: Router, route: ActivatedRoute);
|
|
1660
1684
|
ngOnInit(): void;
|
|
1661
1685
|
updateDataClone(): void;
|
|
1662
1686
|
ngOnChanges(changes: SimpleChanges): void;
|