@sapui5/sap.suite.ui.generic.template 1.138.1 → 1.140.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 +2 -3
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/Component.js +0 -7
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +5 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +5 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +9 -22
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n.properties +0 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cnr.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lt.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sh.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sl.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sr.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +0 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +0 -9
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentContainer.fragment.xml +0 -7
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentViewButtons.fragment.xml +0 -6
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +34 -33
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +2 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/annotationHelpers/AnnotationHelperActionButtons.js +26 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +69 -26
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageSortingHandler.js +51 -49
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MultipleViewsHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +16 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +20 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartForm.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +1 -0
- 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/controls/DynamicPage.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +6 -1
- package/src/sap/suite/ui/generic/template/fragments/AINotice.fragment.xml +24 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +4 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +4 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/polyFill.js +6 -7
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +86 -15
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +2 -2
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +3 -2
- package/src/sap/suite/ui/generic/template/lib/Application.js +2 -2
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +16 -12
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +3 -6
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +16 -2
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +3 -1
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +3 -4
- package/src/sap/suite/ui/generic/template/lib/StatePreserver.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ViewDependencyHelper.js +7 -2
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +407 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +82 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillNonUpdatableSmartForm.fragment.xml +18 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillUpdatebleSmartForm.fragment.xml +15 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +53 -9
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +2 -1
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +5 -7
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +72 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +156 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +52 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +49 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +48 -0
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +1 -2
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +26 -19
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/DetailController.js +6 -2
- package/src/sap/suite/ui/generic/template/listTemplates/controller/IappStateHandler.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/ToolbarController.js +2 -10
- package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/ALPConstants.less +14 -14
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +51 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ALPConstants.less +14 -14
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ALPConstants.less +14 -14
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/ALPConstants.less +14 -14
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/AnalyticGridController.js +0 -38
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/alr_readme.txt +0 -23
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/crosstab_library.css +0 -20
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/readme.txt +0 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/sort_asc.gif +0 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/sort_desc.gif +0 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/sort_none.gif +0 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/treenode_collapse.gif +0 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/style/img/treenode_expand.gif +0 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/AnalyticGrid.fragment.xml +0 -21
- package/src/sap/suite/ui/generic/template/themes/base/alr_zen.css +0 -127
- package/src/sap/suite/ui/generic/template/themes/base/crosstab_library.css +0 -20
- package/src/sap/suite/ui/generic/template/themes/base/img/readme.txt +0 -4
- package/src/sap/suite/ui/generic/template/themes/base/img/sort_asc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/base/img/sort_desc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/base/img/sort_none.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/base/img/treenode_collapse.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/base/img/treenode_expand.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/alr_zen.css +0 -136
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/crosstab_library.css +0 -20
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/readme.txt +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_asc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_desc.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/sort_none.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/treenode_collapse.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/img/treenode_expand.gif +0 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/alr_zen.css +0 -136
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/crosstab_library.css +0 -20
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
+
<Popover
|
|
3
|
+
showArrow="true"
|
|
4
|
+
showHeader="true"
|
|
5
|
+
placement="Auto"
|
|
6
|
+
class="sapSmartTemplatesObjectPageEasyFillAINoticePopover"
|
|
7
|
+
title="{i18n>EASY_FILL_POPOVER_AI_TITLE}"
|
|
8
|
+
>
|
|
9
|
+
<content>
|
|
10
|
+
<VBox>
|
|
11
|
+
<Text text="{i18n>EASY_FILL_POPOVER_AI_TEXT_1}" class="sapSmartTemplatesObjectPageEasyFillAINotice"/>
|
|
12
|
+
<Text text="{i18n>EASY_FILL_POPOVER_AI_TEXT_2}" class="sapSmartTemplatesObjectPageEasyFillAINotice"/>
|
|
13
|
+
</VBox>
|
|
14
|
+
</content>
|
|
15
|
+
<footer>
|
|
16
|
+
<OverflowToolbar>
|
|
17
|
+
<ToolbarSpacer />
|
|
18
|
+
<Button
|
|
19
|
+
text="{i18n>ST_GENERIC_DIALOG_CLOSE_BUT}"
|
|
20
|
+
press="onCloseAiPopover" />
|
|
21
|
+
</OverflowToolbar>
|
|
22
|
+
</footer>
|
|
23
|
+
</Popover>
|
|
24
|
+
</core:FragmentDefinition>
|
|
@@ -44,8 +44,10 @@ sap.ui.define([
|
|
|
44
44
|
oCurrentFocus = getControlWithFocus();
|
|
45
45
|
var oTest = oCurrentFocus;
|
|
46
46
|
var bIsTargetSmartField = oControlHelper.isSmartField(oControl);
|
|
47
|
-
|
|
48
|
-
oTest
|
|
47
|
+
if (bIsTargetSmartField) {
|
|
48
|
+
while (oTest && oTest !== oControl && !oControlHelper.isSmartField(oTest)) {
|
|
49
|
+
oTest = oTest.getParent();
|
|
50
|
+
}
|
|
49
51
|
}
|
|
50
52
|
if (oTest !== oControl){
|
|
51
53
|
oLogger.warning(oCurrentFocus ? ("Focus is now on control with id " + oCurrentFocus.getId()) : "There is no focus now");
|
|
@@ -54,7 +54,10 @@ sap.ui.define([
|
|
|
54
54
|
// don't create UiState (managed object) from scratch, but fetch it from control and only apply known properties from state - thus, if any other properties would be added, we don't
|
|
55
55
|
// interfere with them
|
|
56
56
|
var oUiState = oControl.getUiState();
|
|
57
|
-
if (
|
|
57
|
+
if (
|
|
58
|
+
oUiState.getProperty("variantName") === "" ||
|
|
59
|
+
oControl.getVariantManagement().getModified() && oControl.getVariantManagement().getStandardVariantKey() === oUiState.getProperty("variantName")
|
|
60
|
+
){
|
|
58
61
|
oUiState.setPresentationVariant(oState.oUiState.oPresentationVariant);
|
|
59
62
|
oUiState.setSelectionVariant(oState.oUiState.oSelectionVariant);
|
|
60
63
|
oUiState.setTableSettings(oState.oUiState.oTableSettings);
|
|
@@ -33,13 +33,12 @@ sap.ui.define([
|
|
|
33
33
|
*/
|
|
34
34
|
if (!Promise.withResolvers) {
|
|
35
35
|
Promise.withResolvers = function() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
return promise;
|
|
36
|
+
var result = {};
|
|
37
|
+
result.promise = new Promise(function(resolve, reject) {
|
|
38
|
+
result.resolve = resolve;
|
|
39
|
+
result.reject = reject;
|
|
40
|
+
});
|
|
41
|
+
return result;
|
|
43
42
|
};
|
|
44
43
|
}
|
|
45
44
|
/**
|
|
@@ -478,9 +478,9 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
478
478
|
var oModel = oInterface.getInterface(1).getModel();
|
|
479
479
|
// p13nData for Semantically Connected Columns
|
|
480
480
|
var sLeadingPropertyForSCColumn = "";
|
|
481
|
-
var
|
|
482
|
-
var
|
|
483
|
-
var
|
|
481
|
+
var oNavigationPropertiesSet = new Set();
|
|
482
|
+
var oAdditionalPropertiesSet = new Set();
|
|
483
|
+
var oAdditionalSortPropertiesSet = new Set();
|
|
484
484
|
var sActionButton = "false";
|
|
485
485
|
oConnectedDataFields = oConnectedDataFields && oConnectedDataFields.Data;
|
|
486
486
|
for (var i = 0; i < oConnectedDataFields.length; i++) {
|
|
@@ -533,16 +533,26 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
533
533
|
if (!sLeadingPropertyForSCColumn && oP13N.leadingProperty) {
|
|
534
534
|
sLeadingPropertyForSCColumn = oP13N.leadingProperty;
|
|
535
535
|
} else {
|
|
536
|
-
|
|
537
|
-
|
|
536
|
+
if (oP13N.leadingProperty) {
|
|
537
|
+
oAdditionalPropertiesSet.add(oP13N.leadingProperty);
|
|
538
|
+
oAdditionalSortPropertiesSet.add(oP13N.leadingProperty);
|
|
539
|
+
}
|
|
538
540
|
}
|
|
539
541
|
|
|
540
|
-
|
|
542
|
+
if (oP13N.navigationProperty) {
|
|
543
|
+
oNavigationPropertiesSet.add(oP13N.navigationProperty);
|
|
544
|
+
}
|
|
541
545
|
// Add "additionalProperty" of current data field to the "additionalProperty" of current column's p13n
|
|
542
|
-
|
|
546
|
+
if (oP13N.additionalProperty) {
|
|
547
|
+
oAdditionalPropertiesSet.add(oP13N.additionalProperty);
|
|
548
|
+
}
|
|
543
549
|
// Add "description" & "unit" of current data field to the "additionalSortProperty" of current column's p13n
|
|
544
|
-
|
|
545
|
-
|
|
550
|
+
if (oP13N.description) {
|
|
551
|
+
oAdditionalSortPropertiesSet.add(oP13N.description);
|
|
552
|
+
}
|
|
553
|
+
if (oP13N.unit) {
|
|
554
|
+
oAdditionalSortPropertiesSet.add(oP13N.unit);
|
|
555
|
+
}
|
|
546
556
|
if (sActionButton === "false") {
|
|
547
557
|
sActionButton = oP13N.actionButton;
|
|
548
558
|
}
|
|
@@ -565,14 +575,14 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
565
575
|
sP13N += '", "sortProperty":"' + sLeadingPropertyForSCColumn;
|
|
566
576
|
}
|
|
567
577
|
|
|
568
|
-
if (
|
|
569
|
-
sP13N += '", "navigationProperty":"' +
|
|
578
|
+
if (oNavigationPropertiesSet.size > 0) {
|
|
579
|
+
sP13N += '", "navigationProperty":"' + Array.from(oNavigationPropertiesSet).join();
|
|
570
580
|
}
|
|
571
|
-
if (
|
|
572
|
-
sP13N += '", "additionalProperty":"' +
|
|
581
|
+
if (oAdditionalPropertiesSet.size > 0) {
|
|
582
|
+
sP13N += '", "additionalProperty":"' + Array.from(oAdditionalPropertiesSet).join();
|
|
573
583
|
}
|
|
574
|
-
if (
|
|
575
|
-
sP13N += '", "additionalSortProperty":"' +
|
|
584
|
+
if (oAdditionalSortPropertiesSet.size > 0) {
|
|
585
|
+
sP13N += '", "additionalSortProperty":"' + Array.from(oAdditionalSortPropertiesSet).join();
|
|
576
586
|
}
|
|
577
587
|
|
|
578
588
|
sP13N += '", "actionButton":"' + sActionButton + '"';
|
|
@@ -724,6 +734,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
724
734
|
}
|
|
725
735
|
},
|
|
726
736
|
|
|
737
|
+
|
|
727
738
|
getShareOptionVisibility: function(bFlexibleColumnLayout) {
|
|
728
739
|
if (bFlexibleColumnLayout) {
|
|
729
740
|
return "{= !(" + fnGetCommonShareVisibilityPath() + " || ${_templPrivGlobal>/generic/FCL/highestViewLevel})}";
|
|
@@ -4513,6 +4524,65 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4513
4524
|
break;
|
|
4514
4525
|
}
|
|
4515
4526
|
return sPriority;
|
|
4527
|
+
},
|
|
4528
|
+
|
|
4529
|
+
getModelData: function(oInterface, sBaseAnnotationPath, sEntitySetName) {
|
|
4530
|
+
var oModel = oInterface.getModel() ? oInterface.getModel() : oInterface.getInterface(0).getModel(),
|
|
4531
|
+
oBaseEntityType = oModel.getODataEntityType(oModel.getODataEntitySet(sEntitySetName).entityType);
|
|
4532
|
+
|
|
4533
|
+
if (sBaseAnnotationPath.indexOf("/") > -1) {
|
|
4534
|
+
var oRelevantData = oAnnotationHelper.getRelevantDataForAnnotationRecord(oModel, sBaseAnnotationPath, oBaseEntityType);
|
|
4535
|
+
return {
|
|
4536
|
+
sAnnotationPath: oRelevantData.dataFieldValuePath[0] === '@' ? oRelevantData.dataFieldValuePath.substring(1) : oRelevantData.dataFieldValuePath,
|
|
4537
|
+
oEntityType: oRelevantData.entityType
|
|
4538
|
+
};
|
|
4539
|
+
}
|
|
4540
|
+
return {
|
|
4541
|
+
sAnnotationPath: sBaseAnnotationPath[0] === '@' ? sBaseAnnotationPath.substring(1) : sBaseAnnotationPath,
|
|
4542
|
+
oEntityType: oBaseEntityType
|
|
4543
|
+
};
|
|
4544
|
+
},
|
|
4545
|
+
|
|
4546
|
+
getSmartFormTitle: function(oInterface, oFacet, sEntitySetName) {
|
|
4547
|
+
if (!oFacet) {
|
|
4548
|
+
return;
|
|
4549
|
+
}
|
|
4550
|
+
if (oFacet.Target && oFacet.Target.AnnotationPath && oFacet.Target.AnnotationPath.indexOf("com.sap.vocabularies.UI.v1.DataPoint") > -1) {
|
|
4551
|
+
// Process DataPoint case
|
|
4552
|
+
var { sAnnotationPath, oEntityType } = oAnnotationHelper.getModelData(oInterface, oFacet.Target.AnnotationPath, sEntitySetName);
|
|
4553
|
+
if (oEntityType[sAnnotationPath] && oEntityType[sAnnotationPath].Title && oEntityType[sAnnotationPath].Title.String) {
|
|
4554
|
+
return oEntityType[sAnnotationPath].Title.String;
|
|
4555
|
+
}
|
|
4556
|
+
// As DataPoint don't have title -> try to get property name as SmartForm title
|
|
4557
|
+
if (!oEntityType[sAnnotationPath] || !oEntityType[sAnnotationPath].Value || !oEntityType[sAnnotationPath].Value.Path || !oEntityType.property) {
|
|
4558
|
+
return;
|
|
4559
|
+
}
|
|
4560
|
+
var aProperty = oEntityType.property.filter(function(entry) {
|
|
4561
|
+
return entry.name === oEntityType[sAnnotationPath].Value.Path;
|
|
4562
|
+
});
|
|
4563
|
+
if (aProperty.length && aProperty[0]['sap:label']) {
|
|
4564
|
+
// Property name found
|
|
4565
|
+
return aProperty[0]['sap:label'];
|
|
4566
|
+
}
|
|
4567
|
+
return;
|
|
4568
|
+
}
|
|
4569
|
+
// It's Identification or FieldGroup case
|
|
4570
|
+
if (oFacet.Label && oFacet.Label.String) {
|
|
4571
|
+
return oFacet.Label.String;
|
|
4572
|
+
}
|
|
4573
|
+
if (!oFacet.Target || !oFacet.Target.AnnotationPath) {
|
|
4574
|
+
return;
|
|
4575
|
+
}
|
|
4576
|
+
if (oFacet.Target.AnnotationPath.indexOf("com.sap.vocabularies.UI.v1.Identification") > -1) {
|
|
4577
|
+
// Identification entry don't have any data which we can use as SmartForm title.
|
|
4578
|
+
return;
|
|
4579
|
+
}
|
|
4580
|
+
var { sAnnotationPath, oEntityType } = oAnnotationHelper.getModelData(oInterface, oFacet.Target.AnnotationPath, sEntitySetName);
|
|
4581
|
+
if (oEntityType[sAnnotationPath] && oEntityType[sAnnotationPath].Label && oEntityType[sAnnotationPath].Label.String) {
|
|
4582
|
+
// Use FieldGroup.Label.String as SmartForm title
|
|
4583
|
+
return oEntityType[sAnnotationPath].Label.String;
|
|
4584
|
+
}
|
|
4585
|
+
return;
|
|
4516
4586
|
}
|
|
4517
4587
|
};
|
|
4518
4588
|
oAnnotationHelper.getBlockForEditableHeaderFacet.requiresIContext = true;
|
|
@@ -4583,6 +4653,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
|
|
|
4583
4653
|
oAnnotationHelper.getTextArrangementPath.requiresIContext = true;
|
|
4584
4654
|
oAnnotationHelper.isValueHelpTableAvailable.requiresIContext = true;
|
|
4585
4655
|
oAnnotationHelper.getTextArrangementFinalString.requiresIContext = true;
|
|
4656
|
+
oAnnotationHelper.getSmartFormTitle.requiresIContext = true;
|
|
4586
4657
|
|
|
4587
4658
|
return oAnnotationHelper;
|
|
4588
4659
|
}, /* bExport= */ true);
|
|
@@ -511,7 +511,7 @@ sap.ui.define([
|
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
],
|
|
514
|
-
"$schema": "
|
|
514
|
+
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json"
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
|
|
@@ -574,7 +574,7 @@ sap.ui.define([
|
|
|
574
574
|
]
|
|
575
575
|
}
|
|
576
576
|
],
|
|
577
|
-
"$schema": "
|
|
577
|
+
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
|
|
578
578
|
"version": "1.4"
|
|
579
579
|
};
|
|
580
580
|
|
|
@@ -302,7 +302,8 @@ sap.ui.define([
|
|
|
302
302
|
"fioriAI": {
|
|
303
303
|
isSummarizationEnabled : false,
|
|
304
304
|
isEasyFilterEnabled : false,
|
|
305
|
-
isErrorExplanationEnabled : false
|
|
305
|
+
isErrorExplanationEnabled : false,
|
|
306
|
+
isEasyFillEnabled: false
|
|
306
307
|
}
|
|
307
308
|
});
|
|
308
309
|
oAppComponent.setModel(oTemplateContract.oTemplatePrivateGlobalModel, "_templPrivGlobal");
|
|
@@ -944,7 +945,7 @@ sap.ui.define([
|
|
|
944
945
|
* @public
|
|
945
946
|
* @extends sap.ui.core.UIComponent
|
|
946
947
|
* @author SAP SE
|
|
947
|
-
* @version 1.
|
|
948
|
+
* @version 1.140.0
|
|
948
949
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
949
950
|
*/
|
|
950
951
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -856,7 +856,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
856
856
|
oLogger.info("Show message toast");
|
|
857
857
|
MessageToast.show.apply(MessageToast, myArguments);
|
|
858
858
|
};
|
|
859
|
-
Promise.all([getOperationEndedPromise(
|
|
859
|
+
Promise.all([getOperationEndedPromise(), oTemplateContract.oBusyHelper.getUnbusy()]).then(fnMessageToast);
|
|
860
860
|
},
|
|
861
861
|
showMessageBox: function() {
|
|
862
862
|
var myArguments = arguments;
|
|
@@ -864,7 +864,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
864
864
|
oLogger.info("Show message box");
|
|
865
865
|
MessageBox.show.apply(MessageBox, myArguments);
|
|
866
866
|
};
|
|
867
|
-
Promise.all([getOperationEndedPromise(
|
|
867
|
+
Promise.all([getOperationEndedPromise(), oTemplateContract.oBusyHelper.getUnbusy()]).then(fnMessageBox);
|
|
868
868
|
},
|
|
869
869
|
registerStateChanger: fnRegisterStateChanger,
|
|
870
870
|
createDraftSiblingPromise: oContextBookkeeping.createDraftSiblingPromise,
|
|
@@ -400,7 +400,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
400
400
|
oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oSettings.smartTable).refresh("Changes");
|
|
401
401
|
}
|
|
402
402
|
var fnHandleResponse = function(aDeleteResults){
|
|
403
|
-
var oParsedDeleteResult = fnParseResponse(aPath, aDeleteResults, bWithWarningDialog
|
|
403
|
+
var oParsedDeleteResult = fnParseResponse(aPath, aDeleteResults, bWithWarningDialog);
|
|
404
404
|
mFailed = extend(mFailed, oParsedDeleteResult.mFailed);
|
|
405
405
|
mSuccess = extend(mSuccess, oParsedDeleteResult.mSuccess);
|
|
406
406
|
mWarning = oParsedDeleteResult.mWarning;
|
|
@@ -28,7 +28,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
28
28
|
"sap/ui/core/CustomData",
|
|
29
29
|
"sap/m/VBox",
|
|
30
30
|
"sap/suite/ui/generic/template/genericUtilities/utils",
|
|
31
|
-
"sap/ui/core/Element"
|
|
31
|
+
"sap/ui/core/Element",
|
|
32
|
+
"sap/ui/generic/app/util/ModelUtil"
|
|
32
33
|
], function(
|
|
33
34
|
BaseObject,
|
|
34
35
|
Event,
|
|
@@ -60,7 +61,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
60
61
|
CustomData,
|
|
61
62
|
VBox,
|
|
62
63
|
genericUtils,
|
|
63
|
-
Element
|
|
64
|
+
Element,
|
|
65
|
+
ModelUtil
|
|
64
66
|
) {
|
|
65
67
|
"use strict";
|
|
66
68
|
|
|
@@ -1094,7 +1096,11 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1094
1096
|
// and text, using the formatutil and the textarrangement, title should
|
|
1095
1097
|
// be passed on the smartlink
|
|
1096
1098
|
if (oControl.getFieldName) {
|
|
1097
|
-
|
|
1099
|
+
// The value "sEntitySet" holds the entity set of an object page or a table.
|
|
1100
|
+
//
|
|
1101
|
+
// Sometimes, the SmartLink is located on a field group which belongs to the child entity set of object page.
|
|
1102
|
+
// So, we have to always derive the entity type from the smart link's binding context.
|
|
1103
|
+
var oEntityType = ModelUtil.getEntityTypeFromContext(oControl.getBindingContext());
|
|
1098
1104
|
var oField = oEntityType.property.find(function (oProperty) { return oProperty.name === sSourceClickedField; });
|
|
1099
1105
|
var sTextArrangement = "descriptionAndId";
|
|
1100
1106
|
if (oField) { // TODO: Need to provide the correct field Object using the entityType and corresponding association (should be handled by a BLI)
|
|
@@ -1103,7 +1109,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1103
1109
|
var vValue = oControl.getBinding("text").getValue(); // could be array or string
|
|
1104
1110
|
if (Array.isArray(vValue)){
|
|
1105
1111
|
var oTexts = FormatUtil.getTextsFromDisplayBehaviour(sTextArrangement, vValue[0], vValue[1]);
|
|
1106
|
-
if (oMainNavigation) {
|
|
1112
|
+
if (!oField["sap:unit"] && oMainNavigation) {
|
|
1107
1113
|
oMainNavigation.setDescription(oTexts.secondText);
|
|
1108
1114
|
}
|
|
1109
1115
|
sTitle = oTexts.firstText;
|
|
@@ -1662,7 +1668,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1662
1668
|
var sTableEntitySet = oTable.getEntitySet();
|
|
1663
1669
|
oCommonUtils.setExternalChevronRefreshBehaviour(sTableEntitySet);
|
|
1664
1670
|
|
|
1665
|
-
fnNavigateIntentManifest(oEventSource, oBindingContext, oState.oSmartFilterbar,
|
|
1671
|
+
fnNavigateIntentManifest(oEventSource, oBindingContext, oState.oSmartFilterbar, true);
|
|
1666
1672
|
return;
|
|
1667
1673
|
}
|
|
1668
1674
|
|
|
@@ -2346,7 +2352,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2346
2352
|
if (oEventSource.data("CrossNavigation")) {
|
|
2347
2353
|
oServices.oViewDependencyHelper.setMeToDirty(oComponent, sEntitySet, true);
|
|
2348
2354
|
|
|
2349
|
-
fnNavigateIntentManifest(oEventSource, oEventSource.getBindingContext(), oSmartFilterBar,
|
|
2355
|
+
fnNavigateIntentManifest(oEventSource, oEventSource.getBindingContext(), oSmartFilterBar, true);
|
|
2350
2356
|
return Promise.resolve();
|
|
2351
2357
|
}
|
|
2352
2358
|
var oNonDraftCreatePromise = oComponentUtils.getNonDraftCreatePromise(sEntitySet, oPredefinedValues);
|
|
@@ -2562,12 +2568,10 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2562
2568
|
var sPath = oContext.getPath();
|
|
2563
2569
|
var oContactData = oModel.getContext(sPath);
|
|
2564
2570
|
var oContactAnnotation = JSON.parse(oSourceControl.data("contactDetails"));
|
|
2565
|
-
var
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
sEmail = (oContactAnnotation.email[0].address && oContactAnnotation.email[0].address.String);
|
|
2570
|
-
}
|
|
2571
|
+
var emailObj = oContactAnnotation?.email?.[0]?.address;
|
|
2572
|
+
var sEmail = emailObj?.Path
|
|
2573
|
+
? oContactData.getProperty(emailObj.Path)
|
|
2574
|
+
: emailObj?.String;
|
|
2571
2575
|
|
|
2572
2576
|
|
|
2573
2577
|
fnFetchContactStatus(sEmail).then(function (oContactStatus) {
|
|
@@ -212,8 +212,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
// sap.suite.ui.generic.template.lib.CommonUtils.prototype.getSelectedContexts.getDialogFragment below
|
|
215
|
-
function getDialogFragmentAsync(sName, oFragmentController, sModel, fnOnFragmentCreated, bAlwaysGetNew) {
|
|
216
|
-
return oServices.oApplication.getDialogFragmentForViewAsync(oController.getView(), sName, oFragmentController, sModel, fnOnFragmentCreated, bAlwaysGetNew);
|
|
215
|
+
function getDialogFragmentAsync(sName, oFragmentController, sModel, fnOnFragmentCreated, bAlwaysGetNew,bNoBusyAware) {
|
|
216
|
+
return oServices.oApplication.getDialogFragmentForViewAsync(oController.getView(), sName, oFragmentController, sModel, fnOnFragmentCreated, bAlwaysGetNew,bNoBusyAware);
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
var oResourceBundle; // initialized on first use
|
|
@@ -1354,8 +1354,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1354
1354
|
return fnExecute2();
|
|
1355
1355
|
});
|
|
1356
1356
|
} else {
|
|
1357
|
-
oRet = (mParameters.dataloss.popup ? fnProcessDataLossOrDraftDiscardConfirmation(fnExecute2, fnReject,
|
|
1358
|
-
null, (mParameters.dataloss.navigation ? "LeavePage" : "Proceed"), true) : fnExecute2());
|
|
1357
|
+
oRet = (mParameters.dataloss.popup ? fnProcessDataLossOrDraftDiscardConfirmation(fnExecute2, fnReject, (mParameters.dataloss.navigation ? "LeavePage" : "Proceed"), true) : fnExecute2());
|
|
1359
1358
|
}
|
|
1360
1359
|
|
|
1361
1360
|
if (oRet instanceof Promise) {
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
var renderContactDetailsFragment = function() {
|
|
35
35
|
oCommonUtils.getDialogFragmentAsync("sap.suite.ui.generic.template.fragments.ContactDetails", {
|
|
36
36
|
formatUri: function (sValue) {
|
|
37
|
-
var mailregex =
|
|
37
|
+
var mailregex = /^[a-zA-Z0-9._%+-]+@([a-zA-Z0-9]+(-[a-zA-Z0-9]+)*\.)+[a-zA-Z]{2,}$/;
|
|
38
38
|
if (mailregex.test(sValue)) {
|
|
39
39
|
return "mailto:" + sValue;
|
|
40
40
|
} else {
|
|
@@ -753,12 +753,9 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/each", "sap/base/util/extend
|
|
|
753
753
|
|
|
754
754
|
//swap, if oContextData1 either doesn't hold a value or doesn't have oContext and oContextData2 is available and is an active object
|
|
755
755
|
if ((!oContextData1 || !oContextData1.oContext) && (oContextData2 && !oContextData2.oContextInfo.bIsDraft)) {
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
oContextData1 = fnSwap(oContextData2, oContextData2 = oContextData1);
|
|
760
|
-
sCanonicalPath1 = fnSwap(sCanonicalPath2, sCanonicalPath2 = sCanonicalPath1);
|
|
761
|
-
oHistoricIdentity = fnSwap(oNewIdentity, oNewIdentity = oHistoricIdentity);
|
|
756
|
+
[oContextData1, oContextData2] = [oContextData2, oContextData1];
|
|
757
|
+
[sCanonicalPath1, sCanonicalPath2] = [sCanonicalPath2, sCanonicalPath1];
|
|
758
|
+
[oHistoricIdentity, oNewIdentity] = [oNewIdentity, oHistoricIdentity];
|
|
762
759
|
}
|
|
763
760
|
function fnTestEquivalence (oContextData1, oContextData2) {
|
|
764
761
|
if (!oContextData1 || !oContextData2) {
|
|
@@ -245,7 +245,17 @@ sap.ui.define([
|
|
|
245
245
|
return false;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* Evaluates the menu items in a menu button and adds them to the context menu based on the following rules:
|
|
251
|
+
*
|
|
252
|
+
* 1. If multiple menu items are eligible for the context menu,
|
|
253
|
+
* - A main menu entry is added to the context menu with the same text as menu button.
|
|
254
|
+
* - The eligible menu items are added as sub-menu entries under this main entry.
|
|
255
|
+
*
|
|
256
|
+
* 2. If only one menu item is eligible,
|
|
257
|
+
* - It's directly added as a top-level entry in the context menu
|
|
258
|
+
*/
|
|
249
259
|
function fnAddMenuButtonToContextMenu(sPathToItems, oFocusInfo, oToolbarControlsData, aItems, oMenuButton, bStartsNewSection) {
|
|
250
260
|
var aMenuItems = oMenuButton.getMenu().getItems();
|
|
251
261
|
|
|
@@ -255,7 +265,11 @@ sap.ui.define([
|
|
|
255
265
|
fnAddToolbarButtonToContextMenu(sItemsPath, oFocusInfo, oToolbarControlsData, aChildContextMenuEntries, oMenuItem, bStartsSectionOnSubMenu);
|
|
256
266
|
});
|
|
257
267
|
|
|
258
|
-
if (aChildContextMenuEntries.length
|
|
268
|
+
if (aChildContextMenuEntries.length === 1) {
|
|
269
|
+
var oChildContextMenuEntry = aChildContextMenuEntries[0];
|
|
270
|
+
fnAddMenuItem(sPathToItems, aItems, oChildContextMenuEntry.text, oChildContextMenuEntry.icon, oChildContextMenuEntry.startsSection, oChildContextMenuEntry.handlerPromise);
|
|
271
|
+
return true;
|
|
272
|
+
} else if (aChildContextMenuEntries.length > 1) {
|
|
259
273
|
fnAddMenuItem(sPathToItems, aItems, oMenuButton.getText(), oMenuButton.getIcon(), bStartsNewSection, null, aChildContextMenuEntries);
|
|
260
274
|
return true;
|
|
261
275
|
}
|
|
@@ -163,7 +163,8 @@ sap.ui.define([
|
|
|
163
163
|
}
|
|
164
164
|
var oRet = {};
|
|
165
165
|
var bPerformAnalysis = true;
|
|
166
|
-
|
|
166
|
+
var oTreeNode = oCurrentIdentity.treeNode;
|
|
167
|
+
while (bPerformAnalysis) {
|
|
167
168
|
var iFCLLevel = oTreeNode.fCLLevel;
|
|
168
169
|
var sPar = getColumnForFCLLevel(iFCLLevel);
|
|
169
170
|
oRet[sPar] = {
|
|
@@ -173,6 +174,7 @@ sap.ui.define([
|
|
|
173
174
|
};
|
|
174
175
|
bPerformAnalysis = iFCLLevel === 1 || iFCLLevel === 2;
|
|
175
176
|
bIsNonDraftCreate = false; // only last column can be the create column
|
|
177
|
+
oTreeNode = oTemplateContract.mRoutingTree[oTreeNode.parentRoute];
|
|
176
178
|
}
|
|
177
179
|
return oRet;
|
|
178
180
|
}
|
|
@@ -34,14 +34,13 @@ sap.ui.define(["sap/suite/ui/generic/template/js/AnnotationHelper",
|
|
|
34
34
|
return oSmartField._calculateFieldGroupIDs(oClonedMetaData);
|
|
35
35
|
}
|
|
36
36
|
function fnComputeFieldGroupAndTriggerSideEffect(oSmartField, sSideEffectSourcePropertyType) {
|
|
37
|
-
var aFieldGroupIds
|
|
38
|
-
var fnTriggerValidateFieldGroupEvent = function() {
|
|
37
|
+
var fnTriggerValidateFieldGroupEvent = function(aFieldGroupIds) {
|
|
39
38
|
if (aFieldGroupIds) {
|
|
40
39
|
oSmartField.triggerValidateFieldGroup(aFieldGroupIds);
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
|
-
var fnCallTriggerValidateFieldGroup = function(sSideEffectSourcePropertyType, oComputedMetaData) {
|
|
44
|
-
|
|
42
|
+
var fnCallTriggerValidateFieldGroup = function(sSideEffectSourcePropertyType, oComputedMetaData) {
|
|
43
|
+
var aFieldGroupIds;
|
|
45
44
|
switch (sSideEffectSourcePropertyType) {
|
|
46
45
|
case SideEffectSourcePropertyType.SINGLE_SOURCE_ONLY:
|
|
47
46
|
var aInnerControls = oSmartField.getInnerControls();
|
|
@@ -446,7 +446,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
446
446
|
function isStateChange(mAppStates){
|
|
447
447
|
sAppStateKeyInUrl = mAppStates[oSettings.appStateName] || "";
|
|
448
448
|
if (Array.isArray(sAppStateKeyInUrl)){
|
|
449
|
-
sAppStateKeyInUrl = sAppStateKeyInUrl.sort()[0] || "";
|
|
449
|
+
sAppStateKeyInUrl = sAppStateKeyInUrl.sort((a, b) => a.localeCompare(b))[0] || "";
|
|
450
450
|
}
|
|
451
451
|
if (oStoringInformation){
|
|
452
452
|
if (oStoringInformation.appStateKey !== sAppStateKeyInUrl){
|
|
@@ -25,13 +25,18 @@ sap.ui.define(["sap/ui/base/Object", "sap/suite/ui/generic/template/js/Annotatio
|
|
|
25
25
|
var sMyId = oComponent.getId();
|
|
26
26
|
var oComponentRegistryEntry = oTemplateContract.componentRegistry[sMyId];
|
|
27
27
|
var oTreeNode = oTemplateContract.mRoutingTree[oComponentRegistryEntry.route];
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
var i = 0;
|
|
29
|
+
while (oTreeNode.level > 0) {
|
|
30
|
+
if (iLevel && i >= iLevel) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
var oParentNode = oTemplateContract.mRoutingTree[oTreeNode.parentRoute];
|
|
30
34
|
if (oParentNode.componentId){
|
|
31
35
|
var oParentComponent = oTemplateContract.componentRegistry[oParentNode.componentId].oComponent;
|
|
32
36
|
setMeToDirty(oParentComponent, sEntitySet);
|
|
33
37
|
}
|
|
34
38
|
oTreeNode = oParentNode;
|
|
39
|
+
i++;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
37
42
|
|