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
|
@@ -5028,6 +5028,11 @@
|
|
|
5028
5028
|
var datePipe = new i3.DatePipe('vi-VN');
|
|
5029
5029
|
return datePipe.transform(value, format);
|
|
5030
5030
|
};
|
|
5031
|
+
CommonService.prototype.convertToUnSign = function (s) {
|
|
5032
|
+
var regex = /\p{Diacritic}/gu;
|
|
5033
|
+
var temp = s.normalize('NFD');
|
|
5034
|
+
return temp.replace(regex, '').replace('\u0111', 'd').replace('\u0110', 'D');
|
|
5035
|
+
};
|
|
5031
5036
|
return CommonService;
|
|
5032
5037
|
}());
|
|
5033
5038
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -44365,8 +44370,8 @@
|
|
|
44365
44370
|
this.setting.schema = [
|
|
44366
44371
|
new DropdownControlSchema({
|
|
44367
44372
|
field: 'idProvince',
|
|
44368
|
-
label: '
|
|
44369
|
-
placeholder: '
|
|
44373
|
+
label: this._translateService.instant('ADDRESS_PICKER.PROVINCE.LABEL'),
|
|
44374
|
+
placeholder: this._translateService.instant('ADDRESS_PICKER.PROVINCE.PLACEHOLDER'),
|
|
44370
44375
|
required: this.control.required && this.control.requiredProvince,
|
|
44371
44376
|
baseService: this.control.baseService,
|
|
44372
44377
|
plusUrl: this.control.caching ? 'GetDataProvince' : '',
|
|
@@ -44383,8 +44388,8 @@
|
|
|
44383
44388
|
}),
|
|
44384
44389
|
new DropdownControlSchema({
|
|
44385
44390
|
field: 'idDistrict',
|
|
44386
|
-
label: '
|
|
44387
|
-
placeholder: '
|
|
44391
|
+
label: this._translateService.instant('ADDRESS_PICKER.DISTRICT.LABEL'),
|
|
44392
|
+
placeholder: this._translateService.instant('ADDRESS_PICKER.DISTRICT.PLACEHOLDER'),
|
|
44388
44393
|
required: this.control.required && this.control.requiredDistrict,
|
|
44389
44394
|
baseService: this.control.baseService,
|
|
44390
44395
|
defaultFilters: [{ field: 'level', operator: exports.Operator.equal, value: exports.ENUM_DON_VI_HANH_CHINH.QUAN_HUYEN.toString() }],
|
|
@@ -44399,8 +44404,8 @@
|
|
|
44399
44404
|
}),
|
|
44400
44405
|
new DropdownControlSchema({
|
|
44401
44406
|
field: 'idWard',
|
|
44402
|
-
label: '
|
|
44403
|
-
placeholder: '
|
|
44407
|
+
label: this._translateService.instant('ADDRESS_PICKER.WARD.LABEL'),
|
|
44408
|
+
placeholder: this._translateService.instant('ADDRESS_PICKER.WARD.PLACEHOLDER'),
|
|
44404
44409
|
required: this.control.required && this.control.requiredWard,
|
|
44405
44410
|
baseService: this.control.baseService,
|
|
44406
44411
|
defaultFilters: [{ field: 'level', operator: exports.Operator.equal, value: exports.ENUM_DON_VI_HANH_CHINH.PHUONG_XA.toString() }],
|
|
@@ -44415,8 +44420,8 @@
|
|
|
44415
44420
|
}),
|
|
44416
44421
|
new TextControlSchema({
|
|
44417
44422
|
field: 'street',
|
|
44418
|
-
label: '
|
|
44419
|
-
placeholder: '
|
|
44423
|
+
label: this._translateService.instant('ADDRESS_PICKER.STREET.LABEL'),
|
|
44424
|
+
placeholder: this._translateService.instant('ADDRESS_PICKER.STREET.PLACEHOLDER'),
|
|
44420
44425
|
required: this.control.required && this.control.requiredStreet,
|
|
44421
44426
|
mdWidth: this.control.streetWidth,
|
|
44422
44427
|
disabled: this._disabled,
|
|
@@ -44424,8 +44429,8 @@
|
|
|
44424
44429
|
}),
|
|
44425
44430
|
new TextControlSchema({
|
|
44426
44431
|
field: 'no',
|
|
44427
|
-
label: '
|
|
44428
|
-
placeholder: '
|
|
44432
|
+
label: this._translateService.instant('ADDRESS_PICKER.NO.LABEL'),
|
|
44433
|
+
placeholder: this._translateService.instant('ADDRESS_PICKER.NO.PLACEHOLDER'),
|
|
44429
44434
|
required: this.control.required && this.control.requiredNo,
|
|
44430
44435
|
mdWidth: this.control.noWidth,
|
|
44431
44436
|
disabled: this._disabled,
|