@sapui5/sap.ui.export 1.128.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.
@@ -65,6 +65,7 @@ sap.ui.define([
65
65
  * property are accepted: <code>[left, right, center, begin, end]</code>. If not specified, the columns are
66
66
  * horizontally aligned based on the property type.</li>
67
67
  * <li><code>scale</code> (number) - Number of digits after decimal point for numeric values</li>
68
+ * <li><code>autoScale</code> (boolean) - Allows automatic scale assignment based on unit of measure</li>
68
69
  * <li><code>delimiter</code> (boolean) - Set to <code>true</code> to display thousands separators in numeric values.
69
70
  * The default value is <code>false</code>.</li>
70
71
  * <li><code>unit</code> (string) - Text to display as the unit of measurement or currency next to the numeric value.
@@ -76,8 +77,12 @@ sap.ui.define([
76
77
  * <li><code>trueValue</code> (string) - Textual representation of a boolean type that has the value <code>true</code></li>
77
78
  * <li><code>falseValue</code> (string) - Textual representation of a boolean type that has the value <code>false</code></li>
78
79
  * <li><code>template</code> (string) - Formatting template that supports indexed placeholders within curly brackets</li>
80
+ * <li><code>format</code> (string) - Output format for columns of type Date/DateTime/Time</li>
79
81
  * <li><code>inputFormat</code> (string) - Formatting template for string formatted dates</li>
80
82
  * <li><code>utc</code> (boolean) - Defines whether the <code>DateTime</code> is displayed as UTC or local time</li>
83
+ * <li><code>timezone</code> (string) - Defines a fixed IANA time zone</li>
84
+ * <li><code>timezoneProperty</code> (string) - References an OData property that contains the specific IANA time zone</li>
85
+ * <li><code>displayTimezone</code> (boolean) - Defines whether the IANA time zone is displayed within a cell</li>
81
86
  * <li><code>valueMap</code> (string) - Mapping object or Map containing the values that should be mapped to a particular key</li>
82
87
  * <li><code>wrap</code> (boolean) - Indicates if wrapping is enabled for this particular column</li>
83
88
  * </ul>
@@ -85,7 +90,7 @@ sap.ui.define([
85
90
  * <li><code>workbook.context</code> - Context object that will be applied to the generated file. It may contain the following fields:</li>
86
91
  * <ul>
87
92
  * <li><code>application</code> (string) - The application that creates the XLSX document (default: "SAP UI5")</li>
88
- * <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.128.0")</li>
93
+ * <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.130.0")</li>
89
94
  * <li><code>title</code> (string) - Title of the XLSX document (NOT the filename)</li>
90
95
  * <li><code>modifiedBy</code> (string) - User context for the XLSX document</li>
91
96
  * <li><code>sheetName</code> (string) - The label of the data sheet</li>
@@ -169,7 +174,7 @@ sap.ui.define([
169
174
  * columns: aColumns,
170
175
  * context: {
171
176
  * application: 'Debug Test Application',
172
- * version: '1.128.0',
177
+ * version: '1.130.0',
173
178
  * title: 'Some random title',
174
179
  * modifiedBy: 'John Doe',
175
180
  * metaSheetName: 'Custom metadata',
@@ -281,7 +286,7 @@ sap.ui.define([
281
286
  * @class The <code>sap.ui.export.Spreadsheet</code> class allows you to export table data from a UI5 application to a spreadsheet file.
282
287
  *
283
288
  * @author SAP SE
284
- * @version 1.128.0
289
+ * @version 1.130.0
285
290
  *
286
291
  * @since 1.50
287
292
  * @alias sap.ui.export.Spreadsheet
@@ -21,7 +21,7 @@ sap.ui.define(['sap/base/Log', 'sap/ui/export/ExportUtils'], function(Log, Expor
21
21
  * Utility class to perform spreadsheet export.
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.128.0
24
+ * @version 1.130.0
25
25
  *
26
26
  * @alias sap.ui.export.SpreadsheetExport
27
27
  * @private
@@ -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 and is applied implicitly -->
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.128.0
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.128.0"
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 bundlinien p\u00E5 hver side.
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.128.0
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 === 0 || (!sNextUrl && iRemainingRows <= 0) || (!sNextUrl && iFetchedRows < this.iBatchSize); // Done criteria
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.128.0
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
- Treeview: false
24
+ TextDirectionLayout: false,
25
+ Treeview: false,
26
+ UploadToFileShare: false
25
27
  };
26
28
 
27
- var PDFCapabilities = BaseObject.extend("sap.ui.export.util.PDFCapabilities", {
29
+ const PDFCapabilities = BaseObject.extend("sap.ui.export.util.PDFCapabilities", {
28
30
  constructor: function(mSettings) {
29
31
  mSettings = mSettings || {};
30
32