ionic-vhframeworks 8.7.7 → 8.8.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.
@@ -273,9 +273,10 @@ export declare class VhAlgorithm {
273
273
  waitingStack(): Promise<unknown>;
274
274
  searchList(value: any, array_list: any, array_field: any): any[];
275
275
  /**
276
+ * Ham đổi chuỗi alias có dấu thành không dấu
276
277
  * @example:
277
278
  * this.vhAlgorithm.changeAlias(alias);
278
- * Ham đổi chuỗi alias có dấu thành không dấu
279
+ * @alias: chuỗi có dấu các ký tự đặc biệt
279
280
  */
280
281
  changeAlias(alias: any): any;
281
282
  /**
@@ -1840,10 +1841,8 @@ export declare class VhImage {
1840
1841
  .then((rsp:any)=>{
1841
1842
  console.log('rsp', rsp);
1842
1843
  if(rsp.vcode === 0){
1843
- if(options.compress_type == 'no-compress-all'){
1844
+ if(options.compress_type == 'no-compress'){
1844
1845
 
1845
- }else if(options.compress_type == 'no-compress-one'){
1846
-
1847
1846
  }else if(options.compress_type == 'compress-sreen'){
1848
1847
 
1849
1848
  }else if(options.compress_type == 'compress-frame'){
@@ -1866,11 +1865,10 @@ export declare class VhImage {
1866
1865
  * @param path: 'images/database/categories' or 'images/database/categories/products'
1867
1866
  * @param options: {compress_type, resolution}
1868
1867
  * @field compress_type:
1869
- * + 'no-compress-all': Không nén ảnh sau khi tải lên, 1 ảnh dùng chung cho tất cả các thiết bị (platform)
1870
- * + 'no-compress-one': Không nén ảnh sau khi tải lên, mỗi thiết bị upload lên server 1 ảnh riêng
1868
+ * + 'no-compress': Không nén ảnh sau khi tải lên
1871
1869
  * + 'compress-sreen': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi thiết bị
1872
1870
  * + 'compress-frame': Nén ảnh sau khi tải lên, nén ảnh theo tỉ lệ màn hình của mỗi khung hình thiết bị
1873
- * @field resolution: {desktop: {width, height}, mobile_landscape: {}, mobile_portrait:{}, tablet_landscape:{}, tablet_portrait:{}}
1871
+ * @field resolution: {} hoặc {width, height} của màn hình hoặc {width, height} của khung hình
1874
1872
  * @returns Object => obj = {vcode, message, data, error}
1875
1873
  * vcode === 0 : upload ảnh thành công
1876
1874
  * vcode === 1 : lỗi import file ảnh
@@ -13342,6 +13340,19 @@ export declare class VhQueryAutoWeb {
13342
13340
  * @return Promise => array(object) = [{},{},..]
13343
13341
  */
13344
13342
  getNewFields_byFields(query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
13343
+ /**
13344
+ * @example
13345
+ * this.vhQueryAutoWeb.getNewFields_byFields_byPages({id_object:{$eq:'00Tm41GNYN0aYbAtuncH'}}, {}, {}, 0,0)
13346
+ .then((newfields)=>{
13347
+ console.log('getNewFields_byFields_byPages', newfields);
13348
+ })
13349
+ * @param query
13350
+ * @param projection
13351
+ * @param sort
13352
+ * @param limit
13353
+ * @return Promise => array(object) = [{},{},..]
13354
+ */
13355
+ getNewFields_byFields_byPages(query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
13345
13356
  /**
13346
13357
  * @example:
13347
13358
  * this.vhQueryAutoWeb.addProduct({name:'Sản phẩm 1'})
@@ -14693,9 +14704,7 @@ export declare class VhQueryAutoWeb {
14693
14704
  * @param query
14694
14705
  * @param value
14695
14706
  * @param sort null hoặc {}:không sắp xếp; {date:1}: sắp xếp date theo ASC; {date:-1}: sắp xếp date theo DESC
14696
- * @param limit null hoặc 0: không giới hạn record get về; 2: get về 2 record
14697
- * @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
14698
- * @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
14707
+ * @return Promise object => response = {vcode, msg, data(array)}
14699
14708
  */
14700
14709
  searchList(colname: string, value: any, query?: any, sort?: object): Promise<unknown>;
14701
14710
  /**
@@ -14802,8 +14811,8 @@ export declare class VhQueryAutoWeb {
14802
14811
  */
14803
14812
  getCategorys_byFields(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
14804
14813
  /**
14805
- * @example:
14806
- * this.vhQueryAutoWeb.getCategorySteps_byIdFatherCategory("5QKS9fq2rsl4egOJCf7h", {},{},6,1)
14814
+ * @example:▲
14815
+ * this.vhQueryAutoWeb.getCategorySteps_byIdFatherCategory("5QKS9fq2rsl4egOJCf7h", {}, {},{},6,1)
14807
14816
  .then(response=>{
14808
14817
  console.log('response', response);
14809
14818
  if(response.vcode === 0){
@@ -14813,6 +14822,7 @@ export declare class VhQueryAutoWeb {
14813
14822
  },(error:any)=>{
14814
14823
  console.log('error', error)
14815
14824
  })
14825
+ * @param query
14816
14826
  * @param id_father_category: chuối giá trị "5QKS9fq2rsl4egOJCf7h" (một nhánh) hoặc chuỗi trống "" (cả cây danh mục)
14817
14827
  * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
14818
14828
  * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
@@ -14820,7 +14830,7 @@ export declare class VhQueryAutoWeb {
14820
14830
  * @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
14821
14831
  * @return Promise object => response = {vcode, msg, data(array), limit, page, totalpages}
14822
14832
  */
14823
- getCategorySteps_byIdFatherCategory(id_father_category: string, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
14833
+ getCategorySteps_byIdFatherCategory(id_father_category: string, query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
14824
14834
  /**
14825
14835
  * Lấy về cây danh mục phân cấp mới theo các phần tử nhánh và lá trong mảng IdCategoryArray
14826
14836
  * @example:
@@ -20027,6 +20037,23 @@ export declare class VhDesignAutoWeb {
20027
20037
  * @return Promise => array(object) = [{},{},..]
20028
20038
  */
20029
20039
  static_getDocs_fromService_byFields(database: string, colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
20040
+ /**
20041
+ * @example:
20042
+ * this.vhDesignAutoWeb.static_getDocs_fromService_byFields_byPages('uvpDssEj8bizjfseCgAc', webapp_abouts', {name:{$eq:'ten abc'}}, {},{},1)
20043
+ .then(array=>{
20044
+ console.log('array', array);
20045
+ },(error:any)=>{
20046
+ console.log('error', error)
20047
+ })
20048
+ * @param colname
20049
+ * @param query
20050
+ * @param projection — đang tìm hiểu, tạm thời để giá trị là {}
20051
+ * @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
20052
+ * @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
20053
+ * @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
20054
+ * @return Promise => array(object) = [{},{},..]
20055
+ */
20056
+ static_getDocs_fromService_byFields_byPages(database: string, colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
20030
20057
  /**
20031
20058
  * @example:
20032
20059
  * this.vhDesignAutoWeb.getDocs_byFields_fromService_vhuserweb('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "8.7.7",
3
+ "version": "8.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"