ionic-vhframeworks 9.8.4 → 9.8.6

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.
@@ -1,8 +1,8 @@
1
1
  export declare function checkSales_addProductAndSubsProduct(product: any, subProductArray: any): boolean;
2
2
  export declare function checkSales_addSubProduct(id_product: string, subProduct: any): boolean;
3
3
  export declare function checkSales_updateSubProduct(id_subproduct: string, value: any): boolean;
4
- export declare function checkSales_updateProduct_Type1(id_product: string, value: any): boolean;
5
- export declare function checkSales_updateProduct_Type1_fw(id_product: string, value: any): boolean;
4
+ export declare function checkSales_updateProduct_Type3(id_product: string, value: any): boolean;
5
+ export declare function checkSales_updateProduct_Type3_fw(id_product: string, value: any): boolean;
6
6
  export declare function checkSales_updateProduct_Type2(id_product: string, value: any): boolean;
7
7
  export declare function checkSales_updateProduct_Type5(id_product: string, value: any): boolean;
8
8
  export declare function checkCafe_addProductAndSubsProduct_type1(product: any, subProductArray: any): boolean;
@@ -345,6 +345,12 @@ export declare class VhAlgorithm {
345
345
  * Hàm bỏ tất cả các ký tự trống trong chuỗi
346
346
  */
347
347
  removeAllSpaces(str: string): string;
348
+ /**
349
+ * Hàm trả ra tất cả chuỗi con liên tiếp từ 2 từ trở lên
350
+ * @param str
351
+ * @returns array
352
+ */
353
+ getWordSubstrings(str: string): string[];
348
354
  /**
349
355
  * Hàm này lấy về 1 unit của sản phẩm theo ratio truyền vào
350
356
  * @example
@@ -3043,6 +3049,17 @@ export declare class VhQueryCafe {
3043
3049
  * @return Promise => null
3044
3050
  */
3045
3051
  refreshLocalProducts(): any;
3052
+ /**
3053
+ * @example:
3054
+ * this.vhQueryCafe.refreshLocalProducts_Delete_Hidden(3)
3055
+ .then(()=>{
3056
+ do something.....
3057
+ })
3058
+ * Hàm này refresh giá trị mới nhất cho hàm getlocalProduct(), getlocalProducts() trong localstorage
3059
+ * @param type
3060
+ * @return Promise => null
3061
+ */
3062
+ refreshLocalProducts_Delete_Hidden(type: any): any;
3046
3063
  /**
3047
3064
  * @example:
3048
3065
  * this.vhQueryCafe.addProduct({name:'camera 2', quantity:20, price:200000})
@@ -13814,6 +13831,37 @@ export declare class VhQueryAutoWeb {
13814
13831
  * @return Promise => page = {}
13815
13832
  */
13816
13833
  getDetailFrame(id_frame: any): Promise<unknown>;
13834
+ /**
13835
+ * Hàm này lấy nội dụng file sitemap.xml về và hiển thị lên
13836
+ * @example:
13837
+ * this.vhQueryAutoWeb.getFileSitemap()
13838
+ .then((rsp)=>{
13839
+ console.log('getFileSitemap', rsp);
13840
+ },(error:any)=>{
13841
+ console.log('error', error);
13842
+ })
13843
+ * @return Promise => rsp ={vcode, msg, data(object)} / error
13844
+ * @notice : hàm này chỉ add được dữ liệu sau khi nhân viên quản trị đã đăng nhập
13845
+ * vcode == 0: success
13846
+ * vcode == 11: 'not logged in
13847
+ */
13848
+ getFileSitemap(): Promise<unknown>;
13849
+ /**
13850
+ * Hàm này lấy nội dụng đang hiển thị xuống file sitemap.xml
13851
+ * @example:
13852
+ * this.vhQueryAutoWeb.saveFileSitemap()
13853
+ .then((rsp)=>{
13854
+ console.log('saveFileSitemap', rsp);
13855
+ },(error:any)=>{
13856
+ console.log('error', error);
13857
+ })
13858
+ * @param records: [{loc, lastmod, changefreq, priority},...]
13859
+ * @return Promise => rsp ={vcode, msg, data(object)} / error
13860
+ * @notice : hàm này chỉ add được dữ liệu sau khi nhân viên quản trị đã đăng nhập
13861
+ * vcode == 0: success
13862
+ * vcode == 11: 'not logged in
13863
+ */
13864
+ saveFileSitemap(records: any): Promise<unknown>;
13817
13865
  /**
13818
13866
  * 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
13819
13867
  * @example:
@@ -23328,6 +23376,17 @@ export declare class VhQuerySales {
23328
23376
  * @return Promise => null
23329
23377
  */
23330
23378
  refreshLocalProducts(): any;
23379
+ /**
23380
+ * @example:
23381
+ * this.vhQuerySales.refreshLocalProducts_Delete_Hidden(3)
23382
+ .then(()=>{
23383
+ do something.....
23384
+ })
23385
+ * Hàm này refresh giá trị mới nhất cho hàm getlocalProduct(), getlocalProducts() trong localstorage
23386
+ * @param type
23387
+ * @return Promise => null
23388
+ */
23389
+ refreshLocalProducts_Delete_Hidden(type: any): any;
23331
23390
  /**
23332
23391
  * @example:
23333
23392
  * this.vhQuerySales.addProduct({name:'camera 2', quantity:20, price:200000})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.8.4",
3
+ "version": "9.8.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"