@sapui5/sap.suite.ui.commons 1.124.2 → 1.124.3
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/CloudFilePicker.js +1 -1
- package/src/sap/suite/ui/commons/MicroProcessFlow.js +2 -2
- package/src/sap/suite/ui/commons/MicroProcessFlowItem.js +1 -1
- package/src/sap/suite/ui/commons/Timeline.js +0 -3
- package/src/sap/suite/ui/commons/collaboration/CollaborationHelper.js +8 -3
- package/src/sap/suite/ui/commons/collaboration/TeamsHelperService.js +26 -18
- 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 +2 -2
- 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/networkgraph/Graph.js +2 -3
- package/src/sap/suite/ui/commons/networkgraph/Node.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 +2 -2
- package/src/sap/suite/ui/commons/taccount/TAccount.js +1 -1
- package/src/sap/suite/ui/commons/taccount/TAccountGroup.js +2 -2
- 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
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @extends sap.ui.core.Control
|
|
48
48
|
*
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.124.
|
|
50
|
+
* @version 1.124.3
|
|
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.
|
|
190
|
+
Theming.attachApplied(function () {
|
|
191
191
|
this._bThemeApplied = true;
|
|
192
192
|
this.invalidate();
|
|
193
193
|
}.bind(this));
|
|
@@ -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
|
}
|
|
@@ -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-
|
|
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
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
/**
|
|
@@ -52,11 +53,12 @@ sap.ui.define([
|
|
|
52
53
|
*/
|
|
53
54
|
var COLLABORATION_MSTEAMS_APPID = 'db5b69c6-0430-4ae1-8d6e-a65c2220b50c';
|
|
54
55
|
var oLogger = Log.getLogger("sap.suite.ui.commons.collaboration.TeamsHelperService");
|
|
56
|
+
var CARD_URL_PREFIX = "https://saps4hana.azure-api.net/bot/redirect?target-url=";
|
|
55
57
|
|
|
56
58
|
var oResourceBundle = Library.getResourceBundleFor("sap.suite.ui.commons");
|
|
57
59
|
var PARAM_SAP_CARD_TITLE = "sap-ui-cardTitle";
|
|
58
|
-
var PARAM_SAP_CARD_ID = "sap-ui-
|
|
59
|
-
var PARAM_SAP_CARD_VERSION = "sap-ui-
|
|
60
|
+
var PARAM_SAP_CARD_ID = "sap-ui-cardId";
|
|
61
|
+
var PARAM_SAP_CARD_VERSION = "sap-ui-cardVersion";
|
|
60
62
|
|
|
61
63
|
var oBusyDailog;
|
|
62
64
|
let iTimeoutId;
|
|
@@ -259,10 +261,10 @@ sap.ui.define([
|
|
|
259
261
|
if (oParams.minifyUrlForChat) {
|
|
260
262
|
CollaborationHelper.compactHash(oParams.url, []).then(async function (sShortURL) {
|
|
261
263
|
var sModifiedUrl = await this._modifyUrlForNavigationContext(oParams.url, sShortURL.url);
|
|
262
|
-
newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&href=" + encodeURIComponent(sModifiedUrl);
|
|
264
|
+
newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&preview=false" + "&href=" + encodeURIComponent(sModifiedUrl);
|
|
263
265
|
}.bind(this));
|
|
264
266
|
} else {
|
|
265
|
-
newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&href=" + encodeURIComponent(oParams.url);
|
|
267
|
+
newWindow.location = this._providerConfig.shareAsLinkUrl + "?msgText=" + encodeURIComponent(sMessage) + "&preview=false" + "&href=" + encodeURIComponent(oParams.url);
|
|
266
268
|
}
|
|
267
269
|
};
|
|
268
270
|
|
|
@@ -370,6 +372,7 @@ sap.ui.define([
|
|
|
370
372
|
TeamsHelperService.prototype._shareAsCard = function (oParams) {
|
|
371
373
|
if (oParams.cardId && oParams.cardId.length > 0 && oParams.cardManifest && this.isFeatureFlagEnabled()) {
|
|
372
374
|
// Card Id and Card Manifest Passed. It will show busy helper and store card into DB.
|
|
375
|
+
oParams.cardManifest["rtl"]= Localization.getRTL();
|
|
373
376
|
Fragment.load({
|
|
374
377
|
name: "sap.suite.ui.commons.collaboration.CollaborationBusyDialog",
|
|
375
378
|
controller: this,
|
|
@@ -475,7 +478,8 @@ sap.ui.define([
|
|
|
475
478
|
sUrl = sUrl + "&" + PARAM_SAP_CARD_VERSION + "=" + response.version;
|
|
476
479
|
}
|
|
477
480
|
sUrl = sUrl + "&" + PARAM_SAP_CARD_TITLE + "=" + encodeURIComponent(sAppTitle);
|
|
478
|
-
|
|
481
|
+
// add the domain prefix to solve link unfurling issue for systems with different domain patterns
|
|
482
|
+
sUrl = this._providerConfig.shareAsLinkUrl + "?href=" + encodeURIComponent(CARD_URL_PREFIX + sUrl);
|
|
479
483
|
return sUrl;
|
|
480
484
|
};
|
|
481
485
|
|
|
@@ -602,6 +606,10 @@ sap.ui.define([
|
|
|
602
606
|
*
|
|
603
607
|
*/
|
|
604
608
|
TeamsHelperService.prototype.getCollaborationPopover = function(oParams, oData, oSource, isLink) {
|
|
609
|
+
if (oData.data === undefined || oData.data === "") {
|
|
610
|
+
oLogger.info("Popover cannnot be opened without data");
|
|
611
|
+
return;
|
|
612
|
+
}
|
|
605
613
|
var oTeamsParams = {
|
|
606
614
|
isShareAsLinkEnabled: (oParams && typeof oParams.isShareAsLinkEnabled !== 'undefined') ? oParams.isShareAsLinkEnabled : true
|
|
607
615
|
};
|
|
@@ -647,8 +655,8 @@ sap.ui.define([
|
|
|
647
655
|
TeamsHelperService.prototype._getPopover = function(oData,aOptions,isLink) {
|
|
648
656
|
var oCollaborationPopover = new Popover({
|
|
649
657
|
showHeader: false,
|
|
650
|
-
|
|
651
|
-
|
|
658
|
+
placement: oData.placement? oData.placement : "Auto" ,
|
|
659
|
+
enableScrolling: false,
|
|
652
660
|
content: this._getPopoverContent(oData,aOptions,isLink)
|
|
653
661
|
});
|
|
654
662
|
return oCollaborationPopover;
|
|
@@ -680,9 +688,9 @@ sap.ui.define([
|
|
|
680
688
|
}).addStyleClass("sapUiTinyMarginTop").addStyleClass("sapUiTinyMarginBegin");
|
|
681
689
|
|
|
682
690
|
if(oOption.key === "COLLABORATION_POPOVER_TEAMS") {
|
|
683
|
-
button.addStyleClass("sapSuiteUiCollaborationBarMSTeamsButton" + oData.sFormat);
|
|
691
|
+
button.addStyleClass("sapSuiteUiCollaborationBarMSTeamsButton" + (oData.sFormat ? oData.sFormat : "Horizontal"));
|
|
684
692
|
} else {
|
|
685
|
-
button.addStyleClass("sapSuiteUiCollaborationBarEmailButton" + oData.sFormat);
|
|
693
|
+
button.addStyleClass("sapSuiteUiCollaborationBarEmailButton" + (oData.sFormat ? oData.sFormat : "Horizontal"));
|
|
686
694
|
}
|
|
687
695
|
oOptionFBox.addItem(button);
|
|
688
696
|
oMainFBox.addItem(oOptionFBox);
|
|
@@ -702,7 +710,7 @@ sap.ui.define([
|
|
|
702
710
|
}).addStyleClass("sapUiTinyMarginBeginEnd")
|
|
703
711
|
]
|
|
704
712
|
});
|
|
705
|
-
if(oData.sFormat === "Horizontal") {
|
|
713
|
+
if(oData.sFormat === "Horizontal" || oData.sFormat === undefined) {
|
|
706
714
|
oCopyLinkFlexbox.insertItem(
|
|
707
715
|
new MessageStrip({
|
|
708
716
|
text: oResourceBundle.getText("COLLABORATION_POPOVER_MSGSTRIP"),
|
|
@@ -714,11 +722,11 @@ sap.ui.define([
|
|
|
714
722
|
}
|
|
715
723
|
|
|
716
724
|
if (oData.sFormat === "Vertical") {
|
|
717
|
-
oOptionFBox.setHeight(aOptions.length > 1 ? (aOptions.length * 50 +
|
|
718
|
-
oOptionFBox.
|
|
719
|
-
oOptionFBox.addStyleClass("sapUiSmallMarginBottom");
|
|
725
|
+
oOptionFBox.setHeight(aOptions.length > 1 ? (aOptions.length * 50 + 50) + "px" : "120px");
|
|
726
|
+
oOptionFBox.addStyleClass("sapUiSmallMarginBottom").addStyleClass("sapUiTinyMarginEnd");
|
|
720
727
|
} else {
|
|
721
|
-
oOptionFBox.setHeight("
|
|
728
|
+
oOptionFBox.setHeight("110px");
|
|
729
|
+
oOptionFBox.addStyleClass("sapUiTinyMarginEnd");
|
|
722
730
|
|
|
723
731
|
}
|
|
724
732
|
return oMainFBox;
|
|
@@ -748,14 +756,14 @@ sap.ui.define([
|
|
|
748
756
|
if(isLink) {
|
|
749
757
|
var oShareData = {
|
|
750
758
|
url: oData.data,
|
|
751
|
-
appTitle: oData.title,
|
|
759
|
+
appTitle: oData.title ? oData.title : "",
|
|
752
760
|
subTitle: "",
|
|
753
761
|
minifyUrlForChat: true
|
|
754
762
|
}
|
|
755
763
|
this._shareAsChat(oShareData);
|
|
756
764
|
} else {
|
|
757
765
|
var oShareData = {
|
|
758
|
-
appTitle: oData.title,
|
|
766
|
+
appTitle: oData.title ? oData.title : "",
|
|
759
767
|
message: oData.data
|
|
760
768
|
}
|
|
761
769
|
this._shareSummary(oShareData);
|
|
@@ -162,7 +162,7 @@ sap.ui.define([
|
|
|
162
162
|
* @extends sap.ui.core.Control
|
|
163
163
|
*
|
|
164
164
|
* @author SAP SE
|
|
165
|
-
* @version 1.124.
|
|
165
|
+
* @version 1.124.3
|
|
166
166
|
* @since 1.66.0
|
|
167
167
|
*
|
|
168
168
|
* @constructor
|
|
@@ -499,7 +499,7 @@ sap.ui.define([
|
|
|
499
499
|
|
|
500
500
|
if (this._bFirstTimeRendered && this.getImageEditor()) {
|
|
501
501
|
this._bFirstTimeRendered = false;
|
|
502
|
-
Theming.
|
|
502
|
+
Theming.attachApplied(onThemeChanged);
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
this._sResizeHandlerId = ResizeHandler.register(this, this._onResize.bind(this));
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
"sap.suite.ui.commons.TargetFilterMeasureColumn",
|
|
187
187
|
"sap.suite.ui.commons.AriaProperties"
|
|
188
188
|
],
|
|
189
|
-
version: "1.124.
|
|
189
|
+
version: "1.124.3",
|
|
190
190
|
extensions: {
|
|
191
191
|
flChangeHandlers: {
|
|
192
192
|
"sap.suite.ui.commons.Timeline": "sap/suite/ui/commons/flexibility/Timeline"
|
|
@@ -520,9 +520,8 @@ sap.ui.define([
|
|
|
520
520
|
}.bind(this);
|
|
521
521
|
|
|
522
522
|
// In case theme is applied fnProcess will be called immediately,
|
|
523
|
-
// else it will be called once theme is applied.
|
|
524
|
-
|
|
525
|
-
Theming.attachAppliedOnce(fnProcess);
|
|
523
|
+
// else it will be called once theme is applied.
|
|
524
|
+
Theming.attachApplied(fnProcess);
|
|
526
525
|
}
|
|
527
526
|
this.oInvisibleMessage = InvisibleMessage.getInstance();
|
|
528
527
|
oRm.destroy();
|
|
@@ -372,7 +372,7 @@ sap.ui.define([
|
|
|
372
372
|
Node.prototype._handleCoreInitialized = function() {
|
|
373
373
|
// The NetworkGraph is not being rendered until the theme was applied.
|
|
374
374
|
// If the theme is applied, rendering starts by the control itself.
|
|
375
|
-
Theming.
|
|
375
|
+
Theming.attachApplied(function(){
|
|
376
376
|
this._bThemeApplied = true;
|
|
377
377
|
this.invalidate();
|
|
378
378
|
}.bind(this));
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @extends sap.ui.core.Control
|
|
50
50
|
*
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.124.
|
|
52
|
+
* @version 1.124.3
|
|
53
53
|
* @since 1.50
|
|
54
54
|
*
|
|
55
55
|
* @constructor
|
|
@@ -197,7 +197,7 @@ sap.ui.define([
|
|
|
197
197
|
*/
|
|
198
198
|
StatusIndicator.prototype._handleCoreInitialized = function() {
|
|
199
199
|
// The control will only be rendered if the theme is applied. If this is the case,the control invalidates itself.
|
|
200
|
-
Theming.
|
|
200
|
+
Theming.attachApplied(function(){
|
|
201
201
|
this.invalidate();
|
|
202
202
|
}.bind(this));
|
|
203
203
|
};
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @extends sap.ui.core.Control
|
|
42
42
|
*
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.124.
|
|
44
|
+
* @version 1.124.3
|
|
45
45
|
* @since 1.58.0
|
|
46
46
|
*
|
|
47
47
|
* @constructor
|
|
@@ -151,7 +151,7 @@ sap.ui.define([
|
|
|
151
151
|
/* Events */
|
|
152
152
|
/* =========================================================== */
|
|
153
153
|
TAccountGroup.prototype.init = function () {
|
|
154
|
-
Theming.
|
|
154
|
+
Theming.attachApplied(function () {
|
|
155
155
|
this._bThemeApplied = true;
|
|
156
156
|
this.invalidate();
|
|
157
157
|
}.bind(this));
|