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.
@@ -4055,6 +4055,18 @@ class CommonService {
4055
4055
  }
4056
4056
  return Math.round(value * pn) / pn;
4057
4057
  }
4058
+ convertToRomanNumber(numb) {
4059
+ let str = '';
4060
+ if (!numb || isNaN(numb) || numb < 1)
4061
+ return str;
4062
+ const 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 };
4063
+ for (const i of Object.keys(roman)) {
4064
+ const q = Math.floor(numb / roman[i]);
4065
+ numb -= q * roman[i];
4066
+ str += i.repeat(q);
4067
+ }
4068
+ return str;
4069
+ }
4058
4070
  }
4059
4071
  CommonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CommonService_Factory() { return new CommonService(i0.ɵɵinject(ModuleConfigService)); }, token: CommonService, providedIn: "root" });
4060
4072
  CommonService.decorators = [
@@ -16225,7 +16237,7 @@ class DataFormBase extends ComponentBaseWithButton {
16225
16237
  valueBefore: valueBefore,
16226
16238
  valueAfter: valueAfter,
16227
16239
  enumLogType: (control instanceof EditorControlSchema || control instanceof TextAreaControlSchema)
16228
- ? EnumLogType.Html
16240
+ ? EnumLogType.Table
16229
16241
  : EnumLogType.Normal
16230
16242
  }));
16231
16243
  }
@@ -24130,6 +24142,7 @@ class ListBase extends ComponentBaseWithButton {
24130
24142
  const data = {
24131
24143
  lstData: lstData
24132
24144
  };
24145
+ yield this.modifyDataForExportAll(data);
24133
24146
  const sheet = new ExportItem({
24134
24147
  type: ExportItemType.ExcelSheet,
24135
24148
  templateCode,
@@ -24141,7 +24154,6 @@ class ListBase extends ComponentBaseWithButton {
24141
24154
  name: this.setting.title ? this.setting.title : `Danh sách ${this.setting.objectName.toLocaleLowerCase()}`
24142
24155
  });
24143
24156
  file.children = [sheet];
24144
- yield this.modifyDataForExportAll(data);
24145
24157
  const _templateInstanceService = this._injector.get(TemplateInstanceService);
24146
24158
  return _templateInstanceService.exportNormal(file);
24147
24159
  });