tnx-shared 5.3.176 → 5.3.178

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.
@@ -1817,6 +1817,7 @@
1817
1817
  _this.invalidFileTypeMessageDetail = 'định dạng file cho phép: {0}.';
1818
1818
  _this.invalidFileLimitMessageSummary = 'Quá số lượng file cho phép, ';
1819
1819
  _this.invalidFileLimitMessageDetail = 'tối đa {0} file.';
1820
+ _this.hasFile = false;
1820
1821
  for (var key in init) {
1821
1822
  _this[key] = init[key];
1822
1823
  }
@@ -13456,6 +13457,9 @@
13456
13457
  if (!!value && typeof (value) == 'string') {
13457
13458
  value = value.trim();
13458
13459
  }
13460
+ if (control instanceof FileUploadControlSchema && !control.hasFile) {
13461
+ return false;
13462
+ }
13459
13463
  if (control instanceof AddressControlSchema) {
13460
13464
  if (value == null || value === '')
13461
13465
  return false;
@@ -20948,6 +20952,10 @@
20948
20952
  CanBoHoSoService.prototype.getQuanLyCapTrenByUserId = function (idUser) {
20949
20953
  return this.defaultGet(this.serviceUri + "/CanBoQuanLyByUserId/" + idUser);
20950
20954
  };
20955
+ CanBoHoSoService.prototype.getDanhSachUserCapTren = function (idsDonVi) {
20956
+ var url = this.serviceUri + "/GetDanhSachUserCapTren";
20957
+ return this.defaultPost(url, idsDonVi);
20958
+ };
20951
20959
  return CanBoHoSoService;
20952
20960
  }(BaseService));
20953
20961
  CanBoHoSoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CanBoHoSoService_Factory() { return new CanBoHoSoService(i0__namespace.ɵɵinject(i1__namespace$1.HttpClient), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(ModuleConfigService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(CanBo_HoSo_CoCauToChucService), i0__namespace.ɵɵinject(CoCauToChucService), i0__namespace.ɵɵinject(HoSoDoiTacService), i0__namespace.ɵɵinject(CrudService)); }, token: CanBoHoSoService, providedIn: "root" });
@@ -35629,7 +35637,9 @@
35629
35637
  this.hasFile = false;
35630
35638
  }
35631
35639
  _a.label = 2;
35632
- case 2: return [2 /*return*/];
35640
+ case 2:
35641
+ this.control.hasFile = this.hasFile;
35642
+ return [2 /*return*/];
35633
35643
  }
35634
35644
  });
35635
35645
  });
@@ -35679,6 +35689,7 @@
35679
35689
  _this.hasFile = true;
35680
35690
  _this.writeValue(rs.data);
35681
35691
  _this.onChangeBase(rs.data);
35692
+ _this.control.hasFile = _this.hasFile;
35682
35693
  _this.onSelect.emit();
35683
35694
  _this.onChanged.emit();
35684
35695
  }
@@ -35707,12 +35718,14 @@
35707
35718
  }
35708
35719
  };
35709
35720
  FileUploadComponent.prototype.onRemoveFile = function () {
35721
+ this._fileObjectService.deleteById(this.fileId);
35710
35722
  this.fileId = null;
35711
35723
  this.selectedFile = null;
35712
35724
  this.selectedFileName = null;
35713
35725
  this.hasFile = false;
35714
35726
  this.writeValue(null);
35715
35727
  this.onChangeBase(null);
35728
+ this.control.hasFile = this.hasFile;
35716
35729
  this.onRemove.emit();
35717
35730
  this.onChanged.emit();
35718
35731
  };
@@ -36940,6 +36953,7 @@
36940
36953
  this.setFileObject(null);
36941
36954
  _a.label = 3;
36942
36955
  case 3:
36956
+ this.control.hasFile = this.hasFile;
36943
36957
  this.setMenu();
36944
36958
  return [2 /*return*/];
36945
36959
  }
@@ -36961,6 +36975,7 @@
36961
36975
  this.fileId = fileObject.id;
36962
36976
  this.setFileName(fileObject.name);
36963
36977
  this.hasFile = true;
36978
+ this.control.hasFile = this.hasFile;
36964
36979
  this.onChangeBase('has-value');
36965
36980
  this.onInit.emit({ fileId: this.fileId });
36966
36981
  };
@@ -37032,6 +37047,7 @@
37032
37047
  this.onChanged.emit(this.selectedFile);
37033
37048
  }
37034
37049
  }
37050
+ this.control.hasFile = this.hasFile;
37035
37051
  };
37036
37052
  ServiceFileUploadComponent.prototype.handleSaveFile = function () {
37037
37053
  var _this = this;
@@ -37065,6 +37081,7 @@
37065
37081
  _this.selectedFileName = _this.selectedFile.name;
37066
37082
  _this.fileId = rs.data;
37067
37083
  _this.hasFile = true;
37084
+ _this.control.hasFile = _this.hasFile;
37068
37085
  _this.onChanged.emit({ fileId: _this.fileId, selectedFile: _this.selectedFile });
37069
37086
  }
37070
37087
  else {
@@ -37110,6 +37127,7 @@
37110
37127
  this.selectedFile = null;
37111
37128
  this.setFileName(null);
37112
37129
  this.hasFile = false;
37130
+ this.control.hasFile = this.hasFile;
37113
37131
  this.onChangeBase(null);
37114
37132
  this.onRemove.emit(fileData);
37115
37133
  };