ionic-vhframeworks 8.4.8 → 8.5.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.
@@ -11872,6 +11872,18 @@ export declare class VhQueryAutoWeb {
11872
11872
  constructor(vhMGDB_database: VhMGDB_database, vhMGDB_socketMongoDB: VhMGDB_socketMongoDB, vhQuery: VhQuery, vhAuth: VhAuth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_auth: VhMGDB_auth, vhOTP: VhOTP, vhAlgorithm: VhAlgorithm, vhBuildAutoWeb: VhBuildAutoWeb, vhDesignAutoWeb: VhDesignAutoWeb, vhEventMediator: VhEventMediator, http: HttpClient, renderFactory: RendererFactory2);
11873
11873
  /**
11874
11874
  * Hàm tạo template theo chuẩn flexbox từ tempplate theo chuẩn position
11875
+ * @example:
11876
+ * let id_node = (this.blockChoosing ? this.blockChoosing._id : this.objectChoosing?._id)?(this.blockChoosing ? this.blockChoosing._id : this.objectChoosing?._id):this.id_page;
11877
+ this.vhQueryAutoWeb.createFlexboxTemplate(id_node)
11878
+ .then((container) => {
11879
+ //biến container chứa tất cả các html sau khi đc tạo ra
11880
+ if (container) {
11881
+ this.exportToCSS(container);
11882
+ this.exportToHtml(container);
11883
+ } else {
11884
+ console.log('vui lòng chọn component để tạo template')
11885
+ }
11886
+ })
11875
11887
  * @param id_node
11876
11888
  * @returns
11877
11889
  */
@@ -11881,71 +11893,66 @@ export declare class VhQueryAutoWeb {
11881
11893
  * @param id_node
11882
11894
  * @returns
11883
11895
  */
11884
- binarizeAndFlexboxNode(id_node: string): Promise<unknown>;
11896
+ private binarizeAndFlexboxTree;
11885
11897
  /**
11886
- * Tính và trả về các giá trị {offsetLeft, offsetTop, offsetWidth, offsetHeight} của nhóm các comp trong mang _objects
11887
- * @param _objects
11888
- * @returns
11889
- */
11890
- getOffset_Left_Top_Width_Height(_objects: any): {
11891
- offsetLeft: any;
11892
- offsetTop: any;
11893
- offsetWidth: number;
11894
- offsetHeight: number;
11895
- };
11898
+ * Tính và trả về các giá trị {offsetLeft, offsetTop, offsetWidth, offsetHeight} của nhóm các comp trong mang _objects
11899
+ * @param _objects
11900
+ * @returns
11901
+ */
11902
+ private getOffset_Left_Top_Width_Height;
11896
11903
  /**
11897
- * Hàm kiểm trả và sắp xếp các comp, nhóm comp theo chiều dọc
11898
- * @param arrayPosition
11899
- * @param dataPositionNode
11900
- * @returns
11901
- */
11902
- checkAndArangeVertical(arrayPosition: any, dataPositionNode: any): any[];
11904
+ * Hàm kiểm trả và sắp xếp các comp, nhóm comp theo chiều dọc
11905
+ * @param arrayPositionInNode
11906
+ * @param dataPositionRoot
11907
+ * @returns
11908
+ */
11909
+ private checkAndArangeVertical;
11903
11910
  /**
11904
- * Hàm kiểm trả và sắp xếp các comp, nhóm comp theo chiều ngang
11905
- * @param arrayPosition
11906
- * @param dataPositionNode
11907
- * @returns
11908
- */
11909
- checkAndArangeHorizontal(arrayPosition: any, dataPositionNode: any): any[];
11911
+ * Hàm kiểm trả và sắp xếp các comp, nhóm comp theo chiều ngang
11912
+ * @param arrayPositionInNode
11913
+ * @param dataPositionRoot
11914
+ * @returns
11915
+ */
11916
+ private checkAndArangeHorizontal;
11910
11917
  /**
11911
- * Hàm kiểm tra nhóm comp arrayPosition có thể đc sắp xếp theo chiều dọc không?
11912
- * @param arrayPosition
11913
- * @returns
11914
- */
11915
- checkCanArangeVertical(arrayPosition: any): boolean;
11918
+ * Hàm kiểm tra nhóm comp arrayPositionInNode có thể đc sắp xếp theo chiều dọc không?
11919
+ * @param arrayPositionInNode
11920
+ * @returns
11921
+ */
11922
+ private checkCanArangeVertical;
11916
11923
  /**
11917
- * Hàm kiểm tra nhóm comp arrayPosition có thể đc sắp xếp theo chiều ngang không?
11918
- * @param arrayPosition
11919
- * @returns
11920
- */
11921
- checkCanArangeHorizontal(arrayPosition: any): boolean;
11924
+ * Hàm kiểm tra nhóm comp arrayPositionInNode có thể đc sắp xếp theo chiều ngang không?
11925
+ * @param arrayPositionInNode
11926
+ * @returns
11927
+ */
11928
+ private checkCanArangeHorizontal;
11922
11929
  /**
11923
- * Tìm mảng objects của node có _id là id_node
11924
- * @param id_node
11925
- * @param node
11926
- * @returns
11927
- */
11928
- findObjectsOfNode(id_node: any, node: any): any;
11930
+ * Tìm mảng objects của node có _id là id_node
11931
+ * @param id_node
11932
+ * @param node
11933
+ * @returns
11934
+ */
11935
+ private findNode;
11929
11936
  /**
11930
- * Hàm tìm node cha cho đối tượng con có _id là id_node_child
11931
- * @param id_node_child
11932
- * @param node
11933
- * @returns
11934
- */
11935
- findParentNode(id_node_child: any, node: any): any;
11937
+ * Tìm mảng objects của node có _id là id_node
11938
+ * @param id_node
11939
+ * @param node
11940
+ * @returns
11941
+ */
11942
+ private findObjectsOfNode;
11936
11943
  /**
11937
- * Hàm tạo component <ewa->
11938
- * @param object
11939
- * @param divComponent
11940
- */
11941
- createComponent(object: any, divComponent: any, componentlist: any): void;
11942
- getComponentList(): Promise<unknown>;
11944
+ * Hàm tạo component <ewa->
11945
+ * @param object
11946
+ * @param divComponent
11947
+ */
11948
+ private createComponent;
11949
+ private getComponentList;
11943
11950
  /**
11944
- * Hàm tạo các thẻ div thêm vào file HTML từ dữ liệu của trang design
11945
- * @param objects
11946
- * @param container
11947
- */
11948
- createHTMLandCSSandJS(objects: any, container: any, componentlist: any): void;
11951
+ * Hàm tạo các thẻ div thêm vào file HTML từ dữ liệu của trang design
11952
+ * @param objects
11953
+ * @param container
11954
+ */
11955
+ private createHTMLandCSSandJS;
11949
11956
  /**
11950
11957
  * Khi người dùng vô web,app thì cần load chi nhánh về trước để người dùng chọn chi nhánh trải nghiệm
11951
11958
  * Lưu ý: hàm này chỉ dùng cho dự án Build
@@ -12850,6 +12857,7 @@ export declare class VhQueryAutoWeb {
12850
12857
  * @return Promise => null or string
12851
12858
  */
12852
12859
  getIDPage_byLink(link: any): Promise<unknown>;
12860
+ getDetailFreeBlocks(): Promise<unknown>;
12853
12861
  /**
12854
12862
  * Hàm này sẽ bỏ không dùng nữa vì đã có page_detail
12855
12863
  * Hàm này trả về 1 page (có đủ thông tin page), trong page có trường blocks (có đủ thông tin từng block),
@@ -18990,7 +18998,18 @@ export declare class VhDesignAutoWeb {
18990
18998
  signUpWebAppOwner(email: string, password: string, phoneNumber: any, info: any): Promise<unknown>;
18991
18999
  detailPage: any;
18992
19000
  detailFreeBlock: any;
19001
+ /**
19002
+ * vhDesignAutoWeb
19003
+ * @param id_page
19004
+ * @returns
19005
+ */
18993
19006
  getDetailPage(id_page: any): Promise<unknown>;
19007
+ getDetailFreeBlocks(): Promise<unknown>;
19008
+ /**
19009
+ * vhDesignAutoWeb
19010
+ * @param id_block
19011
+ * @returns
19012
+ */
18994
19013
  getDetailFreeBlock(id_block: any): Promise<unknown>;
18995
19014
  getDetailBlock(id_block: any): Promise<unknown>;
18996
19015
  getDetailBlock_byBlock(block: any): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "8.4.8",
3
+ "version": "8.5.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"