@sapui5/sap.suite.ui.commons 1.124.0 → 1.124.1
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 +1 -1
- 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/collaboration/BaseHelperService.js +2 -1
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +3 -3
- 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/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/src/sap/suite/ui/commons/windowmessages/CollaborationMessageConsumer.js +69 -0
package/package.json
CHANGED
|
@@ -76,10 +76,11 @@ sap.ui.define([
|
|
|
76
76
|
/**
|
|
77
77
|
* Enables the Microsoft Teams collaboration functionality by providing a contact quick view with the options to start a message, audio call or video call
|
|
78
78
|
* @param {string} sEmail Provides the email of the contact to be used for the communication using Microsoft Teams
|
|
79
|
+
* @param {string} oParams Parameter object which contains the information to be shared
|
|
79
80
|
* @returns {object} Instance of the contact quick view providing the data for the collaboration functionality
|
|
80
81
|
* @public
|
|
81
82
|
*/
|
|
82
|
-
BaseHelperService.prototype.
|
|
83
|
+
BaseHelperService.prototype.enableContactsCollaboration = function (sEmail, oParams) {
|
|
83
84
|
return {};
|
|
84
85
|
};
|
|
85
86
|
|
|
@@ -534,7 +534,7 @@ sap.ui.define([
|
|
|
534
534
|
* @private
|
|
535
535
|
*/
|
|
536
536
|
|
|
537
|
-
TeamsHelperService.prototype.enableContactsCollaboration = async function (sEmail) {
|
|
537
|
+
TeamsHelperService.prototype.enableContactsCollaboration = async function (sEmail, oParams) {
|
|
538
538
|
const isTeamMode = await CollaborationHelper.isTeamsModeActive();
|
|
539
539
|
const isContactServiceAvailable = await CollaborationContactInfoHelper.fetchServiceStatus();
|
|
540
540
|
if (sEmail && isContactServiceAvailable.value && isContactServiceAvailable.value && isContactServiceAvailable.value[0].FetchContacts === "Active") {
|
|
@@ -553,7 +553,7 @@ sap.ui.define([
|
|
|
553
553
|
if (!this.oContactHelper) {
|
|
554
554
|
this.oContactHelper = new ContactHelper();
|
|
555
555
|
}
|
|
556
|
-
return this.oContactHelper.loadMinimalContactPopover(sEmail);
|
|
556
|
+
return this.oContactHelper.loadMinimalContactPopover(sEmail, oParams);
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
|
|
@@ -761,7 +761,7 @@ sap.ui.define([
|
|
|
761
761
|
this._shareSummary(oShareData);
|
|
762
762
|
}
|
|
763
763
|
} else if (oOption.key === "COLLABORATION_POPOVER_MAIL") {
|
|
764
|
-
|
|
764
|
+
sap.m.URLHelper.triggerEmail(null, oData.title && oData.title.trim() !== "" ? oData.title: null, oData.data);
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
187
187
|
"sap.suite.ui.commons.AriaProperties"
|
|
188
188
|
],
|
|
189
|
-
version: "1.124.
|
|
189
|
+
version: "1.124.1",
|
|
190
190
|
extensions: {
|
|
191
191
|
flChangeHandlers: {
|
|
192
192
|
"sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
SAP UI development toolkit for HTML5 (SAPUI5)
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
sap.ui.define([
|
|
9
|
+
"sap/base/Log"
|
|
10
|
+
], function (Log) {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
let oLogger = Log.getLogger("sap.suite.ui.commons.windowmessages.CollaborationMessageConsumer");
|
|
14
|
+
let oCollaborationProviderConfig;
|
|
15
|
+
let fnResolve;
|
|
16
|
+
|
|
17
|
+
const CLIENT_ID = "sap-suite-ui-commons-collaboration-client-appruntime";
|
|
18
|
+
const CHANNEL_ID = "collaboration-channel";
|
|
19
|
+
var MSG_NAME = "get-provider-config";
|
|
20
|
+
const SUBSCRIBED_CHANNELS = [
|
|
21
|
+
{
|
|
22
|
+
channelId: CHANNEL_ID,
|
|
23
|
+
version: "1.0"
|
|
24
|
+
}
|
|
25
|
+
];
|
|
26
|
+
const TARGET_CLIENT_IDS = ["sap-suite-ui-commons-collaboration-message-broker"]; //Id of the client from where to receive the provider config
|
|
27
|
+
|
|
28
|
+
var fnMessageCallback = function(sClientId, sChannelId, sMessageName, data) {
|
|
29
|
+
oLogger.info("Message Received from CLIENT_ID: " + sClientId + " on CHANNEL_ID: " + sChannelId);
|
|
30
|
+
|
|
31
|
+
//verify that the message sent is the one we support
|
|
32
|
+
if (sMessageName === MSG_NAME) {
|
|
33
|
+
oCollaborationProviderConfig = data;
|
|
34
|
+
fnResolve(oCollaborationProviderConfig);
|
|
35
|
+
} else {
|
|
36
|
+
oLogger.info("Message: '" + sMessageName + "' is not supported");
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
return {
|
|
42
|
+
getProviderConfiguration: function () {
|
|
43
|
+
return new Promise(function(resolve) {
|
|
44
|
+
if (oCollaborationProviderConfig) {
|
|
45
|
+
resolve(oCollaborationProviderConfig);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
fnResolve = resolve;
|
|
50
|
+
// Register & Request for the provider configuration
|
|
51
|
+
const UshellContainer = sap.ui.require("sap/ushell/Container");
|
|
52
|
+
if (!UshellContainer) {
|
|
53
|
+
oLogger.info("UShell Container instance doesn't exist");
|
|
54
|
+
oCollaborationProviderConfig = {};
|
|
55
|
+
resolve(oCollaborationProviderConfig);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
UshellContainer.getServiceAsync("MessageBroker").then(function (oMessageBrokerService) {
|
|
60
|
+
oMessageBrokerService.connect(CLIENT_ID).then(function() {
|
|
61
|
+
oLogger.info("Client ID: " + CLIENT_ID + " is connected successfully");
|
|
62
|
+
oMessageBrokerService.subscribe(CLIENT_ID, SUBSCRIBED_CHANNELS, fnMessageCallback, Function.prototype);
|
|
63
|
+
oMessageBrokerService.publish(CHANNEL_ID, CLIENT_ID, Date.now().toString(), MSG_NAME, TARGET_CLIENT_IDS);
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|