@sapui5/sap.suite.ui.generic.template 1.131.1 → 1.133.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/Component.js +0 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartFilterBarExt.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartKpiTag.js +37 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroBar.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +26 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroDonut.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroLine.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +46 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +42 -17
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +15 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saptrc.properties +105 -105
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +3 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +17 -6
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +46 -22
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +18 -2
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +1 -4
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saptrc.properties +58 -58
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +2 -4
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActionButtons.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartList.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +13 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +117 -30
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +63 -10
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +34 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +46 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +22 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +29 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +37 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ar.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_bg.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ca.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cs.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cy.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_da.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_el.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_GB.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saprigi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saptrc.properties +95 -95
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_es_MX.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_et.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_fr_CA.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_hu.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_id.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_it.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_iw.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ja.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_kk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ko.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_lv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ms.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_nl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_no.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt_PT.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ro.properties +26 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_ru.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sk.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sv.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_th.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_tr.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_uk.properties +27 -7
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_vi.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_CN.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_zh_TW.properties +25 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderImage.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/QuickCreate/i18n/i18n_en_US_saptrc.properties +14 -14
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/i18n/i18n_en_US_saptrc.properties +2 -2
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +198 -193
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +215 -0
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +340 -0
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +43 -19
- package/src/sap/suite/ui/generic/template/designtime/floorplans/AnalyticalListPage.designtime.js +18 -18
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ListReport.designtime.js +19 -16
- package/src/sap/suite/ui/generic/template/designtime/floorplans/ObjectPage.designtime.js +10 -7
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +52 -37
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +112 -23
- package/src/sap/suite/ui/generic/template/detailTemplates/i18n/i18n_en_US_saptrc.properties +6 -6
- package/src/sap/suite/ui/generic/template/fragments/BreakoutActions.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingActions.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingButton.fragment.xml +18 -20
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +0 -6
- package/src/sap/suite/ui/generic/template/fragments/GlobalActions.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +7 -6
- package/src/sap/suite/ui/generic/template/fragments/HeaderAddress.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderContactWithDetailsPopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderForm.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +14 -7
- package/src/sap/suite/ui/generic/template/fragments/HeaderPlainText.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderRatingIndicator.fragment.xml +5 -7
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/ProgressIndicator.fragment.xml +2 -2
- 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 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/fragments/SmartMicroChart.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +2 -5
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +9 -7
- package/src/sap/suite/ui/generic/template/fragments/TableColumnListItem.fragment.xml +2 -5
- package/src/sap/suite/ui/generic/template/fragments/ToolbarButton.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +10 -9
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +70 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/polyFill.js +14 -0
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +67 -30
- package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +3 -0
- package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +25 -14
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +78 -22
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +16 -225
- package/src/sap/suite/ui/generic/template/lib/CRUDActionHandler.js +12 -3
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +24 -5
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +78 -48
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +3 -3
- package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +39 -23
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +13 -5
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHelper.js +168 -0
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +6 -0
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/RetryAfterHandler.js +2 -3
- package/src/sap/suite/ui/generic/template/lib/ShellPersonalizationService.js +137 -0
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +56 -1
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +26 -7
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +91 -36
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +30 -35
- package/src/sap/suite/ui/generic/template/lib/deletionHelper.js +10 -2
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +9 -15
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +7 -13
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +7 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +183 -149
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +6 -12
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +5 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +5 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +3 -9
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +27 -11
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +59 -38
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +93 -1
- package/src/sap/suite/ui/generic/template/library.js +7 -3
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartActions.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/listTemplates/i18n/i18n_en_US_saptrc.properties +1 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +4 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/MergerUtil.js +27 -1
- package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/DiagnosticsTool.js +15 -3
- package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/view/DiagnosticsTool.view.xml +0 -24
- package/src/sap/suite/ui/generic/template/support/lib/CommonChecks.js +11 -19
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcb/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcw/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroup.fragment.xml +0 -36
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +0 -28
- package/src/sap/suite/ui/generic/template/js/formatters/formatImageUrl.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorFooterText.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorSubTitle.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/setInfoHighlight.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/setRowNavigated.js +0 -26
|
@@ -11,16 +11,18 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
11
11
|
"sap/ui/core/library",
|
|
12
12
|
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
13
13
|
"sap/ui/base/ManagedObject",
|
|
14
|
-
"sap/suite/ui/generic/template/lib/SideEffectUtil",
|
|
15
14
|
"sap/base/util/isEmptyObject",
|
|
16
15
|
"sap/suite/ui/generic/template/js/RuntimeFormatters"// just to make sure that it is loaded
|
|
17
16
|
], function (AnnotationHelperModel, AnnotationHelperModelBasics, SmartField, FeLogger, formatMessage, deepExtend, StableIdHelper, utils, Device,
|
|
18
|
-
SapMLibrary, SapCoreLibrary, metadataAnalyser, ManagedObject,
|
|
17
|
+
SapMLibrary, SapCoreLibrary, metadataAnalyser, ManagedObject, isEmptyObject) {
|
|
19
18
|
"use strict";
|
|
20
19
|
|
|
21
20
|
// shortcut for sap.ui.core.ValueState
|
|
22
21
|
var ValueState = SapCoreLibrary.ValueState;
|
|
23
22
|
|
|
23
|
+
// shortcut for sap.m.OverflowToolbarPriority
|
|
24
|
+
var OverflowToolbarPriority = SapMLibrary.OverflowToolbarPriority;
|
|
25
|
+
|
|
24
26
|
var oLogger = new FeLogger("js.AnnotationHelper").getLogger();
|
|
25
27
|
|
|
26
28
|
function fnGetFallbackId(oFacet) {
|
|
@@ -351,20 +353,20 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
351
353
|
return false;
|
|
352
354
|
},
|
|
353
355
|
|
|
354
|
-
getValueListReadOnly: function (oInterface,
|
|
356
|
+
getValueListReadOnly: function (oInterface, vEntityType, oDataField) {
|
|
355
357
|
var oMetaModel = oInterface.getInterface(1).getModel();
|
|
356
358
|
var sPath = oInterface.getInterface(1).getPath() + '/Value';
|
|
357
359
|
var sTargetPropertyPath = AnnotationHelperModel.resolvePath(oMetaModel.getContext(sPath));
|
|
358
|
-
var oDataFieldValue = oMetaModel.getObject(sTargetPropertyPath);
|
|
359
|
-
if (oDataFieldValue['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
360
|
+
var oDataFieldValue = sTargetPropertyPath && oMetaModel.getObject(sTargetPropertyPath);
|
|
361
|
+
if (oDataFieldValue?.['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
360
362
|
// case 1 - text arrangement defined at property level
|
|
361
363
|
return oDataFieldValue['com.sap.vocabularies.UI.v1.TextArrangement'].EnumMember !== 'com.sap.vocabularies.UI.v1.TextArrangementType/TextSeparate';
|
|
362
|
-
} else if (oDataFieldValue['com.sap.vocabularies.Common.v1.Text']) {
|
|
364
|
+
} else if (oDataFieldValue?.['com.sap.vocabularies.Common.v1.Text']) {
|
|
363
365
|
// case 2 - text arrangement defined for property via sap:text
|
|
364
366
|
return true;
|
|
365
367
|
} else {
|
|
366
368
|
// case 3 - text arrangement defined at entity level
|
|
367
|
-
var oEntityType = oMetaModel.getODataEntityType(
|
|
369
|
+
var oEntityType = typeof vEntityType === "object" ? vEntityType : oMetaModel.getODataEntityType(vEntityType); // vEntityType can be object or string.
|
|
368
370
|
if (oEntityType['com.sap.vocabularies.UI.v1.TextArrangement']) {
|
|
369
371
|
return oEntityType['com.sap.vocabularies.UI.v1.TextArrangement'].EnumMember !== 'com.sap.vocabularies.UI.v1.TextArrangementType/TextSeparate';
|
|
370
372
|
}
|
|
@@ -385,9 +387,6 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
385
387
|
getCustomDataForContactPopup: function (oContactDetails) {
|
|
386
388
|
return ((JSON.stringify(oContactDetails)).replace(/\}/g, "\\}").replace(/\{/g, "\\{")); //check bindingParser.escape
|
|
387
389
|
},
|
|
388
|
-
getPropsForLinkFields: function(oEntitySet, oTarget, sFieldName) {
|
|
389
|
-
return SideEffectUtil.getPropsForLinkFields(oEntitySet, oTarget, sFieldName);
|
|
390
|
-
},
|
|
391
390
|
checkIsEmailAddress: function (oInterface, sEntityType, oDataField) {
|
|
392
391
|
var oMetaModel = oInterface.getInterface(1).getModel();
|
|
393
392
|
var sPath = oInterface.getInterface(1).getPath() + '/Value';
|
|
@@ -1093,21 +1092,21 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1093
1092
|
// builds the expression for the Rating Indicator Subtitle
|
|
1094
1093
|
buildRatingIndicatorSubtitleExpression: function (mSampleSize) {
|
|
1095
1094
|
if (mSampleSize) {
|
|
1096
|
-
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: 'formatRatingIndicatorSubTitle'}";
|
|
1095
|
+
return "{parts: [{path: '" + mSampleSize.Path + "'}], formatter: 'RuntimeFormatters.formatRatingIndicatorSubTitle.bind($control)'}";
|
|
1097
1096
|
}
|
|
1098
1097
|
},
|
|
1099
1098
|
|
|
1100
1099
|
// builds the expression for the Rating Indicator footer
|
|
1101
1100
|
buildRatingIndicatorFooterExpression: function (mValue, mTargetValue) {
|
|
1102
1101
|
if (mTargetValue) {
|
|
1103
|
-
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1102
|
+
return "{parts: [{path: '" + mValue.Path + "'}, {path: '" + mTargetValue.Path + "'}], formatter: 'RuntimeFormatters.formatRatingIndicatorFooterText.bind($control)'}";
|
|
1104
1103
|
}
|
|
1105
|
-
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'formatRatingIndicatorFooterText'}";
|
|
1104
|
+
return "{parts: [{path: '" + mValue.Path + "'}], formatter: 'RuntimeFormatters.formatRatingIndicatorFooterText.bind($control)'}";
|
|
1106
1105
|
},
|
|
1107
1106
|
|
|
1108
1107
|
// builds the expression for the Rating Indicator aggregate Count
|
|
1109
1108
|
buildRatingIndicatorAggregateCountExpression: function (mValue) {
|
|
1110
|
-
return "{parts: [{path: '" + mValue
|
|
1109
|
+
return "{parts: [{path: '" + mValue?.Path + "'}], formatter: 'RuntimeFormatters.formatRatingIndicatorAggregateCount.bind($control)'}";
|
|
1111
1110
|
},
|
|
1112
1111
|
|
|
1113
1112
|
getIdForMoreBlockContent: function (oFacet) {
|
|
@@ -1231,7 +1230,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1231
1230
|
if (oImageUrl.Path) {
|
|
1232
1231
|
var sPrefix = "{parts: [{path: '" + oImageUrl.Path + "'}, {value: '" + sAppComponentName + "'}";
|
|
1233
1232
|
var sInfix = bSuppressIcons ? ", {value: true}" : "";
|
|
1234
|
-
var sPostfix = "], formatter: 'formatImageUrl'}";
|
|
1233
|
+
var sPostfix = "], formatter: 'RuntimeFormatters.formatImageUrl.bind($control)'}";
|
|
1235
1234
|
return sPrefix + sInfix + sPostfix;
|
|
1236
1235
|
}
|
|
1237
1236
|
// Apply
|
|
@@ -1265,7 +1264,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1265
1264
|
},
|
|
1266
1265
|
|
|
1267
1266
|
formatHeaderImage: function (oInterface, oHeaderInfo, sAppComponentName) {
|
|
1268
|
-
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo
|
|
1267
|
+
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo?.ImageUrl, oHeaderInfo?.TypeImageUrl, sAppComponentName, true);
|
|
1269
1268
|
},
|
|
1270
1269
|
|
|
1271
1270
|
getPathWithExpandFromHeader: function (oInterface, oEntitySet, sNavigationProperty, oInputImageUrl, oTypeImageUrl) {
|
|
@@ -2639,7 +2638,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2639
2638
|
getColumnListItemType: function (oListEntitySet, aSubPages, oManifest, oTreeNode, bIsDraftEnabled, sAnnotationPath) {
|
|
2640
2639
|
var bIsRoot = !oTreeNode.level; // information, whether we are on the root page
|
|
2641
2640
|
// check for special feature: navigation from list report to object page via navigationProperty
|
|
2642
|
-
var bIsListWithNavigationProperty = bIsRoot && aSubPages.some(function (oSubPage) {
|
|
2641
|
+
var bIsListWithNavigationProperty = bIsRoot && aSubPages && aSubPages.some(function (oSubPage) {
|
|
2643
2642
|
return oSubPage.navigationProperty;
|
|
2644
2643
|
});
|
|
2645
2644
|
var bAllowsNavigationInEditMode = bIsDraftEnabled || bIsRoot; // in non-draft mode forward navigation is disabled in edit mode
|
|
@@ -2945,19 +2944,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2945
2944
|
return sTextArrangement;
|
|
2946
2945
|
},
|
|
2947
2946
|
|
|
2948
|
-
getTextArrangementForSmartControl: function (oInterface, oField,
|
|
2947
|
+
getTextArrangementForSmartControl: function (oInterface, oField, oEntitySet) {
|
|
2949
2948
|
oInterface = oInterface.getInterface(0);
|
|
2950
|
-
var oEntityType;
|
|
2951
2949
|
var oMetaModel = oInterface.getModel();
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
2955
|
-
} else {
|
|
2956
|
-
oEntityType = oMetaModel.getODataEntityType(refEntitySet.entityType);
|
|
2957
|
-
}
|
|
2958
|
-
|
|
2950
|
+
var oEntityType = oMetaModel.getODataEntityType(oEntitySet.entityType);
|
|
2951
|
+
|
|
2959
2952
|
var sTextArrangement = "descriptionAndId";
|
|
2960
|
-
if (oMetaModel.getODataProperty(oEntityType, oField.Value.Path)) {
|
|
2953
|
+
if (oField?.Value?.Path && oMetaModel.getODataProperty(oEntityType, oField.Value.Path)) {
|
|
2961
2954
|
var oPropertyTextModel = oMetaModel.getODataProperty(oEntityType, oField.Value.Path)["com.sap.vocabularies.Common.v1.Text"];
|
|
2962
2955
|
// 1. check TextArrangement definition for property
|
|
2963
2956
|
if (oPropertyTextModel && oPropertyTextModel["com.sap.vocabularies.UI.v1.TextArrangement"] && oPropertyTextModel["com.sap.vocabularies.UI.v1.TextArrangement"].EnumMember) {
|
|
@@ -3267,7 +3260,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3267
3260
|
|
|
3268
3261
|
sParts = buildPart(oInterface, dataPoint.Value) + ", " + buildPart(oInterface, dataPoint.TargetValue) + ", " + buildPart(oInterface, mUoM);
|
|
3269
3262
|
|
|
3270
|
-
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: 'formatDisplayValueForProgressIndicator' }";
|
|
3263
|
+
var sDisplayValueExpression = "{ parts: [" + sParts + "], formatter: 'RuntimeFormatters.formatDisplayValueForProgressIndicator.bind($control)' }";
|
|
3271
3264
|
return sDisplayValueExpression;
|
|
3272
3265
|
},
|
|
3273
3266
|
|
|
@@ -3740,7 +3733,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3740
3733
|
// More precisely: {path: '_templPrivMessage>/'} is included to listen to changes of the Message model
|
|
3741
3734
|
// {path: ''} is included to listen to change of the row context. This is in particular important for scrolling in grid tables (recommendation from ui5).
|
|
3742
3735
|
// 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
|
|
3743
|
-
return "{parts: [" + sDraftParts + ", " + sMessageParts + sCriticalityPiece + ", {path: ''}], formatter: 'setInfoHighlight'}";
|
|
3736
|
+
return "{parts: [" + sDraftParts + ", " + sMessageParts + sCriticalityPiece + ", {path: ''}], formatter: 'RuntimeFormatters.setInfoHighlight.bind($control)'}";
|
|
3744
3737
|
},
|
|
3745
3738
|
|
|
3746
3739
|
getDataFieldLabel: function (oInterface, oDataField) {
|
|
@@ -3892,12 +3885,14 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3892
3885
|
break;
|
|
3893
3886
|
}
|
|
3894
3887
|
}
|
|
3888
|
+
|
|
3889
|
+
aConnectedDataFields = aConnectedDataFields || [];
|
|
3895
3890
|
for (var j = 0; j < aConnectedDataFields.length; j++) {
|
|
3896
3891
|
if (aConnectedDataFields[j].RecordType === "com.sap.vocabularies.UI.v1.DataField" && aConnectedDataFields[j].Value.Path === sDescriptionField) {
|
|
3897
3892
|
return "idOnly";
|
|
3898
3893
|
}
|
|
3899
3894
|
}
|
|
3900
|
-
sTextArrangement = oAnnotationHelper.getTextArrangementForSmartControl(oInterface, oField,
|
|
3895
|
+
sTextArrangement = oAnnotationHelper.getTextArrangementForSmartControl(oInterface, oField, oEntitySet);
|
|
3901
3896
|
return sTextArrangement;
|
|
3902
3897
|
},
|
|
3903
3898
|
|
|
@@ -4380,6 +4375,48 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4380
4375
|
var sNavigationPath = AnnotationHelperModel.getNavigationPath(oInterface, vRawValue);
|
|
4381
4376
|
var sNavigationPropertyPath = sNavigationPath.replace("{", "").replace("}", "");
|
|
4382
4377
|
return sNavigationPropertyPath;
|
|
4378
|
+
},
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* Derives the sap.m.OverflowToolbarPriority from the given importance.
|
|
4382
|
+
* If the input is High or Medium
|
|
4383
|
+
* - Returns OverflowToolbarPriority.High
|
|
4384
|
+
* If the input is Low
|
|
4385
|
+
* - Returns OverflowToolbarPriority.Low
|
|
4386
|
+
* Otherwise
|
|
4387
|
+
* - Returns the default value OverflowToolbarPriority.High
|
|
4388
|
+
*
|
|
4389
|
+
* @param {string} sImportance Importance from annotation (for annotated actions) or manifest (breakout actions).
|
|
4390
|
+
* The possible importance values
|
|
4391
|
+
* - High
|
|
4392
|
+
* - Medium
|
|
4393
|
+
* - Low
|
|
4394
|
+
* - com.sap.vocabularies.UI.v1.ImportanceType/High
|
|
4395
|
+
* - com.sap.vocabularies.UI.v1.ImportanceType/Medium
|
|
4396
|
+
* - com.sap.vocabularies.UI.v1.ImportanceType/Low
|
|
4397
|
+
* @returns {sap.m.OverflowToolbarPriority} The priority
|
|
4398
|
+
*/
|
|
4399
|
+
getToolbarButtonPriorityFromImportance: function (sImportance) {
|
|
4400
|
+
var sPriority = "";
|
|
4401
|
+
// If importance is in "com.sap.vocabularies.UI.v1.ImportanceType/High" format, omit the prefix and just keep "High"
|
|
4402
|
+
if (sImportance && sImportance.includes("/")) {
|
|
4403
|
+
sImportance = sImportance.split("/")[1];
|
|
4404
|
+
}
|
|
4405
|
+
// The enum sap.m.OverflowToolbarPriority only has the values "High", "Low" and it doesn't have "Medium".
|
|
4406
|
+
// So, if the input is "Medium", return the priority "High" (The default priority)
|
|
4407
|
+
switch (sImportance) {
|
|
4408
|
+
case "High":
|
|
4409
|
+
case "Medium":
|
|
4410
|
+
sPriority = OverflowToolbarPriority.High;
|
|
4411
|
+
break;
|
|
4412
|
+
case "Low":
|
|
4413
|
+
sPriority = OverflowToolbarPriority.Low;
|
|
4414
|
+
break;
|
|
4415
|
+
default:
|
|
4416
|
+
sPriority = OverflowToolbarPriority.High;
|
|
4417
|
+
break;
|
|
4418
|
+
}
|
|
4419
|
+
return sPriority;
|
|
4383
4420
|
}
|
|
4384
4421
|
};
|
|
4385
4422
|
oAnnotationHelper.getBlockForEditableHeaderFacet.requiresIContext = true;
|
|
@@ -114,6 +114,9 @@ sap.ui.define([
|
|
|
114
114
|
getAcceptableMimeTypes: function(oInterface, oEntitySet){
|
|
115
115
|
var oEntityType = oInterface.getModel(0).getODataEntityType(oEntitySet.entityType);
|
|
116
116
|
var aAcceptableMediaTypes = oEntityType["Org.OData.Core.V1.AcceptableMediaTypes"];
|
|
117
|
+
if (!aAcceptableMediaTypes) {
|
|
118
|
+
return "";
|
|
119
|
+
}
|
|
117
120
|
var sAcceptableMimeType = new String();
|
|
118
121
|
for (var i = 0; i < aAcceptableMediaTypes.length; i++) {
|
|
119
122
|
sAcceptableMimeType = sAcceptableMimeType.concat(aAcceptableMediaTypes[i].String).concat(",");
|
package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
/*global Promise */
|
|
2
2
|
sap.ui.define([
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
"sap/ui/base/Object",
|
|
4
|
+
"sap/ui/core/UIComponent",
|
|
5
|
+
"sap/ui/model/resource/ResourceModel",
|
|
6
|
+
"sap/ui/core/mvc/ViewType",
|
|
7
|
+
"sap/ui/model/json/JSONModel",
|
|
8
|
+
"sap/ui/generic/app/ApplicationController",
|
|
9
|
+
"sap/suite/ui/generic/template/genericUtilities/FeLogger",
|
|
10
|
+
"sap/base/util/extend",
|
|
11
|
+
"sap/base/util/deepExtend",
|
|
12
|
+
"sap/ui/core/mvc/View",
|
|
13
|
+
"sap/ui/core/Element"
|
|
14
|
+
], function (
|
|
15
|
+
BaseObject,
|
|
16
|
+
UIComponent,
|
|
17
|
+
ResourceModel,
|
|
18
|
+
ViewType,
|
|
19
|
+
JSONModel,
|
|
20
|
+
ApplicationController,
|
|
21
|
+
FeLogger,
|
|
22
|
+
extend,
|
|
23
|
+
deepExtend,
|
|
24
|
+
View,
|
|
25
|
+
Element
|
|
26
|
+
) {
|
|
15
27
|
"use strict";
|
|
16
28
|
|
|
17
29
|
var oLogger = new FeLogger("js.QuickTemplates.QuickTemplateComponentFactory").getLogger();
|
|
18
|
-
var ViewType = coreLibrary.mvc.ViewType;
|
|
19
30
|
|
|
20
31
|
var factory = BaseObject.extend("sap.suite.ui.generic.template.js.QuickTemplates.QuickTemplateComponentFactory");
|
|
21
32
|
|
|
@@ -82,7 +93,7 @@ sap.ui.define([
|
|
|
82
93
|
|
|
83
94
|
var sStableId = fnDetermineStableViewID(this);
|
|
84
95
|
|
|
85
|
-
oView =
|
|
96
|
+
oView = Element.getElementById(sStableId);
|
|
86
97
|
if (oView) {
|
|
87
98
|
oLogger.warning("View with ID: " + sStableId + " already exists - old view is getting destroyed now!");
|
|
88
99
|
try {
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/base/i18n/Formatting",
|
|
3
|
+
"sap/ui/core/Locale",
|
|
4
|
+
"sap/ui/core/format/DateFormat",
|
|
5
|
+
"sap/ui/core/format/NumberFormat",
|
|
6
|
+
"sap/ui/core/message/MessageType",
|
|
7
|
+
"sap/m/RatingIndicator",
|
|
8
|
+
"sap/suite/ui/generic/template/genericUtilities/FeLogger",
|
|
9
|
+
"sap/suite/ui/generic/template/genericUtilities/testableHelper",
|
|
10
|
+
"sap/suite/ui/generic/template/genericUtilities/utils"
|
|
11
|
+
], function (
|
|
12
|
+
Formatting,
|
|
13
|
+
Locale,
|
|
14
|
+
DateFormat,
|
|
15
|
+
NumberFormat,
|
|
16
|
+
MessageType,
|
|
17
|
+
RatingIndicator,
|
|
18
|
+
FeLogger,
|
|
19
|
+
testableHelper,
|
|
20
|
+
utils
|
|
21
|
+
) {
|
|
3
22
|
"use strict";
|
|
4
23
|
|
|
5
24
|
var oLogger = new FeLogger("js.RuntimeFormatters").getLogger();
|
|
@@ -89,6 +108,34 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
89
108
|
return "None";
|
|
90
109
|
}
|
|
91
110
|
|
|
111
|
+
/** Utility methods */
|
|
112
|
+
var oLocale;
|
|
113
|
+
var oCurrencyFormatter;
|
|
114
|
+
var oDateTimeFormatter;
|
|
115
|
+
|
|
116
|
+
function getFormatLocale() {
|
|
117
|
+
if (!oLocale) {
|
|
118
|
+
oLocale = new Locale(Formatting.getLanguageTag());
|
|
119
|
+
}
|
|
120
|
+
return oLocale;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
function getCurrencyFormatter() {
|
|
125
|
+
if (!oCurrencyFormatter) {
|
|
126
|
+
oCurrencyFormatter = NumberFormat.getCurrencyInstance();
|
|
127
|
+
}
|
|
128
|
+
return oCurrencyFormatter;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
function getDateTimeFormatter() {
|
|
133
|
+
if (!oDateTimeFormatter) {
|
|
134
|
+
oDateTimeFormatter = DateFormat.getDateTimeInstance();
|
|
135
|
+
}
|
|
136
|
+
return oDateTimeFormatter;
|
|
137
|
+
}
|
|
138
|
+
|
|
92
139
|
// Expose selected private static functions to unit tests
|
|
93
140
|
/* eslint-disable */
|
|
94
141
|
var getLineItemQualifier = testableHelper.testableStatic(getLineItemQualifier, "RuntimeFormatters_getLineItemQualifier");
|
|
@@ -167,29 +214,25 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
167
214
|
// ii. if the Property TargetValue is not a Path (i.e. 'Decimal') then we get the value from the control's Custom Data
|
|
168
215
|
// iii. if neither i. or ii. apply then we use the default max value for the sap.m.RatingIndicator control
|
|
169
216
|
formatRatingIndicatorFooterText: function (value, targetValue) {
|
|
170
|
-
if (value) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
}
|
|
217
|
+
if (!value) {
|
|
218
|
+
return "";
|
|
219
|
+
}
|
|
220
|
+
var oResBundle = this.getModel("i18n").getResourceBundle();
|
|
221
|
+
targetValue = targetValue
|
|
222
|
+
|| this.data("Footer")
|
|
223
|
+
|| RatingIndicator.getMetadata().getPropertyDefaults().maxValue;
|
|
224
|
+
|
|
225
|
+
return oResBundle.getText("RATING_INDICATOR_FOOTER", [value, targetValue]);
|
|
181
226
|
},
|
|
182
227
|
|
|
183
228
|
// returns the text for the Rating Indicator aggregated count (e.g. (243))
|
|
184
|
-
formatRatingIndicatorAggregateCount: function (
|
|
229
|
+
formatRatingIndicatorAggregateCount: function (vValue) {
|
|
185
230
|
var oResBundle = this.getModel("i18n").getResourceBundle();
|
|
186
|
-
var sText;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
sText = oResBundle.getText("RATING_INDICATOR_AGGREGATE_COUNT", [
|
|
191
|
-
} else {
|
|
192
|
-
sText = "";
|
|
231
|
+
var sText = "";
|
|
232
|
+
// If the input value is not provided, try to get value from "AggregateCount" custom data
|
|
233
|
+
vValue = vValue || this.data("AggregateCount");
|
|
234
|
+
if (vValue) {
|
|
235
|
+
sText = oResBundle.getText("RATING_INDICATOR_AGGREGATE_COUNT", [vValue]);
|
|
193
236
|
}
|
|
194
237
|
|
|
195
238
|
return sText;
|
|
@@ -213,7 +256,7 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
213
256
|
var oControl = this;
|
|
214
257
|
var oResourceBundle = oControl.getModel("i18n").getResourceBundle();
|
|
215
258
|
var aCustomData = oControl.getCustomData();
|
|
216
|
-
var oLocale =
|
|
259
|
+
var oLocale = getFormatLocale();
|
|
217
260
|
sValue = NumberFormat.getInstance(oLocale).format(sValue);
|
|
218
261
|
sTarget = sTarget || aCustomData.filter(function (oObject) {
|
|
219
262
|
if (oObject.getKey() === "Target") {
|
|
@@ -252,6 +295,19 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
252
295
|
}
|
|
253
296
|
|
|
254
297
|
return sDisplayValue;
|
|
298
|
+
},
|
|
299
|
+
formatDate: function (oDate) {
|
|
300
|
+
return getDateTimeFormatter().format(oDate);
|
|
301
|
+
},
|
|
302
|
+
/**
|
|
303
|
+
* Formats the given amount and currency
|
|
304
|
+
*
|
|
305
|
+
* @param {number|string} vAmount
|
|
306
|
+
* @param {string} sCurrency
|
|
307
|
+
* @returns {string}
|
|
308
|
+
*/
|
|
309
|
+
formatCurrency: function (vAmount, sCurrency) {
|
|
310
|
+
return getCurrencyFormatter().format(vAmount, sCurrency);
|
|
255
311
|
}
|
|
256
312
|
};
|
|
257
313
|
|