@sapui5/sap.suite.ui.generic.template 1.120.18 → 1.120.19
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/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +24 -23
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -146,6 +146,12 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
+
"sap.ui.layout.VerticalLayout": {
|
|
150
|
+
actions: ["remove"]
|
|
151
|
+
},
|
|
152
|
+
"sap.ui.layout.HorizontalLayout": {
|
|
153
|
+
actions: ["remove"]
|
|
154
|
+
},
|
|
149
155
|
"sap.uxap.ObjectPageHeaderActionButton": {
|
|
150
156
|
actions: ["remove", "reveal"]
|
|
151
157
|
},
|
|
@@ -922,7 +922,7 @@ sap.ui.define([
|
|
|
922
922
|
* @extends sap.ui.core.UIComponent
|
|
923
923
|
* @abstract
|
|
924
924
|
* @author SAP SE
|
|
925
|
-
* @version 1.120.
|
|
925
|
+
* @version 1.120.19
|
|
926
926
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
927
927
|
*/
|
|
928
928
|
return UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -103,11 +103,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
103
103
|
// if not determined here the threshold will be determined by PaginatorButtonHelper on demand
|
|
104
104
|
var iThreshold = oPresentationControlHandler.getThreshold && oPresentationControlHandler.getThreshold();
|
|
105
105
|
|
|
106
|
-
var
|
|
107
|
-
var sParentId =
|
|
106
|
+
var oTableFromRow = oCommonUtils.getOwnerControl(oRow);
|
|
107
|
+
var sParentId = oTableFromRow.getId();
|
|
108
108
|
// bIsActive stores the information whether the object was in display mode when the paginator info was created (only used in draft scenario)
|
|
109
109
|
var bIsActive = oComponentUtils.isDraftEnabled() && !oController.getView().getModel("ui").getProperty("/editable");
|
|
110
|
-
// This function is called by the PaginatorButtonHelper.
|
|
110
|
+
// This function is called by the PaginatorButtonHelper.
|
|
111
111
|
// This class has already identified the member oContext of oListBinding which should be the target of the navigation.
|
|
112
112
|
// Note, that even if bIsActive is true the item page may meanwhile have changed to edit mode. This would be indicated by bIsEditItem.
|
|
113
113
|
// In this case the target of the navigation must be switched to the sibling of oContext.
|
|
@@ -120,7 +120,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
120
120
|
if (!oVirtualItem){
|
|
121
121
|
var bIsRowSelected = oRow.isSelected && oRow.isSelected();
|
|
122
122
|
oVirtualItem = oRow.clone();
|
|
123
|
-
oVirtualItem.setParent(
|
|
123
|
+
oVirtualItem.setParent(oTableFromRow);
|
|
124
124
|
if (bIsRowSelected){ // if oRow was selected it has possibly lost this property when oVirtualItem was added to the same parent
|
|
125
125
|
oRow.setSelected(true);
|
|
126
126
|
}
|
|
@@ -914,7 +914,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
914
914
|
}
|
|
915
915
|
// used to determine the header title
|
|
916
916
|
var oSourceClickedField = oMetaModel.getODataProperty(oSourceEntityType, sSourceClickedField);
|
|
917
|
-
|
|
917
|
+
|
|
918
918
|
/* --- QuickView Content area preparation */
|
|
919
919
|
var oQuickViewModel = new JSONModel({
|
|
920
920
|
sourceClickedField: oSourceClickedField,
|
|
@@ -928,7 +928,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
928
928
|
mainNavigation: oMainNavigationIntent
|
|
929
929
|
});
|
|
930
930
|
oQuickViewModel.setDefaultBindingMode("OneWay");
|
|
931
|
-
|
|
931
|
+
|
|
932
932
|
var oSmartFormSimpleViewController;
|
|
933
933
|
var oSmartFormSimpleViewControllerClass = Controller.extend("", {
|
|
934
934
|
oState: oState,
|
|
@@ -950,7 +950,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
950
950
|
});
|
|
951
951
|
oSmartFormSimpleViewController = new oSmartFormSimpleViewControllerClass();
|
|
952
952
|
oSmartFormSimpleViewControllerClass.connectToView = oController.connectToView.bind(oSmartFormSimpleViewController);
|
|
953
|
-
|
|
953
|
+
|
|
954
954
|
//set the navcontainer to busy until everything is evaluated
|
|
955
955
|
var fnBusy = function(oEvent) {
|
|
956
956
|
var oSmLiContent = oEvent.getSource(); //content of the smart link popover
|
|
@@ -965,7 +965,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
965
965
|
oNavContainer.setBusyIndicatorDelay(10);
|
|
966
966
|
}
|
|
967
967
|
};
|
|
968
|
-
|
|
968
|
+
|
|
969
969
|
XMLView.create({
|
|
970
970
|
preprocessors: {
|
|
971
971
|
xml: {
|
|
@@ -989,20 +989,20 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
989
989
|
viewName: "sap.suite.ui.generic.template.fragments.QuickViewSmartForm",
|
|
990
990
|
height: "100%"
|
|
991
991
|
}).then(function(oSmartFormSimpleView) {
|
|
992
|
-
|
|
992
|
+
|
|
993
993
|
/*take over the image */
|
|
994
994
|
/* sMainNavigationId: with "" the header is be suppressed,
|
|
995
995
|
* oMainNavigation: with null the main navigation object will be removed.
|
|
996
996
|
* This will still show the CMP title area if there is an text arrangement */
|
|
997
997
|
//oEventParameters.show("", null, undefined, oSmartFormSimpleView);
|
|
998
|
-
|
|
998
|
+
|
|
999
999
|
/* sMainNavigationId: with undefined, the description is calculated using the binding context of a given source object (for example SmartLink control)
|
|
1000
1000
|
* oMainNavigation: with undefined the old object will remain.
|
|
1001
1001
|
* This will still show the CMP title area - this is needed especially in slow systems, since then the CMP title area will be shown until the FE title area is available */
|
|
1002
1002
|
oEventParameters.show(undefined, undefined, undefined, oSmartFormSimpleView);
|
|
1003
|
-
|
|
1003
|
+
|
|
1004
1004
|
oSmartFormSimpleView.attachBeforeRendering(fnBusy.bind(this));
|
|
1005
|
-
|
|
1005
|
+
|
|
1006
1006
|
// post processing after the navcontainer is rendered
|
|
1007
1007
|
var fnChange = function (oEvent) {
|
|
1008
1008
|
var oSmLiContent = oEvent.getSource(); //content of the smart link popover
|
|
@@ -1031,7 +1031,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1031
1031
|
};
|
|
1032
1032
|
oSmartFormSimpleView.attachAfterRendering(fnChange.bind(this));
|
|
1033
1033
|
}.bind(this));
|
|
1034
|
-
|
|
1034
|
+
|
|
1035
1035
|
} else {
|
|
1036
1036
|
// if the fieldname of the control contains text binding with id
|
|
1037
1037
|
// and text, using the formatutil and the textarrangement, title should
|
|
@@ -1741,7 +1741,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1741
1741
|
}
|
|
1742
1742
|
});
|
|
1743
1743
|
});
|
|
1744
|
-
|
|
1744
|
+
|
|
1745
1745
|
oComponentUtils.getBusyHelper().setBusy(oPromise);
|
|
1746
1746
|
}
|
|
1747
1747
|
|
|
@@ -1995,8 +1995,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1995
1995
|
var oCustomData = oCommonUtils.getCustomDataFromEvent(oEvent);
|
|
1996
1996
|
onCallActionFromToolBarForContexts(oControl, oSourceControl, oCustomData, aContexts, oState, sEntitySet, bIsSmartTable);
|
|
1997
1997
|
}
|
|
1998
|
-
|
|
1999
|
-
function onCallActionFromToolBarForContexts(oSmartControl, oSourceControl, oCustomData, aContexts, oState, sEntitySet, bIsSmartTable) {
|
|
1998
|
+
|
|
1999
|
+
function onCallActionFromToolBarForContexts(oSmartControl, oSourceControl, oCustomData, aContexts, oState, sEntitySet, bIsSmartTable) {
|
|
2000
2000
|
var mJSONData = getDataforActionDialog(aContexts, oCustomData);
|
|
2001
2001
|
//Skip "ResultIsActiveEntity" when the action is annotated with "IsCopyAction"
|
|
2002
2002
|
var oSkipProperties = oCustomData.IsCopyAction === "true" ? {"ResultIsActiveEntity": true} : {};
|
|
@@ -2132,7 +2132,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2132
2132
|
function CRUDManagerCallAction(mParams, oState, sEntitySet) {
|
|
2133
2133
|
/*
|
|
2134
2134
|
After receiving the responses from the functionImport, we will refresh the table to retrieve the latest changes made in the backend.
|
|
2135
|
-
However, the UI table can only refresh a fixed number of rows. If the user has selected the "selectAll" button or has chosen rows beyond the refresh limit, those rows will not be fetched, but the selections will still be present on those rows.
|
|
2135
|
+
However, the UI table can only refresh a fixed number of rows. If the user has selected the "selectAll" button or has chosen rows beyond the refresh limit, those rows will not be fetched, but the selections will still be present on those rows.
|
|
2136
2136
|
This can lead to a user experience issue. To resolve this problem, we are removing the selections for all the rows.
|
|
2137
2137
|
*/
|
|
2138
2138
|
var oControl = mParams.sourceControl;
|
|
@@ -2400,8 +2400,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2400
2400
|
var sPath = oContext.getPath();
|
|
2401
2401
|
var oContactData = oModel.getContext(sPath);
|
|
2402
2402
|
sPath = sNavigationPropertyPath ? oController.getView().getBindingContext().getPath() + "/" + sNavigationPropertyPath + "(" + oDataModelHelper.analyseContext(oContext).key + ")" : sPath; // manually creating the sDeepPath as it is a private property of the context. Therefore, we should avoid to access it.
|
|
2403
|
-
// In general we can show at max fn (FullName), photo & role properties in the Contacts facet. So if these key length is more than 3 that means we have already the other required properties
|
|
2404
|
-
// in the model and straight away we can go for populating the contact quickView otherwise we need to trigger a model GET request with the bindingPath
|
|
2403
|
+
// In general we can show at max fn (FullName), photo & role properties in the Contacts facet. So if these key length is more than 3 that means we have already the other required properties
|
|
2404
|
+
// in the model and straight away we can go for populating the contact quickView otherwise we need to trigger a model GET request with the bindingPath
|
|
2405
2405
|
if (Object.keys(oContactData.getProperty()).length > 3) {
|
|
2406
2406
|
ContactCardDetailHelper.populateDataInContactQuickView(oCommonUtils, oSourceControl, oContactData, aTeamsCollabOptions);
|
|
2407
2407
|
} else {
|
|
@@ -2515,19 +2515,19 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2515
2515
|
|
|
2516
2516
|
/**
|
|
2517
2517
|
* This method listens "beforeExport" event from smart table and in the "Filters" section of exported file
|
|
2518
|
-
* 1. Transforms the technical props (i.e. Removes the technical filters related to "Editable Status" filter
|
|
2518
|
+
* 1. Transforms the technical props (i.e. Removes the technical filters related to "Editable Status" filter
|
|
2519
2519
|
* and adds the actual value of "Editable Status" filter as shown in the smart filter bar)
|
|
2520
2520
|
* 2. Adds the values of analytical parameters
|
|
2521
2521
|
* And, invokes "onBeforeExportTableExtension" method
|
|
2522
|
-
*
|
|
2523
|
-
* @param {*} oExportEvent
|
|
2522
|
+
*
|
|
2523
|
+
* @param {*} oExportEvent
|
|
2524
2524
|
*/
|
|
2525
2525
|
function fnOnBeforeExport (oExportEvent) {
|
|
2526
2526
|
var oUserExportSettings = oExportEvent.getParameter("userExportSettings"),
|
|
2527
2527
|
bIncludeFilterSettings = !!(oUserExportSettings && oUserExportSettings.includeFilterSettings),
|
|
2528
2528
|
aFilterSettings = oExportEvent.getParameter("filterSettings"),
|
|
2529
2529
|
oSmartTable = oExportEvent.getSource();
|
|
2530
|
-
|
|
2530
|
+
|
|
2531
2531
|
if (bIncludeFilterSettings) {
|
|
2532
2532
|
// Invoke the logic to transform technical props
|
|
2533
2533
|
oCommonUtils.transformTechnicalPropsOnExportedFile(aFilterSettings);
|
|
@@ -2552,6 +2552,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2552
2552
|
var fnGetSelectedItemContextForDeleteMessage = testableHelper.testable(fnGetSelectedItemContextForDeleteMessage, "fnGetSelectedItemContextForDeleteMessage");
|
|
2553
2553
|
var getDataForDeleteDialog = testableHelper.testable(getDataForDeleteDialog, "getDataForDeleteDialog");
|
|
2554
2554
|
var fnNavigateIntentSmartLink = testableHelper.testable(fnNavigateIntentSmartLink, "CommonEventHandlers_fnNavigateIntentSmartLink");
|
|
2555
|
+
var getPaginatorInfo = testableHelper.testable(getPaginatorInfo, "getPaginatorInfo");
|
|
2555
2556
|
/* eslint-enable */
|
|
2556
2557
|
|
|
2557
2558
|
return {
|
|
@@ -3083,7 +3083,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3083
3083
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3084
3084
|
* @public
|
|
3085
3085
|
* @extends sap.ui.base.Object
|
|
3086
|
-
* @version 1.120.
|
|
3086
|
+
* @version 1.120.19
|
|
3087
3087
|
* @since 1.30.0
|
|
3088
3088
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3089
3089
|
*/
|