@sapui5/sap.suite.ui.generic.template 1.125.0 → 1.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartKpiTag.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +3 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +17 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +13 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +12 -17
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DynamicDateRangeController.js +4 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +2 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -10
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +10 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +11 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +6 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentViewButtons.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +1 -3
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +9 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +118 -40
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +10 -0
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +19 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +18 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +6 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +6 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +26 -18
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageStripHelper.js +3 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +12 -15
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +5 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +4 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +38 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
- 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/HeaderContainer.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +6 -15
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.controller.js +4 -3
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/AnalyticalListPage.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +2 -5
- package/src/sap/suite/ui/generic/template/designtime/utils/DesigntimeHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +27 -10
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +15 -16
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +24 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +13 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +23 -2
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/AjaxHelper.js +57 -47
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/FeLogger.js +0 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +64 -12
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +32 -24
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +6 -6
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +62 -53
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +3 -3
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +3 -3
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +39 -33
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +79 -53
- package/src/sap/suite/ui/generic/template/lib/Application.js +3 -8
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +25 -22
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +34 -19
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +56 -11
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +11 -12
- package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +25 -12
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +7 -5
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +2 -12
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +5 -7
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +1 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +323 -0
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +77 -0
- package/src/sap/suite/ui/generic/template/lib/ai/JouleContextProvider.js +56 -0
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +38 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +16 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +10 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +9 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/info/SmartTableInfo.js +26 -2
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +10 -29
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +24 -24
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +15 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +8 -2
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/DetailController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/IappStateHandler.js +32 -29
- package/src/sap/suite/ui/generic/template/listTemplates/controller/SmartChartController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +4 -2
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -14
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTableToolbar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/base.less +4 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/ALPConstants.less +47 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base.less +7 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_AnalyticalListPage.less +475 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ListReport.less +33 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +391 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickCreate.less +96 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickView.less +108 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/library.source.less +24 -7
- package/ui5.yaml +1 -1
|
@@ -10,9 +10,10 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
10
10
|
"sap/m/library",
|
|
11
11
|
"sap/ui/core/library",
|
|
12
12
|
"sap/suite/ui/generic/template/genericUtilities/metadataAnalyser",
|
|
13
|
+
"sap/ui/base/ManagedObject",
|
|
13
14
|
"sap/suite/ui/generic/template/js/RuntimeFormatters" // just to make sure that it is loaded
|
|
14
15
|
], function (AnnotationHelperModel, AnnotationHelperModelBasics, SmartField, FeLogger, formatMessage, deepExtend, StableIdHelper, utils, Device,
|
|
15
|
-
SapMLibrary, SapCoreLibrary, metadataAnalyser) {
|
|
16
|
+
SapMLibrary, SapCoreLibrary, metadataAnalyser, ManagedObject) {
|
|
16
17
|
"use strict";
|
|
17
18
|
|
|
18
19
|
// shortcut for sap.ui.core.ValueState
|
|
@@ -43,7 +44,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
43
44
|
return oListEntry.PropertyPath === oProperty;
|
|
44
45
|
});
|
|
45
46
|
};
|
|
46
|
-
|
|
47
|
+
|
|
47
48
|
var bNotSortable = fnHasListProperty(oContextSet["Org.OData.Capabilities.V1.SortRestrictions"] && oContextSet["Org.OData.Capabilities.V1.SortRestrictions"].NonSortableProperties);
|
|
48
49
|
var oFilterRestrictions = oContextSet["Org.OData.Capabilities.V1.FilterRestrictions"];
|
|
49
50
|
var bNotFilterable = !!oFilterRestrictions && (oFilterRestrictions.Filterable === "false" || fnHasListProperty(oFilterRestrictions.NonFilterableProperties));
|
|
@@ -324,7 +325,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
324
325
|
return oHidden["com.sap.vocabularies.UI.v1.Hidden"].Bool !== "true";
|
|
325
326
|
}
|
|
326
327
|
return false; // <Annotation Term="UI.Hidden"/>
|
|
327
|
-
}
|
|
328
|
+
}
|
|
328
329
|
return true;
|
|
329
330
|
},
|
|
330
331
|
|
|
@@ -509,10 +510,10 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
509
510
|
if (sP13N) {
|
|
510
511
|
oP13N = JSON.parse(sP13N.replace(/\\/g, ""));
|
|
511
512
|
}
|
|
512
|
-
|
|
513
|
+
|
|
513
514
|
oP13N.leadingProperty && (aAdditionalPropertiesForSCColumn.indexOf(oP13N.leadingProperty) === -1) ? aAdditionalPropertiesForSCColumn.push(oP13N.leadingProperty) : Function.prototype;
|
|
514
515
|
oP13N.leadingProperty && (aAdditionalSortPropertiesForSCColumn.indexOf(oP13N.leadingProperty) === -1) ? aAdditionalSortPropertiesForSCColumn.push(oP13N.leadingProperty) : Function.prototype;
|
|
515
|
-
|
|
516
|
+
|
|
516
517
|
oP13N.navigationProperty && (aNavigationPropertiesForSCColumn.indexOf(oP13N.navigationProperty) === -1) ? aNavigationPropertiesForSCColumn.push(oP13N.navigationProperty) : Function.prototype;
|
|
517
518
|
// Add "additionalProperty" of current data field to the "additionalProperty" of current column's p13n
|
|
518
519
|
oP13N.additionalProperty && (aAdditionalPropertiesForSCColumn.indexOf(oP13N.additionalProperty) === -1) ? aAdditionalPropertiesForSCColumn.push(oP13N.additionalProperty) : Function.prototype;
|
|
@@ -1044,13 +1045,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1044
1045
|
var oDataField = {"Path":oSmartField.path};
|
|
1045
1046
|
return AnnotationHelperModel.simplePath(oInterface.getModel() ? oInterface : oInterface.getInterface(0), oDataField);
|
|
1046
1047
|
},
|
|
1047
|
-
|
|
1048
|
+
|
|
1048
1049
|
// build expression binding for bread crumbs
|
|
1049
1050
|
buildBreadCrumbExpression: function (oContext, oTreeNode) {
|
|
1050
1051
|
var oHeaderInfo = oTreeNode.entityTypeDefinition && oTreeNode.entityTypeDefinition["com.sap.vocabularies.UI.v1.HeaderInfo"];
|
|
1051
1052
|
var oTitle = oHeaderInfo && oHeaderInfo.Title && oHeaderInfo.Title.Value;
|
|
1052
1053
|
var sBindingTitle = oTitle && AnnotationHelperModel.format(oContext, oTitle);
|
|
1053
|
-
var oTypeName = oHeaderInfo && oHeaderInfo.TypeName;
|
|
1054
|
+
var oTypeName = oHeaderInfo && oHeaderInfo.TypeName;
|
|
1054
1055
|
// Revisit (AncestorFeature)
|
|
1055
1056
|
//sBindingTitle = sBindingTitle.replace("{", "{" + oTreeNode.specificModelName + ">");
|
|
1056
1057
|
if (oTitle && oTitle.Path && oTypeName && oTypeName.String) {
|
|
@@ -1137,7 +1138,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1137
1138
|
},
|
|
1138
1139
|
|
|
1139
1140
|
// Returns the creation mode that has been configured for the given facet if defined, else returns the global level creation mode
|
|
1140
|
-
getCreationMode: function (oFacet, oGlobalSettings) {
|
|
1141
|
+
getCreationMode: function (oFacet, oGlobalSettings, oAppSettings) {
|
|
1141
1142
|
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1142
1143
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1143
1144
|
var sCreateMode;
|
|
@@ -1145,10 +1146,18 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1145
1146
|
sCreateMode = oSettings.createMode;
|
|
1146
1147
|
} else if (oGlobalSettings && oGlobalSettings.createMode) {
|
|
1147
1148
|
sCreateMode = oGlobalSettings.createMode;
|
|
1149
|
+
} else if (oGlobalSettings && oGlobalSettings.tableSettings && oGlobalSettings.tableSettings.createMode) {
|
|
1150
|
+
sCreateMode = oGlobalSettings.tableSettings.createMode;
|
|
1151
|
+
} else if (oAppSettings && oAppSettings.getTableSettings() && oAppSettings.getTableSettings().createMode){
|
|
1152
|
+
sCreateMode = oAppSettings.getTableSettings().createMode;
|
|
1148
1153
|
} else {
|
|
1149
1154
|
sCreateMode = "";
|
|
1150
1155
|
}
|
|
1151
|
-
|
|
1156
|
+
// If we have specific value -> reset to value that will enforce table create new entry default behavior
|
|
1157
|
+
if (sCreateMode === "newPage") {
|
|
1158
|
+
sCreateMode = "";
|
|
1159
|
+
}
|
|
1160
|
+
|
|
1152
1161
|
return sCreateMode;
|
|
1153
1162
|
},
|
|
1154
1163
|
|
|
@@ -1205,7 +1214,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1205
1214
|
var sPostfix = "], formatter: 'formatImageUrl'}";
|
|
1206
1215
|
return sPrefix + sInfix + sPostfix;
|
|
1207
1216
|
}
|
|
1208
|
-
// Apply
|
|
1217
|
+
// Apply
|
|
1209
1218
|
oImageUrl.Apply.Parameters[0].Value = utils.adjustImageUrlPath(oImageUrl.Apply.Parameters[0].Value, sAppComponentName);
|
|
1210
1219
|
return AnnotationHelperModel.format(oInterface, oImageUrl);
|
|
1211
1220
|
},
|
|
@@ -1227,8 +1236,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1227
1236
|
|
|
1228
1237
|
getAvatarInitials: function (oInitials) {
|
|
1229
1238
|
return (oInitials && (oInitials.Path ? ("{" + oInitials.Path + "}") : oInitials.String) || "");
|
|
1230
|
-
|
|
1231
|
-
},
|
|
1239
|
+
|
|
1240
|
+
},
|
|
1232
1241
|
|
|
1233
1242
|
formatImageOrTypeUrl: function (oInterface, oInputImageUrl, oTypeImageUrl, sAppComponentName, bExpand) {
|
|
1234
1243
|
var oImageUrl = oInputImageUrl || oTypeImageUrl;
|
|
@@ -1237,7 +1246,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1237
1246
|
|
|
1238
1247
|
formatHeaderImage: function (oInterface, oHeaderInfo, sAppComponentName) {
|
|
1239
1248
|
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo.ImageUrl, oHeaderInfo.TypeImageUrl, sAppComponentName, true);
|
|
1240
|
-
},
|
|
1249
|
+
},
|
|
1241
1250
|
|
|
1242
1251
|
getPathWithExpandFromHeader: function (oInterface, oEntitySet, sNavigationProperty, oInputImageUrl, oTypeImageUrl) {
|
|
1243
1252
|
var sExpand, sNavigationPath;
|
|
@@ -1757,7 +1766,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1757
1766
|
return iDraftColumnIndex;
|
|
1758
1767
|
},
|
|
1759
1768
|
|
|
1760
|
-
// Calculating the column index of Draft Indicator Column for sap.ui.table based on the column index of last Semantic key available
|
|
1769
|
+
// Calculating the column index of Draft Indicator Column for sap.ui.table based on the column index of last Semantic key available
|
|
1761
1770
|
// or else on the 1st Index of the table.
|
|
1762
1771
|
_determineColumnIndexForDraftColumn: function (oContext, oLineItem) {
|
|
1763
1772
|
var sLineItemPath = oContext.getPath();
|
|
@@ -2098,7 +2107,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2098
2107
|
|
|
2099
2108
|
createP13NFileUploader: function(oInterface, oContextSet, mColumnWidthIncludingColumnHeader) {
|
|
2100
2109
|
var oEntityType = oInterface.getModel(0).getODataEntityType(oContextSet.entityType);
|
|
2101
|
-
var sP13N = "";
|
|
2110
|
+
var sP13N = "";
|
|
2102
2111
|
var oContentDisposition = oEntityType && oEntityType["Org.OData.Core.V1.ContentDisposition"];
|
|
2103
2112
|
var sColumnKey = oContentDisposition && oContentDisposition.Filename && oContentDisposition.Filename.Path;
|
|
2104
2113
|
var bIsWidthIncludingColumnHeader = calculateColumnHeader(mColumnWidthIncludingColumnHeader, sColumnKey);
|
|
@@ -2164,7 +2173,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2164
2173
|
if (oContextProp["com.sap.vocabularies.Common.v1.Text"] && oContextProp["com.sap.vocabularies.Common.v1.Text"].Path) {
|
|
2165
2174
|
aAdditionalProperties.push(sNavigation + oContextProp["com.sap.vocabularies.Common.v1.Text"].Path);
|
|
2166
2175
|
}
|
|
2167
|
-
|
|
2176
|
+
|
|
2168
2177
|
var oUnitAnnotation = oContextProp["Org.OData.Measures.V1.ISOCurrency"] || oContextProp["Org.OData.Measures.V1.Unit"];
|
|
2169
2178
|
if (oUnitAnnotation && oUnitAnnotation.Path) {
|
|
2170
2179
|
aAdditionalProperties.push(oUnitAnnotation.Path);
|
|
@@ -2371,7 +2380,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2371
2380
|
return false;
|
|
2372
2381
|
}
|
|
2373
2382
|
var sImageSrc = oAnnotationHelper.formatImageUrl(oInterface, oImageUrl, sAppComponentName);
|
|
2374
|
-
return !!sImageSrc;
|
|
2383
|
+
return !!sImageSrc;
|
|
2375
2384
|
},
|
|
2376
2385
|
getVisibilityForExtensionPointBeforeSimpleHeaderFacet: function (sEntitySet, oFacet, oManifestExtend, oDataField) {
|
|
2377
2386
|
var sSecondHalfIdPart;
|
|
@@ -2650,11 +2659,11 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2650
2659
|
* - Boolean value or
|
|
2651
2660
|
* - Expression binding
|
|
2652
2661
|
*/
|
|
2653
|
-
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType) {
|
|
2662
|
+
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType, oAppSettings) {
|
|
2654
2663
|
var bHasSubObjectPage = oAnnotationHelper.hasSubObjectPage(oRelatedEntitySet, aSubPages),
|
|
2655
|
-
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings),
|
|
2664
|
+
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings, oAppSettings),
|
|
2656
2665
|
bIsInlineCreationMode = ["inline", "creationRows", "creationRowsHiddenInEditMode"].includes(sTableCreationMode);
|
|
2657
|
-
|
|
2666
|
+
|
|
2658
2667
|
if (bHasSubObjectPage || bIsInlineCreationMode || oCreateWithParameterDialog) {
|
|
2659
2668
|
var aConditions = [],
|
|
2660
2669
|
sFinalCondition,
|
|
@@ -2707,7 +2716,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2707
2716
|
// If the creatable path is boolean, return it
|
|
2708
2717
|
if (typeof vCreatablePath === "boolean") {
|
|
2709
2718
|
return vCreatablePath;
|
|
2710
|
-
}
|
|
2719
|
+
}
|
|
2711
2720
|
// Return the creatable path is a valid property path (string), create an expression and return it
|
|
2712
2721
|
var sPrefix = (oCreatablePathObj.negate) ? "!" : "!!";
|
|
2713
2722
|
var sCreatablePathExp = sPrefix + "${" + vCreatablePath + "}";
|
|
@@ -2744,7 +2753,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2744
2753
|
* @returns {object} oResult - an object contains the creatable path info
|
|
2745
2754
|
* oResult.creatable - true or false or the creatable-path (string)
|
|
2746
2755
|
* oResult.negate - true when the creatable path is a non-insertable navigation property
|
|
2747
|
-
*
|
|
2756
|
+
*
|
|
2748
2757
|
*/
|
|
2749
2758
|
getCreatablePath: function (oInterface, oSourceEntitySet, oRelatedEntitySet) {
|
|
2750
2759
|
|
|
@@ -2754,7 +2763,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2754
2763
|
var oSourceEntityType = oModel.getODataEntityType(oSourceEntitySet.entityType);
|
|
2755
2764
|
var oRestrictionSetViaNavRestrictions;
|
|
2756
2765
|
var sFullCreatablePath;
|
|
2757
|
-
|
|
2766
|
+
|
|
2758
2767
|
// check if there are Insert Restrictions.
|
|
2759
2768
|
oRestrictionSetViaNavRestrictions = oAnnotationHelper.handleNavigationRestrictions(oModel, oSourceEntitySet, oRelatedEntitySet, "Insertable");
|
|
2760
2769
|
if (oRestrictionSetViaNavRestrictions && oRestrictionSetViaNavRestrictions["Insertable"]) {
|
|
@@ -2794,7 +2803,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2794
2803
|
}
|
|
2795
2804
|
}
|
|
2796
2805
|
}
|
|
2797
|
-
|
|
2806
|
+
|
|
2798
2807
|
return oResult;
|
|
2799
2808
|
},
|
|
2800
2809
|
/***************************************************************
|
|
@@ -3178,9 +3187,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3178
3187
|
* Responsibility, resolve paths at pre-processing
|
|
3179
3188
|
* @function
|
|
3180
3189
|
* @private
|
|
3181
|
-
* @
|
|
3182
|
-
* @
|
|
3183
|
-
* @
|
|
3190
|
+
* @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface Callback interface object
|
|
3191
|
+
* @param {map} dataPoint A DataPoint map as per the vocabulary term com.sap.vocabularies.UI.v1.DataPoint
|
|
3192
|
+
* @param {map} [mUoM] A map containing the unit of measure as per the vocabulary term Org.OData.Measures.V1.Unit or Org.OData.Measures.V1.ISOCurrency
|
|
3184
3193
|
* @returns {string} A binding expression containing the formula to calculate the Progress Indicator percent value
|
|
3185
3194
|
*/
|
|
3186
3195
|
buildExpressionForProgressIndicatorPercentValue: function (oInterface, dataPoint, mUoM) {
|
|
@@ -3222,9 +3231,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3222
3231
|
* This formatter is called at pre-processing time
|
|
3223
3232
|
* @function
|
|
3224
3233
|
* @private
|
|
3225
|
-
* @
|
|
3226
|
-
* @
|
|
3227
|
-
* @
|
|
3234
|
+
* @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface Callback interface object
|
|
3235
|
+
* @param {map} dataPoint A DataPoint map as per the vocabulary term com.sap.vocabularies.UI.v1.DataPoint
|
|
3236
|
+
* @param {map} [mUoM] A map containing the unit of measure as per the vocabulary term Org.OData.Measures.V1.Unit or Org.OData.Measures.V1.ISOCurrency
|
|
3228
3237
|
* @returns {string} A binding expression containing the formatter and parts to compute the Progress Indicator display value
|
|
3229
3238
|
*/
|
|
3230
3239
|
buildExpressionForProgressIndicatorDisplayValue: function (oInterface, dataPoint, mUoM) {
|
|
@@ -3247,8 +3256,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3247
3256
|
* This formatter is called at pre-processing time
|
|
3248
3257
|
* @function
|
|
3249
3258
|
* @private
|
|
3250
|
-
* @
|
|
3251
|
-
* @
|
|
3259
|
+
* @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface Callback interface object
|
|
3260
|
+
* @param {map} [mUoM] A map containing the unit of measure as per the vocabulary term Org.OData.Measures.V1.Unit or Org.OData.Measures.V1.ISOCurrency
|
|
3252
3261
|
* @returns {string} A binding expression containing the display value for the tooltip
|
|
3253
3262
|
*/
|
|
3254
3263
|
getProgressIndicatorTooltip: function (oInterface, mUoM) {
|
|
@@ -3264,8 +3273,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3264
3273
|
* Step 1: Check if datapoint is annotated with CriticalityType or CriticalityCalculationType
|
|
3265
3274
|
* Step 2: For CriticalityType build the binding expression to check if the property contains, Name or Value of the enumType (Example: 'UI.CriticalityType/Neutral' or '0')
|
|
3266
3275
|
* Other cases are not valid and the default sap.ui.core.ValueState.None will be returned
|
|
3267
|
-
* @
|
|
3268
|
-
* @
|
|
3276
|
+
* @param {sap.ui.core.util.XMLPreprocessor.IContext|sap.ui.model.Context} oInterface Callback interface object
|
|
3277
|
+
* @param {map} dataPoint A DataPoint map as per the vocabulary term com.sap.vocabularies.UI.v1.DataPoint
|
|
3269
3278
|
* @returns {string} A binding expression for the criticality property of the Progress Indicator
|
|
3270
3279
|
*/
|
|
3271
3280
|
buildExpressionForProgressIndicatorCriticality: function (oInterface, dataPoint) {
|
|
@@ -3382,8 +3391,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3382
3391
|
/**
|
|
3383
3392
|
* Get entity set name for Smart Chart and Smart MicroChart.
|
|
3384
3393
|
* Returns the name of the main entity set (current node in the object page) or the referenced entity set (as per the target of the annotation path).
|
|
3385
|
-
* @
|
|
3386
|
-
* @
|
|
3394
|
+
* @param {object} refEntitySet The referenced entity set
|
|
3395
|
+
* @param {object} entitySet The entity set of the current object in the page
|
|
3387
3396
|
* @returns {string} sEntitySetName The entity set name for the main object type or the referenced entity set
|
|
3388
3397
|
*/
|
|
3389
3398
|
getEntitySetName: function (refEntitySet, entitySet) {
|
|
@@ -3414,7 +3423,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3414
3423
|
getActionCommandVisibility: function (sButtonId) {
|
|
3415
3424
|
return !sButtonId || "{= " + oAnnotationHelper.getControlVisibleTerm(sButtonId) + " && " + oAnnotationHelper.getControlEnabledTerm(sButtonId) + "}";
|
|
3416
3425
|
},
|
|
3417
|
-
|
|
3426
|
+
|
|
3418
3427
|
buildVisibilityExprOfDataFieldForIntentBasedNaviButton: function (oDataField) {
|
|
3419
3428
|
//If UI.Hidden annotation is used, UI.Hidden gets the highest priority
|
|
3420
3429
|
if (oDataField["com.sap.vocabularies.UI.v1.Hidden"]) {
|
|
@@ -3742,7 +3751,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3742
3751
|
}
|
|
3743
3752
|
return sRet;
|
|
3744
3753
|
},
|
|
3745
|
-
|
|
3754
|
+
|
|
3746
3755
|
// Note: This function is a temporary solution. It imitates the logic implemented by AnnotationHelperModel.simplePath and returns false exactly when that function would return a binding string but
|
|
3747
3756
|
// logs that this binding string is incorrect. In all other cases it returns true (even if AnnotationHelperModel.simplePath throws an exception).
|
|
3748
3757
|
isDataFieldRenderable: function(oInterface, oDataFieldValue){
|
|
@@ -3795,7 +3804,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3795
3804
|
AnnotationHelperModelBasics.expectType(oSubPathValue, "string");
|
|
3796
3805
|
// Note: "PropertyPath" is treated the same...
|
|
3797
3806
|
var oTarget = AnnotationHelperModelBasics.followPath(oSubPathValueInterface, {"Path" : sBindingPath});
|
|
3798
|
-
return !!(oTarget && oTarget.resolvedPath);
|
|
3807
|
+
return !!(oTarget && oTarget.resolvedPath);
|
|
3799
3808
|
|
|
3800
3809
|
case "Bool": // 14.4.2 Expression edm:Bool
|
|
3801
3810
|
case "Date": // 14.4.3 Expression edm:Date
|
|
@@ -3824,7 +3833,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3824
3833
|
return true;
|
|
3825
3834
|
default:
|
|
3826
3835
|
return true;
|
|
3827
|
-
}
|
|
3836
|
+
}
|
|
3828
3837
|
},
|
|
3829
3838
|
|
|
3830
3839
|
setNoDataTextForSmartTable: function (sEntitySet, sSmartTableId) {
|
|
@@ -3910,7 +3919,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3910
3919
|
SmartLinks expect a boolean value for forceLinkRendering which is not covered in this function, as semanticObjectController covers all cases
|
|
3911
3920
|
*/
|
|
3912
3921
|
hasQuickViewFacet: function (oEntitySet, oTargetEntities) {
|
|
3913
|
-
return oTargetEntities[oEntitySet.entityType].sForceLinkRendering; //Example return value '\\{"ProductForEdit":"true"\\}'
|
|
3922
|
+
return ManagedObject.escapeSettingsValue(oTargetEntities[oEntitySet.entityType].sForceLinkRendering); //Example return value '\\{"ProductForEdit":"true"\\}'
|
|
3914
3923
|
},
|
|
3915
3924
|
|
|
3916
3925
|
/*
|
|
@@ -4139,13 +4148,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4139
4148
|
}
|
|
4140
4149
|
if (oAddress[0].locality) {
|
|
4141
4150
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].locality) + ", ");
|
|
4142
|
-
}
|
|
4151
|
+
}
|
|
4143
4152
|
if (oAddress[0].region) {
|
|
4144
4153
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].region) + ", ");
|
|
4145
|
-
}
|
|
4154
|
+
}
|
|
4146
4155
|
if (oAddress[0].country) {
|
|
4147
4156
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].country) + ", ");
|
|
4148
|
-
}
|
|
4157
|
+
}
|
|
4149
4158
|
return sAddress.slice(0, sAddress.length - 2);
|
|
4150
4159
|
},
|
|
4151
4160
|
|
|
@@ -4197,7 +4206,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4197
4206
|
var aIsCopyAction = (aCollection || []).filter(function (oRecord) {
|
|
4198
4207
|
return (oRecord.RecordType === "com.sap.vocabularies.UI.v1.DataFieldForAction" && (oRecord["com.sap.vocabularies.UI.v1.IsCopyAction"] && oRecord["com.sap.vocabularies.UI.v1.IsCopyAction"].Bool));
|
|
4199
4208
|
});
|
|
4200
|
-
|
|
4209
|
+
|
|
4201
4210
|
if (aIsCopyAction.length > 1) {
|
|
4202
4211
|
oLogger.error("Multiple actions are annotated with isCopyAction. There can be only one standard copy action.");
|
|
4203
4212
|
}
|
|
@@ -4206,8 +4215,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4206
4215
|
|
|
4207
4216
|
/**
|
|
4208
4217
|
* This method reads the insertable navigation restrictions from parent entity and builds customize config object.
|
|
4209
|
-
* The smart table reads the customize config and sets the editability of smart fields
|
|
4210
|
-
*
|
|
4218
|
+
* The smart table reads the customize config and sets the editability of smart fields
|
|
4219
|
+
*
|
|
4211
4220
|
* @param {*} oInterface Context
|
|
4212
4221
|
* @param {*} oSourceEntitySet Parent entity set (entity set of object page)
|
|
4213
4222
|
* @param {*} oRelatedEntitySet Entity set of smart table
|
|
@@ -4231,7 +4240,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4231
4240
|
}
|
|
4232
4241
|
//Turn off client-side mandatory check
|
|
4233
4242
|
oCustomizeConfig["clientSideMandatoryCheck"] = {
|
|
4234
|
-
"*": false
|
|
4243
|
+
"*": false
|
|
4235
4244
|
};
|
|
4236
4245
|
}
|
|
4237
4246
|
if (mColumnWidthIncludingColumnHeader) {
|
|
@@ -4282,7 +4291,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4282
4291
|
}
|
|
4283
4292
|
return sActionPress;
|
|
4284
4293
|
},
|
|
4285
|
-
|
|
4294
|
+
|
|
4286
4295
|
/**
|
|
4287
4296
|
* A side effect should get triggered directly if a value is selected for a field like value help/combo box, checkbox, date picker, datetime picker
|
|
4288
4297
|
* provided a side effect is defined on this field. However this should be only done if the side effect has only one source property (the source property must
|
|
@@ -4291,7 +4300,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4291
4300
|
* @param {boolean} isDraftEnabled draft or non draft scenario
|
|
4292
4301
|
* @param {object} oMetaModel metamodel
|
|
4293
4302
|
* @param {string} sEntityType entity type of the detail page to which property belongs
|
|
4294
|
-
* @returns side effect source property's type which represents if the field is annotated as single source property in the side effect or is also used in
|
|
4303
|
+
* @returns side effect source property's type which represents if the field is annotated as single source property in the side effect or is also used in
|
|
4295
4304
|
* combination with other field(s).
|
|
4296
4305
|
*/
|
|
4297
4306
|
getSideEffectSourcePropertyType: function(sPropertyPath, isDraftEnabled, oMetaModel, sEntityType) {
|
|
@@ -4299,7 +4308,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4299
4308
|
},
|
|
4300
4309
|
|
|
4301
4310
|
/**
|
|
4302
|
-
* From UI5 v1.109, variant management is going to be enabled (by default) for smart table/chart and it will lead to the the issue of having multiple
|
|
4311
|
+
* From UI5 v1.109, variant management is going to be enabled (by default) for smart table/chart and it will lead to the the issue of having multiple
|
|
4303
4312
|
* duplicate implicit variants created by SVM (named as Personalization), and in order to mitigate the issue, persistencyKey has to be changed in certain scenarios.
|
|
4304
4313
|
* scenarios. With this change, application(s) who has already enabled the variant management will continue to have the old persistencyKey and should have
|
|
4305
4314
|
* no impact whatsoever. However, application(s) should not enable it going forward because of two reasons:
|
|
@@ -4346,7 +4355,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4346
4355
|
: "";
|
|
4347
4356
|
},
|
|
4348
4357
|
|
|
4349
|
-
getNavigationPropertyPath: function (oInterface, vRawValue) {
|
|
4358
|
+
getNavigationPropertyPath: function (oInterface, vRawValue) {
|
|
4350
4359
|
var sNavigationPath = AnnotationHelperModel.getNavigationPath(oInterface, vRawValue);
|
|
4351
4360
|
var sNavigationPropertyPath = sNavigationPath.replace("{", "").replace("}", "");
|
|
4352
4361
|
return sNavigationPropertyPath;
|
|
@@ -4417,6 +4426,6 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4417
4426
|
oAnnotationHelper.getLinkTextForDFwithEmail.requiresIContext = true;
|
|
4418
4427
|
oAnnotationHelper.checkIsEmailAddress.requiresIContext = true;
|
|
4419
4428
|
oAnnotationHelper.isEmailAddressAndMuliplicity.requiresIContext = true;
|
|
4420
|
-
|
|
4429
|
+
|
|
4421
4430
|
return oAnnotationHelper;
|
|
4422
4431
|
}, /* bExport= */ true);
|
|
@@ -196,9 +196,9 @@ sap.ui.define(["sap/ui/core/format/NumberFormat", "sap/ui/core/message/MessageTy
|
|
|
196
196
|
},
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* @
|
|
200
|
-
* @
|
|
201
|
-
* @
|
|
199
|
+
* @param {string} sValue A string containing the value
|
|
200
|
+
* @param {string} sTarget A string containing the target value
|
|
201
|
+
* @param {string} sUoM A string containing the unit of measure
|
|
202
202
|
* @returns {string} A string containing the text that will be used in the display value of the Progress Indicator
|
|
203
203
|
*/
|
|
204
204
|
formatDisplayValueForProgressIndicator: function (sValue, sTarget, sUoM) {
|
package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js
CHANGED
|
@@ -16,9 +16,9 @@ sap.ui.define("sap/suite/ui/generic/template/js/formatters/formatDisplayValueFor
|
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
|
-
* @
|
|
20
|
-
* @
|
|
21
|
-
* @
|
|
19
|
+
* @param {string} sValue A string containing the value
|
|
20
|
+
* @param {string} sTarget A string containing the target value
|
|
21
|
+
* @param {string} sUoM A string containing the unit of measure
|
|
22
22
|
* @returns {string} A string containing the text that will be used in the display value of the Progress Indicator
|
|
23
23
|
*/
|
|
24
24
|
|
|
@@ -322,7 +322,7 @@ sap.ui.define([
|
|
|
322
322
|
* @returns {string} String MS accepted conditional binding
|
|
323
323
|
*/
|
|
324
324
|
var fnHandleDefaultValueForPath = function (sPath) {
|
|
325
|
-
return fnGetNullishPathCheckString(sPath) + " ? '
|
|
325
|
+
return fnGetNullishPathCheckString(sPath) + " ? '−' : " + sPath;
|
|
326
326
|
};
|
|
327
327
|
|
|
328
328
|
/**
|
|
@@ -351,14 +351,14 @@ sap.ui.define([
|
|
|
351
351
|
}
|
|
352
352
|
var sValue = oField.edmType === "Edm.Decimal" ? "formatNumber(float(" + oField.path + "), 2)" : oField.path;
|
|
353
353
|
var sDefaultPathValue = fnHandleDefaultValueForPath(oField.path);
|
|
354
|
-
var sId =
|
|
355
|
-
var sDescription =
|
|
354
|
+
var sId = null;
|
|
355
|
+
var sDescription = null;
|
|
356
356
|
var sPath;
|
|
357
357
|
var sSapUnitConditionalPath = "";
|
|
358
358
|
if (oField.semantic === oSapSemantics.unitOfMeasure) {
|
|
359
|
-
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + sValue + " + ' ' + '
|
|
359
|
+
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + sValue + " + ' ' + '−' : " + "";
|
|
360
360
|
} else if (oField.semantic === oSapSemantics.currencyCode) {
|
|
361
|
-
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + " '
|
|
361
|
+
sSapUnitConditionalPath = "(" + fnGetNullishPathCheckString(oField.sapUnit) + ")" + ' ? ' + " '−' : " + "";
|
|
362
362
|
}
|
|
363
363
|
if (aPaths.length > 1) {
|
|
364
364
|
var aDescriptionText = aPaths.filter(function(oPath) {
|
|
@@ -612,44 +612,50 @@ sap.ui.define([
|
|
|
612
612
|
oColumnSetClone.columns.push(oColumnClone);
|
|
613
613
|
continue;
|
|
614
614
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
615
|
+
if (oField.label) {
|
|
616
|
+
// console.log(oField);
|
|
617
|
+
oFormFieldHeaderClone = deepClone(oFormFieldHeader);
|
|
618
|
+
oFormFieldHeaderClone.text = oField.label;
|
|
619
|
+
oColumnClone.items.push(oFormFieldHeaderClone);
|
|
620
|
+
oFormFieldValueClone = deepClone(oFormFieldValue);
|
|
621
|
+
oFormFieldValueClone.text = fnSetPath(oField);
|
|
622
|
+
oFormFieldValueClone.color = oField.color ? oField.color : "Default";
|
|
623
|
+
oColumnClone.items.push(oFormFieldValueClone);
|
|
624
|
+
oColumnClone["$when"] = oField.visiblePath;
|
|
625
|
+
oColumnSetClone.columns.push(oColumnClone);
|
|
626
|
+
}
|
|
625
627
|
}
|
|
626
628
|
oAdaptiveCardJSON.body.push(oColumnSetClone);
|
|
627
629
|
}
|
|
628
630
|
break;
|
|
629
631
|
case "PlainTextVBox":
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
632
|
+
if (element.label) {
|
|
633
|
+
oFormTitleClone = deepClone(oFormHeading);
|
|
634
|
+
oFormTitleClone.text = element.label;
|
|
635
|
+
oAdaptiveCardJSON.body.push(oFormTitleClone);
|
|
636
|
+
oFormFieldValueClone = deepClone(oFormFieldValue);
|
|
637
|
+
oFormFieldValueClone.text = fnSetPath(element);
|
|
638
|
+
oAdaptiveCardJSON.body.push(oFormFieldValueClone);
|
|
639
|
+
oFormTitleClone["$when"] = element.visiblePath;
|
|
640
|
+
oFormFieldValueClone["$when"] = element.visiblePath;
|
|
641
|
+
}
|
|
638
642
|
break;
|
|
639
643
|
case "DataPoint":
|
|
640
644
|
if (!oDataPointColumnSet) {
|
|
641
645
|
oDataPointColumnSet = deepClone(oColumSet);
|
|
642
646
|
}
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
647
|
+
if (element.label) {
|
|
648
|
+
oColumnClone = deepClone(oColumn);
|
|
649
|
+
oFormTitleClone = deepClone(oFormHeading);
|
|
650
|
+
oFormTitleClone.text = element.label;
|
|
651
|
+
oColumnClone.items.push(oFormTitleClone);
|
|
652
|
+
oFormFieldValueClone = deepClone(oFormFieldValue);
|
|
653
|
+
oFormFieldValueClone.text = fnSetPath(element);
|
|
654
|
+
oFormFieldValueClone.color = element.color ? element.color : "Default";
|
|
655
|
+
oColumnClone.items.push(oFormFieldValueClone);
|
|
656
|
+
oColumnClone["$when"] = element.visiblePath;
|
|
657
|
+
oDataPointColumnSet.columns.push(oColumnClone);
|
|
658
|
+
}
|
|
653
659
|
break;
|
|
654
660
|
default:
|
|
655
661
|
break;
|