@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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
4
4
|
require('./ISave-55d9dcc3.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-bc950921.js');
|
|
7
7
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
8
8
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
9
9
|
const dataunitFetcher = require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -10,12 +10,15 @@ exports.DataExporterOption = void 0;
|
|
|
10
10
|
(function (DataExporterOption) {
|
|
11
11
|
DataExporterOption["EXPORT_TO_PDF"] = "exportToPDF";
|
|
12
12
|
DataExporterOption["EXPORT_TO_XLS"] = "exportToXLS";
|
|
13
|
+
DataExporterOption["EXPORT_TO_XLSX"] = "exportToXLSX";
|
|
13
14
|
DataExporterOption["EXPORT_CURRENT_PAGE"] = "exportCurrentPage";
|
|
14
15
|
DataExporterOption["EXPORT_ALL_RECORDS"] = "exportAllRecords";
|
|
15
16
|
DataExporterOption["EXPORT_PAGE_TO_PDF"] = "exportPageToPDF";
|
|
16
17
|
DataExporterOption["EXPORT_PAGE_TO_XLS"] = "exportPageToXLS";
|
|
18
|
+
DataExporterOption["EXPORT_PAGE_TO_XLSX"] = "exportPageToXLSX";
|
|
17
19
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_PDF"] = "exportAllRecordsToPDF";
|
|
18
20
|
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLS"] = "exportAllRecordsToXLS";
|
|
21
|
+
DataExporterOption["EXPORT_ALL_RECORDS_TO_XLSX"] = "exportAllRecordsToXLSX";
|
|
19
22
|
DataExporterOption["EXPORT_BY_EMAIL"] = "exportToEmail";
|
|
20
23
|
DataExporterOption["EXPORT_PDF_TO_EMAIL"] = "exportPDFToEmail";
|
|
21
24
|
DataExporterOption["EXPORT_XLS_TO_EMAIL"] = "exportXLSToEmail";
|
|
@@ -30,10 +33,13 @@ exports.DataExporterType = void 0;
|
|
|
30
33
|
(function (DataExporterType) {
|
|
31
34
|
DataExporterType["EXPORT_TO_PDF"] = "PDF";
|
|
32
35
|
DataExporterType["EXPORT_TO_XLS"] = "XLS";
|
|
36
|
+
DataExporterType["EXPORT_TO_XLSX"] = "XLS";
|
|
33
37
|
DataExporterType["EXPORT_PAGE_TO_PDF"] = "PDF";
|
|
34
38
|
DataExporterType["EXPORT_PAGE_TO_XLS"] = "XLS";
|
|
39
|
+
DataExporterType["EXPORT_PAGE_TO_XLSX"] = "XLS";
|
|
35
40
|
DataExporterType["EXPORT_ALL_RECORDS_TO_PDF"] = "PDF";
|
|
36
41
|
DataExporterType["EXPORT_ALL_RECORDS_TO_XLS"] = "XLS";
|
|
42
|
+
DataExporterType["EXPORT_ALL_RECORDS_TO_XLSX"] = "XLS";
|
|
37
43
|
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
|
38
44
|
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
|
39
45
|
})(exports.DataExporterType || (exports.DataExporterType = {}));
|
|
@@ -7,7 +7,7 @@ const dataunitFetcher = require('./dataunit-fetcher-fae710c5.js');
|
|
|
7
7
|
require('./DataFetcher-d13b4637.js');
|
|
8
8
|
const ISave = require('./ISave-55d9dcc3.js');
|
|
9
9
|
require('@sankhyalabs/core');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-bc950921.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
|
9
9
|
require('./ISave-55d9dcc3.js');
|
|
10
|
-
require('./index-
|
|
10
|
+
require('./index-bc950921.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
13
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -11,7 +11,7 @@ const authFetcher = require('./auth-fetcher-d1715459.js');
|
|
|
11
11
|
const dataunitFetcher = require('./dataunit-fetcher-fae710c5.js');
|
|
12
12
|
const ISave = require('./ISave-55d9dcc3.js');
|
|
13
13
|
const constants = require('./constants-6d82e405.js');
|
|
14
|
-
require('./index-
|
|
14
|
+
require('./index-bc950921.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
const formConfigFetcher = require('./form-config-fetcher-bbebdcb8.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -6,13 +6,13 @@ const index = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
8
8
|
const ISave = require('./ISave-55d9dcc3.js');
|
|
9
|
-
const index$2 = require('./index-
|
|
9
|
+
const index$2 = require('./index-bc950921.js');
|
|
10
10
|
const dataunitFetcher = require('./dataunit-fetcher-fae710c5.js');
|
|
11
11
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
12
12
|
const formConfigFetcher = require('./form-config-fetcher-bbebdcb8.js');
|
|
13
13
|
const constants = require('./constants-6d82e405.js');
|
|
14
14
|
const authFetcher = require('./auth-fetcher-d1715459.js');
|
|
15
|
-
const taskbarElements = require('./taskbar-elements-
|
|
15
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
16
16
|
const filterType_enum = require('./filter-type.enum-b3b388af.js');
|
|
17
17
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
18
18
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
@@ -21,7 +21,7 @@ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-263e4d24.js')
|
|
|
21
21
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
22
22
|
const ConfigStorage = require('./ConfigStorage-156bfcac.js');
|
|
23
23
|
const index$1 = require('./index-f0fe7e6e.js');
|
|
24
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
24
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-5c5badfc.js');
|
|
25
25
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
26
26
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
27
27
|
const SnkFormConfigManager = require('./SnkFormConfigManager-5cb9a39c.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
require('./DataFetcher-d13b4637.js');
|
|
8
8
|
require('./ISave-55d9dcc3.js');
|
|
9
|
-
const index$1 = require('./index-
|
|
9
|
+
const index$1 = require('./index-bc950921.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
12
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -15,8 +15,8 @@ require('./form-config-fetcher-bbebdcb8.js');
|
|
|
15
15
|
const constants = require('./constants-6d82e405.js');
|
|
16
16
|
const authFetcher = require('./auth-fetcher-d1715459.js');
|
|
17
17
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
19
|
-
const taskbarUtils = require('./taskbarUtils-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
19
|
+
const taskbarUtils = require('./taskbarUtils-99aaa01f.js');
|
|
20
20
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
21
21
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
22
22
|
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
@@ -6,7 +6,7 @@ const index$1 = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
|
-
const index = require('./index-
|
|
9
|
+
const index = require('./index-bc950921.js');
|
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
|
11
11
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
12
12
|
const snkDataUnit = require('./snk-data-unit-32237a2d.js');
|
|
@@ -42,6 +42,9 @@ class ItemBuilder {
|
|
|
42
42
|
if (option === index.DataExporterOption.EXPORT_TO_XLS) {
|
|
43
43
|
items.push(this.getExportToXLS(groupName));
|
|
44
44
|
}
|
|
45
|
+
if (option === index.DataExporterOption.EXPORT_TO_XLSX) {
|
|
46
|
+
items.push(this.getExportToXLSX(groupName));
|
|
47
|
+
}
|
|
45
48
|
this.setExportCurrentPage(option, items);
|
|
46
49
|
if (this._selectedNumber > 0) {
|
|
47
50
|
this.setExportAllRecords(option, items);
|
|
@@ -55,7 +58,7 @@ class ItemBuilder {
|
|
|
55
58
|
*/
|
|
56
59
|
setExportCurrentPage(option, items) {
|
|
57
60
|
var _a;
|
|
58
|
-
const pageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
61
|
+
const pageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS, index.DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
59
62
|
if (option === index.DataExporterOption.EXPORT_CURRENT_PAGE) {
|
|
60
63
|
items.push(this.getCurrentPage());
|
|
61
64
|
}
|
|
@@ -74,6 +77,9 @@ class ItemBuilder {
|
|
|
74
77
|
if (option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
75
78
|
item.children.push(this.getExportPageToXLS());
|
|
76
79
|
}
|
|
80
|
+
if (option === index.DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
81
|
+
item.children.push(this.getExportPageToXLSX());
|
|
82
|
+
}
|
|
77
83
|
}
|
|
78
84
|
}
|
|
79
85
|
/**
|
|
@@ -83,7 +89,7 @@ class ItemBuilder {
|
|
|
83
89
|
*/
|
|
84
90
|
setExportAllRecords(option, items) {
|
|
85
91
|
var _a;
|
|
86
|
-
const pageOptions = [index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS];
|
|
92
|
+
const pageOptions = [index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS, index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX];
|
|
87
93
|
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS) {
|
|
88
94
|
items.push(this.getAllRecords());
|
|
89
95
|
}
|
|
@@ -102,6 +108,9 @@ class ItemBuilder {
|
|
|
102
108
|
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
103
109
|
item.children.push(this.getExportAllRecordsToXLS());
|
|
104
110
|
}
|
|
111
|
+
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
112
|
+
item.children.push(this.getExportAllRecordsToXLSX());
|
|
113
|
+
}
|
|
105
114
|
}
|
|
106
115
|
}
|
|
107
116
|
/**
|
|
@@ -138,6 +147,18 @@ class ItemBuilder {
|
|
|
138
147
|
group: groupName
|
|
139
148
|
};
|
|
140
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Método responsável por capturar o objeto com os dados de exportação em XLSX.
|
|
152
|
+
* @param groupName - Nome do grupo da opção que será inserida na lista.
|
|
153
|
+
* @returns Retorna o objeto com os dados de exportação em XLSX.
|
|
154
|
+
*/
|
|
155
|
+
getExportToXLSX(groupName) {
|
|
156
|
+
return {
|
|
157
|
+
id: index.DataExporterOption.EXPORT_TO_XLSX,
|
|
158
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,
|
|
159
|
+
group: groupName
|
|
160
|
+
};
|
|
161
|
+
}
|
|
141
162
|
/**
|
|
142
163
|
* Método responsável por capturar o objeto com os dados de exportação personalizada.
|
|
143
164
|
* @returns Retorna o objeto com os dados de exportação personalizada.
|
|
@@ -180,6 +201,16 @@ class ItemBuilder {
|
|
|
180
201
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
181
202
|
};
|
|
182
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Método responsável por capturar o objeto com os dados de exportação da página atual em XLSX.
|
|
206
|
+
* @returns Retorna o objeto com os dados de exportação da página atual em XLSX.
|
|
207
|
+
*/
|
|
208
|
+
getExportPageToXLSX() {
|
|
209
|
+
return {
|
|
210
|
+
id: index.DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
211
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
212
|
+
};
|
|
213
|
+
}
|
|
183
214
|
/**
|
|
184
215
|
* Método responsável por capturar o objeto com todos os dados de exportação em PDF.
|
|
185
216
|
* @returns Retorna o objeto com todos os dados de exportação em PDF.
|
|
@@ -197,6 +228,16 @@ class ItemBuilder {
|
|
|
197
228
|
getExportAllRecordsToXLS() {
|
|
198
229
|
return {
|
|
199
230
|
id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
231
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Método responsável por capturar o objeto com todos os dados de exportação em XLSX.
|
|
236
|
+
* @returns Retorna o objeto com todos os dados de exportação em XLSX.
|
|
237
|
+
*/
|
|
238
|
+
getExportAllRecordsToXLSX() {
|
|
239
|
+
return {
|
|
240
|
+
id: index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
200
241
|
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`
|
|
201
242
|
};
|
|
202
243
|
}
|
|
@@ -360,7 +401,7 @@ class ClientSideExporterStrategy {
|
|
|
360
401
|
return visibleColumns;
|
|
361
402
|
}
|
|
362
403
|
async executeExport(resolveProps) {
|
|
363
|
-
var _a;
|
|
404
|
+
var _a, _b;
|
|
364
405
|
const { methodName, gridTitle } = resolveProps;
|
|
365
406
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
366
407
|
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();
|
|
@@ -372,7 +413,7 @@ class ClientSideExporterStrategy {
|
|
|
372
413
|
gridTitle,
|
|
373
414
|
columns: this.buildColumnsObject(columns),
|
|
374
415
|
rows: this.buildRowsObject(columns, records),
|
|
375
|
-
customOptions: { xlsxExtension: false }
|
|
416
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
376
417
|
}
|
|
377
418
|
}
|
|
378
419
|
};
|
|
@@ -453,13 +494,16 @@ const SnkDataExporter = class {
|
|
|
453
494
|
this._releasedToExport = [
|
|
454
495
|
index.DataExporterOption.EXPORT_TO_PDF,
|
|
455
496
|
index.DataExporterOption.EXPORT_TO_XLS,
|
|
497
|
+
index.DataExporterOption.EXPORT_TO_XLSX,
|
|
456
498
|
index.DataExporterOption.EXPORT_BY_EMAIL,
|
|
457
499
|
index.DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
458
500
|
index.DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
459
501
|
index.DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
460
502
|
index.DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
503
|
+
index.DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
461
504
|
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
462
505
|
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
506
|
+
index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
463
507
|
];
|
|
464
508
|
this._items = [];
|
|
465
509
|
this._showDropdown = false;
|
|
@@ -554,16 +598,16 @@ const SnkDataExporter = class {
|
|
|
554
598
|
});
|
|
555
599
|
}
|
|
556
600
|
getExportType(option) {
|
|
557
|
-
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
601
|
+
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
558
602
|
return IFetchDataExporterParams.IExportType.ALL;
|
|
559
603
|
}
|
|
560
|
-
if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
604
|
+
if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS || option === index.DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
561
605
|
return IFetchDataExporterParams.IExportType.PAGE;
|
|
562
606
|
}
|
|
563
607
|
return IFetchDataExporterParams.IExportType.SELECTION;
|
|
564
608
|
}
|
|
565
609
|
async dispatchExporter(option) {
|
|
566
|
-
var _a, _b, _c;
|
|
610
|
+
var _a, _b, _c, _d;
|
|
567
611
|
const optionKey = this.getOptionKey(option);
|
|
568
612
|
const fileType = (_a = index.DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : index.DataExporterType.EXPORT_TO_PDF;
|
|
569
613
|
const params = {
|
|
@@ -573,6 +617,7 @@ const SnkDataExporter = class {
|
|
|
573
617
|
exportOption: option,
|
|
574
618
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
575
619
|
type: this.getExportType(option),
|
|
620
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
576
621
|
};
|
|
577
622
|
await this.resolveExporter(params, (response) => {
|
|
578
623
|
if (response.canExport || fileType === index.DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -586,7 +631,7 @@ const SnkDataExporter = class {
|
|
|
586
631
|
async processExporter(evt) {
|
|
587
632
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
588
633
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
589
|
-
const exportCurrentPageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
634
|
+
const exportCurrentPageOptions = [index.DataExporterOption.EXPORT_PAGE_TO_PDF, index.DataExporterOption.EXPORT_PAGE_TO_XLS, index.DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
590
635
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
591
636
|
if ((item === null || item === void 0 ? void 0 : item.id) === index.DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
592
637
|
return;
|
|
@@ -8,15 +8,15 @@ const SnkFormConfigManager = require('./SnkFormConfigManager-5cb9a39c.js');
|
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
10
10
|
require('./ISave-55d9dcc3.js');
|
|
11
|
-
const index$1 = require('./index-
|
|
11
|
+
const index$1 = require('./index-bc950921.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./dataunit-fetcher-fae710c5.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
require('./form-config-fetcher-bbebdcb8.js');
|
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-67b9cca9.js');
|
|
20
20
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
21
21
|
require('./ConfigStorage-156bfcac.js');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const snkDynaformGuidesView = require('./snk-dynaform-guides-view-
|
|
7
|
+
const snkDynaformGuidesView = require('./snk-dynaform-guides-view-2c7c6ce4.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
const DataFetcher = require('./DataFetcher-d13b4637.js');
|
|
10
10
|
require('./ISave-55d9dcc3.js');
|
|
11
|
-
const index$1 = require('./index-
|
|
11
|
+
const index$1 = require('./index-bc950921.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./dataunit-fetcher-fae710c5.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
const formConfigFetcher = require('./form-config-fetcher-bbebdcb8.js');
|
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
19
19
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
20
|
-
const taskbarUtils = require('./taskbarUtils-
|
|
20
|
+
const taskbarUtils = require('./taskbarUtils-99aaa01f.js');
|
|
21
21
|
const FormConfigHelper = require('./FormConfigHelper-c5f5473a.js');
|
|
22
22
|
require('./ConfigStorage-156bfcac.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
package/dist/cjs/{snk-dynaform-guides-view-c956fdd4.js → snk-dynaform-guides-view-2c7c6ce4.js}
RENAMED
|
@@ -7,7 +7,7 @@ const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
|
7
7
|
const constants = require('./constants-6d82e405.js');
|
|
8
8
|
const ConfigStorage = require('./ConfigStorage-156bfcac.js');
|
|
9
9
|
const formConfigFetcher = require('./form-config-fetcher-bbebdcb8.js');
|
|
10
|
-
const taskbarElements = require('./taskbar-elements-
|
|
10
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
11
11
|
|
|
12
12
|
class SnkFormConfigManager {
|
|
13
13
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDynaformGuidesView = require('./snk-dynaform-guides-view-
|
|
5
|
+
const snkDynaformGuidesView = require('./snk-dynaform-guides-view-2c7c6ce4.js');
|
|
6
6
|
require('./index-1894343a.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -14,8 +14,8 @@ require('./DataFetcher-d13b4637.js');
|
|
|
14
14
|
require('./PrintUtils-bcaeb82f.js');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./taskbar-elements-
|
|
18
|
-
require('./index-
|
|
17
|
+
require('./taskbar-elements-25f800b3.js');
|
|
18
|
+
require('./index-bc950921.js');
|
|
19
19
|
require('./index-f0fe7e6e.js');
|
|
20
20
|
|
|
21
21
|
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
require('./DataFetcher-d13b4637.js');
|
|
9
9
|
require('./ISave-55d9dcc3.js');
|
|
10
|
-
const index$1 = require('./index-
|
|
10
|
+
const index$1 = require('./index-bc950921.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
13
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -16,10 +16,10 @@ require('./form-config-fetcher-bbebdcb8.js');
|
|
|
16
16
|
const constants = require('./constants-6d82e405.js');
|
|
17
17
|
const authFetcher = require('./auth-fetcher-d1715459.js');
|
|
18
18
|
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
19
|
-
const taskbarUtils = require('./taskbarUtils-
|
|
19
|
+
const taskbarUtils = require('./taskbarUtils-99aaa01f.js');
|
|
20
20
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
21
21
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
22
|
-
const taskbarElements = require('./taskbar-elements-
|
|
22
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -8,8 +8,8 @@ const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
require('./DataFetcher-d13b4637.js');
|
|
10
10
|
require('./ISave-55d9dcc3.js');
|
|
11
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
12
|
-
const index$1 = require('./index-
|
|
11
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-5c5badfc.js');
|
|
12
|
+
const index$1 = require('./index-bc950921.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -21,7 +21,7 @@ const index$2 = require('./index-f0fe7e6e.js');
|
|
|
21
21
|
const ContinuousInsertUtils = require('./ContinuousInsertUtils-1ae0c6ac.js');
|
|
22
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
23
23
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
24
|
-
const taskbarElements = require('./taskbar-elements-
|
|
24
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
25
25
|
require('./PrintUtils-bcaeb82f.js');
|
|
26
26
|
require('./IFetchDataExporterParams-e78ec415.js');
|
|
27
27
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
@@ -6,7 +6,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const constants = require('./constants-6d82e405.js');
|
|
8
8
|
const SnkFormConfigManager = require('./SnkFormConfigManager-5cb9a39c.js');
|
|
9
|
-
const taskbarElements = require('./taskbar-elements-
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
10
10
|
|
|
11
11
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:132px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;--snk-workspace--header-height:40px;display:block;outline:none}ez-guide-navigator.sc-snk-guides-viewer{--ez-guide-navigator--border-radius:var(--space--12, 12px)}snk-form-view.sc-snk-guides-viewer{width:100%}stack-item.snk-guides-viewer.sc-snk-guides-viewer{display:grid}stack-item.sc-snk-guides-viewer.sc-snk-guides-viewer{display:grid;min-height:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding:0 var(--snk-guides-viewer--space-small);padding-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column;max-height:calc(100vh - var(--snk-guides-viewer__header--min-height));overflow-y:auto}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:var(--snk-guides-viewer--space-small);height:calc(100vh - var(--snk-guides-viewer__header--min-height))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-67b9cca9.js');
|
|
6
6
|
require('./index-1894343a.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
@@ -15,8 +15,8 @@ require('./DataFetcher-d13b4637.js');
|
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./taskbar-elements-
|
|
19
|
-
require('./index-
|
|
18
|
+
require('./taskbar-elements-25f800b3.js');
|
|
19
|
+
require('./index-bc950921.js');
|
|
20
20
|
require('./index-f0fe7e6e.js');
|
|
21
21
|
|
|
22
22
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-1894343a.js');
|
|
|
6
6
|
require('./DataFetcher-d13b4637.js');
|
|
7
7
|
require('./ISave-55d9dcc3.js');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-bc950921.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
12
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-1894343a.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const ISave = require('./ISave-55d9dcc3.js');
|
|
8
8
|
require('./DataFetcher-d13b4637.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-bc950921.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
12
|
require('./dataunit-fetcher-fae710c5.js');
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const index$1 = require('./index-
|
|
7
|
+
const index$1 = require('./index-bc950921.js');
|
|
8
8
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
9
|
-
const taskbarElements = require('./taskbar-elements-
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
10
10
|
require('./index-f0fe7e6e.js');
|
|
11
11
|
|
|
12
12
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:nowrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}.taskbar-element.sc-snk-taskbar{width:auto}.space-between-item.sc-snk-taskbar{margin-left:var(--space--8, 8px)}.icon-button--small.sc-snk-taskbar{width:32px;height:32px}.icon-button--medium.sc-snk-taskbar{width:42px;height:42px}.icon-button--large.sc-snk-taskbar{width:46px;height:46px}.taskbar-spacer.sc-snk-taskbar{flex:1}.taskbar-group.sc-snk-taskbar{display:flex;flex-wrap:wrap;min-width:0}.taskbar-group--start.sc-snk-taskbar{flex:1 1 auto;justify-content:flex-start}.taskbar-group--end.sc-snk-taskbar{flex:0 0 auto;justify-content:flex-end}";
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
require('./DataFetcher-d13b4637.js');
|
|
4
4
|
require('./ISave-55d9dcc3.js');
|
|
5
5
|
require('@sankhyalabs/core');
|
|
6
|
-
const index = require('./index-
|
|
6
|
+
const index = require('./index-bc950921.js');
|
|
7
7
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
8
8
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
9
9
|
require('./dataunit-fetcher-fae710c5.js');
|
|
10
10
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
require('./form-config-fetcher-bbebdcb8.js');
|
|
12
12
|
const constants = require('./constants-6d82e405.js');
|
|
13
|
-
const taskbarElements = require('./taskbar-elements-
|
|
13
|
+
const taskbarElements = require('./taskbar-elements-25f800b3.js');
|
|
14
14
|
|
|
15
15
|
class SimpleTaskbarProcessor {
|
|
16
16
|
/**
|
package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js
CHANGED
|
@@ -11,7 +11,7 @@ export default class ClientSideExporterStrategy {
|
|
|
11
11
|
return visibleColumns;
|
|
12
12
|
}
|
|
13
13
|
async executeExport(resolveProps) {
|
|
14
|
-
var _a;
|
|
14
|
+
var _a, _b;
|
|
15
15
|
const { methodName, gridTitle } = resolveProps;
|
|
16
16
|
const records = await this._provider.getRecords(resolveProps.type);
|
|
17
17
|
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();
|
|
@@ -23,7 +23,7 @@ export default class ClientSideExporterStrategy {
|
|
|
23
23
|
gridTitle,
|
|
24
24
|
columns: this.buildColumnsObject(columns),
|
|
25
25
|
rows: this.buildRowsObject(columns, records),
|
|
26
|
-
customOptions: { xlsxExtension: false }
|
|
26
|
+
customOptions: { xlsxExtension: (_b = resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.xlsxExtension) !== null && _b !== void 0 ? _b : false }
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
};
|
|
@@ -17,13 +17,16 @@ export class SnkDataExporter {
|
|
|
17
17
|
this._releasedToExport = [
|
|
18
18
|
DataExporterOption.EXPORT_TO_PDF,
|
|
19
19
|
DataExporterOption.EXPORT_TO_XLS,
|
|
20
|
+
DataExporterOption.EXPORT_TO_XLSX,
|
|
20
21
|
DataExporterOption.EXPORT_BY_EMAIL,
|
|
21
22
|
DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
22
23
|
DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
23
24
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
24
25
|
DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
26
|
+
DataExporterOption.EXPORT_PAGE_TO_XLSX,
|
|
25
27
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF,
|
|
26
28
|
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS,
|
|
29
|
+
DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX,
|
|
27
30
|
];
|
|
28
31
|
this._items = [];
|
|
29
32
|
this._showDropdown = false;
|
|
@@ -118,16 +121,16 @@ export class SnkDataExporter {
|
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
123
|
getExportType(option) {
|
|
121
|
-
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
124
|
+
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLSX) {
|
|
122
125
|
return IExportType.ALL;
|
|
123
126
|
}
|
|
124
|
-
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
127
|
+
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS || option === DataExporterOption.EXPORT_PAGE_TO_XLSX) {
|
|
125
128
|
return IExportType.PAGE;
|
|
126
129
|
}
|
|
127
130
|
return IExportType.SELECTION;
|
|
128
131
|
}
|
|
129
132
|
async dispatchExporter(option) {
|
|
130
|
-
var _a, _b, _c;
|
|
133
|
+
var _a, _b, _c, _d;
|
|
131
134
|
const optionKey = this.getOptionKey(option);
|
|
132
135
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
|
133
136
|
const params = {
|
|
@@ -137,6 +140,7 @@ export class SnkDataExporter {
|
|
|
137
140
|
exportOption: option,
|
|
138
141
|
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b),
|
|
139
142
|
type: this.getExportType(option),
|
|
143
|
+
xlsxExtension: (_d = optionKey === null || optionKey === void 0 ? void 0 : optionKey.includes("XLSX")) !== null && _d !== void 0 ? _d : false,
|
|
140
144
|
};
|
|
141
145
|
await this.resolveExporter(params, (response) => {
|
|
142
146
|
if (response.canExport || fileType === DataExporterType.EXPORT_TO_PDF) {
|
|
@@ -150,7 +154,7 @@ export class SnkDataExporter {
|
|
|
150
154
|
async processExporter(evt) {
|
|
151
155
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
152
156
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
153
|
-
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
157
|
+
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS, DataExporterOption.EXPORT_PAGE_TO_XLSX];
|
|
154
158
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
155
159
|
if ((item === null || item === void 0 ? void 0 : item.id) === DataExporterOption.EXPORT_CURRENT_PAGE)
|
|
156
160
|
return;
|