@sapui5/sap.ui.export 1.123.0 → 1.124.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/LICENSE.txt +13 -10
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/sap/ui/export/.library +1 -1
- package/src/sap/ui/export/ExportBase.js +7 -2
- package/src/sap/ui/export/ExportHandler.js +9 -4
- package/src/sap/ui/export/ExportUtils.js +2 -2
- package/src/sap/ui/export/PortableDocument.js +1 -1
- package/src/sap/ui/export/Spreadsheet.js +6 -6
- package/src/sap/ui/export/SpreadsheetExport.js +1 -1
- 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 +2 -2
- package/src/sap/ui/export/messagebundle_cnr.properties +1 -1
- package/src/sap/ui/export/messagebundle_sh.properties +14 -14
- package/src/sap/ui/export/provider/DataProviderBase.js +8 -7
- package/src/sap/ui/export/themes/sap_bluecrystal/library.source.less +10 -1
- package/src/sap/ui/export/themes/sap_bluecrystal_base/ExportUtils.less +8 -0
- package/src/sap/ui/export/themes/sap_bluecrystal_base/library.source.less +9 -0
- package/src/sap/ui/export/util/Filter.js +1 -1
|
@@ -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.124.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.124.0"
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
/**
|
|
@@ -191,7 +191,7 @@ DESTINATION_REMOTE=Oblak
|
|
|
191
191
|
DESTINATION_DIALOG_TITLE=Izvezi u
|
|
192
192
|
|
|
193
193
|
#XMSG: Status text on the progress dialog for transfering the file to the cloud destination
|
|
194
|
-
DESTINATION_DIALOG_STATUS=Fajl se
|
|
194
|
+
DESTINATION_DIALOG_STATUS=Fajl se prenosi; budite strpljivi...
|
|
195
195
|
|
|
196
196
|
#XMSG: Error message when exported file could not be transferred
|
|
197
197
|
DESTINATION_TRANSFER_ERROR=Fajl se ne mo\u017Ee prenijeti.
|
|
@@ -38,16 +38,16 @@ MSG_WARNING_ROW_LIMIT=Samo {0} redova mo\u017Ee biti izvezeno u pojedina\u010Dno
|
|
|
38
38
|
MSG_WARNING_COUNT_UNKNOWN=Dokument sadr\u017Ei nepoznati broj redova.
|
|
39
39
|
|
|
40
40
|
#XMSG: Part of a message text that gives advice on how to proceed
|
|
41
|
-
MSG_WARNING_ADVICE=Nemojte nastaviti dok se ne
|
|
41
|
+
MSG_WARNING_ADVICE=Nemojte nastaviti dok se ne uverite da trenutna pode\u0161avanja filtera ne\u0107e za posledicu imati veliku koli\u010Dinu podataka jer fajl mo\u017Ee biti prevelik za obradu.
|
|
42
42
|
|
|
43
43
|
#XMSG: Last sentence of a warning message to ask the user if he/she still wants to export
|
|
44
|
-
MSG_WARNING_EXPORT_ANYWAY=Ipak
|
|
44
|
+
MSG_WARNING_EXPORT_ANYWAY=Ipak izvesti?
|
|
45
45
|
|
|
46
46
|
#XMSG: Textual representation of the technical error message which indicates that the export ran out of memory.
|
|
47
47
|
MSG_ERROR_OUT_OF_MEMORY=Ponestalo je memorije za proces izvoza i on je prekinut.\nUskladite svoja pode\u0161avanja kolone ili filtera da biste izabrali manji broj \u0107elija.
|
|
48
48
|
|
|
49
49
|
#XMSG: Screenreader announcement that the export process has been finished.
|
|
50
|
-
MSG_INFO_EXPORT_FINISHED=Izvoz je zavr\u0161en i fajl je
|
|
50
|
+
MSG_INFO_EXPORT_FINISHED=Izvoz je zavr\u0161en i fajl je prenet sa servera.
|
|
51
51
|
|
|
52
52
|
#XMSG: Message text informing that the original error message is empty or no specific error provided
|
|
53
53
|
PROGRESS_ERROR_DEFAULT=Nepoznata gre\u0161ka
|
|
@@ -62,7 +62,7 @@ FILE_NAME=Naziv fajla
|
|
|
62
62
|
SELECT_FORMAT=Format
|
|
63
63
|
|
|
64
64
|
#XFLD: Split cells with multiple values
|
|
65
|
-
SPLIT_CELLS=
|
|
65
|
+
SPLIT_CELLS=Podeli \u0107elije s vi\u0161estrukim vrednostima
|
|
66
66
|
|
|
67
67
|
#XFLD: Include filter settings
|
|
68
68
|
INCLUDE_FILTER_SETTINGS=Uklju\u010Di pode\u0161avanja filtera
|
|
@@ -74,7 +74,7 @@ TECHNICAL_INFORMATION=Tehni\u010Dke informacije
|
|
|
74
74
|
USER_NAME=Korisnik
|
|
75
75
|
|
|
76
76
|
#XFLD: Creation time
|
|
77
|
-
CREATED_TIME=
|
|
77
|
+
CREATED_TIME=Vreme kreiranja
|
|
78
78
|
|
|
79
79
|
#XFLD: Archive format
|
|
80
80
|
ARCHIVE_FORMAT=Format arhive
|
|
@@ -83,7 +83,7 @@ ARCHIVE_FORMAT=Format arhive
|
|
|
83
83
|
FILTER_HEADER=Filter
|
|
84
84
|
|
|
85
85
|
#XFLD: Add current date and time to the file name
|
|
86
|
-
ADD_DATE_TIME=Dodaj teku\u0107i datum i
|
|
86
|
+
ADD_DATE_TIME=Dodaj teku\u0107i datum i vreme u naziv fajla
|
|
87
87
|
|
|
88
88
|
#XLST: Spreadsheet file type config for Microsoft Excel specific format
|
|
89
89
|
XLSX_FILETYPE=Microsoft Excel (*.xlsx)
|
|
@@ -92,7 +92,7 @@ XLSX_FILETYPE=Microsoft Excel (*.xlsx)
|
|
|
92
92
|
GSHEET_FILETYPE=Google Sheets
|
|
93
93
|
|
|
94
94
|
#XMSG: File name warning text
|
|
95
|
-
FILENAME_WARNING=Naziv fajla koji ste
|
|
95
|
+
FILENAME_WARNING=Naziv fajla koji ste uneli prekora\u010Duje 100 znakova. To mo\u017Ee spre\u010Diti pravilno otvaranje tabelarnog izra\u010Dunavanja.
|
|
96
96
|
|
|
97
97
|
#XFLD: Paper Size
|
|
98
98
|
PAPER_SIZE=Veli\u010Dina papira
|
|
@@ -116,7 +116,7 @@ ORIENTATION_LAND=Polo\u017Eeno
|
|
|
116
116
|
ORIENTATION_PORT=Uspravno
|
|
117
117
|
|
|
118
118
|
#XMSG: Font size error text
|
|
119
|
-
NUMBER_ERROR=
|
|
119
|
+
NUMBER_ERROR=Vrednost treba da bude broj.
|
|
120
120
|
|
|
121
121
|
#XFLD: Fit to Page
|
|
122
122
|
ENABLE_ACCESSIBILITY=Aktiviraj dostupnost
|
|
@@ -143,7 +143,7 @@ PDF_GENERATION_ERROR=Do\u0161lo je do gre\u0161ke u toku izvoza PDF fajla.
|
|
|
143
143
|
PDF_GENERIC_ERROR=Gre\u0161ka u toku izvoza PDF fajla
|
|
144
144
|
|
|
145
145
|
#XMSG: File name error text
|
|
146
|
-
FILENAME_ERROR=Ne mo\u017Eete koristiti nijedan od
|
|
146
|
+
FILENAME_ERROR=Ne mo\u017Eete koristiti nijedan od slede\u0107ih znakova u nazivu fajla\: \\ / \: * ? " < > |
|
|
147
147
|
|
|
148
148
|
#XMSG: Message text informing that exported file is being created
|
|
149
149
|
PROGRESS_BUNDLE_MSG=Generisanje fajla...
|
|
@@ -191,19 +191,19 @@ DESTINATION_REMOTE=Oblak
|
|
|
191
191
|
DESTINATION_DIALOG_TITLE=Izvezi u
|
|
192
192
|
|
|
193
193
|
#XMSG: Status text on the progress dialog for transfering the file to the cloud destination
|
|
194
|
-
DESTINATION_DIALOG_STATUS=Fajl se
|
|
194
|
+
DESTINATION_DIALOG_STATUS=Fajl se prenosi; budite strpljivi...
|
|
195
195
|
|
|
196
196
|
#XMSG: Error message when exported file could not be transferred
|
|
197
|
-
DESTINATION_TRANSFER_ERROR=Fajl se ne mo\u017Ee
|
|
197
|
+
DESTINATION_TRANSFER_ERROR=Fajl se ne mo\u017Ee preneti.
|
|
198
198
|
|
|
199
199
|
#XMSG: Succuess message when the file has been saved to the cloud destination
|
|
200
|
-
DESTINATION_TRANSFER_SUCCESS=Va\u0161 fajl je
|
|
200
|
+
DESTINATION_TRANSFER_SUCCESS=Va\u0161 fajl je uspe\u0161no sa\u010Duvan.
|
|
201
201
|
|
|
202
202
|
#XMSG: Error message when the user did not select a proper FileShare for storing the file
|
|
203
|
-
DESTINATION_SELECTION_INCOMPLETE=Odabrano
|
|
203
|
+
DESTINATION_SELECTION_INCOMPLETE=Odabrano deljenje fajla je neva\u017Ee\u0107e.
|
|
204
204
|
|
|
205
205
|
#XBUT: Export button in the dialog when the user has selected to save the file on a cloud destination. This will open another file/folder selection. The text is followed by an ellipsis
|
|
206
206
|
DIALOG_BUTTON_CLOUD_DESTINATION=Izvezi u...
|
|
207
207
|
|
|
208
208
|
#XMSG: Error message that is shown when the user has selected Google Sheets as format but the selected file location is on a FileShare that has a vendor different than Google
|
|
209
|
-
DESTINATION_ERROR_NOT_GOOGLE=Izvoz fajla u Google Sheets
|
|
209
|
+
DESTINATION_ERROR_NOT_GOOGLE=Izvoz fajla u Google Sheets zahteva Google Workspace za podelu fajla.\nOdaberite razli\u010Diti format ili razli\u010Ditu podelu fajla.
|
|
@@ -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.124.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @class DataProviderBase
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
this.bCanceled = false;
|
|
39
39
|
this.iAvailableRows = 0;
|
|
40
40
|
this.mRequest = null;
|
|
41
|
+
this.iCount = Math.min(mSettings.dataSource.count || DataProviderBase.MAX_ROWS, DataProviderBase.MAX_ROWS);
|
|
41
42
|
|
|
42
43
|
if (this.mSettings.dataSource.downloadLimit) {
|
|
43
44
|
this.iTotalRows = this.mSettings.dataSource.downloadLimit;
|
|
@@ -232,9 +233,7 @@
|
|
|
232
233
|
DataProviderBase.prototype.fnOnDataReceived = function(oResult) {
|
|
233
234
|
var aData, sNextUrl, iFetchedRows, iRemainingRows;
|
|
234
235
|
var mCallbackParams = {};
|
|
235
|
-
|
|
236
236
|
this.oPendingXHR = null;
|
|
237
|
-
|
|
238
237
|
if (this.bCanceled) {
|
|
239
238
|
return; // Canceled by the application
|
|
240
239
|
}
|
|
@@ -245,15 +244,17 @@
|
|
|
245
244
|
iFetchedRows = aData.length;
|
|
246
245
|
|
|
247
246
|
this.iAvailableRows += iFetchedRows;
|
|
247
|
+
|
|
248
|
+
// Check if next url is provided
|
|
249
|
+
sNextUrl = (oResult && oResult['@odata.nextLink'] || (oResult.d && oResult.d.__next)) || null;
|
|
250
|
+
|
|
248
251
|
iRemainingRows = this.iTotalRows - this.iAvailableRows;
|
|
249
252
|
|
|
250
|
-
mCallbackParams.finished = iFetchedRows === 0 || iRemainingRows <= 0; // Done criteria
|
|
253
|
+
mCallbackParams.finished = iFetchedRows === 0 || (!sNextUrl && iRemainingRows <= 0) || (!sNextUrl && iFetchedRows < this.iBatchSize); // Done criteria
|
|
251
254
|
mCallbackParams.progress = this.iTotalRows;
|
|
252
|
-
mCallbackParams.total = this.iTotalRows;
|
|
255
|
+
mCallbackParams.total = this.iTotalRows < this.iCount ? this.iTotalRows : this.iCount;
|
|
253
256
|
mCallbackParams.fetched = this.iAvailableRows;
|
|
254
257
|
|
|
255
|
-
// Check if next url is provided
|
|
256
|
-
sNextUrl = (oResult && oResult['@odata.nextLink'] || (oResult.d && oResult.d.__next)) || null;
|
|
257
258
|
|
|
258
259
|
if (!mCallbackParams.finished) {
|
|
259
260
|
// Trigger next page request before processing received data. Fetch only configured/max limit rows
|
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
* (c) Copyright 2009-2024 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
/***********************************************************************************
|
|
7
|
+
/* Due to deprecation of sap_bluecrystal with SAPUI5 version 1.44 the
|
|
8
|
+
/* inheritance of the base theme is now updated to an inheritance of a static
|
|
9
|
+
/* copy of the base theme named sap_bluecrystal_base. The respective
|
|
10
|
+
/* control css files of base are copied to the sap_bluecrystal_base theme folder.
|
|
11
|
+
/* This decoupling of the base theme is introduced with SAPUI5 version 1.124.
|
|
12
|
+
***********************************************************************************/
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@import "../sap_bluecrystal_base/library.source.less";
|
|
7
16
|
@import "../../../../../sap/ui/core/themes/sap_bluecrystal/base.less";
|
|
8
17
|
@import "../../../../../sap/ui/core/themes/sap_bluecrystal/global.less";
|
|
@@ -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.124.0
|
|
24
24
|
*
|
|
25
25
|
* @since 1.110
|
|
26
26
|
* @alias sap.ui.export.util.Filter
|