tnx-shared 5.3.326 → 5.3.327
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.
- package/bundles/tnx-shared.umd.js +16 -4
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/classes/form-schema.d.ts +1 -0
- package/classes/form-schema.d.ts.map +1 -1
- package/components/autocomplete-picker/autocomplete-picker.component.d.ts.map +1 -1
- package/esm2015/classes/form-schema.js +2 -1
- package/esm2015/components/autocomplete-picker/autocomplete-picker.component.js +3 -2
- package/esm2015/services/canbo-hoso.service.js +7 -5
- package/esm2015/services/common.service.js +7 -1
- package/esm2015/tnx-shared.module.js +2 -1
- package/fesm2015/tnx-shared.js +16 -5
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/canbo-hoso.service.d.ts.map +1 -1
- package/services/common.service.d.ts +1 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
- package/tnx-shared.module.d.ts.map +1 -1
|
@@ -1691,6 +1691,7 @@
|
|
|
1691
1691
|
_this.isCaching = false; // dùng riêng cho canBoPicker
|
|
1692
1692
|
_this.limitRowItem = false;
|
|
1693
1693
|
_this.maxRowItem = 2;
|
|
1694
|
+
_this.isOverrideColumns = false;
|
|
1694
1695
|
for (var key in init) {
|
|
1695
1696
|
_this[key] = init[key];
|
|
1696
1697
|
}
|
|
@@ -4979,6 +4980,13 @@
|
|
|
4979
4980
|
}
|
|
4980
4981
|
return str;
|
|
4981
4982
|
};
|
|
4983
|
+
CommonService.prototype.transformLocalDate = function (value, format) {
|
|
4984
|
+
if (format === void 0) { format = 'dd/MM/yyyy'; }
|
|
4985
|
+
if (!value)
|
|
4986
|
+
return '';
|
|
4987
|
+
var datePipe = new i3.DatePipe('vi-VN');
|
|
4988
|
+
return datePipe.transform(value, format);
|
|
4989
|
+
};
|
|
4982
4990
|
return CommonService;
|
|
4983
4991
|
}());
|
|
4984
4992
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -20799,7 +20807,10 @@
|
|
|
20799
20807
|
if (enumCanBo === void 0) { enumCanBo = exports.EnumCanBo.TRONG_DON_VI; }
|
|
20800
20808
|
var _a;
|
|
20801
20809
|
var columns = __spreadArray([], __read(this.lstEntityPickerColumn));
|
|
20802
|
-
if (
|
|
20810
|
+
if (control.isOverrideColumns) {
|
|
20811
|
+
columns = __spreadArray([], __read(control.columns));
|
|
20812
|
+
}
|
|
20813
|
+
else if (((_a = control.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
20803
20814
|
columns.push.apply(columns, __spreadArray([], __read(control.columns)));
|
|
20804
20815
|
}
|
|
20805
20816
|
var result = new AutoCompletePickerControlSchema(Object.assign(Object.assign({ field: 'idCanBo', label: 'Cán bộ', title: 'Chọn cán bộ', multiple: false, baseService: this, plusUrl: 'WithChucDanhChucVu', displayField: 'hoVaTen', fieldPlus: 'code', fieldSearchText: ['email', 'code'], funcGetLabel: function (item) {
|
|
@@ -20868,9 +20879,8 @@
|
|
|
20868
20879
|
}
|
|
20869
20880
|
}
|
|
20870
20881
|
else {
|
|
20871
|
-
result.fieldPlus = 'idNgachVienChuc';
|
|
20882
|
+
result.fieldPlus = 'idNgachVienChuc,ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code';
|
|
20872
20883
|
}
|
|
20873
|
-
result.fieldPlus += ',ngaySinh,ngaySinh2,chucDanhs,idHocHam,idHocVi,dienThoaiDiDong,code';
|
|
20874
20884
|
return result;
|
|
20875
20885
|
};
|
|
20876
20886
|
CanBoHoSoService.prototype.getTenDonVi = function (dataSource) {
|
|
@@ -44407,7 +44417,8 @@
|
|
|
44407
44417
|
valueField: this.control.valueField,
|
|
44408
44418
|
fieldPlus: this.control.fieldPlus,
|
|
44409
44419
|
funcGetLabel: this.control.funcGetLabel,
|
|
44410
|
-
plusUrl: this.control.plusUrl
|
|
44420
|
+
plusUrl: this.control.plusUrl,
|
|
44421
|
+
sorts: this.control.sorts,
|
|
44411
44422
|
});
|
|
44412
44423
|
if (pageSize) {
|
|
44413
44424
|
result.pageSize = pageSize;
|
|
@@ -56340,6 +56351,7 @@
|
|
|
56340
56351
|
},] }
|
|
56341
56352
|
];
|
|
56342
56353
|
|
|
56354
|
+
// 1
|
|
56343
56355
|
function coreDeclaration() {
|
|
56344
56356
|
return [
|
|
56345
56357
|
AddressComponent,
|