tnx-shared 5.3.287 → 5.3.288
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 +20 -2
- 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/classes/base/data-form-base.d.ts.map +1 -1
- package/classes/base/list-base.d.ts.map +1 -1
- package/classes/base/validators.d.ts.map +1 -1
- package/esm2015/classes/base/data-form-base.js +4 -3
- package/esm2015/classes/base/list-base.js +4 -1
- package/esm2015/classes/base/validators.js +4 -2
- package/esm2015/services/common.service.js +13 -1
- package/fesm2015/tnx-shared.js +21 -3
- 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
|
@@ -4887,6 +4887,18 @@
|
|
|
4887
4887
|
element.innerHTML = str;
|
|
4888
4888
|
return element.innerText;
|
|
4889
4889
|
};
|
|
4890
|
+
CommonService.prototype.renderTimespan = function (datetime) {
|
|
4891
|
+
if (!datetime) {
|
|
4892
|
+
return '';
|
|
4893
|
+
}
|
|
4894
|
+
try {
|
|
4895
|
+
var arrTime = datetime.split(':');
|
|
4896
|
+
return arrTime[0] + ":" + arrTime[1];
|
|
4897
|
+
}
|
|
4898
|
+
catch (_a) {
|
|
4899
|
+
return '';
|
|
4900
|
+
}
|
|
4901
|
+
};
|
|
4890
4902
|
return CommonService;
|
|
4891
4903
|
}());
|
|
4892
4904
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -13662,7 +13674,9 @@
|
|
|
13662
13674
|
var _a;
|
|
13663
13675
|
this._label = (_a = event.control.errorLabel) !== null && _a !== void 0 ? _a : event.control.label;
|
|
13664
13676
|
if (event.control.isHtmlLabel) {
|
|
13665
|
-
|
|
13677
|
+
var element = document.createElement('div');
|
|
13678
|
+
element.innerHTML = this._label;
|
|
13679
|
+
this._label = element.innerText;
|
|
13666
13680
|
}
|
|
13667
13681
|
return isNotEmpty(event.value, event.control);
|
|
13668
13682
|
};
|
|
@@ -19403,8 +19417,9 @@
|
|
|
19403
19417
|
DataFormBase.prototype.showMessageAfterUpdate = function (isSuccess, error) {
|
|
19404
19418
|
if (isSuccess === void 0) { isSuccess = false; }
|
|
19405
19419
|
if (isSuccess) {
|
|
19406
|
-
if (!this.messageUpdateSuccess)
|
|
19420
|
+
if (!this.messageUpdateSuccess) {
|
|
19407
19421
|
this.messageUpdateSuccess = this._translateService.instant('MESSAGE.UPDATE_DATA_SUCCESS');
|
|
19422
|
+
}
|
|
19408
19423
|
if (this.messageUpdateSuccess) {
|
|
19409
19424
|
this._notifierService.showSuccess(this.messageUpdateSuccess);
|
|
19410
19425
|
}
|
|
@@ -26908,6 +26923,9 @@
|
|
|
26908
26923
|
this.model.total = 0;
|
|
26909
26924
|
this.model.expandedRowKeys = {};
|
|
26910
26925
|
this._unmarkLoading();
|
|
26926
|
+
setTimeout(function () {
|
|
26927
|
+
_this.setAuthorizeButtons();
|
|
26928
|
+
}, 10);
|
|
26911
26929
|
return [2 /*return*/];
|
|
26912
26930
|
}
|
|
26913
26931
|
return [2 /*return*/, this.doGetRequest(gridInfo)];
|