@sapui5/sap.suite.ui.generic.template 1.124.0 → 1.125.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/controller/ControllerImplementation.js +4 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +1 -2
- 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/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/KpiCardSizeM.view.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 +1 -2
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +27 -7
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +9 -3
- 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 +2 -2
- 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 +15 -10
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +18 -11
- 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/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 -11
- 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 +19 -14
- 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.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 +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +3 -3
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/detailTemplates/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/extensionAPI/extensionAPI.js +1 -2
- package/src/sap/suite/ui/generic/template/fragments/AnalyticalTableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +7 -10
- package/src/sap/suite/ui/generic/template/fragments/FileUploader.fragment.xml +9 -4
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +2 -11
- package/src/sap/suite/ui/generic/template/fragments/GridTableColumns.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +0 -11
- package/src/sap/suite/ui/generic/template/fragments/HeaderForm.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +0 -12
- 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 +2 -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 -23
- 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 -12
- 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/utils.js +25 -1
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +26 -15
- 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 +115 -29
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/Application.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +7 -5
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +15 -1
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +16 -12
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +21 -3
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +11 -4
- package/src/sap/suite/ui/generic/template/lib/MessageUtils.js +4 -3
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +7 -127
- 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 +6 -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 +12 -2
- 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 +7 -9
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +18 -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/filterSettingsPreparationHelper.js +1 -1
- 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 +19 -10
- package/src/sap/suite/ui/generic/template/listTemplates/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +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
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +1 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
-
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
template:require="{StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
3
4
|
|
|
4
|
-
<template:with path="parameter>/" helper="
|
|
5
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="contextMenuId">
|
|
5
6
|
<template:if test="{= ${contextMenuId>}.buildStableId({type: 'SmartControl', subType: 'ContextMenu', sSmartTableId: ${smartControlId>id}})}" />
|
|
6
7
|
<Menu id="{contextMenuId>id}" items="{= '{_templPriv>/generic/controlProperties/' + ${smartControlId>id} + '/contextMenu/items}' }">
|
|
7
8
|
<MenuItem text="{_templPriv>text}" enabled="{_templPriv>enabled}" icon="{_templPriv>icon}" key="{_templPriv>key}"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
xmlns:sfo="sap.ui.comp.smartform" xmlns:smartMultiInput="sap.ui.comp.smartmultiinput" xmlns:layoutData="sap.ui.layout" xmlns:fe="sap.suite.ui.generic.template.genericUtilities"
|
|
3
3
|
xmlns:custom="http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1"
|
|
4
4
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
5
|
-
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper'}">
|
|
5
|
+
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
6
6
|
|
|
7
7
|
<!-- @classdesc @name: Name: sap.suite.ui.generic.template.fragments.SmartFormDataField.fragment.xml
|
|
8
8
|
@description: This fragment contains label value pairs for the smart form
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<!-- Prepare facetId for stableId creation
|
|
12
12
|
Note: currently only used for AddressFacet, but intentionally placed here to be used by all other stable ids in future
|
|
13
13
|
-->
|
|
14
|
-
<template:with path="parameter>/" helper="
|
|
14
|
+
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="facetId">
|
|
15
15
|
<template:if test="{= ${facetId>}.buildStableId({ type:'ObjectPage', subType:'StandardFacet', sRecordType: ${facet>RecordType}, sAnnotationPath: ${facet>Target/AnnotationPath} , sAnnotationId: ${facet>ID/String} }) }"/>
|
|
16
16
|
|
|
17
17
|
<template:with path="groupFacet>Target" helper="AHModel.gotoEntitySet" var="targetEntitySet">
|
|
@@ -66,17 +66,6 @@
|
|
|
66
66
|
<sfi:customData>
|
|
67
67
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
68
68
|
</sfi:customData>
|
|
69
|
-
<template:if test="{= ${connectedFieldElement>Criticality} }">
|
|
70
|
-
<sfi:controlProposal>
|
|
71
|
-
<sfi:ControlProposal>
|
|
72
|
-
<sfi:objectStatus>
|
|
73
|
-
<sfi:ObjectStatus
|
|
74
|
-
criticality="{path: 'connectedFieldElement>Criticality', formatter: 'AHModel.simplePath'}"
|
|
75
|
-
criticalityRepresentationType="{= (${connectedFieldElement>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}" />
|
|
76
|
-
</sfi:objectStatus>
|
|
77
|
-
</sfi:ControlProposal>
|
|
78
|
-
</sfi:controlProposal>
|
|
79
|
-
</template:if>
|
|
80
69
|
<sfi:customData>
|
|
81
70
|
<template:with path="connectedFieldElement>Value" helper="AHModel.resolvePath" var="connectedFieldElementValue">
|
|
82
71
|
<core:CustomData key="SideEffectSourcePropertyType"
|
|
@@ -194,16 +183,6 @@
|
|
|
194
183
|
<smartlink:SemanticObjectController ignoredFields="{parts: [{path: 'quickView>/'}, {path: 'dataField>'}], formatter: 'AH.disableSemanticObjectLinksOnPopups'}" />
|
|
195
184
|
</sfi:semanticObjectController>
|
|
196
185
|
</template:if>
|
|
197
|
-
<template:if test="{= ${dataField>Criticality} }">
|
|
198
|
-
<sfi:controlProposal>
|
|
199
|
-
<sfi:ControlProposal>
|
|
200
|
-
<sfi:objectStatus>
|
|
201
|
-
<sfi:ObjectStatus criticality="{path: 'dataField>Criticality', formatter: 'AHModel.simplePath'}"
|
|
202
|
-
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"/>
|
|
203
|
-
</sfi:objectStatus>
|
|
204
|
-
</sfi:ControlProposal>
|
|
205
|
-
</sfi:controlProposal>
|
|
206
|
-
</template:if>
|
|
207
186
|
<sfi:customData>
|
|
208
187
|
<core:CustomData key="SideEffectSourcePropertyType"
|
|
209
188
|
value="{parts: [{path: 'dataFieldValue>name'}, {path: 'parameter>/isDraftEnabled'}, {path: 'parameter>/metaModel'}, {path: 'parameter>/entityType'}], formatter: 'AH.getSideEffectSourcePropertyType'}" />
|
|
@@ -11,8 +11,12 @@
|
|
|
11
11
|
</table:dependents>
|
|
12
12
|
<table:rowSettingsTemplate>
|
|
13
13
|
<table:RowSettings
|
|
14
|
+
core:require="{
|
|
15
|
+
setRowNavigated: 'sap/suite/ui/generic/template/js/formatters/setRowNavigated',
|
|
16
|
+
setInfoHighlight: 'sap/suite/ui/generic/template/js/formatters/setInfoHighlight'
|
|
17
|
+
}"
|
|
14
18
|
highlight="{= ${parameter>/templateSpecific/rowHighligths} || ${parts: [{path: 'entityType>'}, {path: 'parameter>/treeNode'}, {path: 'entitySet>name'}, {path: 'parameter>/checkIsDraftEnabled'}], formatter: 'AH.setRowHighlight'} }"
|
|
15
|
-
navigated="{parts: [{path: '_templPriv>/generic/currentActiveChildContext'}, {path: ''}], formatter: '
|
|
19
|
+
navigated="{parts: [{path: '_templPriv>/generic/currentActiveChildContext'}, {path: ''}], formatter: 'setRowNavigated'}" />
|
|
16
20
|
</table:rowSettingsTemplate>
|
|
17
21
|
<table:contextMenu>
|
|
18
22
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.SmartControlContextMenu" type="XML"/>
|
|
@@ -14,17 +14,6 @@
|
|
|
14
14
|
<smartField:configuration>
|
|
15
15
|
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
|
|
16
16
|
</smartField:configuration>
|
|
17
|
-
<template:if test="{= ${dataField>Criticality}}">
|
|
18
|
-
<smartField:controlProposal>
|
|
19
|
-
<smartField:ControlProposal>
|
|
20
|
-
<smartField:objectStatus>
|
|
21
|
-
<smartField:ObjectStatus criticality="{path: 'dataField>Criticality', formatter: 'AHModel.simplePath'}"
|
|
22
|
-
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"
|
|
23
|
-
ariaLabelledBy="{columnId>id}"/>
|
|
24
|
-
</smartField:objectStatus>
|
|
25
|
-
</smartField:ControlProposal>
|
|
26
|
-
</smartField:controlProposal>
|
|
27
|
-
</template:if>
|
|
28
17
|
</smartField:SmartField>
|
|
29
18
|
</template:then>
|
|
30
19
|
<template:elseif test="{parts: [{path: 'listEntitySet>'}, {path: 'dataField>'}], formatter: 'AHStream.checkIfEntityOrAssociationHasStreamEnabled'}">
|
|
@@ -60,7 +49,9 @@
|
|
|
60
49
|
ariaLabelledBy="{columnId>id}"/>
|
|
61
50
|
</template:else>
|
|
62
51
|
</template:if>
|
|
63
|
-
<FormattedText
|
|
52
|
+
<FormattedText
|
|
53
|
+
core:require="{encodeXML: 'sap/base/security/encodeXML'}"
|
|
54
|
+
htmlText="<em>{path:'i18n>NEW_OBJECT', formatter:'encodeXML'}</em>"
|
|
64
55
|
visible="{parts: [{path: 'dataFieldValue>'}, {path: 'dataField>'}, {path: 'entityType>'}], formatter: 'AH.getHeaderVisibility'}"/>
|
|
65
56
|
<Text class="sapUiTinyMarginTop"
|
|
66
57
|
renderWhitespace="true"
|
|
@@ -90,7 +81,9 @@
|
|
|
90
81
|
<template:if test="{path: 'dataFieldValue>', formatter: 'AH.isImageUrl'}">
|
|
91
82
|
<!-- handle data field with images -->
|
|
92
83
|
<template:then>
|
|
84
|
+
<!-- The formatter 'sap/suite/ui/generic/template/js/formatters/formatImageUrl' is used by 'AH.formatImageUrl' -->
|
|
93
85
|
<Avatar
|
|
86
|
+
core:require="{formatImageUrl: 'sap/suite/ui/generic/template/js/formatters/formatImageUrl'}"
|
|
94
87
|
src="{parts:[{path: 'dataField>Value'}, {path: 'parameter>/appComponentName'}], formatter: 'AH.formatImageUrl'}"
|
|
95
88
|
tooltip="{path: 'dataFieldValue>com.sap.vocabularies.Common.v1.Text', formatter: 'AHModel.format'}"
|
|
96
89
|
displaySize="S"
|
|
@@ -195,7 +188,9 @@
|
|
|
195
188
|
<template:elseif test="{= ${dataFieldTarget>Visualization/EnumMember} === 'com.sap.vocabularies.UI.v1.VisualizationType/Progress'}">
|
|
196
189
|
<template:with path="dataFieldTarget>Value" helper="AHModel.resolvePath" var="value">
|
|
197
190
|
<VBox renderType="Bare">
|
|
191
|
+
<!-- The formatter 'formatDisplayValueForProgressIndicator' is used by 'AH.buildExpressionForProgressIndicatorDisplayValue' -->
|
|
198
192
|
<ProgressIndicator
|
|
193
|
+
core:require="{formatDisplayValueForProgressIndicator: 'sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator'}"
|
|
199
194
|
binding="{= ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/') > -1 ? '{' + ${path: 'dataField>Target/AnnotationPath'}.slice(0, ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/')) + '}' : null}"
|
|
200
195
|
percentValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>'}], formatter: 'AH.buildExpressionForProgressIndicatorPercentValue' }"
|
|
201
196
|
displayValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>Org.OData.Measures.V1.Unit'}], formatter: 'AH.buildExpressionForProgressIndicatorDisplayValue'}"
|
|
@@ -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'}"
|
|
@@ -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
|
});
|
|
@@ -1072,21 +1072,21 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1072
1072
|
// builds the expression for the Rating Indicator Subtitle
|
|
1073
1073
|
buildRatingIndicatorSubtitleExpression: function (mSampleSize) {
|
|
1074
1074
|
if (mSampleSize) {
|
|
1075
|
-
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: '
|
|
1075
|
+
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: 'formatRatingIndicatorSubTitle'}";
|
|
1076
1076
|
}
|
|
1077
1077
|
},
|
|
1078
1078
|
|
|
1079
1079
|
// builds the expression for the Rating Indicator footer
|
|
1080
1080
|
buildRatingIndicatorFooterExpression: function (mValue, mTargetValue) {
|
|
1081
1081
|
if (mTargetValue) {
|
|
1082
|
-
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: '
|
|
1082
|
+
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1083
1083
|
}
|
|
1084
|
-
return "{parts: [{path: '" + mValue.Path + "'}], formatter: '
|
|
1084
|
+
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1085
1085
|
},
|
|
1086
1086
|
|
|
1087
1087
|
// builds the expression for the Rating Indicator aggregate Count
|
|
1088
1088
|
buildRatingIndicatorAggregateCountExpression: function (mValue) {
|
|
1089
|
-
return "{parts: [{path: '" + mValue.Path + "'}], formatter: '
|
|
1089
|
+
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'formatRatingIndicatorAggregateCount'}";
|
|
1090
1090
|
},
|
|
1091
1091
|
|
|
1092
1092
|
getIdForMoreBlockContent: function (oFacet) {
|
|
@@ -1136,10 +1136,20 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1136
1136
|
return sPath;
|
|
1137
1137
|
},
|
|
1138
1138
|
|
|
1139
|
-
// Returns the creation mode has been configured for the given facet
|
|
1140
|
-
getCreationMode: function (oFacet,
|
|
1139
|
+
// Returns the creation mode that has been configured for the given facet if defined, else returns the global level creation mode
|
|
1140
|
+
getCreationMode: function (oFacet, oGlobalSettings) {
|
|
1141
|
+
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1141
1142
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1142
|
-
|
|
1143
|
+
var sCreateMode;
|
|
1144
|
+
if (oSettings && oSettings.createMode) {
|
|
1145
|
+
sCreateMode = oSettings.createMode;
|
|
1146
|
+
} else if (oGlobalSettings && oGlobalSettings.createMode) {
|
|
1147
|
+
sCreateMode = oGlobalSettings.createMode;
|
|
1148
|
+
} else {
|
|
1149
|
+
sCreateMode = "";
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
return sCreateMode;
|
|
1143
1153
|
},
|
|
1144
1154
|
|
|
1145
1155
|
// Checks whether use of the preliminaryContext feature has been configured for the given facet
|
|
@@ -1147,10 +1157,11 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1147
1157
|
var oSettings = oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1148
1158
|
return !!(oSettings && oSettings.preliminaryContext);
|
|
1149
1159
|
},
|
|
1150
|
-
//check whether HasActiveEntity sort order(Inline Create mode) has been configured for the given facet(table)
|
|
1151
|
-
isInlineCreateSorting: function (oFacet,
|
|
1160
|
+
//check whether HasActiveEntity sort order(Inline Create mode) has been configured for the given facet(table). If not, then check for global settings.
|
|
1161
|
+
isInlineCreateSorting: function (oFacet, oGlobalSettings) {
|
|
1162
|
+
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1152
1163
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1153
|
-
return !!(oSettings && oSettings.disableDefaultInlineCreateSort);
|
|
1164
|
+
return !!((oSettings && oSettings.disableDefaultInlineCreateSort) ? oSettings.disableDefaultInlineCreateSort : oGlobalSettings && oGlobalSettings.disableDefaultInlineCreateSort);
|
|
1154
1165
|
},
|
|
1155
1166
|
|
|
1156
1167
|
isImageUrl: function (oPropertyAnnotations) {
|
|
@@ -1191,7 +1202,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1191
1202
|
if (oImageUrl.Path) {
|
|
1192
1203
|
var sPrefix = "{parts: [{path: '" + oImageUrl.Path + "'}, {value: '" + sAppComponentName + "'}";
|
|
1193
1204
|
var sInfix = bSuppressIcons ? ", {value: true}" : "";
|
|
1194
|
-
var sPostfix = "], formatter: '
|
|
1205
|
+
var sPostfix = "], formatter: 'formatImageUrl'}";
|
|
1195
1206
|
return sPrefix + sInfix + sPostfix;
|
|
1196
1207
|
}
|
|
1197
1208
|
// Apply
|
|
@@ -2639,9 +2650,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2639
2650
|
* - Boolean value or
|
|
2640
2651
|
* - Expression binding
|
|
2641
2652
|
*/
|
|
2642
|
-
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet,
|
|
2653
|
+
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType) {
|
|
2643
2654
|
var bHasSubObjectPage = oAnnotationHelper.hasSubObjectPage(oRelatedEntitySet, aSubPages),
|
|
2644
|
-
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet,
|
|
2655
|
+
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings),
|
|
2645
2656
|
bIsInlineCreationMode = ["inline", "creationRows", "creationRowsHiddenInEditMode"].includes(sTableCreationMode);
|
|
2646
2657
|
|
|
2647
2658
|
if (bHasSubObjectPage || bIsInlineCreationMode || oCreateWithParameterDialog) {
|
|
@@ -3227,7 +3238,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3227
3238
|
|
|
3228
3239
|
sParts = buildPart(oInterface, dataPoint.Value) + ", " + buildPart(oInterface, dataPoint.TargetValue) + ", " + buildPart(oInterface, mUoM);
|
|
3229
3240
|
|
|
3230
|
-
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: '
|
|
3241
|
+
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: 'formatDisplayValueForProgressIndicator' }";
|
|
3231
3242
|
return sDisplayValueExpression;
|
|
3232
3243
|
},
|
|
3233
3244
|
|
|
@@ -3699,7 +3710,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3699
3710
|
// More precisely: {path: '_templPrivMessage>/'} is included to listen to changes of the Message model
|
|
3700
3711
|
// {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
3712
|
// 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: '
|
|
3713
|
+
return "{parts: [" + sDraftParts + ", " + sMessageParts + sCriticalityPiece + ", {path: ''}], formatter: 'setInfoHighlight'}";
|
|
3703
3714
|
},
|
|
3704
3715
|
|
|
3705
3716
|
getDataFieldLabel: function (oInterface, oDataField) {
|
|
@@ -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
|
+
});
|