@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.133.1
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 +2 -2
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +0 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +7 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +3 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +11 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +82 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +55 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +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/controls/DynamicPage.designtime.js +74 -17
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +22 -11
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +142 -38
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +43 -19
- package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +18 -18
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +19 -16
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +10 -7
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +32 -44
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +47 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
- package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +3 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +15 -19
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +3 -0
- package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +2 -3
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +13 -1
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +41 -36
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +5 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +11 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +9 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +4 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +3 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +92 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +3 -0
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
|
@@ -31,6 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @property {Partial<DesigntimeSetting>[]} [writeObject] - An array of DesigntimeSetting objects.
|
|
32
32
|
* @property {string} [writeObjectFor] - The value for which the writeObject should be applied.
|
|
33
33
|
* @property {boolean} [skipChange] - Indicates if the change should be skipped.
|
|
34
|
+
* @property {boolean} keyUser - Indicates if the setting is allowed for key user.
|
|
34
35
|
|
|
35
36
|
===============================================
|
|
36
37
|
* @typedef {Object} ChangeParameters - Descriptor change parameters.
|
|
@@ -54,12 +55,12 @@ sap.ui.define([
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
* Retrieves the runtime adaptation properties based on the allowed design-time settings and global settings.
|
|
59
|
+
*
|
|
60
|
+
* @param {Array} aAllowedDesigntimeSettings - The array of allowed design-time settings.
|
|
61
|
+
* @param {Object} mFilterSettings - The global manifest settings object.
|
|
62
|
+
* @returns {Object} - The object containing the runtime adaptation properties.
|
|
63
|
+
*/
|
|
63
64
|
function getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings) {
|
|
64
65
|
const mPropertyValues = {};
|
|
65
66
|
|
|
@@ -67,13 +68,21 @@ sap.ui.define([
|
|
|
67
68
|
const sProperty = oSetting.id;
|
|
68
69
|
switch (sProperty) {
|
|
69
70
|
case "useDateRange":
|
|
70
|
-
mPropertyValues[sProperty] = mFilterSettings[sProperty]
|
|
71
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
|
|
71
72
|
break;
|
|
72
73
|
case "navigationProperties":
|
|
73
|
-
mPropertyValues[sProperty] = mFilterSettings[sProperty]
|
|
74
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
|
|
74
75
|
break;
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
case "showGoButtonOnFilterBar":
|
|
78
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
|
|
79
|
+
break;
|
|
80
|
+
case "hideVisualFilter":
|
|
81
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
|
|
82
|
+
break;
|
|
83
|
+
case "defaultFilterMode":
|
|
84
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] ?? oSetting.value;
|
|
85
|
+
break;
|
|
77
86
|
default:
|
|
78
87
|
break;
|
|
79
88
|
}
|
|
@@ -81,6 +90,46 @@ sap.ui.define([
|
|
|
81
90
|
return mPropertyValues;
|
|
82
91
|
}
|
|
83
92
|
|
|
93
|
+
/**
|
|
94
|
+
* Retrieves the navigation properties for the SmartFilterBar control.
|
|
95
|
+
* Filters out excluded properties and only includes 0..1 navigation properties.
|
|
96
|
+
*
|
|
97
|
+
* @param {object} oControl - The SmartFilterBar control instance.
|
|
98
|
+
* @returns {Array<string>} - The array of valid navigation property names.
|
|
99
|
+
* @throws {Error} - Throws an error if the entity set cannot be retrieved.
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
function getNavigationProperties(oControl) {
|
|
103
|
+
|
|
104
|
+
function getNavigationPropertyNames(oEntityType) {
|
|
105
|
+
return (oEntityType.navigationProperty || []).map(oNavigationProperty => oNavigationProperty.name);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function isNotExcludedProperty(sNavigationProperty) {
|
|
109
|
+
const excludedProperties = ["SiblingEntity", "DraftAdministrativeData"];
|
|
110
|
+
return !excludedProperties.includes(sNavigationProperty);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function isCardinalitySupported(oMetaModel, oEntityType, sNavigationProperty) {
|
|
114
|
+
const multiplicity = oMetaModel.getODataAssociationEnd(oEntityType, sNavigationProperty).multiplicity;
|
|
115
|
+
return multiplicity.endsWith("1");
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const oMetaModel = oControl.getModel().getMetaModel();
|
|
119
|
+
// Get the entity set of the SmartFilterBar control
|
|
120
|
+
const sEntitySet = oControl.getEntitySet?.();
|
|
121
|
+
if (!sEntitySet){
|
|
122
|
+
throw new Error("Error while retrieving the entity set of the SmartFilterBar control");
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const oEntityType = oMetaModel.getODataEntityType(oMetaModel.getODataEntitySet(sEntitySet).entityType);
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
return getNavigationPropertyNames(oEntityType)
|
|
129
|
+
.filter(sNavigationProperty => isCardinalitySupported(oMetaModel, oEntityType, sNavigationProperty))
|
|
130
|
+
.filter(isNotExcludedProperty);
|
|
131
|
+
}
|
|
132
|
+
|
|
84
133
|
/**
|
|
85
134
|
* Retrieves the designtime settings for the Control.
|
|
86
135
|
* @param {object} oControl - The Control object.
|
|
@@ -101,25 +150,6 @@ sap.ui.define([
|
|
|
101
150
|
});
|
|
102
151
|
}
|
|
103
152
|
|
|
104
|
-
/**
|
|
105
|
-
* Retrieves the navigation properties for the SmartFilterBar control.
|
|
106
|
-
* @returns {Array<string>} - The array of navigation properties.
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
function getNavigationProperties() {
|
|
110
|
-
const oMetaModel = oControl.getModel().getMetaModel();
|
|
111
|
-
// Get the entity set of the SmartFilterBar control
|
|
112
|
-
const sEntitySet = oControl.getEntitySet?.();
|
|
113
|
-
if (!sEntitySet){
|
|
114
|
-
throw new Error("Error while retrieving the entity set of the SmartFilterBar control");
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
const oEntityType = oMetaModel.getODataEntityType(oMetaModel.getODataEntitySet(sEntitySet).entityType);
|
|
118
|
-
// Sibling entity types are the navigation properties
|
|
119
|
-
return (oEntityType.navigationProperty || [])
|
|
120
|
-
.map(oNavigationProperty => oNavigationProperty.name)
|
|
121
|
-
.filter(sNavigationProperty => sNavigationProperty !== "SiblingEntity");
|
|
122
|
-
}
|
|
123
153
|
|
|
124
154
|
/**
|
|
125
155
|
* @type {DesigntimeSetting}
|
|
@@ -134,7 +164,8 @@ sap.ui.define([
|
|
|
134
164
|
getPath: function (mControlDetails) {
|
|
135
165
|
return `component/settings/filterSettings/dateSettings/useDateRange`;
|
|
136
166
|
},
|
|
137
|
-
restrictedTo: [LIST_REPORT_COMPONENT_NAME, ANALYTICAL_LIST_PAGE_COMPONENT_NAME]
|
|
167
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME, ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
|
|
168
|
+
keyUser: true
|
|
138
169
|
};
|
|
139
170
|
|
|
140
171
|
|
|
@@ -151,12 +182,79 @@ sap.ui.define([
|
|
|
151
182
|
return `component/settings/filterSettings/navigationProperties`;
|
|
152
183
|
},
|
|
153
184
|
value: [],
|
|
154
|
-
restrictedTo: [LIST_REPORT_COMPONENT_NAME
|
|
155
|
-
enums: getEnums(getNavigationProperties())
|
|
185
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME],
|
|
186
|
+
enums: getEnums(getNavigationProperties(oControl)),
|
|
187
|
+
keyUser: true
|
|
156
188
|
};
|
|
157
189
|
|
|
190
|
+
/**
|
|
191
|
+
* @type {DesigntimeSetting}
|
|
192
|
+
*/
|
|
158
193
|
|
|
159
|
-
|
|
194
|
+
const showGoButtonOnFilterBar = {
|
|
195
|
+
id: "showGoButtonOnFilterBar",
|
|
196
|
+
name: "Show Go Button on Filter Bar",
|
|
197
|
+
description: "Show Go Button on Filter Bar",
|
|
198
|
+
value: false,
|
|
199
|
+
type: "boolean",
|
|
200
|
+
getPath: function (mControlDetails) {
|
|
201
|
+
return `component/settings/showGoButtonOnFilterBar`;
|
|
202
|
+
},
|
|
203
|
+
restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
|
|
204
|
+
keyUser: true
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @type {DesigntimeSetting}
|
|
209
|
+
*/
|
|
210
|
+
|
|
211
|
+
const hideVisualFilter = {
|
|
212
|
+
id: "hideVisualFilter",
|
|
213
|
+
name: "Hide Visual Filter",
|
|
214
|
+
description: "Hide Visual Filter",
|
|
215
|
+
value: false,
|
|
216
|
+
type: "boolean",
|
|
217
|
+
getPath: function (mControlDetails) {
|
|
218
|
+
return `component/settings/hideVisualFilter`;
|
|
219
|
+
},
|
|
220
|
+
restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
|
|
221
|
+
keyUser: true
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* @type {DesigntimeSetting}
|
|
226
|
+
*/
|
|
227
|
+
|
|
228
|
+
const defaultFilterMode = {
|
|
229
|
+
id: "defaultFilterMode",
|
|
230
|
+
name: "Default Filter Mode",
|
|
231
|
+
description: "Default Filter Mode",
|
|
232
|
+
value: "visual",
|
|
233
|
+
type: "string",
|
|
234
|
+
enums: [
|
|
235
|
+
{
|
|
236
|
+
id: "visual",
|
|
237
|
+
name: "Visual"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
id: "compact",
|
|
241
|
+
name: "Compact"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
getPath: function (mControlDetails) {
|
|
245
|
+
return `component/settings/defaultFilterMode`;
|
|
246
|
+
},
|
|
247
|
+
restrictedTo: [ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
|
|
248
|
+
keyUser: true
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
return [
|
|
252
|
+
enableDateRange,
|
|
253
|
+
navigationProperties,
|
|
254
|
+
defaultFilterMode,
|
|
255
|
+
showGoButtonOnFilterBar,
|
|
256
|
+
hideVisualFilter
|
|
257
|
+
];
|
|
160
258
|
};
|
|
161
259
|
|
|
162
260
|
|
|
@@ -165,14 +263,13 @@ sap.ui.define([
|
|
|
165
263
|
const mFilterSettings = oComponent.getFilterSettings();
|
|
166
264
|
return {
|
|
167
265
|
useDateRange: ObjectPath.get("dateSettings.useDateRange", mFilterSettings),
|
|
168
|
-
|
|
169
|
-
|
|
266
|
+
navigationProperties: ObjectPath.get("navigationProperties", mFilterSettings),
|
|
267
|
+
hideVisualFilter: !!oComponent.getHideVisualFilter?.(),
|
|
268
|
+
defaultFilterMode: oComponent.getDefaultFilterMode?.(),
|
|
269
|
+
showGoButtonOnFilterBar: !!oComponent.getShowGoButtonOnFilterBar?.()
|
|
170
270
|
};
|
|
171
271
|
}
|
|
172
272
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
273
|
/**
|
|
177
274
|
* Opens the dialog for the table configuration.
|
|
178
275
|
* @param {sap.ui.core.Control} oControl - The control for which the dialog should be opened.
|
|
@@ -188,7 +285,14 @@ sap.ui.define([
|
|
|
188
285
|
// Get all the designtime settings
|
|
189
286
|
const aAllDesigntimeSettings = getAllDesigntimeSettings(oControl);
|
|
190
287
|
// Get the allowed designtime settings based on the floorplan
|
|
191
|
-
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* @type {DesigntimeSetting[]}
|
|
291
|
+
*/
|
|
292
|
+
let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oControl, aAllDesigntimeSettings);
|
|
293
|
+
|
|
294
|
+
// Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
|
|
295
|
+
aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
|
|
192
296
|
|
|
193
297
|
// Get the current values of the properties
|
|
194
298
|
const mRuntimeAdaptationPropertyValues = getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings);
|
|
@@ -29,6 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @property {boolean=} bSupportsGlobalScope - Indicates if the setting supports global scope. (Default: false)
|
|
30
30
|
* @property {string[]=} restrictedTo - The array of components for which the setting is restricted.
|
|
31
31
|
* @property {boolean=} bGlobalSettingsOnly - Indicates if the setting is only available in global settings. (Default: false)
|
|
32
|
+
* @property {boolean} keyUser - Indicates if the setting is allowed for key user.
|
|
32
33
|
*/
|
|
33
34
|
|
|
34
35
|
/**
|
|
@@ -129,28 +130,28 @@ sap.ui.define([
|
|
|
129
130
|
const sProperty = oSetting.id;
|
|
130
131
|
switch (sProperty) {
|
|
131
132
|
case "type":
|
|
132
|
-
mPropertyValues[sProperty] = oTableSettings.type
|
|
133
|
+
mPropertyValues[sProperty] = oTableSettings.type ?? oSetting.value;
|
|
133
134
|
break;
|
|
134
135
|
case "multiSelect":
|
|
135
|
-
mPropertyValues[sProperty] = oTableSettings.multiSelect
|
|
136
|
+
mPropertyValues[sProperty] = oTableSettings.multiSelect ?? oSetting.value;
|
|
136
137
|
break;
|
|
137
138
|
case "createMode":
|
|
138
|
-
mPropertyValues[sProperty] = oTableSettings.createMode
|
|
139
|
+
mPropertyValues[sProperty] = oTableSettings.createMode ?? oSetting.value;
|
|
139
140
|
break;
|
|
140
141
|
case "selectAll":
|
|
141
|
-
mPropertyValues[sProperty] = oTableSettings.selectAll
|
|
142
|
+
mPropertyValues[sProperty] = oTableSettings.selectAll ?? oSetting.value;
|
|
142
143
|
break;
|
|
143
144
|
case "condensedTableLayout":
|
|
144
|
-
mPropertyValues[sProperty] = oTableSettings.condensedTableLayout
|
|
145
|
+
mPropertyValues[sProperty] = oTableSettings.condensedTableLayout ?? oSetting.value;
|
|
145
146
|
break;
|
|
146
147
|
case "widthIncludingColumnHeader":
|
|
147
|
-
mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader
|
|
148
|
+
mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader ?? oSetting.value;
|
|
148
149
|
break;
|
|
149
150
|
case "addCardtoInsightsHidden":
|
|
150
|
-
mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden
|
|
151
|
+
mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden ?? oSetting.value;
|
|
151
152
|
break;
|
|
152
153
|
case "selectionLimit":
|
|
153
|
-
mPropertyValues[sProperty] = oTableSettings.selectionLimit
|
|
154
|
+
mPropertyValues[sProperty] = oTableSettings.selectionLimit ?? oSetting.value;
|
|
154
155
|
break;
|
|
155
156
|
default:
|
|
156
157
|
break;
|
|
@@ -159,12 +160,28 @@ sap.ui.define([
|
|
|
159
160
|
return mPropertyValues;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
async function fnOpenTableConfigurationDialog(
|
|
163
|
+
async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
|
|
164
|
+
// if control is not a SmartTable, find the parent SmartTable
|
|
165
|
+
// work around for the issue where the SmartTable is not selectable in the RTA
|
|
166
|
+
const oSmartTable = oControl.isA("sap.ui.comp.smarttable.SmartTable") ? oControl : oControl.getParent();
|
|
167
|
+
|
|
168
|
+
if (!oSmartTable.isA("sap.ui.comp.smarttable.SmartTable")) {
|
|
169
|
+
throw new Error("The SmartTable control could not be found");
|
|
170
|
+
}
|
|
171
|
+
|
|
163
172
|
const oResourceModel = oSmartTable.getModel("i18n");
|
|
164
173
|
const oComponent = designtimeUtils.getOwnerComponentFor(oSmartTable);
|
|
165
174
|
const sComponentName = oComponent.getMetadata().getComponentName();
|
|
166
175
|
// Get the allowed designtime settings for the SmartTable
|
|
167
|
-
const
|
|
176
|
+
const aAllDesigntimeSettings = getAllDesigntimeSettings(oSmartTable);
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @type {DesigntimeSetting[]}
|
|
180
|
+
*/
|
|
181
|
+
let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oSmartTable, aAllDesigntimeSettings);
|
|
182
|
+
|
|
183
|
+
// Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
|
|
184
|
+
aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
|
|
168
185
|
|
|
169
186
|
// Get the other table properties outside of the tableSettings Eg: settings/condensedTableLayout
|
|
170
187
|
const aOtherTableProperties = ["condensedTableLayout"];
|
|
@@ -296,7 +313,7 @@ sap.ui.define([
|
|
|
296
313
|
* @param {object} oSmartTable - The SmartTable object.
|
|
297
314
|
* @returns {DesigntimeSetting[]} - The designtime settings for the SmartTable.
|
|
298
315
|
*/
|
|
299
|
-
let
|
|
316
|
+
let getAllDesigntimeSettings = function getAllDesigntimeSettings(oSmartTable) {
|
|
300
317
|
/**
|
|
301
318
|
* @type {DesigntimeSetting}
|
|
302
319
|
*/
|
|
@@ -313,7 +330,8 @@ sap.ui.define([
|
|
|
313
330
|
{ id: "TreeTable", name: "Tree Table" },
|
|
314
331
|
{ id: "AnalyticalTable", name: "Analytical Table" }
|
|
315
332
|
],
|
|
316
|
-
bSupportsGlobalScope: false
|
|
333
|
+
bSupportsGlobalScope: false,
|
|
334
|
+
keyUser: true
|
|
317
335
|
};
|
|
318
336
|
|
|
319
337
|
/**
|
|
@@ -331,7 +349,8 @@ sap.ui.define([
|
|
|
331
349
|
enums: [
|
|
332
350
|
{ id: "false", name: "Single" },
|
|
333
351
|
{ id: "true", name: "Multi" }
|
|
334
|
-
]
|
|
352
|
+
],
|
|
353
|
+
keyUser: true
|
|
335
354
|
};
|
|
336
355
|
|
|
337
356
|
/**
|
|
@@ -344,7 +363,8 @@ sap.ui.define([
|
|
|
344
363
|
value: false,
|
|
345
364
|
type: "boolean",
|
|
346
365
|
getPath: getPathForTableSettings("selectAll"),
|
|
347
|
-
bSupportsGlobalScope: false
|
|
366
|
+
bSupportsGlobalScope: false,
|
|
367
|
+
keyUser: true
|
|
348
368
|
};
|
|
349
369
|
|
|
350
370
|
// /**
|
|
@@ -376,7 +396,8 @@ sap.ui.define([
|
|
|
376
396
|
value: false,
|
|
377
397
|
type: "boolean",
|
|
378
398
|
getPath: () => "component/settings/condensedTableLayout",
|
|
379
|
-
bSupportsGlobalScope: false
|
|
399
|
+
bSupportsGlobalScope: false,
|
|
400
|
+
keyUser: true
|
|
380
401
|
};
|
|
381
402
|
|
|
382
403
|
/**
|
|
@@ -391,7 +412,8 @@ sap.ui.define([
|
|
|
391
412
|
getPath: getPathForTableSettings("widthIncludingColumnHeader"),
|
|
392
413
|
bSupportsGlobalScope: true,
|
|
393
414
|
restrictedTo: [sListReportComponentName],
|
|
394
|
-
bGlobalSettingsOnly: true
|
|
415
|
+
bGlobalSettingsOnly: true,
|
|
416
|
+
keyUser: true
|
|
395
417
|
};
|
|
396
418
|
|
|
397
419
|
/**
|
|
@@ -404,7 +426,8 @@ sap.ui.define([
|
|
|
404
426
|
value: false,
|
|
405
427
|
type: "boolean",
|
|
406
428
|
getPath: getPathForTableSettings("addCardtoInsightsHidden"),
|
|
407
|
-
restrictedTo: [sListReportComponentName]
|
|
429
|
+
restrictedTo: [sListReportComponentName],
|
|
430
|
+
keyUser: true
|
|
408
431
|
};
|
|
409
432
|
|
|
410
433
|
/**
|
|
@@ -416,7 +439,8 @@ sap.ui.define([
|
|
|
416
439
|
description: "Define the selection limit",
|
|
417
440
|
value: 300,
|
|
418
441
|
type: "number",
|
|
419
|
-
getPath: getPathForTableSettings("selectionLimit")
|
|
442
|
+
getPath: getPathForTableSettings("selectionLimit"),
|
|
443
|
+
keyUser: true
|
|
420
444
|
};
|
|
421
445
|
|
|
422
446
|
|
|
@@ -439,7 +463,7 @@ sap.ui.define([
|
|
|
439
463
|
};
|
|
440
464
|
|
|
441
465
|
// Expose the functions for QUnit tests
|
|
442
|
-
|
|
466
|
+
getAllDesigntimeSettings = testableHelper.testableStatic(getAllDesigntimeSettings, "getAllDesigntimeSettings");
|
|
443
467
|
getPathForTableSettings = testableHelper.testableStatic(getPathForTableSettings, "getPathForTableSettings");
|
|
444
468
|
testableHelper.testableStatic(getRuntimeAdapationProperties, "getRuntimeAdapationProperties");
|
|
445
469
|
testableHelper.testableStatic(getManifestTableSettings, "getManifestTableSettings");
|
package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js
CHANGED
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Provides the design time metadata for the sap.suite.ui.generic.template.AnalyticalListPage component
|
|
8
8
|
|
|
9
|
-
sap.ui.define([
|
|
10
|
-
|
|
9
|
+
sap.ui.define([
|
|
10
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
|
|
11
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
|
|
12
|
+
],
|
|
13
|
+
function (designtimeHelper, designtimeUtils) {
|
|
11
14
|
"use strict";
|
|
12
15
|
|
|
13
|
-
// allow list for designtime adaptation / level-0.
|
|
16
|
+
// allow list for designtime adaptation / level-0.
|
|
14
17
|
var mAllowLevel0 = {
|
|
15
18
|
"sap.f.DynamicPage": {
|
|
16
19
|
properties: ["headerExpanded", "preserveHeaderStateOnScroll"]
|
|
@@ -42,7 +45,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
42
45
|
properties: ["liveMode", "showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "considerPresentationVariant"]
|
|
43
46
|
},
|
|
44
47
|
"sap.m.Table": {
|
|
45
|
-
properties: ["growingThreshold"]
|
|
48
|
+
properties: ["growingThreshold", "rememberSelections"]
|
|
46
49
|
},
|
|
47
50
|
"sap.m.Column": {
|
|
48
51
|
properties: ["width", "hAlign"]
|
|
@@ -60,12 +63,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
60
63
|
properties: ["scrollThreshold"]
|
|
61
64
|
}
|
|
62
65
|
};
|
|
63
|
-
|
|
64
|
-
// grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
|
|
66
|
+
|
|
67
|
+
// grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
|
|
65
68
|
var mGreyLevel0 = {
|
|
66
|
-
"sap.suite.ui.generic.template.AnalyticalListPage.control.smartfilterbarext:SmartFilterBarExt": {
|
|
67
|
-
properties: ["useDateRangeType"]
|
|
68
|
-
},
|
|
69
69
|
"sap.ui.table.AnalyticalTable": {
|
|
70
70
|
properties: ["selectionMode", "minAutoRowCount", "visibleRowCountMode"]
|
|
71
71
|
},
|
|
@@ -76,12 +76,12 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
76
76
|
properties: ["header", "useTooltip"]
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
|
-
|
|
80
|
-
// allow list for key user adaptation.
|
|
79
|
+
|
|
80
|
+
// allow list for key user adaptation.
|
|
81
81
|
var mAllowKeyUser = {
|
|
82
82
|
"sap.m.MenuButton": { // used for create and create with filters and possibly created by combining of buttons
|
|
83
83
|
actions: ["split", "rename", "remove"]
|
|
84
|
-
},
|
|
84
|
+
},
|
|
85
85
|
"sap.m.Button": {
|
|
86
86
|
actions: ["remove", "reveal", "rename"]
|
|
87
87
|
},
|
|
@@ -104,7 +104,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
104
104
|
actions: ["rename"]
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
// allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
|
|
109
109
|
// this mode is indicated by url parameter fiori-tools-rta-mode=true
|
|
110
110
|
var mAllowVariantManagement = {
|
|
@@ -127,8 +127,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
127
127
|
// there's no reliable way to differentiate designtime adaptation and key user adaptation. However
|
|
128
128
|
// - property changes are possible only in designtime adaptation
|
|
129
129
|
// - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
|
|
130
|
-
const sRtaModeValue =
|
|
131
|
-
const mAllow = sRtaModeValue ===
|
|
132
|
-
|
|
133
|
-
});
|
|
134
|
-
|
|
130
|
+
const sRtaModeValue = designtimeUtils.getRtaModeValue();
|
|
131
|
+
const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
|
|
132
|
+
return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
|
|
133
|
+
});
|
|
134
|
+
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Provides the design time metadata for the sap.suite.ui.generic.template.ListReport component
|
|
8
8
|
|
|
9
|
-
sap.ui.define([
|
|
10
|
-
|
|
9
|
+
sap.ui.define([
|
|
10
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
|
|
11
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
|
|
12
|
+
],
|
|
13
|
+
function (designtimeHelper, designtimeUtils) {
|
|
11
14
|
"use strict";
|
|
12
15
|
|
|
13
|
-
// allow list for designtime adaptation / level-0.
|
|
16
|
+
// allow list for designtime adaptation / level-0.
|
|
14
17
|
var mAllowLevel0 = {
|
|
15
18
|
"sap.f.DynamicPage": {
|
|
16
19
|
properties: ["fitContent"]
|
|
@@ -23,7 +26,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
23
26
|
actions: ["settings"]
|
|
24
27
|
},
|
|
25
28
|
"sap.m.Table": {
|
|
26
|
-
properties: ["popinLayout", "includeItemInSelection", "growingThreshold"]
|
|
29
|
+
properties: ["popinLayout", "includeItemInSelection", "growingThreshold", "rememberSelections"]
|
|
27
30
|
},
|
|
28
31
|
"sap.m.Column": {
|
|
29
32
|
properties: ["width", "hAlign"]
|
|
@@ -62,8 +65,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
62
65
|
properties: ["scrollThreshold"]
|
|
63
66
|
}
|
|
64
67
|
};
|
|
65
|
-
|
|
66
|
-
// grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
|
|
68
|
+
|
|
69
|
+
// grey list for designtime adaptation / level-0 (no technical difference too allow list, separated just for documentation
|
|
67
70
|
var mGreyLevel0 = {
|
|
68
71
|
"sap.f.DynamicPage": {
|
|
69
72
|
properties: ["headerExpanded"]
|
|
@@ -72,7 +75,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
72
75
|
properties: ["width"]
|
|
73
76
|
},
|
|
74
77
|
"sap.ui.comp.smartfilterbar.SmartFilterBar": {
|
|
75
|
-
properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "
|
|
78
|
+
properties: ["showClearOnFB", "showFilterConfiguration", "showRestoreOnFB", "filterBarExpanded", "showGoOnFB"]
|
|
76
79
|
},
|
|
77
80
|
"sap.m.Label": { // not created by us, but by SFB
|
|
78
81
|
properties: ["width", "wrapping"]
|
|
@@ -120,8 +123,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
120
123
|
properties: ["type"]
|
|
121
124
|
}
|
|
122
125
|
};
|
|
123
|
-
|
|
124
|
-
// allow list for key user adaptation.
|
|
126
|
+
|
|
127
|
+
// allow list for key user adaptation.
|
|
125
128
|
var mAllowKeyUser = {
|
|
126
129
|
"sap.ui.comp.smartform.SmartForm": { // used in multiedit dialog
|
|
127
130
|
aggregations: {
|
|
@@ -143,7 +146,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
143
146
|
},
|
|
144
147
|
"sap.m.MenuButton": { // used for create and create with filters and possibly created by combining of buttons
|
|
145
148
|
actions: ["split", "rename", "remove"]
|
|
146
|
-
},
|
|
149
|
+
},
|
|
147
150
|
"sap.m.Button": {
|
|
148
151
|
actions: ["remove", "reveal", "rename"]
|
|
149
152
|
},
|
|
@@ -166,7 +169,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
166
169
|
actions: ["rename"]
|
|
167
170
|
}
|
|
168
171
|
};
|
|
169
|
-
|
|
172
|
+
|
|
170
173
|
// allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
|
|
171
174
|
// this mode is indicated by url parameter fiori-tools-rta-mode=true
|
|
172
175
|
var mAllowVariantManagement = {
|
|
@@ -189,8 +192,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
189
192
|
// there's no reliable way to differentiate designtime adaptation and key user adaptation. However
|
|
190
193
|
// - property changes are possible only in designtime adaptation
|
|
191
194
|
// - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
|
|
192
|
-
const sRtaModeValue =
|
|
193
|
-
const mAllow = sRtaModeValue ===
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
const sRtaModeValue = designtimeUtils.getRtaModeValue();
|
|
196
|
+
const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
|
|
197
|
+
return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
|
|
198
|
+
});
|
|
199
|
+
|
|
@@ -6,8 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// Provides the design time metadata for the sap.suite.ui.generic.template.ObjectPage component
|
|
8
8
|
|
|
9
|
-
sap.ui.define([
|
|
10
|
-
|
|
9
|
+
sap.ui.define([
|
|
10
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeHelper",
|
|
11
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeUtils"
|
|
12
|
+
],
|
|
13
|
+
function (designtimeHelper, designtimeUtils) {
|
|
11
14
|
"use strict";
|
|
12
15
|
|
|
13
16
|
// allow list for designtime adaptation / level-0.
|
|
@@ -40,7 +43,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
40
43
|
actions: ["settings"]
|
|
41
44
|
},
|
|
42
45
|
"sap.m.Table": {
|
|
43
|
-
properties: ["growingThreshold", "popinLayout", "includeItemInSelection"] // growingThreshold should not be possible in single section with single subsection
|
|
46
|
+
properties: ["growingThreshold", "popinLayout", "includeItemInSelection", "rememberSelections"] // growingThreshold should not be possible in single section with single subsection
|
|
44
47
|
},
|
|
45
48
|
"sap.m.Column": {
|
|
46
49
|
properties: ["width", "hAlign"]
|
|
@@ -274,8 +277,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
274
277
|
// there's no reliable way to differentiate designtime adaptation and key user adaptation. However
|
|
275
278
|
// - property changes are possible only in designtime adaptation
|
|
276
279
|
// - for any other changes (using change handlers), we anyway need to be prepared for the change if it is allowed in one mode, so it shouldn't matter if it's also possible in the other mode
|
|
277
|
-
const sRtaModeValue =
|
|
278
|
-
const mAllow = sRtaModeValue ===
|
|
279
|
-
|
|
280
|
+
const sRtaModeValue = designtimeUtils.getRtaModeValue();
|
|
281
|
+
const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
|
|
282
|
+
return designtimeHelper.getViewDesignTime(mAllow);
|
|
280
283
|
|
|
281
|
-
|
|
284
|
+
});
|