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.
@@ -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)