tnx-shared 5.3.325 → 5.3.326

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.
@@ -24100,11 +24100,13 @@ class ListBase extends ComponentBaseWithButton {
24100
24100
  deepClone(data) {
24101
24101
  return JSON.parse(JSON.stringify(data));
24102
24102
  }
24103
- _exportAllData(event) {
24103
+ _exportAllData(event, fileName) {
24104
24104
  var _a;
24105
24105
  return __awaiter(this, void 0, void 0, function* () {
24106
24106
  const lstData = (_a = (yield this.setting.baseService.getDataCustomRoute(this.plusUrl, this.currentGridInfo.filters, this.currentGridInfo.fields, this.currentGridInfo.sorts, -1, 1)).data) !== null && _a !== void 0 ? _a : [];
24107
- const fileName = this.setting.title ? this.setting.title : `Danh sách ${this.setting.objectName.toLocaleLowerCase()}`;
24107
+ if (!fileName) {
24108
+ fileName = this.setting.title ? this.setting.title : `Danh sách ${this.setting.objectName.toLocaleLowerCase()}`;
24109
+ }
24108
24110
  const lstVisibleField = this.setting.cols
24109
24111
  .filter(item => item.visible && item.dataType !== 'trangThaiV5')
24110
24112
  .map(item => item.field);