@sapui5/sap.suite.ui.generic.template 1.132.0 → 1.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +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/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 +63 -10
- 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 +37 -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/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/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 +93 -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
|
@@ -45,15 +45,35 @@ RESUME=\u6062\u590D
|
|
|
45
45
|
|
|
46
46
|
MSG_SUBTITLE_ROW=\u884C\uFF1A{0}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
MSG_SUBTITLE_ROW_COLUMN=\u884C\uFF1A{0}\uFF1A{1}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
MSG_SUBTITLE_ROW_COLUMN_HIDDEN=\u884C\uFF1A{0}\uFF08\u9690\u85CF\uFF09\uFF1A{1}
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
MSG_SUBTITLE_ROW_MORE_DETAILS=\u884C\uFF1A\u8BF7\u53C2\u9605\u6D88\u606F\u8BE6\u7EC6\u4FE1\u606F
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
MSG_SUBTITLE_ROW_EMPTY=\u5217\uFF1A{0}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
MSG_SUBTITLE_ROW_HIDDEN=\u884C\uFF08\u9690\u85CF\uFF09\uFF1A{0}\uFF1A{1}
|
|
57
|
+
|
|
58
|
+
MSG_SUBTITLE_ROW_HIDDEN_COLUMN=\u884C\uFF08\u9690\u85CF\uFF09\uFF1A{0}\uFF1A{1}
|
|
59
|
+
|
|
60
|
+
MSG_SUBTITLE_ROW_HIDDEN_COLUMN_HIDDEN=\u884C\uFF08\u9690\u85CF\uFF09\uFF1A{0}\uFF08\u9690\u85CF\uFF09\uFF1A{1}
|
|
61
|
+
|
|
62
|
+
MSG_SUBTITLE_ROW_HIDDEN_MORE_DETAILS=\u884C\uFF1A\u8BF7\u53C2\u9605\u6D88\u606F\u8BE6\u7EC6\u4FE1\u606F
|
|
63
|
+
|
|
64
|
+
MSG_SUBTITLE_ROW_HIDDEN_EMPTY=\u5217\uFF1A{0}
|
|
65
|
+
|
|
66
|
+
MSG_DESCRIPTION_ROW_TABLE=\u8868\uFF1A{0}
|
|
67
|
+
|
|
68
|
+
MSG_DESCRIPTION_ROW=\u884C\uFF1A
|
|
69
|
+
|
|
70
|
+
MSG_DESCRIPTION_ROW_HIDDEN=\u884C\uFF08\u9690\u85CF\uFF09\uFF1A
|
|
71
|
+
|
|
72
|
+
MSG_DESCRIPTION_COLUMN=\u5217\uFF1A{0}
|
|
73
|
+
|
|
74
|
+
MSG_DESCRIPTION_COLUMN_VALUE={0}\uFF1A{1}
|
|
75
|
+
|
|
76
|
+
MSG_DESCRIPTION_COLUMN_VALUE_HIDDEN={0}\uFF08\u9690\u85CF\uFF09\uFF1A{1}
|
|
57
77
|
|
|
58
78
|
CONTACT_INFO=\u8054\u7CFB\u4EBA\u4FE1\u606F
|
|
59
79
|
|
|
@@ -45,15 +45,35 @@ RESUME=\u91CD\u65B0\u7E7C\u7E8C
|
|
|
45
45
|
|
|
46
46
|
MSG_SUBTITLE_ROW=\u5217\uFF1A{0}
|
|
47
47
|
|
|
48
|
-
|
|
48
|
+
MSG_SUBTITLE_ROW_COLUMN=\u5217\uFF1A{0}\uFF1A{1}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
MSG_SUBTITLE_ROW_COLUMN_HIDDEN=\u5217\uFF1A{0} (\u5DF2\u96B1\u85CF)\uFF1A{1}
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
MSG_SUBTITLE_ROW_MORE_DETAILS=\u5217\uFF1A\u67E5\u770B\u8A0A\u606F\u660E\u7D30
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
MSG_SUBTITLE_ROW_EMPTY=\u6B04\uFF1A{0}
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
MSG_SUBTITLE_ROW_HIDDEN=\u5217 (\u5DF2\u96B1\u85CF)\uFF1A{0}\uFF1A{1}
|
|
57
|
+
|
|
58
|
+
MSG_SUBTITLE_ROW_HIDDEN_COLUMN=\u5217 (\u5DF2\u96B1\u85CF)\uFF1A{0}\uFF1A{1}
|
|
59
|
+
|
|
60
|
+
MSG_SUBTITLE_ROW_HIDDEN_COLUMN_HIDDEN=\u5217 (\u5DF2\u96B1\u85CF)\uFF1A{0} (\u5DF2\u96B1\u85CF)\uFF1A{1}
|
|
61
|
+
|
|
62
|
+
MSG_SUBTITLE_ROW_HIDDEN_MORE_DETAILS=\u5217\uFF1A\u67E5\u770B\u8A0A\u606F\u660E\u7D30
|
|
63
|
+
|
|
64
|
+
MSG_SUBTITLE_ROW_HIDDEN_EMPTY=\u6B04\uFF1A{0}
|
|
65
|
+
|
|
66
|
+
MSG_DESCRIPTION_ROW_TABLE=\u8868\u683C\uFF1A{0}
|
|
67
|
+
|
|
68
|
+
MSG_DESCRIPTION_ROW=\u5217\uFF1A
|
|
69
|
+
|
|
70
|
+
MSG_DESCRIPTION_ROW_HIDDEN=\u5217 (\u5DF2\u96B1\u85CF)\uFF1A
|
|
71
|
+
|
|
72
|
+
MSG_DESCRIPTION_COLUMN=\u6B04\uFF1A{0}
|
|
73
|
+
|
|
74
|
+
MSG_DESCRIPTION_COLUMN_VALUE={0}\uFF1A{1}
|
|
75
|
+
|
|
76
|
+
MSG_DESCRIPTION_COLUMN_VALUE_HIDDEN={0} (\u5DF2\u96B1\u85CF)\uFF1A{1}
|
|
57
77
|
|
|
58
78
|
CONTACT_INFO=\u806F\u7D61\u4EBA\u8CC7\u8A0A
|
|
59
79
|
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
delete="._templateEventHandlers.deleteEntry"
|
|
199
199
|
itemPress="._templateEventHandlers.onListNavigate"
|
|
200
200
|
updateFinished="._templateEventHandlers.checkUpdateFinished"
|
|
201
|
-
sticky="ColumnHeaders,HeaderToolbar,InfoToolbar"
|
|
201
|
+
sticky="ColumnHeaders,HeaderToolbar,InfoToolbar,GroupHeaders"
|
|
202
202
|
rememberSelections="false"
|
|
203
203
|
multiSelectMode="{= (${objectPageTableSettings>value/multiSelect} && ${objectPageTableSettings>value/selectAll}) ? 'SelectAll' : 'ClearAll'}">
|
|
204
204
|
<template:with path="objectPageTableSettings>value" var="tableSettings">
|
|
@@ -13,6 +13,9 @@ sap.ui.define([
|
|
|
13
13
|
function (deepClone, designtimeUtils, ObjectPath, testableHelper) {
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
|
+
const LIST_REPORT_COMPONENT_NAME = "sap.suite.ui.generic.template.ListReport";
|
|
17
|
+
const ALP_COMPONENT_NAME = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
18
|
+
|
|
16
19
|
/**
|
|
17
20
|
* @typedef {Object} DesigntimeSetting
|
|
18
21
|
* @property {string} id - The ID of the designtime setting.
|
|
@@ -27,7 +30,7 @@ sap.ui.define([
|
|
|
27
30
|
* @property {Partial<DesigntimeSetting>[]} [writeObject] - An array of DesigntimeSetting objects.
|
|
28
31
|
* @property {string} [writeObjectFor] - The value for which the writeObject should be applied.
|
|
29
32
|
* @property {boolean} [skipChange] - Indicates if the change should be skipped.
|
|
30
|
-
|
|
33
|
+
* @property {boolean} keyUser - Indicates if the setting is allowed for key user.
|
|
31
34
|
===============================================
|
|
32
35
|
* @typedef {Object} ChangeParameters - Descriptor change parameters.
|
|
33
36
|
* @property {string} [sScope] - The scope of the manifest setting.
|
|
@@ -66,7 +69,7 @@ sap.ui.define([
|
|
|
66
69
|
name: "Variant Management",
|
|
67
70
|
description: "Enable Smart Variant Management",
|
|
68
71
|
type: "booleanOrString",
|
|
69
|
-
value:
|
|
72
|
+
value: true,
|
|
70
73
|
enums: [
|
|
71
74
|
{
|
|
72
75
|
id: "true",
|
|
@@ -77,7 +80,8 @@ sap.ui.define([
|
|
|
77
80
|
name: "Per Control"
|
|
78
81
|
}
|
|
79
82
|
],
|
|
80
|
-
getPath: () => getSettingsPath("smartVariantManagement")
|
|
83
|
+
getPath: () => getSettingsPath("smartVariantManagement"),
|
|
84
|
+
keyUser: true
|
|
81
85
|
|
|
82
86
|
};
|
|
83
87
|
|
|
@@ -90,7 +94,9 @@ sap.ui.define([
|
|
|
90
94
|
description: "Hide Variant Management",
|
|
91
95
|
type: "boolean",
|
|
92
96
|
value: false,
|
|
93
|
-
getPath: () => getSettingsPath("variantManagementHidden")
|
|
97
|
+
getPath: () => getSettingsPath("variantManagementHidden"),
|
|
98
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME],
|
|
99
|
+
keyUser: true
|
|
94
100
|
};
|
|
95
101
|
|
|
96
102
|
/**
|
|
@@ -102,7 +108,8 @@ sap.ui.define([
|
|
|
102
108
|
description: "Enable Table Filter in Page Variant",
|
|
103
109
|
type: "boolean",
|
|
104
110
|
value: false,
|
|
105
|
-
getPath: () => getSettingsPath("enableTableFilterInPageVariant")
|
|
111
|
+
getPath: () => getSettingsPath("enableTableFilterInPageVariant"),
|
|
112
|
+
keyUser: false
|
|
106
113
|
};
|
|
107
114
|
|
|
108
115
|
|
|
@@ -130,7 +137,8 @@ sap.ui.define([
|
|
|
130
137
|
name: "Disabled"
|
|
131
138
|
}
|
|
132
139
|
],
|
|
133
|
-
getPath: () => "component/settings/dataLoadSettings/loadDataOnAppLaunch"
|
|
140
|
+
getPath: () => "component/settings/dataLoadSettings/loadDataOnAppLaunch",
|
|
141
|
+
keyUser: true
|
|
134
142
|
};
|
|
135
143
|
|
|
136
144
|
/**
|
|
@@ -147,17 +155,48 @@ sap.ui.define([
|
|
|
147
155
|
{ id: "direct", name: "true" },
|
|
148
156
|
{ id: "display", name: "false" }
|
|
149
157
|
|
|
150
|
-
]
|
|
158
|
+
],
|
|
159
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME],
|
|
160
|
+
keyUser: true
|
|
151
161
|
};
|
|
152
162
|
|
|
163
|
+
/**
|
|
164
|
+
* @type {DesigntimeSetting}
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
const defaultContentView = {
|
|
168
|
+
id: "defaultContentView",
|
|
169
|
+
name: "Default Content View",
|
|
170
|
+
description: "Default Content View",
|
|
171
|
+
type: "string",
|
|
172
|
+
value: "chart",
|
|
173
|
+
enums: [
|
|
174
|
+
{
|
|
175
|
+
id: "charttable",
|
|
176
|
+
name: "Hybrid"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
id: "chart",
|
|
180
|
+
name: "Chart"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: "table",
|
|
184
|
+
name: "Table"
|
|
185
|
+
}
|
|
153
186
|
|
|
187
|
+
],
|
|
188
|
+
getPath: () => getSettingsPath("defaultContentView"),
|
|
189
|
+
restrictedTo:[ALP_COMPONENT_NAME],
|
|
190
|
+
keyUser: true
|
|
191
|
+
};
|
|
154
192
|
|
|
155
193
|
return [
|
|
156
194
|
smartVariantManagement,
|
|
157
195
|
hideVariantManagement,
|
|
158
196
|
enableTableFilterInPageVariant,
|
|
159
197
|
initialLoad,
|
|
160
|
-
openInEditMode
|
|
198
|
+
openInEditMode,
|
|
199
|
+
defaultContentView
|
|
161
200
|
];
|
|
162
201
|
|
|
163
202
|
}
|
|
@@ -183,19 +222,22 @@ sap.ui.define([
|
|
|
183
222
|
const sProperty = oSetting.id;
|
|
184
223
|
switch (sProperty) {
|
|
185
224
|
case "smartVariantManagement":
|
|
186
|
-
mPropertyValues[sProperty] = mLrOrALPSettings.smartVariantManagement
|
|
225
|
+
mPropertyValues[sProperty] = mLrOrALPSettings.smartVariantManagement ?? oSetting.value;
|
|
187
226
|
break;
|
|
188
227
|
case "variantManagementHidden":
|
|
189
|
-
mPropertyValues[sProperty] = mLrOrALPSettings.variantManagementHidden
|
|
228
|
+
mPropertyValues[sProperty] = mLrOrALPSettings.variantManagementHidden ?? oSetting.value;
|
|
190
229
|
break;
|
|
191
230
|
case "enableTableFilterInPageVariant":
|
|
192
|
-
mPropertyValues[sProperty] = mLrOrALPSettings.enableTableFilterInPageVariant
|
|
231
|
+
mPropertyValues[sProperty] = mLrOrALPSettings.enableTableFilterInPageVariant ?? oSetting.value;
|
|
193
232
|
break;
|
|
194
233
|
case "loadDataOnAppLaunch":
|
|
195
|
-
mPropertyValues[sProperty] = ObjectPath.get("dataLoadSettings.loadDataOnAppLaunch", mLrOrALPSettings)
|
|
234
|
+
mPropertyValues[sProperty] = ObjectPath.get("dataLoadSettings.loadDataOnAppLaunch", mLrOrALPSettings) ?? oSetting.value;
|
|
196
235
|
break;
|
|
197
236
|
case "editFlow":
|
|
198
|
-
mPropertyValues[sProperty] = mLrOrALPSettings.editFlow
|
|
237
|
+
mPropertyValues[sProperty] = mLrOrALPSettings.editFlow ?? oSetting.value;
|
|
238
|
+
break;
|
|
239
|
+
case "defaultContentView":
|
|
240
|
+
mPropertyValues[sProperty] = mLrOrALPSettings.defaultContentView ?? oSetting.value;
|
|
199
241
|
break;
|
|
200
242
|
default:
|
|
201
243
|
break;
|
|
@@ -216,8 +258,21 @@ sap.ui.define([
|
|
|
216
258
|
async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
|
|
217
259
|
const oResourceModel = oControl.getModel("i18n");
|
|
218
260
|
const oComponent = designtimeUtils.getOwnerComponentFor(oControl);
|
|
261
|
+
const sComponentName = oComponent.getMetadata().getComponentName();
|
|
219
262
|
const mLrOrALPSettings = oComponent.mProperties;
|
|
220
|
-
|
|
263
|
+
|
|
264
|
+
// Get all the designtime settings
|
|
265
|
+
const aAllDesigntimeSettings = getAllDesigntimeSettings(oControl);
|
|
266
|
+
// Get the allowed designtime settings based on the floorplan
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* @type {DesigntimeSetting[]}
|
|
270
|
+
*/
|
|
271
|
+
let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oControl, aAllDesigntimeSettings);
|
|
272
|
+
|
|
273
|
+
// Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
|
|
274
|
+
aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
|
|
275
|
+
|
|
221
276
|
|
|
222
277
|
// Get the current values of the properties
|
|
223
278
|
const mRuntimeAdaptationPropertyValues = getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mLrOrALPSettings);
|
|
@@ -226,9 +281,11 @@ sap.ui.define([
|
|
|
226
281
|
// Get the settings of the dialog from the designtime settings using which the dialog will be created
|
|
227
282
|
const aItems = designtimeUtils.getSettings(mRuntimeAdaptationPropertyValues, aAllowedDesigntimeSettings);
|
|
228
283
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
284
|
+
let sDialogTitle = "{i18n>RTA_CONFIGURATION_TITLE_LIST_REPORT}";
|
|
285
|
+
if (sComponentName === "sap.suite.ui.generic.template.AnalyticalListPage") {
|
|
286
|
+
sDialogTitle = "{i18n>RTA_CONFIGURATION_TITLE_ANALYTICAL_LIST_PAGE}";
|
|
287
|
+
}
|
|
288
|
+
const mPropertyValuesEntered = await designtimeUtils.openAdaptionDialog([...aItems], mRuntimeAdaptationPropertyValues, mUnchangedData, sDialogTitle, { width: "650px", height: "800px" }, oResourceModel);
|
|
232
289
|
|
|
233
290
|
|
|
234
291
|
/**
|
package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js
CHANGED
|
@@ -27,6 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @property {Partial<DesigntimeSetting>[]} [writeObject] - An array of DesigntimeSetting objects.
|
|
28
28
|
* @property {string} [writeObjectFor] - The value for which the writeObject should be applied.
|
|
29
29
|
* @property {boolean} [skipChange] - Indicates if the change should be skipped.
|
|
30
|
+
* @property {boolean} keyUser - Indicates if the setting is allowed for key user.
|
|
30
31
|
|
|
31
32
|
===============================================
|
|
32
33
|
* @typedef {Object} ChangeParameters - Descriptor change parameters.
|
|
@@ -63,13 +64,13 @@ sap.ui.define([
|
|
|
63
64
|
const sProperty = oSetting.id;
|
|
64
65
|
switch (sProperty) {
|
|
65
66
|
case "editableHeaderContent":
|
|
66
|
-
mPropertyValues[sProperty] = mSettings[sProperty]
|
|
67
|
+
mPropertyValues[sProperty] = mSettings[sProperty] ?? oSetting.value;
|
|
67
68
|
break;
|
|
68
|
-
case "
|
|
69
|
-
mPropertyValues[sProperty] = mSettings[sProperty]
|
|
69
|
+
case "variantManagement":
|
|
70
|
+
mPropertyValues[sProperty] = mSettings[sProperty] ?? oSetting.value;
|
|
70
71
|
break;
|
|
71
72
|
case "showRelatedApps":
|
|
72
|
-
mPropertyValues[sProperty] = mSettings[sProperty]
|
|
73
|
+
mPropertyValues[sProperty] = mSettings[sProperty] ?? oSetting.value;
|
|
73
74
|
break;
|
|
74
75
|
default:
|
|
75
76
|
break;
|
|
@@ -94,18 +95,20 @@ sap.ui.define([
|
|
|
94
95
|
description: "Decide whether the header content is editable",
|
|
95
96
|
value: false,
|
|
96
97
|
getPath: () => 'component/settings/editableHeaderContent',
|
|
97
|
-
type: "boolean"
|
|
98
|
+
type: "boolean",
|
|
99
|
+
keyUser: true
|
|
98
100
|
};
|
|
99
101
|
/**
|
|
100
102
|
* @type {DesigntimeSetting}
|
|
101
103
|
*/
|
|
102
|
-
const
|
|
104
|
+
const variantManagement = {
|
|
103
105
|
id: "variantManagement",
|
|
104
106
|
name: "Table Variant Management",
|
|
105
107
|
description: "Decide whether Variant Management is used",
|
|
106
108
|
value: false,
|
|
107
109
|
getPath: () => 'component/settings/tableSettings/variantManagement',
|
|
108
|
-
type: "boolean"
|
|
110
|
+
type: "boolean",
|
|
111
|
+
keyUser: true
|
|
109
112
|
};
|
|
110
113
|
|
|
111
114
|
/**
|
|
@@ -117,12 +120,13 @@ sap.ui.define([
|
|
|
117
120
|
description: "Decide whether Related Apps are shown",
|
|
118
121
|
value: false,
|
|
119
122
|
getPath: () => 'component/settings/showRelatedApps',
|
|
120
|
-
type: "boolean"
|
|
123
|
+
type: "boolean",
|
|
124
|
+
keyUser: true
|
|
121
125
|
};
|
|
122
126
|
|
|
123
127
|
return [
|
|
124
128
|
editableHeaderContent,
|
|
125
|
-
|
|
129
|
+
variantManagement,
|
|
126
130
|
showRelatedApps
|
|
127
131
|
];
|
|
128
132
|
|
|
@@ -133,7 +137,7 @@ sap.ui.define([
|
|
|
133
137
|
function getObjectPageSettings(oComponent) {
|
|
134
138
|
return {
|
|
135
139
|
editableHeaderContent: JSON.parse(oComponent.getEditableHeaderContent()),
|
|
136
|
-
|
|
140
|
+
variantManagement: !!(ObjectPath.get(["variantManagement"], oComponent.getTableSettings())),
|
|
137
141
|
showRelatedApps: JSON.parse(oComponent.getShowRelatedApps())
|
|
138
142
|
};
|
|
139
143
|
}
|
|
@@ -156,7 +160,14 @@ sap.ui.define([
|
|
|
156
160
|
// Get all the designtime settings
|
|
157
161
|
const aAllDesigntimeSettings = getAllDesigntimeSettings(oControl);
|
|
158
162
|
// Get the allowed designtime settings based on the floorplan
|
|
159
|
-
|
|
163
|
+
/**
|
|
164
|
+
* @type {DesigntimeSetting[]}
|
|
165
|
+
*/
|
|
166
|
+
let aAllowedDesigntimeSettings = designtimeUtils.filterDesigntimeSettingsByFloorPlan(oControl, aAllDesigntimeSettings);
|
|
167
|
+
|
|
168
|
+
// Get the allowed designtime settings based on the adaptation mode (key user or Designtime)
|
|
169
|
+
aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettingsBasedOnAdaptationMode(aAllowedDesigntimeSettings, oComponent);
|
|
170
|
+
|
|
160
171
|
|
|
161
172
|
// Get the current values of the properties
|
|
162
173
|
const mRuntimeAdaptationPropertyValues = getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mObjectPageSettings);
|
|
@@ -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);
|