@sapui5/sap.suite.ui.commons 1.139.0 → 1.141.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 (59) 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 +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/ChartContainer.js +0 -1
  12. package/src/sap/suite/ui/commons/CloudFilePicker.js +26 -26
  13. package/src/sap/suite/ui/commons/MicroProcessFlow.js +1 -1
  14. package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
  15. package/src/sap/suite/ui/commons/TimelineRenderManager.js +25 -13
  16. package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +12 -12
  17. package/src/sap/suite/ui/commons/collaboration/CollaborationCardHelper.js +6 -5
  18. package/src/sap/suite/ui/commons/collaboration/CollaborationContactInfoHelper.js +15 -15
  19. package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +124 -97
  20. package/src/sap/suite/ui/commons/collaboration/CollaborationManagerService.js +41 -41
  21. package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +288 -286
  22. package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +33 -33
  23. package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +337 -194
  24. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +3 -3
  25. package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +11 -13
  26. package/src/sap/suite/ui/commons/flexibility/changeHandler/PropertyChangeMapper.js +1 -1
  27. package/src/sap/suite/ui/commons/imageeditor/CropCustomShapeHistoryItem.js +1 -1
  28. package/src/sap/suite/ui/commons/imageeditor/CropEllipseHistoryItem.js +1 -1
  29. package/src/sap/suite/ui/commons/imageeditor/CropRectangleHistoryItem.js +1 -1
  30. package/src/sap/suite/ui/commons/imageeditor/CustomSizeItem.js +1 -1
  31. package/src/sap/suite/ui/commons/imageeditor/FilterHistoryItem.js +1 -1
  32. package/src/sap/suite/ui/commons/imageeditor/FlipHistoryItem.js +1 -1
  33. package/src/sap/suite/ui/commons/imageeditor/HistoryItem.js +1 -1
  34. package/src/sap/suite/ui/commons/imageeditor/ImageEditor.js +1 -1
  35. package/src/sap/suite/ui/commons/imageeditor/ImageEditorContainer.js +1 -1
  36. package/src/sap/suite/ui/commons/imageeditor/ImageEditorResponsiveContainer.js +1 -1
  37. package/src/sap/suite/ui/commons/imageeditor/ResizeHistoryItem.js +1 -1
  38. package/src/sap/suite/ui/commons/imageeditor/RotateHistoryItem.js +1 -1
  39. package/src/sap/suite/ui/commons/library.js +1 -1
  40. package/src/sap/suite/ui/commons/messagebundle.properties +11 -1
  41. package/src/sap/suite/ui/commons/statusindicator/Circle.js +1 -1
  42. package/src/sap/suite/ui/commons/statusindicator/CustomShape.js +1 -1
  43. package/src/sap/suite/ui/commons/statusindicator/DiscreteThreshold.js +1 -1
  44. package/src/sap/suite/ui/commons/statusindicator/FillingOption.js +1 -1
  45. package/src/sap/suite/ui/commons/statusindicator/LibraryShape.js +1 -1
  46. package/src/sap/suite/ui/commons/statusindicator/Path.js +1 -1
  47. package/src/sap/suite/ui/commons/statusindicator/PropertyThreshold.js +1 -1
  48. package/src/sap/suite/ui/commons/statusindicator/Rectangle.js +1 -1
  49. package/src/sap/suite/ui/commons/statusindicator/Shape.js +1 -1
  50. package/src/sap/suite/ui/commons/statusindicator/ShapeGroup.js +1 -1
  51. package/src/sap/suite/ui/commons/statusindicator/SimpleShape.js +1 -1
  52. package/src/sap/suite/ui/commons/statusindicator/StatusIndicator.js +1 -1
  53. package/src/sap/suite/ui/commons/taccount/TAccount.js +57 -6
  54. package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +1 -1
  55. package/src/sap/suite/ui/commons/taccount/TAccountItem.js +4 -3
  56. package/src/sap/suite/ui/commons/taccount/TAccountItemProperty.js +1 -1
  57. package/src/sap/suite/ui/commons/taccount/TAccountPanel.js +1 -1
  58. package/src/sap/suite/ui/commons/themes/base/TAccount.less +28 -5
  59. package/src/sap/suite/ui/commons/windowmessages/CollaborationMessageBroker.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.commons",
3
- "version": "1.139.0",
3
+ "version": "1.141.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.139.0</version>
10
+ <version>1.141.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.139.0
22
+ * @version 1.141.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.139.0
137
+ * @version 1.141.0
138
138
  * @since 1.56.0
139
139
  *
140
140
  * @constructor
@@ -1090,7 +1090,18 @@ sap.ui.define([
1090
1090
  };
1091
1091
 
1092
1092
  CalculationBuilder.prototype._isTokenAllowed = function (sKey) {
1093
- return !this._mDisabledTokens[(sKey || "").toLowerCase()];
1093
+ sKey = (sKey || "").toLowerCase();
1094
+ // Check if the token is a custom function by searching the aggregation
1095
+ var bCustomFunction = this.getFunctions().some(function (oFunction) {
1096
+ return oFunction.getKey().toLowerCase() === sKey;
1097
+ });
1098
+ // If this is a custom function and its key is present in _mDisabledTokens,
1099
+ // allow it (custom functions are not blocked by disabledDefaultTokens)
1100
+ if (bCustomFunction && this._mDisabledTokens[sKey]) {
1101
+ return true;
1102
+ }
1103
+ // For all other cases, block if present in _mDisabledTokens
1104
+ return !this._mDisabledTokens[sKey];
1094
1105
  };
1095
1106
 
1096
1107
  CalculationBuilder.prototype.setDisabledDefaultTokens = function (sValue) {
@@ -148,7 +148,7 @@ sap.ui.define([
148
148
  * @extends sap.ui.core.Control
149
149
  *
150
150
  * @author SAP SE
151
- * @version 1.139.0
151
+ * @version 1.141.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.139.0
29
+ * @version 1.141.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.139.0
25
+ * @version 1.141.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.139.0
42
+ * @version 1.141.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.139.0
24
+ * @version 1.141.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.139.0
26
+ * @version 1.141.0
27
27
  * @since 1.56.0
28
28
  *
29
29
  * @constructor
@@ -901,7 +901,6 @@ sap.ui.define([
901
901
  }
902
902
  oButtonIcon = new SegmentedButtonItem({
903
903
  icon: aCharts[i].getIcon(),
904
- type: ButtonType.Transparent,
905
904
  tooltip: aCharts[i].getTitle(),
906
905
  customData: [new CustomData({
907
906
  key: 'chartId',
@@ -33,8 +33,8 @@ sap.ui.define([
33
33
  "sap/m/OverflowToolbar",
34
34
  "sap/m/ToolbarSpacer",
35
35
  "sap/m/Title",
36
- "sap/m/ColumnPopoverSelectListItem",
37
- "sap/m/ColumnHeaderPopover",
36
+ "sap/m/table/columnmenu/ActionItem",
37
+ "sap/m/table/columnmenu/Menu",
38
38
  "sap/ui/core/CustomData",
39
39
  "sap/ui/model/Sorter",
40
40
  "sap/m/SearchField",
@@ -77,8 +77,8 @@ sap.ui.define([
77
77
  OverflowToolbar,
78
78
  ToolbarSpacer,
79
79
  Title,
80
- ColumnPopoverSelectListItem,
81
- ColumnHeaderPopover,
80
+ ActionItem,
81
+ Columnmenu,
82
82
  CustomData,
83
83
  Sorter,
84
84
  SearchField,
@@ -118,7 +118,7 @@ sap.ui.define([
118
118
  * @class
119
119
  * @public
120
120
  * @internal
121
- * @version 1.139.0
121
+ * @version 1.141.0
122
122
  */
123
123
  var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
124
124
  metadata: {
@@ -707,31 +707,31 @@ sap.ui.define([
707
707
  if (sColumnType === "CreatedByUser" || sColumnType === "FileShareItemContentSize" || sColumnType === "FileShareItemContentType") {
708
708
  return;
709
709
  }
710
- var _aSortButton = [
711
- new ColumnPopoverSelectListItem({
712
- icon: "sap-icon://sort-ascending",
713
- action: function() {
714
- this._fHandleSorting(oColumn, true);
715
- }.bind(this)
716
- }),
717
- new ColumnPopoverSelectListItem({
718
- icon: "sap-icon://sort-descending",
719
- action: function() {
720
- this._fHandleSorting(oColumn, false);
721
- }.bind(this)
722
- })
723
- ];
724
- var oHeaderPopOver = new ColumnHeaderPopover({
725
- items: [_aSortButton]
710
+ var oColumnMenu = new Columnmenu({
711
+ items: [
712
+ new ActionItem({
713
+ icon: "sap-icon://sort-ascending",
714
+ press: function() {
715
+ this._fHandleSorting(oColumn, true);
716
+ }.bind(this)
717
+ }),
718
+ new ActionItem({
719
+ icon: "sap-icon://sort-descending",
720
+ press: function() {
721
+ this._fHandleSorting(oColumn, false);
722
+ }.bind(this)
723
+ })
724
+ ]
726
725
  });
727
- oHeaderPopOver.openBy(oColumn);
726
+
727
+ oColumnMenu.openBy(oColumn);
728
728
  }.bind(this));
729
729
 
730
730
  if (this.getFilePickerType() === FilePickerType.Upload && this.getSelectionMode() === SelectionMode.MultiSelect) {
731
731
  var oColumn = new Column({
732
732
  width: "10%",
733
733
  importance: "High"
734
- })
734
+ });
735
735
  this.oTableControl.insertColumn(oColumn, 0);
736
736
  var oTemplate = this.oTableControl.getBindingInfo("items").template;
737
737
  oTemplate.insertCell(
@@ -787,14 +787,14 @@ sap.ui.define([
787
787
  if (oItem.FileShareItemName.includes('(')) {
788
788
  var match = oItem.FileShareItemName.match(regex);
789
789
  var counter = Number(match[0]);
790
- if(counter > fcount) {
790
+ if (counter > fcount) {
791
791
  fcount = counter;
792
792
  }
793
793
  }
794
794
  });
795
795
  if (fcount) {
796
796
  fcount = fcount + 1;
797
- } else{
797
+ } else {
798
798
  fcount = fcount + 2;
799
799
  }
800
800
  oNewFolderInput.setValue(oResourceBundle.getText("CFP_TITLE_NEWFOLDER") + '(' + fcount + ')');
@@ -870,7 +870,7 @@ sap.ui.define([
870
870
  };
871
871
 
872
872
  CloudFilePicker.prototype._checkForDuplicateFileAndFolder = function (sSearchText, sFileShareKey, sDocumentType, sContentType,bNewFolderName) {
873
- if(bNewFolderName) {
873
+ if (bNewFolderName) {
874
874
  var filter = "startswith(FileShareItemName,\'" + sSearchText + "\') and FileShareItemKind eq \'" + sDocumentType + "\'and FileShareItemContentType eq \'" + sContentType + "\'";
875
875
  } else {
876
876
  filter = "FileShareItemName eq \'" + sSearchText + "\'and FileShareItemKind eq \'" + sDocumentType + "\'and FileShareItemContentType eq \'" + sContentType + "\'";
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.core.Control
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.139.0
50
+ * @version 1.141.0
51
51
  *
52
52
  * @constructor
53
53
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Control
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.139.0
41
+ * @version 1.141.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -801,23 +801,35 @@ sap.ui.define([
801
801
  });
802
802
 
803
803
  this._objects.register("filterMessageText", function () {
804
- return new Text(that.getId() + "-filterMessageText", {});
805
- });
804
+ var oText = new Text(that.getId() + "-filterMessageText", {});
805
+ // Configure text to grow and shrink
806
+ oText.setLayoutData(new OverflowToolbarLayoutData({
807
+ shrinkable: true,
808
+ moveToOverflow: false
809
+ }));
810
+ return oText;
811
+ });
806
812
 
807
813
  this._objects.register("filterMessage", function () {
808
814
  var oText = that._objects.getFilterMessageText(),
809
815
  oToolbar, oIcon;
810
-
811
- oIcon = new Icon(that.getId() + "filterMessageIcon", {
812
- src: "sap-icon://decline",
813
- decorative: false,
814
- press: [that._clearFilter, that]
815
- });
816
- oIcon.setTooltip(resourceBundle.getText('TIMELINE_CLEAR_ICN_TOOLTIP'));
817
- oToolbar = new OverflowToolbar(that.getId() + "-filterMessage", {
818
- design: "Info",
819
- content: [oText, new ToolbarSpacer(), oIcon]
820
- });
816
+
817
+ // Configure icon with proper layout data
818
+ oIcon = new Icon(that.getId() + "filterMessageIcon", {
819
+ src: "sap-icon://decline",
820
+ decorative: false,
821
+ press: [that._clearFilter, that]
822
+ });
823
+ oIcon.setTooltip(resourceBundle.getText('TIMELINE_CLEAR_ICN_TOOLTIP'));
824
+ oIcon.setLayoutData(new OverflowToolbarLayoutData({
825
+ shrinkable: false,
826
+ priority: "NeverOverflow"
827
+ }));
828
+
829
+ oToolbar = new OverflowToolbar(that.getId() + "-filterMessage", {
830
+ design: "Info",
831
+ content: [oText, new ToolbarSpacer(), oIcon]
832
+ });
821
833
 
822
834
  oToolbar.addStyleClass("sapSuiteUiCommonsTimelineFilterInfoBar");
823
835
  oToolbar.setHeight("auto");
@@ -6,7 +6,7 @@
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/base/Object"
9
- ], function (BaseObject) {
9
+ ], function(BaseObject) {
10
10
  "use strict";
11
11
 
12
12
  /**
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @public
18
18
  */
19
19
  var BaseHelperService = BaseObject.extend("sap.suite.ui.commons.collaboration.BaseHelperService", {
20
- constructor: function (oProviderConfig) {
20
+ constructor: function(oProviderConfig) {
21
21
  this._providerConfig = oProviderConfig;
22
22
  }
23
23
  });
@@ -69,27 +69,27 @@ sap.ui.define([
69
69
  * @returns {boolean} A Boolean that determines whether or not the collaboration with contacts is supported in Microsoft Teams
70
70
  * @public
71
71
  */
72
- BaseHelperService.prototype.isContactsCollaborationSupported = function () {
72
+ BaseHelperService.prototype.isContactsCollaborationSupported = function() {
73
73
  return false;
74
74
  };
75
75
 
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
79
  * @param {object} oParams Parameter object which contains the information to be shared
80
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 = async function (sEmail, oParams) {
83
+ BaseHelperService.prototype.enableContactsCollaboration = function(sEmail, oParams) {
84
84
  return Promise.resolve({});
85
85
  };
86
86
 
87
- /**
87
+ /**
88
88
  * Provides the Microsoft Teams collaboration options for the contact quick view
89
89
  * @returns {Promise} Returns promise which has the options for teams collaboration
90
90
  * @public
91
91
  */
92
- BaseHelperService.prototype.getTeamsContactCollabOptions = async function () {
92
+ BaseHelperService.prototype.getTeamsContactCollabOptions = function() {
93
93
  return Promise.resolve({});
94
94
  };
95
95
 
@@ -98,7 +98,7 @@ sap.ui.define([
98
98
  * @returns {boolean} If set to true, Adaptive Card Generation is enabled
99
99
  * @public
100
100
  */
101
- BaseHelperService.prototype.isFeatureFlagEnabled = function () {
101
+ BaseHelperService.prototype.isFeatureFlagEnabled = function() {
102
102
  return false;
103
103
  };
104
104
 
@@ -109,11 +109,11 @@ sap.ui.define([
109
109
  * @public
110
110
  */
111
111
 
112
- BaseHelperService.prototype.getTeamsContactStatus = async function (sEmail) {
112
+ BaseHelperService.prototype.getTeamsContactStatus = function(sEmail) {
113
113
  return Promise.resolve({});
114
- }
114
+ };
115
115
 
116
- /**
116
+ /**
117
117
  * Opens a Popup that helps to share content to teams, mail.
118
118
  * @param { object } oParams Optional argument in case consumer wants to influence the options, otherwise pass as undefined
119
119
  * @param { object } oData Title and data to share
@@ -124,7 +124,7 @@ sap.ui.define([
124
124
  */
125
125
  BaseHelperService.prototype.getCollaborationPopover = function(oParams, oData, oSource, isLink, oCollaborationOptionsConfig) {
126
126
 
127
- }
127
+ };
128
128
 
129
129
  return BaseHelperService;
130
130
  });
@@ -6,7 +6,7 @@
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/base/Object",
9
- "sap/base/Log",
9
+ "sap/base/Log"
10
10
  ], function (BaseObject, Log) {
11
11
  "use strict";
12
12
 
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  "sap.suite.ui.commons.collaboration.CollaborationCardHelper"
30
30
  );
31
31
 
32
- CollaborationCardHelper.fetchCSRFToken = function() {
32
+ CollaborationCardHelper.fetchCSRFToken = function () {
33
33
  return fetch(REPO_BASE_URL, {
34
34
  method: HEAD,
35
35
  headers: {
@@ -46,10 +46,11 @@ sap.ui.define([
46
46
 
47
47
  /**
48
48
  * Post Card
49
+ * @param {string} sCardId Card ID
49
50
  * @param {string} oContent Adaptive Card Base64
50
51
  * @returns {object} response
51
52
  */
52
- CollaborationCardHelper.postCard = function(sCardId, oContent) {
53
+ CollaborationCardHelper.postCard = function (sCardId, oContent) {
53
54
  return this.fetchCSRFToken().then(function (sCSRFToken) {
54
55
  let sContent = JSON.stringify(oContent);
55
56
  try {
@@ -62,8 +63,8 @@ sap.ui.define([
62
63
  return fetch(CARD_READ_URL, {
63
64
  method: POST,
64
65
  headers: {
65
- "X-CSRF-Token": sCSRFToken,
66
- "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
66
+ "X-CSRF-Token": sCSRFToken,
67
+ "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
67
68
  },
68
69
  body: sPayload
69
70
  }).then(function (oResponse) {
@@ -6,7 +6,7 @@
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/base/Object"
9
- ], function (BaseObject) {
9
+ ], function(BaseObject) {
10
10
  "use strict";
11
11
 
12
12
  var BASE_URL = "/sap/opu/odata4/sap/aps_ui_contact_srv/srvd_a2x/sap/";
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  headers: {
41
41
  "X-CSRF-Token": "Fetch"
42
42
  }
43
- }).then(function (resposne) {
43
+ }).then(function(resposne) {
44
44
  var token = resposne.headers.get("X-CSRF-Token");
45
45
  if (resposne.ok && token) {
46
46
  return token;
@@ -50,17 +50,17 @@ sap.ui.define([
50
50
  };
51
51
 
52
52
  CollaborationContactInfoHelper.fetchContact = function(sEmail) {
53
- return this.fetchCSRFToken().then(function (sCSRFToken) {
53
+ return this.fetchCSRFToken().then(function(sCSRFToken) {
54
54
  return fetch(CONTACTINFO_URL + "/" + sEmail, {
55
55
  method: GET,
56
56
  headers: {
57
57
  "X-CSRF-Token": sCSRFToken,
58
58
  "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
59
59
  }
60
- }).then(function (oResponse) {
60
+ }).then(function(oResponse) {
61
61
  return oResponse.json();
62
62
  });
63
- });
63
+ });
64
64
  };
65
65
 
66
66
  CollaborationContactInfoHelper.fetchContactCalendar = function(sEmail) {
@@ -69,58 +69,58 @@ sap.ui.define([
69
69
  if (sStartDateTime) {
70
70
  url = CONTACTCALENDAR_URL + "?$filter=(mail eq '" + sEmail + "'&start_datetime eq '" + sStartDateTime.toISOString() + "')";
71
71
  }
72
- return this.fetchCSRFToken().then(function (sCSRFToken) {
72
+ return this.fetchCSRFToken().then(function(sCSRFToken) {
73
73
  return fetch(url, {
74
74
  method: GET,
75
75
  headers: {
76
76
  "X-CSRF-Token": sCSRFToken,
77
77
  "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
78
78
  }
79
- }).then(function (oResponse) {
79
+ }).then(function(oResponse) {
80
80
  return oResponse.json();
81
81
  });
82
- });
82
+ });
83
83
  };
84
84
 
85
85
  CollaborationContactInfoHelper.fetchContactPicture = function(sEmail) {
86
- return this.fetchCSRFToken().then(function (sCSRFToken) {
86
+ return this.fetchCSRFToken().then(function(sCSRFToken) {
87
87
  return fetch(CONTACTIMAGE_URL + "/" + sEmail + "/photo", {
88
88
  method: GET,
89
89
  headers: {
90
90
  "X-CSRF-Token": sCSRFToken
91
91
  }
92
- }).then(function (oResponse) {
92
+ }).then(function(oResponse) {
93
93
  return oResponse.blob();
94
94
  });
95
95
  });
96
96
  };
97
97
 
98
98
  CollaborationContactInfoHelper.fetchContactStatus = function(sId) {
99
- return this.fetchCSRFToken().then(function (sCSRFToken) {
99
+ return this.fetchCSRFToken().then(function(sCSRFToken) {
100
100
  return fetch(CONTACTSTATUS_URL + "?$filter=id eq '" + sId + "'", {
101
101
  method: GET,
102
102
  headers: {
103
103
  "X-CSRF-Token": sCSRFToken,
104
104
  "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
105
105
  }
106
- }).then(function (oResponse) {
106
+ }).then(function(oResponse) {
107
107
  return oResponse.json();
108
108
  });
109
109
  });
110
110
  };
111
111
 
112
112
  CollaborationContactInfoHelper.fetchServiceStatus = function() {
113
- return this.fetchCSRFToken().then(function (sCSRFToken) {
113
+ return this.fetchCSRFToken().then(function(sCSRFToken) {
114
114
  return fetch(CHECKCONTACTSERVICE, {
115
115
  method: GET,
116
116
  headers: {
117
117
  "X-CSRF-Token": sCSRFToken,
118
118
  "content-type": "application/json;odata.metadata=minimal;charset=utf-8"
119
119
  }
120
- }).then(function (oResponse) {
120
+ }).then(function(oResponse) {
121
121
  return oResponse.json();
122
122
  });
123
- });
123
+ });
124
124
  };
125
125
 
126
126
  return CollaborationContactInfoHelper;