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.
@@ -28229,16 +28229,18 @@
28229
28229
  ListBase.prototype.deepClone = function (data) {
28230
28230
  return JSON.parse(JSON.stringify(data));
28231
28231
  };
28232
- ListBase.prototype._exportAllData = function (event) {
28232
+ ListBase.prototype._exportAllData = function (event, fileName) {
28233
28233
  var _a;
28234
28234
  return __awaiter(this, void 0, void 0, function () {
28235
- var lstData, fileName, lstVisibleField, lstHeader, fieldSchemaMap, printData;
28235
+ var lstData, lstVisibleField, lstHeader, fieldSchemaMap, printData;
28236
28236
  return __generator(this, function (_b) {
28237
28237
  switch (_b.label) {
28238
28238
  case 0: return [4 /*yield*/, this.setting.baseService.getDataCustomRoute(this.plusUrl, this.currentGridInfo.filters, this.currentGridInfo.fields, this.currentGridInfo.sorts, -1, 1)];
28239
28239
  case 1:
28240
28240
  lstData = (_a = (_b.sent()).data) !== null && _a !== void 0 ? _a : [];
28241
- fileName = this.setting.title ? this.setting.title : "Danh s\u00E1ch " + this.setting.objectName.toLocaleLowerCase();
28241
+ if (!fileName) {
28242
+ fileName = this.setting.title ? this.setting.title : "Danh s\u00E1ch " + this.setting.objectName.toLocaleLowerCase();
28243
+ }
28242
28244
  lstVisibleField = this.setting.cols
28243
28245
  .filter(function (item) { return item.visible && item.dataType !== 'trangThaiV5'; })
28244
28246
  .map(function (item) { return item.field; });