@sapui5/sap.suite.ui.generic.template 1.125.0 → 1.127.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/control/SmartKpiTag.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +3 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +17 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +13 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +12 -17
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DynamicDateRangeController.js +4 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +2 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -10
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +10 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +11 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +6 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentViewButtons.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +1 -3
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +9 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +118 -40
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +10 -0
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +19 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +18 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +6 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +6 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +26 -18
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageStripHelper.js +3 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +12 -15
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +5 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +4 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +38 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +6 -15
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.controller.js +4 -3
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/AnalyticalListPage.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +2 -5
- package/src/sap/suite/ui/generic/template/designtime/utils/DesigntimeHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +27 -10
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +15 -16
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +24 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +13 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +23 -2
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/AjaxHelper.js +57 -47
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/FeLogger.js +0 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +64 -12
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +32 -24
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +6 -6
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +62 -53
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +3 -3
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +3 -3
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +39 -33
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +79 -53
- package/src/sap/suite/ui/generic/template/lib/Application.js +3 -8
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +25 -22
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +34 -19
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +56 -11
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +11 -12
- package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +25 -12
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +7 -5
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +2 -12
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +5 -7
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +1 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +323 -0
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +77 -0
- package/src/sap/suite/ui/generic/template/lib/ai/JouleContextProvider.js +56 -0
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +38 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +16 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +10 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +9 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/info/SmartTableInfo.js +26 -2
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +10 -29
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +24 -24
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +15 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +8 -2
- 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 +32 -29
- package/src/sap/suite/ui/generic/template/listTemplates/controller/SmartChartController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +4 -2
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -14
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTableToolbar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/base.less +4 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/ALPConstants.less +47 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base.less +7 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_AnalyticalListPage.less +475 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ListReport.less +33 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +391 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickCreate.less +96 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickView.less +108 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/library.source.less +24 -7
- package/ui5.yaml +1 -1
package/package.json
CHANGED
|
@@ -918,8 +918,8 @@ sap.ui.define([
|
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
920
|
/**
|
|
921
|
+
* This Methods checks if the returned unit of Measure is a percent.
|
|
921
922
|
* @private
|
|
922
|
-
* this Methods checks if the returned unit of Measure is a percent
|
|
923
923
|
* @param oEntityTypeProperty [Entity property which has the UoM]
|
|
924
924
|
* @return [returns true/false ]
|
|
925
925
|
*/
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js
CHANGED
|
@@ -15,7 +15,7 @@ sap.ui.define(["sap/ui/core/Control", "sap/ui/model/Filter"],
|
|
|
15
15
|
dimensionFieldIsDateTimeOffset: { type: "boolean", group: "Misc", defaultValue: false },
|
|
16
16
|
dimensionFieldDisplay: { type: "string", group: "Misc", defaultValue: null },
|
|
17
17
|
dimensionFilter: { type: "any", group: "Misc", defaultValue: null },
|
|
18
|
-
dimensionFilterExternal: { type: "
|
|
18
|
+
dimensionFilterExternal: { type: "any", group: "Misc", defaultValue: null },
|
|
19
19
|
measureField: { type: "string", group: "Misc", defaultValue: null },
|
|
20
20
|
unitField: { type: "string", group: "Misc", defaultValue: null },
|
|
21
21
|
isCurrency: { type: "boolean", group: "Misc", defaultValue: false },
|
|
@@ -51,6 +51,7 @@ sap.ui.define([
|
|
|
51
51
|
chartQualifier: {type: "string", group: "Misc", defaultValue: null},
|
|
52
52
|
smartFilterId: { type: "string", group: "Misc", defaultValue: null},
|
|
53
53
|
isParameter: { type: "boolean", group: "Misc", defaultValue: false },
|
|
54
|
+
activeVisualFilters: { type: "boolean", group: "Misc", defaultValue: false },
|
|
54
55
|
stringdate: { type: "string", group: "Misc", defaultValue: "" } //dummy property
|
|
55
56
|
},
|
|
56
57
|
aggregations: {
|
|
@@ -843,9 +844,9 @@ sap.ui.define([
|
|
|
843
844
|
};
|
|
844
845
|
|
|
845
846
|
/**
|
|
846
|
-
* @private
|
|
847
847
|
* This function determine unit and set it.
|
|
848
|
-
*
|
|
848
|
+
* @private
|
|
849
|
+
* @param{array} data list from which unit determination to be done
|
|
849
850
|
* @return{void}
|
|
850
851
|
*/
|
|
851
852
|
FilterItemChart.prototype._determineUnit = function (data){
|
|
@@ -664,8 +664,8 @@ sap.ui.define([
|
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
/**
|
|
667
|
-
* @private
|
|
668
667
|
* Get AND query filters for all in parameters for a visual filter instance instance
|
|
668
|
+
* @private
|
|
669
669
|
*
|
|
670
670
|
* @param {array} inParams - array of in parameters
|
|
671
671
|
* @param {string} parentProperty - parent property of the visual filter instance
|
|
@@ -369,8 +369,8 @@ sap.ui.define([
|
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
/**
|
|
372
|
-
* @private
|
|
373
372
|
* This function sets the field groups to be displayed in the visual filter dialog
|
|
373
|
+
* @private
|
|
374
374
|
* @param {string} sEntityGroupName - entity type name
|
|
375
375
|
* @return {void}
|
|
376
376
|
*/
|
|
@@ -391,11 +391,12 @@ sap.ui.define([
|
|
|
391
391
|
this._groupMap = groupByName;
|
|
392
392
|
};
|
|
393
393
|
|
|
394
|
-
|
|
395
|
-
*This function is to obtain scale factor from annotations
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
394
|
+
/**
|
|
395
|
+
* This function is to obtain scale factor from annotations
|
|
396
|
+
* @private
|
|
397
|
+
* @param {object} oEntityType entity object
|
|
398
|
+
* @param {string} sAnnotationPath Annotation path containing scale factor
|
|
399
|
+
* @return {string} [scale factor value]
|
|
399
400
|
*/
|
|
400
401
|
|
|
401
402
|
VisualFilterProvider.prototype._getScaleFactor = function(oEntityType,sAnnotationPath){
|
|
@@ -417,11 +418,12 @@ sap.ui.define([
|
|
|
417
418
|
}
|
|
418
419
|
};
|
|
419
420
|
|
|
420
|
-
|
|
421
|
-
*This function is to obtain scale factor from annotations
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
421
|
+
/**
|
|
422
|
+
* This function is to obtain scale factor from annotations
|
|
423
|
+
* @private
|
|
424
|
+
* @param {object} oEntityType entity object
|
|
425
|
+
* @param {string} sAnnotationPath Annotation path containing scale factor
|
|
426
|
+
* @return {string} [scale factor value]
|
|
425
427
|
*/
|
|
426
428
|
|
|
427
429
|
VisualFilterProvider.prototype._getNumberOfFractionalDigits = function(oEntityType,sAnnotationPath){
|
|
@@ -445,8 +447,8 @@ sap.ui.define([
|
|
|
445
447
|
};
|
|
446
448
|
|
|
447
449
|
/**
|
|
448
|
-
* @private
|
|
449
450
|
* This function read the filter annotation for visual filter and set the filter configuration
|
|
451
|
+
* @private
|
|
450
452
|
* @param {string} sEntityNameFull full name of the entity
|
|
451
453
|
* @return {void}
|
|
452
454
|
*/
|
|
@@ -576,11 +578,11 @@ sap.ui.define([
|
|
|
576
578
|
}
|
|
577
579
|
};
|
|
578
580
|
/**
|
|
579
|
-
* @private
|
|
580
581
|
* This function creates a default Sort Order for the charts, when sort order is not given in the annotations
|
|
581
582
|
* For Bar/Donut - Default sort order is measure descending
|
|
582
583
|
* For Line - If dimension field is DateTime, default sort order is dimension descending
|
|
583
584
|
* If dimension field is non DateTime, default sort order is dimension ascending
|
|
585
|
+
* @private
|
|
584
586
|
* @param {string} sChartType chart type
|
|
585
587
|
* @param {string} sMeasure Measure of the chart
|
|
586
588
|
* @param {string} sDimension Dimension of the chart
|
|
@@ -609,8 +611,8 @@ sap.ui.define([
|
|
|
609
611
|
return oSortObject;
|
|
610
612
|
};
|
|
611
613
|
/**
|
|
612
|
-
* @private
|
|
613
614
|
* This function returns annotationObject with a new property SortOrder
|
|
615
|
+
* @private
|
|
614
616
|
* @param {object} oPresentationVariantAnnotation PresentationVariantAnnotation from annotation
|
|
615
617
|
* @param {string} sMeasure Measure of the chart
|
|
616
618
|
* @param {string} sDimension Dimension of the chart
|
|
@@ -1066,8 +1068,8 @@ sap.ui.define([
|
|
|
1066
1068
|
};
|
|
1067
1069
|
|
|
1068
1070
|
/**
|
|
1069
|
-
* @private
|
|
1070
1071
|
* This function is used to ignore VF items which do not have dimensions and measures
|
|
1072
|
+
* @private
|
|
1071
1073
|
* @param {string} sEntitySet Entity set of the property
|
|
1072
1074
|
* @param {string} sDimension Dimension of the chart
|
|
1073
1075
|
* @param {string} sMeasure Measure of chart
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* global window sap */
|
|
2
1
|
sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
3
2
|
"sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI",
|
|
4
3
|
"sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController",
|
|
@@ -1058,22 +1057,26 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
1058
1057
|
oTemplateUtils.oCommonUtils.setEnabledToolbarButtons(ev.getSource());
|
|
1059
1058
|
},
|
|
1060
1059
|
onAfterApplyChartVariant: function() {
|
|
1061
|
-
|
|
1060
|
+
// Wait until the previous invocation of storing the app state is completed.
|
|
1061
|
+
// Then, proceed with storing the current app state.
|
|
1062
|
+
setTimeout(function () {
|
|
1063
|
+
oState.oIappStateHandler.fnStoreCurrentAppStateAndAdjustURL();
|
|
1064
|
+
}, 0);
|
|
1062
1065
|
},
|
|
1063
1066
|
onFilterModeSegmentedButtonChange: function(oEvent) {
|
|
1064
|
-
oState.filterBarController.handleFilterSwitch(
|
|
1067
|
+
oState.filterBarController.handleFilterSwitch();
|
|
1065
1068
|
oState.oController._templateEventHandlers.onSegmentButtonPressed();
|
|
1066
1069
|
oState.filterBarController.fnCheckMandatory();
|
|
1067
1070
|
},
|
|
1068
1071
|
onContentViewSegmentButtonPressed: function(oEvent){
|
|
1069
1072
|
//todo: check if DSH loads if the default filter mode is crosstable
|
|
1070
1073
|
//ideally we can init DSH post GO button press
|
|
1074
|
+
var sSelectedKey = oEvent.getSource().getSelectedKey();
|
|
1071
1075
|
|
|
1072
|
-
if (
|
|
1076
|
+
if (sSelectedKey === "crosstable" && !oState.oAnalyticGrid) {
|
|
1073
1077
|
oState.oAnalyticGridController.initAnalyticGrid();
|
|
1074
1078
|
}
|
|
1075
1079
|
|
|
1076
|
-
var sSelectedKey = oEvent.getSource().getSelectedKey();
|
|
1077
1080
|
if ((sSelectedKey === "table" || sSelectedKey === "charttable") && bTableRebindRequired) {
|
|
1078
1081
|
oState.oSmartTable.rebindTable();
|
|
1079
1082
|
bTableRebindRequired = false;
|
|
@@ -1222,13 +1225,6 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
1222
1225
|
};
|
|
1223
1226
|
oState.oSmartFilterbar.addAdaptFilterDialogCustomContent(mCustomView);
|
|
1224
1227
|
},
|
|
1225
|
-
//Event handling for dialog buttons
|
|
1226
|
-
onSearchForFilters: function(oEvent) {
|
|
1227
|
-
oState.visualFilterDialogContainer._triggerSearchInFilterDialog.call(oState.visualFilterDialogContainer, oEvent);
|
|
1228
|
-
},
|
|
1229
|
-
onDialogSearch: function(oEvent) {
|
|
1230
|
-
oState.visualFilterDialogContainer._searchDialog.call(oState.visualFilterDialogContainer);
|
|
1231
|
-
},
|
|
1232
1228
|
onDialogClear: function(oEvent) {
|
|
1233
1229
|
oController.onClearFilterExtension(oEvent);
|
|
1234
1230
|
},
|
|
@@ -1251,9 +1247,11 @@ sap.ui.define(["sap/fe/navigation/SelectionVariant",
|
|
|
1251
1247
|
},
|
|
1252
1248
|
onAddCardsToRepository: function(oEvent) {
|
|
1253
1249
|
var oPresentationControlHandler = oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oState.oSmartChart);
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1250
|
+
oPresentationControlHandler.getInitializationPromise().then(function () {
|
|
1251
|
+
oState.oInsightsHandler.prepareAndShowCard(oEvent, {
|
|
1252
|
+
"cardType" : "Analytical"
|
|
1253
|
+
}, oPresentationControlHandler);
|
|
1254
|
+
});
|
|
1257
1255
|
},
|
|
1258
1256
|
onBeforeExport: function (oExportEvent) {
|
|
1259
1257
|
oTemplateUtils.oCommonEventHandlers.onBeforeExport(oExportEvent);
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js
CHANGED
|
@@ -18,15 +18,15 @@ sap.ui.define([
|
|
|
18
18
|
|
|
19
19
|
var bShowOnlySelected = false, oToolbar = {}, oInfoLabel = {}, oUpdatedDimensionFilter = "",
|
|
20
20
|
DropDownController = Controller.extend("sap.suite.ui.generic.template.AnalyticalListPage.controller.DropDownController", {});
|
|
21
|
+
|
|
21
22
|
/**
|
|
22
23
|
* createMatchingConceptDropdown creates a drop down with pre filled from compact filter value entity set it's selections.
|
|
23
24
|
*
|
|
24
|
-
* @param {oControl
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* property - property
|
|
25
|
+
* @param {sap.ui.core.Control} oControl - current element control
|
|
26
|
+
* @param {Object} oChart - chart
|
|
27
|
+
* @param {sap.ui.model.Model} oModel - _filter Model
|
|
28
|
+
* @param {string} title - dimLabel
|
|
29
|
+
* @param {object} property - property
|
|
30
30
|
* @returns {void}
|
|
31
31
|
*
|
|
32
32
|
* @private
|
|
@@ -65,7 +65,8 @@ sap.ui.define([
|
|
|
65
65
|
oDialog.addContent(oList);
|
|
66
66
|
//Attaching the selection change of the list to update the selection accordingly.
|
|
67
67
|
oList.attachSelectionChange(function(oEvt) {
|
|
68
|
-
var
|
|
68
|
+
var sBindingPath = oEvt.getParameter("listItem").getBindingContext().getPath();
|
|
69
|
+
var currentSelectedItem = oList.getModel().getProperty(sBindingPath);
|
|
69
70
|
currentSelectedItem = currentSelectedItem[property.dimensionField];
|
|
70
71
|
var selected = oEvt.getParameters().listItem.mProperties.selected;
|
|
71
72
|
if (property.filterRestriction === 'multiple') {
|
|
@@ -138,9 +139,8 @@ sap.ui.define([
|
|
|
138
139
|
this.oSearchField = new SearchField({
|
|
139
140
|
liveChange: fnApplyFilterOnDropdown,
|
|
140
141
|
search: fnApplyFilterOnDropdown,
|
|
141
|
-
enabled:bIsEntitySearchable
|
|
142
|
-
|
|
143
|
-
});
|
|
142
|
+
enabled: bIsEntitySearchable
|
|
143
|
+
});
|
|
144
144
|
|
|
145
145
|
this._oPopoverDialog = new ResponsivePopover('',{
|
|
146
146
|
placement: SapMLibrary.PlacementType.Bottom,
|
|
@@ -311,8 +311,8 @@ sap.ui.define([
|
|
|
311
311
|
/**
|
|
312
312
|
* getSortObject takes the property object to returns the sorted object.
|
|
313
313
|
*
|
|
314
|
-
* @param { property
|
|
315
|
-
* @returns {sorter object
|
|
314
|
+
* @param {object} property
|
|
315
|
+
* @returns {sap.ui.model.Sorter} sorter object
|
|
316
316
|
*
|
|
317
317
|
* @private
|
|
318
318
|
*/
|
|
@@ -323,11 +323,6 @@ sap.ui.define([
|
|
|
323
323
|
};
|
|
324
324
|
|
|
325
325
|
/**
|
|
326
|
-
* getSortObject takes the property object to returns the sorted object.
|
|
327
|
-
*
|
|
328
|
-
* @param { property}
|
|
329
|
-
* @returns {sorter object}
|
|
330
|
-
*
|
|
331
326
|
* @private
|
|
332
327
|
*/
|
|
333
328
|
sap.suite.ui.generic.template.AnalyticalListPage.controller.DropDownController.updateFilterWithListBindings = function (oList, oToolbarMenuButton, i18n, filterRestriction, filterBy) {
|
|
@@ -10,12 +10,11 @@ sap.ui.define([
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var DynamicDateRangeController = Controller.extend("sap.suite.ui.generic.template.AnalyticalListPage.controller.DynamicDateRangeController", {});
|
|
13
|
+
|
|
13
14
|
/**
|
|
14
15
|
* createDynamicDateRange creates a DynamicDateRange control with pre filled from compact filter value entity set it's selections.
|
|
15
16
|
*
|
|
16
|
-
* @param {
|
|
17
|
-
* oControl - current element control
|
|
18
|
-
* oChart - chart
|
|
17
|
+
* @param {string[]} oControlOptions Array of DynamicDateRange options
|
|
19
18
|
* @returns {void}
|
|
20
19
|
*
|
|
21
20
|
* @private
|
|
@@ -46,7 +45,7 @@ sap.ui.define([
|
|
|
46
45
|
/**
|
|
47
46
|
* To set the passed date to DynamicDateRange Control
|
|
48
47
|
*
|
|
49
|
-
* @param {Date object
|
|
48
|
+
* @param {Date} oDate Date object
|
|
50
49
|
* @returns {void}
|
|
51
50
|
*
|
|
52
51
|
* @private
|
|
@@ -82,7 +81,7 @@ sap.ui.define([
|
|
|
82
81
|
/**
|
|
83
82
|
* To handle Dynamic Date selection and deselection(clear)
|
|
84
83
|
*
|
|
85
|
-
* @param {oEvent
|
|
84
|
+
* @param {sap.ui.base.Event} oEvent event
|
|
86
85
|
* @returns {void}
|
|
87
86
|
*
|
|
88
87
|
* @private
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js
CHANGED
|
@@ -165,17 +165,14 @@ sap.ui.define(["sap/m/SegmentedButtonItem", "sap/m/Button", "sap/m/Text", "sap/m
|
|
|
165
165
|
setDefaultFilter:function(mode) {
|
|
166
166
|
var oTemplatePrivate = this.oState.oController.getOwnerComponent().getModel("_templPriv");
|
|
167
167
|
oTemplatePrivate.setProperty('/alp/filterMode', mode);
|
|
168
|
-
this.handleFilterSwitch(
|
|
168
|
+
this.handleFilterSwitch(); // Don't want to trigger a mode change event, this will cause the data to be reloaded too earlier, the reload will happen when variants are processed
|
|
169
169
|
},
|
|
170
170
|
/**
|
|
171
171
|
* press handler for filter switch button
|
|
172
172
|
*
|
|
173
|
-
* @param {string} mode - compact or visual
|
|
174
|
-
* @param {boolean} bApplyingVariant - true is variant is being applied
|
|
175
|
-
*
|
|
176
173
|
* @returns {void}
|
|
177
174
|
*/
|
|
178
|
-
handleFilterSwitch:function(
|
|
175
|
+
handleFilterSwitch:function() {
|
|
179
176
|
var oComponent = this.oState.oController.getOwnerComponent();
|
|
180
177
|
var oTemplatePrivate = oComponent.getModel("_templPriv");
|
|
181
178
|
var oModel = this.oState.alr_visualFilterBar && this.oState.alr_visualFilterBar.getModel();
|
|
@@ -55,7 +55,6 @@ sap.ui.define([
|
|
|
55
55
|
_createForm: function() {
|
|
56
56
|
// store as a string to parse later ad restore
|
|
57
57
|
// since cloning via jquery extend is not working on json model
|
|
58
|
-
this._searchTriggered = false;
|
|
59
58
|
this._restoreTriggered = false;
|
|
60
59
|
var oVisualFilterDialogModel = new JSONModel();
|
|
61
60
|
var visualFilterBarConfigModel = this.oState.alr_visualFilterBar.getModel('_visualFilterConfigModel');
|
|
@@ -104,14 +103,6 @@ sap.ui.define([
|
|
|
104
103
|
}
|
|
105
104
|
},
|
|
106
105
|
|
|
107
|
-
_searchDialog: function() {
|
|
108
|
-
//only update the flag on search event and update visual filters on close of the dialog
|
|
109
|
-
this._searchTriggered = true;
|
|
110
|
-
if (this.bSearchPendingAfterDialogFilterChange) {
|
|
111
|
-
this.bSearchPendingAfterDialogFilterChange = false;
|
|
112
|
-
this.oState.oSmartFilterbar.search();
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
106
|
/*
|
|
116
107
|
called on go and save to update the filter bar with the changes made in dialog
|
|
117
108
|
*/
|
|
@@ -1474,8 +1465,8 @@ sap.ui.define([
|
|
|
1474
1465
|
}
|
|
1475
1466
|
});
|
|
1476
1467
|
/**
|
|
1477
|
-
* @private
|
|
1478
1468
|
* [_createPopoverDialog description]
|
|
1469
|
+
* @private
|
|
1479
1470
|
* @param {object} i18n object
|
|
1480
1471
|
* @param {object} title string to display in dialog
|
|
1481
1472
|
* @return {object} oDialog object
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js
CHANGED
|
@@ -299,6 +299,17 @@ sap.ui.define([
|
|
|
299
299
|
* @param {boolean} oExportParams.includeFilterSettings The value of "Include filter settings" checkbox
|
|
300
300
|
* @protected
|
|
301
301
|
*/
|
|
302
|
-
onBeforeExportTableExtension: function(oExportParams) {}
|
|
302
|
+
onBeforeExportTableExtension: function(oExportParams) {},
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* SAP Fiori elements offers a generic implementation for function getContext() called by Joule.
|
|
306
|
+
* Additionally, the app context contains a custom object that an application developer can leverage to provide additional information relevant to the capability.
|
|
307
|
+
*
|
|
308
|
+
* @param {object} oContext - context object generated by Fiori elements
|
|
309
|
+
* @returns enhanced context object with custom properties
|
|
310
|
+
*/
|
|
311
|
+
getContext: function(oContext) {
|
|
312
|
+
return oContext;
|
|
313
|
+
}
|
|
303
314
|
};
|
|
304
315
|
});
|
|
@@ -15,6 +15,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
15
15
|
var oNavigationController;
|
|
16
16
|
return /** @lends sap.suite.ui.generic.template.AnalyticalListPage.extensionAPI.ExtensionAPI.prototype */ {
|
|
17
17
|
/**
|
|
18
|
+
* Generally, this method returns the currently selected contexts in the given ui element (table, chart, or list).
|
|
19
|
+
* In case the context menu is opened, it returns the contexts applicable to the context menu.
|
|
20
|
+
*
|
|
18
21
|
* Get the list entries currently selected
|
|
19
22
|
* @param {string} sUiElementId the id identifying the ui element the selected context is requested for
|
|
20
23
|
* @return {sap.ui.model.Context[]} contains the entries selected
|
|
@@ -26,7 +29,13 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
26
29
|
if (sUiElementId) {
|
|
27
30
|
oControl = oController.byId(sUiElementId);
|
|
28
31
|
}
|
|
29
|
-
|
|
32
|
+
var oPresentationControl = oTemplateUtils.oCommonUtils.getOwnerPresentationControl(oControl);
|
|
33
|
+
// This focus info is added to state by sap.suite.ui.generic.template.lib.ContextMenuHandler when the context menu is opened
|
|
34
|
+
// If the state contains focus info, return the contexts applicable for context menu
|
|
35
|
+
if (oState.oFocusInfo && oState.oFocusInfo.smartControlId === oPresentationControl.getId()) {
|
|
36
|
+
return oState.oFocusInfo.applicableContexts;
|
|
37
|
+
}
|
|
38
|
+
return oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oPresentationControl).getSelectedContexts();
|
|
30
39
|
},
|
|
31
40
|
/**
|
|
32
41
|
* Triggers rebinding on the list
|
|
@@ -206,9 +206,9 @@ NODATA_ADAPTFILTERDIALOG=Keine Daten
|
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
|
|
209
|
-
NODATA_SMARTCHART_ALP=Um zu starten, setzen Sie die entsprechenden Filter und w\u00E4hlen Sie "Start".
|
|
209
|
+
NODATA_SMARTCHART_ALP=Um zu starten, setzen Sie die entsprechenden Filter, und w\u00E4hlen Sie "Start".
|
|
210
210
|
|
|
211
|
-
NODATA_SMARTTABLE_ALP=Um zu starten, setzen Sie die entsprechenden Filter und w\u00E4hlen Sie "Start".
|
|
211
|
+
NODATA_SMARTTABLE_ALP=Um zu starten, setzen Sie die entsprechenden Filter, und w\u00E4hlen Sie "Start".
|
|
212
212
|
|
|
213
213
|
MESSAGE_MULTIPLE_VALUES_L_FORM=Einige Filter sind f\u00FCr Tab "{1}" ({0}) nicht relevant. Sie haben hat keinen Einfluss auf die Ergebnisse.
|
|
214
214
|
|
|
@@ -245,11 +245,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
245
245
|
};
|
|
246
246
|
/**
|
|
247
247
|
* [hasDeterminingActionsForALP To check if determiningActions are defined in manifest or annotations]
|
|
248
|
-
* @param {[
|
|
249
|
-
* @param {[
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {Object}
|
|
252
|
-
* @return {
|
|
248
|
+
* @param {string[]} aTableTerm [Records of table actions from annotations]
|
|
249
|
+
* @param {string[]} aChartTerm [Records of chart actions from annotations]
|
|
250
|
+
* @param {string} sEntitySet [Entity set Records]
|
|
251
|
+
* @param {Object} oManifestExt [Extensions from manifest]
|
|
252
|
+
* @return {boolean} [Returns status of determining actions to the xml]
|
|
253
253
|
*/
|
|
254
254
|
oAnnotationHelper.hasDeterminingActionsForALP = function(aTableTerm, aChartTerm, sEntitySet, oManifestExt) {
|
|
255
255
|
if (sEntitySet && oManifestExt && oManifestExt["sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"] &&
|
|
@@ -290,9 +290,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
290
290
|
};
|
|
291
291
|
/**
|
|
292
292
|
* [_hasCustomDeterminingActionsInALP To check if determiningActions are defined in manifest]
|
|
293
|
-
* @param {
|
|
293
|
+
* @param {string} sEntitySet [Entity set Records]
|
|
294
294
|
* @param {Object} oManifestExt [Extensions from manifest]
|
|
295
|
-
* @return {
|
|
295
|
+
* @return {boolean} [Returns status of determining actions to the xml]
|
|
296
296
|
*/
|
|
297
297
|
oAnnotationHelper._hasCustomDeterminingActionsInALP = function(sEntitySet, oManifestExt) {
|
|
298
298
|
if (oManifestExt && oManifestExt[sEntitySet]) {
|
|
@@ -309,9 +309,9 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
309
309
|
};
|
|
310
310
|
/**
|
|
311
311
|
* [_hasCustomGlobalActions To check if global Actions are defined in manifest]
|
|
312
|
-
* @param {
|
|
312
|
+
* @param {atring} sEntitySet [Entity set Records]
|
|
313
313
|
* @param {Object} oManifestExt [Extensions from manifest]
|
|
314
|
-
* @return {
|
|
314
|
+
* @return {boolean} [Returns status of global actions to the xml]
|
|
315
315
|
*/
|
|
316
316
|
oAnnotationHelper._hasCustomGlobalActions = function(sEntitySet, oManifestExt) {
|
|
317
317
|
if (oManifestExt && oManifestExt[sEntitySet]) {
|
|
@@ -334,10 +334,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
334
334
|
kpiContext.filterableKPIs = [];
|
|
335
335
|
kpiContext.globalKPIs = [];
|
|
336
336
|
if (oKPIObject) {
|
|
337
|
-
for (var item = 0; item < Object.keys(oKPIObject).length; item++){
|
|
337
|
+
for (var item = 0; item < Object.keys(oKPIObject).length; item++) {
|
|
338
338
|
if (oKPIObject[Object.keys(oKPIObject)[item]]["filterable"]) {
|
|
339
339
|
kpiContext.filterableKPIs.push(oKPIObject[Object.keys(oKPIObject)[item]]);
|
|
340
|
-
}else {
|
|
340
|
+
} else {
|
|
341
341
|
kpiContext.globalKPIs.push(oKPIObject[Object.keys(oKPIObject)[item]]);
|
|
342
342
|
}
|
|
343
343
|
}
|
|
@@ -12,8 +12,8 @@ sap.ui.define([
|
|
|
12
12
|
"use strict";
|
|
13
13
|
var FilterUtil = BaseObject.extend("sap.suite.ui.generic.template.AnalyticalListPage.util.FilterUtil");
|
|
14
14
|
/**
|
|
15
|
-
* @private
|
|
16
15
|
* This function create a title by combining the label and id
|
|
16
|
+
* @private
|
|
17
17
|
* @param {string} sDimValueDisplay the label field
|
|
18
18
|
* @param {string} sDimValue the id field
|
|
19
19
|
* @return {string} the newly created title
|
|
@@ -77,9 +77,9 @@ sap.ui.define([
|
|
|
77
77
|
};
|
|
78
78
|
/**
|
|
79
79
|
* This function returns the property isNullable or not
|
|
80
|
-
* @param {object} Model instance
|
|
81
|
-
* @param {string} entity set
|
|
82
|
-
* @return {string} the property name
|
|
80
|
+
* @param {object} oModel Model instance
|
|
81
|
+
* @param {string} entitySet entity set
|
|
82
|
+
* @return {string} sPropertyName the property name
|
|
83
83
|
*/
|
|
84
84
|
FilterUtil.isNullable = function (oModel, entitySet, sPropertyName) {
|
|
85
85
|
var oMetadataAnalyser = new MetadataAnalyser(oModel);
|
|
@@ -359,8 +359,8 @@ sap.ui.define([
|
|
|
359
359
|
};
|
|
360
360
|
/**
|
|
361
361
|
* Function that returns a local date to UTC date
|
|
362
|
-
* @param {
|
|
363
|
-
* @returns {
|
|
362
|
+
* @param {Date} oDate - The input local date object
|
|
363
|
+
* @returns {Date} The UTC offset date object
|
|
364
364
|
*/
|
|
365
365
|
FilterUtil.convertLocalDatetoUTCDate = function(oDate) {
|
|
366
366
|
var oUTCDate = new Date(oDate.valueOf() + oDate.getTimezoneOffset() * 60 * 1000);
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml
CHANGED
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<template:then>
|
|
68
68
|
<SegmentedButton
|
|
69
69
|
id = "template::FilterSwitchButton"
|
|
70
|
-
selectedKey="{_templPriv>/alp/filterMode}" width="inherit" visible="{_templPriv>/listReport/isHeaderExpanded}"
|
|
70
|
+
selectedKey="{_templPriv>/alp/filterMode}" width="inherit" visible="{_templPriv>/listReport/isHeaderExpanded}" selectionChange="._templateEventHandlers.onFilterModeSegmentedButtonChange">
|
|
71
71
|
<layoutData>
|
|
72
72
|
<OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
73
73
|
</layoutData>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
2
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1">
|
|
3
3
|
|
|
4
|
-
<SegmentedButton selectedKey="{_templPriv>/alp/contentView}"
|
|
4
|
+
<SegmentedButton selectedKey="{_templPriv>/alp/contentView}" selectionChange="._templateEventHandlers.onContentViewSegmentButtonPressed">
|
|
5
5
|
<items>
|
|
6
6
|
<template:if test="{= !${device>/system/phone}}">
|
|
7
7
|
<SegmentedButtonItem
|
|
@@ -20,10 +20,8 @@
|
|
|
20
20
|
reset="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onRestore' : undefined}"
|
|
21
21
|
filtersDialogClosed="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onDialogClosed' : undefined}"
|
|
22
22
|
filtersDialogBeforeOpen="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onDialogOpened' : undefined}"
|
|
23
|
-
filtersDialogSearch="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onDialogSearch' : undefined}"
|
|
24
23
|
filtersDialogCancel="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onDialogCancel' : undefined}"
|
|
25
24
|
clear="._templateEventHandlers.onDialogClear"
|
|
26
|
-
filtersDialogSearchForFilters="{= (${parameter>/settings/hideVisualFilter} === false || ${parameter>/settings/hideVisualFilter} === undefined) ? '._templateEventHandlers.onSearchForFilters' : undefined}"
|
|
27
25
|
useProvidedNavigationProperties="{= ${entityType>sap:semantics} === 'aggregate' }"
|
|
28
26
|
>
|
|
29
27
|
<smartfilterbarext:controlConfiguration>
|
|
@@ -32,7 +30,7 @@
|
|
|
32
30
|
key="{controlConfigurationSetting>key}"
|
|
33
31
|
groupId="{controlConfigurationSetting>groupId}"
|
|
34
32
|
index="{controlConfigurationSetting>index}"
|
|
35
|
-
|
|
33
|
+
visibleInAdvancedArea="{controlConfigurationSetting>visibleInAdvancedArea}"
|
|
36
34
|
conditionType="{controlConfigurationSetting>conditionType}"
|
|
37
35
|
historyEnabled="{controlConfigurationSetting>historyEnabled}"/>
|
|
38
36
|
</template:repeat>
|
|
@@ -142,7 +142,11 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
142
142
|
var oTableSettings = oVariant ? oVariant.tableSettings : oLrSettings.tableSettings;
|
|
143
143
|
var bMultiEdit = false;
|
|
144
144
|
var sSelectionMode = oTableSettings.mode;
|
|
145
|
-
if (
|
|
145
|
+
if (
|
|
146
|
+
oTableSettings.multiEdit.enabled !== false &&
|
|
147
|
+
(oLrSettings.isResponsiveTable || oLrSettings.tableSettings.type === "GridTable") && // Allow multi edit for GridTable and ResponsiveTable only
|
|
148
|
+
!oLrSettings.isWorklist
|
|
149
|
+
) {
|
|
146
150
|
bMultiEdit = true;
|
|
147
151
|
var oUpdateRestrictions = oEntitySet["Org.OData.Capabilities.V1.UpdateRestrictions"];
|
|
148
152
|
if (oUpdateRestrictions && oUpdateRestrictions.Updatable && oUpdateRestrictions.Updatable.Bool === "false") {
|
|
@@ -448,6 +452,10 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
448
452
|
|
|
449
453
|
//Include navigation property settings to filterSettings
|
|
450
454
|
var oNavigationPropSettings = filterSettingsPreparationHelper.getNavigationPropSettings(oLrSettings);
|
|
455
|
+
if (oComponentUtils.isDraftEnabled() &&
|
|
456
|
+
!oNavigationPropSettings.navigationProperties.includes("DraftAdministrativeData")) {
|
|
457
|
+
oNavigationPropSettings.navigationProperties += ((oNavigationPropSettings.navigationProperties).length ? "," : '') + "DraftAdministrativeData";
|
|
458
|
+
}
|
|
451
459
|
oLrSettings.filterSettings = deepExtend(oLrSettings.filterSettings, oNavigationPropSettings);
|
|
452
460
|
|
|
453
461
|
oLrSettings.isSelflinkRequired = true;
|