@sapui5/sap.suite.ui.commons 1.120.0 → 1.120.2
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/CloudFileInfo.js +5 -1
- package/src/sap/suite/ui/commons/CloudFilePicker.js +5 -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/collaboration/BaseHelperService.js +28 -9
- package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +4 -4
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +46 -26
- 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.properties +9 -9
- 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
|
@@ -62,7 +62,11 @@ sap.ui.define([
|
|
|
62
62
|
/**
|
|
63
63
|
* Indicate if an action is a allowed or not
|
|
64
64
|
*/
|
|
65
|
-
isDocumentCreationAllowed : {type : "boolean", group : "Data"}
|
|
65
|
+
isDocumentCreationAllowed : {type : "boolean", group : "Data"},
|
|
66
|
+
/**
|
|
67
|
+
* Human Content type of the file share instance.
|
|
68
|
+
*/
|
|
69
|
+
fileShareItemHumanContentType: {type : "string", group : "Data"}
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
});
|
|
@@ -118,7 +118,7 @@ sap.ui.define([
|
|
|
118
118
|
* @class
|
|
119
119
|
* @public
|
|
120
120
|
* @internal
|
|
121
|
-
* @version 1.120.
|
|
121
|
+
* @version 1.120.2
|
|
122
122
|
*/
|
|
123
123
|
var CloudFilePicker = Dialog.extend("sap.suite.ui.commons.CloudFilePicker", {
|
|
124
124
|
metadata: {
|
|
@@ -1252,6 +1252,7 @@ sap.ui.define([
|
|
|
1252
1252
|
oCloudFileInfo.setFileShareItemContentType(oValue.FileShareItemContentType);
|
|
1253
1253
|
oCloudFileInfo.setFileShareItemContentSize(oValue.FileShareItemContentSize);
|
|
1254
1254
|
oCloudFileInfo.setFileShareItemContentLink(oValue.FileShareItemContentLink);
|
|
1255
|
+
oCloudFileInfo.setFileShareItemHumanContentType(oValue.FileShareItemHumanContentType);
|
|
1255
1256
|
return oCloudFileInfo;
|
|
1256
1257
|
};
|
|
1257
1258
|
|
|
@@ -1299,6 +1300,9 @@ sap.ui.define([
|
|
|
1299
1300
|
oCloudFileInfo.setIsDocumentCreationAllowed(
|
|
1300
1301
|
oContext.getObject("isDocumentCreationAllowed")
|
|
1301
1302
|
);
|
|
1303
|
+
oCloudFileInfo.setFileShareItemHumanContentType(
|
|
1304
|
+
oContext.getObject("FileShareItemHumanContentType")
|
|
1305
|
+
);
|
|
1302
1306
|
|
|
1303
1307
|
return oCloudFileInfo;
|
|
1304
1308
|
};
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Triggers the 'Share' operation
|
|
51
51
|
*
|
|
52
52
|
* @param {Object} oOption JSON object of collaboration option that is clicked
|
|
53
53
|
* @param {Object} oParams Parameter object which contains the information to be shared
|
|
@@ -55,8 +55,8 @@ sap.ui.define([
|
|
|
55
55
|
* @param {string} oParams.appTitle Title of the application which needs to be used during the integration
|
|
56
56
|
* @param {string} oParams.subTitle Title of the object page which needs to be used during the integration
|
|
57
57
|
* @param {boolean} oParams.minifyUrlForChat Set the flag to 'true' to minimize the URL
|
|
58
|
-
* @param {Object} oParams.cardManifest
|
|
59
|
-
* @param {string} oParams.cardId ID of the
|
|
58
|
+
* @param {Object} oParams.cardManifest Adaptive card json for a given instance of the object page used for the ‘Share as Card’ option
|
|
59
|
+
* @param {string} oParams.cardId ID of the card that needs to be stored and is constructed from SemanticObject_Action
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @public
|
|
62
62
|
*/
|
|
@@ -64,18 +64,37 @@ sap.ui.define([
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
* Checks if collaboration with contacts is supported in
|
|
67
|
+
* Checks if collaboration with contacts is supported in Microsoft Teams
|
|
68
68
|
*
|
|
69
|
-
* @returns {boolean} A
|
|
70
|
-
* @
|
|
69
|
+
* @returns {boolean} A Boolean that determines whether or not the collaboration with contacts is supported in Microsoft Teams
|
|
70
|
+
* @public
|
|
71
71
|
*/
|
|
72
72
|
BaseHelperService.prototype.isContactsCollaborationSupported = function () {
|
|
73
73
|
return false;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
|
+
/**
|
|
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
|
+
* @param {string} sEmail Provides the email of the contact to be used for the communication using Microsoft Teams
|
|
79
|
+
* @returns {object} Instance of the contact quick view providing the data for the collaboration functionality
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
BaseHelperService.prototype.enableMinimalContactsCollaboration = function (sEmail) {
|
|
83
|
+
return {};
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Provides the Microsoft Teams collaboration options for the contact quick view
|
|
88
|
+
* @returns {object} The Microsoft Teams collaboration options
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
BaseHelperService.prototype.getTeamsContactCollabOptions = function () {
|
|
92
|
+
return {};
|
|
93
|
+
};
|
|
94
|
+
|
|
76
95
|
/**
|
|
77
|
-
*
|
|
78
|
-
* @returns {boolean}
|
|
96
|
+
* Checks whether the feature flag is enabled and executes the code for the Adaptive Card Generation accordingly
|
|
97
|
+
* @returns {boolean} If set to true, Adaptive Card Generation is enabled
|
|
79
98
|
* @public
|
|
80
99
|
*/
|
|
81
100
|
BaseHelperService.prototype.isFeatureFlagEnabled = function () {
|
|
@@ -83,4 +102,4 @@ sap.ui.define([
|
|
|
83
102
|
};
|
|
84
103
|
|
|
85
104
|
return BaseHelperService;
|
|
86
|
-
});
|
|
105
|
+
});
|
|
@@ -155,7 +155,7 @@ sap.ui.define(
|
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Determines whether the app is running in the Microsoft Teams application.
|
|
158
|
-
* If the URL parameter "sap-collaboration-teams" is set to true and if the
|
|
158
|
+
* If the URL parameter "sap-collaboration-teams" is set to true and if the sap-ushell-config is set to lean,
|
|
159
159
|
* the method ensures that the application runs in the Microsoft Teams environment
|
|
160
160
|
* @returns {Promise} Return the resolved promise with the data if the conditions are met with 'true', else 'false'
|
|
161
161
|
* @public
|
|
@@ -177,9 +177,9 @@ sap.ui.define(
|
|
|
177
177
|
}
|
|
178
178
|
var bAppStateLean = false;
|
|
179
179
|
if (oParsedUrl &&
|
|
180
|
-
oParsedUrl["
|
|
181
|
-
oParsedUrl["
|
|
182
|
-
oParsedUrl["
|
|
180
|
+
oParsedUrl["sap-ushell-config"] &&
|
|
181
|
+
oParsedUrl["sap-ushell-config"][0] &&
|
|
182
|
+
oParsedUrl["sap-ushell-config"][0] === "lean") {
|
|
183
183
|
bAppStateLean = true;
|
|
184
184
|
}
|
|
185
185
|
return Promise.resolve(bAppRunningInTeams && bAppStateLean);
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
|
|
81
81
|
if (Device.system.desktop) {
|
|
82
82
|
if (oTeamsParams.isShareAsLinkEnabled) {
|
|
83
|
-
if (this._providerConfig.isShareAsLinkEnabled) {
|
|
83
|
+
if (this._providerConfig.isShareAsLinkEnabled === "X") {
|
|
84
84
|
aOptions.push({
|
|
85
85
|
"text": oResourceBundle.getText("COLLABORATION_MSTEAMS_CHAT"),
|
|
86
86
|
"key": "COLLABORATION_MSTEAMS_CHAT",
|
|
@@ -99,7 +99,7 @@ sap.ui.define([
|
|
|
99
99
|
|
|
100
100
|
if (Device.system.desktop) {
|
|
101
101
|
if (oTeamsParams.isShareAsTabEnabled) {
|
|
102
|
-
if (this._providerConfig.isShareAsTabEnabled) {
|
|
102
|
+
if (this._providerConfig.isShareAsTabEnabled === "X") {
|
|
103
103
|
aOptions.push({
|
|
104
104
|
"text": oResourceBundle.getText("COLLABORATION_MSTEAMS_TAB"),
|
|
105
105
|
"key": "COLLABORATION_MSTEAMS_TAB",
|
|
@@ -118,15 +118,34 @@ sap.ui.define([
|
|
|
118
118
|
|
|
119
119
|
if (Device.system.desktop) {
|
|
120
120
|
if (oTeamsParams.isShareAsCardEnabled) {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
const bIsShareAsCardEnabled = this._providerConfig.isShareAsCardEnabled;
|
|
122
|
+
const bIsShareAsTabEnabled = this._providerConfig.isShareAsTabEnabled === "X";
|
|
123
|
+
|
|
124
|
+
const CARD_OBJECT = {
|
|
125
|
+
"text": oResourceBundle.getText("COLLABORATION_MSTEAMS_CARD"),
|
|
126
|
+
"key": "COLLABORATION_MSTEAMS_CARD",
|
|
127
|
+
"icon": "sap-icon://ui-notifications",
|
|
128
|
+
"fesrStepName": "MST:ShareAsCard"
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
switch (bIsShareAsCardEnabled) {
|
|
132
|
+
case "DISABLED":
|
|
133
|
+
oLogger.info("Share as Card option is not enabled in the tenant");
|
|
134
|
+
break;
|
|
135
|
+
case "ENABLED":
|
|
136
|
+
aOptions.push(CARD_OBJECT);
|
|
137
|
+
break;
|
|
138
|
+
case "":
|
|
139
|
+
case undefined:
|
|
140
|
+
if (bIsShareAsTabEnabled) {
|
|
141
|
+
aOptions.push(CARD_OBJECT);
|
|
142
|
+
} else {
|
|
143
|
+
oLogger.info("Share as Card option is not enabled in the tenant");
|
|
144
|
+
}
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
oLogger.info("Share as Card option is not enabled in the tenant");
|
|
148
|
+
break;
|
|
130
149
|
}
|
|
131
150
|
} else {
|
|
132
151
|
oLogger.info("Consumer disable Share as Card option");
|
|
@@ -160,7 +179,7 @@ sap.ui.define([
|
|
|
160
179
|
};
|
|
161
180
|
|
|
162
181
|
/**
|
|
163
|
-
*
|
|
182
|
+
* Triggers the 'Share' operation
|
|
164
183
|
*
|
|
165
184
|
* @param {Object} oOption Option Object/SubObject which is clicked
|
|
166
185
|
* @param {Object} oParams Parameter object which contain the information to share
|
|
@@ -168,8 +187,8 @@ sap.ui.define([
|
|
|
168
187
|
* @param {string} oParams.appTitle Title of the application which needs to be used while integration
|
|
169
188
|
* @param {string} oParams.subTitle Title of the object page which needs to be used while integration
|
|
170
189
|
* @param {boolean} oParams.minifyUrlForChat Set the flag to 'true' to minimize the URL
|
|
171
|
-
* @param {Object} oParams.cardManifest
|
|
172
|
-
* @param {string} oParams.cardId ID of the
|
|
190
|
+
* @param {Object} oParams.cardManifest Adaptive card json for a given instance of the object page used for the ‘Share as Card’ option
|
|
191
|
+
* @param {string} oParams.cardId ID of the card that needs to be stored and is constructed from SemanticObject_Action
|
|
173
192
|
* @returns {void}
|
|
174
193
|
* @private
|
|
175
194
|
* @ui5-restricted
|
|
@@ -244,7 +263,7 @@ sap.ui.define([
|
|
|
244
263
|
if (iIndexOfHash !== -1) {
|
|
245
264
|
var sUriForHeaderLess = sAppUri.substring(0, iIndexOfHash);
|
|
246
265
|
var iIndexOfQuestionMark = sUriForHeaderLess.indexOf('?', 0);
|
|
247
|
-
var sParam = '
|
|
266
|
+
var sParam = 'sap-ushell-config=lean&sap-collaboration-teams=true';
|
|
248
267
|
if (iIndexOfQuestionMark !== -1) {
|
|
249
268
|
sUriForHeaderLess = sUriForHeaderLess.substring(0, iIndexOfQuestionMark + 1) + sParam + '&' + sUriForHeaderLess.substring(iIndexOfQuestionMark + 1);
|
|
250
269
|
} else {
|
|
@@ -478,20 +497,21 @@ sap.ui.define([
|
|
|
478
497
|
};
|
|
479
498
|
|
|
480
499
|
/**
|
|
481
|
-
*
|
|
482
|
-
* @returns {boolean}
|
|
500
|
+
* Checks whether the feature flag is enabled and executes the code for the Adaptive Card Generation accordingly
|
|
501
|
+
* @returns {boolean} If set to true, Adaptive Card Generation is enabled
|
|
483
502
|
* @private
|
|
484
503
|
*/
|
|
485
504
|
TeamsHelperService.prototype.isFeatureFlagEnabled = function () {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
505
|
+
const bIsShareAsCardEnabled = this._providerConfig.isShareAsCardEnabled;
|
|
506
|
+
if (window["sap-ushell-config"] &&
|
|
507
|
+
window["sap-ushell-config"].renderers &&
|
|
508
|
+
window["sap-ushell-config"].renderers.fiori2 &&
|
|
509
|
+
window["sap-ushell-config"].renderers.fiori2.componentData &&
|
|
510
|
+
window["sap-ushell-config"].renderers.fiori2.componentData.config &&
|
|
511
|
+
window["sap-ushell-config"].renderers.fiori2.componentData.config.sapHorizonEnabled &&
|
|
512
|
+
bIsShareAsCardEnabled === "ENABLED") {
|
|
513
|
+
return true;
|
|
514
|
+
}
|
|
495
515
|
return false;
|
|
496
516
|
};
|
|
497
517
|
|
|
@@ -924,23 +924,23 @@ COLLABORATION_MSTEAMS_CARD_SINGLE=Card in Microsoft Teams
|
|
|
924
924
|
#XMSG: Save Card Error Message
|
|
925
925
|
SAVE_CARD_ERROR=The card couldn't be shared. Please try again later.
|
|
926
926
|
|
|
927
|
-
#XMIT
|
|
927
|
+
#XMIT: Label for Contact Details Section
|
|
928
928
|
POPOVER_CONTACT_INFORMATION=Contact Information
|
|
929
|
-
#XMIT
|
|
929
|
+
#XMIT: Label for Contact Email
|
|
930
930
|
POPOVER_CONTACT_SECTION_EMAIL=E-Mail
|
|
931
|
-
#XMIT
|
|
931
|
+
#XMIT: Label for Contact Phone
|
|
932
932
|
POPOVER_CONTACT_SECTION_PHONE=Phone
|
|
933
|
-
#XMIT
|
|
933
|
+
#XMIT: Label for Contact Mobile
|
|
934
934
|
POPOVER_CONTACT_SECTION_MOBILE=Mobile
|
|
935
|
-
#XMIT
|
|
935
|
+
#XMIT: Label for Contact Company
|
|
936
936
|
POPOVER_CONTACT_SECTION_COMPANY=Company
|
|
937
|
-
#XMIT
|
|
937
|
+
#XMIT: Label for Contact Job Title
|
|
938
938
|
POPOVER_CONTACT_SECTION_JOBTITLE=Job Title
|
|
939
|
-
#XMIT
|
|
939
|
+
#XMIT: Label for Contact Department
|
|
940
940
|
POPOVER_CONTACT_SECTION_DEPARTMENT=Department
|
|
941
|
-
#XMIT
|
|
941
|
+
#XMIT: Label for Contact Office Location
|
|
942
942
|
POPOVER_CONTACT_SECTION_OFFICE_LOCATION=Office Location
|
|
943
|
-
#XMIT
|
|
943
|
+
#XMIT: Label for Contact Send Quick Message
|
|
944
944
|
POPOVER_CONTACT_SEND_MESSAGE=Send a quick message
|
|
945
945
|
|
|
946
946
|
#MyHome Layout Controls
|