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.
@@ -4046,6 +4046,15 @@ class CommonService {
4046
4046
  return '';
4047
4047
  }
4048
4048
  }
4049
+ mathRound(value, digits = 0) {
4050
+ let pn = 1;
4051
+ let i = 0;
4052
+ while (digits > 0 && i < digits) {
4053
+ pn = pn * 10;
4054
+ i += 1;
4055
+ }
4056
+ return Math.round(value * pn) / pn;
4057
+ }
4049
4058
  }
4050
4059
  CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
4051
4060
  CommonService.decorators = [
@@ -23197,7 +23206,7 @@ class ListBase extends ComponentBaseWithButton {
23197
23206
  this.getMenuButtons = this.getMenuButtons.bind(this);
23198
23207
  }
23199
23208
  mergeInfoToColumnSchema() {
23200
- let i = 0, constWidth = 83, sumWidth = 0, widthColBefore = 0; // 83 tổng chiều dài checkbox + stt crud-list
23209
+ let i = 0, constWidth = this.constWidthCol || 83, sumWidth = 0, widthColBefore = 0; // 83 tổng chiều dài checkbox + stt crud-list
23201
23210
  if (this.setting.hiddenCheckbox)
23202
23211
  constWidth -= 35;
23203
23212
  if (this.setting.hiddenOrderColumn)