ionic-vhframeworks 9.0.2 → 9.0.5

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.
@@ -177,6 +177,29 @@ export declare class VhAlgorithm {
177
177
  private papa;
178
178
  private dom;
179
179
  constructor(platform: Platform, file: File, socialSharing: SocialSharing, papa: Papa, dom: DomSanitizer);
180
+ private _keyStr;
181
+ encodeString(e: any): string;
182
+ decodeString(e: any): string;
183
+ private _utf8_encode;
184
+ private _utf8_decode;
185
+ /**
186
+ * Hàm dùng xác định biến, trường dữ liệu nào đó có phải là stringify (JSON) hay ko (stringify là loại dữ liệu
187
+ * mà có thể thể parse thành mảng hoặc object)
188
+ * @example:
189
+ * obj = this.vhAlgorithm.isJSON(stringify)
190
+ * @param stringify
191
+ * @returns true/false
192
+ */
193
+ isJSON(stringify: any): boolean;
194
+ /**
195
+ * Do mysql ko lưu đc kiểu dữ liệu array, object nên khi lưu các trường này phải chuyển sang json(string),
196
+ * do đó khi lấy về phải chuyển các trường này lại thành array, object
197
+ * @example:
198
+ * obj = this.vhAlgorithm.normalizationData_fromMySQL(data)
199
+ * @param docs
200
+ * @returns
201
+ */
202
+ normalizationData_fromMySQL(docs: any): any;
180
203
  /**
181
204
  * Chuyển kiểu dữ liệu obj là contructor thành object
182
205
  * @example:
@@ -280,6 +303,13 @@ export declare class VhAlgorithm {
280
303
  */
281
304
  changeAlias(alias: any): any;
282
305
  /**
306
+ * Ham đổi chuỗi alias có dấu thành không dấu, giữ lại ký tự đặc biệt
307
+ * @example:
308
+ * this.vhAlgorithm.changeAlias_withCharacter(alias);
309
+ * @alias: chuỗi có dấu và các ký tự đặc biệt
310
+ */
311
+ changeAlias_withCharacter(alias: any): any;
312
+ /**
283
313
  * Hàm này lấy về 1 unit của sản phẩm theo ratio truyền vào
284
314
  * @example
285
315
  * let unit = this.vhAlgorithm.getUnit_byRatio(units, 1, 1);
@@ -15782,7 +15812,7 @@ export declare class VhQueryAutoWeb {
15782
15812
  id_coupon_release_detail :"315KHIUHWNIUHCIYUW3187",
15783
15813
  id_coupon: '9841654DOIWSDYW235'
15784
15814
  }
15785
- * this.vhQuerySales.createCouponCode(data)
15815
+ * this.vhQueryAutoWeb.createCouponCode(data)
15786
15816
  .then((coupon_code)=>{
15787
15817
  if(rsp.vcode === 0){
15788
15818
  let coupon_code = rsp.data;
@@ -15819,7 +15849,7 @@ export declare class VhQueryAutoWeb {
15819
15849
  id_coupon_release_detail :"315KHIUHWNIUHCIYUW3187",
15820
15850
  id_coupon: '9841654DOIWSDYW235'
15821
15851
  }
15822
- * this.vhQuerySales.createCouponCodes(data, 10)
15852
+ * this.vhQueryAutoWeb.createCouponCodes(data, 10)
15823
15853
  .then((coupon_codes)=>{
15824
15854
  console.log('createCouponCodes', coupon_codes);
15825
15855
  }, error=>{
@@ -18527,6 +18557,7 @@ export declare class VhBuildAutoWeb {
18527
18557
  signUpWebAppOwner(email: string, password: string, phoneNumber: any, info: any): Promise<unknown>;
18528
18558
  getProjectName(): string;
18529
18559
  getCSSstorage(): any;
18560
+ getDBstorage(): any;
18530
18561
  /**
18531
18562
  * @example SET:
18532
18563
  * this.vhBuildAutoWeb.localStorageSET('local_name', {a=1, b='hai'});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.0.2",
3
+ "version": "9.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"