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
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -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)
|