@sapui5/sap.suite.ui.commons 1.125.0 → 1.127.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 (169) 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 +14 -13
  12. package/src/sap/suite/ui/commons/MicroProcessFlow.js +2 -2
  13. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  14. package/src/sap/suite/ui/commons/Timeline.js +0 -3
  15. package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +6 -6
  16. package/src/sap/suite/ui/commons/collaboration/CollaborationCardHelper.js +11 -3
  17. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +8 -3
  18. package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +27 -10
  19. package/src/sap/suite/ui/commons/collaboration/ContactPopover.fragment.xml +13 -6
  20. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +20 -18
  21. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  22. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  23. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  24. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  25. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  26. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  27. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  28. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  30. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +2 -2
  31. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  32. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  33. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  34. package/src/sap/suite/ui/commons/library.js +1 -1
  35. package/src/sap/suite/ui/commons/messagebundle.properties +12 -2
  36. package/src/sap/suite/ui/commons/messagebundle_ar.properties +15 -3
  37. package/src/sap/suite/ui/commons/messagebundle_bg.properties +14 -2
  38. package/src/sap/suite/ui/commons/messagebundle_ca.properties +14 -2
  39. package/src/sap/suite/ui/commons/messagebundle_cnr.properties +14 -2
  40. package/src/sap/suite/ui/commons/messagebundle_cs.properties +14 -2
  41. package/src/sap/suite/ui/commons/messagebundle_cy.properties +14 -2
  42. package/src/sap/suite/ui/commons/messagebundle_da.properties +14 -2
  43. package/src/sap/suite/ui/commons/messagebundle_de.properties +14 -2
  44. package/src/sap/suite/ui/commons/messagebundle_el.properties +14 -2
  45. package/src/sap/suite/ui/commons/messagebundle_en.properties +12 -468
  46. package/src/sap/suite/ui/commons/messagebundle_en_GB.properties +14 -2
  47. package/src/sap/suite/ui/commons/messagebundle_en_US_saprigi.properties +12 -8
  48. package/src/sap/suite/ui/commons/messagebundle_es.properties +14 -2
  49. package/src/sap/suite/ui/commons/messagebundle_es_MX.properties +15 -3
  50. package/src/sap/suite/ui/commons/messagebundle_et.properties +14 -2
  51. package/src/sap/suite/ui/commons/messagebundle_fi.properties +14 -2
  52. package/src/sap/suite/ui/commons/messagebundle_fr.properties +14 -2
  53. package/src/sap/suite/ui/commons/messagebundle_fr_CA.properties +14 -2
  54. package/src/sap/suite/ui/commons/messagebundle_hi.properties +14 -2
  55. package/src/sap/suite/ui/commons/messagebundle_hr.properties +14 -2
  56. package/src/sap/suite/ui/commons/messagebundle_hu.properties +14 -2
  57. package/src/sap/suite/ui/commons/messagebundle_id.properties +14 -2
  58. package/src/sap/suite/ui/commons/messagebundle_it.properties +14 -2
  59. package/src/sap/suite/ui/commons/messagebundle_iw.properties +14 -2
  60. package/src/sap/suite/ui/commons/messagebundle_ja.properties +14 -2
  61. package/src/sap/suite/ui/commons/messagebundle_kk.properties +14 -2
  62. package/src/sap/suite/ui/commons/messagebundle_ko.properties +14 -2
  63. package/src/sap/suite/ui/commons/messagebundle_lt.properties +14 -2
  64. package/src/sap/suite/ui/commons/messagebundle_lv.properties +14 -2
  65. package/src/sap/suite/ui/commons/messagebundle_mk.properties +14 -2
  66. package/src/sap/suite/ui/commons/messagebundle_ms.properties +14 -2
  67. package/src/sap/suite/ui/commons/messagebundle_nl.properties +14 -2
  68. package/src/sap/suite/ui/commons/messagebundle_no.properties +14 -2
  69. package/src/sap/suite/ui/commons/messagebundle_pl.properties +14 -2
  70. package/src/sap/suite/ui/commons/messagebundle_pt.properties +14 -2
  71. package/src/sap/suite/ui/commons/messagebundle_pt_PT.properties +14 -2
  72. package/src/sap/suite/ui/commons/messagebundle_ro.properties +14 -2
  73. package/src/sap/suite/ui/commons/messagebundle_ru.properties +14 -2
  74. package/src/sap/suite/ui/commons/messagebundle_sh.properties +113 -101
  75. package/src/sap/suite/ui/commons/messagebundle_sk.properties +14 -2
  76. package/src/sap/suite/ui/commons/messagebundle_sl.properties +14 -2
  77. package/src/sap/suite/ui/commons/messagebundle_sr.properties +14 -2
  78. package/src/sap/suite/ui/commons/messagebundle_sv.properties +15 -3
  79. package/src/sap/suite/ui/commons/messagebundle_th.properties +14 -2
  80. package/src/sap/suite/ui/commons/messagebundle_tr.properties +14 -2
  81. package/src/sap/suite/ui/commons/messagebundle_uk.properties +14 -2
  82. package/src/sap/suite/ui/commons/messagebundle_vi.properties +14 -2
  83. package/src/sap/suite/ui/commons/messagebundle_zh_CN.properties +14 -2
  84. package/src/sap/suite/ui/commons/messagebundle_zh_TW.properties +14 -2
  85. package/src/sap/suite/ui/commons/networkgraph/Graph.js +24 -16
  86. package/src/sap/suite/ui/commons/networkgraph/GraphMap.js +1 -1
  87. package/src/sap/suite/ui/commons/networkgraph/Group.js +6 -1
  88. package/src/sap/suite/ui/commons/networkgraph/KeyboardNavigator.js +9 -2
  89. package/src/sap/suite/ui/commons/networkgraph/Node.js +1 -1
  90. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  91. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  92. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  93. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  94. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  95. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  96. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  97. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  98. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  99. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  100. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  101. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +2 -2
  102. package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
  103. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +2 -2
  104. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +1 -1
  105. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  106. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
  107. package/src/sap/suite/ui/commons/themes/base/CalculationBuilderInput.less +1 -1
  108. package/src/sap/suite/ui/commons/themes/base/CalculationBuilderItem.less +2 -2
  109. package/src/sap/suite/ui/commons/themes/base/NetworkGraph.less +7 -1
  110. package/src/sap/suite/ui/commons/themes/base/TAccount.less +17 -17
  111. package/src/sap/suite/ui/commons/themes/sap_belize_base/NetworkGraph.less +1 -0
  112. package/src/sap/suite/ui/commons/themes/sap_bluecrystal_base/NetworkGraph.less +1 -0
  113. package/src/sap/suite/ui/commons/themes/sap_hcb/base_BusinessCard.less +53 -0
  114. package/src/sap/suite/ui/commons/themes/sap_hcb/base_CalculationBuilder.less +63 -0
  115. package/src/sap/suite/ui/commons/themes/sap_hcb/base_CalculationBuilderExpression.less +113 -0
  116. package/src/sap/suite/ui/commons/themes/sap_hcb/base_CalculationBuilderInput.less +108 -0
  117. package/src/sap/suite/ui/commons/themes/sap_hcb/base_CalculationBuilderItem.less +360 -0
  118. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ChartContainer.less +33 -0
  119. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ChartTile.less +114 -0
  120. package/src/sap/suite/ui/commons/themes/sap_hcb/base_CollaborationPopover.less +89 -0
  121. package/src/sap/suite/ui/commons/themes/sap_hcb/base_DateRangeScroller.less +19 -0
  122. package/src/sap/suite/ui/commons/themes/sap_hcb/base_DateRangeSlider.less +3 -0
  123. package/src/sap/suite/ui/commons/themes/sap_hcb/base_DateRangeSliderInternal.less +53 -0
  124. package/src/sap/suite/ui/commons/themes/sap_hcb/base_FacetOverview.less +72 -0
  125. package/src/sap/suite/ui/commons/themes/sap_hcb/base_FeedItemHeader.less +86 -0
  126. package/src/sap/suite/ui/commons/themes/sap_hcb/base_FeedTile.less +97 -0
  127. package/src/sap/suite/ui/commons/themes/sap_hcb/base_GenericTile2X2.less +149 -0
  128. package/src/sap/suite/ui/commons/themes/sap_hcb/base_HeaderCell.less +67 -0
  129. package/src/sap/suite/ui/commons/themes/sap_hcb/base_HeaderContainer.less +146 -0
  130. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ImageEditor.less +400 -0
  131. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ImageEditorContainer.less +186 -0
  132. package/src/sap/suite/ui/commons/themes/sap_hcb/base_InfoTile.less +172 -0
  133. package/src/sap/suite/ui/commons/themes/sap_hcb/base_InfoTileSize.less +8 -0
  134. package/src/sap/suite/ui/commons/themes/sap_hcb/base_KpiTile.less +73 -0
  135. package/src/sap/suite/ui/commons/themes/sap_hcb/base_LaunchTile.less +26 -0
  136. package/src/sap/suite/ui/commons/themes/sap_hcb/base_LinkActionSheet.less +67 -0
  137. package/src/sap/suite/ui/commons/themes/sap_hcb/base_MicroProcessFlow.less +243 -0
  138. package/src/sap/suite/ui/commons/themes/sap_hcb/base_MonitoringContent.less +82 -0
  139. package/src/sap/suite/ui/commons/themes/sap_hcb/base_MonitoringTile.less +3 -0
  140. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkGraph.less +432 -0
  141. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkGroup.less +314 -0
  142. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkLine.less +239 -0
  143. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkNode.less +833 -0
  144. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NetworkTooltip.less +57 -0
  145. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NoteTaker.less +151 -0
  146. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NoteTakerCard.less +405 -0
  147. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NoteTakerFeeder.less +251 -0
  148. package/src/sap/suite/ui/commons/themes/sap_hcb/base_NumericTile.less +104 -0
  149. package/src/sap/suite/ui/commons/themes/sap_hcb/base_PictureZoomIn.less +46 -0
  150. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ProcessFlow.less +429 -0
  151. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ProcessFlowConnection.less +213 -0
  152. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ProcessFlowConnectionLabel.less +68 -0
  153. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ProcessFlowLaneHeader.less +258 -0
  154. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ProcessFlowNode.less +1163 -0
  155. package/src/sap/suite/ui/commons/themes/sap_hcb/base_SplitButton.less +77 -0
  156. package/src/sap/suite/ui/commons/themes/sap_hcb/base_StatusIndicator.less +164 -0
  157. package/src/sap/suite/ui/commons/themes/sap_hcb/base_TAccount.less +671 -0
  158. package/src/sap/suite/ui/commons/themes/sap_hcb/base_TargetFilter.less +502 -0
  159. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ThingCollection.less +71 -0
  160. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ThreePanelThingViewer.less +191 -0
  161. package/src/sap/suite/ui/commons/themes/sap_hcb/base_TileContent2X2.less +137 -0
  162. package/src/sap/suite/ui/commons/themes/sap_hcb/base_Timeline.less +464 -0
  163. package/src/sap/suite/ui/commons/themes/sap_hcb/base_TimelineItem.less +1164 -0
  164. package/src/sap/suite/ui/commons/themes/sap_hcb/base_UnifiedThingGroup.less +50 -0
  165. package/src/sap/suite/ui/commons/themes/sap_hcb/base_UnifiedThingInspector.less +110 -0
  166. package/src/sap/suite/ui/commons/themes/sap_hcb/base_VerticalNavigationBar.less +100 -0
  167. package/src/sap/suite/ui/commons/themes/sap_hcb/base_ViewRepeater.less +56 -0
  168. package/src/sap/suite/ui/commons/themes/sap_hcb/base_shared.less +5 -0
  169. package/src/sap/suite/ui/commons/themes/sap_hcb/library.source.less +68 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.commons",
3
- "version": "1.125.0",
3
+ "version": "1.127.0",
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.125.0</version>
10
+ <version>1.127.0</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.125.0
22
+ * @version 1.127.0
23
23
  * @since 1.65.0
24
24
  *
25
25
  * @constructor
@@ -134,7 +134,7 @@ sap.ui.define([
134
134
  * @extends sap.ui.core.Control
135
135
  *
136
136
  * @author SAP SE
137
- * @version 1.125.0
137
+ * @version 1.127.0
138
138
  * @since 1.56.0
139
139
  *
140
140
  * @constructor
@@ -148,7 +148,7 @@ sap.ui.define([
148
148
  * @extends sap.ui.core.Control
149
149
  *
150
150
  * @author SAP SE
151
- * @version 1.125.0
151
+ * @version 1.127.0
152
152
  * @since 1.56.0
153
153
  *
154
154
  * @constructor
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @extends sap.ui.core.Control
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.125.0
29
+ * @version 1.127.0
30
30
  * @since 1.56.0
31
31
  *
32
32
  * @constructor
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Control
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.125.0
25
+ * @version 1.127.0
26
26
  * @since 1.60.0
27
27
  *
28
28
  * @constructor
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @extends sap.ui.core.Control
40
40
  *
41
41
  * @author SAP SE
42
- * @version 1.125.0
42
+ * @version 1.127.0
43
43
  * @since 1.56.0
44
44
  *
45
45
  * @constructor
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.base.ManagedObject
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.125.0
24
+ * @version 1.127.0
25
25
  * @since 1.56.0
26
26
  *
27
27
  * @constructor
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.ui.core.Control
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.125.0
26
+ * @version 1.127.0
27
27
  * @since 1.56.0
28
28
  *
29
29
  * @constructor
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * @class
119
119
  * @public
120
120
  * @internal
121
- * @version 1.125.0
121
+ * @version 1.127.0
122
122
  */
123
123
  var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
124
124
  metadata: {
@@ -302,7 +302,6 @@ sap.ui.define([
302
302
  if (!oModel && sServiceURL) {
303
303
  oModel = new ODataModel({
304
304
  serviceUrl: sServiceURL,
305
- synchronizationMode: "None",
306
305
  earlyRequests: true
307
306
  });
308
307
  }
@@ -367,8 +366,7 @@ sap.ui.define([
367
366
  ]
368
367
  });
369
368
  this.oTableControl.setNoData(oMessage);
370
- } else {
371
- if (oEvent.getSource() && oEvent.getSource().getContexts() && oEvent.getSource().getContexts().length) {
369
+ } else if (oEvent.getSource() && oEvent.getSource().getContexts() && oEvent.getSource().getContexts().length) {
372
370
  var sPath = oEvent.getSource().getContexts()[0].sPath;
373
371
  var sKey = sPath.split(/[']/)[1];
374
372
  this.oSelectControl.setSelectedKey(sKey);
@@ -377,7 +375,6 @@ sap.ui.define([
377
375
  }.bind(this));
378
376
  this._loadFileShareRootFolder(this.oSelectControl.getSelectedKey());
379
377
  }
380
- }
381
378
  }.bind(this)
382
379
  },
383
380
  template: new Item({
@@ -454,6 +451,13 @@ sap.ui.define([
454
451
  CloudFilePicker.prototype._createTableContent = function () {
455
452
  var sFilePickerType = this.getFilePickerType();
456
453
  var sFileSelectionMode = this.getSelectionMode();
454
+ var oMessage = new IllustratedMessage({
455
+ illustrationType: IllustratedMessageType.SearchFolder,
456
+ illustrationSize: IllustratedMessageSize.Spot,
457
+ enableVerticalResponsiveness: true,
458
+ title: oResourceBundle.getText("CFP_EMPTY_FOLDER_TEXT"),
459
+ description: oResourceBundle.getText("CFP_EMPTY_FOLDER_DESCRIPTION")
460
+ });
457
461
  this.oNewFolderButton = new Button({
458
462
  text: oResourceBundle.getText("CFP_TITLE_NEWFOLDER"),
459
463
  type: ButtonType.Transparent,
@@ -590,8 +594,7 @@ sap.ui.define([
590
594
  ],
591
595
  events:{
592
596
  dataReceived: function () {
593
- this.oTableControl.setNoData(null);
594
- this.oTableControl.setNoDataText(oResourceBundle.getText("CFP_NO_DATA_FILESHARE"));
597
+ this.oTableControl.setNoData(oMessage);
595
598
  this.oTableControl.setBusy(false);
596
599
  this.setBusy(false);
597
600
  }.bind(this)
@@ -616,12 +619,10 @@ sap.ui.define([
616
619
  if (sIsDocumentCreationAllowed === "No") {
617
620
  if (oFolderIcons[sFileShareItem]) {
618
621
  return oFolderIcons[sFileShareItem];
622
+ } else if (sFilePickerType !== FilePickerType.Upload) {
623
+ return "sap-icon://locked";
619
624
  } else {
620
- if (sFilePickerType !== FilePickerType.Upload) {
621
- return "sap-icon://locked";
622
- } else {
623
- return "sap-icon://folder-full";
624
- }
625
+ return "sap-icon://folder-full";
625
626
  }
626
627
  } else {
627
628
  return "sap-icon://folder-full";
@@ -1308,4 +1309,4 @@ sap.ui.define([
1308
1309
  };
1309
1310
 
1310
1311
  return CloudFilePicker;
1311
- });
1312
+ });
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.core.Control
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.125.0
50
+ * @version 1.127.0
51
51
  *
52
52
  * @constructor
53
53
  * @public
@@ -187,7 +187,7 @@ sap.ui.define([
187
187
  };
188
188
 
189
189
  MicroProcessFlow.prototype.init = function () {
190
- Theming.attachAppliedOnce(function () {
190
+ Theming.attachApplied(function () {
191
191
  this._bThemeApplied = true;
192
192
  this.invalidate();
193
193
  }.bind(this));
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Control
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.125.0
41
+ * @version 1.127.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -1304,9 +1304,6 @@ sap.ui.define([
1304
1304
  this._iItemCount = oBinding.sOperationMode === "Default" || oBinding.sOperationMode === "Server" ? 0 : this._iItemCount;
1305
1305
  oBinding.getContexts(0, iGrowingThreshold);
1306
1306
  oBindingInfo.length = iGrowingThreshold;
1307
- oBinding.attachEventOnce("dataReceived", jQuery.proxy(function () {
1308
- this.updateAggregation("content");
1309
- }, this));
1310
1307
  } else {
1311
1308
  this.updateAggregation("content");
1312
1309
  }
@@ -77,20 +77,20 @@ sap.ui.define([
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
79
  * @param {string} oParams Parameter object which contains the information to be shared
80
- * @returns {object} Instance of the contact quick view providing the data for the collaboration functionality
80
+ * @returns {Promise} Returns promise resolving to an instance of the contact quick view providing the data for the collaboration functionality
81
81
  * @public
82
82
  */
83
- BaseHelperService.prototype.enableContactsCollaboration = function (sEmail, oParams) {
84
- return {};
83
+ BaseHelperService.prototype.enableContactsCollaboration = async function (sEmail, oParams) {
84
+ return Promise.resolve({});
85
85
  };
86
86
 
87
87
  /**
88
88
  * Provides the Microsoft Teams collaboration options for the contact quick view
89
- * @returns {object} The Microsoft Teams collaboration options
89
+ * @returns {Promise} Returns promise which has the options for teams collaboration
90
90
  * @public
91
91
  */
92
- BaseHelperService.prototype.getTeamsContactCollabOptions = function () {
93
- return {};
92
+ BaseHelperService.prototype.getTeamsContactCollabOptions = async function () {
93
+ return Promise.resolve({});
94
94
  };
95
95
 
96
96
  /**
@@ -5,8 +5,9 @@
5
5
 
6
6
  */
7
7
  sap.ui.define([
8
- "sap/ui/base/Object"
9
- ], function (BaseObject) {
8
+ "sap/ui/base/Object",
9
+ "sap/base/Log",
10
+ ], function (BaseObject, Log) {
10
11
  "use strict";
11
12
 
12
13
  var BASE_URL = "/sap/opu/odata4/sap/aps_ui_card_srv/srvd_a2x/sap/";
@@ -15,6 +16,7 @@ sap.ui.define([
15
16
  var CARD_READ_URL = BASE_URL + "aps_ui_card/0001/" + CARD_ENTITY_NAME;
16
17
  var POST = "POST";
17
18
  var HEAD = "HEAD";
19
+ var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.CollaborationCardHelper");
18
20
 
19
21
  /**
20
22
  * CollaborationCardHelper for service integration functionalities
@@ -49,7 +51,13 @@ sap.ui.define([
49
51
  */
50
52
  CollaborationCardHelper.postCard = function(sCardId, oContent) {
51
53
  return this.fetchCSRFToken().then(function (sCSRFToken) {
52
- var sContent = btoa(JSON.stringify(oContent));
54
+ let sContent = JSON.stringify(oContent);
55
+ try {
56
+ sContent = btoa(JSON.stringify(oContent));
57
+ } catch (e) {
58
+ // Log the error and pass the original content to the API
59
+ oLogger.error("Error while encoding the card content to base64 so original content passed to API: " + e);
60
+ }
53
61
  var sPayload = JSON.stringify({ content: sContent, card_id: sCardId });
54
62
  return fetch(CARD_READ_URL, {
55
63
  method: POST,
@@ -11,7 +11,8 @@ sap.ui.define(
11
11
  var URL_KEY = "sap-url-hash";
12
12
  var PARAM_SAP_CARD_TITLE = "&sap-ui-cardTitle";
13
13
  var PARAM_SAP_STAGEVIEW_HASH = "&sap-stageview-hash";
14
- var PARAM_SAP_CARD_ID = "&sap-ui-xx-cardId";
14
+ var PARAM_SAP_CARD_ID = "&sap-ui-cardId";
15
+ var PARAM_SAP_XX_CARD_ID = "&sap-ui-xx-cardId";
15
16
  var TRANSIENT_KEY = "transient";
16
17
  var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.CollaborationHelper");
17
18
 
@@ -114,8 +115,12 @@ sap.ui.define(
114
115
  var sHash = sCurrentUrl.split(URL_KEY)[1].split('=')[1];
115
116
  if (sCurrentUrl.indexOf(PARAM_SAP_STAGEVIEW_HASH) > 0) {
116
117
  sHash = sHash.split(PARAM_SAP_STAGEVIEW_HASH)[0];
117
- } else if (sCurrentUrl.indexOf(PARAM_SAP_CARD_ID) > 0){
118
- sHash = sHash.split(PARAM_SAP_CARD_ID)[0];
118
+ } else if (sCurrentUrl.indexOf(PARAM_SAP_CARD_ID) > 0 || sCurrentUrl.indexOf(PARAM_SAP_XX_CARD_ID) > 0) {
119
+ if (sCurrentUrl.indexOf(PARAM_SAP_CARD_ID) > 0){
120
+ sHash = sHash.split(PARAM_SAP_CARD_ID)[0];
121
+ } else {
122
+ sHash = sHash.split(PARAM_SAP_XX_CARD_ID)[0];
123
+ }
119
124
  } else if (sCurrentUrl.indexOf(PARAM_SAP_CARD_TITLE) > 0){
120
125
  sHash = sHash.split(PARAM_SAP_CARD_TITLE)[0];
121
126
  }
@@ -18,8 +18,9 @@ sap.ui.define([
18
18
  "sap/ui/core/Core",
19
19
  "sap/ui/model/resource/ResourceModel",
20
20
  "./CollaborationContactInfoHelper",
21
- "sap/ui/performance/trace/FESRHelper"
22
- ], function (Controller, Fragment, JSONModel, mLibrary, Library, Core, ResourceModel, CollaborationContactInfoHelper, FESRHelper) {
21
+ "sap/ui/performance/trace/FESRHelper",
22
+ "sap/ui/core/Element"
23
+ ], function (Controller, Fragment, JSONModel, mLibrary, Library, Core, ResourceModel, CollaborationContactInfoHelper, FESRHelper, Element) {
23
24
  "use strict";
24
25
 
25
26
  var I18_BUNDLE = Library.getResourceBundleFor("sap.suite.ui.commons");
@@ -93,10 +94,7 @@ sap.ui.define([
93
94
  "badgeIcon": oFullProfileData.badgeIcon,
94
95
  "badgeValueState": oFullProfileData.badgeValueState,
95
96
  "badgeTooltip": oFullProfileData.badgeTooltip,
96
- "fesrStepName": "MST:ContactAction",
97
- "callBackHandler": function (oEvent) {
98
- that.handleMSTeamsPress(oEvent);
99
- }
97
+ "fesrStepName": "MST:ContactAction"
100
98
  }]
101
99
  },
102
100
 
@@ -140,6 +138,15 @@ sap.ui.define([
140
138
  this.sEmail = sEmail;
141
139
  this.oParams = oParams;
142
140
  oPopover.setBusy(true);
141
+ var oTntSet = {
142
+ setFamily: "tnt",
143
+ setURI: sap.ui.require.toUrl("sap/tnt/themes/base/illustrations")
144
+ };
145
+ sap.m.IllustrationPool.registerIllustrationSet(oTntSet, false);
146
+ var oJsonModel = new JSONModel({
147
+ "isUserExistsInTeams": true
148
+ });
149
+ this._oContactPopover.setModel(oJsonModel, "userData");
143
150
  this.isDirectCommunicationEnabled = isDirectCommunicationEnabled;
144
151
  this._oContactPopover.setModel(new sap.ui.model.resource.ResourceModel({ bundle: I18_BUNDLE }), "i18n");
145
152
  return oPopover;
@@ -179,10 +186,15 @@ sap.ui.define([
179
186
  this.getFullProfileByEmail(this.sEmail).then(function (data) {
180
187
  that._oContactPopover.setBusy(false);
181
188
  if (data && data.mail === "") {
182
- that._oContactPopover.close();
183
- mLibrary.URLHelper.triggerEmail(that.sEmail, that.oParams);
189
+ data.isUserExistsInTeams = false;
190
+ data.mail = that.sEmail;
191
+ data.params = that.oParams;
192
+ that._oContactPopover.setInitialFocus(Element.getElementById("mail"));
193
+ } else {
194
+ data.isUserExistsInTeams = true;
195
+ data.isDirectCommunicationEnabled = !!that.isDirectCommunicationEnabled;
196
+ that._oContactPopover.setInitialFocus(Element.getElementById("avatar"));
184
197
  }
185
- data.isDirectCommunicationEnabled = !!that.isDirectCommunicationEnabled;
186
198
  var oJsonModel = new JSONModel(data);
187
199
  oJsonModel.setData(data);
188
200
  that._oContactPopover.setModel(oJsonModel, "userData");
@@ -190,6 +202,11 @@ sap.ui.define([
190
202
  });
191
203
  },
192
204
 
205
+ afterContinue: function () {
206
+ var sUrl = this.formatUri(this.sEmail, this.oParams);
207
+ mLibrary.URLHelper.redirect(sUrl, true);
208
+ },
209
+
193
210
  /**
194
211
  * Provide avatar and badge proprty based on Contact status
195
212
  * @param {string} oFullProfileData full information on the contact
@@ -204,7 +221,7 @@ sap.ui.define([
204
221
  } else if (oFullProfileData.activity === "Available") {
205
222
  oFullProfileData.badgeValueState = "Success";
206
223
  oFullProfileData.badgeIcon = "sap-icon://message-success";
207
- oFullProfileData.badgeTooltip = I18_BUNDLE.getText("AVAILABLE");
224
+ oFullProfileData.badgeTooltip = I18_BUNDLE.getText("ONLINE");
208
225
  } else if (oFullProfileData.activity === "Away" || oFullProfileData.activity === "Inactive") {
209
226
  oFullProfileData.badgeValueState = "Warning";
210
227
  oFullProfileData.badgeIcon = "sap-icon://pending";
@@ -6,22 +6,20 @@
6
6
  <Popover
7
7
  class="sapUiContentPadding"
8
8
  placement="Auto"
9
- initialFocus="action"
10
9
  showHeader="false"
11
10
  contentWidth="25rem"
12
11
  afterClose="afterClose"
13
12
  afterOpen="afterOpen">
14
- <VBox>
13
+ <VBox visible="{userData>/isUserExistsInTeams}">
15
14
  <HBox class="sapUiSmallMarginBeginEnd sapUiSmallMarginTopBottom" >
16
- <Avatar src="{= ${userData>/photo} ? ${userData>/photo} : 'sap-icon://person-placeholder' }"
17
- displaySize="M" class="sapUiSmallMarginEnd" displayShape="Circle" press="handleMSTeamsPress" macrodata:email="{userData>/mail}" fesr:press="MST:ContactAction"
18
- macrodata:type="chat" badgeValueState="{userData>/badgeValueState}" badgeTooltip="{userData>/badgeTooltip}" badgeIcon="{userData>/badgeIcon}"/>
15
+ <Avatar id="avatar" src="{= ${userData>/photo} ? ${userData>/photo} : 'sap-icon://person-placeholder' }"
16
+ displaySize="M" class="sapUiSmallMarginEnd" displayShape="Circle" macrodata:email="{userData>/mail}" fesr:press="MST:ContactAction"
17
+ macrodata:type="chat" tooltip="{userData>/badgeTooltip}" badgeValueState="{userData>/badgeValueState}" badgeTooltip="{userData>/badgeTooltip}" badgeIcon="{userData>/badgeIcon}"/>
19
18
  <VBox>
20
19
  <Title text="{userData>/displayname}" level="H3" />
21
20
  <Text text="{userData>/jobtitle}"/>
22
21
  </VBox>
23
22
  </HBox>
24
- <Toolbar width="100%" height="1px" visible="{userData>/isDirectCommunicationEnabled}"/>
25
23
  <Toolbar visible="{userData>/isDirectCommunicationEnabled}">
26
24
  <Title text="{i18n>COLLABORATION_MSTEAMS_SHARE}" level="H5" class="sapUiTinyMarginBegin"/>
27
25
  <ToolbarSpacer/>
@@ -81,5 +79,14 @@
81
79
  </VBox>
82
80
  </VBox>
83
81
  </VBox>
82
+ <HBox class="sapUiTinyMarginTop" visible="{= !${userData>/isUserExistsInTeams}}">
83
+ <IllustratedMessage illustrationType="tnt-NoUsers" illustrationSize="Dialog" title="{i18n>POPOVER_NO_CONTACT_TITLE}"
84
+ description="{i18n>POPOVER_NO_CONTACT_DESCRIPTION}" >
85
+ <additionalContent>
86
+ <Button id="mail" text="{i18n>POPOVER_CONTINUE}" press="afterContinue" type="Emphasized" class="sapUiTinyMarginEnd"/>
87
+ <Button text="{i18n>POPOVER_CANCEL}" press="afterClose"/>
88
+ </additionalContent>
89
+ </IllustratedMessage >
90
+ </HBox>
84
91
  </Popover>
85
92
  </core:FragmentDefinition>
@@ -24,8 +24,9 @@ sap.ui.define([
24
24
  "sap/m/Button",
25
25
  "./CollaborationContactInfoHelper",
26
26
  "sap/m/library",
27
- "sap/m/FlexBox"
28
- ], function (Log, Core, URLListValidator, CollaborationHelper, BaseHelperService, Element, ContactHelper, Device, CollaborationCardHelper, Fragment, MessageBox, Library, Popover, HBox, VBox, MessageStrip, Button, CollaborationContactInfoHelper, sapMLibrary, FlexBox) {
27
+ "sap/m/FlexBox",
28
+ "sap/base/i18n/Localization"
29
+ ], function (Log, Core, URLListValidator, CollaborationHelper, BaseHelperService, Element, ContactHelper, Device, CollaborationCardHelper, Fragment, MessageBox, Library, Popover, HBox, VBox, MessageStrip, Button, CollaborationContactInfoHelper, sapMLibrary, FlexBox, Localization) {
29
30
  "use strict";
30
31
 
31
32
  /**
@@ -55,8 +56,8 @@ sap.ui.define([
55
56
 
56
57
  var oResourceBundle = Library.getResourceBundleFor("sap.suite.ui.commons");
57
58
  var PARAM_SAP_CARD_TITLE = "sap-ui-cardTitle";
58
- var PARAM_SAP_CARD_ID = "sap-ui-xx-cardId";
59
- var PARAM_SAP_CARD_VERSION = "sap-ui-xx-cardVersion";
59
+ var PARAM_SAP_CARD_ID = "sap-ui-cardId";
60
+ var PARAM_SAP_CARD_VERSION = "sap-ui-cardVersion";
60
61
 
61
62
  var oBusyDailog;
62
63
  let iTimeoutId;
@@ -259,10 +260,10 @@ sap.ui.define([
259
260
  if (oParams.minifyUrlForChat) {
260
261
  CollaborationHelper.compactHash(oParams.url, []).then(async function (sShortURL) {
261
262
  var sModifiedUrl = await this._modifyUrlForNavigationContext(oParams.url, sShortURL.url);
262
- newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&href=" + encodeURIComponent(sModifiedUrl);
263
+ newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&preview=false" + "&href=" + encodeURIComponent(sModifiedUrl);
263
264
  }.bind(this));
264
265
  } else {
265
- newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&href=" + encodeURIComponent(oParams.url);
266
+ newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&preview=false" + "&href=" + encodeURIComponent(oParams.url);
266
267
  }
267
268
  };
268
269
 
@@ -370,6 +371,7 @@ sap.ui.define([
370
371
  TeamsHelperService.prototype._shareAsCard = function (oParams) {
371
372
  if (oParams.cardId && oParams.cardId.length > 0 && oParams.cardManifest && this.isFeatureFlagEnabled()) {
372
373
  // Card Id and Card Manifest Passed. It will show busy helper and store card into DB.
374
+ oParams.cardManifest["rtl"]= Localization.getRTL();
373
375
  Fragment.load({
374
376
  name: "sap.suite.ui.commons.collaboration.CollaborationBusyDialog",
375
377
  controller: this,
@@ -537,7 +539,7 @@ sap.ui.define([
537
539
  TeamsHelperService.prototype.enableContactsCollaboration = async function (sEmail, oParams) {
538
540
  const isTeamMode = await CollaborationHelper.isTeamsModeActive();
539
541
  const isContactServiceAvailable = await CollaborationContactInfoHelper.fetchServiceStatus();
540
- if (sEmail && isContactServiceAvailable.value && isContactServiceAvailable.value && isContactServiceAvailable.value[0].FetchContacts === "Active") {
542
+ if (sEmail && isContactServiceAvailable.value && isContactServiceAvailable.value && isContactServiceAvailable.value[0].FetchContacts === "Active") {
541
543
  if (!this.oContactHelper) {
542
544
  this.oContactHelper = new ContactHelper();
543
545
  }
@@ -546,7 +548,7 @@ sap.ui.define([
546
548
  } else {
547
549
  return this.oContactHelper.loadContactPopover(sEmail, oParams);
548
550
  }
549
-
551
+
550
552
  } else if (isTeamMode || !sEmail || this._providerConfig.isDirectCommunicationEnabled !== "ENABLED") {
551
553
  return Promise.reject();
552
554
  } else {
@@ -554,7 +556,7 @@ sap.ui.define([
554
556
  this.oContactHelper = new ContactHelper();
555
557
  }
556
558
  return this.oContactHelper.loadMinimalContactPopover(sEmail, oParams);
557
- }
559
+ }
558
560
  };
559
561
 
560
562
  /**
@@ -591,7 +593,7 @@ sap.ui.define([
591
593
  return this.oContactHelper.getTeamsContactStatus(sEmail);
592
594
  };
593
595
 
594
-
596
+
595
597
 
596
598
  /**
597
599
  * Opens a Popup that helps to share content to teams, mail.
@@ -599,7 +601,7 @@ sap.ui.define([
599
601
  * @param { object } oData Title and data to share
600
602
  * @param { string } oSource The source to which the popover is rendered.
601
603
  * @param { boolean } isLink Indicates the data is a URL or not.
602
- *
604
+ *
603
605
  */
604
606
  TeamsHelperService.prototype.getCollaborationPopover = function(oParams, oData, oSource, isLink) {
605
607
  if(oData.data === undefined || oData.data.trim() === "") {
@@ -642,8 +644,8 @@ sap.ui.define([
642
644
  }
643
645
 
644
646
  /**
645
- *
646
- * @param { object } oData Title and data to share
647
+ *
648
+ * @param { object } oData Title and data to share
647
649
  * @param { array } aOptions Array of available options
648
650
  * @param { boolean } isLink Indicates the data is a URL or not.
649
651
  * @returns Returns the final Popover to the control.
@@ -657,10 +659,10 @@ sap.ui.define([
657
659
  });
658
660
  return oCollaborationPopover;
659
661
  }
660
-
662
+
661
663
  /**
662
664
  * Returns the content of popover in a FlexBox
663
- * @param { object } oData Title and data to share
665
+ * @param { object } oData Title and data to share
664
666
  * @param { array } aOptions Array of available options
665
667
  * @param { boolean } isLink Indicates the data is a URL or not.
666
668
  */
@@ -729,7 +731,7 @@ sap.ui.define([
729
731
  }
730
732
 
731
733
  /**
732
- *
734
+ *
733
735
  * @param { text } sText Text to copy to the cilpboard
734
736
  * Writes the given URL to the clipboard
735
737
  */
@@ -742,8 +744,8 @@ sap.ui.define([
742
744
  }
743
745
 
744
746
  /**
745
- *
746
- * @param { object } oData Title and data to share
747
+ *
748
+ * @param { object } oData Title and data to share
747
749
  * @param { object } oOption Data related to the selected option
748
750
  * @param { boolean } isLink Indicates the data is a URL or not.
749
751
  */
@@ -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.125.0
25
+ * @version 1.127.0
26
26
  * @since 1.50
27
27
  * @private
28
28
  */
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.125.0
31
+ * @version 1.127.0
32
32
  * @since 1.67.0
33
33
  *
34
34
  * @constructor
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.125.0
33
+ * @version 1.127.0
34
34
  * @since 1.66.0
35
35
  *
36
36
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.125.0
31
+ * @version 1.127.0
32
32
  * @since 1.66.0
33
33
  *
34
34
  * @constructor
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.125.0
25
+ * @version 1.127.0
26
26
  * @since 1.66.0
27
27
  *
28
28
  * @constructor
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.125.0
31
+ * @version 1.127.0
32
32
  * @since 1.66.0
33
33
  *
34
34
  * @constructor
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.suite.ui.commons.imageeditor.HistoryItem
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.125.0
28
+ * @version 1.127.0
29
29
  * @since 1.66.0
30
30
  *
31
31
  * @constructor
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.base.Object
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.125.0
20
+ * @version 1.127.0
21
21
  * @since 1.66.0
22
22
  *
23
23
  * @abstract
@@ -50,7 +50,7 @@ sap.ui.define([
50
50
  * @extends sap.ui.core.Control
51
51
  *
52
52
  * @author SAP SE
53
- * @version 1.125.0
53
+ * @version 1.127.0
54
54
  * @since 1.66.0
55
55
  *
56
56
  * @constructor