tnx-shared 5.3.360 → 5.3.362

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.
@@ -4095,6 +4095,11 @@ class CommonService {
4095
4095
  const datePipe = new DatePipe('vi-VN');
4096
4096
  return datePipe.transform(value, format);
4097
4097
  }
4098
+ convertToUnSign(s) {
4099
+ const regex = /\p{Diacritic}/gu;
4100
+ const temp = s.normalize('NFD');
4101
+ return temp.replace(regex, '').replace('\u0111', 'd').replace('\u0110', 'D');
4102
+ }
4098
4103
  }
4099
4104
  CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
4100
4105
  CommonService.decorators = [
@@ -38583,8 +38588,8 @@ class AddressComponent extends DataFormBase {
38583
38588
  this.setting.schema = [
38584
38589
  new DropdownControlSchema({
38585
38590
  field: 'idProvince',
38586
- label: 'Tỉnh/Thành phố',
38587
- placeholder: 'Chọn tỉnh/thành phố',
38591
+ label: this._translateService.instant('ADDRESS_PICKER.PROVINCE.LABEL'),
38592
+ placeholder: this._translateService.instant('ADDRESS_PICKER.PROVINCE.PLACEHOLDER'),
38588
38593
  required: this.control.required && this.control.requiredProvince,
38589
38594
  baseService: this.control.baseService,
38590
38595
  plusUrl: this.control.caching ? 'GetDataProvince' : '',
@@ -38601,8 +38606,8 @@ class AddressComponent extends DataFormBase {
38601
38606
  }),
38602
38607
  new DropdownControlSchema({
38603
38608
  field: 'idDistrict',
38604
- label: 'Quận/Huyện',
38605
- placeholder: 'Chọn quận/huyện',
38609
+ label: this._translateService.instant('ADDRESS_PICKER.DISTRICT.LABEL'),
38610
+ placeholder: this._translateService.instant('ADDRESS_PICKER.DISTRICT.PLACEHOLDER'),
38606
38611
  required: this.control.required && this.control.requiredDistrict,
38607
38612
  baseService: this.control.baseService,
38608
38613
  defaultFilters: [{ field: 'level', operator: Operator.equal, value: ENUM_DON_VI_HANH_CHINH.QUAN_HUYEN.toString() }],
@@ -38617,8 +38622,8 @@ class AddressComponent extends DataFormBase {
38617
38622
  }),
38618
38623
  new DropdownControlSchema({
38619
38624
  field: 'idWard',
38620
- label: 'Phường/Xã',
38621
- placeholder: 'Chọn phường/xã',
38625
+ label: this._translateService.instant('ADDRESS_PICKER.WARD.LABEL'),
38626
+ placeholder: this._translateService.instant('ADDRESS_PICKER.WARD.PLACEHOLDER'),
38622
38627
  required: this.control.required && this.control.requiredWard,
38623
38628
  baseService: this.control.baseService,
38624
38629
  defaultFilters: [{ field: 'level', operator: Operator.equal, value: ENUM_DON_VI_HANH_CHINH.PHUONG_XA.toString() }],
@@ -38633,8 +38638,8 @@ class AddressComponent extends DataFormBase {
38633
38638
  }),
38634
38639
  new TextControlSchema({
38635
38640
  field: 'street',
38636
- label: 'Đường',
38637
- placeholder: 'Ví dụ: Nguyễn Xiển',
38641
+ label: this._translateService.instant('ADDRESS_PICKER.STREET.LABEL'),
38642
+ placeholder: this._translateService.instant('ADDRESS_PICKER.STREET.PLACEHOLDER'),
38638
38643
  required: this.control.required && this.control.requiredStreet,
38639
38644
  mdWidth: this.control.streetWidth,
38640
38645
  disabled: this._disabled,
@@ -38642,8 +38647,8 @@ class AddressComponent extends DataFormBase {
38642
38647
  }),
38643
38648
  new TextControlSchema({
38644
38649
  field: 'no',
38645
- label: 'Số nhà',
38646
- placeholder: 'Ví dụ: 09',
38650
+ label: this._translateService.instant('ADDRESS_PICKER.NO.LABEL'),
38651
+ placeholder: this._translateService.instant('ADDRESS_PICKER.NO.PLACEHOLDER'),
38647
38652
  required: this.control.required && this.control.requiredNo,
38648
38653
  mdWidth: this.control.noWidth,
38649
38654
  disabled: this._disabled,