@sapui5/sap.suite.ui.generic.template 1.141.3 → 1.142.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 +3 -4
- package/src/sap/suite/ui/generic/template/.library +3 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.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/Component.js +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +61 -12
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +5 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +5 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +4 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +5 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +3 -0
- 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 +29 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.js +8 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +85 -21
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +8 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +0 -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/fragments/MessagePopover.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +0 -5
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +2 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +20 -2
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +47 -1
- package/src/sap/suite/ui/generic/template/lib/TableNoDataHandler.js +107 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +58 -6
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +6 -4
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +44 -199
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterDataFetcherHelper.js +334 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +49 -13
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +34 -10
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +32 -8
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +32 -8
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +14 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +32 -8
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +28 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +26 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +38 -14
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +28 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +31 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +29 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +33 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +32 -8
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +30 -6
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +10 -0
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +10 -5
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +36 -31
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +29 -28
|
@@ -8,7 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
// Immutable instance attributes
|
|
9
9
|
var oInnerChart;
|
|
10
10
|
/* In multi-table case, the SmartChart is not yet initialized. SmartChart throws error while calling getChartAsync() before initialization.
|
|
11
|
-
So waiting for the initialized event and then calling getChartAsync().
|
|
11
|
+
So waiting for the initialized event and then calling getChartAsync().
|
|
12
12
|
*/
|
|
13
13
|
oSmartChart.isInitialised() ? fnInitInnerChart() : oSmartChart.attachInitialized(fnInitInnerChart);
|
|
14
14
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
function fnGetAvailableChartTypes() {
|
|
35
35
|
return oSmartChart.getAvailableChartTypes();
|
|
36
36
|
}
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
function fnGetInnerChart() {
|
|
43
43
|
return oInnerChart;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
function fnGetBindingPath() {
|
|
47
47
|
return oSmartChart.getChartBindingPath();
|
|
48
48
|
}
|
|
@@ -95,14 +95,14 @@ sap.ui.define([
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function fnSetEnabledToolbarButtons() {
|
|
98
|
-
/* TODO: the only information retrieved from the control itself is the selected contexts, its model and the toolbar. For this, we already have methods in this
|
|
98
|
+
/* TODO: the only information retrieved from the control itself is the selected contexts, its model and the toolbar. For this, we already have methods in this
|
|
99
99
|
class, so ideally, this information should be passed to a corresponding method in commonUtils, that would not need to know the presentationControl.
|
|
100
100
|
So, setEnabledToolbarButtons method in commonUtils should be refactored accordingly. */
|
|
101
101
|
return oCommonUtils.setEnabledToolbarButtons(oSmartChart);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
function fnSetEnabledFooterButtons() {
|
|
105
|
-
/* TODO: the only information retrieved from the control itself is the selected contexts and the entity set. So ideally, this information should be passed to a
|
|
105
|
+
/* TODO: the only information retrieved from the control itself is the selected contexts and the entity set. So ideally, this information should be passed to a
|
|
106
106
|
corresponding method in commonUtils, that would not need to know the presentationControl. So, setEnabledFooterButtons method in commonUtils should be refactored
|
|
107
107
|
accordingly.*/
|
|
108
108
|
return oCommonUtils.setEnabledFooterButtons(oSmartChart);
|
|
@@ -143,6 +143,10 @@ sap.ui.define([
|
|
|
143
143
|
function getToolbar(){
|
|
144
144
|
return oSmartChart.getToolbar();
|
|
145
145
|
}
|
|
146
|
+
|
|
147
|
+
function fnGetCustomData() {
|
|
148
|
+
return oSmartChart.getCustomData();
|
|
149
|
+
}
|
|
146
150
|
// public instance methods
|
|
147
151
|
return {
|
|
148
152
|
getBinding: fnGetBinding,
|
|
@@ -164,6 +168,7 @@ sap.ui.define([
|
|
|
164
168
|
rebind: fnRebind,
|
|
165
169
|
applyNavigationSortOrder: fnApplyNavigationSortOrder,
|
|
166
170
|
getToolbar: getToolbar,
|
|
171
|
+
getCustomData: fnGetCustomData,
|
|
167
172
|
scrollToSelectedItemAsPerChildContext: Function.prototype,
|
|
168
173
|
getPressedItemParameter: Function.prototype,
|
|
169
174
|
getInitializationPromise: fnGetInitializationPromise
|
|
@@ -33,7 +33,11 @@ sap.ui.define([
|
|
|
33
33
|
function getToolbar(){
|
|
34
34
|
return oSmartList.getToolbar();
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
|
|
37
|
+
function fnGetCustomData() {
|
|
38
|
+
return oSmartList.getCustomData();
|
|
39
|
+
}
|
|
40
|
+
|
|
37
41
|
function fnGetInitializationPromise() {
|
|
38
42
|
return Promise.resolve();
|
|
39
43
|
}
|
|
@@ -56,6 +60,7 @@ sap.ui.define([
|
|
|
56
60
|
refresh: fnRefresh,
|
|
57
61
|
rebind: Function.prototype,
|
|
58
62
|
getToolbar: getToolbar,
|
|
63
|
+
getCustomData: fnGetCustomData,
|
|
59
64
|
applyNavigationSortOrder: Function.prototype, // no way to set the sort order in the smart list
|
|
60
65
|
scrollToSelectedItemAsPerChildContext: Function.prototype,
|
|
61
66
|
getPressedItemParameter: Function.prototype,
|
|
@@ -8,7 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/m/plugins/CellSelector"
|
|
9
9
|
], function(BaseObject, extend, ManagedObjectModel, controlHelper, expressionHelper, testableHelper, CellSelector) {
|
|
10
10
|
"use strict";
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
function getMethods(oController, oCommonUtils, oComponentUtils, oSmartTable) {
|
|
13
13
|
// Immutable instance attributes
|
|
14
14
|
var oInnerTable = oSmartTable.getTable();
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
var bIsTreeTable = controlHelper.isTreeTable(oInnerTable);
|
|
18
18
|
var sEntryAggregationName = bIsUiTable ? "rows" : "items";
|
|
19
19
|
var oCellSelector;
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
function fnGetBinding() {
|
|
22
22
|
return oInnerTable.getBinding(sEntryAggregationName);
|
|
23
23
|
}
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
function getSelectedIndicesForUiTable() {
|
|
34
34
|
var oSelectionPlugin = controlHelper.getSelectionPluginForUITable(oInnerTable);
|
|
35
35
|
var aIndex = (oSelectionPlugin || oInnerTable).getSelectedIndices();
|
|
36
|
-
return aIndex || []; // getSelectedIndices() doesn't return anything if rows are not loaded
|
|
36
|
+
return aIndex || []; // getSelectedIndices() doesn't return anything if rows are not loaded
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function fnIndicesToContexts(aIndices){ // only valid for UiTables
|
|
@@ -44,22 +44,22 @@ sap.ui.define([
|
|
|
44
44
|
aRet.push(oContext);
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
|
-
return aRet;
|
|
47
|
+
return aRet;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
function fnGetSelectedContexts() {
|
|
51
51
|
if (bIsMTable) {
|
|
52
52
|
return oInnerTable.getSelectedContexts();
|
|
53
|
-
}
|
|
53
|
+
}
|
|
54
54
|
// UiTable
|
|
55
55
|
var aIndices = getSelectedIndicesForUiTable();
|
|
56
56
|
return fnIndicesToContexts(aIndices);
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
// This is done on basis of best effort. If no list binding is there currently a faulty value is returned. For special table types (TreeTable, Analytical table) the result
|
|
60
60
|
// might be problematic (could be faulty or an array containing faulty entries).
|
|
61
61
|
function getCurrentContexts(){
|
|
62
|
-
var oListBinding = fnGetBinding();
|
|
62
|
+
var oListBinding = fnGetBinding();
|
|
63
63
|
if (!oListBinding){
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
}
|
|
73
73
|
return aRet;
|
|
74
74
|
}
|
|
75
|
-
|
|
75
|
+
|
|
76
76
|
return oListBinding.getAllCurrentContexts();
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -97,20 +97,20 @@ sap.ui.define([
|
|
|
97
97
|
}
|
|
98
98
|
return aSortOrder;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
function fnGetItems() {
|
|
102
102
|
return oInnerTable.getAggregation(sEntryAggregationName);
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
function fnSetEnabledToolbarButtons() {
|
|
106
|
-
/* TODO: the only information retrieved from the control itself is the selected contexts, its model and the toolbar. For this, we already have methods in this
|
|
106
|
+
/* TODO: the only information retrieved from the control itself is the selected contexts, its model and the toolbar. For this, we already have methods in this
|
|
107
107
|
class, so ideally, this information should be passed to a corresponding method in commonUtils, that would not need to know the presentationControl.
|
|
108
108
|
So, setEnabledToolbarButtons method in commonUtils should be refactored accordingly. */
|
|
109
109
|
return oCommonUtils.setEnabledToolbarButtons(oSmartTable);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
function fnSetEnabledFooterButtons() {
|
|
113
|
-
/* TODO: the only information retrieved from the control itself is the selected contexts and the entity set. So ideally, this information should be passed to a
|
|
113
|
+
/* TODO: the only information retrieved from the control itself is the selected contexts and the entity set. So ideally, this information should be passed to a
|
|
114
114
|
corresponding method in commonUtils, that would not need to know the presentationControl. So, setEnabledFooterButtons method in commonUtils should be refactored
|
|
115
115
|
accordingly.*/
|
|
116
116
|
return oCommonUtils.setEnabledFooterButtons(oSmartTable);
|
|
@@ -127,7 +127,7 @@ sap.ui.define([
|
|
|
127
127
|
function fnGetBindingInfo() {
|
|
128
128
|
return oInnerTable.getBindingInfo(sEntryAggregationName);
|
|
129
129
|
}
|
|
130
|
-
|
|
130
|
+
|
|
131
131
|
function fnHandleReceivedEvent(fnResolve, fnReject, oEvent){
|
|
132
132
|
fnResolve(oEvent);
|
|
133
133
|
}
|
|
@@ -154,7 +154,7 @@ sap.ui.define([
|
|
|
154
154
|
}
|
|
155
155
|
if (!bNoMessageRefresh && oController.getView().getModel("ui").getProperty("/editable")) {
|
|
156
156
|
oComponentUtils.messagesRefresh(sBatchGroupId);
|
|
157
|
-
}
|
|
157
|
+
}
|
|
158
158
|
});
|
|
159
159
|
} else {
|
|
160
160
|
return fnRebind();
|
|
@@ -211,7 +211,7 @@ sap.ui.define([
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
|
|
215
215
|
//Accepts row context object and returns the index of Grid Table row
|
|
216
216
|
function getGridTableRowIndexFromContext(oContext) {
|
|
217
217
|
var sRowPath = oContext.getPath();
|
|
@@ -233,7 +233,7 @@ sap.ui.define([
|
|
|
233
233
|
//Accepts row context in Grid Table and returns the Grid table row
|
|
234
234
|
function getGridTableRow(oContext) {
|
|
235
235
|
var iFirstVisibleRowIndex = oInnerTable.getFirstVisibleRow();
|
|
236
|
-
// TODO This logic needs to be updated while adding "rowMode" aggregation to grid table
|
|
236
|
+
// TODO This logic needs to be updated while adding "rowMode" aggregation to grid table
|
|
237
237
|
var iVisibleRowCount = oInnerTable.getRows().length;
|
|
238
238
|
var sRowPath = oContext.getPath();
|
|
239
239
|
for (var i = 0; i < iVisibleRowCount; i++) {
|
|
@@ -266,13 +266,13 @@ sap.ui.define([
|
|
|
266
266
|
return aColumns[iIndex];
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
|
|
269
|
+
|
|
270
270
|
// Returns the label for the specified column. Thereby vColumnDef is either an instance of sap..Column or a string (namely the ColumnKey).
|
|
271
271
|
function getColumnLabel(vColumnDef){
|
|
272
272
|
// Use a private api of SmartTable until they provide a better method
|
|
273
|
-
return oSmartTable._getColumnLabel(vColumnDef);
|
|
273
|
+
return oSmartTable._getColumnLabel(vColumnDef);
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
|
|
276
276
|
// Expose selected private functions to unit tests
|
|
277
277
|
/* eslint-disable */
|
|
278
278
|
testableHelper.testable(getGridTableRow, "getGridTableRow");
|
|
@@ -283,11 +283,11 @@ sap.ui.define([
|
|
|
283
283
|
var oRet = controlHelper.searchInTree(oTableRow, function(oControl){
|
|
284
284
|
return controlHelper.isSmartField(oControl) ? controlHelper.getSmartFieldIsFocussableForInputPromise(oControl).then(function(bIsFocussable){
|
|
285
285
|
return bIsFocussable && oControl;
|
|
286
|
-
}) : null;
|
|
286
|
+
}) : null;
|
|
287
287
|
});
|
|
288
288
|
return Promise.resolve(oRet);
|
|
289
289
|
}
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
function setFocusOnFirstEditableFieldInTableRowImpl(oTableRow){
|
|
292
292
|
getFirstFocussableInputForRow(oTableRow).then(function(oTarget){
|
|
293
293
|
controlHelper.focusUI5Control(oTarget || oTableRow); // if no focussable cell could be found, focus on the whole row
|
|
@@ -299,7 +299,7 @@ sap.ui.define([
|
|
|
299
299
|
var oTableRow = aItems.find(function(oItem){
|
|
300
300
|
return oContext.getPath() === oItem.getBindingContext().getPath();
|
|
301
301
|
});
|
|
302
|
-
return oTableRow;
|
|
302
|
+
return oTableRow;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
function fnSetFocusOnFirstEditableFieldInTableRow(oContext){
|
|
@@ -321,30 +321,30 @@ sap.ui.define([
|
|
|
321
321
|
}, 0);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
-
}
|
|
325
|
-
|
|
324
|
+
}
|
|
325
|
+
|
|
326
326
|
function getFirstFocussableEditableCellPromise(){
|
|
327
327
|
return new Promise(function(fnResolve, fnReject){
|
|
328
328
|
fnExecuteWhenUnbusy(function(){
|
|
329
329
|
Promise.resolve(controlHelper.searchInTree(oInnerTable, function(oControl){
|
|
330
330
|
if (controlHelper.isSmartField(oControl)){ // check whether the SmartField is the correct target for focussing
|
|
331
331
|
return controlHelper.getSmartFieldIsFocussableForInputPromise(oControl).then(function(bIsFocussable){
|
|
332
|
-
return bIsFocussable && oControl; // If the SmartField has turned out to be focussable take it. Otherwise no need to investigate the subtree below it.
|
|
332
|
+
return bIsFocussable && oControl; // If the SmartField has turned out to be focussable take it. Otherwise no need to investigate the subtree below it.
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
})).then(fnResolve);
|
|
336
336
|
});
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
|
|
340
340
|
function getThreshold(){
|
|
341
341
|
return bIsMTable ? oInnerTable.getGrowingThreshold() : oInnerTable.getThreshold();
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
|
|
344
344
|
function getDataStateIndicator(){
|
|
345
345
|
return oSmartTable.getDataStateIndicator();
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
|
|
348
348
|
function isMTable(){
|
|
349
349
|
return bIsMTable;
|
|
350
350
|
}
|
|
@@ -353,6 +353,10 @@ sap.ui.define([
|
|
|
353
353
|
return oSmartTable.getToolbar();
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
+
function fnGetCustomData() {
|
|
357
|
+
return oSmartTable.getCustomData();
|
|
358
|
+
}
|
|
359
|
+
|
|
356
360
|
function fnGetTitleInfoForItem(oItemContext){
|
|
357
361
|
if (!oItemContext) {
|
|
358
362
|
return;
|
|
@@ -366,7 +370,7 @@ sap.ui.define([
|
|
|
366
370
|
oAnnotationFormatter.done();
|
|
367
371
|
oAnnotationFormatter = expressionHelper.getAnnotationFormatter(oModel, sEntitySet, "/com.sap.vocabularies.UI.v1.HeaderInfo/Description/Value", oRb);
|
|
368
372
|
var sSubTitle = oAnnotationFormatter.format(oItemContext);
|
|
369
|
-
oAnnotationFormatter.done();
|
|
373
|
+
oAnnotationFormatter.done();
|
|
370
374
|
return {
|
|
371
375
|
title: sTitle,
|
|
372
376
|
subTitle: sSubTitle
|
|
@@ -439,12 +443,12 @@ sap.ui.define([
|
|
|
439
443
|
var aSelectedContexts = fnGetSelectedContexts();
|
|
440
444
|
var bIsFocussedContextSelected = !!oFocussedBindingContext && aSelectedContexts.indexOf(oFocussedBindingContext) >= 0;
|
|
441
445
|
var bDoesApplicableEqualSelected = bIsFocussedContextSelected || !oFocussedBindingContext;
|
|
442
|
-
var aApplicableContexts = bDoesApplicableEqualSelected ? aSelectedContexts : [oFocussedBindingContext];
|
|
446
|
+
var aApplicableContexts = bDoesApplicableEqualSelected ? aSelectedContexts : [oFocussedBindingContext];
|
|
443
447
|
return {
|
|
444
448
|
focussedBindingContext: oFocussedBindingContext,
|
|
445
449
|
applicableContexts: aApplicableContexts,
|
|
446
450
|
doesApplicableEqualSelected: bDoesApplicableEqualSelected
|
|
447
|
-
};
|
|
451
|
+
};
|
|
448
452
|
}
|
|
449
453
|
|
|
450
454
|
/**
|
|
@@ -562,7 +566,7 @@ sap.ui.define([
|
|
|
562
566
|
* 2. Remove fields which are UI Hidden
|
|
563
567
|
* 3. Ignore technical fields such as "IsActiveEntity", "DraftUUID"
|
|
564
568
|
* 4. Generate field properties for relevant fields and return them
|
|
565
|
-
* @param {sap.ui.model.odata.v2.Context} oItemContext
|
|
569
|
+
* @param {sap.ui.model.odata.v2.Context} oItemContext
|
|
566
570
|
*/
|
|
567
571
|
function fnGetRelevantColumnsForMessage(oItemContext){
|
|
568
572
|
if (!oItemContext) {
|
|
@@ -671,6 +675,7 @@ sap.ui.define([
|
|
|
671
675
|
getThreshold: getThreshold,
|
|
672
676
|
getDataStateIndicator: getDataStateIndicator,
|
|
673
677
|
getToolbar: getToolbar,
|
|
678
|
+
getCustomData: fnGetCustomData,
|
|
674
679
|
getTitleInfoForItem: fnGetTitleInfoForItem,
|
|
675
680
|
isLengthFinal: fnIsLengthFinal,
|
|
676
681
|
focusOnFirstTransientRow: fnFocusOnFirstTransientRow,
|
package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
xmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
|
|
3
3
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
4
4
|
template:require="{ AH: 'sap/suite/ui/generic/template/js/AnnotationHelper',
|
|
5
|
-
AHModel: 'sap/ui/model/odata/AnnotationHelper',
|
|
6
|
-
ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper',
|
|
5
|
+
AHModel: 'sap/ui/model/odata/AnnotationHelper',
|
|
6
|
+
ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper',
|
|
7
7
|
AHMultipleViews:'sap/suite/ui/generic/template/js/AnnotationHelperMultipleViews',
|
|
8
8
|
StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
9
9
|
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.listTemplates.fragments.TableCommands" type="XML"/>
|
|
50
50
|
</smarttable:dependents>
|
|
51
51
|
<smarttable:customData>
|
|
52
|
+
<core:CustomData key="headerTitle" value="{path: 'header>TypeNamePlural', formatter: 'AHModel.format'}"/>
|
|
52
53
|
<core:CustomData key="dateFormatSettings" value="\{"UTC":true,"style":"medium"\}" />
|
|
53
54
|
<core:CustomData key="useUTCDateTime" value="true" />
|
|
54
55
|
<core:CustomData key="lineItemCriticality" value="{workingContext>lineItemCriticality}" />
|
|
@@ -107,11 +108,11 @@
|
|
|
107
108
|
<template:if test="{= ${tableSettings>type} === 'AnalyticalTable'}">
|
|
108
109
|
<template:then>
|
|
109
110
|
<!-- ANALYTICAL TABLE -->
|
|
110
|
-
<table:AnalyticalTable id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'AnalyticalTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
111
|
-
visibleRowCountMode="Auto" enableColumnReordering="true"
|
|
112
|
-
enableColumnFreeze="true"
|
|
113
|
-
enableCellFilter="true"
|
|
114
|
-
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
111
|
+
<table:AnalyticalTable id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'AnalyticalTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
112
|
+
visibleRowCountMode="Auto" enableColumnReordering="true"
|
|
113
|
+
enableColumnFreeze="true"
|
|
114
|
+
enableCellFilter="true"
|
|
115
|
+
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
115
116
|
rowSelectionChange="._templateEventHandlers.onRowSelectionChange"
|
|
116
117
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
117
118
|
threshold="{= ${tableSettings>threshold} ? ${tableSettings>threshold} : '100'}"
|
|
@@ -130,12 +131,12 @@
|
|
|
130
131
|
</template:then>
|
|
131
132
|
<template:elseif test="{= ${tableSettings>type} === 'GridTable'}">
|
|
132
133
|
<!-- GRID TABLE -->
|
|
133
|
-
<table:Table id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'GridTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
134
|
-
visibleRowCountMode="Auto"
|
|
135
|
-
enableColumnReordering="true"
|
|
136
|
-
enableColumnFreeze="true"
|
|
137
|
-
enableCellFilter="true"
|
|
138
|
-
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
134
|
+
<table:Table id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'GridTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
135
|
+
visibleRowCountMode="Auto"
|
|
136
|
+
enableColumnReordering="true"
|
|
137
|
+
enableColumnFreeze="true"
|
|
138
|
+
enableCellFilter="true"
|
|
139
|
+
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
139
140
|
rowSelectionChange="._templateEventHandlers.onRowSelectionChange"
|
|
140
141
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
141
142
|
threshold="{= ${tableSettings>threshold} ? ${tableSettings>threshold} : '100'}"
|
|
@@ -157,13 +158,13 @@
|
|
|
157
158
|
</template:elseif>
|
|
158
159
|
<template:elseif test="{= ${tableSettings>type} === 'TreeTable'}">
|
|
159
160
|
<!-- TREE TABLE -->
|
|
160
|
-
<table:TreeTable
|
|
161
|
-
id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'TreeTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
162
|
-
visibleRowCountMode="Auto"
|
|
163
|
-
enableColumnReordering="true"
|
|
164
|
-
enableColumnFreeze="true"
|
|
165
|
-
enableCellFilter="true"
|
|
166
|
-
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
161
|
+
<table:TreeTable
|
|
162
|
+
id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'TreeTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
163
|
+
visibleRowCountMode="Auto"
|
|
164
|
+
enableColumnReordering="true"
|
|
165
|
+
enableColumnFreeze="true"
|
|
166
|
+
enableCellFilter="true"
|
|
167
|
+
rowActionCount="{= ${_templPriv>/listReport/isLeaf} ? 0 : 1 }"
|
|
167
168
|
rowSelectionChange="._templateEventHandlers.onRowSelectionChange"
|
|
168
169
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
169
170
|
threshold="{= ${tableSettings>threshold} ? ${tableSettings>threshold} : '100'}"
|
|
@@ -181,14 +182,14 @@
|
|
|
181
182
|
<!-- On failing all the above conditions or if the display mode is anything but desktop i.e tablet or phone or any other device it falls back to responsive -->
|
|
182
183
|
<template:else >
|
|
183
184
|
<!-- RESPONSIVE TABLE -->
|
|
184
|
-
<Table
|
|
185
|
-
id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'ResponsiveTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
186
|
-
fixedLayout="{= ${appSettings>/enableAutoColumnWidthForSmartTable} ? undefined : false}"
|
|
187
|
-
growing="true"
|
|
188
|
-
growingScrollToLoad="true"
|
|
189
|
-
growingThreshold="20"
|
|
190
|
-
mode="{tableSettings>mode}"
|
|
191
|
-
selectionChange="._templateEventHandlers.onRowSelectionChange"
|
|
185
|
+
<Table
|
|
186
|
+
id="{:= ${parameter>/stableId}.getStableId({type: 'ALPTable', subType: 'ResponsiveTable', sQuickVariantKey: ${tabItem>key}})}"
|
|
187
|
+
fixedLayout="{= ${appSettings>/enableAutoColumnWidthForSmartTable} ? undefined : false}"
|
|
188
|
+
growing="true"
|
|
189
|
+
growingScrollToLoad="true"
|
|
190
|
+
growingThreshold="20"
|
|
191
|
+
mode="{tableSettings>mode}"
|
|
192
|
+
selectionChange="._templateEventHandlers.onRowSelectionChange"
|
|
192
193
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
193
194
|
sticky="ColumnHeaders,HeaderToolbar,InfoToolbar,GroupHeaders"
|
|
194
195
|
rememberSelections="false"
|