@sankhyalabs/sankhyablocks 10.1.0-dev.58 → 10.1.0-dev.59
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/dist/cjs/{SnkMultiSelectionListDataSource-8d426f44.js → SnkMultiSelectionListDataSource-5c5badfc.js} +1 -1
- package/dist/cjs/{index-e3e39724.js → index-bc950921.js} +6 -0
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-attach_11.cjs.entry.js +3 -3
- package/dist/cjs/snk-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-data-exporter.cjs.entry.js +54 -9
- package/dist/cjs/snk-detail-view.cjs.entry.js +3 -3
- package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +4 -4
- package/dist/cjs/{snk-dynaform-guides-view-c956fdd4.js → snk-dynaform-guides-view-2c7c6ce4.js} +1 -1
- package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +3 -3
- package/dist/cjs/snk-dynaform.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +3 -3
- package/dist/cjs/{snk-guides-viewer-727cc1b6.js → snk-guides-viewer-67b9cca9.js} +1 -1
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-80eddec8.js → taskbar-elements-25f800b3.js} +1 -1
- package/dist/cjs/{taskbarUtils-be0fb299.js → taskbarUtils-99aaa01f.js} +2 -2
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +2 -2
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +8 -4
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +43 -2
- package/dist/collection/lib/@types/index.js +6 -0
- package/dist/components/ISave.js +6 -0
- package/dist/components/snk-data-exporter2.js +53 -8
- package/dist/esm/{SnkMultiSelectionListDataSource-eefb24b4.js → SnkMultiSelectionListDataSource-6ac291a9.js} +1 -1
- package/dist/esm/{index-b40568ff.js → index-c6721886.js} +6 -0
- package/dist/esm/pesquisa-grid_2.entry.js +1 -1
- package/dist/esm/snk-actions-button_9.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-attach_11.entry.js +3 -3
- package/dist/esm/snk-crud.entry.js +3 -3
- package/dist/esm/snk-data-exporter.entry.js +54 -9
- package/dist/esm/snk-detail-view.entry.js +3 -3
- package/dist/esm/snk-dynaform-detail-view_2.entry.js +4 -4
- package/dist/esm/{snk-dynaform-guides-view-9977a60e.js → snk-dynaform-guides-view-0dfbefc1.js} +1 -1
- package/dist/esm/snk-dynaform-guides-view.entry.js +3 -3
- package/dist/esm/snk-dynaform.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +3 -3
- package/dist/esm/{snk-guides-viewer-d512dc7a.js → snk-guides-viewer-31a0a23d.js} +1 -1
- package/dist/esm/snk-guides-viewer.entry.js +3 -3
- package/dist/esm/snk-layout-form-config.entry.js +1 -1
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-63651ca7.js → taskbar-elements-ba9d6889.js} +1 -1
- package/dist/esm/{taskbarUtils-c08efdbb.js → taskbarUtils-cb9db0d9.js} +2 -2
- package/dist/sankhyablocks/{p-9b5c9387.entry.js → p-1d31aec3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-af58b0d9.entry.js → p-250b273e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-64f14e9c.entry.js → p-2c4f7fdd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3072136e.js → p-2ec98523.js} +1 -1
- package/dist/sankhyablocks/{p-d8361914.entry.js → p-541c72ec.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4299bcbb.js → p-5aeae67f.js} +1 -1
- package/dist/sankhyablocks/{p-a9330ce9.entry.js → p-5ef0e9a8.entry.js} +1 -1
- package/dist/sankhyablocks/{p-8be9d886.entry.js → p-6d3bcabf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9a0e5bdf.js → p-6f60df43.js} +1 -1
- package/dist/sankhyablocks/{p-d10df418.entry.js → p-846d8f79.entry.js} +1 -1
- package/dist/sankhyablocks/{p-77f608bc.entry.js → p-885262ce.entry.js} +1 -1
- package/dist/sankhyablocks/{p-711508e7.entry.js → p-8f5dd87d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-59717928.js → p-90037547.js} +1 -1
- package/dist/sankhyablocks/{p-30570022.entry.js → p-a25ab2ff.entry.js} +1 -1
- package/dist/sankhyablocks/p-a696bbcd.entry.js +1 -0
- package/dist/sankhyablocks/{p-69f1b522.entry.js → p-a9012341.entry.js} +1 -1
- package/dist/sankhyablocks/p-abcb646d.js +1 -0
- package/dist/sankhyablocks/{p-75f261aa.js → p-bd2a845c.js} +1 -1
- package/dist/sankhyablocks/{p-33f84e69.entry.js → p-bfce617e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-62601ac6.entry.js → p-cd153f71.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1567aaf9.entry.js → p-fb6e3c65.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +16 -0
- package/dist/types/lib/@types/index.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-0f3698af.js +0 -1
- package/dist/sankhyablocks/p-d622b92c.entry.js +0 -1
|
@@ -18,6 +18,9 @@ export class ItemBuilder {
|
|
|
18
18
|
if (option === DataExporterOption.EXPORT_TO_XLS) {
|
|
19
19
|
items.push(this.getExportToXLS(groupName));
|
|
20
20
|
}
|
|
21
|
+
if (option === DataExporterOption.EXPORT_TO_XLSX) {
|
|
22
|
+
items.push(this.getExportToXLSX(groupName));
|
|
23
|
+
}
|
|
21
24
|
this.setExportCurrentPage(option, items);
|
|
22
25
|
if (this._selectedNumber > 0) {
|
|
23
26
|
this.setExportAllRecords(option, items);
|
|
@@ -31,7 +34,7 @@ export class ItemBuilder {
|
|
|
31
34
|
*/
|
|
32
35
|
setExportCurrentPage(option, items) {
|
|
33
36
|
var _a;
|
|
34
|
-
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
37
|
+
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
35
38
|
if (option === DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
36
39
|
items.push(this.getCurrentPage());
|
|
37
40
|
}
|
|
@@ -50,6 +53,9 @@ export class ItemBuilder {
|
|
|
50
53
|
if (option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
51
54
|
item.children.push(this.getExportPageToXLS());
|
|
52
55
|
}
|
|
56
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
57
|
+
item.children.push(this.getExportPageToXLSX());
|
|
58
|
+
}
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
/**
|
|
@@ -59,7 +65,7 @@ export class ItemBuilder {
|
|
|
59
65
|
*/
|
|
60
66
|
setExportAllRecords(option, items) {
|
|
61
67
|
var _a;
|
|
62
|
-
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
68
|
+
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
63
69
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
64
70
|
items.push(this.getAllRecords());
|
|
65
71
|
}
|
|
@@ -78,6 +84,9 @@ export class ItemBuilder {
|
|
|
78
84
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
79
85
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
80
86
|
}
|
|
87
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
88
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
89
|
+
}
|
|
81
90
|
}
|
|
82
91
|
}
|
|
83
92
|
/**
|
|
@@ -114,6 +123,18 @@ export class ItemBuilder {
|
|
|
114
123
|
group: groupName
|
|
115
124
|
};
|
|
116
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
128
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
129
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
130
|
+
*/
|
|
131
|
+
getExportToXLSX(groupName) {
|
|
132
|
+
return {
|
|
133
|
+
id: DataExporterOption.EXPORT_TO_XLSX,
|
|
134
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
135
|
+
group: groupName
|
|
136
|
+
};
|
|
137
|
+
}
|
|
117
138
|
/**
|
|
118
139
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
119
140
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -156,6 +177,16 @@ export class ItemBuilder {
|
|
|
156
177
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
157
178
|
};
|
|
158
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
182
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
183
|
+
*/
|
|
184
|
+
getExportPageToXLSX() {
|
|
185
|
+
return {
|
|
186
|
+
id: DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
187
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
188
|
+
};
|
|
189
|
+
}
|
|
159
190
|
/**
|
|
160
191
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
161
192
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -173,6 +204,16 @@ export class ItemBuilder {
|
|
|
173
204
|
getExportAllRecordsToXLS() {
|
|
174
205
|
return {
|
|
175
206
|
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
207
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
212
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
213
|
+
*/
|
|
214
|
+
getExportAllRecordsToXLSX() {
|
|
215
|
+
return {
|
|
216
|
+
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
176
217
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
177
218
|
};
|
|
178
219
|
}
|
|
@@ -8,12 +8,15 @@ export var DataExporterOption;
|
|
|
8
8
|
(function (DataExporterOption) {
|
|
9
9
|
DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
|
|
10
10
|
DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
|
|
11
|
+
DataExporterOption["EXPORT_TO_XLSX"] = "exportToXLSX";
|
|
11
12
|
DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
|
|
12
13
|
DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
|
|
13
14
|
DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
|
|
14
15
|
DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
|
|
16
|
+
DataExporterOption["EXPORT_PAGE_TO_XLSX"] = "exportPageToXLSX";
|
|
15
17
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
|
|
16
18
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
|
|
19
|
+
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLSX"] = "exportAllRecordsToXLSX";
|
|
17
20
|
DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
|
|
18
21
|
DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
|
|
19
22
|
DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
|
|
@@ -28,10 +31,13 @@ export var DataExporterType;
|
|
|
28
31
|
(function (DataExporterType) {
|
|
29
32
|
DataExporterType["EXPORT_TO_PDF"] = "PDF";
|
|
30
33
|
DataExporterType["EXPORT_TO_XLS"] = "XLS";
|
|
34
|
+
DataExporterType["EXPORT_TO_XLSX"] = "XLS";
|
|
31
35
|
DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
|
|
32
36
|
DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
|
|
37
|
+
DataExporterType["EXPORT_PAGE_TO_XLSX"] = "XLS";
|
|
33
38
|
DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
|
|
34
39
|
DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
|
|
40
|
+
DataExporterType["EXPORT_ALL_RECORDS_TO_XLSX"] = "XLS";
|
|
35
41
|
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
|
36
42
|
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
|
37
43
|
})(DataExporterType || (DataExporterType = {}));
|
package/dist/components/ISave.js
CHANGED
|
@@ -393,12 +393,15 @@ var DataExporterOption;
|
|
|
393
393
|
(function (DataExporterOption) {
|
|
394
394
|
DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
|
|
395
395
|
DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
|
|
396
|
+
DataExporterOption["EXPORT_TO_XLSX"] = "exportToXLSX";
|
|
396
397
|
DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
|
|
397
398
|
DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
|
|
398
399
|
DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
|
|
399
400
|
DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
|
|
401
|
+
DataExporterOption["EXPORT_PAGE_TO_XLSX"] = "exportPageToXLSX";
|
|
400
402
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
|
|
401
403
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
|
|
404
|
+
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLSX"] = "exportAllRecordsToXLSX";
|
|
402
405
|
DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
|
|
403
406
|
DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
|
|
404
407
|
DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
|
|
@@ -413,10 +416,13 @@ var DataExporterType;
|
|
|
413
416
|
(function (DataExporterType) {
|
|
414
417
|
DataExporterType["EXPORT_TO_PDF"] = "PDF";
|
|
415
418
|
DataExporterType["EXPORT_TO_XLS"] = "XLS";
|
|
419
|
+
DataExporterType["EXPORT_TO_XLSX"] = "XLS";
|
|
416
420
|
DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
|
|
417
421
|
DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
|
|
422
|
+
DataExporterType["EXPORT_PAGE_TO_XLSX"] = "XLS";
|
|
418
423
|
DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
|
|
419
424
|
DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
|
|
425
|
+
DataExporterType["EXPORT_ALL_RECORDS_TO_XLSX"] = "XLS";
|
|
420
426
|
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
|
421
427
|
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
|
422
428
|
})(DataExporterType || (DataExporterType = {}));
|
|
@@ -38,6 +38,9 @@ class ItemBuilder {
|
|
|
38
38
|
if (option === DataExporterOption.EXPORT_TO_XLS) {
|
|
39
39
|
items.push(this.getExportToXLS(groupName));
|
|
40
40
|
}
|
|
41
|
+
if (option === DataExporterOption.EXPORT_TO_XLSX) {
|
|
42
|
+
items.push(this.getExportToXLSX(groupName));
|
|
43
|
+
}
|
|
41
44
|
this.setExportCurrentPage(option, items);
|
|
42
45
|
if (this._selectedNumber > 0) {
|
|
43
46
|
this.setExportAllRecords(option, items);
|
|
@@ -51,7 +54,7 @@ class ItemBuilder {
|
|
|
51
54
|
*/
|
|
52
55
|
setExportCurrentPage(option, items) {
|
|
53
56
|
var _a;
|
|
54
|
-
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
57
|
+
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
55
58
|
if (option === DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
56
59
|
items.push(this.getCurrentPage());
|
|
57
60
|
}
|
|
@@ -70,6 +73,9 @@ class ItemBuilder {
|
|
|
70
73
|
if (option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
71
74
|
item.children.push(this.getExportPageToXLS());
|
|
72
75
|
}
|
|
76
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
77
|
+
item.children.push(this.getExportPageToXLSX());
|
|
78
|
+
}
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
@@ -79,7 +85,7 @@ class ItemBuilder {
|
|
|
79
85
|
*/
|
|
80
86
|
setExportAllRecords(option, items) {
|
|
81
87
|
var _a;
|
|
82
|
-
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
88
|
+
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
83
89
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
84
90
|
items.push(this.getAllRecords());
|
|
85
91
|
}
|
|
@@ -98,6 +104,9 @@ class ItemBuilder {
|
|
|
98
104
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
99
105
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
100
106
|
}
|
|
107
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
108
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
109
|
+
}
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
@@ -134,6 +143,18 @@ class ItemBuilder {
|
|
|
134
143
|
group: groupName
|
|
135
144
|
};
|
|
136
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
148
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
149
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
150
|
+
*/
|
|
151
|
+
getExportToXLSX(groupName) {
|
|
152
|
+
return {
|
|
153
|
+
id: DataExporterOption.EXPORT_TO_XLSX,
|
|
154
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
155
|
+
group: groupName
|
|
156
|
+
};
|
|
157
|
+
}
|
|
137
158
|
/**
|
|
138
159
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
139
160
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -176,6 +197,16 @@ class ItemBuilder {
|
|
|
176
197
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
177
198
|
};
|
|
178
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
202
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
203
|
+
*/
|
|
204
|
+
getExportPageToXLSX() {
|
|
205
|
+
return {
|
|
206
|
+
id: DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
207
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
208
|
+
};
|
|
209
|
+
}
|
|
179
210
|
/**
|
|
180
211
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
181
212
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -193,6 +224,16 @@ class ItemBuilder {
|
|
|
193
224
|
getExportAllRecordsToXLS() {
|
|
194
225
|
return {
|
|
195
226
|
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
227
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
232
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
233
|
+
*/
|
|
234
|
+
getExportAllRecordsToXLSX() {
|
|
235
|
+
return {
|
|
236
|
+
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
196
237
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
197
238
|
};
|
|
198
239
|
}
|
|
@@ -356,7 +397,7 @@ class ClientSideExporterStrategy {
|
|
|
356
397
|
return visibleColumns;
|
|
357
398
|
}
|
|
358
399
|
async executeExport(resolveProps) {
|
|
359
|
-
var _a;
|
|
400
|
+
var _a, _b;
|
|
360
401
|
const { methodName, gridTitle } = resolveProps;
|
|
361
402
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
362
403
|
const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
|
@@ -368,7 +409,7 @@ class ClientSideExporterStrategy {
|
|
|
368
409
|
gridTitle,
|
|
369
410
|
columns: this.buildColumnsObject(columns),
|
|
370
411
|
rows: this.buildRowsObject(columns, records),
|
|
371
|
-
customOptions: { xlsxExtension: false }
|
|
412
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
372
413
|
}
|
|
373
414
|
}
|
|
374
415
|
};
|
|
@@ -450,13 +491,16 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
450
491
|
this._releasedToExport = [
|
|
451
492
|
DataExporterOption.EXPORT_TO_PDF,
|
|
452
493
|
DataExporterOption.EXPORT_TO_XLS,
|
|
494
|
+
DataExporterOption.EXPORT_TO_XLSX,
|
|
453
495
|
DataExporterOption.EXPORT_BY_EMAIL,
|
|
454
496
|
DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
455
497
|
DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
456
498
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
457
499
|
DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
500
|
+
DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
458
501
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
459
502
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
503
|
+
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
460
504
|
];
|
|
461
505
|
this._items = [];
|
|
462
506
|
this._showDropdown = false;
|
|
@@ -551,16 +595,16 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
551
595
|
});
|
|
552
596
|
}
|
|
553
597
|
getExportType(option) {
|
|
554
|
-
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
598
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
555
599
|
return IExportType.ALL;
|
|
556
600
|
}
|
|
557
|
-
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
601
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS || option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
558
602
|
return IExportType.PAGE;
|
|
559
603
|
}
|
|
560
604
|
return IExportType.SELECTION;
|
|
561
605
|
}
|
|
562
606
|
async dispatchExporter(option) {
|
|
563
|
-
var _a, _b, _c;
|
|
607
|
+
var _a, _b, _c, _d;
|
|
564
608
|
const optionKey = this.getOptionKey(option);
|
|
565
609
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
|
566
610
|
const params = {
|
|
@@ -570,6 +614,7 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
570
614
|
exportOption: option,
|
|
571
615
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
572
616
|
type: this.getExportType(option),
|
|
617
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
573
618
|
};
|
|
574
619
|
await this.resolveExporter(params, (response) => {
|
|
575
620
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -583,7 +628,7 @@ const SnkDataExporter = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
583
628
|
async processExporter(evt) {
|
|
584
629
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
585
630
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
586
|
-
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
631
|
+
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
587
632
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
588
633
|
if ((item === null || item === void 0 ? void 0 : item.id) === DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
589
634
|
return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { D as DataFetcher } from './DataFetcher-70de9419.js';
|
|
2
2
|
import './ISave-f5704813.js';
|
|
3
3
|
import { SortMode, ApplicationContext, ObjectUtils, StringUtils, NumberUtils, DataType, UserInterface as UserInterface$1, DateUtils } from '@sankhyalabs/core';
|
|
4
|
-
import { D as DataExporterOption } from './index-
|
|
4
|
+
import { D as DataExporterOption } from './index-c6721886.js';
|
|
5
5
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
6
6
|
import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
7
7
|
import { P as PreloadManager } from './dataunit-fetcher-d26e4a08.js';
|
|
@@ -8,12 +8,15 @@ var DataExporterOption;
|
|
|
8
8
|
(function (DataExporterOption) {
|
|
9
9
|
DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
|
|
10
10
|
DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
|
|
11
|
+
DataExporterOption["EXPORT_TO_XLSX"] = "exportToXLSX";
|
|
11
12
|
DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
|
|
12
13
|
DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
|
|
13
14
|
DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
|
|
14
15
|
DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
|
|
16
|
+
DataExporterOption["EXPORT_PAGE_TO_XLSX"] = "exportPageToXLSX";
|
|
15
17
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
|
|
16
18
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
|
|
19
|
+
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLSX"] = "exportAllRecordsToXLSX";
|
|
17
20
|
DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
|
|
18
21
|
DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
|
|
19
22
|
DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
|
|
@@ -28,10 +31,13 @@ var DataExporterType;
|
|
|
28
31
|
(function (DataExporterType) {
|
|
29
32
|
DataExporterType["EXPORT_TO_PDF"] = "PDF";
|
|
30
33
|
DataExporterType["EXPORT_TO_XLS"] = "XLS";
|
|
34
|
+
DataExporterType["EXPORT_TO_XLSX"] = "XLS";
|
|
31
35
|
DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
|
|
32
36
|
DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
|
|
37
|
+
DataExporterType["EXPORT_PAGE_TO_XLSX"] = "XLS";
|
|
33
38
|
DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
|
|
34
39
|
DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
|
|
40
|
+
DataExporterType["EXPORT_ALL_RECORDS_TO_XLSX"] = "XLS";
|
|
35
41
|
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
|
36
42
|
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
|
37
43
|
})(DataExporterType || (DataExporterType = {}));
|
|
@@ -3,7 +3,7 @@ import { I as InMemoryLoader } from './dataunit-fetcher-d26e4a08.js';
|
|
|
3
3
|
import './DataFetcher-70de9419.js';
|
|
4
4
|
import { P as PesquisaFetcher } from './ISave-f5704813.js';
|
|
5
5
|
import '@sankhyalabs/core';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-c6721886.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
@@ -3,7 +3,7 @@ import { ApplicationContext, StringUtils, ErrorException, WarningException, Obje
|
|
|
3
3
|
import { D as DataFetcher } from './DataFetcher-70de9419.js';
|
|
4
4
|
import { P as ParamType } from './ParamType-d5152b06.js';
|
|
5
5
|
import './ISave-f5704813.js';
|
|
6
|
-
import './index-
|
|
6
|
+
import './index-c6721886.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
9
|
import './dataunit-fetcher-d26e4a08.js';
|
|
@@ -7,7 +7,7 @@ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-e34880e5
|
|
|
7
7
|
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-d26e4a08.js';
|
|
8
8
|
import { P as PesquisaFetcher } from './ISave-f5704813.js';
|
|
9
9
|
import { T as TEMPLATES_SKELETON } from './constants-7b422de0.js';
|
|
10
|
-
import './index-
|
|
10
|
+
import './index-c6721886.js';
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
12
|
import { F as FormConfigFetcher } from './form-config-fetcher-98c42169.js';
|
|
13
13
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -2,13 +2,13 @@ import { r as registerInstance, e as createEvent, h, f as Host, F as Fragment, g
|
|
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit, ElementIDUtils, ObjectUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher, S as SnkMessageBuilder } from './DataFetcher-70de9419.js';
|
|
4
4
|
import { S as SaveErrorsEnum } from './ISave-f5704813.js';
|
|
5
|
-
import { P as PresentationMode } from './index-
|
|
5
|
+
import { P as PresentationMode } from './index-c6721886.js';
|
|
6
6
|
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-d26e4a08.js';
|
|
7
7
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
|
8
8
|
import { F as FormConfigFetcher } from './form-config-fetcher-98c42169.js';
|
|
9
9
|
import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-7b422de0.js';
|
|
10
10
|
import { A as AutorizationType } from './auth-fetcher-e34880e5.js';
|
|
11
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
11
|
+
import { T as TaskbarElement } from './taskbar-elements-ba9d6889.js';
|
|
12
12
|
import { A as ActionDefaultFilter, F as FilterType } from './filter-type.enum-62b7fe88.js';
|
|
13
13
|
import { focusOnFieldSerch, SEARCH_FIELD_FULL_WIDTH, FormLayout, ApplicationUtils, CSSVarsUtils, buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
14
14
|
import { DataBinder } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
@@ -17,7 +17,7 @@ import { P as PersonalizedFilterUtils, a as FilterGroupCondition, D as DefaultFi
|
|
|
17
17
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
|
18
18
|
import { C as ConfigStorage, P as PersonalizedFilterFetcher } from './ConfigStorage-0d1c0695.js';
|
|
19
19
|
import { s as store } from './index-ea250be6.js';
|
|
20
|
-
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, R as RmPrecisionCustomValueFormatter, a as CrudUtils, b as ClientSideExporterProvider } from './SnkMultiSelectionListDataSource-
|
|
20
|
+
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, R as RmPrecisionCustomValueFormatter, a as CrudUtils, b as ClientSideExporterProvider } from './SnkMultiSelectionListDataSource-6ac291a9.js';
|
|
21
21
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
22
22
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
23
23
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager-e7f05f79.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, e as createEvent, h, f as Host, g as getElement
|
|
|
2
2
|
import { Action, StringUtils, ElementIDUtils, ApplicationContext, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import './DataFetcher-70de9419.js';
|
|
4
4
|
import './ISave-f5704813.js';
|
|
5
|
-
import { P as PresentationMode, E as ExporterStrategy } from './index-
|
|
5
|
+
import { P as PresentationMode, E as ExporterStrategy } from './index-c6721886.js';
|
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
8
|
import './dataunit-fetcher-d26e4a08.js';
|
|
@@ -11,8 +11,8 @@ import './form-config-fetcher-98c42169.js';
|
|
|
11
11
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
|
12
12
|
import { A as AutorizationType } from './auth-fetcher-e34880e5.js';
|
|
13
13
|
import { S as ServicesNumberingConfig } from './ServicesNumberingConfig-2f7b050e.js';
|
|
14
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
15
|
-
import { S as SimpleTaskbarProcessor, D as DEFAULT_TASKBAR_BUTTONS, C as CustomTaskbarButton, b as buildNativeTaskbarManager, g as getTopTaskBarId, a as getHeaderTaskbarId } from './taskbarUtils-
|
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-ba9d6889.js';
|
|
15
|
+
import { S as SimpleTaskbarProcessor, D as DEFAULT_TASKBAR_BUTTONS, C as CustomTaskbarButton, b as buildNativeTaskbarManager, g as getTopTaskBarId, a as getHeaderTaskbarId } from './taskbarUtils-cb9db0d9.js';
|
|
16
16
|
import { v as validateFilters } from './filter-validate-faf51fa9.js';
|
|
17
17
|
import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
18
18
|
import { C as ContinuousInsertUtils } from './ContinuousInsertUtils-bce77dc1.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, f as Host, g as getElement } from './index-04
|
|
|
2
2
|
import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
|
5
|
-
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-
|
|
5
|
+
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-c6721886.js';
|
|
6
6
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
|
|
7
7
|
import { D as DataFetcher } from './DataFetcher-70de9419.js';
|
|
8
8
|
import { S as SnkDataUnit } from './snk-data-unit-ff57ac90.js';
|
|
@@ -38,6 +38,9 @@ class ItemBuilder {
|
|
|
38
38
|
if (option === DataExporterOption.EXPORT_TO_XLS) {
|
|
39
39
|
items.push(this.getExportToXLS(groupName));
|
|
40
40
|
}
|
|
41
|
+
if (option === DataExporterOption.EXPORT_TO_XLSX) {
|
|
42
|
+
items.push(this.getExportToXLSX(groupName));
|
|
43
|
+
}
|
|
41
44
|
this.setExportCurrentPage(option, items);
|
|
42
45
|
if (this._selectedNumber > 0) {
|
|
43
46
|
this.setExportAllRecords(option, items);
|
|
@@ -51,7 +54,7 @@ class ItemBuilder {
|
|
|
51
54
|
*/
|
|
52
55
|
setExportCurrentPage(option, items) {
|
|
53
56
|
var _a;
|
|
54
|
-
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
57
|
+
const pageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
55
58
|
if (option === DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
56
59
|
items.push(this.getCurrentPage());
|
|
57
60
|
}
|
|
@@ -70,6 +73,9 @@ class ItemBuilder {
|
|
|
70
73
|
if (option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
71
74
|
item.children.push(this.getExportPageToXLS());
|
|
72
75
|
}
|
|
76
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
77
|
+
item.children.push(this.getExportPageToXLSX());
|
|
78
|
+
}
|
|
73
79
|
}
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
@@ -79,7 +85,7 @@ class ItemBuilder {
|
|
|
79
85
|
*/
|
|
80
86
|
setExportAllRecords(option, items) {
|
|
81
87
|
var _a;
|
|
82
|
-
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
88
|
+
const pageOptions = [DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
83
89
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
84
90
|
items.push(this.getAllRecords());
|
|
85
91
|
}
|
|
@@ -98,6 +104,9 @@ class ItemBuilder {
|
|
|
98
104
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
99
105
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
100
106
|
}
|
|
107
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
108
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
109
|
+
}
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
/**
|
|
@@ -134,6 +143,18 @@ class ItemBuilder {
|
|
|
134
143
|
group: groupName
|
|
135
144
|
};
|
|
136
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
148
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
149
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
150
|
+
*/
|
|
151
|
+
getExportToXLSX(groupName) {
|
|
152
|
+
return {
|
|
153
|
+
id: DataExporterOption.EXPORT_TO_XLSX,
|
|
154
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
155
|
+
group: groupName
|
|
156
|
+
};
|
|
157
|
+
}
|
|
137
158
|
/**
|
|
138
159
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
139
160
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -176,6 +197,16 @@ class ItemBuilder {
|
|
|
176
197
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
177
198
|
};
|
|
178
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
202
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
203
|
+
*/
|
|
204
|
+
getExportPageToXLSX() {
|
|
205
|
+
return {
|
|
206
|
+
id: DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
207
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
208
|
+
};
|
|
209
|
+
}
|
|
179
210
|
/**
|
|
180
211
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
181
212
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -193,6 +224,16 @@ class ItemBuilder {
|
|
|
193
224
|
getExportAllRecordsToXLS() {
|
|
194
225
|
return {
|
|
195
226
|
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
227
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
232
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
233
|
+
*/
|
|
234
|
+
getExportAllRecordsToXLSX() {
|
|
235
|
+
return {
|
|
236
|
+
id: DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
196
237
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
197
238
|
};
|
|
198
239
|
}
|
|
@@ -356,7 +397,7 @@ class ClientSideExporterStrategy {
|
|
|
356
397
|
return visibleColumns;
|
|
357
398
|
}
|
|
358
399
|
async executeExport(resolveProps) {
|
|
359
|
-
var _a;
|
|
400
|
+
var _a, _b;
|
|
360
401
|
const { methodName, gridTitle } = resolveProps;
|
|
361
402
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
362
403
|
const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
|
@@ -368,7 +409,7 @@ class ClientSideExporterStrategy {
|
|
|
368
409
|
gridTitle,
|
|
369
410
|
columns: this.buildColumnsObject(columns),
|
|
370
411
|
rows: this.buildRowsObject(columns, records),
|
|
371
|
-
customOptions: { xlsxExtension: false }
|
|
412
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
372
413
|
}
|
|
373
414
|
}
|
|
374
415
|
};
|
|
@@ -449,13 +490,16 @@ const SnkDataExporter = class {
|
|
|
449
490
|
this._releasedToExport = [
|
|
450
491
|
DataExporterOption.EXPORT_TO_PDF,
|
|
451
492
|
DataExporterOption.EXPORT_TO_XLS,
|
|
493
|
+
DataExporterOption.EXPORT_TO_XLSX,
|
|
452
494
|
DataExporterOption.EXPORT_BY_EMAIL,
|
|
453
495
|
DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
454
496
|
DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
455
497
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
456
498
|
DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
499
|
+
DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
457
500
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
458
501
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
502
|
+
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
459
503
|
];
|
|
460
504
|
this._items = [];
|
|
461
505
|
this._showDropdown = false;
|
|
@@ -550,16 +594,16 @@ const SnkDataExporter = class {
|
|
|
550
594
|
});
|
|
551
595
|
}
|
|
552
596
|
getExportType(option) {
|
|
553
|
-
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
597
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
554
598
|
return IExportType.ALL;
|
|
555
599
|
}
|
|
556
|
-
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
600
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS || option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
557
601
|
return IExportType.PAGE;
|
|
558
602
|
}
|
|
559
603
|
return IExportType.SELECTION;
|
|
560
604
|
}
|
|
561
605
|
async dispatchExporter(option) {
|
|
562
|
-
var _a, _b, _c;
|
|
606
|
+
var _a, _b, _c, _d;
|
|
563
607
|
const optionKey = this.getOptionKey(option);
|
|
564
608
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
|
565
609
|
const params = {
|
|
@@ -569,6 +613,7 @@ const SnkDataExporter = class {
|
|
|
569
613
|
exportOption: option,
|
|
570
614
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
571
615
|
type: this.getExportType(option),
|
|
616
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
572
617
|
};
|
|
573
618
|
await this.resolveExporter(params, (response) => {
|
|
574
619
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -582,7 +627,7 @@ const SnkDataExporter = class {
|
|
|
582
627
|
async processExporter(evt) {
|
|
583
628
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
584
629
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
585
|
-
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
630
|
+
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
586
631
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
587
632
|
if ((item === null || item === void 0 ? void 0 : item.id) === DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
588
633
|
return;
|
|
@@ -4,15 +4,15 @@ import { S as SnkFormConfigManager } from './SnkFormConfigManager-e7f05f79.js';
|
|
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
5
|
import { S as SnkMessageBuilder } from './DataFetcher-70de9419.js';
|
|
6
6
|
import './ISave-f5704813.js';
|
|
7
|
-
import { P as PresentationMode } from './index-
|
|
7
|
+
import { P as PresentationMode } from './index-c6721886.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
10
|
import './dataunit-fetcher-d26e4a08.js';
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
12
|
import './form-config-fetcher-98c42169.js';
|
|
13
13
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
|
14
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
|
14
|
+
import { T as TaskbarElement } from './taskbar-elements-ba9d6889.js';
|
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-31a0a23d.js';
|
|
16
16
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
17
17
|
import './ConfigStorage-0d1c0695.js';
|
|
18
18
|
import './PrintUtils-3e4ff0f5.js';
|