@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.
- package/package.json +1 -1
- package/src/sap/suite/ui/commons/.library +1 -1
- package/src/sap/suite/ui/commons/AriaProperties.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilder.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderFunction.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderGroup.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderItem.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderValidationResult.js +1 -1
- package/src/sap/suite/ui/commons/CalculationBuilderVariable.js +1 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +7 -3
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
- package/src/sap/suite/ui/commons/Timeline.js +1 -1
- package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +34 -37
- package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +11 -8
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +35 -14
- package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
- package/src/sap/suite/ui/commons/library.js +1 -1
- package/src/sap/suite/ui/commons/messagebundle_ar.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_bg.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ca.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_cs.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_cy.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_da.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_de.properties +3 -3
- package/src/sap/suite/ui/commons/messagebundle_el.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_en.properties +2 -2
- package/src/sap/suite/ui/commons/messagebundle_es.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_es_MX.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_et.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_fi.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_fr.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_fr_CA.properties +5 -5
- package/src/sap/suite/ui/commons/messagebundle_hi.properties +5 -5
- package/src/sap/suite/ui/commons/messagebundle_hr.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_hu.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_id.properties +5 -5
- package/src/sap/suite/ui/commons/messagebundle_it.properties +3 -3
- package/src/sap/suite/ui/commons/messagebundle_iw.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ja.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_kk.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ko.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_lt.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_lv.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ms.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_nl.properties +3 -3
- package/src/sap/suite/ui/commons/messagebundle_no.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_pl.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_pt.properties +5 -5
- package/src/sap/suite/ui/commons/messagebundle_pt_PT.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ro.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_ru.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_sh.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_sl.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_sv.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_th.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_tr.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_uk.properties +5 -5
- package/src/sap/suite/ui/commons/messagebundle_vi.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_zh_CN.properties +4 -4
- package/src/sap/suite/ui/commons/messagebundle_zh_TW.properties +5 -5
- package/src/sap/suite/ui/commons/mockserver/mockServer.js +121 -0
- package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
- package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
package/package.json
CHANGED
|
@@ -113,7 +113,7 @@ sap.ui.define([
|
|
|
113
113
|
* @class
|
|
114
114
|
* @public
|
|
115
115
|
* @internal
|
|
116
|
-
* @version 1.108.
|
|
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
|
-
|
|
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);
|
|
@@ -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
|
|
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
|
-
* @
|
|
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
|
|
31
|
-
* @returns {string} This function returns a shortened
|
|
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
|
-
*
|
|
85
|
-
* @returns {Promise}
|
|
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
|
|
99
|
-
* the Avatar icon on the shell
|
|
100
|
-
*
|
|
101
|
-
*
|
|
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
|
|
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
|
|
140
|
-
*
|
|
141
|
-
* method
|
|
142
|
-
* @returns {Promise}
|
|
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
|
|
175
|
-
* @param {string}
|
|
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
|
|
190
|
-
* @returns {boolean}
|
|
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
|
|
199
|
-
* @param {AppState} oAppStateService
|
|
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
|
|
209
|
-
* @param {string} sUrl
|
|
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
|
|
230
|
-
* @param {string} sUrl
|
|
231
|
-
* @returns {string}
|
|
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
|
|
242
|
-
* @returns {string}
|
|
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
|
|
252
|
-
* @param {string} sUrl
|
|
253
|
-
* @param {AppState} oAppStateService
|
|
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
|
-
*
|
|
36
|
-
* collaboration
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
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,
|
|
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 = '
|
|
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 {
|
|
154
|
-
*
|
|
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
|
-
|
|
228
|
-
|
|
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 () {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
186
186
|
"sap.suite.ui.commons.AriaProperties"
|
|
187
187
|
],
|
|
188
|
-
version: "1.108.
|
|
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
|
|
476
|
-
COLLABORATION_MSTEAMS_TAB
|
|
477
|
-
COLLABORATION_MSTEAMS_TAB_SINGLE
|
|
478
|
-
COLLABORATION_MSTEAMS_CHAT_SINGLE
|
|
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
|
|
476
|
-
COLLABORATION_MSTEAMS_TAB
|
|
477
|
-
COLLABORATION_MSTEAMS_TAB_SINGLE
|
|
478
|
-
COLLABORATION_MSTEAMS_CHAT_SINGLE
|
|
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
|