@sapui5/sap.suite.ui.generic.template 1.103.0 → 1.104.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/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +8 -7
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/KpiAnnotationHelper.js +33 -28
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +67 -6
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +3 -16
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +260 -547
- package/src/sap/suite/ui/generic/template/ListReport/controller/LegacyStateHandler.js +49 -32
- package/src/sap/suite/ui/generic/template/ListReport/controller/MultipleViewsHandler.js +9 -20
- package/src/sap/suite/ui/generic/template/ListReport/controller/WorklistHandler.js +27 -27
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +5 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.js +8 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +256 -465
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/InlineCreationRowsHelper.js +81 -63
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +240 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SideContentHandler.js +3 -11
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +12 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +16 -16
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +173 -50
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +7 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +6 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DataFieldForActionNonDetermining.fragment.xml +9 -9
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/PageLevelCommands.fragment.xml +9 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SectionCommands.fragment.xml +9 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Sections.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartForm.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +5 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/TableCommands.fragment.xml +8 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveFilterItems.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveToolbarActionButtons.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/AddElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/MoveElements.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RemoveElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RevealElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/util/AnnotationPropertyCommand.js +1 -1
- package/src/sap/suite/ui/generic/template/detailTemplates/DiscardEditHandler.js +4 -1
- package/src/sap/suite/ui/generic/template/detailTemplates/PaginatorButtonsHelper.js +48 -36
- package/src/sap/suite/ui/generic/template/detailTemplates/detailUtils.js +12 -7
- package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +11 -19
- package/src/sap/suite/ui/generic/template/fragments/RowActions.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/ToolbarButton.fragment.xml +21 -31
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +25 -11
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +45 -5
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +63 -8
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +4 -21
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +100 -86
- package/src/sap/suite/ui/generic/template/genericUtilities/metadataAnalyser.js +16 -2
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +83 -43
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +25 -6
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +22 -8
- package/src/sap/suite/ui/generic/template/lib/Application.js +36 -17
- package/src/sap/suite/ui/generic/template/lib/BusyHelper.js +36 -21
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +23 -36
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +11 -7
- package/src/sap/suite/ui/generic/template/lib/CommandComponentUtils.js +62 -0
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +27 -23
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +33 -6
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +50 -17
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +18 -26
- package/src/sap/suite/ui/generic/template/lib/FocusHelper.js +69 -0
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +4 -7
- package/src/sap/suite/ui/generic/template/lib/MessageUtils.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +4 -3
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +12 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +4 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +9 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +6 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleTablesModeHelper.js +50 -0
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleViewsHandler.js +19 -0
- package/src/sap/suite/ui/generic/template/lib/multipleViews/SingleTableModeHelper.js +7 -0
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +105 -62
- package/src/sap/suite/ui/generic/template/lib/navigation/routingHelper.js +8 -8
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/MultipleViewsHandler.js +33 -30
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/TableCommands.fragment.xml +17 -2
package/package.json
CHANGED
|
@@ -81,7 +81,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution","sap/suite/ui/generic/templat
|
|
|
81
81
|
getUrlParameterInfo: function() {
|
|
82
82
|
return oViewProxy.getUrlParameterInfo();
|
|
83
83
|
},
|
|
84
|
-
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet, oModel){
|
|
84
|
+
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet, oInternalManifest, oModel){
|
|
85
85
|
var oExtensions = oComponentUtils.getControllerExtensions();
|
|
86
86
|
var oEntitySet = oMetaModel.getODataEntitySet(sLeadingEntitySet);
|
|
87
87
|
var oLineItem = preparationHelper.getLineItemFromVariant(oMetaModel, oEntitySet.entityType, oSettings.qualifier);
|
|
@@ -149,15 +149,16 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution","sap/suite/ui/generic/templat
|
|
|
149
149
|
};
|
|
150
150
|
oExtensionAction.press = "cmd:" + oExtensionAction.command;
|
|
151
151
|
oExtensionAction.id = sActionId;
|
|
152
|
-
|
|
152
|
+
}
|
|
153
|
+
if (oExtensionAction.filter === "chart") {
|
|
154
|
+
if (oCommandDefinition) {
|
|
153
155
|
mChartLevelCustomActionsWithCommand[oExtensionAction.id] = oCommandDefinition;
|
|
154
|
-
aChartExtensionActionsWithoutLogicalAction.push(oExtensionAction);
|
|
155
|
-
} else {
|
|
156
|
-
mTableLevelCustomActionsWithCommand[oExtensionAction.id] = oCommandDefinition;
|
|
157
|
-
aTableExtensionActionsWithoutLogicalAction.push(oExtensionAction);
|
|
158
156
|
}
|
|
157
|
+
aChartExtensionActionsWithoutLogicalAction.push(oExtensionAction);
|
|
159
158
|
} else {
|
|
160
|
-
|
|
159
|
+
if (oCommandDefinition) {
|
|
160
|
+
mTableLevelCustomActionsWithCommand[oExtensionAction.id] = oCommandDefinition;
|
|
161
|
+
}
|
|
161
162
|
aTableExtensionActionsWithoutLogicalAction.push(oExtensionAction);
|
|
162
163
|
}
|
|
163
164
|
}
|
|
@@ -195,6 +195,8 @@ sap.ui.define([
|
|
|
195
195
|
};
|
|
196
196
|
} else if (oDateFormatSettings && oDateFormatSettings.UTC && sValue instanceof Date) {
|
|
197
197
|
sValue = this._getDateInUTCOffset(sValue);
|
|
198
|
+
} else if (isNaN(sValue) && !isNaN(Date.parse(sValue)) && sValue.indexOf("Z") !== (sValue.length - 1)) {
|
|
199
|
+
sValue = sValue.split('T')[0] + "T00:00:00Z";
|
|
198
200
|
}
|
|
199
201
|
//values set for parameters in SFB; allowed to override values from SV for a given parameter
|
|
200
202
|
allParams[param.name] = sValue;
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -267,6 +267,8 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
267
267
|
sSubject = oTemplateUtils.oCommonUtils.getText("EMAIL_HEADER", [ sSubject ]);
|
|
268
268
|
sap.m.URLHelper.triggerEmail(null, sSubject, sCurrentUrl);
|
|
269
269
|
break;
|
|
270
|
+
default:
|
|
271
|
+
break;
|
|
270
272
|
}
|
|
271
273
|
});
|
|
272
274
|
oBusyHelper.setBusy(oTriggerPromise);
|
|
@@ -82,40 +82,45 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
82
82
|
);
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
+
}
|
|
85
86
|
|
|
86
|
-
/*If there is an optional parameter for a parameterized OData Service and there is
|
|
87
|
-
no selection variant defined for that paramter, send empty string as the parameter value
|
|
88
|
-
Current support is limited to Edm.String type parameters */
|
|
89
87
|
|
|
90
|
-
|
|
88
|
+
/*If there is an optional parameter for a parameterized OData Service and there is
|
|
89
|
+
no selection variant defined for that paramter, send empty string as the parameter value
|
|
90
|
+
Current support is limited to Edm.String type parameters */
|
|
91
|
+
var aSVParameters;
|
|
92
|
+
if (oSelectionVariant.getParameterNames) {
|
|
93
|
+
aSVParameters = oSelectionVariant.getParameterNames();
|
|
94
|
+
} else {
|
|
95
|
+
aSVParameters = oSelectionVariant && oSelectionVariant.Parameters && oSelectionVariant.Parameters.map(function (oParameter) {
|
|
91
96
|
return oParameter && oParameter.PropertyName && oParameter.PropertyName.PropertyPath;
|
|
92
97
|
});
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
98
|
+
}
|
|
99
|
+
var oParametersInfo = metadataAnalyser.getParametersByEntitySet(oDataModel, oEntitySet.name);
|
|
100
|
+
if (oParametersInfo.entitySetName) {
|
|
101
|
+
var aParametersMetadata = metadataAnalyser.getPropertyOfEntitySet(oDataModel, oParametersInfo.entitySetName);
|
|
102
|
+
var aMissingSV = oParametersInfo.parameters.filter(function (sParam) {
|
|
103
|
+
return !aSVParameters.includes(sParam);
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
for (var i = 0; i < aMissingSV.length; i++) {
|
|
107
|
+
param = aMissingSV[i].split("/");
|
|
108
|
+
var sPropertyPath = param[param.length - 1];
|
|
109
|
+
var aPropertyMetadata = getPropertyFromParametersMetadata(aParametersMetadata, sPropertyPath);
|
|
110
|
+
var bOptionalAnalyticParameter = false;
|
|
111
|
+
if (aPropertyMetadata.length > 0) {
|
|
112
|
+
var oProperty = aPropertyMetadata[0];
|
|
113
|
+
bOptionalAnalyticParameter = oProperty.type === "Edm.String" &&
|
|
114
|
+
oProperty["sap:parameter"] === "optional";
|
|
115
|
+
}
|
|
116
|
+
/*
|
|
117
|
+
* If the parameter is optional and there is no selection variant than set empty property value.
|
|
118
|
+
**/
|
|
119
|
+
if (bOptionalAnalyticParameter) {
|
|
120
|
+
queryResultRequest.getParameterizationRequest().setParameterValue(sPropertyPath, "");
|
|
116
121
|
}
|
|
117
122
|
}
|
|
118
|
-
|
|
123
|
+
}
|
|
119
124
|
}
|
|
120
125
|
|
|
121
126
|
try {
|
|
@@ -69,7 +69,45 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
69
69
|
displayNextObject: function(aOrderObjects){
|
|
70
70
|
return oViewProxy.displayNextObject(aOrderObjects);
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
/* Returns the list report templating settings in the following structure:
|
|
73
|
+
{
|
|
74
|
+
annotatedActions: {}, // manifest settings for DataFieldForAction command,
|
|
75
|
+
condensedTableLayout: true/false,
|
|
76
|
+
bNewAction: true/false,
|
|
77
|
+
dataLoadSettings: {},
|
|
78
|
+
controlConfigurationSettings: {},
|
|
79
|
+
isIndicatorRequired: true/false,
|
|
80
|
+
isResponsiveTable: true/false,
|
|
81
|
+
isSelflinkRequired: true/false,
|
|
82
|
+
isSemanticallyConnected: true/false,
|
|
83
|
+
multiSelect: true/false,
|
|
84
|
+
outbounds: {}, // manifest outbound navigations
|
|
85
|
+
quickVariantSelectionX: {
|
|
86
|
+
showCounts: true/false,
|
|
87
|
+
variants: {}
|
|
88
|
+
},
|
|
89
|
+
smartVariantManagement: true/false,
|
|
90
|
+
routeConfig: {},
|
|
91
|
+
subPages: {},
|
|
92
|
+
tableSettings: {
|
|
93
|
+
commandExecution: {} // details of all standard actions with an associated keyboard shortcut
|
|
94
|
+
extensionActions: [] // details of all extension action including its command details
|
|
95
|
+
headerInfo: {}
|
|
96
|
+
inlineDelete: true/false
|
|
97
|
+
mode: "<string>",
|
|
98
|
+
multiEdit: {}, // multiEdit feature settings
|
|
99
|
+
multiSelect: true/false,
|
|
100
|
+
onlyForDelete: true/false,
|
|
101
|
+
selectAll: true/false,
|
|
102
|
+
selectionLimit: <number>,
|
|
103
|
+
type: "<string>", // table type
|
|
104
|
+
createWithParameterDialog: {}
|
|
105
|
+
}
|
|
106
|
+
targetEntities: {},
|
|
107
|
+
isWorklist: true/false
|
|
108
|
+
}
|
|
109
|
+
*/
|
|
110
|
+
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet, oInternalManifest, oModel, oDraftContext) {
|
|
73
111
|
function checkIfSmartChart(sEntitySet, oTabItem) {
|
|
74
112
|
var oEntitySet = oMetaModel.getODataEntitySet(sEntitySet);
|
|
75
113
|
var oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
@@ -210,9 +248,12 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
210
248
|
});
|
|
211
249
|
}
|
|
212
250
|
|
|
213
|
-
var
|
|
251
|
+
var oStandardActions = fnGetStandardActions(sTabKey);
|
|
214
252
|
var oControllerExtensions = oComponentUtils.getControllerExtensions();
|
|
215
|
-
var aExtensionActionsWithoutLogicalAction = [],
|
|
253
|
+
var aExtensionActionsWithoutLogicalAction = [],
|
|
254
|
+
mCustomActionsWithCommand = Object.create(null),
|
|
255
|
+
mAnnotatedActionsWithCommand = Object.create(null),
|
|
256
|
+
mOutboundActionsWithCommand = Object.create(null);
|
|
216
257
|
|
|
217
258
|
Object.values(oControllerExtensions && oControllerExtensions.Actions || {}).forEach(function (oExtensionAction) {
|
|
218
259
|
if (oExtensionAction.logicalAction) {
|
|
@@ -221,14 +262,14 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
221
262
|
return;
|
|
222
263
|
}
|
|
223
264
|
// created a defensive copy of the standard action to make it less susceptible to errors
|
|
224
|
-
|
|
265
|
+
oStandardActions[oExtensionAction.logicalAction] = fnGetOverriddenStandardAction(deepExtend({}, oStandardActions[oExtensionAction.logicalAction]), oExtensionAction);
|
|
225
266
|
} else if (!oExtensionAction.global) {
|
|
226
267
|
var oStableIdParameters = oExtensionAction.global ?
|
|
227
268
|
{ type: "Action", subType: "Global", sAction: oExtensionAction.id } :
|
|
228
269
|
{ type: "ListReportAction", subType: "TableExtension", sAction: oExtensionAction.id, sQuickVariantKey: sTabKey };
|
|
229
270
|
var sActionId = StableIdHelper.getStableId(oStableIdParameters);
|
|
230
271
|
if (oExtensionAction.command) {
|
|
231
|
-
|
|
272
|
+
mCustomActionsWithCommand[oExtensionAction.id] = {
|
|
232
273
|
id: sActionId,
|
|
233
274
|
action: oExtensionAction.command,
|
|
234
275
|
callbackName: oExtensionAction.press
|
|
@@ -241,8 +282,28 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
241
282
|
}
|
|
242
283
|
});
|
|
243
284
|
|
|
285
|
+
// handle keyboard shortcut related manifest settings for actions defined via annotations e.g. DataFieldForAction and DataFieldForIBN
|
|
286
|
+
(oEntityType["com.sap.vocabularies.UI.v1.LineItem"] || []).forEach(function(oDataField) {
|
|
287
|
+
switch (oDataField.RecordType) {
|
|
288
|
+
case "com.sap.vocabularies.UI.v1.DataFieldForAction":
|
|
289
|
+
var oCommandDetails = oComponentUtils.getTableDataFieldForActionCommandDetails(oDataField, oLrSettings, oLrSettings.quickVariantSelectionX ? oLrSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined);
|
|
290
|
+
if (!isEmptyObject(oCommandDetails)) {
|
|
291
|
+
mAnnotatedActionsWithCommand[oCommandDetails.id] = oCommandDetails;
|
|
292
|
+
}
|
|
293
|
+
break;
|
|
294
|
+
case "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation":
|
|
295
|
+
var oCommandDetails = oComponentUtils.getTableDataFieldForIBNCommandDetails(oDataField, oLrSettings, oInternalManifest, oLrSettings.quickVariantSelectionX ? oLrSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined);
|
|
296
|
+
if (!isEmptyObject(oCommandDetails)) {
|
|
297
|
+
mOutboundActionsWithCommand[oCommandDetails.id] = oCommandDetails;
|
|
298
|
+
}
|
|
299
|
+
break;
|
|
300
|
+
default:
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
|
|
244
305
|
return {
|
|
245
|
-
commandExecution: deepExtend(
|
|
306
|
+
commandExecution: deepExtend(oStandardActions, mCustomActionsWithCommand, mAnnotatedActionsWithCommand, mOutboundActionsWithCommand),
|
|
246
307
|
extensionActions: aExtensionActionsWithoutLogicalAction
|
|
247
308
|
};
|
|
248
309
|
}
|
|
@@ -302,7 +302,7 @@ sap.ui.define([
|
|
|
302
302
|
}
|
|
303
303
|
|
|
304
304
|
function fnGetSearchString() {
|
|
305
|
-
// in case of Worklist, no basicSearchField is configured to the SFB, so first part of expression would return empty string.
|
|
305
|
+
// in case of Worklist, no basicSearchField is configured to the SFB, so first part of expression would return empty string.
|
|
306
306
|
return oState.oSmartFilterbar.getBasicSearchValue() || oState.oWorklistHandler.getSearchString();
|
|
307
307
|
}
|
|
308
308
|
|
|
@@ -323,6 +323,8 @@ sap.ui.define([
|
|
|
323
323
|
sSubject = oTemplateUtils.oCommonUtils.getText("EMAIL_HEADER", [sSubject]);
|
|
324
324
|
sap.m.URLHelper.triggerEmail(null, sSubject, sCurrentUrl);
|
|
325
325
|
break;
|
|
326
|
+
default:
|
|
327
|
+
break;
|
|
326
328
|
}
|
|
327
329
|
});
|
|
328
330
|
oBusyHelper.setBusy(oTriggerPromise);
|
|
@@ -522,11 +524,6 @@ sap.ui.define([
|
|
|
522
524
|
oController.byId("template::FilterText").attachBrowserEvent("click", function () {
|
|
523
525
|
oController.byId("page").setHeaderExpanded(true);
|
|
524
526
|
});
|
|
525
|
-
//To keep the placeholders in listReport intact even after data loads for apps with applyAutomatically enabled, as routematched the placeholders of the already visited page is removed.
|
|
526
|
-
var oTemplatePrivateGlobal = oTemplateUtils.oComponentUtils.getTemplatePrivateGlobalModel();
|
|
527
|
-
oTemplatePrivateGlobal.setProperty("/generic/bRetainPlaceholder", true);
|
|
528
|
-
|
|
529
|
-
|
|
530
527
|
},
|
|
531
528
|
|
|
532
529
|
handlers: {
|
|
@@ -561,10 +558,6 @@ sap.ui.define([
|
|
|
561
558
|
oState.oIappStateHandler.onSmartFilterBarInitialized();
|
|
562
559
|
},
|
|
563
560
|
|
|
564
|
-
onBeforeSFBVariantFetch: function () {
|
|
565
|
-
oState.oIappStateHandler.onBeforeSFBVariantFetch();
|
|
566
|
-
},
|
|
567
|
-
|
|
568
561
|
onAfterSFBVariantLoad: function (oEvent) {
|
|
569
562
|
oState.oIappStateHandler.onAfterSFBVariantLoad(oEvent);
|
|
570
563
|
},
|
|
@@ -614,8 +607,6 @@ sap.ui.define([
|
|
|
614
607
|
onSmartChartDataReceived: function () {
|
|
615
608
|
oState.oMultipleViewsHandler.onDataRequested();
|
|
616
609
|
oTemplateUtils.oComponentUtils.hidePlaceholder();
|
|
617
|
-
var oTemplatePrivateGlobal = oTemplateUtils.oComponentUtils.getTemplatePrivateGlobalModel();
|
|
618
|
-
oTemplatePrivateGlobal.setProperty("/generic/bRetainPlaceholder", false);
|
|
619
610
|
},
|
|
620
611
|
|
|
621
612
|
onBeforeRebindTable: function (oEvent) {
|
|
@@ -734,10 +725,6 @@ sap.ui.define([
|
|
|
734
725
|
oState.oMultipleViewsHandler.onDetailsActionPress(oEvent);
|
|
735
726
|
},
|
|
736
727
|
|
|
737
|
-
// ---------------------------------------------
|
|
738
|
-
// END store navigation context
|
|
739
|
-
// ---------------------------------------------
|
|
740
|
-
|
|
741
728
|
onShareListReportActionButtonPress: function (oEvent) {
|
|
742
729
|
oTemplateUtils.oCommonUtils.executeIfControlReady(onShareListReportActionButtonPressImpl, "template::Share");
|
|
743
730
|
},
|