@sapui5/sap.suite.ui.generic.template 1.131.1 → 1.132.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/SmartFilterBarExt.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartKpiTag.js +37 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +3 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +19 -4
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +46 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +42 -17
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/KpiTagController.js +13 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saptrc.properties +105 -105
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +17 -6
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +44 -22
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +18 -2
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +1 -4
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saptrc.properties +58 -58
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +2 -4
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +1 -3
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/BreakoutActionButtons.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartList.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +107 -23
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +34 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +46 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +21 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/extensionAPI/ExtensionAPI.js +29 -5
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_en_US_saptrc.properties +95 -95
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Footer.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderImage.fragment.xml +4 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/i18n/i18n_en_US_saptrc.properties +14 -14
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/i18n/i18n_en_US_saptrc.properties +2 -2
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime.js +142 -194
- package/src/sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime.js +204 -0
- package/src/sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime.js +236 -0
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +36 -9
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeUtils.js +67 -23
- package/src/sap/suite/ui/generic/template/detailTemplates/i18n/i18n_en_US_saptrc.properties +6 -6
- package/src/sap/suite/ui/generic/template/fragments/BreakoutActions.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/DeterminingActions.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +0 -6
- package/src/sap/suite/ui/generic/template/fragments/GlobalActions.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/fragments/HeaderAddress.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderContactWithDetailsPopover.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderForm.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +12 -5
- package/src/sap/suite/ui/generic/template/fragments/HeaderPlainText.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderRatingIndicator.fragment.xml +5 -7
- package/src/sap/suite/ui/generic/template/fragments/ProgressIndicator.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/RatingIndicatorFacet.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/fragments/SmartMicroChart.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartTableUiTableCommons.fragment.xml +2 -5
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +7 -5
- package/src/sap/suite/ui/generic/template/fragments/TableColumnListItem.fragment.xml +2 -5
- package/src/sap/suite/ui/generic/template/fragments/ToolbarButton.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/controlHelper.js +10 -9
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +70 -2
- package/src/sap/suite/ui/generic/template/genericUtilities/polyFill.js +14 -0
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +53 -12
- package/src/sap/suite/ui/generic/template/js/QuickTemplates/QuickTemplateComponentFactory.js +25 -13
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +16 -225
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +5 -3
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +11 -4
- package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +37 -12
- package/src/sap/suite/ui/generic/template/lib/ComponentUtils.js +3 -3
- package/src/sap/suite/ui/generic/template/lib/ContextBookkeeping.js +39 -23
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHandler.js +13 -5
- package/src/sap/suite/ui/generic/template/lib/FlexibleColumnLayoutHelper.js +168 -0
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ShellPersonalizationService.js +137 -0
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +56 -1
- package/src/sap/suite/ui/generic/template/lib/TemplateComponent.js +24 -4
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +91 -36
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +30 -35
- package/src/sap/suite/ui/generic/template/lib/deletionHelper.js +10 -2
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +7 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +6 -15
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +2 -10
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_sappsd.properties +0 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saptrc.properties +174 -149
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +3 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +3 -11
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +1 -9
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +59 -38
- package/src/sap/suite/ui/generic/template/library.js +7 -3
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/ChartActions.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -3
- package/src/sap/suite/ui/generic/template/listTemplates/i18n/i18n_en_US_saptrc.properties +1 -1
- package/src/sap/suite/ui/generic/template/manifestMerger/ChangePageConfiguration.js +1 -1
- package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/DiagnosticsTool.js +15 -3
- package/src/sap/suite/ui/generic/template/support/DiagnosticsTool/view/DiagnosticsTool.view.xml +0 -24
- package/src/sap/suite/ui/generic/template/support/lib/CommonChecks.js +11 -19
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_belize_base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcb/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_fiori_3_hcw/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +0 -4
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcb/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/themes/sap_horizon_hcw/AnalyticalListPage.less +0 -1
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroup.fragment.xml +0 -36
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +0 -28
- package/src/sap/suite/ui/generic/template/js/formatters/formatImageUrl.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorAggregateCount.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorFooterText.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/formatRatingIndicatorSubTitle.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/setInfoHighlight.js +0 -21
- package/src/sap/suite/ui/generic/template/js/formatters/setRowNavigated.js +0 -26
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u0421\u043E\u0437\u0434\u0430\u0442\u044C \u0441 \u0444\
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u0420\u0435\u0436\u0438\u043C \u0444\u0438\u043B\u044C\u0442\u0440\u0430\u0446\u0438\u0438\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u041F\u0440\u043E\u0441\u0442\u043E\u0439 \u0444\u0438\u043B\u044C\u0442\u0440
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=Vytvori\u0165 pomocou filtrov
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=Re\u017Eim filtrovania\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=Klasick\u00E9
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER=
|
|
107
|
+
ST_EASY_FILTER=Jednoduch\u00FD filter
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u041A\u0440\u0435\u0438\u0440\u0430\u0458 \u0441 \u0444\
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u041D\u0430\u0447\u0438\u043D \u0444\u0438\u043B\u0442\u0435\u0440\u0430\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u041A\u043B\u0430\u0441\u0438\u0447\u043D\u043E
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u0408\u0435\u0434\u043D\u043E\u0441\u0442\u0430\u0432\u043D\u0438 \u0444\u0438\u043B\u0442\u0435\u0440
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E42\u0E14\u0E22\u0E21\u0
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u0E42\u0E2B\u0E21\u0E14\u0E1F\u0E34\u0E25\u0E40\u0E15\u0E2D\u0E23\u0E4C\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u0E04\u0E25\u0E32\u0E2A\u0E2A\u0E34\u0E01
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u0E1F\u0E34\u0E25\u0E40\u0E15\u0E2D\u0E23\u0E4C\u0E41\u0E1A\u0E1A\u0E07\u0E48\u0E32\u0E22
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u0421\u0442\u0432\u043E\u0440\u0438\u0442\u0438 \u0437 \
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u0420\u0435\u0436\u0438\u043C \u0444\u0456\u043B\u044C\u0442\u0440\u0443\u0432\u0430\u043D\u043D\u044F\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u041A\u043B\u0430\u0441\u0438\u0447\u043D\u0438\u0439
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u041F\u0440\u043E\u0441\u0442\u0438\u0439 \u0444\u0456\u043B\u044C\u0442\u0440
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=Ta\u0323o co\u0301 b\u00F4\u0323 lo\u0323c
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=Ch\u00EA\u0301 \u0111\u00F4\u0323 lo\u0323c\:
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=C\u00F4\u0309 \u0111i\u00EA\u0309n
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER=
|
|
107
|
+
ST_EASY_FILTER=B\u1ED9 l\u1ECDc d\u1EC5 d\u00E0ng
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u4F7F\u7528\u8FC7\u6EE4\u5668\u521B\u5EFA
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u8FC7\u6EE4\u6A21\u5F0F\uFF1A
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u7ECF\u5178
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u7B80\u6613\u8FC7\u6EE4\u5668
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -102,11 +102,9 @@ ST_CREATE_WITH_FILTERS=\u4F7F\u7528\u7BE9\u9078\u5EFA\u7ACB
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
ST_EASY_FILTER_TITLE=\u7BE9\u9078\u6A21\u5F0F\uFF1A
|
|
106
|
-
|
|
107
105
|
ST_MANUAL_FILTER=\u5178\u578B
|
|
108
106
|
|
|
109
|
-
ST_EASY_FILTER
|
|
107
|
+
ST_EASY_FILTER=\u7C21\u6613\u7BE9\u9078
|
|
110
108
|
|
|
111
109
|
|
|
112
110
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
-
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
2
|
+
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
|
+
template:require="{AH:'sap/suite/ui/generic/template/js/AnnotationHelper'}">
|
|
3
4
|
|
|
4
5
|
<!--all break out actions which are neither determining nor global-->
|
|
5
6
|
<template:repeat list="{customActions>}" var="customAction">
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
press="{customAction>press}"
|
|
13
14
|
type="Transparent">
|
|
14
15
|
<layoutData>
|
|
15
|
-
<OverflowToolbarLayoutData priority="{customAction>importance}"/>
|
|
16
|
+
<OverflowToolbarLayoutData priority="{path: 'customAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
16
17
|
</layoutData>
|
|
17
18
|
</Button>
|
|
18
19
|
</template:if>
|
package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml
CHANGED
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
enabled="{path: 'customaction>', formatter: 'AH.getBreakoutActionEnabledKey'}"
|
|
74
74
|
text="{customaction>text}" press="{customaction>press}" type="Default">
|
|
75
75
|
<layoutData>
|
|
76
|
-
<OverflowToolbarLayoutData priority
|
|
76
|
+
<OverflowToolbarLayoutData priority="{path: 'customaction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
77
77
|
</layoutData>
|
|
78
78
|
</Button>
|
|
79
79
|
</template:if>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
AHListReport: 'sap/suite/ui/generic/template/ListReport/AnnotationHelper',
|
|
6
6
|
AHSmartList: 'sap/suite/ui/generic/template/ListReport/AnnotationHelperSmartList'}">
|
|
7
7
|
|
|
8
|
-
<Page showHeader="false" core:require="{
|
|
8
|
+
<Page showHeader="false" core:require="{RuntimeFormatters: 'sap/suite/ui/generic/template/js/RuntimeFormatters'}">
|
|
9
9
|
<template:with path="parameter>/variables" helper="AH.getNewVariable" var="sortedDataPointsFields">
|
|
10
10
|
<template:if test="{:= ${sortedDataPointsFields>}.set(AHSmartList.getSortedDataPointsAndFields(${parameter>/workingContext/lineItem}, ${parameter>/workingContext/lineItemPath}, ${path: 'parameter>/metaModel'}, ${path: 'parameter>/entityType'})) }"/>
|
|
11
11
|
<smartList:SmartList
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
numberState="{= ${objectListProperty>numberState} }"
|
|
25
25
|
type="Navigation"
|
|
26
26
|
press="._templateEventHandlers.onListNavigate"
|
|
27
|
-
navigated="{path: '_templPriv>/generic/currentActiveChildContext', formatter: 'setRowNavigated'}">
|
|
27
|
+
navigated="{path: '_templPriv>/generic/currentActiveChildContext', formatter: 'RuntimeFormatters.setRowNavigated.bind($control)'}">
|
|
28
28
|
<attributes>
|
|
29
29
|
<!-- Middle left -->
|
|
30
30
|
<ObjectAttribute text="{= ${objectListProperty>firstAttribute} }" />
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
icon="{path:'sortedDataPointsFields>imageDataField', formatter: 'AHSmartList.formatDataPointOrField'}"
|
|
55
55
|
type="Navigation"
|
|
56
56
|
press="._templateEventHandlers.onListNavigate"
|
|
57
|
-
navigated="{path: '_templPriv>/generic/currentActiveChildContext', formatter: 'setRowNavigated'}">
|
|
57
|
+
navigated="{path: '_templPriv>/generic/currentActiveChildContext', formatter: 'RuntimeFormatters.setRowNavigated.bind($control)'}">
|
|
58
58
|
</StandardListItem>
|
|
59
59
|
</template:with>
|
|
60
60
|
</template:then>
|
|
@@ -194,6 +194,7 @@
|
|
|
194
194
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
195
195
|
delete="._templateEventHandlers.deleteEntry"
|
|
196
196
|
itemPress="._templateEventHandlers.onListNavigate"
|
|
197
|
+
rememberSelections="false"
|
|
197
198
|
multiSelectMode="{= (${tableSettings>multiSelect} && ${tableSettings>selectAll}) ? 'SelectAll' : 'ClearAll'}">
|
|
198
199
|
<template:with path="entitySet>" var="listEntitySet">
|
|
199
200
|
<template:with path="tableAnnotationPath>" var="collection">
|
|
@@ -34,18 +34,53 @@ sap.ui.define([
|
|
|
34
34
|
"sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler",
|
|
35
35
|
"sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler",
|
|
36
36
|
"sap/suite/ui/generic/template/lib/insights/InsightsHandler",
|
|
37
|
-
"sap/suite/ui/generic/template/lib/cards/DTCardHelper"
|
|
38
|
-
|
|
39
|
-
], function (
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
"sap/suite/ui/generic/template/lib/cards/DTCardHelper",
|
|
38
|
+
"sap/ui/core/Element"
|
|
39
|
+
], function (
|
|
40
|
+
ControllerExtension,
|
|
41
|
+
MessageBox,
|
|
42
|
+
Filter,
|
|
43
|
+
Sorter,
|
|
44
|
+
ManagedObjectModel,
|
|
45
|
+
SelectionVariant,
|
|
46
|
+
controlHelper,
|
|
47
|
+
testableHelper,
|
|
48
|
+
detailUtils,
|
|
49
|
+
MessageSortingHandler,
|
|
50
|
+
MessageStripHelper,
|
|
51
|
+
SectionTitleHandler,
|
|
52
|
+
SideContentHandler,
|
|
53
|
+
ExtensionAPI,
|
|
54
|
+
ResponsiveTable,
|
|
55
|
+
ShareUtils,
|
|
56
|
+
FeLogger,
|
|
57
|
+
MultipleViewsHandler,
|
|
58
|
+
MessageUtils,
|
|
59
|
+
KeyCodes,
|
|
60
|
+
merge,
|
|
61
|
+
FilterProcessor,
|
|
62
|
+
StableIdHelper,
|
|
63
|
+
extend,
|
|
64
|
+
isEmptyObject,
|
|
65
|
+
FeError,
|
|
66
|
+
CreateWithDialogHandler,
|
|
67
|
+
Device,
|
|
68
|
+
whitespaceReplacer,
|
|
69
|
+
deepExtend,
|
|
70
|
+
CtxMenuHandler,
|
|
71
|
+
InlineCreationRowsHelper,
|
|
72
|
+
RelatedAppsHandler,
|
|
73
|
+
PasteHandler,
|
|
74
|
+
InsightsHandler,
|
|
75
|
+
DTCardHelper,
|
|
76
|
+
Element
|
|
77
|
+
) {
|
|
46
78
|
"use strict";
|
|
47
79
|
var sClassName = "ObjectPage.controller.ControllerImplementation";
|
|
48
|
-
var
|
|
80
|
+
var oFeLogger = new FeLogger(sClassName);
|
|
81
|
+
var oLogger = oFeLogger.getLogger();
|
|
82
|
+
var oLevel = oFeLogger.Level;
|
|
83
|
+
oLogger.setLevel(oLevel.ALL);
|
|
49
84
|
var DEFAULT_GROWING_THRESHOLD = 20;
|
|
50
85
|
|
|
51
86
|
// Scroll the specified object page to top
|
|
@@ -133,7 +168,7 @@ sap.ui.define([
|
|
|
133
168
|
// and the onSubSectionEnteredExtension is called. When the OP context is changed in the beforeRebind method
|
|
134
169
|
// the Map will be reset the states
|
|
135
170
|
var mSubSectionsInitState = Object.create(null);
|
|
136
|
-
|
|
171
|
+
var mSubSectionTitle = Object.create(null);
|
|
137
172
|
function adjustAndProvideBindingParamsForSmartTableOrChart(oEvent) {
|
|
138
173
|
var oBindingParams = oEvent.getParameter("bindingParams");
|
|
139
174
|
oBindingParams.parameters = oBindingParams.parameters || {};
|
|
@@ -403,7 +438,7 @@ sap.ui.define([
|
|
|
403
438
|
* where x is the condition provided by the user
|
|
404
439
|
|
|
405
440
|
* Handling of the filter condition during create:
|
|
406
|
-
* checking the value of
|
|
441
|
+
* checking the value of display Mode , iDisplayMode = 4 for create
|
|
407
442
|
* if it is a create the filter condition evaluates to the user filter x
|
|
408
443
|
*/
|
|
409
444
|
var oUserFilter = FilterProcessor.groupFilters(oBindingParams.filters);
|
|
@@ -1369,12 +1404,12 @@ sap.ui.define([
|
|
|
1369
1404
|
// Note that this call also moves the selected section and subsection to the identified control.
|
|
1370
1405
|
function getFocusForEditPromise(bFocusAtTop){
|
|
1371
1406
|
var sSelectedSection = !bFocusAtTop && oObjectPage.getSelectedSection();
|
|
1372
|
-
var oSelectedSection = sSelectedSection &&
|
|
1407
|
+
var oSelectedSection = sSelectedSection && Element.getElementById(sSelectedSection);
|
|
1373
1408
|
var oFallbackSection = oSelectedSection && oSelectedSection.getVisible() && oSelectedSection;
|
|
1374
1409
|
var sSelectedSubSection, oFallbackSubSection;
|
|
1375
1410
|
if (oFallbackSection){
|
|
1376
1411
|
sSelectedSubSection = oSelectedSection.getSelectedSubSection();
|
|
1377
|
-
oFallbackSubSection = sSelectedSubSection &&
|
|
1412
|
+
oFallbackSubSection = sSelectedSubSection && Element.getElementById(sSelectedSubSection);
|
|
1378
1413
|
oFallbackSubSection = oFallbackSubSection && oFallbackSubSection.getVisible() && oFallbackSubSection;
|
|
1379
1414
|
sSelectedSubSection = oFallbackSubSection && sSelectedSubSection;
|
|
1380
1415
|
} else {
|
|
@@ -1450,15 +1485,54 @@ sap.ui.define([
|
|
|
1450
1485
|
}); // Normalize the return value such that it always is a Promise
|
|
1451
1486
|
}
|
|
1452
1487
|
|
|
1453
|
-
function fnFocusForEdit(bFocusAtTop){
|
|
1454
|
-
setTimeout(function(){
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1488
|
+
function fnFocusForEdit(bFocusAtTop) {
|
|
1489
|
+
setTimeout(function () {
|
|
1490
|
+
// check if extension is found
|
|
1491
|
+
var bhasExtensionFound = oController.hasOwnProperty("focusOnEditExtension");
|
|
1492
|
+
var oFocusControl;
|
|
1493
|
+
if (bhasExtensionFound) {
|
|
1494
|
+
var sSelectedSection = oObjectPage.getSelectedSection();
|
|
1495
|
+
// call the extension method and get the control passed by application
|
|
1496
|
+
oFocusControl = oController.focusOnEditExtension(sSelectedSection);
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
// Check if the passed control is defined, focusable, and visible within the viewport.
|
|
1500
|
+
if (oFocusControl && oFocusControl.focus && oFocusControl.getDomRef()) {
|
|
1501
|
+
//set the focus on the control passed by application
|
|
1502
|
+
if (controlHelper.isSmartField(oFocusControl)) {
|
|
1503
|
+
// check whether the SmartField is the correct target for focussing
|
|
1504
|
+
controlHelper.getSmartFieldIsFocussableForInputPromise(oFocusControl).then(function (bIsFocusable) {
|
|
1505
|
+
if (bIsFocusable) {
|
|
1506
|
+
controlHelper.focusUI5Control(oFocusControl);
|
|
1507
|
+
} else {
|
|
1508
|
+
oLogger.info("Provided control is not focusable or visible in the viewport, hence fall back to the standard focus handling");
|
|
1509
|
+
fnStandardFocusHandlingOnEdit(bFocusAtTop);
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
} else {
|
|
1513
|
+
//if the passed control is not a smart field, check and set the focus on
|
|
1514
|
+
controlHelper.focusUI5Control(oFocusControl);
|
|
1515
|
+
}
|
|
1516
|
+
} else {
|
|
1517
|
+
// If no extension is defined, proceed with the standard execution flow.
|
|
1518
|
+
// If the control passed via the extension does not meet the required conditions,
|
|
1519
|
+
// fall back to the standard focus handling mechanism.
|
|
1520
|
+
if (bhasExtensionFound) {
|
|
1521
|
+
oLogger.info("Provided control is not focusable or visible in the viewport, hence fall back to the standard focus handling");
|
|
1522
|
+
}
|
|
1523
|
+
fnStandardFocusHandlingOnEdit(bFocusAtTop);
|
|
1524
|
+
}
|
|
1459
1525
|
}, 0);
|
|
1460
1526
|
}
|
|
1461
1527
|
|
|
1528
|
+
function fnStandardFocusHandlingOnEdit(bFocusAtTop) {
|
|
1529
|
+
var oFocusControlPromise = getFocusForEditPromise(bFocusAtTop);
|
|
1530
|
+
oFocusControlPromise.then(function (oFocusControl) {
|
|
1531
|
+
controlHelper.focusUI5Control(oFocusControl);
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
|
|
1462
1536
|
/* Begin: Functions dealing with the search field on tables */
|
|
1463
1537
|
|
|
1464
1538
|
// a search field in one of the tables is used to trigger a search.
|
|
@@ -1831,10 +1905,20 @@ sap.ui.define([
|
|
|
1831
1905
|
var oSubSectionInfoObj = oTemplateUtils.oInfoObjectHandler.setInformationWithControl(oSubSection); // Assigning the SubSection control to Info Object, in case it is assigned infoObject is returned without doing anything
|
|
1832
1906
|
// Check if initialization code is executed for the SubSection. If not initialize the same
|
|
1833
1907
|
var sSubSectionId = oSubSection.getId();
|
|
1908
|
+
var oSection = oSubSection.getParent();
|
|
1909
|
+
var sSectionId = oSection && oSection.getId();
|
|
1910
|
+
if (sSectionId && !mSubSectionTitle[sSectionId]) {
|
|
1911
|
+
mSubSectionTitle[sSectionId] = {
|
|
1912
|
+
firstSubSectionId: oSection.getSubSections()[0]?.getId()
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1834
1915
|
if (!mSubSectionsInitState[sSubSectionId]) {
|
|
1835
1916
|
// Execute Application specific logic which needs to be executed
|
|
1836
1917
|
oController.onSubSectionEnteredExtension(oSubSection);
|
|
1837
1918
|
mSubSectionsInitState[sSubSectionId] = true;
|
|
1919
|
+
if (sSectionId && mSubSectionTitle[sSectionId].firstSubSectionId === sSubSectionId) {
|
|
1920
|
+
oState.oSectionTitleHandler.adjustSubSectionTitle(oSubSection);
|
|
1921
|
+
}
|
|
1838
1922
|
}
|
|
1839
1923
|
|
|
1840
1924
|
if (oSubSectionInfoObj) { // In case of EditableHeaderFacet Sections & SubSection is created at runtime and there is info object handling
|
|
@@ -2357,7 +2441,7 @@ sap.ui.define([
|
|
|
2357
2441
|
subType: "CommonAction",
|
|
2358
2442
|
sAction: bIsDraftEnabled ? "discard" : "cancel"
|
|
2359
2443
|
});
|
|
2360
|
-
var oCancelButton =
|
|
2444
|
+
var oCancelButton = Element.getElementById(oController.createId(sCancelButtonLocalId));
|
|
2361
2445
|
var bIsEditFlowDirect = oTemplateUtils.oServices.oApplication.getEditFlowOfRoot() === "direct";
|
|
2362
2446
|
var bStaysOnPage = !bIsEditFlowDirect && !(oObjectPage.getModel("ui").getProperty("/createMode"));
|
|
2363
2447
|
var oCancelPromise = oBase.state.onCancel(oCancelButton, bStaysOnPage && fnFocusOnFirstActionButton);
|
|
@@ -2380,7 +2464,7 @@ sap.ui.define([
|
|
|
2380
2464
|
},
|
|
2381
2465
|
onPressDraftInfo: function (oEvent) {
|
|
2382
2466
|
var oBindingContext = oController.getView().getBindingContext();
|
|
2383
|
-
var oLockButton =
|
|
2467
|
+
var oLockButton = Element.getElementById(
|
|
2384
2468
|
oEvent.getSource().getId() + (oEvent.getId() === "markChangesPress" ? "-changes" : "-lock"));
|
|
2385
2469
|
|
|
2386
2470
|
oTemplateUtils.oCommonUtils.showDraftPopover(oBindingContext, oLockButton);
|
|
@@ -2410,7 +2494,7 @@ sap.ui.define([
|
|
|
2410
2494
|
},
|
|
2411
2495
|
|
|
2412
2496
|
onSummarize: function () {
|
|
2413
|
-
oTemplateUtils.oServices.oFioriAIHandler.fioriaiLib.summarize({view: oController.getView()});
|
|
2497
|
+
oTemplateUtils.oServices.oFioriAIHandler.fioriaiLib.summarize.summarize({view: oController.getView()});
|
|
2414
2498
|
},
|
|
2415
2499
|
|
|
2416
2500
|
onEdit: function (oEvent) {
|
|
@@ -109,9 +109,42 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
//This logic is only for the first subsection
|
|
113
|
+
//If the title of the subsection is not visible, then set the title level of all the controls to H4 to maintain the proper hierarchy.
|
|
114
|
+
function fnAdjustSubSectionTitle(oFirstSubSection) {
|
|
115
|
+
if (oFirstSubSection && typeof oFirstSubSection.getTitleVisible === "function" && !oFirstSubSection.getTitleVisible()) {
|
|
116
|
+
var aBlocks = oFirstSubSection.getAggregation("blocks");
|
|
117
|
+
if (aBlocks && aBlocks.length > 0) {
|
|
118
|
+
var oBlock = aBlocks[0];
|
|
119
|
+
if (oBlock.isA("sap.ui.layout.Grid")) {
|
|
120
|
+
var aContent = oBlock.getAggregation("content");
|
|
121
|
+
if (aContent && aContent.length > 0) {
|
|
122
|
+
aContent.forEach(function(oControl) {
|
|
123
|
+
//The title handling for other smart controls (SmartTable and SmartChart) is already handled.
|
|
124
|
+
if (oControl.isA("sap.ui.comp.smartform.SmartForm")) {
|
|
125
|
+
var oContent = oControl.getAggregation("content");
|
|
126
|
+
var oFormContainers = oContent.getAggregation("formContainers");
|
|
127
|
+
if (oFormContainers && oFormContainers.length > 0) {
|
|
128
|
+
oFormContainers.forEach(function(oFormContainer) {
|
|
129
|
+
var oTitle = oFormContainer.getAggregation("title");
|
|
130
|
+
if (oTitle) {
|
|
131
|
+
oTitle.setProperty("level", "H4");
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
}
|
|
143
|
+
|
|
112
144
|
// public instance methods
|
|
113
145
|
return {
|
|
114
|
-
setAsTitleOwner: fnSetAsTitleOwner
|
|
146
|
+
setAsTitleOwner: fnSetAsTitleOwner,
|
|
147
|
+
adjustSubSectionTitle: fnAdjustSubSectionTitle
|
|
115
148
|
};
|
|
116
149
|
}
|
|
117
150
|
|
|
@@ -3,8 +3,15 @@ sap.ui.define([
|
|
|
3
3
|
"sap/ui/base/Object",
|
|
4
4
|
"sap/suite/ui/generic/template/genericUtilities/controlHelper",
|
|
5
5
|
"sap/base/util/extend",
|
|
6
|
-
"sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/RequiredPropHelper"
|
|
7
|
-
|
|
6
|
+
"sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/RequiredPropHelper",
|
|
7
|
+
"sap/ui/core/Element"
|
|
8
|
+
], function (
|
|
9
|
+
BaseObject,
|
|
10
|
+
controlHelper,
|
|
11
|
+
extend,
|
|
12
|
+
RequiredPropHelper,
|
|
13
|
+
Element
|
|
14
|
+
) {
|
|
8
15
|
"use strict";
|
|
9
16
|
|
|
10
17
|
/**
|
|
@@ -84,6 +91,7 @@ sap.ui.define([
|
|
|
84
91
|
mContextWithCreatablePathByTableId = new Map(),
|
|
85
92
|
oEditedRowContexts = new Set(),
|
|
86
93
|
mRequiredPropHelperByTableId = new Map(),
|
|
94
|
+
mDefaultValuePromiseByTableId = new Map(),
|
|
87
95
|
oGridTableWithRowsUpdatedEvent = new Set();
|
|
88
96
|
|
|
89
97
|
/**
|
|
@@ -164,6 +172,30 @@ sap.ui.define([
|
|
|
164
172
|
|
|
165
173
|
var oBindingParams = oEvent.getParameters().bindingParams;
|
|
166
174
|
var fnOldDataReceived = oBindingParams.events.dataReceived || Function.prototype;
|
|
175
|
+
var fnOldDataRequested = oBindingParams.events.dataRequested || Function.prototype;
|
|
176
|
+
|
|
177
|
+
//Fires the default value function call in parallel with the table read call
|
|
178
|
+
oBindingParams.events.dataRequested = function (oDataRequestedEvent) {
|
|
179
|
+
fnOldDataRequested.call(this, oDataRequestedEvent);
|
|
180
|
+
var sSmartTableCreationMode = fnGetSmartTableCreationMode(oSmartTable);
|
|
181
|
+
var sUIModelProp = oUIModelPropForCreationMode[sSmartTableCreationMode];
|
|
182
|
+
var oBindingContext = oSmartTable.getBindingContext();
|
|
183
|
+
var bIsDraftInfoAvailable = !!oBindingContext.getObject();
|
|
184
|
+
var oDraftInfo = bIsDraftInfoAvailable ? oTemplateUtils.oServices.oApplication.getDraftInfoForContext(oBindingContext) : null;
|
|
185
|
+
var oUIProperties = {
|
|
186
|
+
"/editable": oDraftInfo?.bIsDraft,
|
|
187
|
+
"/createMode": oDraftInfo?.bIsCreate
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* The parallel DVF call should be fired only when the draft info is available and
|
|
191
|
+
* a. for creationRows, oDraftInfo.bIsDraft is true
|
|
192
|
+
* b. for creationRowsHiddenInEditMode, oDraftInfo.bIsCreate is true
|
|
193
|
+
*/
|
|
194
|
+
if (oUIProperties[sUIModelProp]) {
|
|
195
|
+
mDefaultValuePromiseByTableId.set(oSmartTable.getId(), fnFetchDefaultValues(oSmartTable));
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
|
|
167
199
|
oBindingParams.events.dataReceived = function (oDataReceivedEvent) {
|
|
168
200
|
fnOldDataReceived.call(this, oDataReceivedEvent);
|
|
169
201
|
var oSmartTableHandler = fnGetSmartTableHandler(oSmartTable),
|
|
@@ -262,7 +294,7 @@ sap.ui.define([
|
|
|
262
294
|
if (oEvent.getSource().getValue()) { // called by the change of UI Model
|
|
263
295
|
var oTablesToBeProcessedOnCreationMode = oTablesWaitingForUIModelChange[sSmartTableCreationMode];
|
|
264
296
|
oTablesToBeProcessedOnCreationMode.forEach(function (sSmartTableId) {
|
|
265
|
-
var oControl =
|
|
297
|
+
var oControl = Element.getElementById(sSmartTableId);
|
|
266
298
|
fnAddCreationRows(oControl).then(function () {
|
|
267
299
|
oTablesToBeProcessedOnCreationMode.delete(sSmartTableId);
|
|
268
300
|
});
|
|
@@ -328,7 +360,15 @@ sap.ui.define([
|
|
|
328
360
|
|
|
329
361
|
return new Promise(function(fnResolve) {
|
|
330
362
|
fnWaitUntilSmartTableReceivesBindingContext(oSmartTable).then(function () {
|
|
331
|
-
|
|
363
|
+
var oDefaultValuePromise;
|
|
364
|
+
var sSmartTableId = oSmartTable.getId();
|
|
365
|
+
//In case a DVF Promise is already available for a table then use it
|
|
366
|
+
if (mDefaultValuePromiseByTableId.has(sSmartTableId)) {
|
|
367
|
+
oDefaultValuePromise = mDefaultValuePromiseByTableId.get(sSmartTableId);
|
|
368
|
+
} else {
|
|
369
|
+
oDefaultValuePromise = fnFetchDefaultValues(oSmartTable);
|
|
370
|
+
}
|
|
371
|
+
return oDefaultValuePromise;
|
|
332
372
|
}).then(function (oDefaultValues) {
|
|
333
373
|
// In cases of user input then create a new empty row
|
|
334
374
|
if (bIsOnUserInput) {
|
|
@@ -359,6 +399,8 @@ sap.ui.define([
|
|
|
359
399
|
if (bIsLengthFinal && oItemsBinding.isResolved() && bIsCreationAllowedByPath && !bTableHasCreationRows && !oItemsBinding.bIsBeingDestroyed) { // no inline creation rows have been added yet
|
|
360
400
|
// for responsive table, the very first creation is at the start and the following at the end
|
|
361
401
|
createInactiveLineItem(oItemsBinding, oDefaultValues, !bResponsiveTable);
|
|
402
|
+
// to avoid outdated values from being used we clear the cache
|
|
403
|
+
mDefaultValuePromiseByTableId.delete(oSmartTable.getId());
|
|
362
404
|
// Hide navigation and delete controls on inactive rows
|
|
363
405
|
var fnAfterRenderCallback = fnUpdateTableRows.bind(null, oTable);
|
|
364
406
|
fnInvokeCallbackAfterRendering(oTable, fnAfterRenderCallback);
|
|
@@ -28,7 +28,8 @@ sap.ui.define([
|
|
|
28
28
|
onChildOpenedExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
29
29
|
onSubSectionEnteredExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
30
30
|
beforeSmartLinkPopoverOpensExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
31
|
-
onBeforeExportTableExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After}
|
|
31
|
+
onBeforeExportTableExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
32
|
+
focusOnEditExtension:{ "public": true, "final": false, overrideExecution: OverrideExecution.After}
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
|
|
@@ -262,6 +263,22 @@ sap.ui.define([
|
|
|
262
263
|
*/
|
|
263
264
|
getContext: function(oContext) {
|
|
264
265
|
return oContext;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
},
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Extension point for the application to specify the control to focus on in the object page upon edit.
|
|
270
|
+
*
|
|
271
|
+
* @param {String} sSelectedSection - The ID of the selected section.
|
|
272
|
+
* @returns {sap.ui.core.Control} - The control that needs to be focused.
|
|
273
|
+
*
|
|
274
|
+
* The returned control must meet the following criteria:
|
|
275
|
+
* - Be focusable and have a "focus" property.
|
|
276
|
+
* - Be visible within the viewport.
|
|
277
|
+
*
|
|
278
|
+
* If the returned control does not satisfy these conditions, the standard focus handling logic is executed.
|
|
279
|
+
*/
|
|
280
|
+
focusOnEditExtension: function (sSelectedSection) {
|
|
281
|
+
return {};
|
|
282
|
+
}
|
|
283
|
+
};
|
|
284
|
+
});
|