@sapui5/sap.suite.ui.generic.template 1.121.2 → 1.122.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/controller/ControllerImplementation.js +11 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +3 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +21 -16
- package/src/sap/suite/ui/generic/template/ListReport/controller/CtxMenuHandler.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/MultipleViewsHandler.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +7 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +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 +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +39 -45
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/CtxMenuHandler.js +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +10 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +31 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +8 -26
- 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 +4 -0
- 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/fragments/SmartTableResponsiveTableCommons.fragment.xml +7 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +7 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperHiddenTermSupport.js +69 -0
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +4 -4
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +2 -2
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +51 -9
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +40 -8
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +107 -18
- package/src/sap/suite/ui/generic/template/lib/FocusHelper.js +2 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +3 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +1 -1
- package/src/sap/suite/ui/generic/template/lib/info/SmartTableInfo.js +8 -1
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleTablesModeHelper.js +20 -7
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleViewsHandler.js +41 -27
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +9 -5
- package/src/sap/suite/ui/generic/template/lib/navigation/routingHelper.js +3 -5
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +26 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/DetailController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +7 -3
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +4 -5
- package/src/sap/suite/ui/generic/template/themes/sap_horizon/AnalyticalListPage.less +3 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon/library.source.less +2 -1
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_dark/AnalyticalListPage.less +3 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_dark/library.source.less +3 -2
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/AnalyticalListPage.less +5 -1
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/AnalyticalListPage.less +5 -1
package/package.json
CHANGED
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -28,12 +28,13 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
28
28
|
"sap/ui/comp/personalization/Util",
|
|
29
29
|
"sap/suite/ui/generic/template/lib/insights/InsightsHandler",
|
|
30
30
|
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
31
|
-
"sap/suite/ui/generic/template/genericUtilities/filterHelper"
|
|
31
|
+
"sap/suite/ui/generic/template/genericUtilities/filterHelper",
|
|
32
|
+
"sap/suite/ui/generic/template/js/AnnotationHelperHiddenTermSupport"
|
|
32
33
|
], function(SelectionVariant, ExtensionAPI,
|
|
33
34
|
FilterBarController, ToolbarController, VisualFilterBarController, VisualFilterDialogController, AnalyticGridController, AnalyticalTable,
|
|
34
35
|
ODataAnnotationHelper, Analytics, ContentAreaController, IappStateHandler, Device, SegmentedButtonItem, ALPHelper, controlHelper, FeLogger,
|
|
35
36
|
ObjectPath, ShareUtils, merge, deepExtend, ListUtils, MultipleViewsHandler, StableIdHelper, MessageStripHelper, JSONModel, PersonalizationControllerUtil,
|
|
36
|
-
InsightsHandler, metadataAnalyser, filterHelper) {
|
|
37
|
+
InsightsHandler, metadataAnalyser, filterHelper, AnnotationHelperHiddenTermSupport) {
|
|
37
38
|
|
|
38
39
|
"use strict";
|
|
39
40
|
|
|
@@ -689,6 +690,12 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
689
690
|
toolbar = oSmartTable.getToolbar(),
|
|
690
691
|
oToolBarcontent = toolbar.getContent(),
|
|
691
692
|
nSettingsLength ;
|
|
693
|
+
|
|
694
|
+
var oHiddenColumnInfo = AnnotationHelperHiddenTermSupport.getHiddenColumnInfo(oSmartTable);
|
|
695
|
+
if (oHiddenColumnInfo && oHiddenColumnInfo.staticHiddenColumns && oHiddenColumnInfo.staticHiddenColumns.length > 0) {
|
|
696
|
+
// Hide all columns which are statically hidden at initialization of the table
|
|
697
|
+
oSmartTable.deactivateColumns(oHiddenColumnInfo.staticHiddenColumns);
|
|
698
|
+
}
|
|
692
699
|
//To check if navigation targets are supported of the toolbar buttons are supported
|
|
693
700
|
oSmartTable.setHeight("100%");
|
|
694
701
|
oTemplateUtils.oCommonUtils.checkToolbarIntentsSupported(oSmartTable);
|
|
@@ -784,6 +791,8 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
784
791
|
oBindingParams.events.dataReceived = function(oReceivedEvent){
|
|
785
792
|
oState.oContentArea.enableToolbar();
|
|
786
793
|
oTemplateUtils.oCommonEventHandlers.onDataReceived(oSmartTable);
|
|
794
|
+
var oHiddenColumnInfo = AnnotationHelperHiddenTermSupport.getHiddenColumnInfo(oSmartTable);
|
|
795
|
+
oTemplateUtils.oCommonEventHandlers.hideTableCells(oSmartTable, oHiddenColumnInfo);
|
|
787
796
|
oTemplateUtils.oComponentUtils.hidePlaceholder();
|
|
788
797
|
fnDataReceived.call(this, oReceivedEvent);
|
|
789
798
|
};
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js
CHANGED
|
@@ -45,7 +45,7 @@ sap.ui.define(["sap/m/SegmentedButtonItem", "sap/m/Button", "sap/m/Text", "sap/m
|
|
|
45
45
|
//Enable "AdaptFilter" beside the "Go" button
|
|
46
46
|
if (!bShowGoButtonOnFilter) {
|
|
47
47
|
//TODO:Hiding "AdaptFilter" button using private API , public API to be used when available
|
|
48
|
-
me.oState.oSmartFilterbar.
|
|
48
|
+
me.oState.oSmartFilterbar.getAggregation("_filtersButton").setVisible(false);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
oState.oHeader = oState.oPage.getHeader();
|
|
@@ -21,7 +21,7 @@ KPI_TOOLTIP_GOOD={0} {1}\nStatus\: God
|
|
|
21
21
|
|
|
22
22
|
KPI_TOOLTIP_CRITICAL={0} {1}\nStatus\: Risiko
|
|
23
23
|
|
|
24
|
-
KPI_DETERMINING_ERROR={0}\nKan ikke
|
|
24
|
+
KPI_DETERMINING_ERROR={0}\nKan ikke bestemme v\u00E6rdien.
|
|
25
25
|
|
|
26
26
|
KPI_DETERMINING_WARNING={0}\nData er enten ugyldige eller blev ikke fundet.
|
|
27
27
|
|
|
@@ -27,7 +27,7 @@ KPI_DETERMINING_WARNING={0}\n\u041F\u043E\u0434\u0430\u0442\u043E\u0446\u0438\u0
|
|
|
27
27
|
|
|
28
28
|
KPI_AUTHORIZATION_ISSUE=\u041F\u043E\u0441\u0442\u043E\u0438 \u043F\u0440\u043E\u0431\u043B\u0435\u043C \u0441\u043E \u0430\u0432\u0442\u043E\u0440\u0438\u0437\u0430\u0446\u0438\u0458\u0430\u0442\u0430.
|
|
29
29
|
|
|
30
|
-
KPI_DEFAULT_PV_ERROR_MESSAGE=\u041D\u0435\u0434\u043E\u0441\u0442\
|
|
30
|
+
KPI_DEFAULT_PV_ERROR_MESSAGE=\u041D\u0435\u0434\u043E\u0441\u0442\u0438\u0433\u0430 \u0430\u043D\u043E\u0442\u0430\u0446\u0438\u0458\u0430 \u043D\u0430 \u0432\u0430\u0440\u0438\u0458\u0430\u043D\u0442\u0430 \u043D\u0430 \u043F\u0440\u0438\u043A\u0430\u0437\u043E\u0442.
|
|
31
31
|
|
|
32
32
|
KPI_DRILLDOWN_NAVIGATION_MESSAGE=\u0412\u043D\u0435\u0441\u0435\u0442\u0435 \u0434\u0435\u0442\u0430\u043B\u0438 \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0458\u0430.
|
|
33
33
|
|
|
@@ -100,7 +100,7 @@ CONTACT_FAX=\u0424\u0430\u043A\u0441
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
CONTAINER_VIEW_TABLE=\
|
|
103
|
+
CONTAINER_VIEW_TABLE=\u0422\u0430\u0431\u0435\u043B\u0430\u0440\u0435\u043D \u043F\u0440\u0438\u043A\u0430\u0437
|
|
104
104
|
|
|
105
105
|
CONTAINER_VIEW_CHART=\u041F\u0440\u0438\u043A\u0430\u0437 \u043D\u0430 \u0434\u0438\u0458\u0430\u0433\u0440\u0430\u043C
|
|
106
106
|
|
|
@@ -168,7 +168,7 @@ M_VISUAL_FILTERS_MULTIPLE_UNIT=\u0417\u0430 \u0434\u0430 \u0433\u043E \u0432\u04
|
|
|
168
168
|
|
|
169
169
|
M_VISUAL_FILTER_HIDDEN_MEASURE=\u041D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0432\u0447\u0438\u0442\u0430 \u0432\u0438\u0437\u0443\u0435\u043B\u043D\u0438\u043E\u0442 \u0444\u0438\u043B\u0442\u0435\u0440. \u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u043E\u0442 {0} \u0435 \u043E\u0437\u043D\u0430\u0447\u0435\u043D \u0441\u043E UI.Hidden.
|
|
170
170
|
|
|
171
|
-
REQUIRED_VH_FIELDS_OVERLAY_MESSAGE=\u041D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0432\u0447\u0438\u0442\u0430\u0430\u0442 \u043F\u043E\u0434\u0430\u0442\u043E\u0446\u0438 \u0431\u0438\u0434\u0435\u0458\u045C\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\
|
|
171
|
+
REQUIRED_VH_FIELDS_OVERLAY_MESSAGE=\u041D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0441\u0435 \u0432\u0447\u0438\u0442\u0430\u0430\u0442 \u043F\u043E\u0434\u0430\u0442\u043E\u0446\u0438 \u0431\u0438\u0434\u0435\u0458\u045C\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0438\u0433\u0430\u0430\u0442 \u0437\u0430\u0434\u043E\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u0438\u0442\u0435 \u043F\u043E\u043B\u0438\u045A\u0430. \u041A\u043E\u043D\u0442\u0430\u043A\u0442\u0438\u0440\u0430\u0458\u0442\u0435 \u0441\u043E \u0430\u0434\u043C\u0438\u043D\u0438\u0441\u0442\u0440\u0430\u0442\u043E\u0440\u043E\u0442.
|
|
172
172
|
|
|
173
173
|
INVALID_MEASURE_DONUT_MESSAGE=\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0438 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B \u0437\u0430 \u043F\u0440\u0441\u0442\u0435\u043D\u0435\u0441\u0442\u0438\u043E\u0442 \u0434\u0438\u0458\u0440\u0430\u0433\u0440\u0430\u043C. \u0423\u0432\u0435\u0440\u0435\u0442\u0435 \u0441\u0435 \u0434\u0435\u043A\u0430 \u043F\u043E\u043A\u0430\u0437\u0430\u0442\u0435\u043B\u043E\u0442 \u0435 \u043A\u0443\u043C\u0443\u043B\u0430\u0442\u0438\u0432\u0435\u043D \u0438 \u043F\u043E\u0437\u0438\u0442\u0438\u0432\u0435\u043D.
|
|
174
174
|
|
|
@@ -19,7 +19,7 @@ KPI_TOOLTIP_ERROR={0} {1}\nStatus\: Hoog risico
|
|
|
19
19
|
|
|
20
20
|
KPI_TOOLTIP_GOOD={0} {1}\nStatus\: Goed
|
|
21
21
|
|
|
22
|
-
KPI_TOOLTIP_CRITICAL={0} {1}\nStatus\:
|
|
22
|
+
KPI_TOOLTIP_CRITICAL={0} {1}\nStatus\: Risico
|
|
23
23
|
|
|
24
24
|
KPI_DETERMINING_ERROR={0}\nWaarde kan niet worden bepaald.
|
|
25
25
|
|
|
@@ -21,9 +21,10 @@ sap.ui.define([
|
|
|
21
21
|
"sap/suite/ui/generic/template/lib/insights/InsightsHandler",
|
|
22
22
|
"sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper",
|
|
23
23
|
"sap/m/table/Util",
|
|
24
|
-
"sap/suite/ui/generic/template/genericUtilities/filterHelper"
|
|
24
|
+
"sap/suite/ui/generic/template/genericUtilities/filterHelper",
|
|
25
|
+
"sap/suite/ui/generic/template/js/AnnotationHelperHiddenTermSupport"
|
|
25
26
|
], function (Filter, ExtensionAPI, listUtils, MessageStripHelper, IappStateHandler, MultipleViewsHandler,
|
|
26
|
-
WorklistHandler, ShareUtils, controlHelper, FeLogger, testableHelper, ObjectPath, StableIdHelper, deepExtend, CreateWithDialogHandler, CtxMenuHandler, MultiEditHandler, SelectionVariant, InsightsHandler, filterSettingsPreparationHelper, TableUtil, filterHelper) {
|
|
27
|
+
WorklistHandler, ShareUtils, controlHelper, FeLogger, testableHelper, ObjectPath, StableIdHelper, deepExtend, CreateWithDialogHandler, CtxMenuHandler, MultiEditHandler, SelectionVariant, InsightsHandler, filterSettingsPreparationHelper, TableUtil, filterHelper, AnnotationHelperHiddenTermSupport) {
|
|
27
28
|
"use strict";
|
|
28
29
|
|
|
29
30
|
var oLogger = new FeLogger("ListReport.controller.ControllerImplementation").getLogger();
|
|
@@ -678,13 +679,13 @@ sap.ui.define([
|
|
|
678
679
|
onBeforeRebindTable: function (oEvent) {
|
|
679
680
|
var oSmartTable = oEvent.getSource();
|
|
680
681
|
setNoDataTextIfRequired(oSmartTable);
|
|
681
|
-
//in table tabs case oEvent.bindingParams.filters do not contain the values from the SmartFilterbar so far but it will contain filters
|
|
682
|
-
//which can be set directly on the table under 'settings'
|
|
683
|
-
// we have to remember these filters in order to exclude them later for counts
|
|
684
682
|
var oBindingParams = oEvent.getParameters().bindingParams;
|
|
685
|
-
|
|
686
|
-
//
|
|
687
|
-
|
|
683
|
+
// Build a snapshot of oBindingParams.filters as how they are passed to the onBeforeRebind-Event.
|
|
684
|
+
// This snapshot always contains the filters being defined on the table itself (table settings, column headers).
|
|
685
|
+
// In case the table is connected to the SmartFilterbar the snapshot also contains the standard filters derived by the SFB.
|
|
686
|
+
// However, this connection is not there in the multi view multi table scenario which is the only case in which this snapshot
|
|
687
|
+
// will be used later.
|
|
688
|
+
var aFiltersFromRebindEvent = oBindingParams.filters.slice(0);
|
|
688
689
|
oTemplateUtils.oCommonEventHandlers.onBeforeRebindTable(oEvent, {
|
|
689
690
|
determineSortOrder: oState.oMultipleViewsHandler.determineSortOrder,
|
|
690
691
|
ensureExtensionFields: oController.templateBaseExtension.ensureFieldsForSelect,
|
|
@@ -707,6 +708,8 @@ sap.ui.define([
|
|
|
707
708
|
var fnDataReceived = oBindingParams.events.dataReceived || Function.prototype;
|
|
708
709
|
oBindingParams.events.dataReceived = function(oReceivedEvent){
|
|
709
710
|
fnOnDataReceived(oSmartTable);
|
|
711
|
+
var oHiddenColumnInfo = AnnotationHelperHiddenTermSupport.getHiddenColumnInfo(oSmartTable);
|
|
712
|
+
oTemplateUtils.oCommonEventHandlers.hideTableCells(oSmartTable, oHiddenColumnInfo);
|
|
710
713
|
fnDataReceived.call(this, oReceivedEvent);
|
|
711
714
|
};
|
|
712
715
|
var fnRefresh = oBindingParams.events.refresh || Function.prototype;
|
|
@@ -715,7 +718,7 @@ sap.ui.define([
|
|
|
715
718
|
fnRefresh.call(this, oRefreshEvent);
|
|
716
719
|
};
|
|
717
720
|
oState.oMessageStripHelper.onBeforeRebindControl(oEvent);
|
|
718
|
-
oState.oMultipleViewsHandler.onRebindContentControl(oBindingParams,
|
|
721
|
+
oState.oMultipleViewsHandler.onRebindContentControl(oBindingParams, aFiltersFromRebindEvent);
|
|
719
722
|
listUtils.handleErrorsOnTableOrChart(oTemplateUtils, oEvent, oState);
|
|
720
723
|
},
|
|
721
724
|
onListNavigate: function (oEvent) {
|
|
@@ -783,12 +786,10 @@ sap.ui.define([
|
|
|
783
786
|
onBeforeRebindChart: function (oEvent) {
|
|
784
787
|
var oSmartChart = oEvent.getSource();
|
|
785
788
|
setNoDataChartTextIfRequired(oSmartChart);
|
|
786
|
-
//in table tabs case oEvent.bindingParams.filters do not contain the values from the SmartFilterbar so far but it will contain filters
|
|
787
|
-
//which can be set directly on the table under 'settings'
|
|
788
|
-
// we have to remember these filters in order to exclude them later for counts
|
|
789
789
|
var oBindingParams = oEvent.getParameters().bindingParams;
|
|
790
|
-
|
|
791
|
-
|
|
790
|
+
// Build a snapshot of oBindingParams.filters as how they are passed to the onBeforeRebind-Event.
|
|
791
|
+
// This snapshot contains the filters being defined on the chart itself (chart settings).
|
|
792
|
+
var aFiltersFromRebindEvent = oBindingParams.filters.slice(0);
|
|
792
793
|
var oCallbacks = {
|
|
793
794
|
setBindingPath: oSmartChart.setChartBindingPath.bind(oSmartChart),
|
|
794
795
|
ensureExtensionFields: Function.prototype, // needs further clarification
|
|
@@ -808,7 +809,7 @@ sap.ui.define([
|
|
|
808
809
|
oTemplateUtils.oComponentUtils.hidePlaceholder();
|
|
809
810
|
fnDataReceived.call(this, oReceivedEvent);
|
|
810
811
|
};
|
|
811
|
-
oState.oMultipleViewsHandler.onRebindContentControl(oBindingParams,
|
|
812
|
+
oState.oMultipleViewsHandler.onRebindContentControl(oBindingParams, aFiltersFromRebindEvent);
|
|
812
813
|
listUtils.handleErrorsOnTableOrChart(oTemplateUtils, oEvent, oState);
|
|
813
814
|
},
|
|
814
815
|
onChartInitialized: function (oEvent) {
|
|
@@ -841,9 +842,13 @@ sap.ui.define([
|
|
|
841
842
|
// Note: In the multiple view multi tables mode this will be called once for each SmartTable
|
|
842
843
|
onTableInit: function (oEvent) {
|
|
843
844
|
var oSmartTable = oEvent.getSource();
|
|
845
|
+
var oHiddenColumnInfo = AnnotationHelperHiddenTermSupport.getHiddenColumnInfo(oSmartTable);
|
|
846
|
+
if (oHiddenColumnInfo && oHiddenColumnInfo.staticHiddenColumns && oHiddenColumnInfo.staticHiddenColumns.length > 0) {
|
|
847
|
+
// Hide all columns which are statically hidden at initialization of the table
|
|
848
|
+
oSmartTable.deactivateColumns(oHiddenColumnInfo.staticHiddenColumns);
|
|
849
|
+
}
|
|
844
850
|
oTemplateUtils.oCommonUtils.checkToolbarIntentsSupported(oSmartTable);
|
|
845
851
|
oSmartTable.setModel(new sap.ui.model.base.ManagedObjectModel(oSmartTable), "tableobserver");
|
|
846
|
-
|
|
847
852
|
oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oSmartTable).addCellSelector();
|
|
848
853
|
},
|
|
849
854
|
//search function called in worklist light version of LR
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
oTemplateUtils.oCommonEventHandlers.onCallActionFromToolBarForContexts(oSmartControl, oSmartControl.getTable(), oButtonCustomData, oFocusInfo.applicableContexts, oState, oSmartControl.getEntitySet(), true);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
function getGenericHandler(sSmartControlId){
|
|
28
28
|
var oRet = mGenericCtxMenuHandlers[sSmartControlId];
|
|
29
29
|
if (!oRet){
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
var oConfiguration = {
|
|
32
32
|
executeAction: fnExecuteAction.bind(null, sSmartControlId)
|
|
33
33
|
};
|
|
34
|
-
oRet = new ContextMenuHandler(oController, oTemplateUtils, oSmartControl, oConfiguration);
|
|
34
|
+
oRet = new ContextMenuHandler(oController, oTemplateUtils, oState, oSmartControl, oConfiguration);
|
|
35
35
|
mGenericCtxMenuHandlers[sSmartControlId] = oRet;
|
|
36
36
|
}
|
|
37
37
|
return oRet;
|
|
@@ -34,11 +34,11 @@ sap.ui.define([
|
|
|
34
34
|
oGenericMultipleViewsHandler.updateCounts();
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
function onRebindContentControl(oBindingParams,
|
|
37
|
+
function onRebindContentControl(oBindingParams, aFiltersFromRebindEvent) {
|
|
38
38
|
if (!oGenericMultipleViewsHandler) {
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
oGenericMultipleViewsHandler.onRebindContentControl(oBindingParams,
|
|
41
|
+
oGenericMultipleViewsHandler.onRebindContentControl(oBindingParams, aFiltersFromRebindEvent);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
function fnResolveParameterizedEntitySet(oEntitySet, oParameterInfo) {
|
|
@@ -16,12 +16,18 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
16
16
|
var oNavigationController;
|
|
17
17
|
return /** @lends sap.suite.ui.generic.template.ListReport.extensionAPI.ExtensionAPI.prototype */ {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Generally, it returns the currently selected contexts of the smart table.
|
|
20
|
+
* In case the context menu is opened, it returns the contexts applicable to the context menu.
|
|
20
21
|
*
|
|
21
22
|
* @return {sap.ui.model.Context[]} contains one entry per line selected
|
|
22
23
|
* @public
|
|
23
24
|
*/
|
|
24
25
|
getSelectedContexts: function() {
|
|
26
|
+
// This focus info is added to state by sap.suite.ui.generic.template.lib.ContextMenuHandler when the context menu is opened
|
|
27
|
+
// If the state contains focus info, return the contexts applicable for context menu
|
|
28
|
+
if (oState.oFocusInfo) {
|
|
29
|
+
return oState.oFocusInfo.applicableContexts;
|
|
30
|
+
}
|
|
25
31
|
return oState.oPresentationControlHandler.getSelectedContexts();
|
|
26
32
|
},
|
|
27
33
|
/**
|
|
@@ -62,9 +62,9 @@ OBJECT_NOT_EDITABLE=\u041E\u0431\u0458\u0435\u043A\u0442\u043E\u0442 \u043D\u043
|
|
|
62
62
|
NODATA_SMARTTABLE_LR=\u0417\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435, \u043F\u043E\u0441\u0442\u0430\u0432\u0435\u0442\u0435 \u0433\u0438 \u0440\u0435\u043B\u0435\u0432\u0430\u043D\u0442\u043D\u0438\u0442\u0435 \u0444\u0438\u043B\u0442\u0440\u0438 \u0438 \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u201E\u041F\u043E\u0458\u0434\u0438\u201C.
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
CANCEL_AND_DISCARD=\
|
|
65
|
+
CANCEL_AND_DISCARD=\u0414\u0430\u043B\u0438 \u0441\u0430\u043A\u0430\u0442\u0435 \u0434\u0430 \u0433\u043E \u043E\u0442\u0444\u0440\u043B\u0438\u0442\u0435 \u043E\u0432\u043E\u0458 \u043D\u0430\u0446\u0440\u0442?
|
|
66
66
|
|
|
67
|
-
DISCARD_EDIT=\
|
|
67
|
+
DISCARD_EDIT=\u0414\u0430\u043B\u0438 \u0441\u0430\u043A\u0430\u0442\u0435 \u0434\u0430 \u0433\u0438 \u043E\u0442\u0444\u0440\u043B\u0438\u0442\u0435 \u0441\u0438\u0442\u0435 \u043F\u0440\u043E\u043C\u0435\u043D\u0438?
|
|
68
68
|
|
|
69
69
|
DISCARD=\u041E\u0442\u0444\u0440\u043B\u0438
|
|
70
70
|
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
class="{path: 'parameter>/settings/condensedTableLayout', formatter: 'AHListReport.setSizeCondensedCssClass'}"
|
|
97
97
|
enableColumnReordering="true" showColumnVisibilityMenu="false"
|
|
98
98
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
99
|
+
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
99
100
|
enableColumnFreeze="true" enableCellFilter="true"
|
|
100
101
|
rowActionCount="{parts: [{path: 'entitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'parameter>/manifest/'}, {path: 'parameter>/settings/'}], formatter: 'AH.getRowActionCountForListReport'}">
|
|
101
102
|
<template:with path="entitySet>" var="listEntitySet">
|
|
@@ -127,6 +128,7 @@
|
|
|
127
128
|
class="{path: 'parameter>/settings/condensedTableLayout', formatter: 'AHListReport.setSizeCondensedCssClass'}"
|
|
128
129
|
expandFirstLevel="true"
|
|
129
130
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
131
|
+
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
130
132
|
rowActionCount="{parts: [{path: 'entitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'parameter>/manifest/'}, {path: 'parameter>/settings/'}], formatter: 'AH.getRowActionCountForListReport'}">
|
|
131
133
|
<template:with path="entitySet>" var="listEntitySet">
|
|
132
134
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.listTemplates.fragments.SmartTableUiTableCommons" type="XML"/>
|
|
@@ -156,6 +158,7 @@
|
|
|
156
158
|
class="{path: 'parameter>/settings/condensedTableLayout', formatter: 'AHListReport.setSizeCondensedCssClass'}"
|
|
157
159
|
enableColumnReordering="true" showColumnVisibilityMenu="false"
|
|
158
160
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
161
|
+
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
159
162
|
enableColumnFreeze="true" enableCellFilter="true"
|
|
160
163
|
rowActionCount="{parts: [{path: 'entitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'parameter>/manifest/'}, {path: 'parameter>/settings/'}], formatter: 'AH.getRowActionCountForListReport'}">
|
|
161
164
|
<template:with path="entitySet>" var="listEntitySet">
|
|
@@ -186,6 +189,7 @@
|
|
|
186
189
|
sticky="ColumnHeaders,HeaderToolbar"
|
|
187
190
|
mode="{tableSettings>mode}"
|
|
188
191
|
selectionChange="._templateEventHandlers.onSelectionChange"
|
|
192
|
+
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
189
193
|
delete="._templateEventHandlers.deleteEntry"
|
|
190
194
|
itemPress="._templateEventHandlers.onListNavigate"
|
|
191
195
|
multiSelectMode="{= (${tableSettings>multiSelect} && ${tableSettings>selectAll}) ? 'SelectAll' : 'ClearAll'}">
|
|
@@ -23,9 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/model/FilterProcessor",
|
|
24
24
|
"sap/suite/ui/generic/template/js/StableIdHelper",
|
|
25
25
|
"sap/base/util/extend",
|
|
26
|
-
"sap/base/util/UriParameters",
|
|
27
26
|
"sap/base/util/isEmptyObject",
|
|
28
|
-
"sap/ui/dom/jquery/Focusable",
|
|
29
27
|
"sap/suite/ui/generic/template/genericUtilities/FeError",
|
|
30
28
|
"sap/suite/ui/generic/template/lib/CreateWithDialogHandler",
|
|
31
29
|
"sap/ui/Device",
|
|
@@ -37,7 +35,7 @@ sap.ui.define([
|
|
|
37
35
|
], function (ControllerExtension, MessageBox, Filter, Sorter, ManagedObjectModel, SelectionVariant, controlHelper,
|
|
38
36
|
testableHelper, detailUtils, MessageSortingHandler, MessageStripHelper, SectionTitleHandler, SideContentHandler, ExtensionAPI,
|
|
39
37
|
ResponsiveTable, ShareUtils, FeLogger, MultipleViewsHandler, MessageUtils, KeyCodes, merge, FilterProcessor,
|
|
40
|
-
StableIdHelper, extend,
|
|
38
|
+
StableIdHelper, extend, isEmptyObject, FeError,
|
|
41
39
|
CreateWithDialogHandler, Device, whitespaceReplacer, deepExtend, CtxMenuHandler,
|
|
42
40
|
InlineCreationRowsHelper, RelatedAppsHandler
|
|
43
41
|
) {
|
|
@@ -79,7 +77,7 @@ sap.ui.define([
|
|
|
79
77
|
//TODO: Need to see whether we need to initialize the SideContentHandler here
|
|
80
78
|
var oSideContentHandler = new SideContentHandler(oController, oTemplateUtils, oTemplateUtils.oComponentUtils.stateChanged); // handles all task connected with SideContent
|
|
81
79
|
var oRelatedAppsHandler = new RelatedAppsHandler(oController, oTemplateUtils); //Handle related app Case
|
|
82
|
-
var oContextMenuHandler = new CtxMenuHandler(oController, oTemplateUtils, {
|
|
80
|
+
var oContextMenuHandler = new CtxMenuHandler(oController, oTemplateUtils, oState, {
|
|
83
81
|
deleteEntries: function(oSmartTable, aContexts){
|
|
84
82
|
var oTable = oSmartTable.getTable();
|
|
85
83
|
var sUiElementId = oTable.getId();
|
|
@@ -1679,7 +1677,23 @@ sap.ui.define([
|
|
|
1679
1677
|
function onDataReceivedForTable(oControl) {
|
|
1680
1678
|
setNoDataTextIfRequired(oControl);
|
|
1681
1679
|
}
|
|
1680
|
+
|
|
1681
|
+
|
|
1682
|
+
// Common Implementation for switching between active and draft version used by static and dynamic header
|
|
1683
|
+
function fnSwitchDraftAndActiveImpl(bHasDraftEntity, fnFocusAfterSwitch){
|
|
1684
|
+
oTemplateUtils.oServices.oApplicationController.synchronizeDraftAsync().then(function() {
|
|
1685
|
+
oTemplateUtils.oServices.oApplication.performAfterSideEffectExecution(function () {
|
|
1686
|
+
// Focus should stay on the toggle button, but the sheet should be closed
|
|
1687
|
+
oTemplateUtils.oServices.oApplication.setNextFocus(fnFocusAfterSwitch);
|
|
1688
|
+
var oBusyHelper = oTemplateUtils.oServices.oApplication.getBusyHelper();
|
|
1689
|
+
oBusyHelper.setBusy(oTemplateUtils.oServices.oApplication.getSwitchToSiblingFunctionPromise(bHasDraftEntity).then(function(fnSwitch){
|
|
1690
|
+
fnSwitch();
|
|
1691
|
+
}));
|
|
1692
|
+
}, true);
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1682
1695
|
|
|
1696
|
+
// Implementation of draft toggle for dynamic header
|
|
1683
1697
|
function onSwitchDraftAndActiveObjectPopOverImpl(oToggleButton) {
|
|
1684
1698
|
var oSheet;
|
|
1685
1699
|
return oTemplateUtils.oCommonUtils.getDialogFragmentAsync("sap.suite.ui.generic.template.ObjectPage.view.fragments.SwitchDraftAndActiveObjectPopOver", {
|
|
@@ -1688,19 +1702,11 @@ sap.ui.define([
|
|
|
1688
1702
|
if (sSelectedKey === (bHasDraftEntity ? "SwitchToActive" : "SwitchToDraft")) {
|
|
1689
1703
|
return;
|
|
1690
1704
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
oSheet.close();
|
|
1697
|
-
});
|
|
1698
|
-
var oBusyHelper = oTemplateUtils.oServices.oApplication.getBusyHelper();
|
|
1699
|
-
oBusyHelper.setBusy(oTemplateUtils.oServices.oApplication.getSwitchToSiblingFunctionPromise(bHasDraftEntity).then(function(fnSwitch){
|
|
1700
|
-
fnSwitch();
|
|
1701
|
-
}));
|
|
1702
|
-
}, true);
|
|
1703
|
-
});
|
|
1705
|
+
var fnFocusAfterSwitch = function(){ // Focus should stay on the toggle button, but the sheet should be closed
|
|
1706
|
+
controlHelper.focusUI5Control(oToggleButton);
|
|
1707
|
+
oSheet.close();
|
|
1708
|
+
};
|
|
1709
|
+
fnSwitchDraftAndActiveImpl(bHasDraftEntity, fnFocusAfterSwitch);
|
|
1704
1710
|
}
|
|
1705
1711
|
}, "SwitchDraftAndActiveObjectPopOver", Function.prototype, true).then(function(oControl){
|
|
1706
1712
|
oSheet = oControl;
|
|
@@ -2356,25 +2362,19 @@ sap.ui.define([
|
|
|
2356
2362
|
}
|
|
2357
2363
|
},
|
|
2358
2364
|
handlers: {
|
|
2359
|
-
onEditAndActiveToggle: function () {
|
|
2365
|
+
onEditAndActiveToggle: function () { // Implementation of draft toggle for static header
|
|
2360
2366
|
var oUIModel = oObjectPage.getModel("ui");
|
|
2361
2367
|
var bIsEditable = oUIModel.getProperty("/editable");
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
}));
|
|
2373
|
-
setTimeout(controlHelper.focusControl.bind(null, sOtherButtonId), 0);
|
|
2374
|
-
});
|
|
2375
|
-
}));
|
|
2376
|
-
}, true);
|
|
2377
|
-
});
|
|
2368
|
+
|
|
2369
|
+
// as the toggling is implemented by two buttons which are made visible/invisible vice versa we have to create the id of the other button which will become visible now
|
|
2370
|
+
var fnFocusAfterSwitch = function(){
|
|
2371
|
+
var sOtherButtonId = oController.createId(StableIdHelper.getStableId({
|
|
2372
|
+
type: "ObjectPageAction",
|
|
2373
|
+
subType: bIsEditable ? "ContinueEditing" : "DisplayActiveVersion"
|
|
2374
|
+
}));
|
|
2375
|
+
setTimeout(controlHelper.focusControl.bind(null, sOtherButtonId), 0);
|
|
2376
|
+
};
|
|
2377
|
+
fnSwitchDraftAndActiveImpl(!bIsEditable, fnFocusAfterSwitch);
|
|
2378
2378
|
},
|
|
2379
2379
|
|
|
2380
2380
|
addEntry: fnAddEntry,
|
|
@@ -2608,6 +2608,8 @@ sap.ui.define([
|
|
|
2608
2608
|
var fnDataReceived = oBindingParams.events.dataReceived || Function.prototype;
|
|
2609
2609
|
oBindingParams.events.dataReceived = function(oReceivedEvent){
|
|
2610
2610
|
oTemplateUtils.oCommonEventHandlers.onDataReceived(oSmartTable);
|
|
2611
|
+
var oHiddenColumnInfo = oSmartTableInfoObject.getHiddenColumnInfo();
|
|
2612
|
+
oTemplateUtils.oCommonEventHandlers.hideTableCells(oSmartTable, oHiddenColumnInfo);
|
|
2611
2613
|
fnDataReceived.call(this, oReceivedEvent);
|
|
2612
2614
|
};
|
|
2613
2615
|
oMultipleViewsHandler.onRebindContentControl(oSmartTable.getId(), oBindingParams);
|
|
@@ -2717,7 +2719,6 @@ sap.ui.define([
|
|
|
2717
2719
|
// Hide all columns which are statically hidden at initialization of the table
|
|
2718
2720
|
oSmartTable.deactivateColumns(aHiddenColumnInfo.staticHiddenColumns);
|
|
2719
2721
|
}
|
|
2720
|
-
|
|
2721
2722
|
oTemplateUtils.oCommonUtils.checkToolbarIntentsSupported(oSmartTable);
|
|
2722
2723
|
var bIsMTable = controlHelper.isMTable(oTable);
|
|
2723
2724
|
if (bIsMTable || controlHelper.isUiTable(oTable)) {
|
|
@@ -2799,16 +2800,9 @@ sap.ui.define([
|
|
|
2799
2800
|
},
|
|
2800
2801
|
|
|
2801
2802
|
setVMVisibilityForVendor: function () {
|
|
2802
|
-
var oUriParameters = new
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
for (var i = 0; i < aUiLayer.length; i++) {
|
|
2806
|
-
if (aUiLayer[i].toUpperCase() === "VENDOR") {
|
|
2807
|
-
return true;
|
|
2808
|
-
}
|
|
2809
|
-
}
|
|
2810
|
-
}
|
|
2811
|
-
return false;
|
|
2803
|
+
var oUriParameters = new URL(window.location.href).searchParams;
|
|
2804
|
+
var sUiLayer = oUriParameters.get("sap-ui-layer");
|
|
2805
|
+
return sUiLayer && sUiLayer.toUpperCase() === "VENDOR";
|
|
2812
2806
|
},
|
|
2813
2807
|
|
|
2814
2808
|
/*
|
|
@@ -5,7 +5,7 @@ sap.ui.define([
|
|
|
5
5
|
], function(BaseObject, extend, ContextMenuHandler) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
|
-
function getMethods(oController, oTemplateUtils, oCallbacks) {
|
|
8
|
+
function getMethods(oController, oTemplateUtils, oState, oCallbacks) {
|
|
9
9
|
// Begin: Instance variables
|
|
10
10
|
var mGenericCtxMenuHandlers = Object.create(null);
|
|
11
11
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
var oConfiguration = {
|
|
31
31
|
executeAction: fnExecuteAction.bind(null, sSmartControlId)
|
|
32
32
|
};
|
|
33
|
-
oRet = new ContextMenuHandler(oController, oTemplateUtils, oSmartControl, oConfiguration);
|
|
33
|
+
oRet = new ContextMenuHandler(oController, oTemplateUtils, oState, oSmartControl, oConfiguration);
|
|
34
34
|
mGenericCtxMenuHandlers[sSmartControlId] = oRet;
|
|
35
35
|
}
|
|
36
36
|
return oRet;
|
|
@@ -54,8 +54,8 @@ sap.ui.define([
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
return BaseObject.extend("sap.suite.ui.generic.template.ObjectPage.controller.CtxMenuHandler", {
|
|
57
|
-
constructor: function(oController, oTemplateUtils, oCallbacks) {
|
|
58
|
-
extend(this, getMethods(oController, oTemplateUtils, oCallbacks));
|
|
57
|
+
constructor: function(oController, oTemplateUtils, oState, oCallbacks) {
|
|
58
|
+
extend(this, getMethods(oController, oTemplateUtils, oState, oCallbacks));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
61
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/generic/template/genericUtilities/controlHelper"
|
|
2
|
-
], function(BaseObject, extend, controlHelper) {
|
|
1
|
+
sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/generic/template/genericUtilities/controlHelper", "sap/ui/core/library"
|
|
2
|
+
], function(BaseObject, extend, controlHelper, SapCoreLibrary) {
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
5
|
var STYLE_CLASS_FOR_ADJUSTMENT = "sapUiTableOnObjectPageAdjustmentsForSection";
|
|
@@ -78,10 +78,10 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
78
78
|
setHeaderStyle(sCurrentHeaderStyle);
|
|
79
79
|
oSection.removeStyleClass(STYLE_CLASS_FOR_ADJUSTMENT);
|
|
80
80
|
oSubSection.setShowTitle(true);
|
|
81
|
-
oSubSection.setTitleLevel(
|
|
81
|
+
oSubSection.setTitleLevel(SapCoreLibrary.TitleLevel.H4);
|
|
82
82
|
if (oTitleInfo.isStaticallySingleChild){
|
|
83
83
|
oSection.setShowTitle(true);
|
|
84
|
-
oSection.setTitleLevel(
|
|
84
|
+
oSection.setTitleLevel(SapCoreLibrary.TitleLevel.H3);
|
|
85
85
|
}
|
|
86
86
|
delete oTitleInfo.titleOwner;
|
|
87
87
|
oSubSectionTitleBinding.destroy();
|
|
@@ -89,14 +89,16 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
89
89
|
};
|
|
90
90
|
fnAdjustTitle();
|
|
91
91
|
oSubSection.setShowTitle(false);
|
|
92
|
-
oSubSection.setTitleLevel(
|
|
92
|
+
oSubSection.setTitleLevel(SapCoreLibrary.TitleLevel.Auto);
|
|
93
93
|
oSection.addStyleClass(STYLE_CLASS_FOR_ADJUSTMENT);
|
|
94
94
|
if (oTitleInfo.isStaticallySingleChild){
|
|
95
95
|
oSection.setShowTitle(false);
|
|
96
|
-
oSection.setTitleLevel(
|
|
96
|
+
oSection.setTitleLevel(SapCoreLibrary.TitleLevel.Auto);
|
|
97
|
+
}
|
|
98
|
+
setHeaderLevel(oTitleInfo.isStaticallySingleChild ? SapCoreLibrary.TitleLevel.H3 : SapCoreLibrary.TitleLevel.H4); // If one Section has only 1 Sub-Section, then Control title is set as "H3" else Section Title is "H3" and Control Title is "H4"
|
|
99
|
+
if (oSection.getSubSections().length === 1) { // If one Section has only 1 Sub-Section, then Control's headerStyle will be set as "H4" irrespective of the headerLevel. This is done as per the suggestion from Object Page Community
|
|
100
|
+
setHeaderStyle(SapCoreLibrary.TitleLevel.H4);
|
|
97
101
|
}
|
|
98
|
-
setHeaderLevel(oTitleInfo.isStaticallySingleChild ? sap.ui.core.TitleLevel.H3 : sap.ui.core.TitleLevel.H4); // If one Section has only 1 Sub-Section, then Control title is set as "H3" else Section Title is "H3" and Control Title is "H4"
|
|
99
|
-
setHeaderStyle(sap.ui.core.TitleLevel.H4); // If Section and Sub-Section title is hidden, then Control's headerStyle will be set as "H4" irrespective of the headerLevel. This is done as per the suggestion from Object Page Community
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
// public instance methods
|