@sapui5/sap.suite.ui.generic.template 1.125.0 → 1.127.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/suite/ui/generic/template/.library +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/SmartKpiTag.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItem.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/FilterItemMicroChart.js +3 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/SmartVisualFilterBar.js +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/control/visualfilterbar/VisualFilterProvider.js +17 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/ControllerImplementation.js +13 -15
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DropDownController.js +12 -17
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/DynamicDateRangeController.js +4 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/FilterBarController.js +2 -5
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controller/VisualFilterDialogController.js +1 -10
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/extensionAPI/ExtensionAPI.js +10 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +2 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/AnnotationHelper.js +11 -11
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/util/FilterUtil.js +6 -6
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/AnalyticalListPage.view.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/ContentViewButtons.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/view/fragments/SmartFilterBar.fragment.xml +1 -3
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/Component.js +9 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +118 -40
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +10 -0
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ListReport/extensionAPI/ExtensionAPI.js +3 -3
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n.properties +19 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ar.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_bg.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ca.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cnr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cs.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_cy.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_da.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_de.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_el.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_GB.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_en_US_saprigi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_es_MX.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_et.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hi.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_hu.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_it.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_iw.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ja.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_kk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ko.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_lv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_mk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ms.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_nl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_no.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_pt_PT.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ro.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_ru.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sh.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sl.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sv.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_th.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_tr.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_vi.properties +13 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_CN.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_zh_TW.properties +12 -0
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DefaultVariant.fragment.xml +18 -3
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/FullscreenPage.fragment.xml +6 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartFilterBar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +6 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/Component.js +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +26 -18
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/MessageStripHelper.js +3 -4
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/PasteHandler.js +12 -15
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/inlineCreationRows/InlineCreationRowsHelper.js +5 -6
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +12 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_de.properties +4 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/templateSpecificPreparationHelper.js +38 -12
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +2 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +6 -15
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.controller.js +4 -3
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/designtime/AnalyticalListPage.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ListReport.designtime.js +2 -2
- package/src/sap/suite/ui/generic/template/designtime/ObjectPage.designtime.js +2 -5
- package/src/sap/suite/ui/generic/template/designtime/utils/DesigntimeHandler.js +4 -2
- package/src/sap/suite/ui/generic/template/designtime/utils/designtimeHelper.js +27 -10
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +15 -16
- package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml +0 -1
- package/src/sap/suite/ui/generic/template/fragments/EasyFilter.fragment.xml +24 -0
- package/src/sap/suite/ui/generic/template/fragments/GridTableCells.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/HeaderDataPointContent.fragment.xml +11 -0
- package/src/sap/suite/ui/generic/template/fragments/HeaderFormDataField.fragment.xml +13 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/QuickViewSmartForm.fragment.xml +2 -1
- package/src/sap/suite/ui/generic/template/fragments/SmartFormDataField.fragment.xml +23 -2
- package/src/sap/suite/ui/generic/template/fragments/TableCell.fragment.xml +12 -1
- package/src/sap/suite/ui/generic/template/fragments/TreeTableColumns.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/AjaxHelper.js +57 -47
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +1 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/FeLogger.js +0 -1
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +64 -12
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +32 -24
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +6 -6
- package/src/sap/suite/ui/generic/template/genericUtilities/filterHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +62 -53
- package/src/sap/suite/ui/generic/template/js/RuntimeFormatters.js +3 -3
- package/src/sap/suite/ui/generic/template/js/formatters/formatDisplayValueForProgressIndicator.js +3 -3
- package/src/sap/suite/ui/generic/template/lib/AdaptiveCardHelper.js +39 -33
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +79 -53
- package/src/sap/suite/ui/generic/template/lib/Application.js +3 -8
- package/src/sap/suite/ui/generic/template/lib/CRUDHelper.js +25 -22
- package/src/sap/suite/ui/generic/template/lib/CRUDManager.js +34 -19
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +56 -11
- package/src/sap/suite/ui/generic/template/lib/ContactCardDetailHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +11 -12
- package/src/sap/suite/ui/generic/template/lib/CreateWithDialogHandler.js +25 -12
- package/src/sap/suite/ui/generic/template/lib/MessageButtonHelper.js +7 -5
- package/src/sap/suite/ui/generic/template/lib/MessageStripHelper.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/PageLeaveHandler.js +6 -6
- package/src/sap/suite/ui/generic/template/lib/ShareUtils.js +2 -12
- package/src/sap/suite/ui/generic/template/lib/SideEffectUtil.js +5 -7
- package/src/sap/suite/ui/generic/template/lib/TemplateAssembler.js +1 -0
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +323 -0
- package/src/sap/suite/ui/generic/template/lib/ai/FioriAIHandler.js +77 -0
- package/src/sap/suite/ui/generic/template/lib/ai/JouleContextProvider.js +56 -0
- package/src/sap/suite/ui/generic/template/lib/filterHelper.js +38 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n.properties +16 -3
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +10 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +13 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +9 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +8 -0
- package/src/sap/suite/ui/generic/template/lib/info/SmartTableInfo.js +26 -2
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsCardHelper.js +10 -29
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsHandler.js +24 -24
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartChartHandler.js +15 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartListHandler.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +8 -2
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/DetailController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/controller/IappStateHandler.js +32 -29
- package/src/sap/suite/ui/generic/template/listTemplates/controller/SmartChartController.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/filterSettingsPreparationHelper.js +4 -2
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/DetailSmartTable.fragment.xml +4 -14
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/SmartTableToolbar.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/semanticDateRangeTypeHelper.js +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/base/base.less +4 -0
- package/src/sap/suite/ui/generic/template/themes/sap_bluecrystal_base/ObjectPage.less +1 -1
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/ALPConstants.less +47 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base.less +7 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_AnalyticalListPage.less +475 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ListReport.less +33 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_ObjectPage.less +391 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickCreate.less +96 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/base_QuickView.less +108 -0
- package/src/sap/suite/ui/generic/template/themes/sap_hcb/library.source.less +24 -7
- package/ui5.yaml +1 -1
|
@@ -331,13 +331,21 @@ sap.ui.define([
|
|
|
331
331
|
fnSetTargetEntity(oEntitySet);
|
|
332
332
|
|
|
333
333
|
var bToolbarButtonVisible = fnGetTableToolbarButtonVisibility(oSettings, oEntitySet, oResult.type);
|
|
334
|
-
var
|
|
334
|
+
var oPathforRestriction = fnGetRestrictionForPasteButton(oEntitySet);
|
|
335
335
|
/* Workaround fix for non draft apps with no section settings defined in the manifest. In UI5v1.93, the export to excel button is displayed by default because of a code gap in
|
|
336
336
|
FE which later got fixed with a change related to paste button in UI5v1.96 wherein the export button is not displayed by default. This looks like a regression issue to customers
|
|
337
337
|
for which we have provided this temporary solution which shall get removed soon. */
|
|
338
338
|
oResult.bExportToExcel = (!oComponentUtils.isDraftEnabled() && !oSettings.sections) || bToolbarButtonVisible;
|
|
339
|
-
if (
|
|
340
|
-
|
|
339
|
+
if (oPathforRestriction) {
|
|
340
|
+
var sPathforRestriction = "";
|
|
341
|
+
if (oPathforRestriction.insertable) {
|
|
342
|
+
sPathforRestriction = "${" + oPathforRestriction.insertable + "}";
|
|
343
|
+
}
|
|
344
|
+
if (oPathforRestriction.updatable) {
|
|
345
|
+
sPathforRestriction = sPathforRestriction ? sPathforRestriction + " || ${" + oPathforRestriction.updatable + "}" : "${" + oPathforRestriction.updatable + "}";
|
|
346
|
+
}
|
|
347
|
+
sPathforRestriction = sPathforRestriction && "(" + sPathforRestriction + ")";
|
|
348
|
+
oResult.vShowPasteButton = bToolbarButtonVisible ? "{= ${ui>/editable} && " + sPathforRestriction + "}" : false;
|
|
341
349
|
} else {
|
|
342
350
|
oResult.vShowPasteButton = bToolbarButtonVisible ? "{ui>/editable}" : false;
|
|
343
351
|
}
|
|
@@ -348,21 +356,39 @@ sap.ui.define([
|
|
|
348
356
|
return oResult;
|
|
349
357
|
}
|
|
350
358
|
|
|
351
|
-
|
|
359
|
+
// fnGetRestrictionForPasteButton return object contains updatable and insertable restriction for the given Entity Set.
|
|
360
|
+
function fnGetRestrictionForPasteButton(oEntitySet) {
|
|
352
361
|
var oLeadingEntitySet = oMetaModel.getODataEntitySet(sLeadingEntitySet);
|
|
353
|
-
var oInsertableAnnotation,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
362
|
+
var oInsertableAnnotation, oUpdatableAnnotation;
|
|
363
|
+
|
|
364
|
+
var oInsertRestrictionSetViaNavRestrictions = AnnotationHelper.handleNavigationRestrictions(oMetaModel, oLeadingEntitySet, oEntitySet, 'Insertable');
|
|
365
|
+
if (oInsertRestrictionSetViaNavRestrictions) {
|
|
366
|
+
oInsertableAnnotation = oInsertRestrictionSetViaNavRestrictions['Insertable'];
|
|
357
367
|
} else {
|
|
358
|
-
oSectionInsertRestriction = oEntitySet['Org.OData.Capabilities.V1.InsertRestrictions'];
|
|
368
|
+
var oSectionInsertRestriction = oEntitySet['Org.OData.Capabilities.V1.InsertRestrictions'];
|
|
359
369
|
oInsertableAnnotation = oSectionInsertRestriction && oSectionInsertRestriction['Insertable'];
|
|
360
370
|
}
|
|
361
|
-
|
|
362
|
-
|
|
371
|
+
|
|
372
|
+
var oUpdateRestrictionSetViaNavRestrictions = AnnotationHelper.handleNavigationRestrictions(oMetaModel, oLeadingEntitySet, oEntitySet, 'Updatable');
|
|
373
|
+
if (oUpdateRestrictionSetViaNavRestrictions) {
|
|
374
|
+
oUpdatableAnnotation = oUpdateRestrictionSetViaNavRestrictions['Updatable'];
|
|
375
|
+
} else {
|
|
376
|
+
var oSectionUpdatableRestriction = oEntitySet['Org.OData.Capabilities.V1.UpdateRestrictions'];
|
|
377
|
+
oUpdatableAnnotation = oSectionUpdatableRestriction && oSectionUpdatableRestriction['Updatable'];
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
var sInsertablePath = oInsertableAnnotation ? oInsertableAnnotation.Path : "";
|
|
381
|
+
var sUpdatablePath = oUpdatableAnnotation ? oUpdatableAnnotation.Path : "";
|
|
382
|
+
|
|
383
|
+
if (sInsertablePath || sUpdatablePath) {
|
|
384
|
+
return {
|
|
385
|
+
insertable: sInsertablePath,
|
|
386
|
+
updatable: sUpdatablePath
|
|
387
|
+
};
|
|
363
388
|
}
|
|
364
|
-
return
|
|
389
|
+
return null;
|
|
365
390
|
}
|
|
391
|
+
|
|
366
392
|
// used in the process of determining the visibility of export to excel and paste button depending on certain restrictions/conditions.
|
|
367
393
|
function fnGetTableToolbarButtonVisibility(oSettings, oEntitySet, sTableType) {
|
|
368
394
|
var oInsertableAnnotation, sEntityType, oSectionInsertRestriction;
|
|
@@ -115,8 +115,10 @@
|
|
|
115
115
|
</uxap:ObjectPageDynamicHeaderTitle>
|
|
116
116
|
</template:then>
|
|
117
117
|
<template:else>
|
|
118
|
+
<!-- The formatter 'sap/suite/ui/generic/template/js/formatters/formatImageUrl' is used by 'AH.formatHeaderImage' -->
|
|
118
119
|
<uxap:ObjectPageHeader
|
|
119
120
|
id="objectPageHeader"
|
|
121
|
+
core:require="{formatImageUrl: 'sap/suite/ui/generic/template/js/formatters/formatImageUrl'}"
|
|
120
122
|
objectTitle="{_templPriv>/objectPage/headerInfo/objectTitle}"
|
|
121
123
|
objectSubtitle="{_templPriv>/objectPage/headerInfo/objectSubtitle}"
|
|
122
124
|
objectImageURI="{parts:[{path: 'entityType>com.sap.vocabularies.UI.v1.HeaderInfo'}, {path: 'parameter>/appComponentName'}], formatter: 'AH.formatHeaderImage'}"
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
ariaHasPopup="Dialog"
|
|
131
131
|
fesr:press="fe:sum:summarize"
|
|
132
132
|
type="Ghost"
|
|
133
|
-
visible="{_templPrivGlobal>/generic/isSummarizationEnabled}" />
|
|
133
|
+
visible="{_templPrivGlobal>/generic/fioriAI/isSummarizationEnabled}" />
|
|
134
134
|
|
|
135
135
|
<template:if test="{parameter>/settings/showRelatedApps}">
|
|
136
136
|
<uxap:ObjectPageHeaderActionButton id="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageAction', subType: 'RelatedApps'}) }"
|
package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/CRUDActionButtons.fragment.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
xmlns:fesr="http://schemas.sap.com/sapui5/extension/sap.ui.core.FESR/1"
|
|
3
3
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
4
4
|
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper'}">
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
<!-- @classdesc @name: Name: sap.suite.ui.generic.template.ObjectPage.view.fragments.CRUDActionButtons.fragment.xml -->
|
|
7
7
|
<template:if test="{parts: [ {path: 'listEntitySet>Org.OData.Capabilities.V1.InsertRestrictions'}, {path: 'listEntitySet>'}, {value: 'Insertable'}, {path: 'entitySet>name'}], formatter: 'AH.areBooleanRestrictionsValidAndPossible'}">
|
|
8
8
|
<template:with path="objectPageTableSettings>value/commandExecution/Create" var="createAction">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
press="{createAction>press}"
|
|
13
13
|
fesr:press="fe:createItem"
|
|
14
14
|
enabled="{createAction>enabled}"
|
|
15
|
-
visible="{parts: [{path: 'entitySet>'}, {path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'facet>'}, {path: 'parameter>/settings'}, {path: 'parameter>/isDraftEnabled'}, {path: 'createWithParameterDialog>'}, {path: 'objectPageTableSettings>value/type'}], formatter: 'AH.isRelatedEntityCreatable'}">
|
|
15
|
+
visible="{parts: [{path: 'entitySet>'}, {path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'facet>'}, {path: 'parameter>/settings'}, {path: 'parameter>/isDraftEnabled'}, {path: 'createWithParameterDialog>'}, {path: 'objectPageTableSettings>value/type'}, {path: 'appSettings>/'}], formatter: 'AH.isRelatedEntityCreatable'}">
|
|
16
16
|
<template:if test="!${createAction>isStandardAction}">
|
|
17
17
|
<layoutData>
|
|
18
18
|
<OverflowToolbarLayoutData priority = "{createAction>importance}"/>
|
package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/HeaderContainer.fragment.xml
CHANGED
|
@@ -299,6 +299,17 @@
|
|
|
299
299
|
beforeNavigationCallback="._templateEventHandlers.onBeforeSemanticObjectLinkNavigationCallback"
|
|
300
300
|
forceLinkRendering="{parts: [{path: 'entitySet>'},{path: 'parameter>/templateSpecific/targetEntities'}], formatter: 'AH.hasQuickViewFacet'}"/>
|
|
301
301
|
</sfi:semanticObjectController>
|
|
302
|
+
<template:if test="{= ${dataPoint>Criticality} }">
|
|
303
|
+
<sfi:controlProposal>
|
|
304
|
+
<sfi:ControlProposal>
|
|
305
|
+
<sfi:objectStatus>
|
|
306
|
+
<sfi:ObjectStatus
|
|
307
|
+
criticality="{= ${dataPoint>Criticality/EnumMember} ? ${dataPoint>Criticality/EnumMember} : ${path: 'dataPoint>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
308
|
+
criticalityRepresentationType="WithoutIcon"/>
|
|
309
|
+
</sfi:objectStatus>
|
|
310
|
+
</sfi:ControlProposal>
|
|
311
|
+
</sfi:controlProposal>
|
|
312
|
+
</template:if>
|
|
302
313
|
</sfi:SmartField>
|
|
303
314
|
</l:VerticalLayout>
|
|
304
315
|
</template:else>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:st="sap.ui.comp.smarttable" xmlns:table="sap.ui.table" xmlns:layout="sap.ui.layout" xmlns:plugins="sap.m.plugins"
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:st="sap.ui.comp.smarttable" xmlns:table="sap.ui.table" xmlns:layout="sap.ui.layout" xmlns:plugins="sap.m.plugins"
|
|
2
2
|
xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
|
|
3
3
|
template:require="{AH: 'sap/suite/ui/generic/template/js/AnnotationHelper', AHModel: 'sap/ui/model/odata/AnnotationHelper', StableIdHelper: 'sap/suite/ui/generic/template/js/StableIdHelper'}">
|
|
4
4
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
headerLevel="H5"
|
|
31
31
|
headerStyle="H5"
|
|
32
32
|
useVariantManagement="{objectPageTableSettings>value/variantManagement}"
|
|
33
|
-
enableExport
|
|
33
|
+
enableExport="{objectPageTableSettings>value/bExportToExcel}"
|
|
34
34
|
useTablePersonalisation="true"
|
|
35
35
|
entitySet="{path: 'listEntitySet>name'}"
|
|
36
36
|
ignoreFromPersonalisation="{path: 'collection>', formatter: 'AH.suppressP13NDuplicateColumns'}"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
<template:if test="{= ${parameter>/isDraftEnabled} }">
|
|
124
124
|
<template:then>
|
|
125
125
|
<st:customData>
|
|
126
|
-
<core:CustomData key="creationMode" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings'}], formatter: 'AH.getCreationMode'}" />
|
|
126
|
+
<core:CustomData key="creationMode" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings'}, {path: 'appSettings>/'}], formatter: 'AH.getCreationMode'}" />
|
|
127
127
|
<core:CustomData key="disableInlineCreateSort" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings'}], formatter: 'AH.isInlineCreateSorting'}" />
|
|
128
128
|
<core:CustomData key="isCreationAllowedByBoolAndPathRestrictions" value="{= ${parts: [{path: 'listEntitySet>Org.OData.Capabilities.V1.InsertRestrictions'}, {path: 'listEntitySet>'}, {value: 'Insertable'}, {path: 'entitySet>'}], formatter: 'AH.isCreationAllowedByBoolAndPathRestrictions'}}"/>
|
|
129
129
|
<core:CustomData key="inlineCreationRowsConfig" value="{= ${parts: [{path: 'entitySet>'}, {path: 'listEntitySet>'}], formatter: 'AH.buildInlineCreationRowsConfig'} }"/>
|
|
@@ -138,10 +138,9 @@
|
|
|
138
138
|
<template:if test="{= ${objectPageTableSettings>value/type} === 'AnalyticalTable' && ${listEntityType>sap:semantics} === 'aggregate'}">
|
|
139
139
|
<template:then>
|
|
140
140
|
<table:AnalyticalTable id="{path: 'facet>', formatter: 'AH.getStableIdPartFromFacet'}::analyticalTable"
|
|
141
|
-
enableColumnReordering="true"
|
|
141
|
+
visibleRowCountMode="Auto" enableColumnReordering="true"
|
|
142
142
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
143
143
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
144
|
-
showColumnVisibilityMenu="false"
|
|
145
144
|
enableColumnFreeze="true" enableCellFilter="true" rowActionCount="{= ${parts: [ {path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'parameter>/manifest'}, {path: 'facet>Target/AnnotationPath'},{path: 'parameter>/isDraftEnabled'}], formatter: 'AH.getRowActionCountForDetailPage'}}">
|
|
146
145
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.ObjectPage.view.fragments.SmartTableUiTableCommons" type="XML"/>
|
|
147
146
|
<table:columns>
|
|
@@ -150,14 +149,12 @@
|
|
|
150
149
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.AnalyticalTableColumns" type="XML"/>
|
|
151
150
|
</template:with>
|
|
152
151
|
</table:columns>
|
|
153
|
-
<table:rowMode>
|
|
154
|
-
<rowmodes:Auto/>
|
|
155
|
-
</table:rowMode>
|
|
156
152
|
</table:AnalyticalTable>
|
|
157
153
|
</template:then>
|
|
158
154
|
<!--Tree table implementation: Begins-->
|
|
159
155
|
<template:elseif test="{= ${objectPageTableSettings>value/type} === 'TreeTable'}">
|
|
160
156
|
<table:TreeTable id="{path: 'facet>', formatter: 'AH.getStableIdPartFromFacet'}::treeTable"
|
|
157
|
+
visibleRowCountMode="Auto"
|
|
161
158
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
162
159
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
163
160
|
rowActionCount="{= ({parts: [{path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}], formatter: 'AH.hasSubObjectPage'} ? 1 : 0 )}">
|
|
@@ -168,15 +165,12 @@
|
|
|
168
165
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.TreeTableColumns" type="XML"/>
|
|
169
166
|
</template:with>
|
|
170
167
|
</table:columns>
|
|
171
|
-
<table:rowMode>
|
|
172
|
-
<rowmodes:Auto/>
|
|
173
|
-
</table:rowMode>
|
|
174
168
|
</table:TreeTable>
|
|
175
169
|
</template:elseif>
|
|
176
170
|
<!--Tree table implementation: Ends-->
|
|
177
171
|
<template:elseif test="{= ${objectPageTableSettings>value/type} === 'GridTable'}">
|
|
178
172
|
<table:Table id="{path: 'facet>', formatter: 'AH.getStableIdPartFromFacet'}::gridTable"
|
|
179
|
-
enableColumnReordering="true"
|
|
173
|
+
enableColumnReordering="true" visibleRowCountMode="Auto"
|
|
180
174
|
rowSelectionChange="._templateEventHandlers.onSelectionChange"
|
|
181
175
|
beforeOpenContextMenu="._templateEventHandlers.beforeOpenContextMenu($event, '{smartControlId>id}')"
|
|
182
176
|
enableColumnFreeze="true" enableCellFilter="true"
|
|
@@ -188,9 +182,6 @@
|
|
|
188
182
|
<core:Fragment fragmentName="sap.suite.ui.generic.template.fragments.GridTableColumns" type="XML"/>
|
|
189
183
|
</template:with>
|
|
190
184
|
</table:columns>
|
|
191
|
-
<table:rowMode>
|
|
192
|
-
<rowmodes:Auto/>
|
|
193
|
-
</table:rowMode>
|
|
194
185
|
</table:Table>
|
|
195
186
|
</template:elseif>
|
|
196
187
|
<template:else>
|
|
@@ -367,18 +367,19 @@ sap.ui.define(["../../js/QuickTemplates/QuickActionBaseController", "../../js/Qu
|
|
|
367
367
|
onRemoveLineItemPress: function (oEvent) {
|
|
368
368
|
var that = this;
|
|
369
369
|
this.setBusy(true);
|
|
370
|
-
var
|
|
370
|
+
var oContext = oEvent.getSource().getBindingContext();
|
|
371
371
|
|
|
372
372
|
if (this.bDraftEnabled) {
|
|
373
373
|
this.oTransactionController.triggerSubmitChanges().then(function (oResponse) {
|
|
374
|
-
that._deleteLineItem(
|
|
374
|
+
that._deleteLineItem(oContext);
|
|
375
375
|
}, function (oError) {
|
|
376
376
|
this.setBusy(false);
|
|
377
377
|
this.onError(oError);
|
|
378
378
|
|
|
379
379
|
}.bind(this));
|
|
380
380
|
} else {
|
|
381
|
-
|
|
381
|
+
var sContextPath = oContext.getPath();
|
|
382
|
+
this.getView().getModel().resetChanges([sContextPath], undefined, true);
|
|
382
383
|
this.setBusy(false);
|
|
383
384
|
if (this.oQuickCreateAPI) {
|
|
384
385
|
this.oQuickCreateAPI.calculateViewHeight(this.getView(), false);
|
|
@@ -22,7 +22,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
22
22
|
properties: ["ignoredChartTypes", "selectionMode", "noData", "showChartTooltip", "showChartTypeSelectionButton", "showDownloadButton", "showLegendButton"]
|
|
23
23
|
},
|
|
24
24
|
"sap.ui.comp.smarttable.SmartTable": {
|
|
25
|
-
properties: ["
|
|
25
|
+
properties: ["useExportToExcel", "showRowCount", "exportType", "showTablePersonalisation"],
|
|
26
26
|
actions: ["settings"]
|
|
27
27
|
},
|
|
28
28
|
"sap.ui.table.AnalyticalColumn": {
|
|
@@ -58,7 +58,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
58
58
|
properties: ["useDateRangeType"]
|
|
59
59
|
},
|
|
60
60
|
"sap.ui.table.AnalyticalTable": {
|
|
61
|
-
properties: ["selectionMode"]
|
|
61
|
+
properties: ["selectionMode", "minAutoRowCount", "visibleRowCountMode"]
|
|
62
62
|
},
|
|
63
63
|
"sap.ui.table.AnalyticalColumn": {
|
|
64
64
|
properties: ["width", "minWidth"]
|
|
@@ -19,7 +19,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
19
19
|
properties: ["liveMode"]
|
|
20
20
|
},
|
|
21
21
|
"sap.ui.comp.smarttable.SmartTable": {
|
|
22
|
-
properties: ["
|
|
22
|
+
properties: ["useExportToExcel"],
|
|
23
23
|
actions: ["settings"]
|
|
24
24
|
},
|
|
25
25
|
"sap.m.Table": {
|
|
@@ -90,7 +90,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
90
90
|
properties: ["selectionMode"]
|
|
91
91
|
},
|
|
92
92
|
"sap.ui.table.AnalyticalTable": {
|
|
93
|
-
properties: ["selectionMode"]
|
|
93
|
+
properties: ["selectionMode", "minAutoRowCount", "visibleRowCountMode"]
|
|
94
94
|
},
|
|
95
95
|
"sap.ui.table.AnalyticalColumn": {
|
|
96
96
|
properties: ["width", "minWidth", "showFilterMenuEntry", "summed"]
|
|
@@ -29,9 +29,6 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
29
29
|
"sap.m.HBox": { // meant in the VBox mentioned above, and for paginator buttons (todo: check exact place)
|
|
30
30
|
properties: ["visible"]
|
|
31
31
|
},
|
|
32
|
-
"sap.ui.layout.Grid": { // meant for Grid in subSection. Actually there are two grids - clarify whether both are needed and which is meant
|
|
33
|
-
properties: ["defaultSpan"] // Todo: check, how this works at all
|
|
34
|
-
},
|
|
35
32
|
"sap.uxap.ObjectPageSection": {
|
|
36
33
|
properties: ["showTitle", "titleUppercase", "title"]
|
|
37
34
|
},
|
|
@@ -39,7 +36,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
39
36
|
properties: ["title"]
|
|
40
37
|
},
|
|
41
38
|
"sap.ui.comp.smarttable.SmartTable": {
|
|
42
|
-
properties: ["
|
|
39
|
+
properties: ["useExportToExcel", "editable", "showPasteButton"],
|
|
43
40
|
actions: ["settings"]
|
|
44
41
|
},
|
|
45
42
|
"sap.m.Table": {
|
|
@@ -112,7 +109,7 @@ sap.ui.define(["sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
|
112
109
|
properties: ["selectionMode"]
|
|
113
110
|
},
|
|
114
111
|
"sap.ui.table.AnalyticalTable": {
|
|
115
|
-
properties: ["selectionMode"]
|
|
112
|
+
properties: ["selectionMode", "minAutoRowCount", "visibleRowCountMode"]
|
|
116
113
|
},
|
|
117
114
|
"sap.ui.table.AnalyticalColumn": {
|
|
118
115
|
properties: ["width", "minWidth"]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend"
|
|
2
|
-
|
|
1
|
+
sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend",
|
|
2
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeHelper"
|
|
3
|
+
], function(BaseObject, extend, designtimeHelper) {
|
|
3
4
|
"use strict";
|
|
4
5
|
|
|
5
6
|
/*
|
|
@@ -30,6 +31,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend"
|
|
|
30
31
|
if (!bWithRestart){
|
|
31
32
|
oTemplateContract.oApplicationProxy.setStates(false);
|
|
32
33
|
}
|
|
34
|
+
designtimeHelper.stopMutationObserver();
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
return {
|
|
@@ -41,6 +41,7 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
41
41
|
var aViews = [];
|
|
42
42
|
var oLogger = new FeLogger("designtime.utils.designTimeHelper").getLogger();
|
|
43
43
|
var RTA_MODE_URL_PARAM_KEY = "fiori-tools-rta-mode";
|
|
44
|
+
var oMutationObserver;
|
|
44
45
|
/**
|
|
45
46
|
* get effective designtime for all controls on current active view
|
|
46
47
|
* @return {Promise} promise resolving to a map, with key = control id, value = designtime
|
|
@@ -81,20 +82,35 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
81
82
|
oView.findAggregatedObjects(true).forEach(addToControlInfo);
|
|
82
83
|
|
|
83
84
|
// if anything is added later (e.g. for dynamic multi edit dialog, fields are added in js code), we need to retrieve the corresponding designtime
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
// Create a MutationObserver instance to observe mutations
|
|
86
|
+
var fnMutationCallback = function (mutationsList) {
|
|
87
|
+
mutationsList.forEach(function (mutation) {
|
|
88
|
+
if (mutation.type === 'childList' && mutation.addedNodes.length > 0) {
|
|
89
|
+
mutation.addedNodes.forEach(function (node) {
|
|
90
|
+
// Find the preceding known node and the corresponding control
|
|
91
|
+
var oNode = findPreceedingKnownNode(node);
|
|
92
|
+
var oControl = oNode && sap.ui.getCore().byId(oNode.id);
|
|
93
|
+
if (oControl) {
|
|
94
|
+
// For each control, find aggregated objects and add them to control info
|
|
95
|
+
oControl.findAggregatedObjects(true).forEach(addToControlInfo);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
};
|
|
101
|
+
if (!oMutationObserver) {
|
|
102
|
+
oMutationObserver = oMutationObserver || new MutationObserver(fnMutationCallback);
|
|
103
|
+
var oMutationObserverConfig = { childList: true, subtree: true };
|
|
104
|
+
oMutationObserver.observe(oTopNode, oMutationObserverConfig);
|
|
105
|
+
}
|
|
92
106
|
});
|
|
93
107
|
|
|
94
108
|
|
|
95
109
|
return Promise.all(aPromises);
|
|
96
110
|
}
|
|
97
|
-
|
|
111
|
+
function fnStopMutationObserver() {
|
|
112
|
+
oMutationObserver && oMutationObserver.disconnect();
|
|
113
|
+
}
|
|
98
114
|
/**
|
|
99
115
|
* Parses the URL parameters and returns the value of RTA mode URL parameter (fiori-tools-rta-mode)
|
|
100
116
|
* @returns {Promise<boolean>} A promise which returns a value of RTA mode
|
|
@@ -389,6 +405,7 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
389
405
|
return {
|
|
390
406
|
getMergedAllowList: deepMergeWithArray,
|
|
391
407
|
getViewDesignTime: getViewDesignTime,
|
|
392
|
-
getRtaModeValue
|
|
408
|
+
getRtaModeValue: getRtaModeValue,
|
|
409
|
+
stopMutationObserver: fnStopMutationObserver
|
|
393
410
|
};
|
|
394
411
|
});
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
displaySize="S"
|
|
19
19
|
displayShape="Circle"
|
|
20
20
|
class="sapUiTinyMarginEnd"
|
|
21
|
+
tooltip="{contact>/contactStatus/badgeTooltip}"
|
|
21
22
|
badgeValueState="{contact>/contactStatus/badgeValueState}" badgeIcon="{contact>/contactStatus/badgeIcon}" badgeTooltip="{contact>/contactStatus/badgeTooltip}"
|
|
22
23
|
macrodata:type="{contact>/teamsCollabOptions/0/key}"
|
|
23
24
|
macrodata:email="{contact>/email}"
|
|
24
|
-
press=".onTeamsCollabOptionPress"
|
|
25
25
|
/>
|
|
26
26
|
<VBox class="sapUiTinyMarginBegin">
|
|
27
27
|
<Title text="{contact>/fn}" level="H3" wrapping="true"/>
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
|
|
32
32
|
<!-- render options for teams contact collaboration -->
|
|
33
33
|
<VBox visible="{= ${contact>/teamsCollabOptions} !== undefined && ${contact>/teamsCollabOptions}.length > 0 }" class="sapUiSmallMarginBottom">
|
|
34
|
-
<Toolbar width="100%" height="1px"/>
|
|
35
34
|
<Toolbar >
|
|
36
35
|
<Title text="{i18n>CONTACT_OPTION}" level="H5" class="sapUiTinyMarginBegin"/>
|
|
37
36
|
<ToolbarSpacer/>
|
|
@@ -63,38 +62,38 @@
|
|
|
63
62
|
</VBox>
|
|
64
63
|
|
|
65
64
|
<VBox visible="{= !!${contact>/title}}" class="sapUiTinyMarginBottom">
|
|
66
|
-
<Label text="{i18n>CONTACT_JOB_TITLE}:"/>
|
|
67
|
-
<Text text="{contact>/title}" class="sapUiTinyMarginBottom" />
|
|
65
|
+
<Label text="{i18n>CONTACT_JOB_TITLE}:" labelFor="template:::contact:::contactDetails::jobTitle"/>
|
|
66
|
+
<Text id="template:::contact:::contactDetails::jobTitle" text="{contact>/title}" class="sapUiTinyMarginBottom" />
|
|
68
67
|
</VBox>
|
|
69
68
|
|
|
70
69
|
<VBox visible="{= !!${contact>/org}}" class="sapUiTinyMarginBottom">
|
|
71
|
-
<Label text="{i18n>CONTACT_DEPARTMENT}:"/>
|
|
72
|
-
<Text text="{contact>/org}" class="sapUiTinyMarginBottom" />
|
|
70
|
+
<Label text="{i18n>CONTACT_DEPARTMENT}:" labelFor="template:::contact:::contactDetails::department"/>
|
|
71
|
+
<Text id="template:::contact:::contactDetails::department" text="{contact>/org}" class="sapUiTinyMarginBottom" />
|
|
73
72
|
</VBox>
|
|
74
73
|
|
|
75
74
|
<VBox visible="{= !!${contact>/email}}" class="sapUiTinyMarginBottom">
|
|
76
|
-
<Label text="{i18n>CONTACT_EMAIL}:" />
|
|
77
|
-
<Link text="{contact>/email}" href="{path: 'contact>/email', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
75
|
+
<Label text="{i18n>CONTACT_EMAIL}:" labelFor="template:::contact:::contactDetails::email"/>
|
|
76
|
+
<Link id="template:::contact:::contactDetails::email" text="{contact>/email}" href="{path: 'contact>/email', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
78
77
|
</VBox>
|
|
79
78
|
|
|
80
79
|
<VBox visible="{= !!${contact>/work}}" class="sapUiTinyMarginBottom">
|
|
81
|
-
<Label text="{i18n>CONTACT_PHONE}:"/>
|
|
82
|
-
<Link text="{contact>/work}" href="{path: 'contact>/work', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
80
|
+
<Label text="{i18n>CONTACT_PHONE}:" labelFor="template:::contact:::contactDetails::phone"/>
|
|
81
|
+
<Link id="template:::contact:::contactDetails::phone" text="{contact>/work}" href="{path: 'contact>/work', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
83
82
|
</VBox>
|
|
84
83
|
|
|
85
84
|
<VBox visible="{= !!${contact>/cell}}" class="sapUiTinyMarginBottom">
|
|
86
|
-
<Label text="{i18n>CONTACT_MOBILE}:"/>
|
|
87
|
-
<Link text="{contact>/cell}" href="{path: 'contact>/cell', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
85
|
+
<Label text="{i18n>CONTACT_MOBILE}:" labelFor="template:::contact:::contactDetails::mobile"/>
|
|
86
|
+
<Link id="template:::contact:::contactDetails::mobile" text="{contact>/cell}" href="{path: 'contact>/cell', formatter: '.formatUri'}" class="sapUiTinyMarginBottom" wrapping="true"/>
|
|
88
87
|
</VBox>
|
|
89
88
|
|
|
90
89
|
<VBox visible="{= !!${contact>/fax}}" class="sapUiTinyMarginBottom">
|
|
91
|
-
<Label text="{i18n>CONTACT_FAX}:"/>
|
|
92
|
-
<Text text="{contact>/fax}" class="sapUiTinyMarginBottom" />
|
|
90
|
+
<Label text="{i18n>CONTACT_FAX}:" labelFor="template:::contact:::contactDetails::fax"/>
|
|
91
|
+
<Text id="template:::contact:::contactDetails::fax" text="{contact>/fax}" class="sapUiTinyMarginBottom" />
|
|
93
92
|
</VBox>
|
|
94
93
|
|
|
95
94
|
<VBox visible="{= !!${contact>/adr}}" class="sapUiTinyMarginBottom">
|
|
96
|
-
<Label text="{i18n>CONTACT_ADDRESS}:"/>
|
|
97
|
-
<Text text="{contact>/adr}" class="sapUiTinyMarginBottom" />
|
|
95
|
+
<Label text="{i18n>CONTACT_ADDRESS}:" labelFor="template:::contact:::contactDetails::address"/>
|
|
96
|
+
<Text id="template:::contact:::contactDetails::address" text="{contact>/adr}" class="sapUiTinyMarginBottom" />
|
|
98
97
|
</VBox>
|
|
99
98
|
|
|
100
99
|
</VBox>
|
package/src/sap/suite/ui/generic/template/fragments/ContactDetailsQuickViewGroupReplica.fragment.xml
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
<!-- render options for teams contact collaboration -->
|
|
11
11
|
<template:if test="{= !!${path: 'contact>email/[${type/EnumMember}.indexOf(\'ContactInformationType/work\')>=0]/address', formatter: 'AHModel.format'} && ${parameter>/templateSpecific/teamsCollabOptions} !== undefined && ${parameter>/templateSpecific/teamsCollabOptions}.length > 0 }">
|
|
12
12
|
<VBox class="sapUiSmallMarginBegin sapUiTinyMarginTopBottom">
|
|
13
|
-
<Toolbar width="100%" height="1px"/>
|
|
14
13
|
<Toolbar>
|
|
15
14
|
<Title text="{i18n>CONTACT_OPTION}" level="H5" class="sapUiTinyMarginBegin"/>
|
|
16
15
|
<ToolbarSpacer/>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
+
<VBox >
|
|
3
|
+
<MessageStrip
|
|
4
|
+
text="{i18n>ST_EASY_FILTER_PROMPT_INFO}"
|
|
5
|
+
showIcon="true"
|
|
6
|
+
showCloseButton="true"
|
|
7
|
+
class="sapUiSmallMarginBottom"/>
|
|
8
|
+
<FlexBox renderType="Bare">
|
|
9
|
+
<Input id="easyFilter"
|
|
10
|
+
width="100%" class="sapUiSmallMarginEnd"
|
|
11
|
+
placeholder="{i18n>ST_EASY_FILTER_INPUT_PLACEHOLDER}"
|
|
12
|
+
change="._templateEventHandlers.onEasyFilterChange"
|
|
13
|
+
showClearIcon="true"
|
|
14
|
+
maxLength="100"
|
|
15
|
+
submit="._templateEventHandlers.onEasyFilterEnterPress">
|
|
16
|
+
</Input>
|
|
17
|
+
<Button text="{i18n>ST_EASY_FILTER_GO_BUTTON_TEXT}"
|
|
18
|
+
type="Emphasized"
|
|
19
|
+
icon="sap-icon://ai"
|
|
20
|
+
press="._templateEventHandlers.onEasyFilterGoButtonPress">
|
|
21
|
+
</Button>
|
|
22
|
+
</FlexBox>
|
|
23
|
+
</VBox>
|
|
24
|
+
</core:FragmentDefinition>
|
|
@@ -28,6 +28,17 @@
|
|
|
28
28
|
<smartField:configuration>
|
|
29
29
|
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
|
|
30
30
|
</smartField:configuration>
|
|
31
|
+
<template:if test="{= ${dataField>Criticality}}">
|
|
32
|
+
<smartField:controlProposal>
|
|
33
|
+
<smartField:ControlProposal>
|
|
34
|
+
<smartField:objectStatus>
|
|
35
|
+
<smartField:ObjectStatus criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
36
|
+
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"
|
|
37
|
+
ariaLabelledBy="{columnId>id}"/>
|
|
38
|
+
</smartField:objectStatus>
|
|
39
|
+
</smartField:ControlProposal>
|
|
40
|
+
</smartField:controlProposal>
|
|
41
|
+
</template:if>
|
|
31
42
|
</smartField:SmartField>
|
|
32
43
|
</template:elseif>
|
|
33
44
|
<!-- template for DataFieldForAction and DataFieldForIntentBasedNavigation -->
|
|
@@ -38,7 +49,7 @@
|
|
|
38
49
|
<!-- ObjectPage Self-Linking. Template for DataFieldWithNavigationPath-->
|
|
39
50
|
<template:elseif test="{= (${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath')}">
|
|
40
51
|
<smartField:SmartField value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
|
|
41
|
-
editable="{ui>/editable}"
|
|
52
|
+
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
|
|
42
53
|
<smartField:customData>
|
|
43
54
|
<core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
|
|
44
55
|
</smartField:customData>
|
|
@@ -20,6 +20,17 @@
|
|
|
20
20
|
<sfi:Configuration
|
|
21
21
|
displayBehaviour="{parts: [{path: 'dataPoint>'}, {path: 'annotation>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
|
|
22
22
|
</sfi:configuration>
|
|
23
|
+
<template:if test="{= ${dataPoint>Criticality} }">
|
|
24
|
+
<sfi:controlProposal>
|
|
25
|
+
<sfi:ControlProposal>
|
|
26
|
+
<sfi:objectStatus>
|
|
27
|
+
<sfi:ObjectStatus
|
|
28
|
+
criticality="{= ${dataPoint>Criticality/EnumMember} ? ${dataPoint>Criticality/EnumMember} : ${path: 'dataPoint>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
29
|
+
criticalityRepresentationType="WithoutIcon"/>
|
|
30
|
+
</sfi:objectStatus>
|
|
31
|
+
</sfi:ControlProposal>
|
|
32
|
+
</sfi:controlProposal>
|
|
33
|
+
</template:if>
|
|
23
34
|
</sfi:SmartField>
|
|
24
35
|
</template:with>
|
|
25
36
|
</core:FragmentDefinition>
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
69
69
|
value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
|
|
70
70
|
textLabel="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'headerFacet>'}], formatter: 'AH.getLabelForDFwithIBN'}"
|
|
71
|
-
editable="{ui>/editable}"
|
|
71
|
+
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
|
|
72
72
|
<sfi:configuration>
|
|
73
73
|
<sfi:Configuration
|
|
74
74
|
displayBehaviour="{parts: [{path: 'dataField>'}, {value: ''}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}" />
|
|
@@ -108,6 +108,18 @@
|
|
|
108
108
|
<sfi:Configuration
|
|
109
109
|
displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'annotation>'}, {path: 'entitySet>'}], formatter: 'AH.getTextArrangementForSmartControl'}"/>
|
|
110
110
|
</sfi:configuration>
|
|
111
|
+
<template:if test="{= ${dataField>Criticality} }">
|
|
112
|
+
<sfi:controlProposal>
|
|
113
|
+
<sfi:ControlProposal>
|
|
114
|
+
<sfi:objectStatus>
|
|
115
|
+
<sfi:ObjectStatus
|
|
116
|
+
criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
117
|
+
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"
|
|
118
|
+
class="sapSmartTemplatesObjectPageHeaderFormObjectStatus"/>
|
|
119
|
+
</sfi:objectStatus>
|
|
120
|
+
</sfi:ControlProposal>
|
|
121
|
+
</sfi:controlProposal>
|
|
122
|
+
</template:if>
|
|
111
123
|
<sfi:customData>
|
|
112
124
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
113
125
|
<core:CustomData
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
2
|
<Dialog class="sapUiNoContentPadding" state="{settings>/state}" type="Message" afterClose="afterClose"
|
|
3
3
|
showHeader="true" horizontalScrolling="false" draggable="true"
|
|
4
|
-
contentHeight="440px" contentWidth="440px" verticalScrolling="false">
|
|
4
|
+
contentHeight="440px" contentWidth="440px" verticalScrolling="false" resizable="true">
|
|
5
5
|
<content>
|
|
6
6
|
<MessageView items="{settings>/messages}" showDetailsPageHeader="false" itemSelect="onMessageSelect" groupItems="{settings>/grouping}">
|
|
7
7
|
<MessageItem type="{settings>type}" title="{settings>message}" description="{settings>description}"
|
package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
2
|
<Dialog class="sapUiNoContentPadding" id="ShowConfirmationOnDraftActivate" state="{model>/state}" afterClose="afterClose" type="Message" initialFocus="Close"
|
|
3
3
|
showHeader="true" horizontalScrolling="false" draggable="true"
|
|
4
|
-
contentHeight="440px" contentWidth="440px" verticalScrolling="false">
|
|
4
|
+
contentHeight="440px" contentWidth="440px" verticalScrolling="false" resizable="true">
|
|
5
5
|
<content>
|
|
6
6
|
<MessageView id="messageView" items="{msg>/}" showDetailsPageHeader="false" itemSelect="onMessageSelect" activeTitlePress="titlePressed" groupItems="true">
|
|
7
7
|
<MessageItem id="messageItem" type="{msg>type}" title="{msg>message}" description="{msg>description}"
|