ionic-vhframeworks 8.6.6 → 8.6.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.
|
@@ -918,7 +918,7 @@ export declare class VhAuth {
|
|
|
918
918
|
* @param projectname
|
|
919
919
|
* @param dbstorage: 'firebase' or 'firebase-mongo'
|
|
920
920
|
* @param imgstorage: 'firebase' or 'viethas'
|
|
921
|
-
* @param cssstorage : nơi css sẽ được lưu trữ 'local', '
|
|
921
|
+
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
|
|
922
922
|
* @param dbserverversion
|
|
923
923
|
* @param camserverversion
|
|
924
924
|
* @param fwcode
|
|
@@ -937,7 +937,7 @@ export declare class VhAuth {
|
|
|
937
937
|
* @param projectname
|
|
938
938
|
* @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
|
|
939
939
|
* @param imgstorage: 'firebase' or 'viethas'
|
|
940
|
-
* @param cssstorage : nơi css sẽ được lưu trữ 'local', '
|
|
940
|
+
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
|
|
941
941
|
* @param dbserverversion
|
|
942
942
|
* @param camserverversion
|
|
943
943
|
* @param fwcode
|
|
@@ -13350,6 +13350,9 @@ export declare class VhQueryAutoWeb {
|
|
|
13350
13350
|
* @return Promise => rsp ={vcode, message} / error
|
|
13351
13351
|
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
13352
13352
|
* vcode == 0: success
|
|
13353
|
+
* vcode == 1: 'Bạn không thể xóa, bạn phải xóa các thuộc tính của sản phẩm trước'
|
|
13354
|
+
* vcode == 2: 'Bạn không thể xóa, vì sản phẩm con này đang liên kết với sản phẩm combo khác'
|
|
13355
|
+
* vcode == 3: 'Bạn không thể xóa, vì sản phẩm con này đã phát sinh hóa đơn'
|
|
13353
13356
|
* vcode == 11: 'not logged in
|
|
13354
13357
|
*/
|
|
13355
13358
|
deleteProduct(id_product: string): Promise<unknown>;
|
|
@@ -18407,6 +18410,150 @@ export declare class VhBuildAutoWeb {
|
|
|
18407
18410
|
* @return Promise => array(object) = [{},{},..]
|
|
18408
18411
|
*/
|
|
18409
18412
|
static_getDocs_fromDatabase_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
18413
|
+
/**
|
|
18414
|
+
* @example:
|
|
18415
|
+
* this.vhBuildAutoWeb.dynamic_deleteProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
18416
|
+
.then((rsp:any)=>{
|
|
18417
|
+
if(rsp.vcode === 0){
|
|
18418
|
+
console.log('dynamic_deleteDoc_fromDatabase succeed');
|
|
18419
|
+
}
|
|
18420
|
+
}, error=>{
|
|
18421
|
+
reject(error)
|
|
18422
|
+
})
|
|
18423
|
+
* @param colname
|
|
18424
|
+
* @param id_doc
|
|
18425
|
+
* @return Promise => response.data ={vcode, message, data(undefined)} / error
|
|
18426
|
+
* @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
|
|
18427
|
+
* chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
|
|
18428
|
+
* vcode == 0: success
|
|
18429
|
+
* vcode == 1: 'Bạn không thể xóa, bạn phải xóa các thuộc tính của sản phẩm trước'
|
|
18430
|
+
* vcode == 2: 'Bạn không thể xóa, vì sản phẩm con này đang liên kết với sản phẩm combo khác'
|
|
18431
|
+
* vcode == 3: 'Bạn không thể xóa, vì sản phẩm con này đã phát sinh hóa đơn'
|
|
18432
|
+
*/
|
|
18433
|
+
dynamic_deleteProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
18434
|
+
/**
|
|
18435
|
+
* @example:
|
|
18436
|
+
* this.vhBuildAutoWeb.dynamic_deleteSubProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
18437
|
+
.then((rsp:any)=>{
|
|
18438
|
+
if(rsp.vcode === 0){
|
|
18439
|
+
console.log('dynamic_deleteSubProduct succeed');
|
|
18440
|
+
}
|
|
18441
|
+
}, error=>{
|
|
18442
|
+
reject(error)
|
|
18443
|
+
})
|
|
18444
|
+
* @param colname
|
|
18445
|
+
* @param id_doc
|
|
18446
|
+
* @return Promise => response.data ={vcode, message, data(undefined)} / error
|
|
18447
|
+
* @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
|
|
18448
|
+
* chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
|
|
18449
|
+
* vcode == 0: success
|
|
18450
|
+
* vcode == 1: 'Bạn không thể xóa, bạn phải xóa các thuộc tính của sản phẩm trước'
|
|
18451
|
+
* vcode == 2: 'Bạn không thể xóa, vì sản phẩm con này đang liên kết với sản phẩm combo khác'
|
|
18452
|
+
* vcode == 3: 'Bạn không thể xóa, vì sản phẩm con này đã phát sinh hóa đơn'
|
|
18453
|
+
*/
|
|
18454
|
+
dynamic_deleteSubProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
18455
|
+
/**
|
|
18456
|
+
* @example
|
|
18457
|
+
* this.vhBuildAutoWeb.dynamic_getProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
18458
|
+
.then((doc)=>{
|
|
18459
|
+
console.log('dynamic_getProduct', doc);
|
|
18460
|
+
})
|
|
18461
|
+
* @param id_doc
|
|
18462
|
+
* @return null or object
|
|
18463
|
+
*/
|
|
18464
|
+
dynamic_getProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
18465
|
+
/**
|
|
18466
|
+
* @example:
|
|
18467
|
+
* this.vhBuildAutoWeb.dynamic_getProducts_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
18468
|
+
.then(response=>{
|
|
18469
|
+
console.log('response', response);
|
|
18470
|
+
//-----------your code-----------
|
|
18471
|
+
let products = response.data;
|
|
18472
|
+
},(error:any)=>{
|
|
18473
|
+
console.log('error', error)
|
|
18474
|
+
})
|
|
18475
|
+
* @param colname
|
|
18476
|
+
* @param query
|
|
18477
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
18478
|
+
* @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
|
|
18479
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
18480
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18481
|
+
* @return Promise => array(object) = [{},{},..]
|
|
18482
|
+
*/
|
|
18483
|
+
dynamic_getProducts_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
18484
|
+
/**
|
|
18485
|
+
* @example:
|
|
18486
|
+
* this.vhBuildAutoWeb.dynamic_getProducts_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
18487
|
+
.then(response=>{
|
|
18488
|
+
console.log('response', response);
|
|
18489
|
+
if(response.vcode === 0){
|
|
18490
|
+
//-----------your code-----------
|
|
18491
|
+
let products = response.data;
|
|
18492
|
+
}
|
|
18493
|
+
},(error:any)=>{
|
|
18494
|
+
console.log('error', error)
|
|
18495
|
+
})
|
|
18496
|
+
* @param colname
|
|
18497
|
+
* @param query
|
|
18498
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
18499
|
+
* @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
|
|
18500
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
18501
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18502
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
18503
|
+
*/
|
|
18504
|
+
dynamic_getProducts_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
18505
|
+
/**
|
|
18506
|
+
* @example:
|
|
18507
|
+
* this.vhBuildAutoWeb.dynamic_getDetailProducts_byFields('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
18508
|
+
.then(response=>{
|
|
18509
|
+
console.log('response', response);
|
|
18510
|
+
//-----------your code-----------
|
|
18511
|
+
let products = response.data;
|
|
18512
|
+
},(error:any)=>{
|
|
18513
|
+
console.log('error', error)
|
|
18514
|
+
})
|
|
18515
|
+
* @param colname
|
|
18516
|
+
* @param query
|
|
18517
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
18518
|
+
* @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
|
|
18519
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
18520
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18521
|
+
* @return Promise => array(object) = [{},{},..]
|
|
18522
|
+
*/
|
|
18523
|
+
dynamic_getDetailProducts_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
18524
|
+
/**
|
|
18525
|
+
* @example:
|
|
18526
|
+
* this.vhBuildAutoWeb.dynamic_getDetailProducts_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
18527
|
+
.then(response=>{
|
|
18528
|
+
console.log('response', response);
|
|
18529
|
+
if(response.vcode === 0){
|
|
18530
|
+
//-----------your code-----------
|
|
18531
|
+
let products = response.data;
|
|
18532
|
+
}
|
|
18533
|
+
},(error:any)=>{
|
|
18534
|
+
console.log('error', error)
|
|
18535
|
+
})
|
|
18536
|
+
* @param colname
|
|
18537
|
+
* @param query
|
|
18538
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
18539
|
+
* @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
|
|
18540
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
18541
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
18542
|
+
* @return Promise object => response = {vcode, message, data(array), limit, page, totalpages}
|
|
18543
|
+
*/
|
|
18544
|
+
dynamic_getDetailProducts_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
18545
|
+
/**
|
|
18546
|
+
* @example
|
|
18547
|
+
* this.vhBuildAutoWeb.dynamic_getDetailProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
18548
|
+
.then((doc)=>{
|
|
18549
|
+
console.log('dynamic_getDetailProduct', doc);
|
|
18550
|
+
},(error:any)=>{
|
|
18551
|
+
console.log('error', error)
|
|
18552
|
+
})
|
|
18553
|
+
* @param id_sub_or_product
|
|
18554
|
+
* @Promise => obj ={} or null
|
|
18555
|
+
*/
|
|
18556
|
+
dynamic_getDetailProduct(id_sub_or_product: any): Promise<unknown>;
|
|
18410
18557
|
/**
|
|
18411
18558
|
* @example
|
|
18412
18559
|
* this.vhBuildAutoWeb.dynamic_getDetailProduct_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
@@ -18422,7 +18569,6 @@ export declare class VhBuildAutoWeb {
|
|
|
18422
18569
|
* @param id_sub_or_product
|
|
18423
18570
|
* @return Promise object => response = {vcode, message, data(object)}
|
|
18424
18571
|
*/
|
|
18425
|
-
dynamic_getDetailProduct_fromService(id_sub_or_product: any): Promise<unknown>;
|
|
18426
18572
|
/**
|
|
18427
18573
|
* @example
|
|
18428
18574
|
* this.vhBuildAutoWeb.dynamic_getDetailFood_fromService('categories', '5fb67fda87c0f21d484cbdf3')
|
|
@@ -18798,6 +18944,7 @@ export declare class VhDesignAutoWeb {
|
|
|
18798
18944
|
private findLimitBottomBlock;
|
|
18799
18945
|
private findLimitLeftBlock;
|
|
18800
18946
|
private findLimitRightBlock;
|
|
18947
|
+
/****************************************************************************************/
|
|
18801
18948
|
/**
|
|
18802
18949
|
*Hàm này thực hiện tăng hoặc giảm z-index của object, frame được chọn
|
|
18803
18950
|
*/
|
|
@@ -18831,6 +18978,7 @@ export declare class VhDesignAutoWeb {
|
|
|
18831
18978
|
* @returns
|
|
18832
18979
|
*/
|
|
18833
18980
|
private updateZindexOfElementAllInBlockOrObject;
|
|
18981
|
+
/****************************************************************************************/
|
|
18834
18982
|
/**
|
|
18835
18983
|
* object trong block, object trong object, và có thể qua rất nhiều cấp, do đó cần hàm này để tìm ra object đó,
|
|
18836
18984
|
* cách tìm là duyệt qua từng block đến từng object
|
|
@@ -19350,6 +19498,48 @@ export declare class VhDesignAutoWeb {
|
|
|
19350
19498
|
*/
|
|
19351
19499
|
dynamic_getDocs_fromService_byFields(colname: string, query: any, projection?: object, sort?: any, limit?: number): Promise<unknown>;
|
|
19352
19500
|
/**
|
|
19501
|
+
* @example:
|
|
19502
|
+
* this.vhDesignAutoWeb.dynamic_deleteProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19503
|
+
.then((rsp:any)=>{
|
|
19504
|
+
if(rsp.vcode === 0){
|
|
19505
|
+
console.log('dynamic_deleteDoc_fromDatabase succeed');
|
|
19506
|
+
}
|
|
19507
|
+
}, error=>{
|
|
19508
|
+
reject(error)
|
|
19509
|
+
})
|
|
19510
|
+
* @param colname
|
|
19511
|
+
* @param id_doc
|
|
19512
|
+
* @return Promise => response.data ={vcode, message, data(undefined)} / error
|
|
19513
|
+
* @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
|
|
19514
|
+
* chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
|
|
19515
|
+
* vcode == 0: success
|
|
19516
|
+
* vcode == 1: 'Bạn không thể xóa, bạn phải xóa các thuộc tính của sản phẩm trước'
|
|
19517
|
+
* vcode == 2: 'Bạn không thể xóa, vì sản phẩm con này đang liên kết với sản phẩm combo khác'
|
|
19518
|
+
* vcode == 3: 'Bạn không thể xóa, vì sản phẩm con này đã phát sinh hóa đơn'
|
|
19519
|
+
*/
|
|
19520
|
+
dynamic_deleteProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
19521
|
+
/**
|
|
19522
|
+
* @example:
|
|
19523
|
+
* this.vhDesignAutoWeb.dynamic_deleteSubProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19524
|
+
.then((rsp:any)=>{
|
|
19525
|
+
if(rsp.vcode === 0){
|
|
19526
|
+
console.log('dynamic_deleteSubProduct succeed');
|
|
19527
|
+
}
|
|
19528
|
+
}, error=>{
|
|
19529
|
+
reject(error)
|
|
19530
|
+
})
|
|
19531
|
+
* @param colname
|
|
19532
|
+
* @param id_doc
|
|
19533
|
+
* @return Promise => response.data ={vcode, message, data(undefined)} / error
|
|
19534
|
+
* @notice : hàm này chỉ get được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập, ở giao diện thiết kế dùng thư viện vhDesignAutoWeb
|
|
19535
|
+
* chưa thấy cần thiết kiểm tra bảo mật này nên chưa thêm dòng lệnh kiểm tra và trả về vcode=11
|
|
19536
|
+
* vcode == 0: success
|
|
19537
|
+
* vcode == 1: 'Bạn không thể xóa, bạn phải xóa các thuộc tính của sản phẩm trước'
|
|
19538
|
+
* vcode == 2: 'Bạn không thể xóa, vì sản phẩm con này đang liên kết với sản phẩm combo khác'
|
|
19539
|
+
* vcode == 3: 'Bạn không thể xóa, vì sản phẩm con này đã phát sinh hóa đơn'
|
|
19540
|
+
*/
|
|
19541
|
+
dynamic_deleteSubProduct(colname: string, id_doc: string): Promise<unknown>;
|
|
19542
|
+
/**
|
|
19353
19543
|
* @example
|
|
19354
19544
|
* this.vhDesignAutoWeb.dynamic_getProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19355
19545
|
.then((doc)=>{
|
|
@@ -19441,9 +19631,9 @@ export declare class VhDesignAutoWeb {
|
|
|
19441
19631
|
dynamic_getDetailProducts_byFields_byPages(colname: string, query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
19442
19632
|
/**
|
|
19443
19633
|
* @example
|
|
19444
|
-
* this.vhDesignAutoWeb.
|
|
19634
|
+
* this.vhDesignAutoWeb.dynamic_getDetailProduct('categories', '5fb67fda87c0f21d484cbdf3')
|
|
19445
19635
|
.then((doc)=>{
|
|
19446
|
-
console.log('
|
|
19636
|
+
console.log('dynamic_getDetailProduct', doc);
|
|
19447
19637
|
},(error:any)=>{
|
|
19448
19638
|
console.log('error', error)
|
|
19449
19639
|
})
|