ionic-vhframeworks 8.3.6 → 8.3.8

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.
@@ -12840,9 +12840,11 @@ export declare class VhQueryAutoWeb {
12840
12840
  getDetailPage(id_page: any): Promise<unknown>;
12841
12841
  /**
12842
12842
  * Hàm kiểm tra block hay object có phải là nhân bản không
12843
- * this.vhQueryAutoWeb.isCloneBlockOrObject(block_or_object)
12843
+ * @example:
12844
+ let block_or_object = this.blockChoosing||this.objectChoosing;
12845
+ this.vhQueryAutoWeb.isCloneBlockOrObject(block_or_object)
12844
12846
  * @param block_or_object
12845
- * @returns
12847
+ * @returns boolean => true/false
12846
12848
  */
12847
12849
  isCloneBlockOrObject(block_or_object: any): boolean;
12848
12850
  /**
@@ -12857,59 +12859,6 @@ export declare class VhQueryAutoWeb {
12857
12859
  * @return Promise => array = [{_id, name, type},...]
12858
12860
  */
12859
12861
  getCanBeClonedBlockOrObject(id_node: string, type: string): Promise<unknown>;
12860
- /**
12861
- * @example:
12862
- * this.vhQueryAutoWeb.CreatePageDetail({name:'Danh mục 1'})
12863
- .then((page)=>{
12864
- console.log('CreatePageDetail', page);
12865
- },(error:any)=>{
12866
- console.log('error', error);
12867
- })
12868
- * @param data
12869
- * @return Promise => obj = {}
12870
- * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
12871
- */
12872
- CreatePageDetail(data: any): Promise<unknown>;
12873
- /**
12874
- * @example:
12875
- * this.vhQueryAutoWeb.updatePageDetail('5fb6780ca2148e09806c5b01', {quantity:400})
12876
- .then((bool:any)=>{
12877
- console.log('updatePageDetail', bool);
12878
- })
12879
- * @param id_page_detail
12880
- * @param data
12881
- * @return Promise => bool = true or false
12882
- */
12883
- updatePageDetail(id_page_detail: string, data: object): Promise<unknown>;
12884
- /**
12885
- * @example:
12886
- * this.vhQueryAutoWeb.deletePageDetail('5fb67fda87c0f21d484cbdf3')
12887
- .then((bool:any)=>{
12888
- console.log('deletePageDetail', bool);
12889
- })
12890
- * @param id_page_detail
12891
- * @return Promise => bool = true or false
12892
- */
12893
- deletePageDetail(id_page_detail: string): Promise<unknown>;
12894
- /**
12895
- * @example
12896
- * this.vhQueryAutoWeb.getPageDetail('5fb67fda87c0f21d484cbdf3')
12897
- .then((page)=>{
12898
- console.log('getPageDetail', page);
12899
- })
12900
- * @param id_page_detail
12901
- * @return Promise => obj ={} or null
12902
- */
12903
- getPageDetail(id_page_detail: string): Promise<unknown>;
12904
- /**
12905
- * @example
12906
- * this.vhQueryAutoWeb.getPageDetails_byIDPage()
12907
- .then((pages)=>{
12908
- console.log('getPageDetails_byIDPage', pages);
12909
- })
12910
- * @return Promise => array(object) = [{},{},..]
12911
- */
12912
- getPageDetails_byIDPage(id_page: string): Promise<unknown>;
12913
12862
  /**
12914
12863
  * @example:
12915
12864
  * this.vhQueryAutoWeb.addBlock({name:'Danh mục 1'})
@@ -13004,97 +12953,6 @@ export declare class VhQueryAutoWeb {
13004
12953
  * @return Promise => detailblock = {}
13005
12954
  */
13006
12955
  getDetailBlock_byBlock(block: any): Promise<unknown>;
13007
- /**
13008
- * @example:
13009
- * this.vhQueryAutoWeb.addFrame({name:'Danh mục 1'})
13010
- .then((frame)=>{
13011
- console.log('addFrame', frame);
13012
- },(error:any)=>{
13013
- console.log('error', error);
13014
- })
13015
- * @param data
13016
- * @return Promise => obj = {}
13017
- * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
13018
- */
13019
- addFrame(data: any): Promise<unknown>;
13020
- /**
13021
- * @example:
13022
- * this.vhQueryAutoWeb.updateFrame('5fb6780ca2148e09806c5b01', {quantity:400})
13023
- .then((bool:any)=>{
13024
- console.log('updateFrame', bool);
13025
- })
13026
- * @param id_frame
13027
- * @param data
13028
- * @return Promise => bool = true or false
13029
- */
13030
- updateFrame(id_frame: string, data: object): Promise<unknown>;
13031
- /**
13032
- * @example:
13033
- * this.vhQueryAutoWeb.deleteFrame('5fb67fda87c0f21d484cbdf3')
13034
- .then((bool:any)=>{
13035
- console.log('deleteFrame', bool);
13036
- })
13037
- * @param id_frame
13038
- * @return Promise => bool = true or false
13039
- */
13040
- deleteFrame(id_frame: string): Promise<unknown>;
13041
- /**
13042
- * @example
13043
- * this.vhQueryAutoWeb.getFrame('5fb67fda87c0f21d484cbdf3')
13044
- .then((block)=>{
13045
- console.log('getFrame', block);
13046
- })
13047
- * @param id_frame
13048
- * @return Promise => obj ={} or null
13049
- */
13050
- getFrame(id_frame: string): Promise<unknown>;
13051
- /**
13052
- * Hàm này sẽ bỏ vì đã có page_detail
13053
- * @example
13054
- * this.vhQueryAutoWeb.getFrames_byIDblock()
13055
- .then((frames)=>{
13056
- console.log('getFrames_byIDblock', frames);
13057
- })
13058
- * @param id_block
13059
- * @return Promise => array(object) = [{},{},..]
13060
- */
13061
- getFrames_byIDblock(id_block: any): Promise<unknown>;
13062
- /**
13063
- * @example
13064
- * this.vhQueryAutoWeb.getFrames_byIDframe('00Tm41GNYN0aYbAtuncH')
13065
- .then((frames)=>{
13066
- console.log('getFrames_byIDframe', frames);
13067
- })
13068
- * @param id_block
13069
- * @return Promise => array(object) = [{},{},..]
13070
- */
13071
- getFrames_byIDframe(id_frame: any): Promise<unknown>;
13072
- /**
13073
- * @example
13074
- * this.vhQueryAutoWeb.getFrames_byFields({id_block:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0)
13075
- .then((frames)=>{
13076
- console.log('getFrames_byFields', frames);
13077
- })
13078
- * @param query
13079
- * @param projection
13080
- * @param sort
13081
- * @param limit
13082
- * @return Promise => array(object) = [{},{},..]
13083
- */
13084
- getFrames_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
13085
- /**
13086
- * Hàm này trả về 1 frame (có đủ thông tin frame), trong mỗi frame có trường objects (có đủ thông tin từng object)
13087
- * @example
13088
- * this.vhQueryAutoWeb.getDetailFrame('00Tm41GNYN0aYbAtuncH')
13089
- .then((frame)=>{
13090
- console.log('getDetailFrame', frame);
13091
- }, error=>{
13092
- console.log('error', error);
13093
- })
13094
- * @param id_frame
13095
- * @return Promise => page = {}
13096
- */
13097
- getDetailFrame(id_frame: any): Promise<unknown>;
13098
12956
  /**
13099
12957
  * @example:
13100
12958
  * this.vhQueryAutoWeb.addObject({name:'Danh mục 1'})
@@ -13208,6 +13066,97 @@ export declare class VhQueryAutoWeb {
13208
13066
  * @return Promise => array(object) = [{},{},..]
13209
13067
  */
13210
13068
  getObjects_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
13069
+ /**
13070
+ * @example:
13071
+ * this.vhQueryAutoWeb.addFrame({name:'Danh mục 1'})
13072
+ .then((frame)=>{
13073
+ console.log('addFrame', frame);
13074
+ },(error:any)=>{
13075
+ console.log('error', error);
13076
+ })
13077
+ * @param data
13078
+ * @return Promise => obj = {}
13079
+ * Luu ý: chỉ có 2 trường hợp, hoặc là thêm thành công, hoặc là báo lỗi error
13080
+ */
13081
+ addFrame(data: any): Promise<unknown>;
13082
+ /**
13083
+ * @example:
13084
+ * this.vhQueryAutoWeb.updateFrame('5fb6780ca2148e09806c5b01', {quantity:400})
13085
+ .then((bool:any)=>{
13086
+ console.log('updateFrame', bool);
13087
+ })
13088
+ * @param id_frame
13089
+ * @param data
13090
+ * @return Promise => bool = true or false
13091
+ */
13092
+ updateFrame(id_frame: string, data: object): Promise<unknown>;
13093
+ /**
13094
+ * @example:
13095
+ * this.vhQueryAutoWeb.deleteFrame('5fb67fda87c0f21d484cbdf3')
13096
+ .then((bool:any)=>{
13097
+ console.log('deleteFrame', bool);
13098
+ })
13099
+ * @param id_frame
13100
+ * @return Promise => bool = true or false
13101
+ */
13102
+ deleteFrame(id_frame: string): Promise<unknown>;
13103
+ /**
13104
+ * @example
13105
+ * this.vhQueryAutoWeb.getFrame('5fb67fda87c0f21d484cbdf3')
13106
+ .then((block)=>{
13107
+ console.log('getFrame', block);
13108
+ })
13109
+ * @param id_frame
13110
+ * @return Promise => obj ={} or null
13111
+ */
13112
+ getFrame(id_frame: string): Promise<unknown>;
13113
+ /**
13114
+ * Hàm này sẽ bỏ vì đã có page_detail
13115
+ * @example
13116
+ * this.vhQueryAutoWeb.getFrames_byIDblock()
13117
+ .then((frames)=>{
13118
+ console.log('getFrames_byIDblock', frames);
13119
+ })
13120
+ * @param id_block
13121
+ * @return Promise => array(object) = [{},{},..]
13122
+ */
13123
+ getFrames_byIDblock(id_block: any): Promise<unknown>;
13124
+ /**
13125
+ * @example
13126
+ * this.vhQueryAutoWeb.getFrames_byIDframe('00Tm41GNYN0aYbAtuncH')
13127
+ .then((frames)=>{
13128
+ console.log('getFrames_byIDframe', frames);
13129
+ })
13130
+ * @param id_block
13131
+ * @return Promise => array(object) = [{},{},..]
13132
+ */
13133
+ getFrames_byIDframe(id_frame: any): Promise<unknown>;
13134
+ /**
13135
+ * @example
13136
+ * this.vhQueryAutoWeb.getFrames_byFields({id_block:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0)
13137
+ .then((frames)=>{
13138
+ console.log('getFrames_byFields', frames);
13139
+ })
13140
+ * @param query
13141
+ * @param projection
13142
+ * @param sort
13143
+ * @param limit
13144
+ * @return Promise => array(object) = [{},{},..]
13145
+ */
13146
+ getFrames_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
13147
+ /**
13148
+ * Hàm này trả về 1 frame (có đủ thông tin frame), trong mỗi frame có trường objects (có đủ thông tin từng object)
13149
+ * @example
13150
+ * this.vhQueryAutoWeb.getDetailFrame('00Tm41GNYN0aYbAtuncH')
13151
+ .then((frame)=>{
13152
+ console.log('getDetailFrame', frame);
13153
+ }, error=>{
13154
+ console.log('error', error);
13155
+ })
13156
+ * @param id_frame
13157
+ * @return Promise => page = {}
13158
+ */
13159
+ getDetailFrame(id_frame: any): Promise<unknown>;
13211
13160
  /**
13212
13161
  * Hàm này dùng để thêm trường mới (trường động) cho bất kỳ ngành hàng nào
13213
13162
  * @example:
@@ -19384,13 +19333,6 @@ export declare class VhDesignAutoWeb {
19384
19333
  * @return Promise => bool = true or false
19385
19334
  */
19386
19335
  static_deleteDoc_fromDatabase(database: string, colname: string, id_doc: string): Promise<unknown>;
19387
- /**
19388
- * @example:
19389
- * this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
19390
- * @param block_or_object
19391
- * @returns
19392
- */
19393
- isCloneBlockOrObject(block_or_object: any): boolean;
19394
19336
  /**
19395
19337
  * @example
19396
19338
  * this.vhDesignAutoWeb.static_getDoc_fromService('a3y5AmtZEjx0FcRfGP7k', 'categories', '5fb67fda87c0f21d484cbdf3')
@@ -19469,6 +19411,13 @@ export declare class VhDesignAutoWeb {
19469
19411
  * @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
19470
19412
  */
19471
19413
  searchList(colname: string, array_field: any, value: string, sort: object, limit: number, page: number): Promise<unknown>;
19414
+ /**
19415
+ * @example:
19416
+ * this.vhDesignAutoWeb.isCloneBlockOrObject(block_or_object)
19417
+ * @param block_or_object
19418
+ * @returns
19419
+ */
19420
+ isCloneBlockOrObject(block_or_object: any): boolean;
19472
19421
  static ɵfac: i0.ɵɵFactoryDeclaration<VhDesignAutoWeb, never>;
19473
19422
  static ɵprov: i0.ɵɵInjectableDeclaration<VhDesignAutoWeb>;
19474
19423
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "8.3.6",
3
+ "version": "8.3.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"