@sapui5/sap.suite.ui.commons 1.140.0 → 1.142.0

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 (65) 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 +13 -2
  5. package/src/sap/suite/ui/commons/CalculationBuilderExpression.js +11 -7
  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 +12 -6
  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 +21 -21
  12. package/src/sap/suite/ui/commons/MicroProcessFlow.js +2 -2
  13. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +7 -9
  14. package/src/sap/suite/ui/commons/Timeline.js +22 -24
  15. package/src/sap/suite/ui/commons/TimelineItemRenderer.js +12 -2
  16. package/src/sap/suite/ui/commons/TimelineRenderManager.js +25 -13
  17. package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +12 -12
  18. package/src/sap/suite/ui/commons/collaboration/CollaborationCardHelper.js +6 -5
  19. package/src/sap/suite/ui/commons/collaboration/CollaborationContactInfoHelper.js +15 -15
  20. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +94 -76
  21. package/src/sap/suite/ui/commons/collaboration/CollaborationManagerService.js +41 -41
  22. package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +288 -286
  23. package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +33 -33
  24. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +446 -150
  25. package/src/sap/suite/ui/commons/collaboration/UniversalCollaborationBar.js +366 -0
  26. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +6 -3
  27. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +11 -13
  28. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  30. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  31. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  32. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  33. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  34. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  35. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  36. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  37. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  38. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  39. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  40. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  41. package/src/sap/suite/ui/commons/library.js +1 -1
  42. package/src/sap/suite/ui/commons/messagebundle.properties +16 -1
  43. package/src/sap/suite/ui/commons/messagebundle_en.properties +3 -0
  44. package/src/sap/suite/ui/commons/networkgraph/Graph.js +105 -5
  45. package/src/sap/suite/ui/commons/networkgraph/Node.js +33 -11
  46. package/src/sap/suite/ui/commons/networkgraph/util/DragDropManager.js +197 -0
  47. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  48. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  49. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  50. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  51. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  52. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  53. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  54. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  55. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  56. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  57. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  58. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  59. package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
  60. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  61. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
  62. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  63. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
  64. package/src/sap/suite/ui/commons/themes/base/CollaborationPopover.less +29 -1
  65. package/src/sap/suite/ui/commons/themes/base/NetworkGraph.less +5 -0
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  "../windowmessages/CollaborationMessageConsumer",
15
15
  "./CollaborationHelper",
16
16
  "sap/ui/core/Element"
17
- ], function (Log, BaseHelperService, TeamsHelperService, CollaborationManagerService, CollaborationMessageBroker, CollaborationMessageConsumer, CollaborationHelper, Element) {
17
+ ], function(Log, BaseHelperService, TeamsHelperService, CollaborationManagerService, CollaborationMessageBroker, CollaborationMessageConsumer, CollaborationHelper, Element) {
18
18
  "use strict";
19
19
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.ServiceContainer");
20
20
  var oProviderConfiguration;
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  }
38
38
 
39
39
  // Private constructor so that no one could create an instance of the class
40
- function ServiceContainer() {}
40
+ function ServiceContainer() { }
41
41
 
42
42
  /**
43
43
  * Service container to get the collaboration type.
@@ -55,12 +55,12 @@ sap.ui.define([
55
55
  * @returns {Promise<module:sap/suite/ui/commons/collaboration/BaseHelperService>} Returns the promise that is resolved to the instance of the collaboration service.
56
56
  * @public
57
57
  */
58
- oServiceContainer.getServiceAsync = async function () {
58
+ oServiceContainer.getServiceAsync = async function() {
59
59
  const UshellContainer = sap.ui.require("sap/ushell/Container");
60
60
  if (oServicePromise) {
61
61
  return oServicePromise;
62
62
  }
63
- if (UshellContainer && UshellContainer.inAppRuntime()){
63
+ if (UshellContainer && UshellContainer.inAppRuntime()) {
64
64
  oProviderConfiguration = await CollaborationMessageConsumer.getProviderConfiguration();
65
65
  }
66
66
  return fnGetCollaborationType();
@@ -73,7 +73,7 @@ sap.ui.define([
73
73
  * @returns {Promise<{ oTeamsHelperService: module:sap/suite/ui/commons/collaboration/BaseHelperService, oCMHelperService: module:sap/suite/ui/commons/collaboration/BaseHelperService }>} Returns the promise that is resolved to an object containing the helper service and the Collaboration manager service.
74
74
  * @public
75
75
  */
76
- oServiceContainer.getCollaborationServices = async function () {
76
+ oServiceContainer.getCollaborationServices = async function() {
77
77
  var oService = await oServiceContainer.getServiceAsync();
78
78
  var mCollaborationServices = {
79
79
  "oTeamsHelperService": oService,
@@ -90,42 +90,42 @@ sap.ui.define([
90
90
  const bIsActive = await CollaborationHelper.isTeamsModeActive();
91
91
  if (bIsActive) {
92
92
  let nAttempts = 0;
93
- const intervalTime = 1 * 1000; // 1 seccond = 1000, here 1 seccond
94
- // Assuming all the plugins are visible
95
- const oPluginIdsVisibility = {
96
- 'chatButton': true,
97
- 'sap.das.webclientplugin.s4.shellitem': true
98
- }
99
- const interval = setInterval(() => {
100
- nAttempts++;
101
- if (nAttempts > 10) {
102
- // stop the interval after 10 attempts
103
- // this is to avoid the infinite loop
104
- clearInterval(interval);
105
- return;
106
- }
93
+ const intervalTime = 1 * 1000; // 1 seccond = 1000, here 1 seccond
94
+ // Assuming all the plugins are visible
95
+ const oPluginIdsVisibility = {
96
+ 'chatButton': true,
97
+ 'sap.das.webclientplugin.s4.shellitem': true
98
+ };
99
+ const interval = setInterval(() => {
100
+ nAttempts++;
101
+ if (nAttempts > 10) {
102
+ // stop the interval after 10 attempts
103
+ // this is to avoid the infinite loop
104
+ clearInterval(interval);
105
+ return;
106
+ }
107
107
 
108
- Object.keys(oPluginIdsVisibility).forEach(sPluginId => {
109
- const oPluginElement = Element.getElementById(sPluginId);
110
- if (oPluginElement?.getVisible() === true) {
111
- oPluginElement.setVisible(false);
112
- oPluginIdsVisibility[sPluginId] = false;
113
- }
114
- });
108
+ Object.keys(oPluginIdsVisibility).forEach((sPluginId) => {
109
+ const oPluginElement = Element.getElementById(sPluginId);
110
+ if (oPluginElement?.getVisible() === true) {
111
+ oPluginElement.setVisible(false);
112
+ oPluginIdsVisibility[sPluginId] = false;
113
+ }
114
+ });
115
115
 
116
- // check if all the plugins are invisible and end interval
117
- const bAllInvisible = Object.values(oPluginIdsVisibility).every(bVisible => !bVisible);
118
- if (bAllInvisible) {
119
- clearInterval(interval);
120
- }
116
+ // check if all the plugins are invisible and end interval
117
+ const bAllInvisible = Object.values(oPluginIdsVisibility).every((bVisible) => !bVisible);
118
+ if (bAllInvisible) {
119
+ clearInterval(interval);
120
+ }
121
121
  }, intervalTime);
122
122
  }
123
123
  } catch (error) {
124
124
  oLogger.error("Error hiding the plugins in MS Teams", error);
125
125
  }
126
- }
126
+ };
127
127
 
128
- oServiceContainer.setCollaborationType = function (sProvider, oProviderConfig) {
128
+ oServiceContainer.setCollaborationType = function(sProvider, oProviderConfig) {
129
129
  oLogger.info("Collaboration properties are now configured");
130
130
  oServiceContainer.hidePluginsInMSTeams();
131
131