@sapui5/sap.suite.ui.commons 1.140.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.
- 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 +13 -2
- 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/TimelineRenderManager.js +25 -13
- package/src/sap/suite/ui/commons/collaboration/BaseHelperService.js +12 -12
- package/src/sap/suite/ui/commons/collaboration/CollaborationCardHelper.js +6 -5
- package/src/sap/suite/ui/commons/collaboration/CollaborationContactInfoHelper.js +15 -15
- package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +94 -76
- package/src/sap/suite/ui/commons/collaboration/CollaborationManagerService.js +41 -41
- package/src/sap/suite/ui/commons/collaboration/ContactHelper.js +288 -286
- package/src/sap/suite/ui/commons/collaboration/ServiceContainer.js +33 -33
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +296 -149
- package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component-preload.js +2 -2
- package/src/sap/suite/ui/commons/collaboration/flpplugins/msplugin/Component.js +11 -13
- 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/package.json
CHANGED
|
@@ -134,7 +134,7 @@ sap.ui.define([
|
|
|
134
134
|
* @extends sap.ui.core.Control
|
|
135
135
|
*
|
|
136
136
|
* @author SAP SE
|
|
137
|
-
* @version 1.
|
|
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
|
-
|
|
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) {
|
|
@@ -801,23 +801,35 @@ sap.ui.define([
|
|
|
801
801
|
});
|
|
802
802
|
|
|
803
803
|
this._objects.register("filterMessageText", function () {
|
|
804
|
-
|
|
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
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
66
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
120
|
+
}).then(function(oResponse) {
|
|
121
121
|
return oResponse.json();
|
|
122
122
|
});
|
|
123
|
-
});
|
|
123
|
+
});
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
return CollaborationContactInfoHelper;
|