tnx-shared 5.3.319 → 5.3.320
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 +11 -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/classes/base/list-base.d.ts +1 -0
- package/classes/base/list-base.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +2 -2
- package/esm2015/services/common.service.js +10 -1
- package/fesm2015/tnx-shared.js +10 -1
- 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
|
@@ -4944,6 +4944,16 @@
|
|
|
4944
4944
|
return '';
|
|
4945
4945
|
}
|
|
4946
4946
|
};
|
|
4947
|
+
CommonService.prototype.mathRound = function (value, digits) {
|
|
4948
|
+
if (digits === void 0) { digits = 0; }
|
|
4949
|
+
var pn = 1;
|
|
4950
|
+
var i = 0;
|
|
4951
|
+
while (digits > 0 && i < digits) {
|
|
4952
|
+
pn = pn * 10;
|
|
4953
|
+
i += 1;
|
|
4954
|
+
}
|
|
4955
|
+
return Math.round(value * pn) / pn;
|
|
4956
|
+
};
|
|
4947
4957
|
return CommonService;
|
|
4948
4958
|
}());
|
|
4949
4959
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -26994,7 +27004,7 @@
|
|
|
26994
27004
|
};
|
|
26995
27005
|
ListBase.prototype.mergeInfoToColumnSchema = function () {
|
|
26996
27006
|
var _this = this;
|
|
26997
|
-
var i = 0, constWidth = 83, sumWidth = 0, widthColBefore = 0; // 83 tổng chiều dài checkbox + stt crud-list
|
|
27007
|
+
var i = 0, constWidth = this.constWidthCol || 83, sumWidth = 0, widthColBefore = 0; // 83 tổng chiều dài checkbox + stt crud-list
|
|
26998
27008
|
if (this.setting.hiddenCheckbox)
|
|
26999
27009
|
constWidth -= 35;
|
|
27000
27010
|
if (this.setting.hiddenOrderColumn)
|