@sapui5/sap.ui.export 1.129.0 → 1.130.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 +1 -1
- package/src/sap/ui/export/ExportBase.js +1 -1
- package/src/sap/ui/export/ExportHandler.js +294 -319
- package/src/sap/ui/export/ExportUtils.js +107 -106
- package/src/sap/ui/export/PortableDocument.js +175 -167
- 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 +2 -2
- package/src/sap/ui/export/library.js +2 -2
- package/src/sap/ui/export/messagebundle_da.properties +1 -1
- package/src/sap/ui/export/messagebundle_ru.properties +1 -1
- package/src/sap/ui/export/provider/DataProviderBase.js +22 -2
- package/src/sap/ui/export/util/Filter.js +1 -1
- package/src/sap/ui/export/util/PDFCapabilities.js +4 -2
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
<CheckBox id="exportSettingsDialog-includeFilterSettings" selected="{/includeFilterSettings}" text="{i18n>INCLUDE_FILTER_SETTINGS}" visible="{path:'/fileType', formatter: '.isSpreadsheet'}"/>
|
|
22
22
|
<CheckBox id="exportSettingsDialog-includeFilterSettings-PDF" selected="{/includeFilterSettings}" text="{i18n>INCLUDE_FILTER_SETTINGS}" visible="{parts:['/fileType', '/capabilities/PDF/CoverPage'], formatter: '.isPDF'}" tooltip="{i18n>TOOLTIP_FILTER_SETTINGS}"/>
|
|
23
23
|
<CheckBox id="exportSettingsDialog-pdfArchive" selected="{/pdfArchive}" text="{i18n>ARCHIVE_FORMAT}" visible="{parts:['/fileType', '/capabilities/PDF/ArchiveFormat'], formatter: '.isPDF'}" tooltip="{i18n>TOOLTIP_ARCHIVE_FORMAT}"/>
|
|
24
|
-
<CheckBox id="exportSettingsDialog-splitCells" selected="{/splitCells}" text="{i18n>SPLIT_CELLS}" visible="{path:'/fileType', formatter: '.isSpreadsheet'}"/> <!-- Will be hidden in case of PDF because it needs to be always true
|
|
24
|
+
<CheckBox id="exportSettingsDialog-splitCells" selected="{/splitCells}" text="{i18n>SPLIT_CELLS}" visible="{path:'/fileType', formatter: '.isSpreadsheet'}"/> <!-- Will be hidden in case of PDF because it needs to be always true and is applied implicitly -->
|
|
25
25
|
<CheckBox id="exportSettingsDialog-addDateTime" selected="{/addDateTime}" text="{i18n>ADD_DATE_TIME}" visible="false"/>
|
|
26
26
|
|
|
27
27
|
<!-- PDF Specific settings -->
|
|
@@ -58,4 +58,4 @@
|
|
|
58
58
|
<endButton>
|
|
59
59
|
<Button id="exportSettingsDialog-cancelButton" press=".onCancel" text="{i18n>CANCEL_BUTTON}" type="Transparent"/>
|
|
60
60
|
</endButton>
|
|
61
|
-
</Dialog>
|
|
61
|
+
</Dialog>
|
|
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/core/Lib"], function(Library) {
|
|
|
15
15
|
* @namespace
|
|
16
16
|
* @alias sap.ui.export
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.130.0
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
21
|
|
|
@@ -33,7 +33,7 @@ sap.ui.define(["sap/ui/core/Lib"], function(Library) {
|
|
|
33
33
|
interfaces: [],
|
|
34
34
|
controls: [],
|
|
35
35
|
elements: [],
|
|
36
|
-
version: "1.
|
|
36
|
+
version: "1.130.0"
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -163,7 +163,7 @@ PDF_FILETYPE=Portable Document Format (*.pdf)
|
|
|
163
163
|
TOOLTIP_PDF_ACCESSIBILITY=Definerer, om det genererede dokument er tilg\u00E6ngeligt.
|
|
164
164
|
|
|
165
165
|
#XMSG: Tooltip that explains the show pagenumber checkbox and why it might be disabled
|
|
166
|
-
TOOLTIP_PDF_PAGENUMBER=Definerer, om det genererede dokument indeholder sidenumre i
|
|
166
|
+
TOOLTIP_PDF_PAGENUMBER=Definerer, om det genererede dokument indeholder sidenumre i bundlinjen p\u00E5 hver side.
|
|
167
167
|
|
|
168
168
|
#XMSG: Tooltip that explains the Signature checkbox and why it might be disabled
|
|
169
169
|
TOOLTIP_PDF_SIGNATURE=Definerer, om det genererede dokument er signeret med en digital signatur.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
#
|
|
3
3
|
|
|
4
4
|
#XBUT: Cancel button in the dialog
|
|
5
|
-
CANCEL_BUTTON=\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C
|
|
5
|
+
CANCEL_BUTTON=\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\\
|
|
6
6
|
|
|
7
7
|
#XBUT: Close button in the dialog
|
|
8
8
|
CLOSE_BUTTON=\u0417\u0430\u043A\u0440\u044B\u0442\u044C
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @param {object} mSettings Data service related part of the export configuration
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.130.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @class DataProviderBase
|
|
@@ -250,7 +250,7 @@
|
|
|
250
250
|
|
|
251
251
|
iRemainingRows = this.iTotalRows - this.iAvailableRows;
|
|
252
252
|
|
|
253
|
-
mCallbackParams.finished = iFetchedRows
|
|
253
|
+
mCallbackParams.finished = this._isFinished(iFetchedRows, sNextUrl, iRemainingRows);
|
|
254
254
|
mCallbackParams.progress = this.iTotalRows;
|
|
255
255
|
mCallbackParams.total = this.iTotalRows < this.iCount ? this.iTotalRows : this.iCount;
|
|
256
256
|
mCallbackParams.fetched = this.iAvailableRows;
|
|
@@ -264,10 +264,30 @@
|
|
|
264
264
|
.catch(this.fnOnError.bind(this));
|
|
265
265
|
}
|
|
266
266
|
|
|
267
|
+
if (iFetchedRows < this.iBatchSize && sNextUrl) {
|
|
268
|
+
this.iBatchSize = iFetchedRows;
|
|
269
|
+
}
|
|
267
270
|
mCallbackParams.rows = this.fnConvertData(aData); // Normalize data
|
|
268
271
|
this.fnProcessCallback(mCallbackParams); // Return result
|
|
269
272
|
};
|
|
270
273
|
|
|
274
|
+
/**
|
|
275
|
+
* The function returns array of columns that need special conversion for values.
|
|
276
|
+
* E.g. handling data from association/navigationProperty
|
|
277
|
+
*
|
|
278
|
+
* @param {number} iFetchedRows - Number of rows fetched
|
|
279
|
+
* @param {string} sNextUrl - Next url to fetch data
|
|
280
|
+
* @param {number} iRemainingRows - Remaining rows to fetch
|
|
281
|
+
* @returns {boolean} - True if the finish condition is met
|
|
282
|
+
*
|
|
283
|
+
* @static
|
|
284
|
+
* @private
|
|
285
|
+
*/
|
|
286
|
+
DataProviderBase.prototype._isFinished = function(iFetchedRows, sNextUrl, iRemainingRows) {
|
|
287
|
+
const bFetchedRows = !sNextUrl && ((iFetchedRows < this.iBatchSize) || iFetchedRows > this.iBatchSize);
|
|
288
|
+
return iFetchedRows === 0 || iRemainingRows <= 0 || bFetchedRows;
|
|
289
|
+
};
|
|
290
|
+
|
|
271
291
|
/**
|
|
272
292
|
* Inner function that processes request handler exceptions.
|
|
273
293
|
*
|
|
@@ -20,7 +20,7 @@ sap.ui.define(['sap/ui/base/Object'], function(BaseObject) {
|
|
|
20
20
|
* convenience functions like <code>sap.ui.export.util.Filter#setType</code> to improve the result.
|
|
21
21
|
*
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.130.0
|
|
24
24
|
*
|
|
25
25
|
* @since 1.110
|
|
26
26
|
* @alias sap.ui.export.util.Filter
|
|
@@ -21,10 +21,12 @@ sap.ui.define(["sap/ui/base/Object"], function(BaseObject) {
|
|
|
21
21
|
ResultSizeDefault: 20000,
|
|
22
22
|
ResultSizeMaximum: 20000,
|
|
23
23
|
Signature: false,
|
|
24
|
-
|
|
24
|
+
TextDirectionLayout: false,
|
|
25
|
+
Treeview: false,
|
|
26
|
+
UploadToFileShare: false
|
|
25
27
|
};
|
|
26
28
|
|
|
27
|
-
|
|
29
|
+
const PDFCapabilities = BaseObject.extend("sap.ui.export.util.PDFCapabilities", {
|
|
28
30
|
constructor: function(mSettings) {
|
|
29
31
|
mSettings = mSettings || {};
|
|
30
32
|
|