@sapui5/sap.ui.export 1.100.0 → 1.101.0
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/package.json +1 -1
- package/src/sap/ui/export/.library +2 -2
- package/src/sap/ui/export/ExportBase.js +1 -1
- package/src/sap/ui/export/ExportUtils.js +52 -11
- package/src/sap/ui/export/PortableDocument.js +68 -41
- package/src/sap/ui/export/Spreadsheet.js +3 -3
- package/src/sap/ui/export/SpreadsheetExport.js +1 -1
- package/src/sap/ui/export/fragments/SettingsDialog.fragment.xml +7 -4
- package/src/sap/ui/export/js/XLSXBuilder.js +1 -1
- package/src/sap/ui/export/js/XLSXBuilder.js.map +1 -1
- package/src/sap/ui/export/library.js +17 -15
- package/src/sap/ui/export/messagebundle.properties +23 -2
- package/src/sap/ui/export/messagebundle_ar.properties +13 -1
- package/src/sap/ui/export/messagebundle_bg.properties +13 -1
- package/src/sap/ui/export/messagebundle_ca.properties +13 -1
- package/src/sap/ui/export/messagebundle_cs.properties +13 -1
- package/src/sap/ui/export/messagebundle_cy.properties +13 -1
- package/src/sap/ui/export/messagebundle_da.properties +13 -1
- package/src/sap/ui/export/messagebundle_de.properties +13 -1
- package/src/sap/ui/export/messagebundle_el.properties +13 -1
- package/src/sap/ui/export/messagebundle_en.properties +12 -0
- package/src/sap/ui/export/messagebundle_en_GB.properties +12 -0
- package/src/sap/ui/export/messagebundle_en_US_sappsd.properties +14 -0
- package/src/sap/ui/export/messagebundle_en_US_saprigi.properties +12 -0
- package/src/sap/ui/export/messagebundle_en_US_saptrc.properties +12 -0
- package/src/sap/ui/export/messagebundle_es.properties +13 -1
- package/src/sap/ui/export/messagebundle_es_MX.properties +13 -1
- package/src/sap/ui/export/messagebundle_et.properties +13 -1
- package/src/sap/ui/export/messagebundle_fi.properties +13 -1
- package/src/sap/ui/export/messagebundle_fr.properties +18 -6
- package/src/sap/ui/export/messagebundle_fr_CA.properties +15 -3
- package/src/sap/ui/export/messagebundle_hi.properties +13 -1
- package/src/sap/ui/export/messagebundle_hr.properties +13 -1
- package/src/sap/ui/export/messagebundle_hu.properties +13 -1
- package/src/sap/ui/export/messagebundle_id.properties +13 -1
- package/src/sap/ui/export/messagebundle_it.properties +13 -1
- package/src/sap/ui/export/messagebundle_iw.properties +13 -1
- package/src/sap/ui/export/messagebundle_ja.properties +13 -1
- package/src/sap/ui/export/messagebundle_kk.properties +13 -1
- package/src/sap/ui/export/messagebundle_ko.properties +13 -1
- package/src/sap/ui/export/messagebundle_lt.properties +13 -1
- package/src/sap/ui/export/messagebundle_lv.properties +13 -1
- package/src/sap/ui/export/messagebundle_ms.properties +13 -1
- package/src/sap/ui/export/messagebundle_nl.properties +13 -1
- package/src/sap/ui/export/messagebundle_no.properties +13 -1
- package/src/sap/ui/export/messagebundle_pl.properties +13 -1
- package/src/sap/ui/export/messagebundle_pt.properties +13 -1
- package/src/sap/ui/export/messagebundle_pt_PT.properties +13 -1
- package/src/sap/ui/export/messagebundle_ro.properties +13 -1
- package/src/sap/ui/export/messagebundle_ru.properties +13 -1
- package/src/sap/ui/export/messagebundle_sh.properties +13 -1
- package/src/sap/ui/export/messagebundle_sk.properties +13 -1
- package/src/sap/ui/export/messagebundle_sl.properties +15 -3
- package/src/sap/ui/export/messagebundle_sv.properties +13 -1
- package/src/sap/ui/export/messagebundle_th.properties +13 -1
- package/src/sap/ui/export/messagebundle_tr.properties +13 -1
- package/src/sap/ui/export/messagebundle_uk.properties +13 -1
- package/src/sap/ui/export/messagebundle_vi.properties +13 -1
- package/src/sap/ui/export/messagebundle_zh_CN.properties +13 -1
- package/src/sap/ui/export/messagebundle_zh_TW.properties +13 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
-
<version>1.
|
|
8
|
+
<version>1.101.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>UI5 library: sap.ui.export</documentation>
|
|
11
11
|
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</module-infos>
|
|
35
35
|
<all-in-one>
|
|
36
36
|
<!-- exclude third party bundles and the worker code -->
|
|
37
|
-
<exclude name="sap/ui/export/js
|
|
37
|
+
<exclude name="sap/ui/export/js/" />
|
|
38
38
|
</all-in-one>
|
|
39
39
|
</packaging>
|
|
40
40
|
<ownership xmlns="http://www.sap.com/ui5/buildext/ownership">
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* @constructor The <code>sap.ui.export.ExportBase</code> class allows you to export table data from a UI5 application to a Portable Document Format (*.PDF) file.
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.101.0
|
|
19
19
|
*
|
|
20
20
|
* @since 1.96
|
|
21
21
|
* @name sap.ui.export.ExportBase
|
|
@@ -58,6 +58,9 @@ sap.ui.define([
|
|
|
58
58
|
includeFilterSettings: false,
|
|
59
59
|
addDateTime: false,
|
|
60
60
|
doEnableAccessibility: false,
|
|
61
|
+
pdfArchive: false,
|
|
62
|
+
capabilities: oExportCapabilities,
|
|
63
|
+
fitToPage: false,
|
|
61
64
|
paperSize: [
|
|
62
65
|
{key: "DIN_A4", text: oResourceBundle.getText("PAPER_SIZE_A4")},
|
|
63
66
|
{key: "US_LETTER", text: oResourceBundle.getText("PAPER_SIZE_US_LETTER")}
|
|
@@ -97,7 +100,7 @@ sap.ui.define([
|
|
|
97
100
|
function processExportSettings(oSettings) {
|
|
98
101
|
var oFinalSettings = {};
|
|
99
102
|
|
|
100
|
-
["fileName", "selectedFileType", "selectedPaperSize", "selectedOrientation", "splitCells", "includeFilterSettings", "addDateTime", "doEnableAccessibility", "fontSize", "signature", "signatureReason"].forEach(function(sProperty) {
|
|
103
|
+
["fileName", "selectedFileType", "selectedPaperSize", "selectedOrientation", "splitCells", "includeFilterSettings", "addDateTime", "doEnableAccessibility", "fitToPage", "fontSize", "signature", "signatureReason", "pdfArchive"].forEach(function(sProperty) {
|
|
101
104
|
oFinalSettings[sProperty] = oSettings[sProperty];
|
|
102
105
|
});
|
|
103
106
|
|
|
@@ -108,7 +111,7 @@ sap.ui.define([
|
|
|
108
111
|
* Utilities related to export to enable reuse in integration scenarios (e.g. tables).
|
|
109
112
|
*
|
|
110
113
|
* @author SAP SE
|
|
111
|
-
* @version 1.
|
|
114
|
+
* @version 1.101.0
|
|
112
115
|
*
|
|
113
116
|
* @since 1.59
|
|
114
117
|
* @name sap.ui.export.ExportUtils
|
|
@@ -225,6 +228,7 @@ sap.ui.define([
|
|
|
225
228
|
var oSelectedItem = oEvent.getParameter("selectedItem");
|
|
226
229
|
if (oSelectedItem && oSelectedItem.getKey() === FileType.PDF) {
|
|
227
230
|
oExportConfigModel.setProperty("/splitCells", true);
|
|
231
|
+
oExportConfigModel.setProperty("/includeFilterSettings", false);
|
|
228
232
|
} else {
|
|
229
233
|
Core.byId('exportSettingsDialog-signatureReason').setVisible(false);
|
|
230
234
|
Core.byId('exportSettingsDialog-signatureReasonLabel').setVisible(false);
|
|
@@ -349,10 +353,11 @@ sap.ui.define([
|
|
|
349
353
|
* subsequent filters.
|
|
350
354
|
*
|
|
351
355
|
* @param {Object} oLogicalFilter Filter object according to ListBinding#getFilterInfo
|
|
352
|
-
* @returns {Array} Array containing
|
|
356
|
+
* @returns {Array} Array containing evaluated filter settings
|
|
353
357
|
* @private
|
|
354
358
|
*/
|
|
355
359
|
_parseLogical: function(oLogicalFilter) {
|
|
360
|
+
var aFilters, sProperty;
|
|
356
361
|
|
|
357
362
|
/* Breakout behavior for between filter */
|
|
358
363
|
if (oLogicalFilter.op == '&&'
|
|
@@ -382,7 +387,27 @@ sap.ui.define([
|
|
|
382
387
|
});
|
|
383
388
|
}
|
|
384
389
|
|
|
385
|
-
|
|
390
|
+
aFilters = Utils._parseFilter(oLogicalFilter.left).concat(Utils._parseFilter(oLogicalFilter.right));
|
|
391
|
+
|
|
392
|
+
/* Group logical OR filter on the same property */
|
|
393
|
+
if (oLogicalFilter.op === '||' && aFilters.length) {
|
|
394
|
+
sProperty = aFilters[0].key;
|
|
395
|
+
|
|
396
|
+
if (aFilters.every(function(item) { return item.key === sProperty; })) {
|
|
397
|
+
aFilters = [
|
|
398
|
+
{
|
|
399
|
+
key: sProperty,
|
|
400
|
+
value: aFilters.reduce(function(acc, item) {
|
|
401
|
+
var sSeparator = acc ? '; ' : '';
|
|
402
|
+
|
|
403
|
+
return acc + sSeparator + item.value;
|
|
404
|
+
}, '')
|
|
405
|
+
}
|
|
406
|
+
];
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return aFilters;
|
|
386
411
|
},
|
|
387
412
|
|
|
388
413
|
/**
|
|
@@ -831,7 +856,7 @@ sap.ui.define([
|
|
|
831
856
|
});
|
|
832
857
|
|
|
833
858
|
/* Validate string based properties (not column type String related) */
|
|
834
|
-
['inputFormat', 'unit', 'unitProperty', 'template', 'trueValue', 'falseValue'].forEach(function(sProperty) {
|
|
859
|
+
['inputFormat', 'unit', 'unitProperty', 'template', 'trueValue', 'falseValue', 'timezone', 'timezoneProperty'].forEach(function(sProperty) {
|
|
835
860
|
Utils._validateString(oColumn, sProperty);
|
|
836
861
|
});
|
|
837
862
|
|
|
@@ -855,11 +880,27 @@ sap.ui.define([
|
|
|
855
880
|
}
|
|
856
881
|
|
|
857
882
|
/* Validate utc property */
|
|
858
|
-
if (oColumn.utc != null && (oColumn.type === EdmType.Date || oColumn.type === EdmType.Time)) {
|
|
859
|
-
oColumn.utc = true; // Date and Time always use UTC
|
|
860
|
-
}
|
|
861
883
|
if (oColumn.type === EdmType.DateTime) {
|
|
862
|
-
|
|
884
|
+
|
|
885
|
+
/*
|
|
886
|
+
* Apply local time or UTC as fixed timezone
|
|
887
|
+
* in case no timezone is defined. This also
|
|
888
|
+
* serves as a fallback if timezoneProperty
|
|
889
|
+
* is defined but the Line Item has no value
|
|
890
|
+
* for the referenced property name.
|
|
891
|
+
*/
|
|
892
|
+
if (!oColumn.timezone) {
|
|
893
|
+
oColumn.timezone = oColumn.utc === false ? new Intl.DateTimeFormat().resolvedOptions().timeZone : 'UTC';
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/* Remove obviously incorrect timezoneProperty settings */
|
|
897
|
+
if (oColumn.property === oColumn.timezoneProperty || (typeof oColumn.timezoneProperty === 'string' && oColumn.timezoneProperty.split(',').length > 1)) {
|
|
898
|
+
Log.warning(CLASS_NAME + ': Property timezoneProperty is invalid.');
|
|
899
|
+
delete oColumn.timezoneProperty;
|
|
900
|
+
}
|
|
901
|
+
} else if (typeof oColumn.utc === 'boolean') {
|
|
902
|
+
Log.warning(CLASS_NAME + ': Property utc is only supported for type DateTime.');
|
|
903
|
+
delete oColumn.utc;
|
|
863
904
|
}
|
|
864
905
|
|
|
865
906
|
/* Validate scale property */
|
|
@@ -934,7 +975,7 @@ sap.ui.define([
|
|
|
934
975
|
*
|
|
935
976
|
* @param {Object} oContext Context object
|
|
936
977
|
* @param {string} [oContext.application] Name of the application (default: "SAP UI5")
|
|
937
|
-
* @param {string} [oContext.version] Application version (default: "1.
|
|
978
|
+
* @param {string} [oContext.version] Application version (default: "1.101.0")
|
|
938
979
|
* @param {string} [oContext.title] Title that will be written to the file (NOT the filename)
|
|
939
980
|
* @param {string} [oContext.modifiedBy] Optional user context that will be written to the file
|
|
940
981
|
* @param {string} [oContext.sheetName] Name of the data sheet - Maximum length of 31 characters
|
|
@@ -1028,7 +1069,7 @@ sap.ui.define([
|
|
|
1028
1069
|
value = null;
|
|
1029
1070
|
}
|
|
1030
1071
|
|
|
1031
|
-
oContext[sProperty] = value == null && defaultValue ? defaultValue : value;
|
|
1072
|
+
oContext[sProperty] = value == null && typeof defaultValue !== 'undefined' ? defaultValue : value;
|
|
1032
1073
|
},
|
|
1033
1074
|
|
|
1034
1075
|
/**
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @constructor The <code>sap.ui.export.PortableDocument</code> class allows you to export table data from a UI5 application to a Portable Document Format (*.PDF) file.
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.101.0
|
|
20
20
|
*
|
|
21
21
|
* @since 1.96
|
|
22
22
|
* @alias sap.ui.export.PortableDocument
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
/* Only apply supported properties */
|
|
33
|
-
['paperSize', 'orientation', 'font', 'fontSize', 'doEnableAccessibility', 'signature', 'signatureReason'].forEach(function(sProperty) {
|
|
33
|
+
['paperSize', 'orientation', 'font', 'fontSize', 'doEnableAccessibility', 'fitToPage', 'signature', 'signatureReason', 'pdfArchive'].forEach(function(sProperty) {
|
|
34
34
|
if (typeof mSettings[sProperty] !== 'undefined') {
|
|
35
35
|
this._mSettings[sProperty] = mSettings[sProperty];
|
|
36
36
|
}
|
|
@@ -149,7 +149,14 @@ sap.ui.define([
|
|
|
149
149
|
"PaperSize": mSettings.paperSize,
|
|
150
150
|
"Orientation": mSettings.orientation,
|
|
151
151
|
"FontSize": Number(mSettings.fontSize),
|
|
152
|
-
"
|
|
152
|
+
"FitToPage": {
|
|
153
|
+
"IsEnabled": mSettings.fitToPage,
|
|
154
|
+
"MinimumFontSize": 4
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"PDFStandard": {
|
|
158
|
+
"DoEnableAccessibility": mSettings.doEnableAccessibility,
|
|
159
|
+
"UsePDFAConformance": mSettings.pdfArchive
|
|
153
160
|
},
|
|
154
161
|
"Signature": {
|
|
155
162
|
"DoSign": mSettings.signature,
|
|
@@ -251,7 +258,7 @@ sap.ui.define([
|
|
|
251
258
|
oContext = mSettings.workbook.context = {};
|
|
252
259
|
}
|
|
253
260
|
|
|
254
|
-
if (typeof oContext.title === 'string') {
|
|
261
|
+
if (typeof oContext.title === 'string' && oContext.title) {
|
|
255
262
|
return Promise.resolve();
|
|
256
263
|
}
|
|
257
264
|
|
|
@@ -267,48 +274,51 @@ sap.ui.define([
|
|
|
267
274
|
*
|
|
268
275
|
* @param {Object} oDocumentDescription DocumentDescription instance that is being created
|
|
269
276
|
* @param {Object} oDataSource DataSource settings of the export configuration
|
|
270
|
-
*
|
|
271
|
-
* @
|
|
277
|
+
*
|
|
278
|
+
* @returns {Promise} A Promise that resolves with the newly created Id of the DocumentDescription
|
|
272
279
|
*/
|
|
273
|
-
PortableDocument.prototype.postDocumentDescription = function(oDocumentDescription, oDataSource
|
|
280
|
+
PortableDocument.prototype.postDocumentDescription = function(oDocumentDescription, oDataSource) {
|
|
274
281
|
var oBinding, oModel, sPath;
|
|
275
282
|
|
|
276
283
|
oModel = this._getModel(oDataSource);
|
|
277
284
|
sPath = '/' + this._getEntitySetName(oDataSource);
|
|
278
285
|
|
|
279
286
|
if (!oModel || !oModel.isA(['sap.ui.model.odata.v4.ODataModel', 'sap.ui.model.odata.v2.ODataModel'])) {
|
|
280
|
-
|
|
287
|
+
return Promise.reject('Unsupported Model');
|
|
281
288
|
}
|
|
282
289
|
|
|
283
|
-
|
|
284
|
-
oBinding = oModel.bindList(sPath);
|
|
290
|
+
return new Promise(function(fnResolve, fnReject) {
|
|
285
291
|
|
|
286
|
-
|
|
287
|
-
|
|
292
|
+
if (oModel.isA('sap.ui.model.odata.v4.ODataModel')) {
|
|
293
|
+
oBinding = oModel.bindList(sPath);
|
|
288
294
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
} else {
|
|
292
|
-
fnError();
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
+
oBinding.attachCreateCompleted(function(oEvent) {
|
|
296
|
+
var success = oEvent.getParameter('success');
|
|
295
297
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
298
|
+
if (success) {
|
|
299
|
+
fnResolve(oEvent.getParameter('context').getObject()['Id']);
|
|
300
|
+
} else {
|
|
301
|
+
fnReject();
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
oBinding.create(oDocumentDescription);
|
|
306
|
+
} else {
|
|
307
|
+
var bUseBatch = oModel.bUseBatch;
|
|
308
|
+
|
|
309
|
+
oModel.setUseBatch(false);
|
|
310
|
+
oModel.create(sPath, oDocumentDescription, {
|
|
311
|
+
success: function(oData) {
|
|
312
|
+
oModel.setUseBatch(bUseBatch);
|
|
313
|
+
fnResolve(oData['Id']);
|
|
314
|
+
},
|
|
315
|
+
error: function(oError) {
|
|
316
|
+
oModel.setUseBatch(bUseBatch);
|
|
317
|
+
fnReject(oError);
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
});
|
|
312
322
|
};
|
|
313
323
|
|
|
314
324
|
/**
|
|
@@ -320,16 +330,33 @@ sap.ui.define([
|
|
|
320
330
|
*/
|
|
321
331
|
PortableDocument.prototype.createBuildPromise = function(mSettings) {
|
|
322
332
|
var that = this;
|
|
333
|
+
var oDocumentDescription;
|
|
334
|
+
var oBusyDialog;
|
|
335
|
+
var oResourceBundle = Core.getLibraryResourceBundle('sap.ui.export');
|
|
336
|
+
|
|
337
|
+
oBusyDialog = new sap.m.BusyDialog('PDFExportBusyDialog', {
|
|
338
|
+
title: oResourceBundle.getText("PROGRESS_TITLE"),
|
|
339
|
+
text: oResourceBundle.getText("PDF_GENERATION_IN_PROGRESS"),
|
|
340
|
+
showCancelButton: true,
|
|
341
|
+
close: function(oEvent) {
|
|
342
|
+
if (oEvent.getParameter("cancelPressed")) {
|
|
343
|
+
that.cancel();
|
|
344
|
+
oBusyDialog.destroy();
|
|
345
|
+
oBusyDialog = null;
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
});
|
|
323
349
|
|
|
324
|
-
|
|
325
|
-
var oDocumentDescription;
|
|
326
|
-
|
|
327
|
-
oDocumentDescription = that._createDocumentDescription(mSettings);
|
|
328
|
-
that.postDocumentDescription(oDocumentDescription, mSettings.dataSource, fnResolve, fnReject);
|
|
350
|
+
oDocumentDescription = that._createDocumentDescription(mSettings);
|
|
329
351
|
|
|
330
|
-
|
|
331
|
-
|
|
352
|
+
return that.postDocumentDescription(oDocumentDescription, mSettings.dataSource).then(function(sDocumentDescriptionId) {
|
|
353
|
+
oBusyDialog.open();
|
|
354
|
+
return oBusyDialog && that.sendRequest(mSettings.dataSource.dataUrl, sDocumentDescriptionId).then(function(response) {
|
|
332
355
|
ExportUtils.saveAsFile(response, mSettings.fileName);
|
|
356
|
+
oBusyDialog && oBusyDialog.destroy();
|
|
357
|
+
}).catch(function(e) {
|
|
358
|
+
oBusyDialog && oBusyDialog.destroy();
|
|
359
|
+
new sap.m.MessageToast.show("Error during PDF export!");
|
|
333
360
|
});
|
|
334
361
|
});
|
|
335
362
|
};
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* <li><code>workbook.context</code> - Context object that will be applied to the generated file. It may contain the following fields:</li>
|
|
84
84
|
* <ul>
|
|
85
85
|
* <li><code>application</code> (string) - The application that creates the XLSX document (default: "SAP UI5")</li>
|
|
86
|
-
* <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.
|
|
86
|
+
* <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.101.0")</li>
|
|
87
87
|
* <li><code>title</code> (string) - Title of the XLSX document (NOT the filename)</li>
|
|
88
88
|
* <li><code>modifiedBy</code> (string) - User context for the XLSX document</li>
|
|
89
89
|
* <li><code>sheetName</code> (string) - The label of the data sheet</li>
|
|
@@ -166,7 +166,7 @@ sap.ui.define([
|
|
|
166
166
|
* columns: aColumns,
|
|
167
167
|
* context: {
|
|
168
168
|
* application: 'Debug Test Application',
|
|
169
|
-
* version: '1.
|
|
169
|
+
* version: '1.101.0',
|
|
170
170
|
* title: 'Some random title',
|
|
171
171
|
* modifiedBy: 'John Doe',
|
|
172
172
|
* metaSheetName: 'Custom metadata',
|
|
@@ -278,7 +278,7 @@ sap.ui.define([
|
|
|
278
278
|
* @constructor The <code>sap.ui.export.Spreadsheet</code> class allows you to export table data from a UI5 application to a spreadsheet file.
|
|
279
279
|
*
|
|
280
280
|
* @author SAP SE
|
|
281
|
-
* @version 1.
|
|
281
|
+
* @version 1.101.0
|
|
282
282
|
*
|
|
283
283
|
* @since 1.50
|
|
284
284
|
* @name sap.ui.export.Spreadsheet
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
</items>
|
|
12
12
|
</Select>
|
|
13
13
|
|
|
14
|
-
<CheckBox id="exportSettingsDialog-includeFilterSettings" selected="{/includeFilterSettings}" text="{i18n>INCLUDE_FILTER_SETTINGS}"/>
|
|
14
|
+
<CheckBox id="exportSettingsDialog-includeFilterSettings" selected="{/includeFilterSettings}" text="{i18n>INCLUDE_FILTER_SETTINGS}" visible="{path:'/selectedFileType', formatter: '.isXLSX'}"/>
|
|
15
|
+
<CheckBox id="exportSettingsDialog-includeFilterSettings-PDF" enabled="{/capabilities/PDF/CoverPage}" selected="{/includeFilterSettings}" text="{i18n>INCLUDE_FILTER_SETTINGS}" visible="{path:'/selectedFileType', formatter: '.isPDF'}" tooltip="{i18n>TOOLTIP_FILTER_SETTINGS}"/>
|
|
16
|
+
<CheckBox id="exportSettingsDialog-pdfArchive" enabled="{/capabilities/PDF/ArchiveFormat}" selected="{/pdfArchive}" text="{i18n>ARCHIVE_FORMAT}" visible="{path:'/selectedFileType', formatter: '.isPDF'}" tooltip="{i18n>TOOLTIP_ARCHIVE_FORMAT}"/>
|
|
15
17
|
<CheckBox id="exportSettingsDialog-splitCells" selected="{/splitCells}" text="{i18n>SPLIT_CELLS}" visible="{path:'/selectedFileType', formatter: '.isXLSX'}"/> <!-- Will be hidden in case of PDF because it needs to be true always -->
|
|
16
18
|
<CheckBox id="exportSettingsDialog-addDateTime" selected="{/addDateTime}" text="{i18n>ADD_DATE_TIME}" visible="false"/>
|
|
17
19
|
|
|
@@ -31,10 +33,11 @@
|
|
|
31
33
|
</Select>
|
|
32
34
|
|
|
33
35
|
<Label text="{i18n>FONT_SIZE}" labelFor="exportSettingsDialog-fontSize" visible="{path:'/selectedFileType', formatter: '.isPDF'}"/>
|
|
34
|
-
<Input id="exportSettingsDialog-fontSize" value="{/fontSize}" liveChange=".onFontSizeChange" class="sapUiTinyMarginBottom" visible="{path:'/selectedFileType', formatter: '.isPDF'}"/>
|
|
36
|
+
<Input id="exportSettingsDialog-fontSize" value="{/fontSize}" enabled="{/capabilities/PDF/FontSize}" liveChange=".onFontSizeChange" class="sapUiTinyMarginBottom" visible="{path:'/selectedFileType', formatter: '.isPDF'}" tooltip="{i18n>TOOLTIP_FONT_SIZE}"/>
|
|
35
37
|
|
|
36
|
-
<CheckBox id="exportSettingsDialog-accessibility"
|
|
37
|
-
<CheckBox id="exportSettingsDialog-
|
|
38
|
+
<CheckBox id="exportSettingsDialog-accessibility" selected="{/doEnableAccessibility}" text="{i18n>ENABLE_ACCESSIBILITY}" tooltip="{i18n>TOOLTIP_PDF_ACCESSIBILITY}" visible="{path:'/selectedFileType', formatter: '.isPDF'}"/>
|
|
39
|
+
<CheckBox id="exportSettingsDialog-fitToPage" enabled="{/capabilities/PDF/FitToPage}" selected="{/fitToPage}" text="{i18n>FITTOPAGE}" tooltip="{i18n>TOOLTIP_FITTOPAGE}" visible="{path:'/selectedFileType', formatter: '.isPDF'}"/>
|
|
40
|
+
<CheckBox id="exportSettingsDialog-signature" enabled="{/capabilities/PDF/Signature}" selected="{/signature}" text="{i18n>ENABLE_SIGNATURE}" tooltip="{i18n>TOOLTIP_PDF_SIGNATURE}" visible="{path:'/selectedFileType', formatter: '.isPDF'}"/>
|
|
38
41
|
|
|
39
42
|
<Label id="exportSettingsDialog-signatureReasonLabel" text="{i18n>SIGNATURE_REASON}" labelFor="exportSettingsDialog-signatureReason" visible="{/signature}"/>
|
|
40
43
|
<Input id="exportSettingsDialog-signatureReason" value="{/signatureReason}" class="sapUiTinyMarginBottom" visible="{/signature}"/>
|