@sapui5/sap.suite.ui.generic.template 1.114.0 → 1.115.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 +14 -8
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +14 -32
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +6 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +26 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml +68 -74
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/KpiCardSizeM.view.xml +2 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/AnalyticGrid.fragment.xml +8 -8
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentAreaViewExtension.fragment.xml +8 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentAreaViewExtension2.fragment.xml +9 -10
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentContainer.fragment.xml +14 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentViewButtons.fragment.xml +42 -41
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/FilterContainer.fragment.xml +24 -31
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/FilterableKPIContainer.fragment.xml +14 -19
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/HeaderCommands.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/IconTabBarWithSmartTable.fragment.xml +10 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/KPITagList.fragment.xml +14 -16
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/KpiCard.fragment.xml +2 -13
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/MasterExtension.fragment.xml +17 -18
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +7 -9
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/view/Canvas.view.xml +23 -24
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +64 -63
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +19 -38
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +13 -5
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +24 -2
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/ListReport.view.xml +4 -4
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActionButtons.fragment.xml +4 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultipleViewsSingleTableMode.fragment.xml +13 -11
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SearchField.fragment.xml +4 -6
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartChart.fragment.xml +18 -20
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartChartToolbar.fragment.xml +9 -9
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +5 -8
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartList.fragment.xml +5 -10
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +39 -72
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTableOrList.fragment.xml +9 -8
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTableToolbar.fragment.xml +10 -8
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/TitleVariant.fragment.xml +33 -36
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +31 -15
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/InlineCreationRowsHelper.js +130 -30
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +21 -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/NavigationBar.fragment.xml +2 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +44 -80
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTablePluginsRowSettingsRowActions.fragment.xml +32 -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/AnalyticalTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +33 -33
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/GridTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderAddress.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderContactWithDetailsPopover.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderPlainText.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/SmartTablePluginsRowSettings.fragment.xml +16 -0
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +4 -5
- package/src/sap/suite/ui/generic/template/fragments/TableColumnListItem.fragment.xml +2 -3
- package/src/sap/suite/ui/generic/template/fragments/TableColumns.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/AjaxHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/CacheHelper.js +10 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +61 -82
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/AddCardsHelper.js +17 -9
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +5 -4
- package/src/sap/suite/ui/generic/template/lib/Application.js +13 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +117 -99
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +18 -12
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +24 -42
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +47 -42
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +30 -27
- package/src/sap/suite/ui/generic/template/lib/MessageUtils.js +38 -3
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +2 -2
- package/src/sap/suite/ui/generic/template/lib/ViewDependencyHelper.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +6 -15
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +4 -0
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +19 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/startupParameterHelper.js +3 -3
- 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/controller/IappStateHandler.js +5 -0
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ActionsFragment.fragment.xml +10 -12
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartActions.fragment.xml +18 -18
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartCommands.fragment.xml +3 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +41 -80
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/MessagesOnRetrieval.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/MultipleViewsSingleTableMode.fragment.xml +12 -10
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartChart.fragment.xml +26 -28
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartChartToolbar.fragment.xml +9 -12
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTablePluginsRowSettingsRowActions.fragment.xml +24 -0
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTableToolbar.fragment.xml +6 -7
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/TableCommands.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/CardMessages.fragment.xml +0 -18
- package/src/sap/suite/ui/generic/template/fragments/RowActions.fragment.xml +0 -50
- package/src/sap/suite/ui/generic/template/listTemplates/AnnotationHelper.js +0 -24
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/CardMessages.fragment.xml +0 -19
package/package.json
CHANGED
|
@@ -10,7 +10,8 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
10
10
|
"sap/suite/ui/generic/template/js/AnnotationHelper",
|
|
11
11
|
"sap/base/util/isEmptyObject",
|
|
12
12
|
"sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper",
|
|
13
|
-
"sap/insights/CardHelper"
|
|
13
|
+
"sap/insights/CardHelper",
|
|
14
|
+
"sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil" // // just to make sure that this class containing runtime formatters is loaded
|
|
14
15
|
], function(OverrideExecution, TemplateAssembler, ControllerImplementation, JSONModel, controllerFrameworkExtensions, preparationHelper, deepExtend,
|
|
15
16
|
filterSettingsPreparationHelper, StableIdHelper, AnnotationHelper, isEmptyObject, ALPAnnotationHelper, CardHelper) {
|
|
16
17
|
"use strict";
|
|
@@ -195,6 +196,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
195
196
|
oAlpSettings.isSelflinkRequired = false;
|
|
196
197
|
oAlpSettings.isIndicatorRequired = false;
|
|
197
198
|
oAlpSettings.isSemanticallyConnected = true;
|
|
199
|
+
oAlpSettings.rowHighligths = "None";
|
|
198
200
|
oAlpSettings.controlConfigurationSettings = filterSettingsPreparationHelper.getControlConfigurationSettings(oAlpSettings, oEntityType, oEntitySet, oModel);
|
|
199
201
|
|
|
200
202
|
function checkIfSmartChart(sEntitySet, oTabItem) {
|
|
@@ -337,13 +339,17 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
337
339
|
}
|
|
338
340
|
|
|
339
341
|
oAlpSettings.bInsightsEnabled = false;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
342
|
+
// If app is running in Microsoft Teams environment then Insight should not execute
|
|
343
|
+
var oTemplatePrivateGlobal = oComponent.getModel("_templPrivGlobal");
|
|
344
|
+
if (!oTemplatePrivateGlobal.getProperty("/generic/isTeamsModeActive")) {
|
|
345
|
+
CardHelper.getServiceAsync("UIService").then(function(oInstance){
|
|
346
|
+
oAlpSettings.bInsightsEnabled = true;
|
|
347
|
+
var oTemplatePrivate = oComponent.getModel("_templPriv");
|
|
348
|
+
oTemplatePrivate.setProperty("/oInsightsInstance", oInstance);
|
|
349
|
+
}).catch(function(response) {
|
|
350
|
+
oAlpSettings.bInsightsEnabled = false;
|
|
351
|
+
});
|
|
352
|
+
}
|
|
347
353
|
|
|
348
354
|
return oAlpSettings;
|
|
349
355
|
},
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -32,12 +32,13 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
32
32
|
"sap/ui/model/json/JSONModel",
|
|
33
33
|
"sap/suite/ui/generic/template/listTemplates/controller/DetailController",
|
|
34
34
|
"sap/ui/comp/personalization/Util",
|
|
35
|
-
"sap/suite/ui/generic/template/lib/AddCardsHelper"
|
|
35
|
+
"sap/suite/ui/generic/template/lib/AddCardsHelper",
|
|
36
|
+
"sap/m/MessageBox"
|
|
36
37
|
], function(SelectionVariant, ExtensionAPI,
|
|
37
38
|
FilterBarController, ToolbarController, VisualFilterBarController, VisualFilterDialogController, AnalyticGridController, AnalyticalTable,
|
|
38
39
|
ODataAnnotationHelper, Analytics, ContentAreaController, IappStateHandler, Device, SegmentedButtonItem, SegmentedButton,
|
|
39
40
|
OverflowToolbar, ToolbarSpacer, SapMLibrary, Context, ALPHelper, controlHelper, FeLogger, FilterUtil, ObjectPath, ShareUtils, merge, deepExtend,
|
|
40
|
-
ListUtils, MultipleViewsHandler, StableIdHelper, MessageStripHelper, JSONModel, DetailController, PersonalizationControllerUtil, AddCardsHelper) {
|
|
41
|
+
ListUtils, MultipleViewsHandler, StableIdHelper, MessageStripHelper, JSONModel, DetailController, PersonalizationControllerUtil, AddCardsHelper, MessageBox) {
|
|
41
42
|
|
|
42
43
|
"use strict";
|
|
43
44
|
|
|
@@ -334,20 +335,6 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
334
335
|
// });
|
|
335
336
|
}
|
|
336
337
|
|
|
337
|
-
function fnOpenCardMessagesDialog(oModel){
|
|
338
|
-
var oCardMessagesPromise = oTemplateUtils.oCommonUtils.getDialogFragmentAsync("sap.suite.ui.generic.template.listTemplates.fragments.CardMessages", {
|
|
339
|
-
onClose: function(oEvent) {
|
|
340
|
-
var oDialog = oEvent.getSource().getParent();
|
|
341
|
-
oDialog.close();
|
|
342
|
-
}
|
|
343
|
-
}, "cardMessages");
|
|
344
|
-
|
|
345
|
-
oCardMessagesPromise.then(function (oDialog) {
|
|
346
|
-
oDialog.setModel(oModel, "list");
|
|
347
|
-
oDialog.open();
|
|
348
|
-
});
|
|
349
|
-
}
|
|
350
|
-
|
|
351
338
|
// Generation of Event Handlers
|
|
352
339
|
return {
|
|
353
340
|
onInit: function() {
|
|
@@ -905,13 +892,6 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
905
892
|
onBeforeRebindChart: function(oEvent) {
|
|
906
893
|
var oSmartChart = oEvent.getSource();
|
|
907
894
|
setNoDataChartTextIfRequired(oSmartChart);
|
|
908
|
-
var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
|
|
909
|
-
var oChartSelectionVariant = oSmartChart.getUiState().getSelectionVariant();
|
|
910
|
-
if (oChartSelectionVariant && oChartSelectionVariant.SelectOptions && oChartSelectionVariant.SelectOptions.length) {
|
|
911
|
-
oTemplatePrivateModel.setProperty("/alp/chartFiltersActive", true);
|
|
912
|
-
} else {
|
|
913
|
-
oTemplatePrivateModel.setProperty("/alp/chartFiltersActive", false);
|
|
914
|
-
}
|
|
915
895
|
//oState.oSmartChart.oModels = oState.oSmartChart.getChart().oPropagatedProperties.oModels;
|
|
916
896
|
var oBindingParams = oEvent.getParameters().bindingParams;
|
|
917
897
|
oState.oMultipleViewsHandler.aTableFilters = deepExtend({}, oBindingParams.filters);
|
|
@@ -1224,18 +1204,19 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
1224
1204
|
var oView = oState.oController.getView();
|
|
1225
1205
|
var oEntitySet = oModel.getMetaModel().getODataEntitySet(sEntitySet);
|
|
1226
1206
|
var oEntityType = oModel.getMetaModel().getODataEntityType(oEntitySet.entityType);
|
|
1227
|
-
var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
|
|
1228
|
-
var chartFiltersActive = oTemplatePrivateModel.getProperty("/alp/chartFiltersActive");
|
|
1229
1207
|
var oRb = oComponent.getModel("i18n").getResourceBundle();
|
|
1230
1208
|
var oCardDefinition = {};
|
|
1231
|
-
if (oState.oSmartFilterbar.getUiState().getSemanticDates()
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1209
|
+
if (oState.oSmartFilterbar.getUiState().getSemanticDates()) {
|
|
1210
|
+
MessageBox.error(oRb.getText("ST_CARD_CREATION_FAILURE"), {
|
|
1211
|
+
onClose: function () {
|
|
1212
|
+
throw new Error("Insights is not supported");
|
|
1213
|
+
},
|
|
1214
|
+
details: "<strong>" + oRb.getText("ST_CARD_POSSIBLE_CAUSES") + "</strong>" +
|
|
1215
|
+
"<ul>" +
|
|
1216
|
+
"<li>" + oRb.getText("ST_CARD_FAILURE_REASON_DATE_RANGE_FILTERS") + "</li>" +
|
|
1217
|
+
"<li>" + oRb.getText("ST_CARD_FAILURE_CHART_REASON_CHART_LEVEL_FILTERS") + "</li>" +
|
|
1218
|
+
"</ul>" + oRb.getText("ST_CARD_FOOTER_INFO")
|
|
1237
1219
|
});
|
|
1238
|
-
fnOpenCardMessagesDialog(oModel);
|
|
1239
1220
|
} else {
|
|
1240
1221
|
oCardDefinition['currentControlHandler'] = oPresentationControlHandler;
|
|
1241
1222
|
oCardDefinition['component'] = oComponent;
|
|
@@ -1243,6 +1224,7 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
1243
1224
|
oCardDefinition['entitySet'] = oEntitySet;
|
|
1244
1225
|
oCardDefinition['entityType'] = oEntityType;
|
|
1245
1226
|
oCardDefinition['oSmartFilterbar'] = oState.oSmartFilterbar;
|
|
1227
|
+
oCardDefinition['oTemplateUtils'] = oTemplateUtils;
|
|
1246
1228
|
var oAnalyticalCardManifest = AddCardsHelper.createCardForPreview(oCardDefinition);
|
|
1247
1229
|
var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
|
|
1248
1230
|
var oInsightsInstance = oTemplatePrivateModel.getProperty("/oInsightsInstance");
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js
CHANGED
|
@@ -12,6 +12,7 @@ sap.ui.define(["sap/m/SegmentedButtonItem", "sap/m/Button", "sap/m/Text", "sap/m
|
|
|
12
12
|
"use strict";
|
|
13
13
|
|
|
14
14
|
var FILTER_MODE_VISUAL = "visual",
|
|
15
|
+
FILTER_MODE_COMPACT = "compact",
|
|
15
16
|
FILTER_DIALOG_MODE_COMPACT = "group",
|
|
16
17
|
customDataPropertyName = "sap.suite.ui.generic.template.customData",
|
|
17
18
|
genericDataPropertyName = "sap.suite.ui.generic.template.genericData",
|
|
@@ -185,9 +186,12 @@ sap.ui.define(["sap/m/SegmentedButtonItem", "sap/m/Button", "sap/m/Text", "sap/m
|
|
|
185
186
|
handleFilterSwitch:function(mode, bApplyingVariant) {
|
|
186
187
|
var oComponent = this.oState.oController.getOwnerComponent();
|
|
187
188
|
var oTemplatePrivate = oComponent.getModel("_templPriv");
|
|
189
|
+
var oModel = this.oState.alr_visualFilterBar && this.oState.alr_visualFilterBar.getModel();
|
|
188
190
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
+
if ((oModel && oModel.mMetadataUrlParams && oModel.mMetadataUrlParams["sap-value-list"] === "none") && (this.oState.alr_visualFilterBar && !this.oState.alr_visualFilterBar.getAssociateValueListsCalled())) {
|
|
192
|
+
this.oState.alr_visualFilterBar.setAssociateValueListsCalled(true);
|
|
193
|
+
this.oState.oSmartFilterbar.associateValueLists();
|
|
194
|
+
} else if (oTemplatePrivate.getProperty('/alp/filterMode') === FILTER_MODE_COMPACT && (this.oState.alr_visualFilterBar && !this.oState.alr_visualFilterBar.getAssociateValueListsCalled())) { //in case app loading in compact filter mode
|
|
191
195
|
this.oState.alr_visualFilterBar.setAssociateValueListsCalled(true);
|
|
192
196
|
this.oState.oSmartFilterbar.associateValueLists();
|
|
193
197
|
}
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
sap.ui.define([
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/core/mvc/OverrideExecution"
|
|
3
|
+
], function(OverrideExecution) {
|
|
2
4
|
"use strict";
|
|
3
5
|
/**
|
|
4
6
|
* This class contains all extension functions that can be implemented by Application
|
|
@@ -8,6 +10,29 @@ sap.ui.define([ ], function() {
|
|
|
8
10
|
* @public
|
|
9
11
|
*/
|
|
10
12
|
return /** @lends sap.suite.ui.generic.template.AnalyticalListPage.controllerFrameworkExtensions */ {
|
|
13
|
+
metadata: {
|
|
14
|
+
methods: {
|
|
15
|
+
getVisibleSelectionsWithDefaults: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
16
|
+
onInitSmartFilterBarExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
17
|
+
getCustomAppStateDataExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
18
|
+
restoreCustomAppStateDataExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
19
|
+
onBeforeRebindTableExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
20
|
+
onBeforeRebindChartExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
21
|
+
onClearFilterExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
22
|
+
adaptNavigationParameterExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
23
|
+
onAfterCustomModelCreation: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
24
|
+
onBeforeRebindFilterableKPIExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
25
|
+
adaptTransientMessageExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
26
|
+
onListNavigationExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
27
|
+
onSaveAsTileExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
28
|
+
modifyStartupExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
29
|
+
onLeaveAppExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
30
|
+
onBeforeRebindVisualFilterExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
31
|
+
onChildOpenedExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
32
|
+
beforeSmartLinkPopoverOpensExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
33
|
+
onBeforeExportTableExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
11
36
|
|
|
12
37
|
/**
|
|
13
38
|
* This method is called by Fiori elements on the initialization of View. Application developers
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:
|
|
2
|
-
xmlns:
|
|
3
|
-
xmlns:st="sap.suite.ui.generic.template"
|
|
1
|
+
<mvc:View xmlns="sap.m" xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" xmlns:f="sap.f" xmlns:l="sap.ui.layout" xmlns:smartVariantManagement="sap.ui.comp.smartvariants"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
4
3
|
template:require="{ AH: 'sap/suite/ui/generic/template/js/AnnotationHelper',
|
|
4
|
+
AHModel: 'sap/ui/model/odata/AnnotationHelper',
|
|
5
|
+
ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper',
|
|
5
6
|
AHALP: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper',
|
|
6
7
|
AHFilterUtil: 'sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil',
|
|
7
|
-
AHStableId: 'sap/suite/ui/generic/template/js/StableIdHelper'}"
|
|
8
|
-
|
|
8
|
+
AHStableId: 'sap/suite/ui/generic/template/js/StableIdHelper'}" >
|
|
9
|
+
|
|
9
10
|
<!--
|
|
10
11
|
@classdesc
|
|
11
12
|
@name: Name: sap.ui.generic.template.fragments.AnalyticalListPage.view.xml
|
|
@@ -20,80 +21,75 @@
|
|
|
20
21
|
"entityType",
|
|
21
22
|
"sap-ui-debug"
|
|
22
23
|
}-->
|
|
23
|
-
<template:
|
|
24
|
-
<template:with path="
|
|
25
|
-
<template:with path="
|
|
26
|
-
<template:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
<
|
|
53
|
-
<
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</f:content>
|
|
63
|
-
<f:actions class="sapSmartTemplatesAnalyticalListPageVisualFilterToolbar">
|
|
24
|
+
<template:with path="parameter>/" helper="ALPHelper.createWorkingContext" var="workingContext">
|
|
25
|
+
<template:with path="entitySet>dummy" var="tabItem">
|
|
26
|
+
<template:with path="parameter>/variables" helper="AH.getNewVariable" var="tableSettings">
|
|
27
|
+
<template:if test="{:= ${tableSettings>}.set(${parameter>/templateSpecific/tableSettings})}"/>
|
|
28
|
+
<!-- TODO simplify the showFooter determination by just passing "parameter>" and evaluate everything inside -->
|
|
29
|
+
<f:DynamicPage
|
|
30
|
+
class="sapSmartTemplatesAnalyticalListPageDynamicPage" id="template::Page" headerExpanded="{= ${device>/system/phone} ? 'false' : '{_templPriv>/listReport/isHeaderExpanded}' }" showFooter="{= ${parts: [{path: 'workingContext>lineItem'}, {path: 'workingContext>chart/Actions'},{path: 'parameter>/entitySet'}, {path: 'parameter>/manifest/sap.ui5/extends/extensions/sap.ui.controllerExtensions'}], formatter: 'ALPHelper.hasDeterminingActionsForALP'} }">
|
|
31
|
+
<f:dependents>
|
|
32
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.HeaderCommands" type="XML"/>
|
|
33
|
+
</f:dependents>
|
|
34
|
+
<f:title>
|
|
35
|
+
<f:DynamicPageTitle areaShrinkRatio="{= ${parts: [{path: 'workingContext>lineItem'}, {path: 'workingContext>chart/Actions'}, {path: 'parameter>/entitySet'}, {path: 'parameter>/manifest/sap.ui5/extends/extensions/sap.ui.controllerExtensions'}], formatter: 'ALPHelper.getAreaShrinkRatio'} }" class="sapSmartTemplatesAnalyticalListPageDynamicPageTitle sapSmartTemplatesAnalyticalListPageDynamicPageTitleMargin">
|
|
36
|
+
<f:heading>
|
|
37
|
+
<l:VerticalLayout class="sapSmartTemplatesAnalyticalListPageFilterContainer">
|
|
38
|
+
<l:HorizontalLayout class="sapSmartTemplatesAnalyticalListPageAlignVariantTitle sapUIContentPadding">
|
|
39
|
+
<smartVariantManagement:SmartVariantManagement id="template::PageVariant"
|
|
40
|
+
persistencyKey="{= (${parameter>/settings/smartVariantManagement} || ${parameter>/settings/smartVariantManagement} === undefined) ? 'searchAnalyticalListPageVariant' : '_ST_SmartVariantManagement'}"
|
|
41
|
+
showShare="true" showExecuteOnSelection="{= ${parameter>/settings/showGoButtonOnFilterBar} }"
|
|
42
|
+
displayTextForExecuteOnSelectionForStandardVariant="{= (${parameter>/settings/dataLoadSettings/loadDataOnAppLaunch} === 'ifAnyFilterExist' || ${parameter>/settings/dataLoadSettings/loadDataOnAppLaunch} === undefined) ? '{i18n>ST_LIST_DISPLAY_TEXT_FOR_EXECUTE_ON_SELECTION}' : undefined}" />
|
|
43
|
+
</l:HorizontalLayout>
|
|
44
|
+
</l:VerticalLayout>
|
|
45
|
+
</f:heading>
|
|
46
|
+
<f:content>
|
|
47
|
+
<template:if
|
|
48
|
+
test="{= ${parameter>/settings/keyPerformanceIndicators} !== undefined && Object.keys(${parameter>/settings/keyPerformanceIndicators}).length > 0 && !${device>/system/phone} }">
|
|
49
|
+
<template:then>
|
|
50
|
+
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="ALPHelper.getFilterableKPIs" var="kpiContext">
|
|
51
|
+
<template:with path="kpiContext>globalKPIs" var="kpis">
|
|
52
|
+
<template:if test="{= Object.keys(${kpis>}).length > 0}">
|
|
53
|
+
<OverflowToolbar class= "sapSmartTemplatesAnalyticalListPageKpiTagContainer sapSmartTemplatesAnalyticalListPageKpiTagOverflow" id="template::KPITagContainer::globalKPIs">
|
|
54
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.KPITagList" type="XML"/>
|
|
55
|
+
</OverflowToolbar>
|
|
56
|
+
</template:if>
|
|
57
|
+
</template:with>
|
|
58
|
+
</template:with>
|
|
59
|
+
</template:then>
|
|
60
|
+
</template:if>
|
|
61
|
+
</f:content>
|
|
62
|
+
<f:actions class="sapSmartTemplatesAnalyticalListPageVisualFilterToolbar">
|
|
64
63
|
<ToolbarSpacer/>
|
|
65
64
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.listTemplates.fragments.ActionsFragment" type="XML"/>
|
|
66
|
-
<template:if test="{= !${parameter>/settings/hideVisualFilter}
|
|
65
|
+
<template:if test="{= !${parameter>/settings/hideVisualFilter} }">
|
|
67
66
|
<template:then>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
icon="sap-icon://filter-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
</SegmentedButton>
|
|
81
|
-
</template:then>
|
|
67
|
+
<SegmentedButton
|
|
68
|
+
id = "template::FilterSwitchButton"
|
|
69
|
+
selectedKey="{_templPriv>/alp/filterMode}" width="inherit" visible="{_templPriv>/listReport/isHeaderExpanded}" select="._templateEventHandlers.onFilterModeSegmentedButtonChange">
|
|
70
|
+
<layoutData>
|
|
71
|
+
<OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
72
|
+
</layoutData>
|
|
73
|
+
<items>
|
|
74
|
+
<SegmentedButtonItem icon="sap-icon://filter-fields" tooltip="{i18n>FILTER_COMPACT}" key="compact"/>
|
|
75
|
+
<SegmentedButtonItem icon="sap-icon://filter-analytics" tooltip="{i18n>FILTER_VISUAL}" key="visual"/>
|
|
76
|
+
</items>
|
|
77
|
+
</SegmentedButton>
|
|
78
|
+
</template:then>
|
|
82
79
|
</template:if>
|
|
83
80
|
<MenuButton id="{:= ${parameter>/stableId}.getStableId({type: 'ALPAction', subType: 'Share'}) }"
|
|
84
81
|
icon="sap-icon://action"
|
|
85
82
|
tooltip="{i18n>SHARE} (Shift+Ctrl+S)"
|
|
86
83
|
text=""
|
|
87
|
-
visible="{
|
|
84
|
+
visible="{path: 'appSettings>/flexibleColumnLayout', formatter: 'AH.getShareOptionVisibility'}"
|
|
88
85
|
type="Transparent">
|
|
89
86
|
<layoutData>
|
|
90
|
-
<OverflowToolbarLayoutData closeOverflowOnInteraction="false"
|
|
91
|
-
priority = "{= ${device>/system/phone} ? 'AlwaysOverflow' : 'High'}"/>
|
|
87
|
+
<OverflowToolbarLayoutData closeOverflowOnInteraction="false" priority="{= ${device>/system/phone} ? 'AlwaysOverflow' : 'High'}"/>
|
|
92
88
|
</layoutData>
|
|
93
89
|
</MenuButton>
|
|
94
90
|
</f:actions>
|
|
95
91
|
<f:snappedContent>
|
|
96
|
-
<Text id="template::FilterText" class="sapSmartTemplatesAnalyticalListPageSnappedContentText"
|
|
92
|
+
<Text id="template::FilterText" class="sapSmartTemplatesAnalyticalListPageSnappedContentText"/>
|
|
97
93
|
</f:snappedContent>
|
|
98
94
|
</f:DynamicPageTitle>
|
|
99
95
|
</f:title>
|
|
@@ -111,8 +107,7 @@
|
|
|
111
107
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.ContentContainer" type="XML"/>
|
|
112
108
|
<!-- Helper -->
|
|
113
109
|
<customData>
|
|
114
|
-
<core:CustomData key="entityTypeName" writeToDom="false"
|
|
115
|
-
value="{path: 'entityType>com.sap.vocabularies.UI.v1.HeaderInfo/TypeName', formatter: 'sap.ui.model.odata.AnnotationHelper.format'}"/>
|
|
110
|
+
<core:CustomData key="entityTypeName" writeToDom="false" value="{path: 'entityType>com.sap.vocabularies.UI.v1.HeaderInfo/TypeName', formatter: 'AHModel.format'}"/>
|
|
116
111
|
</customData>
|
|
117
112
|
</VBox>
|
|
118
113
|
</f:content>
|
|
@@ -123,8 +118,8 @@
|
|
|
123
118
|
list="{parameter>/manifest/sap.ui5/extends/extensions/sap.ui.controllerExtensions/sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage/sap.ui.generic.app}"
|
|
124
119
|
var="tmpEntitySet">
|
|
125
120
|
<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
|
|
126
|
-
<template:if test="{=
|
|
127
|
-
|
|
121
|
+
<template:if test="{= !!${customaction>determining} && !${customaction>global} && ${customaction>filter} === 'chart'}">
|
|
122
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.DeterminingActions" type="XML"/>
|
|
128
123
|
</template:if>
|
|
129
124
|
</template:repeat>
|
|
130
125
|
</template:repeat>
|
|
@@ -132,13 +127,13 @@
|
|
|
132
127
|
list="{parameter>/manifest/sap.ui5/extends/extensions/sap.ui.controllerExtensions/sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage/sap.ui.generic.app}"
|
|
133
128
|
var="tmpEntitySet">
|
|
134
129
|
<template:repeat list="{tmpEntitySet>Actions}" var="customaction">
|
|
135
|
-
<template:if test="{=
|
|
136
|
-
|
|
130
|
+
<template:if test="{= !!${customaction>determining} && !${customaction>global} && (!${customaction>filter} || ${customaction>filter} === 'table')}">
|
|
131
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.DeterminingActions" type="XML"/>
|
|
137
132
|
</template:if>
|
|
138
133
|
</template:repeat>
|
|
139
134
|
</template:repeat>
|
|
140
135
|
<template:with path="entitySet>dummy" var="facet">
|
|
141
|
-
<template:with path="workingContext>chartPath" helper="
|
|
136
|
+
<template:with path="workingContext>chartPath" helper="ALPHelper.resolveMetaModelPath" var="chart">
|
|
142
137
|
<template:repeat list="{chart>Actions}" var="dataField">
|
|
143
138
|
<template:if
|
|
144
139
|
test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' || ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation') && ${dataField>Determining/Bool} === 'true'}">
|
|
@@ -146,7 +141,7 @@
|
|
|
146
141
|
</template:if>
|
|
147
142
|
</template:repeat>
|
|
148
143
|
</template:with>
|
|
149
|
-
<template:with path="workingContext>lineItemPath" helper="
|
|
144
|
+
<template:with path="workingContext>lineItemPath" helper="ALPHelper.resolveMetaModelPath" var="lineItem">
|
|
150
145
|
<template:repeat list="{lineItem>}" var="dataField">
|
|
151
146
|
<template:if
|
|
152
147
|
test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' || ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation') && ${dataField>Determining/Bool} === 'true'}">
|
|
@@ -161,5 +156,4 @@
|
|
|
161
156
|
</template:with>
|
|
162
157
|
</template:with>
|
|
163
158
|
</template:with>
|
|
164
|
-
</template:alias>
|
|
165
159
|
</mvc:View>
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
<mvc:View xmlns:mvc="sap.ui.core.mvc" controllerName="sap.suite.ui.generic.template.AnalyticalListPage.controller.KpiCardController"
|
|
2
|
-
|
|
3
|
-
xmlns:build="sap.build" xmlns:st="sap.suite.ui.generic.template"
|
|
4
|
-
>
|
|
5
|
-
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.KpiCard" type="XML"/>
|
|
1
|
+
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns:core="sap.ui.core" controllerName="sap.suite.ui.generic.template.AnalyticalListPage.controller.KpiCardController" >
|
|
2
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.KpiCard" type="XML"/>
|
|
6
3
|
</mvc:View>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns
|
|
2
|
-
xmlns="sap.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
template:require="{ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper'}" >
|
|
4
|
+
|
|
5
|
+
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="ALPHelper.getFilterableKPIs" var="kpiContext">
|
|
6
6
|
<template:with path="kpiContext>filterableKPIs" var="kpis">
|
|
7
|
-
<template:if test="{=
|
|
8
|
-
<OverflowToolbar id="template::analyticGridToolbar"
|
|
7
|
+
<template:if test="{= Object.keys(${kpis>}).length === 0 && !${parameter>/settings/contentTitle} }">
|
|
8
|
+
<OverflowToolbar id="template::analyticGridToolbar" design="Transparent">
|
|
9
9
|
<ToolbarSpacer/>
|
|
10
10
|
<template:if test="{= !${parameter>/settings/quickVariantSelectionX}}">
|
|
11
11
|
<template:then>
|
|
@@ -16,6 +16,6 @@
|
|
|
16
16
|
</template:if>
|
|
17
17
|
</template:with>
|
|
18
18
|
</template:with>
|
|
19
|
-
<VBox id="template::AnalyticGridContainer" visible="{=
|
|
19
|
+
<VBox id="template::AnalyticGridContainer" visible="{= ${_templPriv>/alp/contentView} === 'crosstable'}">
|
|
20
20
|
</VBox>
|
|
21
21
|
</core:FragmentDefinition>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns
|
|
2
|
-
xmlns="sap.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
template:require="{ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper'}" >
|
|
4
|
+
|
|
5
|
+
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="ALPHelper.getFilterableKPIs" var="kpiContext">
|
|
6
6
|
<template:with path="kpiContext>filterableKPIs" var="kpis">
|
|
7
|
-
<template:if test="{=
|
|
8
|
-
<OverflowToolbar id="template::contentViewExtensionToolbar"
|
|
7
|
+
<template:if test="{= Object.keys(${kpis>}).length === 0 && !${parameter>/settings/contentTitle} }">
|
|
8
|
+
<OverflowToolbar id="template::contentViewExtensionToolbar" design="Transparent">
|
|
9
9
|
<ToolbarSpacer/>
|
|
10
10
|
<template:if test="{= !${parameter>/settings/quickVariantSelectionX}}">
|
|
11
11
|
<template:then>
|
|
@@ -16,6 +16,5 @@
|
|
|
16
16
|
</template:if>
|
|
17
17
|
</template:with>
|
|
18
18
|
</template:with>
|
|
19
|
-
<ExtensionPoint name="AnalyticalListPageContentViewExtension"
|
|
20
|
-
</ExtensionPoint>
|
|
19
|
+
<core:ExtensionPoint name="AnalyticalListPageContentViewExtension" />
|
|
21
20
|
</core:FragmentDefinition>
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns
|
|
2
|
-
xmlns="sap.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
template:require="{ALPHelper: 'sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper'}">
|
|
4
|
+
|
|
5
|
+
<template:with path="parameter>/settings/keyPerformanceIndicators" helper="ALPHelper.getFilterableKPIs" var="kpiContext">
|
|
6
6
|
<template:with path="kpiContext>filterableKPIs" var="kpis">
|
|
7
|
-
<template:if test="{=
|
|
8
|
-
<OverflowToolbar id="template::contentViewExtension2Toolbar"
|
|
7
|
+
<template:if test="{= Object.keys(${kpis>}).length === 0 && !${parameter>/settings/contentTitle} }">
|
|
8
|
+
<OverflowToolbar id="template::contentViewExtension2Toolbar" design="Transparent">
|
|
9
9
|
<ToolbarSpacer/>
|
|
10
10
|
<template:if test="{= !${parameter>/settings/quickVariantSelectionX}}">
|
|
11
11
|
<template:then>
|
|
12
|
-
|
|
12
|
+
<core:Fragment fragmentName="sap.suite.ui.generic.template.AnalyticalListPage.view.fragments.ContentViewButtons" type="XML"/>
|
|
13
13
|
</template:then>
|
|
14
14
|
</template:if>
|
|
15
15
|
</OverflowToolbar>
|
|
16
16
|
</template:if>
|
|
17
17
|
</template:with>
|
|
18
18
|
</template:with>
|
|
19
|
-
<ExtensionPoint name="AnalyticalListPageContentViewExtension2"
|
|
20
|
-
</ExtensionPoint>
|
|
19
|
+
<core:ExtensionPoint name="AnalyticalListPageContentViewExtension2" />
|
|
21
20
|
</core:FragmentDefinition>
|