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.
- package/bundles/tnx-shared.umd.js +15 -10
- 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/esm2015/components/address/address.component.js +11 -11
- package/esm2015/services/common.service.js +6 -1
- package/fesm2015/tnx-shared.js +15 -10
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- 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/fesm2015/tnx-shared.js
CHANGED
|
@@ -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: '
|
|
38587
|
-
placeholder: '
|
|
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: '
|
|
38605
|
-
placeholder: '
|
|
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: '
|
|
38621
|
-
placeholder: '
|
|
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: '
|
|
38637
|
-
placeholder: '
|
|
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: '
|
|
38646
|
-
placeholder: '
|
|
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,
|