@sapui5/sap.ui.export 1.93.0 → 1.93.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ui.export",
3
- "version": "1.93.0",
3
+ "version": "1.93.4",
4
4
  "description": "SAPUI5 Library sap.ui.export",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2021 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.93.0</version>
10
+ <version>1.93.4</version>
11
11
 
12
12
  <documentation>UI5 library: sap.ui.export</documentation>
13
13
 
@@ -39,6 +39,8 @@ sap.ui.define([
39
39
 
40
40
  var CLASS_NAME = 'sap.ui.export.ExportUtils';
41
41
 
42
+ var UNSUPPORTED_SHEETNAME_CHARACTERS_REGEX = /[\\\/\?\*:\[\]]/g;
43
+
42
44
  /*
43
45
  * Trigger loading of sap-ui-version.json during initialization,
44
46
  * although it is not 100% ensured that the version is available
@@ -87,7 +89,7 @@ sap.ui.define([
87
89
  * Utilities related to export to enable reuse in integration scenarios (e.g. tables).
88
90
  *
89
91
  * @author SAP SE
90
- * @version 1.93.0
92
+ * @version 1.93.4
91
93
  *
92
94
  * @since 1.59
93
95
  * @name sap.ui.export.ExportUtils
@@ -884,7 +886,7 @@ sap.ui.define([
884
886
  *
885
887
  * @param {Object} oContext Context object
886
888
  * @param {string} [oContext.application] Name of the application (default: "SAP UI5")
887
- * @param {string} [oContext.version] Application version (default: "1.93.0")
889
+ * @param {string} [oContext.version] Application version (default: "1.93.4")
888
890
  * @param {string} [oContext.title] Title that will be written to the file (NOT the filename)
889
891
  * @param {string} [oContext.modifiedBy] Optional user context that will be written to the file
890
892
  * @param {string} [oContext.sheetName] Name of the data sheet - Maximum length of 31 characters
@@ -903,8 +905,8 @@ sap.ui.define([
903
905
  Utils._validateString(oContext, 'version', uiVersion); // Async initialization - might be null
904
906
  Utils._validateString(oContext, 'title');
905
907
  Utils._validateString(oContext, 'modifiedBy');
906
- Utils._validateString(oContext, 'sheetName', 'SAPUI5 Spreadsheet Export', 31);
907
- Utils._validateString(oContext, 'metaSheetName', 'Metadata', 31);
908
+ Utils._validateString(oContext, 'sheetName', 'SAPUI5 Spreadsheet Export', 31, UNSUPPORTED_SHEETNAME_CHARACTERS_REGEX);
909
+ Utils._validateString(oContext, 'metaSheetName', 'Metadata', 31, UNSUPPORTED_SHEETNAME_CHARACTERS_REGEX);
908
910
 
909
911
  if (oContext.metainfo) {
910
912
  if (!Array.isArray(oContext.metainfo)) {
@@ -928,21 +930,26 @@ sap.ui.define([
928
930
  * the value will be adjusted or discarded and the function writes an entry to the Log. If the property value
929
931
  * exceeds the maximum allowed length, it will be truncated.
930
932
  *
931
- * @param oContext Context on which the property is defined
932
- * @param sProperty Name of the property
933
- * @param sDefaultValue Default value that gets applied in case of an invalid value - null if not defined
934
- * @param iMaxLength Maximum allowed length.
933
+ * @param {Object} oContext Context on which the property is defined
934
+ * @param {string} sProperty Name of the property
935
+ * @param {string} sDefaultValue Default value that gets applied in case of an invalid value - null if not defined
936
+ * @param {number} iMaxLength Maximum allowed length
937
+ * @param {string|RegExp} sRemove Unsupported characters that will be removed
935
938
  *
936
939
  * @private
937
940
  * @since 1.78
938
941
  */
939
- _validateString: function(oContext, sProperty, sDefaultValue, iMaxLength) {
942
+ _validateString: function(oContext, sProperty, sDefaultValue, iMaxLength, sRemove) {
940
943
  var sValue;
941
944
 
942
945
  Utils._validateProperty(oContext, sProperty, 'string', sDefaultValue);
943
946
 
944
947
  sValue = oContext[sProperty];
945
948
 
949
+ if (typeof sValue === 'string' && (typeof sRemove === 'string' || sRemove instanceof RegExp)) {
950
+ sValue = sValue.replace(sRemove, '');
951
+ }
952
+
946
953
  if (typeof sValue === 'string' && iMaxLength && sValue.length > iMaxLength) {
947
954
  Log.warning(CLASS_NAME + ': The value of ' + sProperty + ' exceeds the max length of ' + iMaxLength + ' and will be truncated.');
948
955
  sValue = sValue.slice(0, iMaxLength);
@@ -82,7 +82,7 @@ sap.ui.define([
82
82
  * <li><code>workbook.context</code> - Context object that will be applied to the generated file. It may contain the following fields:</li>
83
83
  * <ul>
84
84
  * <li><code>application</code> (string) - The application that creates the XLSX document (default: "SAP UI5")</li>
85
- * <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.93.0")</li>
85
+ * <li><code>version</code> (string) - Application version that creates the XLSX document (default: "1.93.4")</li>
86
86
  * <li><code>title</code> (string) - Title of the XLSX document (NOT the filename)</li>
87
87
  * <li><code>modifiedBy</code> (string) - User context for the XLSX document</li>
88
88
  * <li><code>sheetName</code> (string) - The label of the data sheet</li>
@@ -165,7 +165,7 @@ sap.ui.define([
165
165
  * columns: aColumns,
166
166
  * context: {
167
167
  * application: 'Debug Test Application',
168
- * version: '1.93.0',
168
+ * version: '1.93.4',
169
169
  * title: 'Some random title',
170
170
  * modifiedBy: 'John Doe',
171
171
  * metaSheetName: 'Custom metadata',
@@ -277,7 +277,7 @@ sap.ui.define([
277
277
  * @constructor The <code>sap.ui.export.Spreadsheet</code> class allows you to export table data from a UI5 application to a spreadsheet file.
278
278
  *
279
279
  * @author SAP SE
280
- * @version 1.93.0
280
+ * @version 1.93.4
281
281
  *
282
282
  * @since 1.50
283
283
  * @name sap.ui.export.Spreadsheet
@@ -20,7 +20,7 @@ sap.ui.define(['jquery.sap.global', 'sap/base/Log', 'sap/ui/Device'], function(j
20
20
  *
21
21
  * @class Utility class to perform spreadsheet export
22
22
  * @author SAP SE
23
- * @version 1.93.0
23
+ * @version 1.93.4
24
24
  * @static
25
25
  *
26
26
  * @private
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @namespace
18
18
  * @name sap.ui.export
19
19
  * @author SAP SE
20
- * @version 1.93.0
20
+ * @version 1.93.4
21
21
  * @public
22
22
  */
23
23
 
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  interfaces: [],
34
34
  controls: [],
35
35
  elements: [],
36
- version: "1.93.0"
36
+ version: "1.93.4"
37
37
  });
38
38
 
39
39
 
@@ -43,6 +43,6 @@ PROGRESS_BUNDLE_MSG=\u0413\u0435\u043D\u0435\u0440\u0430\u0446\u0438\u044F \u044
43
43
 
44
44
  NO_COUNT_WARNING_MSG=\u041F\u043E\u0434\u0441\u0447\u0435\u0442 \u043D\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0435\u043D \u0432 \u043A\u043E\u043D\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0430. \n\u041E\u0431\u0449\u0435\u0435 \u0447\u0438\u0441\u043B\u043E \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0445 \u0441\u0442\u0440\u043E\u043A \u0441\u043F\u0440\u043E\u0433\u043D\u043E\u0437\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E, \u043E\u043D\u043E \u043C\u043E\u0436\u0435\u0442 \u043F\u0440\u0435\u0432\u044B\u0448\u0430\u0442\u044C \u043E\u0431\u044A\u0435\u043C \u043F\u0430\u043C\u044F\u0442\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F. \n\u041F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u0442\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u0435, \u0442\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u0432\u044B \u0443\u0432\u0435\u0440\u0435\u043D\u044B, \u0447\u0442\u043E \u0442\u0435\u043A\u0443\u0449\u0438\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438 \u0444\u0438\u043B\u044C\u0442\u0440\u0430 \u043D\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0443\u0442 \u043A \u0431\u043E\u043B\u044C\u0448\u043E\u043C\u0443 \u043E\u0431\u044A\u0435\u043C\u0443 \u0434\u0430\u043D\u043D\u044B\u0445.
45
45
 
46
- XLSX_DEFAULT_TITLE=SAPUI5\: \u044D\u043A\u0441\u043F\u043E\u0440\u0442
46
+ XLSX_DEFAULT_TITLE=SAPUI5 \u044D\u043A\u0441\u043F\u043E\u0440\u0442
47
47
 
48
- XLSX_DEFAULT_SHEETNAME=SAPUI5\: \u044D\u043A\u0441\u043F\u043E\u0440\u0442
48
+ XLSX_DEFAULT_SHEETNAME=SAPUI5 \u044D\u043A\u0441\u043F\u043E\u0440\u0442
@@ -43,6 +43,6 @@ PROGRESS_BUNDLE_MSG=S\u00FAbor sa generuje
43
43
 
44
44
  NO_COUNT_WARNING_MSG=V konfigur\u00E1cii exportu nie je zadan\u00FD po\u010Det riadkov. \nCelkov\u00FD po\u010Det exportovan\u00FDch riadkov nie je mo\u017En\u00E9 predpoveda\u0165 a m\u00F4\u017Ee prekro\u010Di\u0165 kapacitu pam\u00E4te aplik\u00E1cie.\nNepokra\u010Dujte, k\u00FDm si nie ste ist\u00FD, \u017Ee aktu\u00E1lne nastavenia filtra nebud\u00FA ma\u0165 za n\u00E1sledok ve\u013Ek\u00E9 mno\u017Estvo d\u00E1t.
45
45
 
46
- XLSX_DEFAULT_TITLE=SAPUI5\: Export
46
+ XLSX_DEFAULT_TITLE=SAPUI5 Export
47
47
 
48
- XLSX_DEFAULT_SHEETNAME=SAPUI5\: Export
48
+ XLSX_DEFAULT_SHEETNAME=SAPUI5 Export
@@ -0,0 +1,8 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2021 SAP SE. All rights reserved.
4
+ */
5
+
6
+ @import "../base/library.source.less";
7
+ @import "../../../../../sap/ui/core/themes/sap_horizon/base.less";
8
+ @import "../../../../../sap/ui/core/themes/sap_horizon/global.less";
package/ui5.yaml CHANGED
@@ -9,6 +9,8 @@ framework:
9
9
  name: SAPUI5
10
10
  libraries:
11
11
  - name: sap.ui.core
12
+ - name: themelib_sap_horizon
13
+ optional: true
12
14
  - name: themelib_sap_fiori_3
13
15
  optional: true
14
16
  - name: themelib_sap_belize