@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
|
@@ -11,6 +11,10 @@ sap.ui.define([
|
|
|
11
11
|
var aVisibleItemsData;
|
|
12
12
|
var iMaxColumns = 3;
|
|
13
13
|
var objectTitle, objectSubtitle, sAppUrl, sAppTitle;
|
|
14
|
+
var oSapSemantics = Object.freeze({
|
|
15
|
+
unitOfMeasure: "unit-of-measure",
|
|
16
|
+
currencyCode: "currency-code"
|
|
17
|
+
});
|
|
14
18
|
|
|
15
19
|
// function performs multiple level entity relation check to find the color
|
|
16
20
|
var fnGetColorFromAnnotations = function (sCriticalityPath) {
|
|
@@ -88,8 +92,9 @@ sap.ui.define([
|
|
|
88
92
|
var iLoop = 0;
|
|
89
93
|
while (propLen > 0) {
|
|
90
94
|
var oProperty = oEntityType.property.find(findFunc.bind(null, aProperties[iLoop]));
|
|
91
|
-
if (oProperty
|
|
92
|
-
|
|
95
|
+
if (oProperty) {
|
|
96
|
+
var oSemantic = oEntityType.property.find(findFunc.bind(null, oProperty["sap:unit"]));
|
|
97
|
+
return { sEdmType: oProperty["type"], sSapUnit: oProperty["sap:unit"], sSemantic: oSemantic ? oSemantic["sap:semantics"] : undefined };
|
|
93
98
|
} else if (propLen > 1) {
|
|
94
99
|
var oNavigationEntitySet = oMetaModel.getODataAssociationEnd(oEntityType, aProperties[iLoop]);
|
|
95
100
|
oEntityType = oMetaModel.getODataEntityType(oNavigationEntitySet.type);
|
|
@@ -97,9 +102,20 @@ sap.ui.define([
|
|
|
97
102
|
}
|
|
98
103
|
propLen--;
|
|
99
104
|
}
|
|
100
|
-
return undefined;
|
|
105
|
+
return { edmType: undefined, sSemantic: undefined, sSapUnit: undefined };
|
|
101
106
|
};
|
|
102
107
|
|
|
108
|
+
var fnGetVisiblePathForFC = function (oControl) {
|
|
109
|
+
var visiblePathwithFormat = "";
|
|
110
|
+
var oParent = oControl.getParent();
|
|
111
|
+
if (oControl.getBindingPath("visible")) {
|
|
112
|
+
visiblePathwithFormat = "${" + oControl.getBindingPath("visible") + " !=0}";
|
|
113
|
+
} else if (oParent.getBindingPath("visible")) {
|
|
114
|
+
visiblePathwithFormat = "${(" + oParent.getBindingPath("visible") + " == false || " + oParent.getBindingPath("visible") + " == '' || " + oParent.getBindingPath("visible") + " == 0)}";
|
|
115
|
+
}
|
|
116
|
+
return visiblePathwithFormat;
|
|
117
|
+
};
|
|
118
|
+
|
|
103
119
|
var fnExtractDataFromDataPoint = function (item, controller) {
|
|
104
120
|
if (item.getItems().length > 1) {
|
|
105
121
|
var oDataPointData = {
|
|
@@ -111,17 +127,22 @@ sap.ui.define([
|
|
|
111
127
|
paths: {},
|
|
112
128
|
objectStatus: "",
|
|
113
129
|
color: "",
|
|
114
|
-
edmType: ""
|
|
130
|
+
edmType: "",
|
|
131
|
+
visiblePath: ""
|
|
115
132
|
};
|
|
116
133
|
var aControls = item.getItems();
|
|
117
134
|
oDataPointData.path = aControls[1].getBindingPath("value");
|
|
135
|
+
oDataPointData.visiblePath = fnGetVisiblePathForFC(aControls[1]);
|
|
118
136
|
if (isPotentiallySensitive(oDataPointData.path, controller)) {
|
|
119
137
|
return null;
|
|
120
138
|
}
|
|
121
139
|
if (isPotentiallyPersonal(oDataPointData.path, controller)) {
|
|
122
140
|
return null;
|
|
123
141
|
}
|
|
124
|
-
|
|
142
|
+
var data = getEdmType(oDataPointData.path, controller);
|
|
143
|
+
oDataPointData.edmType = data.sEdmType;
|
|
144
|
+
oDataPointData.semantic = data.sSemantic;
|
|
145
|
+
oDataPointData.sapUnit = data.sSapUnit;
|
|
125
146
|
oDataPointData.label = aControls[0].getText && aControls[0].getText();
|
|
126
147
|
oDataPointData.value = aControls[1].getValue && aControls[1].getValue();
|
|
127
148
|
|
|
@@ -170,11 +191,13 @@ sap.ui.define([
|
|
|
170
191
|
type: "PlainTextVBox",
|
|
171
192
|
label: "",
|
|
172
193
|
value: "",
|
|
173
|
-
path: ""
|
|
194
|
+
path: "",
|
|
195
|
+
visiblePath: ""
|
|
174
196
|
};
|
|
175
197
|
var aControls = item.getItems();
|
|
176
198
|
oPlainTextData.label = aControls[0].getText && aControls[0].getText();
|
|
177
199
|
oPlainTextData.path = aControls[1].getBindingPath("text");
|
|
200
|
+
oPlainTextData.visiblePath = fnGetVisiblePathForFC(aControls[1]);
|
|
178
201
|
// if (isPotentiallySensitive(oDataPointData.path, controller)) {
|
|
179
202
|
// return;
|
|
180
203
|
// }
|
|
@@ -210,11 +233,12 @@ sap.ui.define([
|
|
|
210
233
|
expand: "",
|
|
211
234
|
objectStatus: "",
|
|
212
235
|
color: "",
|
|
213
|
-
edmType: ""
|
|
236
|
+
edmType: "",
|
|
237
|
+
visiblePath: ""
|
|
214
238
|
};
|
|
215
239
|
var aFieldControls = element.getItems();
|
|
216
240
|
oFieldData.label = aFieldControls[0].getText && aFieldControls[0].getText();
|
|
217
|
-
|
|
241
|
+
oFieldData.visiblePath = fnGetVisiblePathForFC(aFieldControls[1]);
|
|
218
242
|
if (aFieldControls[1].getText) {
|
|
219
243
|
oFieldData.path = aFieldControls[1].getBindingPath("text");
|
|
220
244
|
oFieldData.value = aFieldControls[1].getText();
|
|
@@ -228,7 +252,10 @@ sap.ui.define([
|
|
|
228
252
|
if (isPotentiallyPersonal(oFieldData.path, controller)) {
|
|
229
253
|
continue;
|
|
230
254
|
}
|
|
231
|
-
|
|
255
|
+
var data = getEdmType(oFieldData.path, controller);
|
|
256
|
+
oFieldData.edmType = data.sEdmType;
|
|
257
|
+
oFieldData.sapUnit = data.sSapUnit;
|
|
258
|
+
oFieldData.semantic = data.sSemantic;
|
|
232
259
|
|
|
233
260
|
// For Value Help
|
|
234
261
|
var oObjectBinding = aFieldControls[1].getObjectBinding && aFieldControls[1].getObjectBinding();
|
|
@@ -274,6 +301,47 @@ sap.ui.define([
|
|
|
274
301
|
}
|
|
275
302
|
};
|
|
276
303
|
|
|
304
|
+
/**
|
|
305
|
+
* Create Nullish check expression
|
|
306
|
+
* @param {string} sPath Attribute binding to be evaluated for nullish values
|
|
307
|
+
* @param {string | undefined} sPath Attribute binding to be evaluated for nullish values
|
|
308
|
+
* @param {string | undefined} sPath Attribute binding to be evaluated for nullish values
|
|
309
|
+
* @returns {string} String Nullish check expression
|
|
310
|
+
*/
|
|
311
|
+
var fnGetNullishPathCheckString = function (sPath, sEdmType, sValue) {
|
|
312
|
+
var sNullCheckPath = sPath + " == '' || " + sPath + " == null || " + sPath + " == undefined";
|
|
313
|
+
if (sEdmType === "Edm.Decimal") {
|
|
314
|
+
sNullCheckPath = sNullCheckPath + ' || ' + "formatNumber(float(" + sValue + "), 2) == '0.00'";
|
|
315
|
+
}
|
|
316
|
+
return sNullCheckPath;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Creates MS accepted conditional binding which will replace nullish resolved binding values ( '', null, undefined ) to -
|
|
321
|
+
* @param {string} sPath Attribute binding to be evaluated for nullish values
|
|
322
|
+
* @returns {string} String MS accepted conditional binding
|
|
323
|
+
*/
|
|
324
|
+
var fnHandleDefaultValueForPath = function (sPath) {
|
|
325
|
+
return fnGetNullishPathCheckString(sPath) + " ? '\\\\-' : " + sPath;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Create generic MS accepted conditional binding based on params passed
|
|
330
|
+
* @param {string} sDefaultPath Attribute binding to be evaluated for nullish values
|
|
331
|
+
* @param {string} sValue Attribute Value binding for path
|
|
332
|
+
* @param {string | undefined} sFirstParam Attribute parameter binding for the path
|
|
333
|
+
* @param {string | undefined} sSecondParam Attribute parameter binding for the path
|
|
334
|
+
* @returns {string} String MS accepted conditional binding
|
|
335
|
+
*/
|
|
336
|
+
var fnHandleValueForPath = function (sDefaultPath, sValue, sFirstParam, sSecondParam) {
|
|
337
|
+
if (sFirstParam && sSecondParam) {
|
|
338
|
+
return sDefaultPath + sValue + " + ' ' + " + "(" + sFirstParam + " ? " + sFirstParam + " : '') + ' ' + (" + fnGetNullishPathCheckString(sSecondParam) + " ? " + "' ' : " + "'(' + " + sSecondParam + " + ')')";
|
|
339
|
+
} else if (sFirstParam) {
|
|
340
|
+
return sDefaultPath + sValue + " + ' ' + (" + fnGetNullishPathCheckString(sFirstParam) + " ? " + "' ' : " + "'(' + " + sFirstParam + " + ')')";
|
|
341
|
+
}
|
|
342
|
+
return "";
|
|
343
|
+
};
|
|
344
|
+
|
|
277
345
|
var fnSetPath = function (oField) {
|
|
278
346
|
var aPaths = [];
|
|
279
347
|
if (oField.paths) {
|
|
@@ -281,10 +349,17 @@ sap.ui.define([
|
|
|
281
349
|
return oPath !== oField.path && oPath.indexOf("##@@") === -1;
|
|
282
350
|
});
|
|
283
351
|
}
|
|
284
|
-
var sValue = oField.edmType === "Edm.Decimal" ? "
|
|
352
|
+
var sValue = oField.edmType === "Edm.Decimal" ? "formatNumber(float(" + oField.path + "), 2)" : oField.path;
|
|
353
|
+
var sDefaultPathValue = fnHandleDefaultValueForPath(oField.path);
|
|
285
354
|
var sId = "";
|
|
286
355
|
var sDescription = "";
|
|
287
356
|
var sPath;
|
|
357
|
+
var sSapUnitConditionalPath = "";
|
|
358
|
+
if (oField.semantic === oSapSemantics.unitOfMeasure) {
|
|
359
|
+
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + sValue + " + ' ' + '\\\\-' : " + "";
|
|
360
|
+
} else if (oField.semantic === oSapSemantics.currencyCode) {
|
|
361
|
+
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + " '\\\\-' : " + "";
|
|
362
|
+
}
|
|
288
363
|
if (aPaths.length > 1) {
|
|
289
364
|
var aDescriptionText = aPaths.filter(function(oPath) {
|
|
290
365
|
return oPath.endsWith("_Text");
|
|
@@ -293,47 +368,54 @@ sap.ui.define([
|
|
|
293
368
|
return !oPath.endsWith("_Text");
|
|
294
369
|
});
|
|
295
370
|
if (aDescriptionText && aDescriptionText.length > 0) {
|
|
296
|
-
sDescription =
|
|
371
|
+
sDescription = aDescriptionText[0];
|
|
297
372
|
}
|
|
298
373
|
if (aID && aID.length > 0){
|
|
299
|
-
sId =
|
|
300
|
-
}
|
|
301
|
-
if (aDescriptionText && aDescriptionText.length > 0) {
|
|
302
|
-
sDescription = "${" + aDescriptionText[0] + "}";
|
|
374
|
+
sId = aID[0];
|
|
303
375
|
}
|
|
304
376
|
} else if (aPaths.length > 0) {
|
|
305
|
-
sDescription =
|
|
377
|
+
sDescription = aPaths[0];
|
|
306
378
|
}
|
|
307
379
|
|
|
308
380
|
if (oField.displayBehaviour) {
|
|
309
381
|
switch (oField.displayBehaviour) {
|
|
310
|
-
case "descriptionAndId":
|
|
311
|
-
if (sId) {
|
|
312
|
-
sPath =
|
|
313
|
-
} else if (sDescription) {
|
|
314
|
-
sPath =
|
|
382
|
+
case "descriptionAndId":
|
|
383
|
+
if (sId && sDescription) {
|
|
384
|
+
sPath = fnHandleValueForPath(sSapUnitConditionalPath, sValue, sDescription, sId);
|
|
385
|
+
} else if (sId && !sDescription) {
|
|
386
|
+
sPath = fnHandleValueForPath(sSapUnitConditionalPath, sValue, sId);
|
|
387
|
+
} else if (sDescription && !sId) {
|
|
388
|
+
sPath = sSapUnitConditionalPath + " (" + fnGetNullishPathCheckString(sValue) + " ? (" + fnHandleDefaultValueForPath(sDescription) + ") : (" + sDescription + " + ' ' + " + "' (' + " + sValue + " + ')'" + "))";
|
|
315
389
|
} else {
|
|
316
|
-
sPath =
|
|
390
|
+
sPath = sDefaultPathValue;
|
|
317
391
|
}
|
|
318
392
|
break;
|
|
319
393
|
case "descriptionOnly":
|
|
320
|
-
sPath = sDescription;
|
|
394
|
+
sPath = fnHandleDefaultValueForPath(sDescription);
|
|
321
395
|
break;
|
|
322
396
|
case "idAndDescription":
|
|
323
|
-
|
|
397
|
+
if (sId && sDescription) {
|
|
398
|
+
sPath = fnHandleValueForPath(sSapUnitConditionalPath, sValue, sId, sDescription);
|
|
399
|
+
} else if (sId && !sDescription) {
|
|
400
|
+
sPath = sSapUnitConditionalPath + sValue + " + ' ' + (" + sId + " ? " + sId + " : '')";
|
|
401
|
+
} else if (!sId && sDescription) {
|
|
402
|
+
sPath = fnHandleValueForPath(sSapUnitConditionalPath, sValue, sDescription);
|
|
403
|
+
} else {
|
|
404
|
+
sPath = sDefaultPathValue;
|
|
405
|
+
}
|
|
324
406
|
break;
|
|
325
407
|
case "idOnly":
|
|
326
|
-
sPath =
|
|
408
|
+
sPath = sDefaultPathValue || sId;
|
|
327
409
|
break;
|
|
328
410
|
default:
|
|
329
|
-
sPath =
|
|
411
|
+
sPath = sDefaultPathValue;
|
|
330
412
|
break;
|
|
331
413
|
}
|
|
332
414
|
} else {
|
|
333
|
-
sPath =
|
|
415
|
+
sPath = sDefaultPathValue;
|
|
334
416
|
}
|
|
335
417
|
sPath = sPath && sPath.indexOf('/') > -1 ? sPath.replaceAll('/', '.') : sPath;
|
|
336
|
-
return sPath;
|
|
418
|
+
return "${" + sPath + "}";
|
|
337
419
|
};
|
|
338
420
|
|
|
339
421
|
var getWebUrl = function() {
|
|
@@ -538,6 +620,7 @@ sap.ui.define([
|
|
|
538
620
|
oFormFieldValueClone.text = fnSetPath(oField);
|
|
539
621
|
oFormFieldValueClone.color = oField.color ? oField.color : "Default";
|
|
540
622
|
oColumnClone.items.push(oFormFieldValueClone);
|
|
623
|
+
oColumnClone["$when"] = oField.visiblePath;
|
|
541
624
|
oColumnSetClone.columns.push(oColumnClone);
|
|
542
625
|
}
|
|
543
626
|
oAdaptiveCardJSON.body.push(oColumnSetClone);
|
|
@@ -550,6 +633,8 @@ sap.ui.define([
|
|
|
550
633
|
oFormFieldValueClone = deepClone(oFormFieldValue);
|
|
551
634
|
oFormFieldValueClone.text = fnSetPath(element);
|
|
552
635
|
oAdaptiveCardJSON.body.push(oFormFieldValueClone);
|
|
636
|
+
oFormTitleClone["$when"] = element.visiblePath;
|
|
637
|
+
oFormFieldValueClone["$when"] = element.visiblePath;
|
|
553
638
|
break;
|
|
554
639
|
case "DataPoint":
|
|
555
640
|
if (!oDataPointColumnSet) {
|
|
@@ -563,6 +648,7 @@ sap.ui.define([
|
|
|
563
648
|
oFormFieldValueClone.text = fnSetPath(element);
|
|
564
649
|
oFormFieldValueClone.color = element.color ? element.color : "Default";
|
|
565
650
|
oColumnClone.items.push(oFormFieldValueClone);
|
|
651
|
+
oColumnClone["$when"] = element.visiblePath;
|
|
566
652
|
oDataPointColumnSet.columns.push(oColumnClone);
|
|
567
653
|
break;
|
|
568
654
|
default:
|
|
@@ -669,7 +755,7 @@ sap.ui.define([
|
|
|
669
755
|
oAdaptiveCardJSON.body.push(oActionSetClone);
|
|
670
756
|
}
|
|
671
757
|
|
|
672
|
-
//
|
|
758
|
+
//console.log(oAdaptiveCardJSON);
|
|
673
759
|
return oAdaptiveCardJSON;
|
|
674
760
|
};
|
|
675
761
|
|
|
@@ -54,6 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
"sap/suite/ui/generic/template/lib/insights/InsightsFECardProvider",
|
|
55
55
|
"sap/ui/core/service/ServiceFactoryRegistry",
|
|
56
56
|
"sap/ui/VersionInfo",
|
|
57
|
+
"sap/m/IllustratedMessageType",
|
|
57
58
|
"sap/suite/ui/generic/template/js/RuntimeFormatters" // just to make sure that this class is loaded
|
|
58
59
|
], function(
|
|
59
60
|
extend,
|
|
@@ -88,7 +89,8 @@ sap.ui.define([
|
|
|
88
89
|
CardHelper,
|
|
89
90
|
InsightsFECardProvider,
|
|
90
91
|
ServiceFactoryRegistry,
|
|
91
|
-
VersionInfo
|
|
92
|
+
VersionInfo,
|
|
93
|
+
IllustratedMessageType) {
|
|
92
94
|
"use strict";
|
|
93
95
|
var sClassName = "lib.AppComponent";
|
|
94
96
|
|
|
@@ -464,7 +466,7 @@ sap.ui.define([
|
|
|
464
466
|
oNavigationController.navigateToMessagePage({
|
|
465
467
|
title: getText("ST_GENERIC_ERROR_TITLE"),
|
|
466
468
|
text: getText("ST_GENERIC_ERROR_SYSTEM_UNAVAILABLE"),
|
|
467
|
-
|
|
469
|
+
messageType: IllustratedMessageType.UnableToLoad,
|
|
468
470
|
description: getText("ST_GENERIC_ERROR_SYSTEM_UNAVAILABLE_DESC")
|
|
469
471
|
});
|
|
470
472
|
/* When the application's OData service's metadata document
|
|
@@ -919,7 +921,7 @@ sap.ui.define([
|
|
|
919
921
|
* @extends sap.ui.core.UIComponent
|
|
920
922
|
* @abstract
|
|
921
923
|
* @author SAP SE
|
|
922
|
-
* @version 1.
|
|
924
|
+
* @version 1.125.0
|
|
923
925
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
924
926
|
*/
|
|
925
927
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -799,7 +799,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
function fnPreloadComponent(sRouteName) {
|
|
802
|
-
oTemplateContract.oNavigationControllerProxy.preloadComponent(sRouteName);
|
|
802
|
+
return oTemplateContract.oNavigationControllerProxy.preloadComponent(sRouteName);
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
oTemplateContract.oApplicationProxy = { // inject own api for AppComponent into the Template Contract. Other classes (NavigationController, BusyHelper) will call these functions accordingly.
|
|
@@ -950,7 +950,13 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
950
950
|
}
|
|
951
951
|
)
|
|
952
952
|
);
|
|
953
|
-
|
|
953
|
+
|
|
954
|
+
// Load main object page (if not already done), as we will navigate there
|
|
955
|
+
// For sub-object pages this is not necessarily the case
|
|
956
|
+
var oPreloadComponentPromise = iViewLevel === 0 ? oServices.oApplication.preloadComponent(sEntitySet) : Promise.resolve();
|
|
957
|
+
|
|
958
|
+
Promise.all([oCreatePromise, oPreloadComponentPromise]).then(function (aResults) {
|
|
959
|
+
var oContext = aResults[0];
|
|
954
960
|
oServices.oApplication.markCurrentDraftAsModified();
|
|
955
961
|
var aKeys = oComponentUtils.getCurrentKeys();
|
|
956
962
|
aKeys.push(oDataModelHelper.analyseContext(oContext).key);
|
|
@@ -958,10 +964,6 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
958
964
|
oServices.oApplication.registerContext(oContext, iLevel, sEntitySet, aKeys);
|
|
959
965
|
fnResolve(oContext);
|
|
960
966
|
});
|
|
961
|
-
|
|
962
|
-
if (iViewLevel === 0){ // Load main object page (if not already done), as we will navigate there
|
|
963
|
-
oServices.oApplication.preloadComponent(sEntitySet); // For subobject pages this is not necessarily the case
|
|
964
|
-
}
|
|
965
967
|
});
|
|
966
968
|
});
|
|
967
969
|
}
|
|
@@ -1350,6 +1350,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1350
1350
|
var oSmartTable = oEvent.getSource();
|
|
1351
1351
|
var oTable = oSmartTable.getTable();
|
|
1352
1352
|
var bIsMTable = controlHelper.isMTable(oTable);
|
|
1353
|
+
var bIsTreeTable = controlHelper.isTreeTable(oTable);
|
|
1353
1354
|
var oColumns = oTable.getColumns();
|
|
1354
1355
|
|
|
1355
1356
|
if (!oCallbacks || (oCallbacks && oCallbacks.isPopinWithoutHeader) && bIsMTable) { //Setting popin display without header
|
|
@@ -1374,6 +1375,12 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1374
1375
|
};
|
|
1375
1376
|
}
|
|
1376
1377
|
|
|
1378
|
+
//For tree table, set the parameters "rootLevel" and "numberOfExpandedLevels"
|
|
1379
|
+
if (bIsTreeTable) {
|
|
1380
|
+
oBindingParams.parameters.rootLevel = oBindingParams.parameters.rootLevel || 0;
|
|
1381
|
+
oBindingParams.parameters.numberOfExpandedLevels = oBindingParams.parameters.numberOfExpandedLevels || oCallbacks.numberOfExpandedLevels || 0;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1377
1384
|
//Get all the CustomData associated with Smarttable and create an object which is a key value pair of each custom data
|
|
1378
1385
|
var aCustomData = oSmartTable.getCustomData();
|
|
1379
1386
|
var oCustomData = {};
|
|
@@ -1942,7 +1949,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1942
1949
|
oFileUploader.checkFileReadable().then(function() {
|
|
1943
1950
|
oFileUploader.upload();
|
|
1944
1951
|
}, function(error) {
|
|
1945
|
-
|
|
1952
|
+
var sMessageText = oCommonUtils.getText("ST_STREAM_FILE_UNREADABLE");
|
|
1953
|
+
oServices.oApplication.showMessageToast(sMessageText);
|
|
1946
1954
|
}).then(function() {
|
|
1947
1955
|
oFileUploader.clear();
|
|
1948
1956
|
});
|
|
@@ -1998,6 +2006,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1998
2006
|
}
|
|
1999
2007
|
}
|
|
2000
2008
|
|
|
2009
|
+
function handleTypeMismatch(){
|
|
2010
|
+
var sMessageText = oCommonUtils.getText("ST_STREAM_TYPE_MISMATCH");
|
|
2011
|
+
oServices.oApplication.showMessageToast(sMessageText);
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2001
2014
|
function removeStream(oEvent){
|
|
2002
2015
|
var oSource = oEvent.getSource();
|
|
2003
2016
|
var aPath = [oController.getView().getBindingContext().sPath + "/$value"];
|
|
@@ -2683,6 +2696,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2683
2696
|
uploadStream: uploadStream,
|
|
2684
2697
|
removeStream: removeStream,
|
|
2685
2698
|
handleUploadComplete: handleUploadComplete,
|
|
2699
|
+
handleTypeMismatch: handleTypeMismatch,
|
|
2686
2700
|
evaluateParameters: fnEvaluateParameters,
|
|
2687
2701
|
onBeforeExport: fnOnBeforeExport,
|
|
2688
2702
|
handleSideEffectForField: fnHandleSideEffectForField,
|
|
@@ -63,7 +63,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
function preloadComponent(sRouteName) {
|
|
66
|
-
oComponentRegistryEntry.oTemplateContract.oNavigationControllerProxy.preloadComponent(sRouteName);
|
|
66
|
+
return oComponentRegistryEntry.oTemplateContract.oNavigationControllerProxy.preloadComponent(sRouteName);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
function getTemplatePrivateGlobalModel() {
|
|
@@ -97,18 +97,22 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
97
97
|
// not yet created then we preload the component and once view registered, resolve to an object holding the Main Components's getText and getRootExpand methods
|
|
98
98
|
function getMainComponentUtils() {
|
|
99
99
|
var oMainTreeNode = oComponentRegistryEntry.oTemplateContract.oApplicationProxy.getAncestralNode(oTreeNode, 1);
|
|
100
|
+
var oPreloadComponentPromise = Promise.resolve();
|
|
100
101
|
if (!oMainTreeNode.componentId) { // ensure that main component is being instantiated if not already done
|
|
101
|
-
preloadComponent(oMainTreeNode.sRouteName);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
return
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
oPreloadComponentPromise = preloadComponent(oMainTreeNode.sRouteName);
|
|
103
|
+
}
|
|
104
|
+
var oMainRegistryEntry;
|
|
105
|
+
return oPreloadComponentPromise.then(function () {
|
|
106
|
+
return oMainTreeNode.componentCreated;
|
|
107
|
+
}).then(function (oComponent) {
|
|
108
|
+
oMainRegistryEntry = oComponentRegistryEntry.oTemplateContract.componentRegistry[oComponent.getId()];
|
|
109
|
+
return oMainRegistryEntry.viewRegistered;
|
|
110
|
+
}).then(function () {
|
|
111
|
+
return {
|
|
112
|
+
getText: oMainRegistryEntry.oControllerUtils.oCommonUtils.getText,
|
|
113
|
+
getRootExpand: oMainRegistryEntry.oControllerUtils.oComponentUtils.getRootExpand,
|
|
114
|
+
entitySet: oMainTreeNode.entitySet
|
|
115
|
+
};
|
|
112
116
|
});
|
|
113
117
|
}
|
|
114
118
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
sap.ui.define([
|
|
2
|
-
"sap/suite/ui/commons/collaboration/ServiceContainer"
|
|
3
|
-
|
|
2
|
+
"sap/suite/ui/commons/collaboration/ServiceContainer",
|
|
3
|
+
"sap/ui/performance/trace/FESRHelper",
|
|
4
|
+
"sap/suite/ui/generic/template/genericUtilities/controlHelper"
|
|
5
|
+
], function(ServiceContainer, FESRHelper, controlHelper) {
|
|
4
6
|
"use strict";
|
|
5
7
|
|
|
6
8
|
/**
|
|
@@ -40,7 +42,8 @@ sap.ui.define([
|
|
|
40
42
|
}
|
|
41
43
|
},
|
|
42
44
|
onTeamsCollabOptionPress: function(oEvent) {
|
|
43
|
-
var
|
|
45
|
+
var oButton = oEvent.getSource();
|
|
46
|
+
var sType = oButton.data("type");
|
|
44
47
|
var oSelectedOption = aTeamsCollabOptions.find(function(option) {
|
|
45
48
|
return option.key === sType;
|
|
46
49
|
});
|
|
@@ -49,6 +52,21 @@ sap.ui.define([
|
|
|
49
52
|
afterClose: function(oEvent) {
|
|
50
53
|
var oPopover = oEvent.getSource();
|
|
51
54
|
oPopover.close();
|
|
55
|
+
},
|
|
56
|
+
afterOpen: function (oEvent) {
|
|
57
|
+
var oPopover = oEvent.getSource();
|
|
58
|
+
var oToolbar = oPopover.getContent()[0].getItems()[1].getItems()[1];
|
|
59
|
+
oToolbar.getContent().forEach(function(oItem){
|
|
60
|
+
if (controlHelper.isButton(oItem)) {
|
|
61
|
+
var sType = oItem.data("type");
|
|
62
|
+
if (sType) {
|
|
63
|
+
var oSelectedOption = aTeamsCollabOptions.find(function(option) {
|
|
64
|
+
return option.key === sType;
|
|
65
|
+
});
|
|
66
|
+
FESRHelper.setSemanticStepname(oItem, "press", oSelectedOption.fesrStepName);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
52
70
|
}
|
|
53
71
|
}, "contact").then(function (oContactPopover) {
|
|
54
72
|
var oContactModel = oContactPopover.getModel("contact");
|
|
@@ -281,13 +281,17 @@ sap.ui.define(["sap/ui/base/Object", "sap/f/FlexibleColumnLayoutSemanticHelper",
|
|
|
281
281
|
function fnHandleBeforeRouteMatched(oCurrentIdentity){
|
|
282
282
|
var sCurLayout = getFCLLayoutFromIdentity(oCurrentIdentity);
|
|
283
283
|
var bIsFullScreen = isFullscreenLayout(sCurLayout);
|
|
284
|
+
var aPromises = [];
|
|
285
|
+
var oHostViewPreparationPromise = null;
|
|
284
286
|
for (var oPredecessorNode = oCurrentIdentity.treeNode; oPredecessorNode.fCLLevel === 1 || oPredecessorNode.fCLLevel === 2; ){
|
|
285
287
|
oPredecessorNode = oTemplateContract.mRoutingTree[oPredecessorNode.parentRoute];
|
|
286
|
-
oNavigationControllerProxy.prepareHostView(oPredecessorNode, false, bIsFullScreen);
|
|
288
|
+
oHostViewPreparationPromise = oNavigationControllerProxy.prepareHostView(oPredecessorNode, false, bIsFullScreen);
|
|
289
|
+
aPromises.push(oHostViewPreparationPromise);
|
|
287
290
|
}
|
|
288
291
|
if (bLoadListAndFirstEntryOnStartup && oCurrentIdentity.treeNode.level === 0){ // master detail
|
|
289
292
|
var oSuccessorNode = oTemplateContract.mRoutingTree[sDetailRoute4MD];
|
|
290
|
-
oNavigationControllerProxy.prepareHostView(oSuccessorNode);
|
|
293
|
+
oHostViewPreparationPromise = oNavigationControllerProxy.prepareHostView(oSuccessorNode);
|
|
294
|
+
aPromises.push(oHostViewPreparationPromise);
|
|
291
295
|
}
|
|
292
296
|
var fnImpl = function(){ // implementation on what needs to be done. Relies on oFlexibleColumnLayoutSemanticHelper being ready to use
|
|
293
297
|
if (isMultipleColumn(oCurrentIdentity.treeNode)){
|
|
@@ -334,8 +338,11 @@ sap.ui.define(["sap/ui/base/Object", "sap/f/FlexibleColumnLayoutSemanticHelper",
|
|
|
334
338
|
fnImpl();
|
|
335
339
|
return Promise.resolve();
|
|
336
340
|
}
|
|
337
|
-
// During startup wait with execution of fnImpl until
|
|
338
|
-
|
|
341
|
+
// During startup wait with execution of fnImpl until all the promises are resolved
|
|
342
|
+
var oSemanticHelperReadyPromise = oFlexibleColumnLayoutSemanticHelper.whenReady();
|
|
343
|
+
aPromises.push(oSemanticHelperReadyPromise);
|
|
344
|
+
|
|
345
|
+
return Promise.all(aPromises).then(function(){
|
|
339
346
|
bSemanticHelperReady = true;
|
|
340
347
|
fnImpl();
|
|
341
348
|
});
|
|
@@ -7,8 +7,9 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/generic/app/util/MessageUtil",
|
|
8
8
|
"sap/suite/ui/generic/template/genericUtilities/controlHelper",
|
|
9
9
|
"sap/suite/ui/generic/template/genericUtilities/FeLogger",
|
|
10
|
-
"sap/suite/ui/generic/template/lib/TemplateComponent"
|
|
11
|
-
|
|
10
|
+
"sap/suite/ui/generic/template/lib/TemplateComponent",
|
|
11
|
+
"sap/m/IllustratedMessageType"
|
|
12
|
+
], function(Event, SapCoreLibrary, IconPool, MessageToast, GenericMessageUtil, controlHelper, FeLogger, TemplateComponent, IllustratedMessageType) {
|
|
12
13
|
"use strict";
|
|
13
14
|
|
|
14
15
|
// shortcut for sap.ui.core.ValueState
|
|
@@ -195,7 +196,7 @@ sap.ui.define([
|
|
|
195
196
|
title: oResourceBundle.getText("ST_GENERIC_ERROR_TITLE"),
|
|
196
197
|
text: sMessageText,
|
|
197
198
|
description: sMessageDescription,
|
|
198
|
-
|
|
199
|
+
messageType: IllustratedMessageType.UnableToLoad,
|
|
199
200
|
viewLevel: iViewLevel
|
|
200
201
|
});
|
|
201
202
|
} else if (!oErrorResponse.containsTransientMessage && !bShowMessagePopover){
|