@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.134.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 +1 -1
- 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/i18n/i18n.properties +7 -7
- 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/extensionAPI/ExtensionAPI.js +11 -3
- 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 +13 -11
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/ListReport.view.xml +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/DraftTransactionController.js +8 -10
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +36 -16
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +59 -10
- 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/templateSpecificPreparationHelper.js +233 -125
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Facet.fragment.xml +32 -27
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +8 -12
- 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 +44 -16
- 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 +71 -46
- package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +21 -19
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +22 -17
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +14 -8
- 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/detailTemplates/DiscardEditHandler.js +13 -0
- 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 +4 -3
- package/src/sap/suite/ui/generic/template/fragments/SmartControlContextMenu.fragment.xml +1 -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 +78 -25
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +4 -1
- 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 -2
- package/src/sap/suite/ui/generic/template/lib/Application.js +2 -0
- 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/ComponentUtils.js +13 -2
- package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +1 -0
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +124 -2
- 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/SideEffectUtil.js +39 -2
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +20 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +9 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +6 -2
- 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 +8 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +32 -20
- 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
|
/**
|
|
@@ -92,7 +93,9 @@ sap.ui.define([
|
|
|
92
93
|
const oSections = oComponent.getSections();
|
|
93
94
|
const sSectionKey = getSectionKey(oSmartTable);
|
|
94
95
|
const oSectionTableSettings = oSections?.[sSectionKey]?.tableSettings || {};
|
|
95
|
-
|
|
96
|
+
// Fetch the create mode from smart table's custom data
|
|
97
|
+
const oCreateMode = {"createMode": oSmartTable.data("creationMode")};
|
|
98
|
+
oEffectiveTableSettings = merge(oSupportedGlobalTableSettings, oSectionTableSettings, oCreateMode);
|
|
96
99
|
} else {
|
|
97
100
|
const oComponentTableSettings = oComponent.getTableSettings() || {};
|
|
98
101
|
let oSelectedVariantTableSettings = {};
|
|
@@ -122,35 +125,35 @@ sap.ui.define([
|
|
|
122
125
|
* @param {object} oTableSettings - The table settings from the manifest.
|
|
123
126
|
* @returns {Object} - The adaptation properties for the SmartTable.
|
|
124
127
|
*/
|
|
125
|
-
function
|
|
128
|
+
function getRuntimeAdaptationProperties(aDesigntimeSettings, oTableSettings) {
|
|
126
129
|
const mPropertyValues = {};
|
|
127
130
|
// Handle the multiple ways of defining the table type?
|
|
128
131
|
aDesigntimeSettings.forEach(oSetting => {
|
|
129
132
|
const sProperty = oSetting.id;
|
|
130
133
|
switch (sProperty) {
|
|
131
134
|
case "type":
|
|
132
|
-
mPropertyValues[sProperty] = oTableSettings.type
|
|
135
|
+
mPropertyValues[sProperty] = oTableSettings.type ?? oSetting.value;
|
|
133
136
|
break;
|
|
134
137
|
case "multiSelect":
|
|
135
|
-
mPropertyValues[sProperty] = oTableSettings.multiSelect
|
|
138
|
+
mPropertyValues[sProperty] = oTableSettings.multiSelect ?? oSetting.value;
|
|
136
139
|
break;
|
|
137
140
|
case "createMode":
|
|
138
|
-
mPropertyValues[sProperty] = oTableSettings.createMode
|
|
141
|
+
mPropertyValues[sProperty] = oTableSettings.createMode ?? oSetting.value;
|
|
139
142
|
break;
|
|
140
143
|
case "selectAll":
|
|
141
|
-
mPropertyValues[sProperty] = oTableSettings.selectAll
|
|
144
|
+
mPropertyValues[sProperty] = oTableSettings.selectAll ?? oSetting.value;
|
|
142
145
|
break;
|
|
143
146
|
case "condensedTableLayout":
|
|
144
|
-
mPropertyValues[sProperty] = oTableSettings.condensedTableLayout
|
|
147
|
+
mPropertyValues[sProperty] = oTableSettings.condensedTableLayout ?? oSetting.value;
|
|
145
148
|
break;
|
|
146
149
|
case "widthIncludingColumnHeader":
|
|
147
|
-
mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader
|
|
150
|
+
mPropertyValues[sProperty] = oTableSettings.widthIncludingColumnHeader ?? oSetting.value;
|
|
148
151
|
break;
|
|
149
152
|
case "addCardtoInsightsHidden":
|
|
150
|
-
mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden
|
|
153
|
+
mPropertyValues[sProperty] = oTableSettings.addCardtoInsightsHidden ?? oSetting.value;
|
|
151
154
|
break;
|
|
152
155
|
case "selectionLimit":
|
|
153
|
-
mPropertyValues[sProperty] = oTableSettings.selectionLimit
|
|
156
|
+
mPropertyValues[sProperty] = oTableSettings.selectionLimit ?? oSetting.value;
|
|
154
157
|
break;
|
|
155
158
|
default:
|
|
156
159
|
break;
|
|
@@ -159,12 +162,28 @@ sap.ui.define([
|
|
|
159
162
|
return mPropertyValues;
|
|
160
163
|
}
|
|
161
164
|
|
|
162
|
-
async function fnOpenTableConfigurationDialog(
|
|
165
|
+
async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
|
|
166
|
+
// if control is not a SmartTable, find the parent SmartTable
|
|
167
|
+
// work around for the issue where the SmartTable is not selectable in the RTA
|
|
168
|
+
const oSmartTable = oControl.isA("sap.ui.comp.smarttable.SmartTable") ? oControl : oControl.getParent();
|
|
169
|
+
|
|
170
|
+
if (!oSmartTable.isA("sap.ui.comp.smarttable.SmartTable")) {
|
|
171
|
+
throw new Error("The SmartTable control could not be found");
|
|
172
|
+
}
|
|
173
|
+
|
|
163
174
|
const oResourceModel = oSmartTable.getModel("i18n");
|
|
164
175
|
const oComponent = designtimeUtils.getOwnerComponentFor(oSmartTable);
|
|
165
176
|
const sComponentName = oComponent.getMetadata().getComponentName();
|
|
166
177
|
// Get the allowed designtime settings for the SmartTable
|
|
167
|
-
const
|
|
178
|
+
const aAllDesigntimeSettings = getAllDesigntimeSettings(oSmartTable);
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* @type {DesigntimeSetting[]}
|
|
182
|
+
*/
|
|
183
|
+
let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oSmartTable, aAllDesigntimeSettings);
|
|
184
|
+
|
|
185
|
+
// Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
|
|
186
|
+
aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
|
|
168
187
|
|
|
169
188
|
// Get the other table properties outside of the tableSettings Eg: settings/condensedTableLayout
|
|
170
189
|
const aOtherTableProperties = ["condensedTableLayout"];
|
|
@@ -178,7 +197,7 @@ sap.ui.define([
|
|
|
178
197
|
const mTableSettings = getManifestTableSettings(oSmartTable);
|
|
179
198
|
|
|
180
199
|
// Get the current values of the properties
|
|
181
|
-
const mRuntimeAdaptationPropertyValues =
|
|
200
|
+
const mRuntimeAdaptationPropertyValues = getRuntimeAdaptationProperties(aAllowedDesigntimeSettings, Object.assign(mOtherTableSettings, mTableSettings));
|
|
182
201
|
|
|
183
202
|
// Save the unchanged data to compare later
|
|
184
203
|
const mUnchangedData = deepClone(mRuntimeAdaptationPropertyValues);
|
|
@@ -296,7 +315,7 @@ sap.ui.define([
|
|
|
296
315
|
* @param {object} oSmartTable - The SmartTable object.
|
|
297
316
|
* @returns {DesigntimeSetting[]} - The designtime settings for the SmartTable.
|
|
298
317
|
*/
|
|
299
|
-
let
|
|
318
|
+
let getAllDesigntimeSettings = function getAllDesigntimeSettings(oSmartTable) {
|
|
300
319
|
/**
|
|
301
320
|
* @type {DesigntimeSetting}
|
|
302
321
|
*/
|
|
@@ -313,7 +332,8 @@ sap.ui.define([
|
|
|
313
332
|
{ id: "TreeTable", name: "Tree Table" },
|
|
314
333
|
{ id: "AnalyticalTable", name: "Analytical Table" }
|
|
315
334
|
],
|
|
316
|
-
bSupportsGlobalScope: false
|
|
335
|
+
bSupportsGlobalScope: false,
|
|
336
|
+
keyUser: false
|
|
317
337
|
};
|
|
318
338
|
|
|
319
339
|
/**
|
|
@@ -331,7 +351,8 @@ sap.ui.define([
|
|
|
331
351
|
enums: [
|
|
332
352
|
{ id: "false", name: "Single" },
|
|
333
353
|
{ id: "true", name: "Multi" }
|
|
334
|
-
]
|
|
354
|
+
],
|
|
355
|
+
keyUser: true
|
|
335
356
|
};
|
|
336
357
|
|
|
337
358
|
/**
|
|
@@ -344,27 +365,30 @@ sap.ui.define([
|
|
|
344
365
|
value: false,
|
|
345
366
|
type: "boolean",
|
|
346
367
|
getPath: getPathForTableSettings("selectAll"),
|
|
347
|
-
bSupportsGlobalScope: false
|
|
368
|
+
bSupportsGlobalScope: false,
|
|
369
|
+
keyUser: true
|
|
348
370
|
};
|
|
349
371
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
372
|
+
/**
|
|
373
|
+
* @type {DesigntimeSetting}
|
|
374
|
+
*/
|
|
375
|
+
const createMode = {
|
|
376
|
+
id: "createMode",
|
|
377
|
+
name: "Create Mode",
|
|
378
|
+
description: "Define the create mode",
|
|
379
|
+
value: "creationRows",
|
|
380
|
+
type: "string",
|
|
381
|
+
getPath: (mSmartTableInfo) => `component/settings/sections/${mSmartTableInfo.sSectionKey}/createMode`,
|
|
382
|
+
enums: [
|
|
383
|
+
{ id: "newPage", name: "New Page" },
|
|
384
|
+
{ id: "inline", name: "Inline" },
|
|
385
|
+
{ id: "creationRows", name: "Inline Creation Rows" },
|
|
386
|
+
{ id: "creationRowsHiddenInEditMode", name: "Inline Creation Rows (Hidden in edit page)" }
|
|
387
|
+
],
|
|
388
|
+
bSupportsGlobalScope: true,
|
|
389
|
+
restrictedTo: [sObjectPageComponentName],
|
|
390
|
+
keyUser: true
|
|
391
|
+
};
|
|
368
392
|
|
|
369
393
|
/**
|
|
370
394
|
* @type {DesigntimeSetting}
|
|
@@ -376,7 +400,8 @@ sap.ui.define([
|
|
|
376
400
|
value: false,
|
|
377
401
|
type: "boolean",
|
|
378
402
|
getPath: () => "component/settings/condensedTableLayout",
|
|
379
|
-
bSupportsGlobalScope: false
|
|
403
|
+
bSupportsGlobalScope: false,
|
|
404
|
+
keyUser: true
|
|
380
405
|
};
|
|
381
406
|
|
|
382
407
|
/**
|
|
@@ -390,8 +415,8 @@ sap.ui.define([
|
|
|
390
415
|
type: "boolean",
|
|
391
416
|
getPath: getPathForTableSettings("widthIncludingColumnHeader"),
|
|
392
417
|
bSupportsGlobalScope: true,
|
|
393
|
-
|
|
394
|
-
|
|
418
|
+
bGlobalSettingsOnly: true,
|
|
419
|
+
keyUser: true
|
|
395
420
|
};
|
|
396
421
|
|
|
397
422
|
/**
|
|
@@ -399,12 +424,13 @@ sap.ui.define([
|
|
|
399
424
|
*/
|
|
400
425
|
const addCardtoInsightsHidden = {
|
|
401
426
|
id: "addCardtoInsightsHidden",
|
|
402
|
-
name: "
|
|
427
|
+
name: "Hide \"Add Card to Insights\"",
|
|
403
428
|
description: "Define if the table should have a insights button",
|
|
404
429
|
value: false,
|
|
405
430
|
type: "boolean",
|
|
406
431
|
getPath: getPathForTableSettings("addCardtoInsightsHidden"),
|
|
407
|
-
restrictedTo: [sListReportComponentName]
|
|
432
|
+
restrictedTo: [sListReportComponentName],
|
|
433
|
+
keyUser: true
|
|
408
434
|
};
|
|
409
435
|
|
|
410
436
|
/**
|
|
@@ -416,18 +442,17 @@ sap.ui.define([
|
|
|
416
442
|
description: "Define the selection limit",
|
|
417
443
|
value: 300,
|
|
418
444
|
type: "number",
|
|
419
|
-
getPath: getPathForTableSettings("selectionLimit")
|
|
445
|
+
getPath: getPathForTableSettings("selectionLimit"),
|
|
446
|
+
keyUser: true
|
|
420
447
|
};
|
|
421
448
|
|
|
422
|
-
|
|
423
|
-
|
|
424
449
|
const designtimeSettings = [
|
|
425
450
|
tableType,
|
|
426
451
|
condensedTableLayout,
|
|
427
452
|
widthIncludingColumnHeader,
|
|
428
453
|
selectionMode,
|
|
429
454
|
selectAll,
|
|
430
|
-
|
|
455
|
+
createMode,
|
|
431
456
|
selectionLimit,
|
|
432
457
|
addCardtoInsightsHidden
|
|
433
458
|
];
|
|
@@ -439,9 +464,9 @@ sap.ui.define([
|
|
|
439
464
|
};
|
|
440
465
|
|
|
441
466
|
// Expose the functions for QUnit tests
|
|
442
|
-
|
|
467
|
+
getAllDesigntimeSettings = testableHelper.testableStatic(getAllDesigntimeSettings, "getAllDesigntimeSettings");
|
|
443
468
|
getPathForTableSettings = testableHelper.testableStatic(getPathForTableSettings, "getPathForTableSettings");
|
|
444
|
-
testableHelper.testableStatic(
|
|
469
|
+
testableHelper.testableStatic(getRuntimeAdaptationProperties, "getRuntimeAdaptationProperties");
|
|
445
470
|
testableHelper.testableStatic(getManifestTableSettings, "getManifestTableSettings");
|
|
446
471
|
testableHelper.testableStatic(getSelectedTabKey, "getSelectedTabKey");
|
|
447
472
|
testableHelper.testableStatic(getVariantInfo, "getVariantInfo");
|
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
|
},
|
|
@@ -92,7 +92,9 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
92
92
|
actions: ["compVariant"] // allows to adapt filters (same as adapt filters for end user)
|
|
93
93
|
},
|
|
94
94
|
"sap.suite.ui.generic.template.AnalyticalListPage.control.SmartFilterBarExt": {
|
|
95
|
-
|
|
95
|
+
// compVariant - allows to adapt filters (same as adapt filters for end user)
|
|
96
|
+
// annotation - allows to change text arrangement
|
|
97
|
+
actions: ["compVariant", "annotation"]
|
|
96
98
|
},
|
|
97
99
|
"sap.ui.comp.smarttable.SmartTable": {
|
|
98
100
|
actions: ["compVariant"] // allows table personalization (same as for end user)
|
|
@@ -104,7 +106,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
104
106
|
actions: ["rename"]
|
|
105
107
|
}
|
|
106
108
|
};
|
|
107
|
-
|
|
109
|
+
|
|
108
110
|
// allow list for variant management: All changes done here are stored with a variant, and only applied when that variant is selected.
|
|
109
111
|
// this mode is indicated by url parameter fiori-tools-rta-mode=true
|
|
110
112
|
var mAllowVariantManagement = {
|
|
@@ -127,8 +129,8 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
127
129
|
// there's no reliable way to differentiate designtime adaptation and key user adaptation. However
|
|
128
130
|
// - property changes are possible only in designtime adaptation
|
|
129
131
|
// - 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
|
-
|
|
132
|
+
const sRtaModeValue = designtimeUtils.getRtaModeValue();
|
|
133
|
+
const mAllow = sRtaModeValue === designtimeUtils.FioriToolsRtaMode.True ? mAllowVariantManagement : designtimeHelper.getMergedAllowList([mAllowLevel0, mGreyLevel0, mAllowKeyUser]);
|
|
134
|
+
return designtimeHelper.getViewDesignTime(mAllow, sRtaModeValue);
|
|
135
|
+
});
|
|
136
|
+
|