tnx-shared 5.3.160 → 5.3.162
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 +9 -1
- 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/services/address.service.js +2 -2
- package/esm2015/services/common.service.js +9 -1
- package/fesm2015/tnx-shared.js +9 -1
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/services/common.service.d.ts +4 -0
- package/services/common.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -3851,6 +3851,14 @@ class CommonService {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
return control;
|
|
3853
3853
|
}
|
|
3854
|
+
tryParseJson(data) {
|
|
3855
|
+
try {
|
|
3856
|
+
return { valid: true, value: JSON.parse(data) };
|
|
3857
|
+
}
|
|
3858
|
+
catch (e) {
|
|
3859
|
+
return { valid: false, value: data };
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3854
3862
|
convertStringToUnSign(str) {
|
|
3855
3863
|
if (!str)
|
|
3856
3864
|
return '';
|
|
@@ -24345,7 +24353,7 @@ var ENUM_DON_VI_HANH_CHINH;
|
|
|
24345
24353
|
|
|
24346
24354
|
class AddressService extends BaseService {
|
|
24347
24355
|
constructor(http, injector, _moduleConfigService) {
|
|
24348
|
-
super(http, injector, `${_moduleConfigService.getConfig().environment.apiDomain.
|
|
24356
|
+
super(http, injector, `${_moduleConfigService.getConfig().environment.apiDomain.commonMasterDataEndpoint}/${_moduleConfigService.getConfig().environment.apiVersion}/Address`);
|
|
24349
24357
|
this.endPoint = _moduleConfigService.getConfig().environment.apiDomain.commonMasterDataV5Endpoint;
|
|
24350
24358
|
}
|
|
24351
24359
|
}
|