@sapui5/sap.suite.ui.generic.template 1.126.0 → 1.127.1
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/FilterItemMicroChart.js +2 -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 +0 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +8 -13
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DynamicDateRangeController.js +4 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +12 -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/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 +65 -40
- 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 +16 -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/SmartTable.fragment.xml +1 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +26 -19
- 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/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 +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +2 -5
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- 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 +0 -2
- 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 +2 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +2 -2
- 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 +0 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +2 -2
- 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 +12 -11
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +26 -20
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +3 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +59 -51
- 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 +1 -4
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +21 -21
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +34 -19
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +63 -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 +2 -2
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +6 -6
- 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 +3 -3
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +2 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.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/base.less +4 -0
- 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
|
@@ -44,7 +44,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
44
44
|
return oListEntry.PropertyPath === oProperty;
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
var bNotSortable = fnHasListProperty(oContextSet["Org.OData.Capabilities.V1.SortRestrictions"] && oContextSet["Org.OData.Capabilities.V1.SortRestrictions"].NonSortableProperties);
|
|
49
49
|
var oFilterRestrictions = oContextSet["Org.OData.Capabilities.V1.FilterRestrictions"];
|
|
50
50
|
var bNotFilterable = !!oFilterRestrictions && (oFilterRestrictions.Filterable === "false" || fnHasListProperty(oFilterRestrictions.NonFilterableProperties));
|
|
@@ -325,7 +325,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
325
325
|
return oHidden["com.sap.vocabularies.UI.v1.Hidden"].Bool !== "true";
|
|
326
326
|
}
|
|
327
327
|
return false; // <Annotation Term="UI.Hidden"/>
|
|
328
|
-
}
|
|
328
|
+
}
|
|
329
329
|
return true;
|
|
330
330
|
},
|
|
331
331
|
|
|
@@ -510,10 +510,10 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
510
510
|
if (sP13N) {
|
|
511
511
|
oP13N = JSON.parse(sP13N.replace(/\\/g, ""));
|
|
512
512
|
}
|
|
513
|
-
|
|
513
|
+
|
|
514
514
|
oP13N.leadingProperty && (aAdditionalPropertiesForSCColumn.indexOf(oP13N.leadingProperty) === -1) ? aAdditionalPropertiesForSCColumn.push(oP13N.leadingProperty) : Function.prototype;
|
|
515
515
|
oP13N.leadingProperty && (aAdditionalSortPropertiesForSCColumn.indexOf(oP13N.leadingProperty) === -1) ? aAdditionalSortPropertiesForSCColumn.push(oP13N.leadingProperty) : Function.prototype;
|
|
516
|
-
|
|
516
|
+
|
|
517
517
|
oP13N.navigationProperty && (aNavigationPropertiesForSCColumn.indexOf(oP13N.navigationProperty) === -1) ? aNavigationPropertiesForSCColumn.push(oP13N.navigationProperty) : Function.prototype;
|
|
518
518
|
// Add "additionalProperty" of current data field to the "additionalProperty" of current column's p13n
|
|
519
519
|
oP13N.additionalProperty && (aAdditionalPropertiesForSCColumn.indexOf(oP13N.additionalProperty) === -1) ? aAdditionalPropertiesForSCColumn.push(oP13N.additionalProperty) : Function.prototype;
|
|
@@ -1045,13 +1045,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1045
1045
|
var oDataField = {"Path":oSmartField.path};
|
|
1046
1046
|
return AnnotationHelperModel.simplePath(oInterface.getModel() ? oInterface : oInterface.getInterface(0), oDataField);
|
|
1047
1047
|
},
|
|
1048
|
-
|
|
1048
|
+
|
|
1049
1049
|
// build expression binding for bread crumbs
|
|
1050
1050
|
buildBreadCrumbExpression: function (oContext, oTreeNode) {
|
|
1051
1051
|
var oHeaderInfo = oTreeNode.entityTypeDefinition && oTreeNode.entityTypeDefinition["com.sap.vocabularies.UI.v1.HeaderInfo"];
|
|
1052
1052
|
var oTitle = oHeaderInfo && oHeaderInfo.Title && oHeaderInfo.Title.Value;
|
|
1053
1053
|
var sBindingTitle = oTitle && AnnotationHelperModel.format(oContext, oTitle);
|
|
1054
|
-
var oTypeName = oHeaderInfo && oHeaderInfo.TypeName;
|
|
1054
|
+
var oTypeName = oHeaderInfo && oHeaderInfo.TypeName;
|
|
1055
1055
|
// Revisit (AncestorFeature)
|
|
1056
1056
|
//sBindingTitle = sBindingTitle.replace("{", "{" + oTreeNode.specificModelName + ">");
|
|
1057
1057
|
if (oTitle && oTitle.Path && oTypeName && oTypeName.String) {
|
|
@@ -1138,7 +1138,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1138
1138
|
},
|
|
1139
1139
|
|
|
1140
1140
|
// Returns the creation mode that has been configured for the given facet if defined, else returns the global level creation mode
|
|
1141
|
-
getCreationMode: function (oFacet, oGlobalSettings) {
|
|
1141
|
+
getCreationMode: function (oFacet, oGlobalSettings, oAppSettings) {
|
|
1142
1142
|
var oSections = oGlobalSettings && oGlobalSettings.sections;
|
|
1143
1143
|
var oSettings = oSections && oSections[oAnnotationHelper.getStableIdPartFromFacet(oFacet)];
|
|
1144
1144
|
var sCreateMode;
|
|
@@ -1146,10 +1146,18 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1146
1146
|
sCreateMode = oSettings.createMode;
|
|
1147
1147
|
} else if (oGlobalSettings && oGlobalSettings.createMode) {
|
|
1148
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;
|
|
1149
1153
|
} else {
|
|
1150
1154
|
sCreateMode = "";
|
|
1151
1155
|
}
|
|
1152
|
-
|
|
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
|
+
|
|
1153
1161
|
return sCreateMode;
|
|
1154
1162
|
},
|
|
1155
1163
|
|
|
@@ -1206,7 +1214,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1206
1214
|
var sPostfix = "], formatter: 'formatImageUrl'}";
|
|
1207
1215
|
return sPrefix + sInfix + sPostfix;
|
|
1208
1216
|
}
|
|
1209
|
-
// Apply
|
|
1217
|
+
// Apply
|
|
1210
1218
|
oImageUrl.Apply.Parameters[0].Value = utils.adjustImageUrlPath(oImageUrl.Apply.Parameters[0].Value, sAppComponentName);
|
|
1211
1219
|
return AnnotationHelperModel.format(oInterface, oImageUrl);
|
|
1212
1220
|
},
|
|
@@ -1228,8 +1236,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1228
1236
|
|
|
1229
1237
|
getAvatarInitials: function (oInitials) {
|
|
1230
1238
|
return (oInitials && (oInitials.Path ? ("{" + oInitials.Path + "}") : oInitials.String) || "");
|
|
1231
|
-
|
|
1232
|
-
},
|
|
1239
|
+
|
|
1240
|
+
},
|
|
1233
1241
|
|
|
1234
1242
|
formatImageOrTypeUrl: function (oInterface, oInputImageUrl, oTypeImageUrl, sAppComponentName, bExpand) {
|
|
1235
1243
|
var oImageUrl = oInputImageUrl || oTypeImageUrl;
|
|
@@ -1238,7 +1246,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1238
1246
|
|
|
1239
1247
|
formatHeaderImage: function (oInterface, oHeaderInfo, sAppComponentName) {
|
|
1240
1248
|
return oAnnotationHelper.formatImageOrTypeUrl(oInterface, oHeaderInfo.ImageUrl, oHeaderInfo.TypeImageUrl, sAppComponentName, true);
|
|
1241
|
-
},
|
|
1249
|
+
},
|
|
1242
1250
|
|
|
1243
1251
|
getPathWithExpandFromHeader: function (oInterface, oEntitySet, sNavigationProperty, oInputImageUrl, oTypeImageUrl) {
|
|
1244
1252
|
var sExpand, sNavigationPath;
|
|
@@ -1758,7 +1766,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
1758
1766
|
return iDraftColumnIndex;
|
|
1759
1767
|
},
|
|
1760
1768
|
|
|
1761
|
-
// 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
|
|
1762
1770
|
// or else on the 1st Index of the table.
|
|
1763
1771
|
_determineColumnIndexForDraftColumn: function (oContext, oLineItem) {
|
|
1764
1772
|
var sLineItemPath = oContext.getPath();
|
|
@@ -2099,7 +2107,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2099
2107
|
|
|
2100
2108
|
createP13NFileUploader: function(oInterface, oContextSet, mColumnWidthIncludingColumnHeader) {
|
|
2101
2109
|
var oEntityType = oInterface.getModel(0).getODataEntityType(oContextSet.entityType);
|
|
2102
|
-
var sP13N = "";
|
|
2110
|
+
var sP13N = "";
|
|
2103
2111
|
var oContentDisposition = oEntityType && oEntityType["Org.OData.Core.V1.ContentDisposition"];
|
|
2104
2112
|
var sColumnKey = oContentDisposition && oContentDisposition.Filename && oContentDisposition.Filename.Path;
|
|
2105
2113
|
var bIsWidthIncludingColumnHeader = calculateColumnHeader(mColumnWidthIncludingColumnHeader, sColumnKey);
|
|
@@ -2165,7 +2173,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2165
2173
|
if (oContextProp["com.sap.vocabularies.Common.v1.Text"] && oContextProp["com.sap.vocabularies.Common.v1.Text"].Path) {
|
|
2166
2174
|
aAdditionalProperties.push(sNavigation + oContextProp["com.sap.vocabularies.Common.v1.Text"].Path);
|
|
2167
2175
|
}
|
|
2168
|
-
|
|
2176
|
+
|
|
2169
2177
|
var oUnitAnnotation = oContextProp["Org.OData.Measures.V1.ISOCurrency"] || oContextProp["Org.OData.Measures.V1.Unit"];
|
|
2170
2178
|
if (oUnitAnnotation && oUnitAnnotation.Path) {
|
|
2171
2179
|
aAdditionalProperties.push(oUnitAnnotation.Path);
|
|
@@ -2372,7 +2380,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2372
2380
|
return false;
|
|
2373
2381
|
}
|
|
2374
2382
|
var sImageSrc = oAnnotationHelper.formatImageUrl(oInterface, oImageUrl, sAppComponentName);
|
|
2375
|
-
return !!sImageSrc;
|
|
2383
|
+
return !!sImageSrc;
|
|
2376
2384
|
},
|
|
2377
2385
|
getVisibilityForExtensionPointBeforeSimpleHeaderFacet: function (sEntitySet, oFacet, oManifestExtend, oDataField) {
|
|
2378
2386
|
var sSecondHalfIdPart;
|
|
@@ -2651,11 +2659,11 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2651
2659
|
* - Boolean value or
|
|
2652
2660
|
* - Expression binding
|
|
2653
2661
|
*/
|
|
2654
|
-
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType) {
|
|
2662
|
+
isRelatedEntityCreatable: function (oInterface, oSourceEntitySet, oRelatedEntitySet, aSubPages, oFacet, oGlobalSettings, bIsDraftEnabled, oCreateWithParameterDialog, sTableType, oAppSettings) {
|
|
2655
2663
|
var bHasSubObjectPage = oAnnotationHelper.hasSubObjectPage(oRelatedEntitySet, aSubPages),
|
|
2656
|
-
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings),
|
|
2664
|
+
sTableCreationMode = oAnnotationHelper.getCreationMode(oFacet, oGlobalSettings, oAppSettings),
|
|
2657
2665
|
bIsInlineCreationMode = ["inline", "creationRows", "creationRowsHiddenInEditMode"].includes(sTableCreationMode);
|
|
2658
|
-
|
|
2666
|
+
|
|
2659
2667
|
if (bHasSubObjectPage || bIsInlineCreationMode || oCreateWithParameterDialog) {
|
|
2660
2668
|
var aConditions = [],
|
|
2661
2669
|
sFinalCondition,
|
|
@@ -2708,7 +2716,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2708
2716
|
// If the creatable path is boolean, return it
|
|
2709
2717
|
if (typeof vCreatablePath === "boolean") {
|
|
2710
2718
|
return vCreatablePath;
|
|
2711
|
-
}
|
|
2719
|
+
}
|
|
2712
2720
|
// Return the creatable path is a valid property path (string), create an expression and return it
|
|
2713
2721
|
var sPrefix = (oCreatablePathObj.negate) ? "!" : "!!";
|
|
2714
2722
|
var sCreatablePathExp = sPrefix + "${" + vCreatablePath + "}";
|
|
@@ -2745,7 +2753,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2745
2753
|
* @returns {object} oResult - an object contains the creatable path info
|
|
2746
2754
|
* oResult.creatable - true or false or the creatable-path (string)
|
|
2747
2755
|
* oResult.negate - true when the creatable path is a non-insertable navigation property
|
|
2748
|
-
*
|
|
2756
|
+
*
|
|
2749
2757
|
*/
|
|
2750
2758
|
getCreatablePath: function (oInterface, oSourceEntitySet, oRelatedEntitySet) {
|
|
2751
2759
|
|
|
@@ -2755,7 +2763,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2755
2763
|
var oSourceEntityType = oModel.getODataEntityType(oSourceEntitySet.entityType);
|
|
2756
2764
|
var oRestrictionSetViaNavRestrictions;
|
|
2757
2765
|
var sFullCreatablePath;
|
|
2758
|
-
|
|
2766
|
+
|
|
2759
2767
|
// check if there are Insert Restrictions.
|
|
2760
2768
|
oRestrictionSetViaNavRestrictions = oAnnotationHelper.handleNavigationRestrictions(oModel, oSourceEntitySet, oRelatedEntitySet, "Insertable");
|
|
2761
2769
|
if (oRestrictionSetViaNavRestrictions && oRestrictionSetViaNavRestrictions["Insertable"]) {
|
|
@@ -2795,7 +2803,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
2795
2803
|
}
|
|
2796
2804
|
}
|
|
2797
2805
|
}
|
|
2798
|
-
|
|
2806
|
+
|
|
2799
2807
|
return oResult;
|
|
2800
2808
|
},
|
|
2801
2809
|
/***************************************************************
|
|
@@ -3179,9 +3187,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3179
3187
|
* Responsibility, resolve paths at pre-processing
|
|
3180
3188
|
* @function
|
|
3181
3189
|
* @private
|
|
3182
|
-
* @
|
|
3183
|
-
* @
|
|
3184
|
-
* @
|
|
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
|
|
3185
3193
|
* @returns {string} A binding expression containing the formula to calculate the Progress Indicator percent value
|
|
3186
3194
|
*/
|
|
3187
3195
|
buildExpressionForProgressIndicatorPercentValue: function (oInterface, dataPoint, mUoM) {
|
|
@@ -3223,9 +3231,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3223
3231
|
* This formatter is called at pre-processing time
|
|
3224
3232
|
* @function
|
|
3225
3233
|
* @private
|
|
3226
|
-
* @
|
|
3227
|
-
* @
|
|
3228
|
-
* @
|
|
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
|
|
3229
3237
|
* @returns {string} A binding expression containing the formatter and parts to compute the Progress Indicator display value
|
|
3230
3238
|
*/
|
|
3231
3239
|
buildExpressionForProgressIndicatorDisplayValue: function (oInterface, dataPoint, mUoM) {
|
|
@@ -3248,8 +3256,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3248
3256
|
* This formatter is called at pre-processing time
|
|
3249
3257
|
* @function
|
|
3250
3258
|
* @private
|
|
3251
|
-
* @
|
|
3252
|
-
* @
|
|
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
|
|
3253
3261
|
* @returns {string} A binding expression containing the display value for the tooltip
|
|
3254
3262
|
*/
|
|
3255
3263
|
getProgressIndicatorTooltip: function (oInterface, mUoM) {
|
|
@@ -3265,8 +3273,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3265
3273
|
* Step 1: Check if datapoint is annotated with CriticalityType or CriticalityCalculationType
|
|
3266
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')
|
|
3267
3275
|
* Other cases are not valid and the default sap.ui.core.ValueState.None will be returned
|
|
3268
|
-
* @
|
|
3269
|
-
* @
|
|
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
|
|
3270
3278
|
* @returns {string} A binding expression for the criticality property of the Progress Indicator
|
|
3271
3279
|
*/
|
|
3272
3280
|
buildExpressionForProgressIndicatorCriticality: function (oInterface, dataPoint) {
|
|
@@ -3383,8 +3391,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3383
3391
|
/**
|
|
3384
3392
|
* Get entity set name for Smart Chart and Smart MicroChart.
|
|
3385
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).
|
|
3386
|
-
* @
|
|
3387
|
-
* @
|
|
3394
|
+
* @param {object} refEntitySet The referenced entity set
|
|
3395
|
+
* @param {object} entitySet The entity set of the current object in the page
|
|
3388
3396
|
* @returns {string} sEntitySetName The entity set name for the main object type or the referenced entity set
|
|
3389
3397
|
*/
|
|
3390
3398
|
getEntitySetName: function (refEntitySet, entitySet) {
|
|
@@ -3415,7 +3423,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3415
3423
|
getActionCommandVisibility: function (sButtonId) {
|
|
3416
3424
|
return !sButtonId || "{= " + oAnnotationHelper.getControlVisibleTerm(sButtonId) + " && " + oAnnotationHelper.getControlEnabledTerm(sButtonId) + "}";
|
|
3417
3425
|
},
|
|
3418
|
-
|
|
3426
|
+
|
|
3419
3427
|
buildVisibilityExprOfDataFieldForIntentBasedNaviButton: function (oDataField) {
|
|
3420
3428
|
//If UI.Hidden annotation is used, UI.Hidden gets the highest priority
|
|
3421
3429
|
if (oDataField["com.sap.vocabularies.UI.v1.Hidden"]) {
|
|
@@ -3743,7 +3751,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3743
3751
|
}
|
|
3744
3752
|
return sRet;
|
|
3745
3753
|
},
|
|
3746
|
-
|
|
3754
|
+
|
|
3747
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
|
|
3748
3756
|
// logs that this binding string is incorrect. In all other cases it returns true (even if AnnotationHelperModel.simplePath throws an exception).
|
|
3749
3757
|
isDataFieldRenderable: function(oInterface, oDataFieldValue){
|
|
@@ -3796,7 +3804,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3796
3804
|
AnnotationHelperModelBasics.expectType(oSubPathValue, "string");
|
|
3797
3805
|
// Note: "PropertyPath" is treated the same...
|
|
3798
3806
|
var oTarget = AnnotationHelperModelBasics.followPath(oSubPathValueInterface, {"Path" : sBindingPath});
|
|
3799
|
-
return !!(oTarget && oTarget.resolvedPath);
|
|
3807
|
+
return !!(oTarget && oTarget.resolvedPath);
|
|
3800
3808
|
|
|
3801
3809
|
case "Bool": // 14.4.2 Expression edm:Bool
|
|
3802
3810
|
case "Date": // 14.4.3 Expression edm:Date
|
|
@@ -3825,7 +3833,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
3825
3833
|
return true;
|
|
3826
3834
|
default:
|
|
3827
3835
|
return true;
|
|
3828
|
-
}
|
|
3836
|
+
}
|
|
3829
3837
|
},
|
|
3830
3838
|
|
|
3831
3839
|
setNoDataTextForSmartTable: function (sEntitySet, sSmartTableId) {
|
|
@@ -4140,13 +4148,13 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4140
4148
|
}
|
|
4141
4149
|
if (oAddress[0].locality) {
|
|
4142
4150
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].locality) + ", ");
|
|
4143
|
-
}
|
|
4151
|
+
}
|
|
4144
4152
|
if (oAddress[0].region) {
|
|
4145
4153
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].region) + ", ");
|
|
4146
|
-
}
|
|
4154
|
+
}
|
|
4147
4155
|
if (oAddress[0].country) {
|
|
4148
4156
|
sAddress += (AnnotationHelperModel.format(oInterface, oAddress[0].country) + ", ");
|
|
4149
|
-
}
|
|
4157
|
+
}
|
|
4150
4158
|
return sAddress.slice(0, sAddress.length - 2);
|
|
4151
4159
|
},
|
|
4152
4160
|
|
|
@@ -4198,7 +4206,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4198
4206
|
var aIsCopyAction = (aCollection || []).filter(function (oRecord) {
|
|
4199
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));
|
|
4200
4208
|
});
|
|
4201
|
-
|
|
4209
|
+
|
|
4202
4210
|
if (aIsCopyAction.length > 1) {
|
|
4203
4211
|
oLogger.error("Multiple actions are annotated with isCopyAction. There can be only one standard copy action.");
|
|
4204
4212
|
}
|
|
@@ -4207,8 +4215,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4207
4215
|
|
|
4208
4216
|
/**
|
|
4209
4217
|
* This method reads the insertable navigation restrictions from parent entity and builds customize config object.
|
|
4210
|
-
* The smart table reads the customize config and sets the editability of smart fields
|
|
4211
|
-
*
|
|
4218
|
+
* The smart table reads the customize config and sets the editability of smart fields
|
|
4219
|
+
*
|
|
4212
4220
|
* @param {*} oInterface Context
|
|
4213
4221
|
* @param {*} oSourceEntitySet Parent entity set (entity set of object page)
|
|
4214
4222
|
* @param {*} oRelatedEntitySet Entity set of smart table
|
|
@@ -4232,7 +4240,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4232
4240
|
}
|
|
4233
4241
|
//Turn off client-side mandatory check
|
|
4234
4242
|
oCustomizeConfig["clientSideMandatoryCheck"] = {
|
|
4235
|
-
"*": false
|
|
4243
|
+
"*": false
|
|
4236
4244
|
};
|
|
4237
4245
|
}
|
|
4238
4246
|
if (mColumnWidthIncludingColumnHeader) {
|
|
@@ -4283,7 +4291,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4283
4291
|
}
|
|
4284
4292
|
return sActionPress;
|
|
4285
4293
|
},
|
|
4286
|
-
|
|
4294
|
+
|
|
4287
4295
|
/**
|
|
4288
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
|
|
4289
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
|
|
@@ -4292,7 +4300,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4292
4300
|
* @param {boolean} isDraftEnabled draft or non draft scenario
|
|
4293
4301
|
* @param {object} oMetaModel metamodel
|
|
4294
4302
|
* @param {string} sEntityType entity type of the detail page to which property belongs
|
|
4295
|
-
* @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
|
|
4296
4304
|
* combination with other field(s).
|
|
4297
4305
|
*/
|
|
4298
4306
|
getSideEffectSourcePropertyType: function(sPropertyPath, isDraftEnabled, oMetaModel, sEntityType) {
|
|
@@ -4300,7 +4308,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4300
4308
|
},
|
|
4301
4309
|
|
|
4302
4310
|
/**
|
|
4303
|
-
* 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
|
|
4304
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.
|
|
4305
4313
|
* scenarios. With this change, application(s) who has already enabled the variant management will continue to have the old persistencyKey and should have
|
|
4306
4314
|
* no impact whatsoever. However, application(s) should not enable it going forward because of two reasons:
|
|
@@ -4347,7 +4355,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4347
4355
|
: "";
|
|
4348
4356
|
},
|
|
4349
4357
|
|
|
4350
|
-
getNavigationPropertyPath: function (oInterface, vRawValue) {
|
|
4358
|
+
getNavigationPropertyPath: function (oInterface, vRawValue) {
|
|
4351
4359
|
var sNavigationPath = AnnotationHelperModel.getNavigationPath(oInterface, vRawValue);
|
|
4352
4360
|
var sNavigationPropertyPath = sNavigationPath.replace("{", "").replace("}", "");
|
|
4353
4361
|
return sNavigationPropertyPath;
|
|
@@ -4418,6 +4426,6 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4418
4426
|
oAnnotationHelper.getLinkTextForDFwithEmail.requiresIContext = true;
|
|
4419
4427
|
oAnnotationHelper.checkIsEmailAddress.requiresIContext = true;
|
|
4420
4428
|
oAnnotationHelper.isEmailAddressAndMuliplicity.requiresIContext = true;
|
|
4421
|
-
|
|
4429
|
+
|
|
4422
4430
|
return oAnnotationHelper;
|
|
4423
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;
|