@sapui5/sap.suite.ui.generic.template 1.105.0 → 1.105.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/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +7 -3
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +7 -7
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/DynamicPageWrapper.js +6 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +4 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +6 -0
- 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
|
@@ -137,12 +137,12 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
137
137
|
|
|
138
138
|
// handle keyboard shortcut related manifest settings for actions defined via annotations e.g. DataFieldForAction and DataFieldForIBN
|
|
139
139
|
function fnGetAnnotatedActionsCommandDetails(sTabIdentifier) {
|
|
140
|
-
function fnGetCommandDetails(
|
|
140
|
+
function fnGetCommandDetails(aControlAnnotations, bIsChart) {
|
|
141
141
|
var oCommands = {
|
|
142
142
|
mAnnotatedActionsWithCommand: Object.create(null),
|
|
143
143
|
mOutboundActionsWithCommand: Object.create(null)
|
|
144
144
|
};
|
|
145
|
-
|
|
145
|
+
aControlAnnotations.forEach(function (oDataField) {
|
|
146
146
|
switch (oDataField.RecordType) {
|
|
147
147
|
case "com.sap.vocabularies.UI.v1.DataFieldForAction":
|
|
148
148
|
var oCommandDetails = oComponentUtils.getToolbarDataFieldForActionCommandDetails(oDataField, oAlpSettings, oAlpSettings.quickVariantSelectionX ? oAlpSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined, undefined, bIsChart);
|
|
@@ -166,7 +166,11 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
166
166
|
var oQualifiers = fnGetQualifiers(sTabIdentifier);
|
|
167
167
|
var oLineItemCommands = fnGetCommandDetails(oEntityType["com.sap.vocabularies.UI.v1.LineItem" + (oQualifiers.sLineItemQualifier ? "#" + oQualifiers.sLineItemQualifier : "")] || [], false);
|
|
168
168
|
var oChartAnnotations = oEntityType["com.sap.vocabularies.UI.v1.Chart" + (oQualifiers.sChartQualifier ? "#" + oQualifiers.sChartQualifier : "")];
|
|
169
|
-
|
|
169
|
+
/* Chart's actions object in the metamodel could be:
|
|
170
|
+
an empty object, if empty Actions property has been defined
|
|
171
|
+
an array with objects, if atleast one action has been defined under Actions property
|
|
172
|
+
an empty array, if Actions property has been defined with an empty collection */
|
|
173
|
+
var oChartCommands = fnGetCommandDetails(oChartAnnotations && !isEmptyObject(oChartAnnotations.Actions) ? oChartAnnotations.Actions : [], true);
|
|
170
174
|
|
|
171
175
|
return {
|
|
172
176
|
tableSettings: {
|
|
@@ -204,7 +204,11 @@ sap.ui.define([
|
|
|
204
204
|
// (which is used to get and set the state if variant is saved/loaded)
|
|
205
205
|
// However, for iAppState case, SVM wrapper also needs to contain SFB wrapper (and not oCustomFiltersWrapper directly)
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
// DynamicPage state: header pinned
|
|
208
|
+
var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
|
|
209
|
+
// TODO: Discuss: should this state (header pinned) be part of variant (only page variant or SFB variant)? Assumption: no
|
|
210
|
+
var oDynamicPageWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage);
|
|
211
|
+
aControlStateWrappers.push(oDynamicPageWrapper);
|
|
208
212
|
|
|
209
213
|
// SmartVariantManagement state: Selected Variant and whether it's dirty, including wrappers for managed controls (all controls, for which the corresponding state
|
|
210
214
|
// information should be part of the variant)
|
|
@@ -215,18 +219,14 @@ sap.ui.define([
|
|
|
215
219
|
var oSmartVariantManagement = oState.oSmartFilterbar.getSmartVariant();
|
|
216
220
|
if (oSmartVariantManagement){
|
|
217
221
|
var oSmartVariantManagementWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oSmartVariantManagement, {
|
|
218
|
-
managedControlWrappers: aPageVariantControlStateWrappers.concat([oSmartFilterBarWrapper])
|
|
222
|
+
managedControlWrappers: aPageVariantControlStateWrappers.concat([oSmartFilterBarWrapper]),
|
|
223
|
+
dynamicPageWrapper: oDynamicPageWrapper
|
|
219
224
|
});
|
|
220
225
|
aControlStateWrappers.push(oSmartVariantManagementWrapper);
|
|
221
226
|
} else {
|
|
222
227
|
aControlStateWrappers.push(oSmartFilterBarWrapper);
|
|
223
228
|
}
|
|
224
229
|
|
|
225
|
-
// DynamicPage state: header pinned
|
|
226
|
-
var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
|
|
227
|
-
// TODO: Discuss: should this state (header pinned) be part of variant (only page variant or SFB variant)? Assumption: no
|
|
228
|
-
aControlStateWrappers.push(oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage));
|
|
229
|
-
|
|
230
230
|
// Wrapper to control whether data is loaded
|
|
231
231
|
|
|
232
232
|
function fnGetDataLoadedWrapper(){
|
|
@@ -25,10 +25,15 @@ sap.ui.define([
|
|
|
25
25
|
oDynamicPage.attachPinnedStateChange(fnHandler);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
function fnSetHeaderState(oController, bHeaderToBeExpanded) {
|
|
29
|
+
oController.getOwnerComponent().getModel("_templPriv").setProperty("/listReport/isHeaderExpanded", bHeaderToBeExpanded);
|
|
30
|
+
}
|
|
31
|
+
|
|
28
32
|
return {
|
|
29
33
|
getState: fnGetDynamicPageState,
|
|
30
34
|
setState: fnSetDynamicPageState,
|
|
31
|
-
attachStateChanged: fnAttachStateChanged
|
|
35
|
+
attachStateChanged: fnAttachStateChanged,
|
|
36
|
+
setHeaderState: fnSetHeaderState
|
|
32
37
|
};
|
|
33
38
|
}
|
|
34
39
|
|
|
@@ -51,7 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
// in SFB instead of SVM where it would make more sense.
|
|
52
52
|
// Here the event is afterVariantLoad, as the variant content known to SVM/SFB has first to be applied to the SFB, which will also pass the custom data accordingly. Only
|
|
53
53
|
// after this has happened, we can get the custom data from SFB.
|
|
54
|
-
oSmartFilterBar.attachAfterVariantLoad(function(){
|
|
54
|
+
oSmartFilterBar.attachAfterVariantLoad(function(oEvent){
|
|
55
55
|
var oCustomData = oSmartFilterBar.getCustomFilterData();
|
|
56
56
|
// variant stored with 1.103 or later: all customFilter data stored in property customFilters
|
|
57
57
|
// legacy variant stored with 1.102 or earlier: customFilters (from storing point of view) separated according to their origin
|
|
@@ -63,6 +63,9 @@ sap.ui.define([
|
|
|
63
63
|
|
|
64
64
|
mParams.oCustomFiltersWrapper.setState(oCustomFiltersState);
|
|
65
65
|
oSVMWrapperCallbacks.setManagedControlStates(oCustomData[dataPropertyNameGeneric]);
|
|
66
|
+
/* SFB header state of a variant (standard or custom) gets determined by the Apply Automatically checkbox's value of the corresponding
|
|
67
|
+
variant i.e. if the checkbox is checked, then the header should be collapsed and vice versa. */
|
|
68
|
+
oSVMWrapperCallbacks.setHeaderState(!oEvent.getParameter("executeOnSelect"));
|
|
66
69
|
});
|
|
67
70
|
|
|
68
71
|
}
|
|
@@ -8,6 +8,7 @@ sap.ui.define([], function() {
|
|
|
8
8
|
* @param {object} oFactory - the controlStateWrapperFactory
|
|
9
9
|
* @param {object} mParams
|
|
10
10
|
* @param mParams.managedControlWrappers - array of controlStateWrappers for controls handled by the SVM (currently also including SFB wrapper - to be removed)
|
|
11
|
+
* @param mParams.dynamicPageWrapper - dynamicPageWrapper instance handled by SVM
|
|
11
12
|
* @returns
|
|
12
13
|
*/
|
|
13
14
|
|
|
@@ -48,6 +49,8 @@ sap.ui.define([], function() {
|
|
|
48
49
|
});
|
|
49
50
|
|
|
50
51
|
// provide callbacks needed for SFB wrapper to store/restore extnesion state with variant
|
|
52
|
+
|
|
53
|
+
|
|
51
54
|
if (oSmartFilterBarWrapper){
|
|
52
55
|
oSmartFilterBarWrapper.setSVMWrapperCallbacks({
|
|
53
56
|
getManagedControlStates: function(){
|
|
@@ -65,6 +68,9 @@ sap.ui.define([], function() {
|
|
|
65
68
|
oWrapper.setState(oState[oWrapper.getLocalId()]);
|
|
66
69
|
}
|
|
67
70
|
});
|
|
71
|
+
},
|
|
72
|
+
setHeaderState: function(bHeaderToBeExpanded) {
|
|
73
|
+
mParams.dynamicPageWrapper.setHeaderState(oController, bHeaderToBeExpanded);
|
|
68
74
|
}
|
|
69
75
|
});
|
|
70
76
|
}
|
|
@@ -2934,7 +2934,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2934
2934
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
2935
2935
|
* @public
|
|
2936
2936
|
* @extends sap.ui.base.Object
|
|
2937
|
-
* @version 1.105.
|
|
2937
|
+
* @version 1.105.2
|
|
2938
2938
|
* @since 1.30.0
|
|
2939
2939
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
2940
2940
|
*/
|
|
@@ -39,7 +39,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/core/library','sap/fe/placeholder/lib
|
|
|
39
39
|
interfaces: [],
|
|
40
40
|
controls: [],
|
|
41
41
|
elements: [],
|
|
42
|
-
version: "1.105.
|
|
42
|
+
version: "1.105.2",
|
|
43
43
|
extensions: {
|
|
44
44
|
//Configuration used for rule loading of Support Assistant
|
|
45
45
|
"sap.ui.support": {
|