fw-webbuilder 0.0.15 → 1.0.0
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 +18 -12
- package/package.json +9 -2
package/index.d.ts
CHANGED
|
@@ -466,15 +466,11 @@ declare class DrawerService {
|
|
|
466
466
|
static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService>;
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
type DragMode = 'absolute' | 'margin';
|
|
470
469
|
declare class WbDragDrop implements OnInit {
|
|
471
470
|
webBuilderService: webBuilderService;
|
|
472
471
|
el: ElementRef;
|
|
473
472
|
private renderer;
|
|
474
|
-
|
|
475
|
-
* Input để chọn chế độ: 'absolute' (mặc định) hoặc 'margin'
|
|
476
|
-
* */
|
|
477
|
-
mode: DragMode;
|
|
473
|
+
dragPreview: HTMLElement | null;
|
|
478
474
|
/**
|
|
479
475
|
* DOM phần tử cha
|
|
480
476
|
*/
|
|
@@ -487,6 +483,7 @@ declare class WbDragDrop implements OnInit {
|
|
|
487
483
|
device: any;
|
|
488
484
|
top: number;
|
|
489
485
|
left: number;
|
|
486
|
+
position: any;
|
|
490
487
|
type: any | 'design' | 'admin' | 'preview';
|
|
491
488
|
dragOffset: {
|
|
492
489
|
x: number;
|
|
@@ -507,12 +504,15 @@ declare class WbDragDrop implements OnInit {
|
|
|
507
504
|
* biến này để theo dõi con trỏ chuột để resize top, left
|
|
508
505
|
* */
|
|
509
506
|
currPos: any;
|
|
507
|
+
/**
|
|
508
|
+
* biến là top, left của this.data, cập nhật biến này khi kéo hoặc resize, pointerup mới cập nhật dữ liệu trong this.data
|
|
509
|
+
*/
|
|
510
|
+
currPosClone: any;
|
|
510
511
|
/**
|
|
511
512
|
* biến cờ để biết đã kéo hay resize chưa, tránh click vào là update db luôn
|
|
512
513
|
*/
|
|
513
514
|
changed: boolean;
|
|
514
515
|
parentEleRect: any;
|
|
515
|
-
parentData: any;
|
|
516
516
|
keyPosition: string;
|
|
517
517
|
private isDragging;
|
|
518
518
|
private mouseMoveListener;
|
|
@@ -528,13 +528,16 @@ declare class WbDragDrop implements OnInit {
|
|
|
528
528
|
* hàm cập nhật ví trí của đối tượng trên giao diện
|
|
529
529
|
* @param data
|
|
530
530
|
*/
|
|
531
|
-
|
|
531
|
+
updateMarginPosition(): void;
|
|
532
|
+
updateAbsolutePosition(): void;
|
|
532
533
|
/**
|
|
533
534
|
* hàm này cập nhật bottom và right của phần tử resize sử dụng
|
|
534
535
|
*/
|
|
535
536
|
updateInitBottomAndRight(): void;
|
|
537
|
+
createDragPreview(): void;
|
|
536
538
|
onPointerDown(e: any): void;
|
|
537
539
|
private onMouseMove;
|
|
540
|
+
removeDragView(): void;
|
|
538
541
|
private onMouseUp;
|
|
539
542
|
ngOnDestroy(): void;
|
|
540
543
|
private cleanupListeners;
|
|
@@ -543,6 +546,7 @@ declare class WbDragDrop implements OnInit {
|
|
|
543
546
|
getLeftDrag(): 0 | -24;
|
|
544
547
|
handleResizePointerDown(e: any, direction: any): void;
|
|
545
548
|
handleResizePointerMove(e: any): void;
|
|
549
|
+
updatePosition(): void;
|
|
546
550
|
handleResizePointerUp(e: any): void;
|
|
547
551
|
minTop: any;
|
|
548
552
|
onResizeTop(e: any): void;
|
|
@@ -550,13 +554,13 @@ declare class WbDragDrop implements OnInit {
|
|
|
550
554
|
minLeft: any;
|
|
551
555
|
onResizeLeft(e: any): void;
|
|
552
556
|
onResizeRight(e: any): void;
|
|
553
|
-
|
|
554
|
-
|
|
557
|
+
updatePositionDB(): void;
|
|
558
|
+
updateClassAndConfig(): void;
|
|
555
559
|
updatePositionAndClass(): void;
|
|
556
560
|
conditionShowActive(): any;
|
|
557
561
|
conditionShowResize(): any;
|
|
558
562
|
static ɵfac: i0.ɵɵFactoryDeclaration<WbDragDrop, never>;
|
|
559
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WbDragDrop, "[wbdragdrop]", never, { "
|
|
563
|
+
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>;
|
|
560
564
|
}
|
|
561
565
|
|
|
562
566
|
declare class WbVirtualSelected implements OnInit {
|
|
@@ -888,7 +892,6 @@ declare class WbHideShowConfig implements OnInit {
|
|
|
888
892
|
classOverflowY: any;
|
|
889
893
|
classFlexDirection: any;
|
|
890
894
|
classGap: any;
|
|
891
|
-
configDragMode: any;
|
|
892
895
|
configTypeDisplay: any;
|
|
893
896
|
/**
|
|
894
897
|
* configEnableZoom dùng cho object_product_image
|
|
@@ -911,7 +914,7 @@ declare class WbHideShowConfig implements OnInit {
|
|
|
911
914
|
updateHidden(key: string, value: boolean): void;
|
|
912
915
|
onChangedirection(): void;
|
|
913
916
|
static ɵfac: i0.ɵɵFactoryDeclaration<WbHideShowConfig, never>;
|
|
914
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WbHideShowConfig, "wb-hide-show-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "classCursor": { "alias": "classCursor"; "required": false; }; "classOverflowY": { "alias": "classOverflowY"; "required": false; }; "classFlexDirection": { "alias": "classFlexDirection"; "required": false; }; "classGap": { "alias": "classGap"; "required": false; }; "
|
|
917
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WbHideShowConfig, "wb-hide-show-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "classCursor": { "alias": "classCursor"; "required": false; }; "classOverflowY": { "alias": "classOverflowY"; "required": false; }; "classFlexDirection": { "alias": "classFlexDirection"; "required": false; }; "classGap": { "alias": "classGap"; "required": false; }; "configTypeDisplay": { "alias": "configTypeDisplay"; "required": false; }; "configEnableZoom": { "alias": "configEnableZoom"; "required": false; }; }, {}, never, never, true, never>;
|
|
915
918
|
}
|
|
916
919
|
|
|
917
920
|
declare class WbIconConfig implements OnInit {
|
|
@@ -1214,6 +1217,9 @@ declare class WbTextFormatConfig implements OnInit {
|
|
|
1214
1217
|
onChangeMaxLine(): void;
|
|
1215
1218
|
updateClassAndConfig(): void;
|
|
1216
1219
|
updateClass(): void;
|
|
1220
|
+
/**
|
|
1221
|
+
* do text dùng min-height, mỗi lần chỉnh sửa dữ liệu xong sẽ update lại min-height cho phù hợp
|
|
1222
|
+
*/
|
|
1217
1223
|
updateConfig(): void;
|
|
1218
1224
|
static ɵfac: i0.ɵɵFactoryDeclaration<WbTextFormatConfig, never>;
|
|
1219
1225
|
static ɵcmp: i0.ɵɵComponentDeclaration<WbTextFormatConfig, "wb-text-format-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "classContent": { "alias": "classContent"; "required": false; }; "classGap": { "alias": "classGap"; "required": false; }; "classCursor": { "alias": "classCursor"; "required": false; }; "classFontWeight": { "alias": "classFontWeight"; "required": false; }; "classAlign": { "alias": "classAlign"; "required": false; }; "classLineHeight": { "alias": "classLineHeight"; "required": false; }; "classLetterSpacing": { "alias": "classLetterSpacing"; "required": false; }; "classAlignFlex": { "alias": "classAlignFlex"; "required": false; }; "classMargin": { "alias": "classMargin"; "required": false; }; "classMaxLine": { "alias": "classMaxLine"; "required": false; }; "classPadding": { "alias": "classPadding"; "required": false; }; "classMinWidth": { "alias": "classMinWidth"; "required": false; }; "classMinHeight": { "alias": "classMinHeight"; "required": false; }; "configContent": { "alias": "configContent"; "required": false; }; "configNotFound": { "alias": "configNotFound"; "required": false; }; "configHref": { "alias": "configHref"; "required": false; }; "configTag": { "alias": "configTag"; "required": false; }; "configMaxLine": { "alias": "configMaxLine"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "configFormatDate": { "alias": "configFormatDate"; "required": false; }; }, {}, never, never, true, never>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fw-webbuilder",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.3.0",
|
|
6
|
-
"@angular/core": "^20.3.0"
|
|
6
|
+
"@angular/core": "^20.3.0",
|
|
7
|
+
"socket.io-client": "^4.8.1",
|
|
8
|
+
"ng-zorro-antd": "^20.4.3",
|
|
9
|
+
"@ckeditor/ckeditor5-angular": "^10.0.0",
|
|
10
|
+
"ckeditor5": "^46.1.1",
|
|
11
|
+
"dayjs": "^1.11.18",
|
|
12
|
+
"@ngx-translate/core": "^17.0.0",
|
|
13
|
+
"@ngx-translate/http-loader": "^17.0.0"
|
|
7
14
|
},
|
|
8
15
|
"dependencies": {
|
|
9
16
|
"tslib": "^2.3.0"
|