@sapui5/sap.ui.export 1.97.1 → 1.98.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 +2 -2
- package/src/sap/ui/export/ExportDialog.js +1 -1
- package/src/sap/ui/export/ExportUtils.js +4 -4
- package/src/sap/ui/export/PortableDocument.js +10 -4
- package/src/sap/ui/export/Spreadsheet.js +4 -4
- package/src/sap/ui/export/SpreadsheetExport.js +2 -2
- package/src/sap/ui/export/js/XLSXBuilder.js.map +1 -1
- package/src/sap/ui/export/js/libs/JSZip3.js +3 -3
- package/src/sap/ui/export/library.js +3 -3
- package/src/sap/ui/export/messagebundle_en_US_saprigi.properties +4 -2
- package/src/sap/ui/export/messagebundle_en_US_saptrc.properties +2 -2
- package/src/sap/ui/export/messagebundle_ms.properties +1 -1
- package/src/sap/ui/export/provider/DataProviderBase.js +2 -2
- package/src/sap/ui/export/themes/base/ExportUtils.less +1 -1
- package/src/sap/ui/export/themes/base/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_belize/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_belize_hcb/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_belize_hcw/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_belize_plus/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_bluecrystal/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_fiori_3/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_fiori_3_dark/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_fiori_3_hcb/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_fiori_3_hcw/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/export/themes/sap_horizon/library.source.less +1 -1
package/package.json
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<name>sap.ui.export</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>SAPUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
8
|
-
<version>1.
|
|
7
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.</copyright>
|
|
8
|
+
<version>1.98.0</version>
|
|
9
9
|
|
|
10
10
|
<documentation>UI5 library: sap.ui.export</documentation>
|
|
11
11
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
@@ -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.98.0
|
|
19
19
|
*
|
|
20
20
|
* @since 1.96
|
|
21
21
|
* @name sap.ui.export.ExportBase
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define([
|
|
6
6
|
'sap/ui/core/library',
|
|
@@ -94,7 +94,7 @@ sap.ui.define([
|
|
|
94
94
|
* Utilities related to export to enable reuse in integration scenarios (e.g. tables).
|
|
95
95
|
*
|
|
96
96
|
* @author SAP SE
|
|
97
|
-
* @version 1.
|
|
97
|
+
* @version 1.98.0
|
|
98
98
|
*
|
|
99
99
|
* @since 1.59
|
|
100
100
|
* @name sap.ui.export.ExportUtils
|
|
@@ -654,7 +654,7 @@ sap.ui.define([
|
|
|
654
654
|
throw new Error(CLASS_NAME + ': dataSource has not been specified');
|
|
655
655
|
}
|
|
656
656
|
|
|
657
|
-
mDataSource.type = mDataSource.type || 'odata';
|
|
657
|
+
mDataSource.type = typeof mDataSource.type === 'string' && mDataSource.type.toLowerCase() || 'odata';
|
|
658
658
|
|
|
659
659
|
if (mDataSource.type === 'array' && !Array.isArray(mDataSource.data)) {
|
|
660
660
|
Log.warning(CLASS_NAME + ': Defined type does not match the provided data');
|
|
@@ -911,7 +911,7 @@ sap.ui.define([
|
|
|
911
911
|
*
|
|
912
912
|
* @param {Object} oContext Context object
|
|
913
913
|
* @param {string} [oContext.application] Name of the application (default: "SAP UI5")
|
|
914
|
-
* @param {string} [oContext.version] Application version (default: "1.
|
|
914
|
+
* @param {string} [oContext.version] Application version (default: "1.98.0")
|
|
915
915
|
* @param {string} [oContext.title] Title that will be written to the file (NOT the filename)
|
|
916
916
|
* @param {string} [oContext.modifiedBy] Optional user context that will be written to the file
|
|
917
917
|
* @param {string} [oContext.sheetName] Name of the data sheet - Maximum length of 31 characters
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
@@ -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.98.0
|
|
20
20
|
*
|
|
21
21
|
* @since 1.96
|
|
22
22
|
* @name sap.ui.export.PortableDocument
|
|
@@ -105,7 +105,6 @@ sap.ui.define([
|
|
|
105
105
|
|
|
106
106
|
// Reference the Model for later use
|
|
107
107
|
this._oModel = oModel;
|
|
108
|
-
this._oModel.setUseBatch(false);
|
|
109
108
|
|
|
110
109
|
/* Remove $format system query option because it would overwrite the "Accept" header */
|
|
111
110
|
oDataUrl.search = oDataUrl.search.split('&').filter(function(val) {
|
|
@@ -265,11 +264,18 @@ sap.ui.define([
|
|
|
265
264
|
|
|
266
265
|
oBinding.create(oDocumentDescription);
|
|
267
266
|
} else {
|
|
267
|
+
var bUseBatch = oModel.bUseBatch;
|
|
268
|
+
|
|
269
|
+
oModel.setUseBatch(false);
|
|
268
270
|
oModel.create(sPath, oDocumentDescription, {
|
|
269
271
|
success: function(oData) {
|
|
272
|
+
oModel.setUseBatch(bUseBatch);
|
|
270
273
|
fnSuccess(oData['Id']);
|
|
271
274
|
},
|
|
272
|
-
error:
|
|
275
|
+
error: function(oError) {
|
|
276
|
+
oModel.setUseBatch(bUseBatch);
|
|
277
|
+
fnError(oError);
|
|
278
|
+
}
|
|
273
279
|
});
|
|
274
280
|
}
|
|
275
281
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define([
|
|
@@ -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.98.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.98.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.98.0
|
|
282
282
|
*
|
|
283
283
|
* @since 1.50
|
|
284
284
|
* @name sap.ui.export.Spreadsheet
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -22,7 +22,7 @@ sap.ui.define(['sap/base/Log', 'sap/ui/export/ExportUtils'], function(Log, Expor
|
|
|
22
22
|
*
|
|
23
23
|
* @class Utility class to perform spreadsheet export
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.98.0
|
|
26
26
|
* @static
|
|
27
27
|
*
|
|
28
28
|
* @private
|