tnx-shared 5.3.321 → 5.3.322
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 +27 -4
- 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.map +1 -1
- package/esm2015/classes/base/data-form-base.js +2 -2
- package/esm2015/classes/base/list-base.js +2 -2
- package/esm2015/services/common.service.js +13 -1
- package/fesm2015/tnx-shared.js +14 -2
- 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
|
@@ -4954,6 +4954,29 @@
|
|
|
4954
4954
|
}
|
|
4955
4955
|
return Math.round(value * pn) / pn;
|
|
4956
4956
|
};
|
|
4957
|
+
CommonService.prototype.convertToRomanNumber = function (numb) {
|
|
4958
|
+
var e_7, _b;
|
|
4959
|
+
var str = '';
|
|
4960
|
+
if (!numb || isNaN(numb) || numb < 1)
|
|
4961
|
+
return str;
|
|
4962
|
+
var roman = { M: 1000, CM: 900, D: 500, CD: 400, C: 100, XC: 90, L: 50, XL: 40, X: 10, IX: 9, V: 5, IV: 4, I: 1 };
|
|
4963
|
+
try {
|
|
4964
|
+
for (var _c = __values(Object.keys(roman)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
4965
|
+
var i = _d.value;
|
|
4966
|
+
var q = Math.floor(numb / roman[i]);
|
|
4967
|
+
numb -= q * roman[i];
|
|
4968
|
+
str += i.repeat(q);
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
4972
|
+
finally {
|
|
4973
|
+
try {
|
|
4974
|
+
if (_d && !_d.done && (_b = _c.return)) _b.call(_c);
|
|
4975
|
+
}
|
|
4976
|
+
finally { if (e_7) throw e_7.error; }
|
|
4977
|
+
}
|
|
4978
|
+
return str;
|
|
4979
|
+
};
|
|
4957
4980
|
return CommonService;
|
|
4958
4981
|
}());
|
|
4959
4982
|
CommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0__namespace.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
|
|
@@ -19402,7 +19425,7 @@
|
|
|
19402
19425
|
valueBefore: valueBefore,
|
|
19403
19426
|
valueAfter: valueAfter,
|
|
19404
19427
|
enumLogType: (control instanceof EditorControlSchema || control instanceof TextAreaControlSchema)
|
|
19405
|
-
? exports.EnumLogType.
|
|
19428
|
+
? exports.EnumLogType.Table
|
|
19406
19429
|
: exports.EnumLogType.Normal
|
|
19407
19430
|
}));
|
|
19408
19431
|
}
|
|
@@ -28273,6 +28296,9 @@
|
|
|
28273
28296
|
data = {
|
|
28274
28297
|
lstData: lstData
|
|
28275
28298
|
};
|
|
28299
|
+
return [4 /*yield*/, this.modifyDataForExportAll(data)];
|
|
28300
|
+
case 4:
|
|
28301
|
+
_b.sent();
|
|
28276
28302
|
sheet = new ExportItem({
|
|
28277
28303
|
type: exports.ExportItemType.ExcelSheet,
|
|
28278
28304
|
templateCode: templateCode,
|
|
@@ -28284,9 +28310,6 @@
|
|
|
28284
28310
|
name: this.setting.title ? this.setting.title : "Danh s\u00E1ch " + this.setting.objectName.toLocaleLowerCase()
|
|
28285
28311
|
});
|
|
28286
28312
|
file.children = [sheet];
|
|
28287
|
-
return [4 /*yield*/, this.modifyDataForExportAll(data)];
|
|
28288
|
-
case 4:
|
|
28289
|
-
_b.sent();
|
|
28290
28313
|
_templateInstanceService = this._injector.get(TemplateInstanceService);
|
|
28291
28314
|
return [2 /*return*/, _templateInstanceService.exportNormal(file)];
|
|
28292
28315
|
}
|