tnx-shared 5.3.326 → 5.3.328

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.
@@ -1384,6 +1384,7 @@
1384
1384
  _this.order = 0;
1385
1385
  _this.showTooltip = true;
1386
1386
  _this.showTooltipOnly = false;
1387
+ _this.autoSearch = true; // Dùng cho commonsearch;
1387
1388
  for (var key in init) {
1388
1389
  _this[key] = init[key];
1389
1390
  }
@@ -1475,7 +1476,6 @@
1475
1476
  _this.hasOperatorCanBo = false;
1476
1477
  _this.addToGridInfo = false;
1477
1478
  _this.isLazyLoad = false;
1478
- _this.autoSearch = true; // Dùng cho commonsearch;
1479
1479
  for (var key in init) {
1480
1480
  _this[key] = init[key];
1481
1481
  }
@@ -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 (((_a = control.columns) === null || _a === void 0 ? void 0 : _a.length) > 0) {
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,