@sapui5/sap.suite.ui.generic.template 1.101.1 → 1.102.3
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 +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +9 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +17 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +8 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +10 -10
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +10 -8
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +5 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/IconTabBarWithSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +63 -50
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +20 -20
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +18 -16
- package/src/sap/suite/ui/generic/template/ListReport/controller/LegacyStateHandler.js +69 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/MultiEditHandler.js +1 -0
- package/src/sap/suite/ui/generic/template/ListReport/controller/MultipleViewsHandler.js +7 -17
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +3 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_sappsd.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saptrc.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +4 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActions.fragment.xml +18 -15
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/CRUDActionButtons.fragment.xml +27 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DraftInfoBox.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/HeaderCommands.fragment.xml +18 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/IconTabBarWithSmartTable.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultiEditDialog.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultipleViewsItemCustomData.fragment.xml +0 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTableToolbar.fragment.xml +3 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/TableCommands.fragment.xml +10 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +109 -77
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/InlineCreationRowsHelper.js +217 -57
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SideContentHandler.js +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +17 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_sappsd.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +11 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saptrc.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +50 -9
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +15 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +26 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftConfirmationPopup.fragment.xml +43 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/FooterCommands.fragment.xml +5 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/PageLevelCommands.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SectionCommands.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Sections.fragment.xml +98 -85
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +16 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/TableCommands.fragment.xml +3 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/AddToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveFilterItems.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/MoveToolbarActionButtons.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroup.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveGroupElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderAndFooterActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveSubSection.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RemoveToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealFilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealHeaderFacet.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealTableColumn.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/RevealToolbarActionButton.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/AddElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/MoveElements.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RemoveElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/generic/RevealElement.js +1 -1
- package/src/sap/suite/ui/generic/template/changeHandler/util/AnnotationPropertyCommand.js +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +14 -5
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +12 -5
- package/src/sap/suite/ui/generic/template/detailTemplates/PaginatorButtonsHelper.js +4 -2
- package/src/sap/suite/ui/generic/template/fragments/AnalyticalTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/AnnotatedActionButtons.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/FileUploader.fragment.xml +56 -60
- package/src/sap/suite/ui/generic/template/fragments/GlobalActions.fragment.xml +5 -6
- package/src/sap/suite/ui/generic/template/fragments/GridTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/RowActions.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/fragments/ShareSheet.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/TableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +11 -11
- package/src/sap/suite/ui/generic/template/genericUtilities/FeLogger.js +8 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/metadataAnalyser.js +16 -2
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +61 -9
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperReuseComponents.js +7 -6
- package/src/sap/suite/ui/generic/template/js/staticChecksHelper.js +1 -3
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/Application.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +164 -27
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +5 -125
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +25 -12
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +15 -3
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +11 -3
- package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +13 -4
- package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +5 -5
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +39 -13
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +176 -93
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +33 -0
- package/src/sap/suite/ui/generic/template/lib/StableIdDefinition.js +27 -2
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +17 -2
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +19 -14
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +13 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +7 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +10 -2
- 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 +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +13 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +12 -6
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +7 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +6 -0
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleTablesModeHelper.js +0 -45
- package/src/sap/suite/ui/generic/template/lib/multipleViews/MultipleViewsHandler.js +0 -12
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +11 -7
- package/src/sap/suite/ui/generic/template/lib/navigation/routingHelper.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/presentationControl/PresentationControlHandlerFactory.js +0 -35
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +6 -6
- package/src/sap/suite/ui/generic/template/listTemplates/controller/MessageStripHelper.js +5 -4
- package/src/sap/suite/ui/generic/template/listTemplates/controller/MultipleViewsHandler.js +0 -17
- package/src/sap/suite/ui/generic/template/listTemplates/controller/SmartChartController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +3 -2
- package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +64 -19
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_dark/ObjectPage.less +25 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_dark/library.source.less +12 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/AnalyticalListPage.less +19 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/ListReport.less +8 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/ObjectPage.less +12 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/library.source.less +14 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/AnalyticalListPage.less +19 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/ListReport.less +8 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/ObjectPage.less +12 -0
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/library.source.less +14 -0
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution","sap/suite/ui/generic/templat
|
|
|
80
80
|
getUrlParameterInfo: function() {
|
|
81
81
|
return oViewProxy.getUrlParameterInfo();
|
|
82
82
|
},
|
|
83
|
-
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet){
|
|
83
|
+
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet, oModel){
|
|
84
84
|
var oExtensions = oComponentUtils.getControllerExtensions();
|
|
85
85
|
var oEntitySet = oMetaModel.getODataEntitySet(sLeadingEntitySet);
|
|
86
86
|
var oLineItem = preparationHelper.getLineItemFromVariant(oMetaModel, oEntitySet.entityType, oSettings.qualifier);
|
|
@@ -97,7 +97,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution","sap/suite/ui/generic/templat
|
|
|
97
97
|
if (oAlpSettings.filterSettings && oAlpSettings.filterSettings.dateSettings) {
|
|
98
98
|
oAlpSettings.filterSettings.dateSettings.isSingleDateValueNotRequired = true;
|
|
99
99
|
}
|
|
100
|
-
oAlpSettings.controlConfigurationSettings = filterSettingsPreparationHelper.getControlConfigurationSettings(oAlpSettings, oEntityType);
|
|
100
|
+
oAlpSettings.controlConfigurationSettings = filterSettingsPreparationHelper.getControlConfigurationSettings(oAlpSettings, oEntityType, oEntitySet, oModel);
|
|
101
101
|
|
|
102
102
|
function checkIfSmartChart(sEntitySet, oTabItem) {
|
|
103
103
|
var oEntitySet = oMetaModel.getODataEntitySet(sEntitySet);
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
FilterItemChart.prototype._maxFractionalDigits = 2;
|
|
81
81
|
FilterItemChart.prototype._maxFractionalDigitsValsLessThanZero = 7; // limit to 7 decimal places, e.g. if scale is B and value is 700 will show 0.0000007, if value is 70, the shortened value will be 0.
|
|
82
82
|
FilterItemChart.prototype._minFractionalDigits = 0;
|
|
83
|
-
FilterItemChart.prototype._shortRefNumber;
|
|
83
|
+
//FilterItemChart.prototype._shortRefNumber;
|
|
84
84
|
FilterItemChart.prototype._isTriggeredBySync = false;
|
|
85
85
|
FilterItemChart.prototype._multiUnit = false;
|
|
86
86
|
FilterItemChart.prototype.technicalIssueMessage = "M_VISUAL_FILTERS_ERROR_DATA_TEXT";
|
|
@@ -176,10 +176,14 @@ sap.ui.define([
|
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
if (oSFBParams) {
|
|
179
|
-
var
|
|
179
|
+
var oSelectionVariantParameters = oSmartFilterBar.getUiState().getSelectionVariant().Parameters;
|
|
180
|
+
var oParamData = {};
|
|
181
|
+
oSelectionVariantParameters && oSelectionVariantParameters.map(function (oElement) {
|
|
182
|
+
oParamData[oElement.PropertyName] = oElement.PropertyValue;
|
|
183
|
+
});
|
|
180
184
|
var oDateFormatSettings = JSON.parse(oSmartFilterBar.data('dateFormatSettings'));
|
|
181
185
|
oSFBParams.forEach(function(param) {
|
|
182
|
-
var sValue =
|
|
186
|
+
var sValue = oParamData[param.name];
|
|
183
187
|
if (sValue) {
|
|
184
188
|
if (param.type === "Edm.Time" && sValue instanceof Date) {
|
|
185
189
|
if (oDateFormatSettings && !oDateFormatSettings.UTC) {
|
|
@@ -191,6 +195,8 @@ sap.ui.define([
|
|
|
191
195
|
};
|
|
192
196
|
} else if (oDateFormatSettings && oDateFormatSettings.UTC && sValue instanceof Date) {
|
|
193
197
|
sValue = this._getDateInUTCOffset(sValue);
|
|
198
|
+
} else if (isNaN(sValue) && !isNaN(Date.parse(sValue)) && sValue.indexOf("Z") !== (sValue.length - 1)) {
|
|
199
|
+
sValue = sValue.split('T')[0] + "T00:00:00Z";
|
|
194
200
|
}
|
|
195
201
|
//values set for parameters in SFB; allowed to override values from SV for a given parameter
|
|
196
202
|
allParams[param.name] = sValue;
|
|
@@ -108,8 +108,8 @@ sap.ui.define([
|
|
|
108
108
|
this._dialogFilters = {};
|
|
109
109
|
this._compactFilters = {};
|
|
110
110
|
this._oVariantConfig = {};
|
|
111
|
-
this._smartFilterContext;
|
|
112
|
-
this._oMetadataAnalyser;
|
|
111
|
+
//this._smartFilterContext;
|
|
112
|
+
//this._oMetadataAnalyser;
|
|
113
113
|
this.setModel(new JSONModel(), '_visualFilterConfigModel');
|
|
114
114
|
if (bIsCozyMode) {
|
|
115
115
|
if (Device.system.phone) { //Apply the style class specific to phone and change orientation of header container to "vertical"
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js
CHANGED
|
@@ -152,6 +152,9 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
152
152
|
function onSmartFilterBarInitialized(){
|
|
153
153
|
var manifestSetting = oState.oController.getOwnerComponent();
|
|
154
154
|
if (oState.hideVisualFilter || (manifestSetting.getDefaultFilterMode() == "visual" && manifestSetting.getModel().mMetadataUrlParams && manifestSetting.getModel().mMetadataUrlParams["sap-value-list"] === "none" )) {
|
|
155
|
+
if (oState.alr_visualFilterBar && !oState.alr_visualFilterBar.getAssociateValueListsCalled()) {
|
|
156
|
+
oState.alr_visualFilterBar.setAssociateValueListsCalled(true);
|
|
157
|
+
}
|
|
155
158
|
oState.oSmartFilterbar.associateValueLists();
|
|
156
159
|
}
|
|
157
160
|
var oAppStatePromise = oState.oIappStateHandler.onSmartFilterBarInitialized();
|
|
@@ -248,14 +251,23 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
248
251
|
}
|
|
249
252
|
function onShareListReportActionButtonPressImpl(oButton) {
|
|
250
253
|
var oFragmentController = {
|
|
251
|
-
|
|
254
|
+
|
|
255
|
+
sharePageToPressed: function(target) {
|
|
252
256
|
var oBusyHelper = oTemplateUtils.oServices.oApplication.getBusyHelper();
|
|
253
257
|
if (oBusyHelper.isBusy()) {
|
|
254
258
|
return; // Ignore user interaction while the app is busy.
|
|
255
|
-
}
|
|
256
|
-
var sSubject = oTemplateUtils.
|
|
259
|
+
}
|
|
260
|
+
var sSubject = oTemplateUtils.oServices.oApplication.getAppTitle();
|
|
257
261
|
var oTriggerPromise = ShareUtils.getCurrentUrl().then(function(sCurrentUrl){
|
|
258
|
-
|
|
262
|
+
switch (target) {
|
|
263
|
+
case "MicrosoftTeams":
|
|
264
|
+
ShareUtils.openMSTeamsShareDialog(sSubject, sCurrentUrl);
|
|
265
|
+
break;
|
|
266
|
+
case "Email":
|
|
267
|
+
sSubject = oTemplateUtils.oCommonUtils.getText("EMAIL_HEADER", [ sSubject ]);
|
|
268
|
+
sap.m.URLHelper.triggerEmail(null, sSubject, sCurrentUrl);
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
259
271
|
});
|
|
260
272
|
oBusyHelper.setBusy(oTriggerPromise);
|
|
261
273
|
},
|
|
@@ -336,7 +348,7 @@ sap.ui.define(["sap/ui/generic/app/navigation/service/SelectionVariant",
|
|
|
336
348
|
oState.oSmartChart = oController.byId("chart");
|
|
337
349
|
var oMultipleViewsHandler = new MultipleViewsHandler(oState, oController, oTemplateUtils);
|
|
338
350
|
oState.oMultipleViewsHandler = oMultipleViewsHandler;
|
|
339
|
-
oState.oMessageStripHelper = new MessageStripHelper(oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oState.oSmartTable), oMultipleViewsHandler, oController, oTemplateUtils);
|
|
351
|
+
oState.oMessageStripHelper = new MessageStripHelper(oTemplateUtils.oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oState.oSmartTable), oMultipleViewsHandler, oController, oTemplateUtils, "alp");
|
|
340
352
|
if (oController.getOwnerComponent().getProperty("dshQueryName")) {
|
|
341
353
|
oState.oAnalyticGridContainer = oController.byId("template::AnalyticGridContainer");
|
|
342
354
|
oState.oAnalyticGridController = new AnalyticGridController();
|
package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
2
|
'sap/ui/core/mvc/Controller',
|
|
3
3
|
'sap/ui/model/Filter',
|
|
4
|
-
'sap/ui/model/json/JSONModel',
|
|
5
4
|
"sap/m/Button",
|
|
6
5
|
"sap/m/StandardListItem",
|
|
7
6
|
"sap/m/List",
|
|
@@ -13,7 +12,7 @@ sap.ui.define([
|
|
|
13
12
|
"sap/ui/model/FilterOperator", "sap/m/library",
|
|
14
13
|
"sap/base/util/extend",
|
|
15
14
|
"sap/base/util/deepExtend"
|
|
16
|
-
], function(Controller, Filter,
|
|
15
|
+
], function(Controller, Filter, Button, StandardListItem, List, ToolbarSpacer, FilterUtil, ResponsivePopover, Label, ToggleButton,
|
|
17
16
|
SearchField, Toolbar, Icon, Sorter, FilterOperator, SapMLibrary, extend, deepExtend) {
|
|
18
17
|
"use strict";
|
|
19
18
|
|
|
@@ -45,8 +44,8 @@ sap.ui.define([
|
|
|
45
44
|
enabled : (oUpdatedDimensionFilter && oUpdatedDimensionFilter.hasOwnProperty("items")) ? Boolean(oUpdatedDimensionFilter.items.length) : Boolean(oUpdatedDimensionFilter),
|
|
46
45
|
tooltip :i18n.getResourceBundle().getText("VIS_VALUEHELP_DROPDOWN_VIEW_SELECTED")
|
|
47
46
|
}),
|
|
48
|
-
oList =
|
|
49
|
-
oDialog =
|
|
47
|
+
oList = this.createStandardListItem(oModel, oChart, i18n, title, property, oToolbarMenuButton, oSmartFilterBar, filterBy),
|
|
48
|
+
oDialog = this.createPopoverWithList(oModel, oChart, i18n, property, title, oList, filterBy, oToolbarMenuButton, bIsEntitySearchable, oSmartFilterBar),
|
|
50
49
|
oOkButton = new Button({
|
|
51
50
|
text: i18n.getResourceBundle().getText("OK"),
|
|
52
51
|
press: function (oEvt) {
|
|
@@ -165,8 +164,8 @@ sap.ui.define([
|
|
|
165
164
|
};
|
|
166
165
|
//createStandardListItem -- create a Standard list item template.
|
|
167
166
|
sap.suite.ui.generic.template.AnalyticalListPage.controller.DropDownController.createStandardListItem = function(oModel, oChart, i18n, title, property, oToolbarMenuButton, sfb, filterBy) {
|
|
168
|
-
var sBindingPath = "/" + property.entitySet,
|
|
169
|
-
template =
|
|
167
|
+
var sBindingPath = "/" + property.entitySet, that = this,
|
|
168
|
+
template = that.standardListItemTemplateCreation(oChart, property, sfb);
|
|
170
169
|
oInfoLabel = new Label({
|
|
171
170
|
text : i18n.getResourceBundle().getText("VIS_VALUEHELP_DROPDOWN_SELECTED_COUNT", [title, typeof (oChart.getDimensionFilter()) === "object" && oChart.getDimensionFilter() !== null ? oChart.getDimensionFilter().items.length : +Boolean(oChart.getDimensionFilter())])
|
|
172
171
|
});
|
|
@@ -231,7 +230,7 @@ sap.ui.define([
|
|
|
231
230
|
path: sBindingPath,
|
|
232
231
|
template: template,
|
|
233
232
|
filters: filterList,
|
|
234
|
-
sorter:
|
|
233
|
+
sorter: that.getSortObject(property),
|
|
235
234
|
parameters: oUrlParameters
|
|
236
235
|
}
|
|
237
236
|
});
|
|
@@ -244,9 +243,9 @@ sap.ui.define([
|
|
|
244
243
|
|
|
245
244
|
oToolbarMenuButton.attachPress(function(oEvt) {
|
|
246
245
|
if (property.filterRestriction == "multiple" && oUpdatedDimensionFilter.items.length || oUpdatedDimensionFilter && oUpdatedDimensionFilter.hasOwnProperty('items') && !oUpdatedDimensionFilter.items.length && bShowOnlySelected) {
|
|
247
|
-
|
|
246
|
+
that.updateFilterWithListBindings(oList, oToolbarMenuButton, i18n, property.filterRestriction, property.dimensionField);
|
|
248
247
|
} else if (property.filterRestriction == "single" && oUpdatedDimensionFilter != null || oUpdatedDimensionFilter == null && bShowOnlySelected) {
|
|
249
|
-
|
|
248
|
+
that.updateFilterWithListBindings(oList, oToolbarMenuButton, i18n, property.filterRestriction, property.dimensionField);
|
|
250
249
|
}
|
|
251
250
|
});
|
|
252
251
|
return oList;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
|
-
"sap/m/Button", "sap/m/Label", "sap/m/Dialog", "sap/m/Bar", "sap/m/SearchField",
|
|
2
|
+
"sap/m/Button", "sap/m/Label", "sap/m/Dialog", "sap/m/Bar", "sap/m/SearchField", "sap/m/Text",
|
|
3
3
|
"sap/m/Toolbar", "sap/m/ToolbarSpacer", "sap/m/Title", "sap/m/VBox", "sap/m/HBox", "sap/m/CheckBox",
|
|
4
|
-
"sap/m/Link", "sap/m/List", "sap/m/CustomListItem", "sap/m/
|
|
5
|
-
"sap/ui/layout/
|
|
4
|
+
"sap/m/Link", "sap/m/List", "sap/m/CustomListItem", "sap/m/StandardListItem", "sap/m/Popover",
|
|
5
|
+
"sap/ui/layout/GridData",
|
|
6
6
|
"sap/ui/core/mvc/Controller", "sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil",
|
|
7
|
-
"sap/
|
|
7
|
+
"sap/suite/ui/generic/template/AnalyticalListPage/util/V4Terms",'sap/ui/model/Filter',
|
|
8
8
|
"sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController",
|
|
9
9
|
"sap/suite/ui/generic/template/AnalyticalListPage/controller/DatePickerController",
|
|
10
10
|
"sap/m/OverflowToolbarButton",
|
|
@@ -18,9 +18,9 @@ sap.ui.define([
|
|
|
18
18
|
"sap/suite/ui/generic/template/js/StableIdHelper",
|
|
19
19
|
"sap/base/util/extend",
|
|
20
20
|
"sap/base/util/deepExtend"
|
|
21
|
-
], function(Button, Label, Dialog, Bar, SearchField, Toolbar, ToolbarSpacer, Title,
|
|
22
|
-
VBox, HBox, CheckBox, Link, List, CustomListItem,
|
|
23
|
-
GridData, Controller, FilterUtil,
|
|
21
|
+
], function(Button, Label, Dialog, Bar, SearchField, Text, Toolbar, ToolbarSpacer, Title,
|
|
22
|
+
VBox, HBox, CheckBox, Link, List, CustomListItem, StandardListItem, Popover,
|
|
23
|
+
GridData, Controller, FilterUtil, V4Terms, Filter, DropDownController, DatePickerController, OverflowToolbarButton, JSONModel,
|
|
24
24
|
OverflowToolbar, OverflowToolbarLayoutData, CustomData, Device, SapMLibrary, SapCoreLibrary, FilterOperator, DatePicker, FeLogger, InvisibleText, deepEqual, StableIdHelper, extend, deepExtend) {
|
|
25
25
|
"use strict";
|
|
26
26
|
|
|
@@ -47,8 +47,8 @@ sap.ui.define([
|
|
|
47
47
|
oLogger.setLevel(oLevel.WARNING, "VisualFilter");
|
|
48
48
|
this.oState = oState;
|
|
49
49
|
this.oRb = oState.alr_visualFilterContainer.getModel('i18n').getResourceBundle();
|
|
50
|
-
this.bIsTimeBasedLine;
|
|
51
|
-
this.bSortOrder;
|
|
50
|
+
//this.bIsTimeBasedLine;
|
|
51
|
+
//this.bSortOrder;
|
|
52
52
|
},
|
|
53
53
|
_createForm: function() {
|
|
54
54
|
// store as a string to parse later ad restore
|
|
@@ -384,7 +384,7 @@ sap.ui.define([
|
|
|
384
384
|
}
|
|
385
385
|
if (this.oVerticalBox.getItems() && !this.oVerticalBox.getItems().length) {
|
|
386
386
|
// add a No Data Div to VisualFilterDialog
|
|
387
|
-
var noDataText = new
|
|
387
|
+
var noDataText = new Text({text: "{i18n>NODATA_ADAPTFILTERDIALOG}", width: "100%", textAlign: SapCoreLibrary.TextAlign.Center}).addStyleClass("sapUiSmallMarginTopBottom");
|
|
388
388
|
this.oVerticalBox.addItem(noDataText);
|
|
389
389
|
}
|
|
390
390
|
},
|
|
@@ -196,14 +196,16 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
196
196
|
oState.oIappStateHandler.fnStoreCurrentAppStateAndAdjustURL();
|
|
197
197
|
},
|
|
198
198
|
/**
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
* Provide an option for showing an own message in the message bar above the ALP table
|
|
200
|
+
* @param {object} oMessage custom message along with type to set on table
|
|
201
|
+
* @param {string} [oMessage.message] message string to display
|
|
202
|
+
* @param {string} [oMessage.type] indicates type of message (sap.ui.core.MessageType)
|
|
203
|
+
* whether it's sap.ui.core.MessageType.Success, sap.ui.core.MessageType.Warning, sap.ui.core.MessageType.Error or sap.ui.core.MessageType.Information.
|
|
204
|
+
* @param {array |string} [vTabKey] If switching between different table views is enabled, this parameter can be used to identify the views which
|
|
205
|
+
* are affected by this call. Faulty values indicate that all views should be affected. Otherwise the value should either be one string or an array of strings
|
|
206
|
+
* identifying the affected variant items.
|
|
207
|
+
* @public
|
|
208
|
+
*/
|
|
207
209
|
setCustomMessage: function (oMessage, vTabKey) {
|
|
208
210
|
oState.oMessageStripHelper.setCustomMessage(oMessage, vTabKey);
|
|
209
211
|
}
|
|
@@ -108,7 +108,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
108
108
|
oWorkingContext.lineItem = oMetaModel.getObject(sAnnotationPath);
|
|
109
109
|
oWorkingContext.lineItemPath = sAnnotationPath;
|
|
110
110
|
oWorkingContext.lineItemQualifier = sAnnotationPath.split("#")[1] || "";
|
|
111
|
-
oWorkingContext.lineItemCriticality =
|
|
111
|
+
oWorkingContext.lineItemCriticality = oAnnotationHelper._resolveLineItemCriticality(oWorkingContext.lineItem,oWorkingContext.lineItemQualifier);
|
|
112
112
|
}
|
|
113
113
|
if (!oSettings.chartPresentationQualifier && (sPath.indexOf("com.sap.vocabularies.UI.v1.Chart") > -1)) {
|
|
114
114
|
sAnnotationPath = oEntityType.$path + sPath;
|
|
@@ -125,7 +125,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
125
125
|
oWorkingContext.lineItem = oMetaModel.getObject(sAnnotationPath);
|
|
126
126
|
oWorkingContext.lineItemPath = sAnnotationPath;
|
|
127
127
|
oWorkingContext.lineItemQualifier = "";
|
|
128
|
-
oWorkingContext.lineItemCriticality =
|
|
128
|
+
oWorkingContext.lineItemCriticality = oAnnotationHelper._resolveLineItemCriticality(oWorkingContext.lineItem,oWorkingContext.lineItemQualifier);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
if (oSettings && oSettings.chartPresentationQualifier) {
|
|
@@ -253,7 +253,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
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"] &&
|
|
256
|
-
|
|
256
|
+
oAnnotationHelper._hasCustomDeterminingActionsInALP(sEntitySet, oManifestExt["sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"]["sap.ui.generic.app"])) { //Check for AnalyticalListPage
|
|
257
257
|
return true;
|
|
258
258
|
}
|
|
259
259
|
//To bring determining buttons of table from annotations
|
|
@@ -274,14 +274,14 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
274
274
|
};
|
|
275
275
|
|
|
276
276
|
oAnnotationHelper.hasGlobalActionsForALP = function(aTableTerm, aChartTerm, sEntitySet, oManifestExt) {
|
|
277
|
-
if (sEntitySet && oManifestExt && oManifestExt["sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"] &&
|
|
277
|
+
if (sEntitySet && oManifestExt && oManifestExt["sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"] && this._hasCustomGlobalActions(sEntitySet, oManifestExt["sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"]["sap.ui.generic.app"])) { //Check for AnalyticalListPage
|
|
278
278
|
return true;
|
|
279
279
|
}
|
|
280
280
|
return false;
|
|
281
281
|
};
|
|
282
282
|
|
|
283
283
|
oAnnotationHelper.getAreaShrinkRatio = function(aTableTerm, aChartTerm, sEntitySet, oManifestExt) {
|
|
284
|
-
var bGlobalActionsPresent =
|
|
284
|
+
var bGlobalActionsPresent = oAnnotationHelper.hasGlobalActionsForALP(aTableTerm, aChartTerm, sEntitySet, oManifestExt);
|
|
285
285
|
if (bGlobalActionsPresent) {
|
|
286
286
|
return "0:3:0.7";
|
|
287
287
|
} else {
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
text="{parts:[{path: '_templPriv>/alp/multipleViews/implementingHelper/ignoredFilters'}, {path: '_templPriv>/alp/multipleViews/selectedKey'}],
|
|
25
25
|
formatter: '._templateFormatters.formatMessageStrip'}"
|
|
26
26
|
type="Information" showIcon="true" showCloseButton="true" class="sapUiSmallMargin"
|
|
27
|
-
visible="{= ${_templPriv>/alp/multipleViews/implementingHelper/ignoredFilters}.length > 0}">
|
|
27
|
+
visible="{= ${_templPriv>/alp/multipleViews/implementingHelper/ignoredFilters}.length > 0 && !${_templPriv>/alp/customMessageType}}">
|
|
28
28
|
</MessageStrip>
|
|
29
29
|
<template:repeat list="{parameter>/templateSpecific/quickVariantSelectionX/variants}" var="tabItem">
|
|
30
30
|
<template:with path="tabItem>" helper="sap.suite.ui.generic.template.js.AnnotationHelper.getEntityType" var="entityType">
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
<core:ExtensionPoint name="SmartFilterBarControlConfigurationExtension|{entitySet>name}"/>
|
|
44
44
|
</smartfilterbarext:controlConfiguration>
|
|
45
45
|
<smartfilterbarext:customData>
|
|
46
|
+
<core:CustomData key="defaultDropDownDisplayBehaviour" value="descriptionOnly"/>
|
|
46
47
|
<core:CustomData key="dateFormatSettings" value='\{"UTC":true,"style":"medium"\}'/>
|
|
47
48
|
</smartfilterbarext:customData>
|
|
48
49
|
<smartfilterbarext:layoutData>
|
|
@@ -69,7 +69,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
69
69
|
displayNextObject: function(aOrderObjects){
|
|
70
70
|
return oViewProxy.displayNextObject(aOrderObjects);
|
|
71
71
|
},
|
|
72
|
-
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet,
|
|
72
|
+
getTemplateSpecificParameters: function(oMetaModel, oSettings, Device, sLeadingEntitySet, oModel, oDraftContext) {
|
|
73
73
|
function checkIfSmartChart(sEntitySet, oTabItem) {
|
|
74
74
|
var oEntitySet = oMetaModel.getODataEntitySet(sEntitySet);
|
|
75
75
|
var oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
@@ -139,7 +139,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
} */
|
|
142
|
-
function
|
|
142
|
+
function fnTableLevelActions(sTabKey, sTabIdentifier) {
|
|
143
143
|
function fnGetStandardActions(sTabKey) {
|
|
144
144
|
/* Collection of standard actions available on LR. Maps the logical action name to an object containing the relevant properties i.e.
|
|
145
145
|
action => action name corresponding to the standard action
|
|
@@ -149,11 +149,21 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
149
149
|
press => triggers the action defined in the command execution
|
|
150
150
|
enabled => button's enablement
|
|
151
151
|
isStandardAction => represents whether the action is a standard action or overridden by the custom action
|
|
152
|
+
|
|
153
|
+
If a custom action is defined with a valid 'logicalAction', then there could be two cases:
|
|
152
154
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
Case 1: Custom action has an ID
|
|
156
|
+
In this case, the corresponding standard button does not get created and instead an extension button
|
|
157
|
+
gets created, which takes over some standard functionality, especially the keyboard shortcut and the following properties:
|
|
158
|
+
callbackName, text, enabled and press (if not defined in the manifest)
|
|
159
|
+
|
|
160
|
+
Case 2: Custom action does not have an ID
|
|
161
|
+
Here, the corresponding standard button gets created and takes over everything defined explicitly in the manifest.
|
|
162
|
+
|
|
163
|
+
In both the cases, isStandardAction is set to false.
|
|
164
|
+
TODO: isStandardAction is only used to set different types of CustomData and OverflowToolbarLayoutData in the respective fragments.
|
|
165
|
+
However, additional CustomData should not harm, and regarding OverflowToolbarLayoutData, importance should always be the default
|
|
166
|
+
(if not defined otherwise) and so, it should be removed and the places where these CustomData are being consumed should be refactored (if required). */
|
|
157
167
|
return {
|
|
158
168
|
Create: {
|
|
159
169
|
action: "Create",
|
|
@@ -185,48 +195,54 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
185
195
|
};
|
|
186
196
|
}
|
|
187
197
|
|
|
188
|
-
function fnGetOverriddenStandardAction(oStandardActionToBeOverridden,
|
|
198
|
+
function fnGetOverriddenStandardAction(oStandardActionToBeOverridden, oExtensionAction) {
|
|
189
199
|
if (isEmptyObject(oStandardActionToBeOverridden)) {
|
|
190
|
-
throw new FeError(sClassName, "Identified an invalid value of 'logicalAction' i.e., '" +
|
|
191
|
-
}
|
|
192
|
-
if (oHeaderExtensionAction.press) {
|
|
193
|
-
oStandardActionToBeOverridden.callbackName = oHeaderExtensionAction.press + "()";
|
|
194
|
-
}
|
|
195
|
-
if (oHeaderExtensionAction.text) {
|
|
196
|
-
oStandardActionToBeOverridden.text = oHeaderExtensionAction.text;
|
|
200
|
+
throw new FeError(sClassName, "Identified an invalid value of 'logicalAction' i.e., '" + oExtensionAction.logicalAction + "' for a custom action in the manifest.");
|
|
197
201
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
202
|
+
|
|
203
|
+
return deepExtend({}, oStandardActionToBeOverridden, {
|
|
204
|
+
callbackName: oExtensionAction.press,
|
|
205
|
+
text: oExtensionAction.text,
|
|
206
|
+
id: oExtensionAction.id && AnnotationHelper.getBreakoutActionButtonId(oExtensionAction, oLrSettings.quickVariantSelectionX ? oLrSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined),
|
|
207
|
+
enabled: AnnotationHelper.getBreakoutActionEnabledKey(oExtensionAction, oLrSettings.quickVariantSelectionX ? oLrSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined),
|
|
208
|
+
press: "cmd:" + oExtensionAction.logicalAction,
|
|
209
|
+
isStandardAction: false
|
|
210
|
+
});
|
|
205
211
|
}
|
|
206
212
|
|
|
207
213
|
var oTableLevelStandardActions = fnGetStandardActions(sTabKey);
|
|
208
214
|
var oControllerExtensions = oComponentUtils.getControllerExtensions();
|
|
209
|
-
var
|
|
215
|
+
var aExtensionActionsWithoutLogicalAction = [], mTableLevelCustomActionsWithCommand = Object.create(null);
|
|
210
216
|
|
|
211
|
-
Object.values(oControllerExtensions && oControllerExtensions.Actions || {}).forEach(function (
|
|
212
|
-
if (
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
217
|
+
Object.values(oControllerExtensions && oControllerExtensions.Actions || {}).forEach(function (oExtensionAction) {
|
|
218
|
+
if (oExtensionAction.logicalAction) {
|
|
219
|
+
// In case of multiple views, custom action should only override the standard action for the main entity set tab
|
|
220
|
+
if (oLrSettings.quickVariantSelectionX && oLrSettings.quickVariantSelectionX.variants[sTabIdentifier].entitySet && oLrSettings.quickVariantSelectionX.variants[sTabIdentifier].entitySet !== sLeadingEntitySet) {
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
// created a defensive copy of the standard action to make it less susceptible to errors
|
|
224
|
+
oTableLevelStandardActions[oExtensionAction.logicalAction] = fnGetOverriddenStandardAction(deepExtend({}, oTableLevelStandardActions[oExtensionAction.logicalAction]), oExtensionAction);
|
|
225
|
+
} else if (!oExtensionAction.global) {
|
|
226
|
+
var oStableIdParameters = oExtensionAction.global ?
|
|
227
|
+
{ type: "Action", subType: "Global", sAction: oExtensionAction.id } :
|
|
228
|
+
{ type: "ListReportAction", subType: "TableExtension", sAction: oExtensionAction.id, sQuickVariantKey: sTabKey };
|
|
229
|
+
var sActionId = StableIdHelper.getStableId(oStableIdParameters);
|
|
230
|
+
if (oExtensionAction.command) {
|
|
231
|
+
mTableLevelCustomActionsWithCommand[oExtensionAction.id] = {
|
|
232
|
+
id: sActionId,
|
|
233
|
+
action: oExtensionAction.command,
|
|
234
|
+
callbackName: oExtensionAction.press
|
|
235
|
+
};
|
|
236
|
+
oExtensionAction.press = "cmd:" + oExtensionAction.command;
|
|
237
|
+
}
|
|
238
|
+
oExtensionAction.enabled = AnnotationHelper.getBreakoutActionEnabledKey(oExtensionAction, oLrSettings.quickVariantSelectionX ? oLrSettings.quickVariantSelectionX.variants[sTabIdentifier] : undefined);
|
|
239
|
+
oExtensionAction.id = sActionId;
|
|
240
|
+
aExtensionActionsWithoutLogicalAction.push(oExtensionAction);
|
|
223
241
|
}
|
|
224
|
-
// created a defensive copy of the standard action to make it less susceptible to errors
|
|
225
|
-
oTableLevelStandardActions[oHeaderExtensionAction.logicalAction] = fnGetOverriddenStandardAction(deepExtend({}, oTableLevelStandardActions[oHeaderExtensionAction.logicalAction]), oHeaderExtensionAction);
|
|
226
242
|
});
|
|
227
243
|
|
|
228
244
|
return {
|
|
229
|
-
commandExecution: oTableLevelStandardActions,
|
|
245
|
+
commandExecution: deepExtend(oTableLevelStandardActions, mTableLevelCustomActionsWithCommand),
|
|
230
246
|
extensionActions: aExtensionActionsWithoutLogicalAction
|
|
231
247
|
};
|
|
232
248
|
}
|
|
@@ -244,11 +260,11 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
244
260
|
var oExtensions = oComponentUtils.getControllerExtensions();
|
|
245
261
|
var oExtensionActions = oExtensions && oExtensions.Actions;
|
|
246
262
|
|
|
247
|
-
var
|
|
248
|
-
var oEntityType = oMetaModel.getODataEntityType(
|
|
263
|
+
var oLeadingEntitySet = oMetaModel.getODataEntitySet(sLeadingEntitySet);
|
|
264
|
+
var oEntityType = oMetaModel.getODataEntityType(oLeadingEntitySet.entityType);
|
|
249
265
|
|
|
250
266
|
// get LineItem by searching for SelectionPresentationVariant without Qualifier
|
|
251
|
-
var oLineItemDefault = preparationHelper.getLineItemFromVariant(oMetaModel,
|
|
267
|
+
var oLineItemDefault = preparationHelper.getLineItemFromVariant(oMetaModel, oLeadingEntitySet.entityType);
|
|
252
268
|
var oMultiEditSettings;
|
|
253
269
|
if (oLrSettings.quickVariantSelectionX) {
|
|
254
270
|
// tableSettings for component used as default for variants
|
|
@@ -280,10 +296,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
280
296
|
}
|
|
281
297
|
var oVariantEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
282
298
|
if (oVariantEntityType && oVariantEntityType.property && oVariants[sKey].tableSettings && oVariants[sKey].tableSettings.createWithParameterDialog) {
|
|
283
|
-
|
|
284
|
-
var bIsMultiEntitySet = true;
|
|
285
|
-
}
|
|
286
|
-
staticChecksHelper.checkErrorforCreateWithDialog(oVariantEntityType, oVariants[sKey].tableSettings, oSettings, bIsMultiEntitySet);
|
|
299
|
+
staticChecksHelper.checkErrorforCreateWithDialog(oVariantEntityType, oVariants[sKey].tableSettings);
|
|
287
300
|
oLrSettings.quickVariantSelectionX.variants[sKey].tableSettings.createWithParameterDialog.id = StableIdHelper.getStableId({type: 'ListReportAction', subType: 'CreateWithDialog', sQuickVariantKey: oVariants[sKey].key});
|
|
288
301
|
}
|
|
289
302
|
if (oVariants[sKey].tableSettings.multiEdit) {
|
|
@@ -295,7 +308,7 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
295
308
|
}
|
|
296
309
|
}
|
|
297
310
|
setTargetEntity(oEntitySet);
|
|
298
|
-
oVariants[sKey].tableSettings = deepExtend(oVariants[sKey].tableSettings,
|
|
311
|
+
oVariants[sKey].tableSettings = deepExtend(oVariants[sKey].tableSettings, fnTableLevelActions(oVariants[sKey].key, sKey));
|
|
299
312
|
}
|
|
300
313
|
}
|
|
301
314
|
|
|
@@ -311,20 +324,20 @@ sap.ui.define(["sap/ui/core/mvc/OverrideExecution",
|
|
|
311
324
|
oLrSettings.tableSettings.selectAll = (oLrSettings.tableSettings.selectAll === undefined ? false : oLrSettings.tableSettings.selectAll);
|
|
312
325
|
oLrSettings.isResponsiveTable = oLrSettings.tableSettings.type === "ResponsiveTable";
|
|
313
326
|
if (oLrSettings.tableSettings.multiEdit) {
|
|
314
|
-
oMultiEditSettings = getMultiEditSettings(undefined, oLrSettings,
|
|
327
|
+
oMultiEditSettings = getMultiEditSettings(undefined, oLrSettings, oLeadingEntitySet, oEntityType);
|
|
315
328
|
oLrSettings.tableSettings.multiEdit.enabled = oMultiEditSettings.multiEditEnabled;
|
|
316
329
|
if (oMultiEditSettings.multiEditEnabled) {
|
|
317
330
|
oLrSettings.tableSettings.multiEdit.fields = oMultiEditSettings.fields;
|
|
318
331
|
oLrSettings.tableSettings.mode = oMultiEditSettings.selectionMode;
|
|
319
332
|
}
|
|
320
333
|
}
|
|
321
|
-
setTargetEntity(
|
|
322
|
-
oLrSettings.tableSettings = deepExtend(oLrSettings.tableSettings,
|
|
334
|
+
setTargetEntity(oLeadingEntitySet);
|
|
335
|
+
oLrSettings.tableSettings = deepExtend(oLrSettings.tableSettings, fnTableLevelActions());
|
|
323
336
|
}
|
|
324
|
-
oLrSettings.controlConfigurationSettings = filterSettingsPreparationHelper.getControlConfigurationSettings(oLrSettings, oEntityType);
|
|
337
|
+
oLrSettings.controlConfigurationSettings = filterSettingsPreparationHelper.getControlConfigurationSettings(oLrSettings, oEntityType, oLeadingEntitySet, oModel);
|
|
325
338
|
|
|
326
339
|
if (oEntityType && oEntityType.property && oSettings && oLrSettings && oLrSettings.tableSettings && oLrSettings.tableSettings.createWithParameterDialog) {
|
|
327
|
-
staticChecksHelper.checkErrorforCreateWithDialog(oEntityType, oLrSettings.tableSettings
|
|
340
|
+
staticChecksHelper.checkErrorforCreateWithDialog(oEntityType, oLrSettings.tableSettings);
|
|
328
341
|
oLrSettings.tableSettings.createWithParameterDialog.id = StableIdHelper.getStableId({type: 'ListReportAction', subType: 'CreateWithDialog'});
|
|
329
342
|
}
|
|
330
343
|
oLrSettings.isSelflinkRequired = true;
|