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.
- package/bundles/tnx-shared.umd.js +5 -3
- 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 +2 -2
- package/classes/base/list-base.d.ts.map +1 -1
- package/esm2015/classes/base/list-base.js +5 -3
- package/fesm2015/tnx-shared.js +4 -2
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
package/fesm2015/tnx-shared.js
CHANGED
|
@@ -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
|
-
|
|
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);
|