@sapui5/sap.suite.ui.commons 1.108.1 → 1.108.3

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.
Files changed (92) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/commons/.library +1 -1
  3. package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
  4. package/src/sap/suite/ui/commons/CalculationBuilder.js +1 -1
  5. package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
  6. package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
  7. package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
  8. package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
  9. package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
  10. package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
  11. package/src/sap/suite/ui/commons/CloudFilePicker.js +7 -3
  12. package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
  13. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  14. package/src/sap/suite/ui/commons/Timeline.js +1 -1
  15. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +34 -37
  16. package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +11 -8
  17. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +35 -14
  18. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  19. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  20. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  21. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  22. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  23. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  24. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  25. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  26. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  27. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  28. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  30. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  31. package/src/sap/suite/ui/commons/library.js +1 -1
  32. package/src/sap/suite/ui/commons/messagebundle_ar.properties +4 -4
  33. package/src/sap/suite/ui/commons/messagebundle_bg.properties +4 -4
  34. package/src/sap/suite/ui/commons/messagebundle_ca.properties +4 -4
  35. package/src/sap/suite/ui/commons/messagebundle_cs.properties +4 -4
  36. package/src/sap/suite/ui/commons/messagebundle_cy.properties +4 -4
  37. package/src/sap/suite/ui/commons/messagebundle_da.properties +4 -4
  38. package/src/sap/suite/ui/commons/messagebundle_de.properties +3 -3
  39. package/src/sap/suite/ui/commons/messagebundle_el.properties +4 -4
  40. package/src/sap/suite/ui/commons/messagebundle_en.properties +2 -2
  41. package/src/sap/suite/ui/commons/messagebundle_es.properties +4 -4
  42. package/src/sap/suite/ui/commons/messagebundle_es_MX.properties +4 -4
  43. package/src/sap/suite/ui/commons/messagebundle_et.properties +4 -4
  44. package/src/sap/suite/ui/commons/messagebundle_fi.properties +4 -4
  45. package/src/sap/suite/ui/commons/messagebundle_fr.properties +4 -4
  46. package/src/sap/suite/ui/commons/messagebundle_fr_CA.properties +5 -5
  47. package/src/sap/suite/ui/commons/messagebundle_hi.properties +5 -5
  48. package/src/sap/suite/ui/commons/messagebundle_hr.properties +4 -4
  49. package/src/sap/suite/ui/commons/messagebundle_hu.properties +4 -4
  50. package/src/sap/suite/ui/commons/messagebundle_id.properties +5 -5
  51. package/src/sap/suite/ui/commons/messagebundle_it.properties +3 -3
  52. package/src/sap/suite/ui/commons/messagebundle_iw.properties +4 -4
  53. package/src/sap/suite/ui/commons/messagebundle_ja.properties +4 -4
  54. package/src/sap/suite/ui/commons/messagebundle_kk.properties +4 -4
  55. package/src/sap/suite/ui/commons/messagebundle_ko.properties +4 -4
  56. package/src/sap/suite/ui/commons/messagebundle_lt.properties +4 -4
  57. package/src/sap/suite/ui/commons/messagebundle_lv.properties +4 -4
  58. package/src/sap/suite/ui/commons/messagebundle_ms.properties +4 -4
  59. package/src/sap/suite/ui/commons/messagebundle_nl.properties +3 -3
  60. package/src/sap/suite/ui/commons/messagebundle_no.properties +4 -4
  61. package/src/sap/suite/ui/commons/messagebundle_pl.properties +4 -4
  62. package/src/sap/suite/ui/commons/messagebundle_pt.properties +5 -5
  63. package/src/sap/suite/ui/commons/messagebundle_pt_PT.properties +4 -4
  64. package/src/sap/suite/ui/commons/messagebundle_ro.properties +4 -4
  65. package/src/sap/suite/ui/commons/messagebundle_ru.properties +4 -4
  66. package/src/sap/suite/ui/commons/messagebundle_sh.properties +4 -4
  67. package/src/sap/suite/ui/commons/messagebundle_sl.properties +4 -4
  68. package/src/sap/suite/ui/commons/messagebundle_sv.properties +4 -4
  69. package/src/sap/suite/ui/commons/messagebundle_th.properties +4 -4
  70. package/src/sap/suite/ui/commons/messagebundle_tr.properties +4 -4
  71. package/src/sap/suite/ui/commons/messagebundle_uk.properties +5 -5
  72. package/src/sap/suite/ui/commons/messagebundle_vi.properties +4 -4
  73. package/src/sap/suite/ui/commons/messagebundle_zh_CN.properties +4 -4
  74. package/src/sap/suite/ui/commons/messagebundle_zh_TW.properties +5 -5
  75. package/src/sap/suite/ui/commons/mockserver/mockServer.js +121 -0
  76. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  77. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  78. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  79. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  80. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  81. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  82. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  83. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  84. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  85. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  86. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  87. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  88. package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
  89. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  90. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
  91. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  92. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.commons",
3
- "version": "1.108.1",
3
+ "version": "1.108.3",
4
4
  "description": "SAPUI5 Library sap.suite.ui.commons",
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
  SAP UI development toolkit for HTML5 (SAPUI5)
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.108.1</version>
10
+ <version>1.108.3</version>
11
11
 
12
12
  <documentation>SAP UI library: sap.suite.ui.commons</documentation>
13
13
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.core.Element
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.108.1
22
+ * @version 1.108.3
23
23
  * @since 1.65.0
24
24
  *
25
25
  * @constructor
@@ -124,7 +124,7 @@ sap.ui.define([
124
124
  * @extends sap.ui.core.Control
125
125
  *
126
126
  * @author SAP SE
127
- * @version 1.108.1
127
+ * @version 1.108.3
128
128
  * @since 1.56.0
129
129
  *
130
130
  * @constructor
@@ -111,7 +111,7 @@ sap.ui.define([
111
111
  * @extends sap.ui.core.Control
112
112
  *
113
113
  * @author SAP SE
114
- * @version 1.108.1
114
+ * @version 1.108.3
115
115
  * @since 1.56.0
116
116
  *
117
117
  * @constructor
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @extends sap.ui.core.Control
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.108.1
21
+ * @version 1.108.3
22
22
  * @since 1.56.0
23
23
  *
24
24
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Control
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.108.1
18
+ * @version 1.108.3
19
19
  * @since 1.60.0
20
20
  *
21
21
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.108.1
33
+ * @version 1.108.3
34
34
  * @since 1.56.0
35
35
  *
36
36
  * @constructor
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @extends sap.ui.base.ManagedObject
15
15
  *
16
16
  * @author SAP SE
17
- * @version 1.108.1
17
+ * @version 1.108.3
18
18
  * @since 1.56.0
19
19
  *
20
20
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Control
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.108.1
18
+ * @version 1.108.3
19
19
  * @since 1.56.0
20
20
  *
21
21
  * @constructor
@@ -113,7 +113,7 @@ sap.ui.define([
113
113
  * @class
114
114
  * @public
115
115
  * @internal
116
- * @version 1.108.1
116
+ * @version 1.108.3
117
117
  */
118
118
  var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
119
119
  metadata: {
@@ -371,7 +371,10 @@ sap.ui.define([
371
371
  id: this.getId() + "-fileName",
372
372
  liveChange: function (oControlEvent) {
373
373
  oTableControl.removeSelections();
374
- this._setConfirmationButtonEnabled(null, null, true);
374
+ var oSelectedFolderInfo = oNavigationMap.get(
375
+ aVisibleLinks[aVisibleLinks.length - 1].fileShareItemId
376
+ );
377
+ this._setConfirmationButtonEnabled(null, oSelectedFolderInfo, true);
375
378
  }.bind(this)
376
379
  });
377
380
  oSimpleForm.addContent(oLabel);
@@ -869,6 +872,7 @@ sap.ui.define([
869
872
  } else {
870
873
  oBreadcrumbLinkControl.destroyLinks();
871
874
  this._initializeVisibleLinks();
875
+ this._enableDisableNewFolderBtn();
872
876
  }
873
877
  this._setConfirmationButtonEnabled(false);
874
878
  };
@@ -938,7 +942,7 @@ sap.ui.define([
938
942
  }
939
943
  } else if (bFileNameEdit) {
940
944
  if (this.getFileNameMandatory()) {
941
- oConfirmationButton.setEnabled(bIsFileNameExist);
945
+ oConfirmationButton.setEnabled((oSelectedFolderInfo && oSelectedFolderInfo.getIsDocumentCreationAllowed()) ? bIsFileNameExist : false);
942
946
  }
943
947
  } else {
944
948
  oConfirmationButton.setEnabled(bEnabled ? bEnabled : false);
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.ui.core.Control
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.108.1
31
+ * @version 1.108.3
32
32
  *
33
33
  * @constructor
34
34
  * @public
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.core.Control
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.108.1
33
+ * @version 1.108.3
34
34
  *
35
35
  * @constructor
36
36
  * @public
@@ -1152,7 +1152,7 @@ sap.ui.define([
1152
1152
  aCurrentFilters = [];
1153
1153
  if (oBinding) {
1154
1154
  if (!bResetAll) {
1155
- aFilters = this.aPrevFilters || [];
1155
+ aFilters = oBinding.aFilters.length != 0 ? oBinding.aFilters : this.aPrevFilters || [];
1156
1156
  }
1157
1157
 
1158
1158
  if (this._dataFilter) {
@@ -13,13 +13,11 @@ sap.ui.define(
13
13
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.CollaborationHelper");
14
14
 
15
15
  /**
16
- * CollaborationHelper for collaboration related utility
16
+ * CollaborationHelper for collaboration-related functionalities
17
17
  * @namespace
18
18
  * @since 1.108
19
19
  * @alias module:sap/suite/ui/commons/collaboration/CollaborationHelper
20
- * @private
21
- * @ui5-restricted
22
- * @experimental Since 1.108
20
+ * @public
23
21
  */
24
22
  var CollaborationHelper = BaseObject.extend(
25
23
  "sap.suite.ui.commons.collaboration.CollaborationHelper"
@@ -27,8 +25,8 @@ sap.ui.define(
27
25
 
28
26
  /**
29
27
  * This function creates a shortened URL.
30
- * @param {string} sUrl full URL
31
- * @returns {string} This function returns a shortened url in the format
28
+ * @param {string} sUrl Full URL
29
+ * @returns {string} This function returns a shortened URL in the format
32
30
  * `<protocol>/<hostname>#<semantic-object>&/sap-url-hash=<UUID>`
33
31
  * @private
34
32
  * @ui5-restricted sap.suite.suite-ui-commons
@@ -81,8 +79,8 @@ sap.ui.define(
81
79
  };
82
80
 
83
81
  /**
84
- * function that returns a Promise that resolves to the current url
85
- * @returns {Promise} promise with data as current Url
82
+ * Function that returns a Promise that resolves to the current URL.
83
+ * @returns {Promise} Promise which resolves to the current URL
86
84
  * @private
87
85
  */
88
86
  CollaborationHelper._getCurrentUrl = function () {
@@ -95,12 +93,11 @@ sap.ui.define(
95
93
  };
96
94
 
97
95
  /**
98
- * Method checks whether the application is running in Teams environment & if yes disables
99
- * the Avatar icon on the shell, this is done in synchronously. Method returns a promise.
100
- * Promise is resolved immediately if URL is not compact. In case of compact hash, then
101
- * will retrieve the original/complete hash and replace it on the window & then resolve
102
- * the promise.
103
- * @return {Promise} return resolved promise when url redirection is done.
96
+ * Method that checks whether the application is running in the Microsoft Teams environment. If yes, the
97
+ * method disables the Avatar icon on the shell. This is done synchronously. The Method returns
98
+ * a promise. The promise is resolved immediately if the URL is not compact. In case of a compact hash,
99
+ * the method retrieves the original or complete hash and replaces it in the window. The method then resolves the promise.
100
+ * @return {Promise} Return the resolved promise when the redirection of the URL is done.
104
101
  * @public
105
102
  */
106
103
  CollaborationHelper.processAndExpandHash = function () {
@@ -119,7 +116,7 @@ sap.ui.define(
119
116
  };
120
117
 
121
118
  /**
122
- * Hides avatar of user if app is running in the MS Teams application.
119
+ * Hides the avatar of the user if the app is running in the Microsoft Teams application.
123
120
  * @private
124
121
  * @ui5-restricted sap.suite.suite-ui-commons
125
122
  * @experimental since 1.108
@@ -136,10 +133,10 @@ sap.ui.define(
136
133
  };
137
134
 
138
135
  /**
139
- * Determines whether application is running inside the MS Teams.
140
- * In case url parameter "sap-collaboration-teams" is set to true & appState is set to lean
141
- * method runs that application is running in Teams environment
142
- * @returns {Promise} return resolved promise with data true in case conditions are met else false
136
+ * Determines whether the app is running in the Microsoft Teams application.
137
+ * If the URL parameter "sap-collaboration-teams" is set to true and if the appState is set to lean,
138
+ * the method ensures that the application runs in the Microsoft Teams environment
139
+ * @returns {Promise} Return the resolved promise with the data if the conditions are met with 'true', else 'false'
143
140
  * @public
144
141
  */
145
142
  CollaborationHelper.isTeamsModeActive = function () {
@@ -171,9 +168,9 @@ sap.ui.define(
171
168
  };
172
169
 
173
170
  /**
174
- * This function retrieves the url stored against the hash in the K/V persistent store.
175
- * @param {string} hash hash from the URL
176
- * @returns {AppState} instance of AppState
171
+ * This function retrieves the URL stored against the hash in the key/value persistent store.
172
+ * @param {string} The hash from the URL
173
+ * @returns {AppState} The instance of the AppState
177
174
  * @private
178
175
  */
179
176
  CollaborationHelper._retrieveURL = function (hash) {
@@ -186,8 +183,8 @@ sap.ui.define(
186
183
 
187
184
  /**
188
185
  * This function checks the transient flag in the _oConfig object.
189
- * @param {AppState} appStateInstance instance of AppState
190
- * @returns {boolean} true if transient flag is set to false
186
+ * @param {AppState} appStateInstance Instance of the AppState
187
+ * @returns {boolean} 'True' if the transient flag is set to 'false'
191
188
  * @private
192
189
  */
193
190
  CollaborationHelper._isEligibleForBackendPersistency = function (appStateInstance) {
@@ -195,8 +192,8 @@ sap.ui.define(
195
192
  };
196
193
 
197
194
  /**
198
- * This function generates an alphanumberic UUID string.
199
- * @param {AppState} oAppStateService instance of AppState
195
+ * This function generates an alphanumeric UUID string.
196
+ * @param {AppState} oAppStateService Instance of the AppState
200
197
  * @returns {string} Returns a randomly generated UUID string.
201
198
  * @private
202
199
  */
@@ -205,8 +202,8 @@ sap.ui.define(
205
202
  };
206
203
 
207
204
  /**
208
- * This functions parses a url and extracts smenatic-object, action and context-raw if applicable.
209
- * @param {string} sUrl full url
205
+ * This functions parses a URL and extracts the semantic-object, the action and the context-raw if applicable.
206
+ * @param {string} sUrl Full URL
210
207
  * @returns {string} Returns a string in the format <semantic-object>-<action>~<contextRaw>.
211
208
  * @private
212
209
  */
@@ -226,9 +223,9 @@ sap.ui.define(
226
223
  };
227
224
 
228
225
  /**
229
- * Extracting URL present before the # character.
230
- * @param {string} sUrl full url
231
- * @returns {string} string before the # character in the URL.
226
+ * Extracting URL present before the hash character.
227
+ * @param {string} sUrl Full URL
228
+ * @returns {string} String before the hash character in the URL.
232
229
  * @private
233
230
  */
234
231
  CollaborationHelper._extractURLBeforeHash = function (sUrl) {
@@ -237,9 +234,9 @@ sap.ui.define(
237
234
  };
238
235
 
239
236
  /**
240
- * Extracting hash from the URL
241
- * @param {string} sUrl full url
242
- * @returns {string} hash from the URL
237
+ * Extracting the hash from the URL
238
+ * @param {string} sUrl Full URL
239
+ * @returns {string} Hash from the URL
243
240
  * @private
244
241
  */
245
242
  CollaborationHelper._extractURLHash = function (sUrl) {
@@ -248,9 +245,9 @@ sap.ui.define(
248
245
  };
249
246
 
250
247
  /**
251
- * This function saves the hash and the long url in the K/V DB.
252
- * @param {string} sUrl full URL
253
- * @param {AppState} oAppStateService instance of AppState
248
+ * This function saves the hash and the long URL in the key/value DB.
249
+ * @param {string} sUrl Full URL
250
+ * @param {AppState} oAppStateService Instance of the AppState
254
251
  * @returns {Promise} Promise which ultimately resolves once the value is stored successfully.
255
252
  * @private
256
253
  */
@@ -29,17 +29,20 @@ sap.ui.define([
29
29
  // Private constructor so that no one could create an instance of the class
30
30
  function ServiceContainer() {}
31
31
 
32
+ /**
33
+ * Service container to get the collaboration type.
34
+ * @namespace
35
+ * @since 1.108
36
+ * @public
37
+ */
32
38
  sap.suite.ui.commons.collaboration.ServiceContainer = new ServiceContainer();
33
39
 
34
40
  /**
35
- * Method returns the Collaboration service object active on the system. MS Teams is supported as
36
- * collaboration options & needs to be enabled through the communication service SAP_COM_0860.
37
- * Type definition and class only available internally in SAP and not for the consumers
38
- *
39
- * @returns {Promise} Returns promise which is resolved to instance of Collaboration service.
40
- * @internal
41
- * @static
42
- * @experimental Since 1.108
41
+ * Method that returns the collaboration service object as 'active' on the system.
42
+ * Microsoft Teams is supported as a collaboration option and must be enabled using the communication service SAP_COM_0860.
43
+ * The type definition and class are only available internally and are not intended for external consumers.
44
+ * @returns {Promise} Returns the promise that is resolved to the instance of the collaboration service.
45
+ * @public
43
46
  */
44
47
  sap.suite.ui.commons.collaboration.ServiceContainer.getServiceAsync = function () {
45
48
  if (oServicePromise) {
@@ -10,9 +10,8 @@ sap.ui.define([
10
10
  "sap/base/security/URLListValidator",
11
11
  "./CollaborationHelper",
12
12
  "sap/suite/ui/commons/collaboration/BaseHelperService",
13
- 'sap/ui/performance/trace/FESRHelper',
14
13
  'sap/ui/core/Element'
15
- ], function (Log, Core, URLListValidator, CollaborationHelper, BaseHelperService, FESRHelper, Element) {
14
+ ], function (Log, Core, URLListValidator, CollaborationHelper, BaseHelperService, Element) {
16
15
  "use strict";
17
16
 
18
17
  /**
@@ -29,11 +28,10 @@ sap.ui.define([
29
28
  /**
30
29
  * sTeamsAppID is hardcoded as of now, will be changed when app is published at org level.
31
30
  */
32
- var COLLABORATION_MSTEAMS_APPID = '7e4759cc-15a7-4f18-8de5-19d1273e6ca3';
31
+ var COLLABORATION_MSTEAMS_APPID = 'db5b69c6-0430-4ae1-8d6e-a65c2220b50c';
33
32
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.TeamsHelperService");
34
33
 
35
34
  var oResourceBundle = Core.getLibraryResourceBundle("sap.suite.ui.commons");
36
- var oElement = new Element();
37
35
 
38
36
  /**
39
37
  * Gives list of all Collaboration Options
@@ -60,7 +58,8 @@ sap.ui.define([
60
58
  aOptions.push({
61
59
  "text": oResourceBundle.getText("COLLABORATION_MSTEAMS_CHAT"),
62
60
  "key": "COLLABORATION_MSTEAMS_CHAT",
63
- "icon": "sap-icon://post"
61
+ "icon": "sap-icon://post",
62
+ "fesrStepName": "MST:ShareAsLink"
64
63
  });
65
64
  } else {
66
65
  oLogger.info("Share as Chat option is not enabled in the tenant");
@@ -78,7 +77,8 @@ sap.ui.define([
78
77
  aOptions.push({
79
78
  "text": oResourceBundle.getText("COLLABORATION_MSTEAMS_TAB"),
80
79
  "key": "COLLABORATION_MSTEAMS_TAB",
81
- "icon": "sap-icon://image-viewer"
80
+ "icon": "sap-icon://image-viewer",
81
+ "fesrStepName": "MST:ShareAsTab"
82
82
  });
83
83
  } else {
84
84
  oLogger.info("Share as Tab option is not enabled in the tenant");
@@ -116,6 +116,8 @@ sap.ui.define([
116
116
  * @param {Object} oParams Parameter object which contain the information to share
117
117
  * @param {string} oParams.url Url of the application which needs to be shared
118
118
  * @param {string} oParams.appTitle Title of the application which needs to be used while integration
119
+ * @param {string} oParams.subTitle Title of the object page which needs to be used while integration
120
+ * @param {boolean} oParams.minifyUrlForChat Experimental flag. Set to true to minify the Url in chat scenario
119
121
  * @returns {void}
120
122
  * @private
121
123
  * @ui5-restricted
@@ -150,16 +152,14 @@ sap.ui.define([
150
152
  * @param {Object} oParams Parameter object which contain the information to share
151
153
  * @param {string} oParams.url Url of the application which needs to be shared
152
154
  * @param {string} oParams.appTitle Title of the application which needs to be used in the chat message
153
- * @param {boolean} oParams.minifyUrlForChat Experimental flag. Set to true to minify the Url. Freestyle
154
- * applications should not set this flag
155
+ * @param {string} oParams.subTitle Title of the object page which needs to be used in the chat message
156
+ * @param {boolean} oParams.minifyUrlForChat Experimental flag. Set to true to minify the Url.
155
157
  * @returns {void}
156
158
  * @private
157
159
  * @ui5-restricted
158
160
  * @experimental Since 1.108
159
161
  */
160
162
  TeamsHelperService.prototype._shareAsChat = function (oParams) {
161
- // Needed for Telemetry
162
- FESRHelper.setSemanticStepname(oElement, "press", "fe:ShareAsLink");
163
163
  var newWindow = window.open(
164
164
  "",
165
165
  "ms-teams-share-popup",
@@ -186,14 +186,13 @@ sap.ui.define([
186
186
  * @param {Object} oParams Parameter object which contain the information to share
187
187
  * @param {string} oParams.url Url of the application which needs to be shared
188
188
  * @param {string} oParams.appTitle Title of the application which needs to be used in the Tab title
189
+ * @param {string} oParams.subTitle Title of the object page which needs to be used in the Tab title
189
190
  * @returns {void}
190
191
  * @private
191
192
  * @ui5-restricted
192
193
  * @experimental Since 1.108
193
194
  */
194
195
  TeamsHelperService.prototype._shareAsTab = function (oParams) {
195
- // Needed for Telemetry
196
- FESRHelper.setSemanticStepname(oElement, "press", "fe:ShareAsTab");
197
196
  var oUshellContainer = sap.ushell && sap.ushell.Container;
198
197
  var oURLParsing = oUshellContainer && oUshellContainer.getService("URLParsing");
199
198
  var sAppUri = oParams.url;
@@ -224,8 +223,30 @@ sap.ui.define([
224
223
  "mode": "tab"
225
224
  }
226
225
  };
227
- var sURL = "https://teams.microsoft.com/l/entity/" + COLLABORATION_MSTEAMS_APPID + "/home?&context=" + encodeURIComponent(JSON.stringify(oData));
228
- sap.m.URLHelper.redirect(sURL, true);
226
+ this._getApplicationID().then(function(teamsAppId) {
227
+ var sURL = "https://teams.microsoft.com/l/entity/" + teamsAppId + "/home?&context=" + encodeURIComponent(JSON.stringify(oData));
228
+ sap.m.URLHelper.redirect(sURL, true);
229
+ });
230
+ };
231
+
232
+ TeamsHelperService.prototype._getApplicationID = function () {
233
+ var oUshellContainer = sap.ushell && sap.ushell.Container;
234
+ var oURLParsing = oUshellContainer && oUshellContainer.getService("URLParsing");
235
+ return CollaborationHelper._getCurrentUrl().then(function (sCurrentUrl) {
236
+ var sBeforeHashURL = sCurrentUrl.split("#")[0];
237
+ if (sBeforeHashURL.indexOf('?') !== -1) {
238
+ var oParsedUrl = oURLParsing && oURLParsing.parseParameters(sBeforeHashURL.substring(sBeforeHashURL.indexOf('?')));
239
+ if (oParsedUrl &&
240
+ oParsedUrl["sap-collaboration-xx-TeamsAppId"] &&
241
+ oParsedUrl["sap-collaboration-xx-TeamsAppId"][0] &&
242
+ oParsedUrl["sap-collaboration-xx-TeamsAppId"][0].length > 0) {
243
+ return Promise.resolve(oParsedUrl["sap-collaboration-xx-TeamsAppId"][0]);
244
+ }
245
+ return Promise.resolve(COLLABORATION_MSTEAMS_APPID);
246
+ } else {
247
+ return Promise.resolve(COLLABORATION_MSTEAMS_APPID);
248
+ }
249
+ });
229
250
  };
230
251
 
231
252
  TeamsHelperService.prototype._isShareAsTabEnabled = function () {
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  *
23
23
  * @constructor
24
24
  * @alias sap.suite.ui.commons.flexibility.changeHandler.PropertyChangeMapper
25
- * @version 1.108.1
25
+ * @version 1.108.3
26
26
  * @since 1.50
27
27
  * @private
28
28
  */
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.108.1
24
+ * @version 1.108.3
25
25
  * @since 1.67.0
26
26
  *
27
27
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.108.1
26
+ * @version 1.108.3
27
27
  * @since 1.66.0
28
28
  *
29
29
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.108.1
24
+ * @version 1.108.3
25
25
  * @since 1.66.0
26
26
  *
27
27
  * @constructor
@@ -15,7 +15,7 @@ sap.ui.define([
15
15
  * @extends sap.ui.core.Element
16
16
  *
17
17
  * @author SAP SE
18
- * @version 1.108.1
18
+ * @version 1.108.3
19
19
  * @since 1.66.0
20
20
  *
21
21
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.108.1
24
+ * @version 1.108.3
25
25
  * @since 1.66.0
26
26
  *
27
27
  * @constructor
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
19
19
  *
20
20
  * @author SAP SE
21
- * @version 1.108.1
21
+ * @version 1.108.3
22
22
  * @since 1.66.0
23
23
  *
24
24
  * @constructor
@@ -10,7 +10,7 @@ sap.ui.define([
10
10
  * @extends sap.ui.base.Object
11
11
  *
12
12
  * @author SAP SE
13
- * @version 1.108.1
13
+ * @version 1.108.3
14
14
  * @since 1.66.0
15
15
  *
16
16
  * @abstract
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @extends sap.ui.core.Control
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.108.1
45
+ * @version 1.108.3
46
46
  * @since 1.66.0
47
47
  *
48
48
  * @constructor
@@ -124,7 +124,7 @@ sap.ui.define([
124
124
  * @extends sap.ui.core.Control
125
125
  *
126
126
  * @author SAP SE
127
- * @version 1.108.1
127
+ * @version 1.108.3
128
128
  * @since 1.66.0
129
129
  *
130
130
  * @constructor
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.suite.ui.commons.imageeditor.ImageEditorContainer
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.108.1
29
+ * @version 1.108.3
30
30
  * @since 1.68.0
31
31
  *
32
32
  * @constructor
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.108.1
25
+ * @version 1.108.3
26
26
  * @since 1.66.0
27
27
  *
28
28
  * @constructor
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.108.1
19
+ * @version 1.108.3
20
20
  * @since 1.66.0
21
21
  *
22
22
  * @constructor
@@ -185,7 +185,7 @@
185
185
  "sap.suite.ui.commons.TargetFilterMeasureColumn",
186
186
  "sap.suite.ui.commons.AriaProperties"
187
187
  ],
188
- version: "1.108.1",
188
+ version: "1.108.3",
189
189
  extensions: {
190
190
  flChangeHandlers: {
191
191
  "sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
@@ -472,7 +472,7 @@ CFP_DATA_LOADING_TEXT=\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u0
472
472
  CFP_BUTTON_OK=\u0645\u0648\u0627\u0641\u0642
473
473
 
474
474
  COLLABORATION_MSTEAMS_SHARE=Microsoft Teams
475
- COLLABORATION_MSTEAMS_CHAT=As Chat
476
- COLLABORATION_MSTEAMS_TAB=As Tab
477
- COLLABORATION_MSTEAMS_TAB_SINGLE=Tab to Microsoft Teams
478
- COLLABORATION_MSTEAMS_CHAT_SINGLE=Chat in Microsoft Teams
475
+ COLLABORATION_MSTEAMS_CHAT=\u0643\u0645\u062D\u0627\u062F\u062B\u0629
476
+ COLLABORATION_MSTEAMS_TAB=\u0643\u0639\u0644\u0627\u0645\u0629 \u062A\u0628\u0648\u064A\u0628
477
+ COLLABORATION_MSTEAMS_TAB_SINGLE=\u062A\u0628\u0648\u064A\u0628
478
+ COLLABORATION_MSTEAMS_CHAT_SINGLE=\u0645\u062D\u0627\u062F\u062B\u0629MicrosoftTeams
@@ -472,7 +472,7 @@ CFP_DATA_LOADING_TEXT=\u0417\u0430\u0440\u0435\u0436\u0434\u0430\u043D\u0435...
472
472
  CFP_BUTTON_OK=\u041E\u041A
473
473
 
474
474
  COLLABORATION_MSTEAMS_SHARE=Microsoft Teams
475
- COLLABORATION_MSTEAMS_CHAT=As Chat
476
- COLLABORATION_MSTEAMS_TAB=As Tab
477
- COLLABORATION_MSTEAMS_TAB_SINGLE=Tab to Microsoft Teams
478
- COLLABORATION_MSTEAMS_CHAT_SINGLE=Chat in Microsoft Teams
475
+ COLLABORATION_MSTEAMS_CHAT=\u041A\u0430\u0442\u043E \u0447\u0430\u0442
476
+ COLLABORATION_MSTEAMS_TAB=\u041A\u0430\u0442\u043E \u0442\u0430\u0431
477
+ COLLABORATION_MSTEAMS_TAB_SINGLE=\u0422\u0430\u0431 \u0432 MS Teams
478
+ COLLABORATION_MSTEAMS_CHAT_SINGLE=\u0427\u0430\u0442 \u0432 MS Teams