@sapui5/sap.suite.ui.generic.template 1.124.2 → 1.126.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/visualfilterbar/FilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +1 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +17 -16
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +4 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +3 -7
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/{KpiCardController.js → KpiCard.controller.js} +4 -8
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +0 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +4 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +5 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sh.properties +29 -27
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +14 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/KpiCardSizeM.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/FilterContainer.fragment.xml +7 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +0 -3
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +79 -6
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +19 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +3 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +2 -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_es.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +16 -14
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/MultiEditDialog.fragment.xml +2 -2
- 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/SmartList.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +6 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +14 -10
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +36 -11
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +4 -8
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +27 -24
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +3 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Facet.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderImage.fragment.xml +4 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/MultipleViewsSingleTableMode.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/PageLevelCommands.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Sections.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SideContentActionButton.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +7 -8
- package/src/sap/suite/ui/generic/template/QuickCreate/i18n/i18n_sh.properties +1 -1
- 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/QuickCreate/view/QuickCreate.view.xml +20 -17
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/view/QuickView.view.xml +42 -40
- package/src/sap/suite/ui/generic/template/app/blankAnalyticalListPage/manifest.json +0 -4
- package/src/sap/suite/ui/generic/template/designtime/AnalyticalListPage.designtime.js +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +1 -1
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +0 -3
- package/src/sap/suite/ui/generic/template/detailTemplates/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/fragments/AnalyticalTableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +14 -14
- package/src/sap/suite/ui/generic/template/fragments/FileUploader.fragment.xml +8 -4
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderForm.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderRatingIndicator.fragment.xml +6 -1
- package/src/sap/suite/ui/generic/template/fragments/MessagePage.view.xml +6 -2
- package/src/sap/suite/ui/generic/template/fragments/ProgressIndicator.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +4 -2
- package/src/sap/suite/ui/generic/template/fragments/RatingIndicatorFacet.fragment.xml +2 -0
- package/src/sap/suite/ui/generic/template/fragments/SmartControlContextMenu.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +5 -1
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +7 -1
- package/src/sap/suite/ui/generic/template/fragments/TableColumnListItem.fragment.xml +9 -5
- package/src/sap/suite/ui/generic/template/fragments/TableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +52 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +3 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/utils.js +25 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +29 -17
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +0 -4
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +2 -6
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +28 -0
- package/src/sap/suite/ui/generic/template/js/formatters/formatImageUrl.js +21 -0
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount.js +21 -0
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorFooterText.js +21 -0
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorSubTitle.js +21 -0
- package/src/sap/suite/ui/generic/template/js/formatters/setInfoHighlight.js +21 -0
- package/src/sap/suite/ui/generic/template/js/formatters/setRowNavigated.js +26 -0
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +25 -5
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/Application.js +3 -5
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +7 -5
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +2 -1
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +16 -12
- package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +23 -10
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +11 -4
- 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/MessageUtils.js +4 -3
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +6 -14
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +3 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +50 -46
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +5 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +6 -2
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +38 -38
- package/src/sap/suite/ui/generic/template/lib/navigation/routingHelper.js +8 -9
- package/src/sap/suite/ui/generic/template/lib/navigation/startupParameterHelper.js +48 -44
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +22 -10
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +23 -6
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/DetailController.js +16 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/IappStateHandler.js +30 -27
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +2 -0
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ActionsFragment.fragment.xml +7 -2
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +7 -8
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTableToolbar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/themes/sap_belize/library.source.less +10 -1
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ALPConstants.less +47 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/AnalyticalListPage.less +475 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ListReport.less +33 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ObjectPage.less +391 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/QuickCreate.less +96 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/QuickView.less +108 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/alr_zen.css +136 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/base.less +7 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/crosstab_library.css +20 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/readme.txt +4 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_asc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_desc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_none.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/treenode_collapse.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/treenode_expand.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/library.source.less +9 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_hcb/library.source.less +10 -1
- package/src/sap/suite/ui/generic/template/themes/sap_belize_hcw/library.source.less +10 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:smartField="sap.ui.comp.smartfield" xmlns:smc="sap.ui.comp.smartmicrochart" xmlns:navpopover="sap.ui.comp.navpopover"
|
|
2
2
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
-
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper'}">
|
|
3
|
+
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
4
4
|
|
|
5
5
|
<!-- @classdesc @name: Name: sap.suite.ui.generic.template.ListReport.view.fragments.TableColumnListItem.fragment.xml
|
|
6
6
|
@description: Visualizes columns (content) of a responsive table,
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
|
|
11
11
|
<items>
|
|
12
12
|
<template:with path="listEntitySet>entityType" helper="AHModel.gotoEntityType" var="listEntityType">
|
|
13
|
-
<template:with path="parameter>/" helper="
|
|
13
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="columnListItemId">
|
|
14
14
|
<template:if test="{= ${facet>Target/AnnotationPath} }">
|
|
15
15
|
<template:then>
|
|
16
16
|
<!-- ObjectPage -->
|
|
17
|
-
<template:with path="parameter>/" helper="
|
|
17
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="facetId">
|
|
18
18
|
<template:if test="{= ${facetId>}.buildStableId({type: 'ObjectPage', subType: 'Facet', sRecordType: ${facet>RecordType}, sAnnotationPath: ${facet>Target/AnnotationPath}, sAnnotationId: ${facet>ID/String}, bIsHeaderFacet: ${isHeaderFacet>value}})}"/>
|
|
19
19
|
<template:if test="{= ${columnListItemId>}.buildStableId({type: 'ObjectPageTable', subType: 'ColumnListItem', sFacet: ${facetId>id}})}" />
|
|
20
20
|
</template:with>
|
|
@@ -25,10 +25,14 @@
|
|
|
25
25
|
</template:else>
|
|
26
26
|
</template:if>
|
|
27
27
|
<ColumnListItem id="{columnListItemId>id}"
|
|
28
|
+
core:require="{
|
|
29
|
+
setRowNavigated: 'sap/suite/ui/generic/template/js/formatters/setRowNavigated',
|
|
30
|
+
setInfoHighlight: 'sap/suite/ui/generic/template/js/formatters/setInfoHighlight'
|
|
31
|
+
}"
|
|
28
32
|
highlight="{parts: [{path: 'listEntityType>'}, {path: 'parameter>/treeNode'}, {path: 'listEntitySet>name'}, {path: 'parameter>/checkIsDraftEnabled'}], formatter: 'AH.setRowHighlight'}"
|
|
29
33
|
vAlign="{appSettings>/tableColumnVerticalAlignment}"
|
|
30
34
|
type="{parts: [{path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'parameter>/manifest/'}, {path: 'parameter>/treeNode/'}, {path:'parameter>/isDraftEnabled'}, {path: 'facet>Target/AnnotationPath'}], formatter: 'AH.getColumnListItemType'}"
|
|
31
|
-
navigated="{parts: [{path: '_templPriv>/generic/currentActiveChildContext'}, {path: ''}], formatter: '
|
|
35
|
+
navigated="{parts: [{path: '_templPriv>/generic/currentActiveChildContext'}, {path: ''}], formatter: 'setRowNavigated'}"
|
|
32
36
|
detailPress="._templateEventHandlers.onEdit">
|
|
33
37
|
<template:if test="{parts: [{path: 'listEntitySet>name'}, {path: 'parameter>/settings/subPages/'}, {path: 'facet>Target/AnnotationPath'}], formatter: 'AH.getDisplayNavigationIntent'}">
|
|
34
38
|
<customData>
|
|
@@ -38,7 +42,7 @@
|
|
|
38
42
|
</template:if>
|
|
39
43
|
<cells>
|
|
40
44
|
<template:repeat list="{collection>}" var="lineItems">
|
|
41
|
-
<template:with path="parameter>/" helper="
|
|
45
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="columnId">
|
|
42
46
|
<template:if test="{= ${lineItems>RecordType} === 'com.sap.vocabularies.UI.v1.DataField' }">
|
|
43
47
|
<template:then>
|
|
44
48
|
<template:if test="{= ${columnId>}.buildStableId({type: 'TableColumn', subType: 'DataField', sSmartTableId: ${smartControlId>id}, sProperty: ${lineItems>Value/Path}})}" />
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:smartField="sap.ui.comp.smartfield" xmlns:smc="sap.ui.comp.smartmicrochart" xmlns:navpopover="sap.ui.comp.navpopover"
|
|
2
2
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
-
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', AHStream:'sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport'}">
|
|
3
|
+
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', AHStream:'sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport', StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
4
4
|
<!-- @classdesc @name: Name: sap.suite.ui.generic.template.ListReport.view.fragments.TableColumns.fragment.xml
|
|
5
5
|
@description: Visualizes columns (header) of a responsive table,
|
|
6
6
|
as part of a LR, OP or ALP.
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
</template:if>
|
|
147
147
|
<!-- handle inline actions -->
|
|
148
148
|
<template:if test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' || ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation') && ${dataField>Inline/Bool} === 'true'}">
|
|
149
|
-
<template:with path="parameter>/" helper="
|
|
149
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="columnId">
|
|
150
150
|
<template:with path="dataField>Value" helper="AHModel.resolvePath" var="dataFieldValue">
|
|
151
151
|
<template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' }">
|
|
152
152
|
<template:then>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:table="sap.ui.table" xmlns:smartField="sap.ui.comp.smartfield" xmlns:smartMultiInput="sap.ui.comp.smartmultiinput" xmlns:fe="sap.suite.ui.generic.template.genericUtilities"
|
|
2
2
|
xmlns:customData="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
|
|
3
3
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
4
|
-
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper'}">
|
|
4
|
+
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
5
5
|
|
|
6
6
|
<template:repeat list="{collection>}" var="dataField">
|
|
7
7
|
<template:if test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataField')}">
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</template:with>
|
|
37
37
|
</template:if>
|
|
38
38
|
<template:if test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' || ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation') && ${dataField>Inline/Bool} === 'true'}">
|
|
39
|
-
<template:with path="parameter>/" helper="
|
|
39
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="columnId">
|
|
40
40
|
<template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldForAction' }">
|
|
41
41
|
<template:then>
|
|
42
42
|
<template:if test="{= ${columnId>}.buildStableId({type: 'TableColumn', subType: 'DataFieldForAction', sSmartTableId: ${smartControlId>id}, sAction: ${dataField>Action/String}})}" />
|
|
@@ -214,7 +214,9 @@
|
|
|
214
214
|
<!-- Progress Indicator generation -->
|
|
215
215
|
<template:elseif test="{= ${dataFieldTarget>Visualization/EnumMember} === 'com.sap.vocabularies.UI.v1.VisualizationType/Progress'}">
|
|
216
216
|
<template:with path="dataFieldTarget>Value" helper="AHModel.resolvePath" var="value">
|
|
217
|
+
<!-- The formatter 'formatDisplayValueForProgressIndicator' is used by 'AH.buildExpressionForProgressIndicatorDisplayValue' -->
|
|
217
218
|
<ProgressIndicator
|
|
219
|
+
core:require="{formatDisplayValueForProgressIndicator: 'sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator'}"
|
|
218
220
|
binding="{= ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/') > -1 ? '{' + ${path: 'dataField>Target/AnnotationPath'}.slice(0, ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/')) + '}' : null}"
|
|
219
221
|
percentValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>'}], formatter: 'AH.buildExpressionForProgressIndicatorPercentValue' }"
|
|
220
222
|
displayValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>Org.OData.Measures.V1.Unit'}], formatter: 'AH.buildExpressionForProgressIndicatorDisplayValue'}"
|
|
@@ -24,6 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
function SmartFilterBarWrapper(vTarget, oFactory, mParams) {
|
|
25
25
|
var bIsApplying = false;
|
|
26
26
|
var aBasicFilters = [];
|
|
27
|
+
var aMissingNavFilters = [];
|
|
27
28
|
var oSmartFilterBar, oControlAssignedResolve, oPreliminaryState;
|
|
28
29
|
var oControlAssignedPromise = new Promise(function (resolve) {
|
|
29
30
|
oControlAssignedResolve = resolve;
|
|
@@ -81,9 +82,54 @@ sap.ui.define([
|
|
|
81
82
|
/* SFB header state of a variant (standard or custom) gets determined by the Apply Automatically checkbox's value of the corresponding
|
|
82
83
|
variant i.e. if the checkbox is checked, then the header should be collapsed and vice versa. */
|
|
83
84
|
oSVMWrapperCallbacks.setHeaderState(!oEvent.getParameter("executeOnSelect"));
|
|
85
|
+
aMissingNavFilters = fnGetNavigationProperties();
|
|
84
86
|
});
|
|
85
87
|
|
|
86
88
|
}
|
|
89
|
+
|
|
90
|
+
function fnGetNavigationProperties() {
|
|
91
|
+
//Fetch the navigation properties
|
|
92
|
+
var oMetaModel = oSmartFilterBar.getModel().getMetaModel(),
|
|
93
|
+
sEntitySet = oSmartFilterBar.getEntitySet(),
|
|
94
|
+
oDataEntitySet = oMetaModel.getODataEntitySet(sEntitySet),
|
|
95
|
+
oDataEntityType = oMetaModel.getODataEntityType(oDataEntitySet.entityType),
|
|
96
|
+
oNavigationProperties = oDataEntityType['navigationProperty'],
|
|
97
|
+
aAddedNavigationProperties = [];
|
|
98
|
+
//Fetch the added filters in the current variant
|
|
99
|
+
var sCurrentVariantID = oSmartFilterBar.getVariantManagement().getCurrentVariantId();
|
|
100
|
+
var oCurrentVariant = oSmartFilterBar.getVariantManagement().getAllVariants().find(function(variant) {
|
|
101
|
+
return variant.getId() === sCurrentVariantID;
|
|
102
|
+
});
|
|
103
|
+
if (oCurrentVariant === undefined || oCurrentVariant.getContent() === undefined) {
|
|
104
|
+
return aAddedNavigationProperties;
|
|
105
|
+
}
|
|
106
|
+
var oSmartFilterBarVariant = JSON.parse( oCurrentVariant.getContent().searchListReportVariant.filterBarVariant );
|
|
107
|
+
delete oSmartFilterBarVariant["_CUSTOM"];
|
|
108
|
+
//Compare the filter source and navigation properties
|
|
109
|
+
var aMatchedRanges = [];
|
|
110
|
+
for (var key in oSmartFilterBarVariant) {
|
|
111
|
+
for (var i = 0; i < oNavigationProperties.length; i++) {
|
|
112
|
+
var obj = oNavigationProperties[i];
|
|
113
|
+
if (key.startsWith(obj.name)) {
|
|
114
|
+
if (oSmartFilterBarVariant[key].ranges) {
|
|
115
|
+
aMatchedRanges.push(oSmartFilterBarVariant[key].ranges);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (aMatchedRanges.length) {
|
|
121
|
+
//Compare the manifest property with the filter source
|
|
122
|
+
var oManifestNavigationProperties = oSmartFilterBar.getNavigationProperties() || [];
|
|
123
|
+
var missingNavProperty = aMatchedRanges.filter(function(item) {
|
|
124
|
+
var sKeyField = item[0].keyField.split('.')[0];
|
|
125
|
+
return !oManifestNavigationProperties.includes(sKeyField);
|
|
126
|
+
});
|
|
127
|
+
if (missingNavProperty.length) {
|
|
128
|
+
aAddedNavigationProperties = aMatchedRanges;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return aAddedNavigationProperties;
|
|
132
|
+
}
|
|
87
133
|
|
|
88
134
|
function fnGetState() {
|
|
89
135
|
if (!oSmartFilterBar) {
|
|
@@ -242,6 +288,10 @@ sap.ui.define([
|
|
|
242
288
|
oSmartFilterBar = oControl;
|
|
243
289
|
oControlAssignedResolve(oSmartFilterBar);
|
|
244
290
|
}
|
|
291
|
+
|
|
292
|
+
function fnGetMissingNavProperties() {
|
|
293
|
+
return aMissingNavFilters;
|
|
294
|
+
}
|
|
245
295
|
|
|
246
296
|
// check waiting for initialization (like in SmartTableWrapper/SmartChartWrapper)
|
|
247
297
|
// currently, whole appState restoring is waiting for initialized event from sfb - but probably it would be enough to wait for it here
|
|
@@ -256,7 +306,8 @@ sap.ui.define([
|
|
|
256
306
|
// specific properties (needed to workaround direct connection between SFB and SVM)
|
|
257
307
|
setSVMWrapperCallbacks: setSVMWrapperCallbacks,
|
|
258
308
|
bVMConnection: oSmartFilterBar.getSmartVariant(),
|
|
259
|
-
suppressSelection: oSmartFilterBar.setSuppressSelection.bind(oSmartFilterBar) // if multiple reasons for suppressing overlap, a counter (to avoid to early resume) could be implemented here
|
|
309
|
+
suppressSelection: oSmartFilterBar.setSuppressSelection.bind(oSmartFilterBar), // if multiple reasons for suppressing overlap, a counter (to avoid to early resume) could be implemented here
|
|
310
|
+
getMissingNavProperties: fnGetMissingNavProperties
|
|
260
311
|
};
|
|
261
312
|
}
|
|
262
313
|
|
|
@@ -103,9 +103,9 @@ sap.ui.define([
|
|
|
103
103
|
var oControl = oController.getView().byId(sId);
|
|
104
104
|
if (oControl && oControl.isA("sap.ui.comp.smarttable.SmartTable")) {
|
|
105
105
|
oControl.attachAfterVariantInitialise(function() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if (sVariantId !== '*standard*' && oControl.
|
|
106
|
+
//set currentVariantId only when sVariantId is not standard (as it might be overriding existing
|
|
107
|
+
//different currentVariantId) or smartTable's (oControl) currentVariantId is not equal to sVariantId.
|
|
108
|
+
if (sVariantId !== '*standard*' && oControl.getCurrentVariantId && oControl.getCurrentVariantId() !== sVariantId) {
|
|
109
109
|
oControl.setCurrentVariantId(sVariantId);
|
|
110
110
|
oSmartVariantManagement.setModified(false);
|
|
111
111
|
}
|
|
@@ -21,7 +21,31 @@ sap.ui.define([], function() {
|
|
|
21
21
|
return sap.ui.require.toUrl(sAppComponentName.replace(/\./g, "/")) + "/" + sImageUrl; //replacing dots by slashes before calling sap.ui.require.toUrl method. com.xyz.abc to com/xyz/abc
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
// Function check is B array values is a subset of A array values.
|
|
25
|
+
// A = [], B = ["1", "2", "3"] -> true
|
|
26
|
+
// A = ["4"], B = ["1", "2", "3"] -> false
|
|
27
|
+
// A = ["1"], B = ["1", "2", "3"] -> true
|
|
28
|
+
// A = ["1", "3"], B = ["1", "2", "3"] -> true
|
|
29
|
+
// A = ["3", "2", "1"], B = ["1", "2", "3"] -> true
|
|
30
|
+
// A = ["1", "4"], B = ["1", "2", "3"] -> false
|
|
31
|
+
// A = ["1", "2", "3", "4"], B = ["1", "2", "3"] -> false
|
|
32
|
+
function fnIsASubsetOfB(a, b) {
|
|
33
|
+
if (a === b) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
if (!a || !b) {
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
if (a.length > b.length) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
return a.every(function(entry) {
|
|
43
|
+
return b.includes(entry);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
|
|
24
47
|
return {
|
|
25
|
-
adjustImageUrlPath: fnAdjustImageUrlPath
|
|
48
|
+
adjustImageUrlPath: fnAdjustImageUrlPath,
|
|
49
|
+
isASubsetOfB: fnIsASubsetOfB
|
|
26
50
|
};
|
|
27
51
|
});
|
|
@@ -10,9 +10,10 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
10
10
|
"sap/m/library",
|
|
11
11
|
"sap/ui/core/library",
|
|
12
12
|
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
13
|
+
"sap/ui/base/ManagedObject",
|
|
13
14
|
"sap/suite/ui/generic/template/js/RuntimeFormatters" // just to make sure that it is loaded
|
|
14
15
|
], function (AnnotationHelperModel, AnnotationHelperModelBasics, SmartField, FeLogger, formatMessage, deepExtend, StableIdHelper, utils, Device,
|
|
15
|
-
SapMLibrary, SapCoreLibrary, metadataAnalyser) {
|
|
16
|
+
SapMLibrary, SapCoreLibrary, metadataAnalyser, ManagedObject) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
18
19
|
// shortcut for sap.ui.core.ValueState
|
|
@@ -1072,21 +1073,21 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1072
1073
|
// builds the expression for the Rating Indicator Subtitle
|
|
1073
1074
|
buildRatingIndicatorSubtitleExpression: function (mSampleSize) {
|
|
1074
1075
|
if (mSampleSize) {
|
|
1075
|
-
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: '
|
|
1076
|
+
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: 'formatRatingIndicatorSubTitle'}";
|
|
1076
1077
|
}
|
|
1077
1078
|
},
|
|
1078
1079
|
|
|
1079
1080
|
// builds the expression for the Rating Indicator footer
|
|
1080
1081
|
buildRatingIndicatorFooterExpression: function (mValue, mTargetValue) {
|
|
1081
1082
|
if (mTargetValue) {
|
|
1082
|
-
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: '
|
|
1083
|
+
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1083
1084
|
}
|
|
1084
|
-
return "{parts: [{path: '" + mValue.Path + "'}], formatter: '
|
|
1085
|
+
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1085
1086
|
},
|
|
1086
1087
|
|
|
1087
1088
|
// builds the expression for the Rating Indicator aggregate Count
|
|
1088
1089
|
buildRatingIndicatorAggregateCountExpression: function (mValue) {
|
|
1089
|
-
return "{parts: [{path: '" + mValue.Path + "'}], formatter: '
|
|
1090
|
+
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'formatRatingIndicatorAggregateCount'}";
|
|
1090
1091
|
},
|
|
1091
1092
|
|
|
1092
1093
|
getIdForMoreBlockContent: function (oFacet) {
|
|
@@ -1136,10 +1137,20 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1136
1137
|
return sPath;
|
|
1137
1138
|
},
|
|
1138
1139
|
|
|
1139
|
-
// Returns the creation mode has been configured for the given facet
|
|
1140
|
-
getCreationMode: function (oFacet,
|
|
1140
|
+
// Returns the creation mode that has been configured for the given facet if defined, else returns the global level creation mode
|
|
1141
|
+
getCreationMode: function (oFacet, oGlobalSettings) {
|
|
1142
|
+
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1141
1143
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1142
|
-
|
|
1144
|
+
var sCreateMode;
|
|
1145
|
+
if (oSettings && oSettings.createMode) {
|
|
1146
|
+
sCreateMode = oSettings.createMode;
|
|
1147
|
+
} else if (oGlobalSettings && oGlobalSettings.createMode) {
|
|
1148
|
+
sCreateMode = oGlobalSettings.createMode;
|
|
1149
|
+
} else {
|
|
1150
|
+
sCreateMode = "";
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
return sCreateMode;
|
|
1143
1154
|
},
|
|
1144
1155
|
|
|
1145
1156
|
// Checks whether use of the preliminaryContext feature has been configured for the given facet
|
|
@@ -1147,10 +1158,11 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1147
1158
|
var oSettings = oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1148
1159
|
return !!(oSettings && oSettings.preliminaryContext);
|
|
1149
1160
|
},
|
|
1150
|
-
//check whether HasActiveEntity sort order(Inline Create mode) has been configured for the given facet(table)
|
|
1151
|
-
isInlineCreateSorting: function (oFacet,
|
|
1161
|
+
//check whether HasActiveEntity sort order(Inline Create mode) has been configured for the given facet(table). If not, then check for global settings.
|
|
1162
|
+
isInlineCreateSorting: function (oFacet, oGlobalSettings) {
|
|
1163
|
+
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1152
1164
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1153
|
-
return !!(oSettings && oSettings.disableDefaultInlineCreateSort);
|
|
1165
|
+
return !!((oSettings && oSettings.disableDefaultInlineCreateSort) ? oSettings.disableDefaultInlineCreateSort : oGlobalSettings && oGlobalSettings.disableDefaultInlineCreateSort);
|
|
1154
1166
|
},
|
|
1155
1167
|
|
|
1156
1168
|
isImageUrl: function (oPropertyAnnotations) {
|
|
@@ -1191,7 +1203,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1191
1203
|
if (oImageUrl.Path) {
|
|
1192
1204
|
var sPrefix = "{parts: [{path: '" + oImageUrl.Path + "'}, {value: '" + sAppComponentName + "'}";
|
|
1193
1205
|
var sInfix = bSuppressIcons ? ", {value: true}" : "";
|
|
1194
|
-
var sPostfix = "], formatter: '
|
|
1206
|
+
var sPostfix = "], formatter: 'formatImageUrl'}";
|
|
1195
1207
|
return sPrefix + sInfix + sPostfix;
|
|
1196
1208
|
}
|
|
1197
1209
|
// Apply
|
|
@@ -2639,9 +2651,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2639
2651
|
* - Boolean value or
|
|
2640
2652
|
* - Expression binding
|
|
2641
2653
|
*/
|
|
2642
|
-
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet,
|
|
2654
|
+
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType) {
|
|
2643
2655
|
var bHasSubObjectPage = oAnnotationHelper.hasSubObjectPage(oRelatedEntitySet, aSubPages),
|
|
2644
|
-
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet,
|
|
2656
|
+
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings),
|
|
2645
2657
|
bIsInlineCreationMode = ["inline", "creationRows", "creationRowsHiddenInEditMode"].includes(sTableCreationMode);
|
|
2646
2658
|
|
|
2647
2659
|
if (bHasSubObjectPage || bIsInlineCreationMode || oCreateWithParameterDialog) {
|
|
@@ -3227,7 +3239,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3227
3239
|
|
|
3228
3240
|
sParts = buildPart(oInterface, dataPoint.Value) + ", " + buildPart(oInterface, dataPoint.TargetValue) + ", " + buildPart(oInterface, mUoM);
|
|
3229
3241
|
|
|
3230
|
-
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: '
|
|
3242
|
+
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: 'formatDisplayValueForProgressIndicator' }";
|
|
3231
3243
|
return sDisplayValueExpression;
|
|
3232
3244
|
},
|
|
3233
3245
|
|
|
@@ -3699,7 +3711,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3699
3711
|
// More precisely: {path: '_templPrivMessage>/'} is included to listen to changes of the Message model
|
|
3700
3712
|
// {path: ''} is included to listen to change of the row context. This is in particular important for scrolling in grid tables (recommendation from ui5).
|
|
3701
3713
|
// sCriticalityPiece is needed to listen to changes of the criticality property. Note that there is a gap in case the criticality actually should be evaluated from the lineItemQualifier
|
|
3702
|
-
return "{parts: [" + sDraftParts + ", " + sMessageParts + sCriticalityPiece + ", {path: ''}], formatter: '
|
|
3714
|
+
return "{parts: [" + sDraftParts + ", " + sMessageParts + sCriticalityPiece + ", {path: ''}], formatter: 'setInfoHighlight'}";
|
|
3703
3715
|
},
|
|
3704
3716
|
|
|
3705
3717
|
getDataFieldLabel: function (oInterface, oDataField) {
|
|
@@ -3899,7 +3911,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3899
3911
|
SmartLinks expect a boolean value for forceLinkRendering which is not covered in this function, as semanticObjectController covers all cases
|
|
3900
3912
|
*/
|
|
3901
3913
|
hasQuickViewFacet: function (oEntitySet, oTargetEntities) {
|
|
3902
|
-
return oTargetEntities[oEntitySet.entityType].sForceLinkRendering; //Example return value '\\{"ProductForEdit":"true"\\}'
|
|
3914
|
+
return ManagedObject.escapeSettingsValue(oTargetEntities[oEntitySet.entityType].sForceLinkRendering); //Example return value '\\{"ProductForEdit":"true"\\}'
|
|
3903
3915
|
},
|
|
3904
3916
|
|
|
3905
3917
|
/*
|
|
@@ -66,10 +66,6 @@ sap.ui.define([
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
|
|
69
|
-
getIconForStreamForTableCells: function(oEntitySet, oDataField){
|
|
70
|
-
return "{parts: [{path: '__metadata/content_type'}], formatter: 'sap.ui.core.IconPool.getIconForMimeType'}";
|
|
71
|
-
},
|
|
72
|
-
|
|
73
69
|
getIconForStream: function(oEntitySet, oDataField){
|
|
74
70
|
var sNavigationProperty = oAnnotationHelperStreamSupport.getStreamEntitySet(oDataField);
|
|
75
71
|
return sNavigationProperty ? "{= ${_templPriv>/generic/controlProperties/fileUploader/" + sNavigationProperty + "/icon}}" : "{= ${_templPriv>/generic/controlProperties/fileUploader/" + oEntitySet.name + "/icon}}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
sap.ui.define(["sap/
|
|
2
|
-
], function (
|
|
1
|
+
sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageType", "sap/suite/ui/generic/template/genericUtilities/FeLogger", "sap/suite/ui/generic/template/genericUtilities/testableHelper", "sap/suite/ui/generic/template/genericUtilities/utils"
|
|
2
|
+
], function (NumberFormat, MessageType, FeLogger, testableHelper, utils) {
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
5
|
var oLogger = new FeLogger("js.RuntimeFormatters").getLogger();
|
|
@@ -252,10 +252,6 @@ sap.ui.define(["sap/base/security/encodeXML", "sap/ui/core/format/NumberFormat",
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
return sDisplayValue;
|
|
255
|
-
},
|
|
256
|
-
|
|
257
|
-
encodeHTML: function (HTMLString) {
|
|
258
|
-
return encodeXML(HTMLString);
|
|
259
255
|
}
|
|
260
256
|
};
|
|
261
257
|
|
package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.formatDisplayValueForProgressIndicator" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @parameter {string} sValue A string containing the value
|
|
20
|
+
* @parameter {string} sTarget A string containing the target value
|
|
21
|
+
* @parameter {string} sUoM A string containing the unit of measure
|
|
22
|
+
* @returns {string} A string containing the text that will be used in the display value of the Progress Indicator
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
return function (sValue, sTarget, sUoM) {
|
|
26
|
+
return RuntimeFormatters.formatDisplayValueForProgressIndicator.call(this, sValue, sTarget, sUoM);
|
|
27
|
+
};
|
|
28
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatImageUrl",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.formatImageUrl" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
return function (sImageUrl, sAppComponentName, bSuppressIcons) {
|
|
19
|
+
return RuntimeFormatters.formatImageUrl.call(this, sImageUrl, sAppComponentName, bSuppressIcons);
|
|
20
|
+
};
|
|
21
|
+
});
|
package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.formatRatingIndicatorAggregateCount" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
return function (vValue) {
|
|
19
|
+
return RuntimeFormatters.formatRatingIndicatorAggregateCount.call(this, vValue);
|
|
20
|
+
};
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorFooterText",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.formatRatingIndicatorFooterText" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
return function (vValue, vTargetValue) {
|
|
19
|
+
return RuntimeFormatters.formatRatingIndicatorFooterText.call(this, vValue, vTargetValue);
|
|
20
|
+
};
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorSubTitle",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.formatRatingIndicatorSubTitle" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
return function (iSampleSizeValue) {
|
|
19
|
+
return RuntimeFormatters.formatRatingIndicatorSubTitle.call(this, iSampleSizeValue);
|
|
20
|
+
};
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/setInfoHighlight",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.setInfoHighlight" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
return function (bIsActiveEntity, bHasActiveEntity, bEditable) {
|
|
19
|
+
return RuntimeFormatters.setInfoHighlight.call(this, bIsActiveEntity, bHasActiveEntity, bEditable);
|
|
20
|
+
};
|
|
21
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
sap.ui.define("sap/suite/ui/generic/template/js/formatters/setRowNavigated",
|
|
2
|
+
["sap/suite/ui/generic/template/js/RuntimeFormatters"], function (RuntimeFormatters) {
|
|
3
|
+
"use strict";
|
|
4
|
+
/**
|
|
5
|
+
* Note: This module is just a wrapper for "RuntimeFormatters.setRowNavigated" function.
|
|
6
|
+
*
|
|
7
|
+
* Currently, there's a limitation from UI5 core on the formatter functions.
|
|
8
|
+
* Earlier, the "this" keyword on the formatter function referred to the UI5 control.
|
|
9
|
+
* But, currently (UI5 2.0) the "this" keyword refers to the formatter module.
|
|
10
|
+
*
|
|
11
|
+
* As a temporary work-around, core team has suggested us to keep each formatter function in a separate module
|
|
12
|
+
* and export the formatter function from the module. In this way, the "this" keyword refers to the UI5 control.
|
|
13
|
+
*
|
|
14
|
+
* Once the limitation is resolved by core team, this module can be removed
|
|
15
|
+
* and "RuntimeFormatter" functions can be directly invoked from XML templates
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Return the value for the navigated property of the row. Works for both FCL and non-FCL apps.
|
|
20
|
+
* @param {string} sBindingPath of the row that is used to navigate to OP or Sub-OP
|
|
21
|
+
* @return {boolean} true/false to set/unset the property
|
|
22
|
+
*/
|
|
23
|
+
return function (sBindingPath) {
|
|
24
|
+
return RuntimeFormatters.setRowNavigated.call(this, sBindingPath);
|
|
25
|
+
};
|
|
26
|
+
});
|