@sapui5/sap.suite.ui.generic.template 1.136.3 → 1.136.4
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/controller/ControllerImplementation.js +0 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +3 -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/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +13 -9
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +11 -2
- 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
|
@@ -1936,7 +1936,6 @@ sap.ui.define([
|
|
|
1936
1936
|
oState.oSectionTitleHandler.adjustSubSectionTitle(oSubSection);
|
|
1937
1937
|
// Add accessible name to the SmartForm in the first subsection if all titles are hidden, because accessible name will not propogate to the form control
|
|
1938
1938
|
oState.oSectionTitleHandler.addAccessibleName(oSubSection);
|
|
1939
|
-
oState.oSectionTitleHandler.manageAccessability(oSubSection);
|
|
1940
1939
|
}
|
|
1941
1940
|
}
|
|
1942
1941
|
|
|
@@ -491,7 +491,8 @@ sap.ui.define([
|
|
|
491
491
|
oMessage.aFullTargets.some(function(sFullPath){
|
|
492
492
|
if (sFullPath.startsWith(sBindingPathPrefix)){ // This full target points to a place on the current object page
|
|
493
493
|
oTemplateUtils.oInfoObjectHandler.executeForAllInformationObjects("smartTable", function(oInfoObject){ // Check for all tables whether it even points to the table
|
|
494
|
-
|
|
494
|
+
const bControlExists = !!controlHelper.byId(oInfoObject.getId());
|
|
495
|
+
if (!bFound && bControlExists){ // If a suitable table has already been identified skip all other tables
|
|
495
496
|
var sStart = sBindingPathPrefix + oInfoObject.getNavigationProperty();
|
|
496
497
|
if (sFullPath === sStart || sFullPath.startsWith(sStart + "(")){ // If the full target really identifies the table or an entry within the table
|
|
497
498
|
bFound = true;
|
|
@@ -807,6 +808,7 @@ sap.ui.define([
|
|
|
807
808
|
return sTableText + sRowHeaderText + sRowText + sErrorColumnText;
|
|
808
809
|
}
|
|
809
810
|
testableHelper.testableStatic(getSubtitleForRow, "filterHelper_getSubtitleForRow");
|
|
811
|
+
testableHelper.testableStatic(fnFindTableForMessage, "messageSortingHandler_fnFindTableForMessage");
|
|
810
812
|
// public instance methods
|
|
811
813
|
return {
|
|
812
814
|
getPrepareMessageDisplayPromise: getPrepareMessageDisplayPromise
|
|
@@ -950,7 +950,7 @@ sap.ui.define([
|
|
|
950
950
|
* @public
|
|
951
951
|
* @extends sap.ui.core.UIComponent
|
|
952
952
|
* @author SAP SE
|
|
953
|
-
* @version 1.136.
|
|
953
|
+
* @version 1.136.4
|
|
954
954
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
955
955
|
*/
|
|
956
956
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -28,7 +28,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
28
28
|
"sap/ui/core/CustomData",
|
|
29
29
|
"sap/m/VBox",
|
|
30
30
|
"sap/suite/ui/generic/template/genericUtilities/utils",
|
|
31
|
-
"sap/ui/core/Element"
|
|
31
|
+
"sap/ui/core/Element",
|
|
32
|
+
"sap/ui/generic/app/util/ModelUtil"
|
|
32
33
|
], function(
|
|
33
34
|
BaseObject,
|
|
34
35
|
Event,
|
|
@@ -60,7 +61,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
60
61
|
CustomData,
|
|
61
62
|
VBox,
|
|
62
63
|
genericUtils,
|
|
63
|
-
Element
|
|
64
|
+
Element,
|
|
65
|
+
ModelUtil
|
|
64
66
|
) {
|
|
65
67
|
"use strict";
|
|
66
68
|
|
|
@@ -1094,7 +1096,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1094
1096
|
// and text, using the formatutil and the textarrangement, title should
|
|
1095
1097
|
// be passed on the smartlink
|
|
1096
1098
|
if (oControl.getFieldName) {
|
|
1097
|
-
|
|
1099
|
+
// The value "sEntitySet" holds the entity set of an object page or a table.
|
|
1100
|
+
//
|
|
1101
|
+
// Sometimes, the SmartLink is located on a field group which belongs to the child entity set of object page.
|
|
1102
|
+
// So, we have to always derive the entity type from the smart link's binding context.
|
|
1103
|
+
var oEntityType = ModelUtil.getEntityTypeFromContext(oControl.getBindingContext());
|
|
1098
1104
|
var oField = oEntityType.property.find(function (oProperty) { return oProperty.name === sSourceClickedField; });
|
|
1099
1105
|
var sTextArrangement = "descriptionAndId";
|
|
1100
1106
|
if (oField) { // TODO: Need to provide the correct field Object using the entityType and corresponding association (should be handled by a BLI)
|
|
@@ -2562,12 +2568,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2562
2568
|
var sPath = oContext.getPath();
|
|
2563
2569
|
var oContactData = oModel.getContext(sPath);
|
|
2564
2570
|
var oContactAnnotation = JSON.parse(oSourceControl.data("contactDetails"));
|
|
2565
|
-
var
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
sEmail = (oContactAnnotation.email[0].address && oContactAnnotation.email[0].address.String);
|
|
2570
|
-
}
|
|
2571
|
+
var emailObj = oContactAnnotation?.email?.[0]?.address;
|
|
2572
|
+
var sEmail = emailObj?.Path
|
|
2573
|
+
? oContactData.getProperty(emailObj.Path)
|
|
2574
|
+
: emailObj?.String;
|
|
2571
2575
|
|
|
2572
2576
|
|
|
2573
2577
|
fnFetchContactStatus(sEmail).then(function (oContactStatus) {
|
|
@@ -413,12 +413,14 @@ sap.ui.define([
|
|
|
413
413
|
*/
|
|
414
414
|
function fnShowValueHelp(oEvent) {
|
|
415
415
|
var oSmartFilterbar = oState.oSmartFilterbar;
|
|
416
|
+
var sKey = oEvent.getParameter("key");
|
|
416
417
|
fnValueHelpPromiseResolve = oEvent.getParameter("resolve");
|
|
417
418
|
oSmartFilterbar.associateValueLists();
|
|
418
419
|
try {
|
|
419
|
-
oSmartFilterbar.
|
|
420
|
+
oSmartFilterbar.ensureLoadedValueHelp(sKey);
|
|
421
|
+
oSmartFilterbar.openValueHelpRequestForFilterItem(sKey);
|
|
420
422
|
} catch (error) {
|
|
421
|
-
oLogger.error("Value help cannot be triggered for the field " +
|
|
423
|
+
oLogger.error("Value help cannot be triggered for the field " + sKey);
|
|
422
424
|
}
|
|
423
425
|
}
|
|
424
426
|
|
|
@@ -524,6 +526,7 @@ sap.ui.define([
|
|
|
524
526
|
|
|
525
527
|
var aFinalResponse = [];
|
|
526
528
|
var oOwnerFilterControl = oState.oSmartFilterbar;
|
|
529
|
+
var sKey = key;
|
|
527
530
|
var sEntitySet = oController.getOwnerComponent().getEntitySet();
|
|
528
531
|
var oEntityType = oTemplateUtils.oCommonUtils.getMetaModelEntityType(sEntitySet);
|
|
529
532
|
var oSFBModel = oOwnerFilterControl.getModel();
|
|
@@ -628,6 +631,12 @@ sap.ui.define([
|
|
|
628
631
|
oVHPromise.then((oValueList)=>{
|
|
629
632
|
var oValueListDefaultBinding = oValueList[""];
|
|
630
633
|
var sValueListEntity = oValueListDefaultBinding.CollectionPath.String;
|
|
634
|
+
if (Array.isArray(oValueListDefaultBinding.Parameters)) {
|
|
635
|
+
var oParameter = oValueListDefaultBinding.Parameters.find(oParam => (oParam.RecordType === "com.sap.vocabularies.Common.v1.ValueListParameterInOut" && oParam.LocalDataProperty.PropertyPath === sKey));
|
|
636
|
+
if (oParameter) {
|
|
637
|
+
key = oParameter.ValueListProperty.String;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
631
640
|
//Get All Records using $search
|
|
632
641
|
aFilters.forEach((oFilter)=>{
|
|
633
642
|
oSFBModel.read("/" + sValueListEntity, {
|
|
@@ -3216,7 +3216,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3216
3216
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3217
3217
|
* @public
|
|
3218
3218
|
* @extends sap.ui.base.Object
|
|
3219
|
-
* @version 1.136.
|
|
3219
|
+
* @version 1.136.4
|
|
3220
3220
|
* @since 1.30.0
|
|
3221
3221
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3222
3222
|
*/
|