ionic-vhframeworks 9.0.4 → 9.0.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.
@@ -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:
@@ -498,6 +521,8 @@ export declare class VhAuth {
498
521
  private vhMGDB_database;
499
522
  private vhForFirstTime;
500
523
  private renderFactory;
524
+ private http;
525
+ private vhAlgorithm;
501
526
  private mypermission;
502
527
  private employees;
503
528
  private endusers;
@@ -505,7 +530,7 @@ export declare class VhAuth {
505
530
  private hwinfo;
506
531
  private renderer;
507
532
  private subjectemployees;
508
- constructor(platform: Platform, vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhForFirstTime: VhForFirstTime, renderFactory: RendererFactory2);
533
+ constructor(platform: Platform, vhMGDB_auth: VhMGDB_auth, vhMGDB_database: VhMGDB_database, vhForFirstTime: VhForFirstTime, renderFactory: RendererFactory2, http: HttpClient, vhAlgorithm: VhAlgorithm);
509
534
  /**
510
535
  * @example:
511
536
  * this.vhAuth.signInWithEmailAndPasswordOfEndUser('emp11@gmail.com', '123456')
@@ -938,8 +963,8 @@ export declare class VhAuth {
938
963
  reject(error);
939
964
  })
940
965
  * @param projectname
941
- * @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
942
- * @param imgstorage: 'firebase' or 'viethas'
966
+ * @param dbstorage: 'firebase', 'firebase-mongo', 'mongo', or 'mysqlphp'
967
+ * @param imgstorage: 'firebase', 'viethas' or 'hosting'
943
968
  * @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
944
969
  * @param dbserverversion
945
970
  * @param camserverversion
@@ -947,7 +972,7 @@ export declare class VhAuth {
947
972
  * @param database : tất cả database 'all' hoặc một database nào đó '4wk3JMSwSjh4kOLWOMbLbWt0Rdk2'
948
973
  * @returns Promise
949
974
  */
950
- initializeBuildProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): any;
975
+ initializeBuildProject(projectname: string, dbstorage: string, imgstorage: string, cssstorage: string, dbserverversion: string, camserverversion: string, fwcode: number, database: string): Promise<unknown>;
951
976
  /**
952
977
  * @example:
953
978
  * this.vhAuth.initializeDesignProject('vhuserweb','mongo', 'viethas', 'mongo', 'research', 'research', 240...)
@@ -12541,6 +12566,7 @@ export declare class VhQueryAutoWeb {
12541
12566
  * vcode == 4: Please reset your password
12542
12567
  */
12543
12568
  onAuthStateChangedEndUser(): Promise<any>;
12569
+ getHostings_byEndUser(): Promise<any>;
12544
12570
  /**
12545
12571
  * @example
12546
12572
  * this.vhQueryAutoWeb.signoutEndUser();
@@ -12648,7 +12674,6 @@ export declare class VhQueryAutoWeb {
12648
12674
  */
12649
12675
  getlocalSubProjects(): any;
12650
12676
  /**
12651
- * Hàm này dùng cho bản Build
12652
12677
  * @example:
12653
12678
  * this.vhQueryAutoWeb.refreshLocalSubProjects()
12654
12679
  .then(()=>{
@@ -12657,7 +12682,7 @@ export declare class VhQueryAutoWeb {
12657
12682
  * Hàm này refresh giá trị mới nhất cho hàm getlocalSubProject(), getlocalSubProjects() trong localstorage
12658
12683
  * @return Promise => null
12659
12684
  */
12660
- refreshLocalSubProjects(): any;
12685
+ private refreshLocalSubProjects;
12661
12686
  /**
12662
12687
  * Hàm này thêm dự án thiết kế
12663
12688
  * @example:
@@ -18466,6 +18491,7 @@ export declare class VhBuildAutoWeb {
18466
18491
  * vcode == 4: Please reset your password
18467
18492
  */
18468
18493
  onAuthStateChangedEndUser(): Promise<any>;
18494
+ getHostings_byEndUser(): Promise<any>;
18469
18495
  /**
18470
18496
  * @example
18471
18497
  * this.vhBuildAutoWeb.signoutEndUser();
@@ -18534,6 +18560,7 @@ export declare class VhBuildAutoWeb {
18534
18560
  signUpWebAppOwner(email: string, password: string, phoneNumber: any, info: any): Promise<unknown>;
18535
18561
  getProjectName(): string;
18536
18562
  getCSSstorage(): any;
18563
+ getDBstorage(): any;
18537
18564
  /**
18538
18565
  * @example SET:
18539
18566
  * this.vhBuildAutoWeb.localStorageSET('local_name', {a=1, b='hai'});
@@ -19645,6 +19672,7 @@ export declare class VhDesignAutoWeb {
19645
19672
  * vcode == 4: Please reset your password
19646
19673
  */
19647
19674
  onAuthStateChangedEndUser(database: string): Promise<any>;
19675
+ getHostings_byEndUser(database: string): Promise<any>;
19648
19676
  /**
19649
19677
  * @example
19650
19678
  * this.vhDesignAutoWeb.signoutEndUser();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ionic-vhframeworks",
3
- "version": "9.0.4",
3
+ "version": "9.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"