tnx-shared 5.3.276 → 5.3.278
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 +48 -33
- 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/components/cocautochuc/services/cocautochuc-new.service.d.ts +1 -1
- package/components/cocautochuc/services/cocautochuc-new.service.d.ts.map +1 -1
- package/esm2015/components/cocautochuc/services/cocautochuc-new.service.js +6 -3
- package/esm2015/pipes/tn-date.pipe.js +2 -3
- package/esm2015/services/crud.service.js +13 -1
- package/fesm2015/tnx-shared.js +18 -4
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/pipes/tn-date.pipe.d.ts.map +1 -1
- package/services/crud.service.d.ts +1 -0
- package/services/crud.service.d.ts.map +1 -1
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -5706,6 +5706,18 @@ class CrudService {
|
|
|
5706
5706
|
}
|
|
5707
5707
|
}
|
|
5708
5708
|
}
|
|
5709
|
+
renderTimespan(datetime) {
|
|
5710
|
+
if (!datetime) {
|
|
5711
|
+
return '';
|
|
5712
|
+
}
|
|
5713
|
+
try {
|
|
5714
|
+
const arrTime = datetime.split(':');
|
|
5715
|
+
return `${arrTime[0]}:${arrTime[1]}`;
|
|
5716
|
+
}
|
|
5717
|
+
catch (_a) {
|
|
5718
|
+
return '';
|
|
5719
|
+
}
|
|
5720
|
+
}
|
|
5709
5721
|
renderDate(datetime, format = 'normal') {
|
|
5710
5722
|
if (!datetime) {
|
|
5711
5723
|
return '';
|
|
@@ -27936,8 +27948,11 @@ class CoCauToChucNewService extends BaseService {
|
|
|
27936
27948
|
] }, control));
|
|
27937
27949
|
return result;
|
|
27938
27950
|
}
|
|
27939
|
-
getTrangThaiGuiCongVan() {
|
|
27940
|
-
|
|
27951
|
+
getTrangThaiGuiCongVan(codeApp = '') {
|
|
27952
|
+
let apiUrl = `${this.serviceUri}/GetTrangThaiGuiCongVan`;
|
|
27953
|
+
if (codeApp) {
|
|
27954
|
+
apiUrl = `${apiUrl}/${codeApp}`;
|
|
27955
|
+
}
|
|
27941
27956
|
return this.defaultGet(apiUrl);
|
|
27942
27957
|
}
|
|
27943
27958
|
}
|
|
@@ -34788,8 +34803,7 @@ class TnDatePipe {
|
|
|
34788
34803
|
return this._crudService.renderDate(value, format);
|
|
34789
34804
|
}
|
|
34790
34805
|
else if (dataType == 'timespan') {
|
|
34791
|
-
|
|
34792
|
-
return `${arrTime[0]}:${arrTime[1]}`;
|
|
34806
|
+
return this._crudService.renderTimespan(value);
|
|
34793
34807
|
}
|
|
34794
34808
|
return this._crudService.renderDateTime(value, format);
|
|
34795
34809
|
}
|