@sapui5/sap.suite.ui.commons 1.120.29 → 1.120.30
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/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_fr.properties +2 -2
- 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
|
@@ -505,9 +505,9 @@ POPOVER_CONTACT_SEND_MESSAGE=Envoyer un message
|
|
|
505
505
|
|
|
506
506
|
toDosTitle=T\u00E2ches
|
|
507
507
|
|
|
508
|
-
createdBy=
|
|
508
|
+
createdBy=Auteur de la cr\u00E9ation
|
|
509
509
|
|
|
510
|
-
createdOn=
|
|
510
|
+
createdOn=Date de cr\u00E9ation
|
|
511
511
|
|
|
512
512
|
dueDate=Date d'\u00E9ch\u00E9ance
|
|
513
513
|
|
|
@@ -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
|
+
});
|