@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
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
+
|
|
4
|
+
(c) Copyright 2009-2015 SAP SE. All rights reserved
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/util/deepClone",
|
|
9
|
+
"sap/suite/ui/generic/template/designtime/utils/designtimeUtils",
|
|
10
|
+
"sap/base/util/ObjectPath",
|
|
11
|
+
"sap/suite/ui/generic/template/genericUtilities/testableHelper"
|
|
12
|
+
],
|
|
13
|
+
function (deepClone, designtimeUtils, ObjectPath, testableHelper) {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
const LIST_REPORT_COMPONENT_NAME = "sap.suite.ui.generic.template.ListReport";
|
|
17
|
+
// ALP
|
|
18
|
+
const ANALYTICAL_LIST_PAGE_COMPONENT_NAME = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @typedef {Object} DesigntimeSetting
|
|
22
|
+
* @property {string} id - The ID of the designtime setting.
|
|
23
|
+
* @property {string} name - The name of the designtime setting.
|
|
24
|
+
* @property {string} description - The description of the designtime setting.
|
|
25
|
+
* @property {PropertyValue} [value] - The default value of the designtime setting.
|
|
26
|
+
* @property {string} type - The type of the designtime setting.
|
|
27
|
+
* @property {Array.<Enum>} [enums] - The array of possible enum values for the designtime setting.
|
|
28
|
+
* @property {(mControlDetails: ControlInfo) => string} [getPath] - The path to the designtime setting in the manifest.
|
|
29
|
+
* @property {boolean} [bSupportsGlobalScope] - Indicates if the setting supports global scope. (Default: false)
|
|
30
|
+
* @property {string[]} [restrictedTo] - The array of components for which the setting is restricted.
|
|
31
|
+
* @property {Partial<DesigntimeSetting>[]} [writeObject] - An array of DesigntimeSetting objects.
|
|
32
|
+
* @property {string} [writeObjectFor] - The value for which the writeObject should be applied.
|
|
33
|
+
* @property {boolean} [skipChange] - Indicates if the change should be skipped.
|
|
34
|
+
|
|
35
|
+
===============================================
|
|
36
|
+
* @typedef {Object} ChangeParameters - Descriptor change parameters.
|
|
37
|
+
* @property {string} [sScope] - The scope of the manifest setting.
|
|
38
|
+
* @property {string} [sChangeType] - Desciptor change type.
|
|
39
|
+
===============================================
|
|
40
|
+
|
|
41
|
+
* @typedef {Object} ControlInfo
|
|
42
|
+
* @property {string} [sParentComponentName] - The name of the parent component.
|
|
43
|
+
* @extends ChangeParameters
|
|
44
|
+
|
|
45
|
+
* @typedef {ChangeParameters & ControlInfo} ControlChangeParams
|
|
46
|
+
|
|
47
|
+
* @typedef {string | boolean | string[] | null } PropertyValue
|
|
48
|
+
|
|
49
|
+
* @typedef {Object} Enum
|
|
50
|
+
* @property {string} id - The ID of the enum value.
|
|
51
|
+
* @property {string} name - The name of the enum value.
|
|
52
|
+
* @property {Object} [value] - The value of the enum value.
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Retrieves the runtime adaptation properties based on the allowed design-time settings and global settings.
|
|
58
|
+
*
|
|
59
|
+
* @param {Array} aAllowedDesigntimeSettings - The array of allowed design-time settings.
|
|
60
|
+
* @param {Object} mFilterSettings - The global manifest settings object.
|
|
61
|
+
* @returns {Object} - The object containing the runtime adaptation properties.
|
|
62
|
+
*/
|
|
63
|
+
function getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings) {
|
|
64
|
+
const mPropertyValues = {};
|
|
65
|
+
|
|
66
|
+
aAllowedDesigntimeSettings.forEach(oSetting => {
|
|
67
|
+
const sProperty = oSetting.id;
|
|
68
|
+
switch (sProperty) {
|
|
69
|
+
case "useDateRange":
|
|
70
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] || oSetting.value;
|
|
71
|
+
break;
|
|
72
|
+
case "navigationProperties":
|
|
73
|
+
mPropertyValues[sProperty] = mFilterSettings[sProperty] || oSetting.value;
|
|
74
|
+
break;
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
default:
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return mPropertyValues;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Retrieves the designtime settings for the Control.
|
|
86
|
+
* @param {object} oControl - The Control object.
|
|
87
|
+
* @returns {DesigntimeSetting[]}
|
|
88
|
+
*/
|
|
89
|
+
let getAllDesigntimeSettings = function getAllDesigntimeSettings(oControl) {
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves the enums for the SmartFilterBar control.
|
|
92
|
+
* @param {Array<string>} aPropertyNames - The array of enums.
|
|
93
|
+
* @returns {Array<Enum>} - The array of enums.
|
|
94
|
+
*/
|
|
95
|
+
function getEnums(aPropertyNames) {
|
|
96
|
+
return aPropertyNames.map(sPropertyName => {
|
|
97
|
+
return {
|
|
98
|
+
id: sPropertyName,
|
|
99
|
+
name: sPropertyName
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Retrieves the navigation properties for the SmartFilterBar control.
|
|
106
|
+
* @returns {Array<string>} - The array of navigation properties.
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
function getNavigationProperties() {
|
|
110
|
+
const oMetaModel = oControl.getModel().getMetaModel();
|
|
111
|
+
// Get the entity set of the SmartFilterBar control
|
|
112
|
+
const sEntitySet = oControl.getEntitySet?.();
|
|
113
|
+
if (!sEntitySet){
|
|
114
|
+
throw new Error("Error while retrieving the entity set of the SmartFilterBar control");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const oEntityType = oMetaModel.getODataEntityType(oMetaModel.getODataEntitySet(sEntitySet).entityType);
|
|
118
|
+
// Sibling entity types are the navigation properties
|
|
119
|
+
return (oEntityType.navigationProperty || [])
|
|
120
|
+
.map(oNavigationProperty => oNavigationProperty.name)
|
|
121
|
+
.filter(sNavigationProperty => sNavigationProperty !== "SiblingEntity");
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* @type {DesigntimeSetting}
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
const enableDateRange = {
|
|
129
|
+
id: "useDateRange",
|
|
130
|
+
name: "Enable Date Range",
|
|
131
|
+
description: "Enable Date Range",
|
|
132
|
+
value: true,
|
|
133
|
+
type: "boolean",
|
|
134
|
+
getPath: function (mControlDetails) {
|
|
135
|
+
return `component/settings/filterSettings/dateSettings/useDateRange`;
|
|
136
|
+
},
|
|
137
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME, ANALYTICAL_LIST_PAGE_COMPONENT_NAME]
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* @type {DesigntimeSetting}
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
const navigationProperties = {
|
|
146
|
+
id: "navigationProperties",
|
|
147
|
+
name: "Navigation Properties",
|
|
148
|
+
description: "Navigation Properties",
|
|
149
|
+
type: "string[]",
|
|
150
|
+
getPath: function (mControlDetails) {
|
|
151
|
+
return `component/settings/filterSettings/navigationProperties`;
|
|
152
|
+
},
|
|
153
|
+
value: [],
|
|
154
|
+
restrictedTo: [LIST_REPORT_COMPONENT_NAME, ANALYTICAL_LIST_PAGE_COMPONENT_NAME],
|
|
155
|
+
enums: getEnums(getNavigationProperties())
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
return [enableDateRange, navigationProperties];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
function getFilterSettings(oComponent) {
|
|
165
|
+
const mFilterSettings = oComponent.getFilterSettings();
|
|
166
|
+
return {
|
|
167
|
+
useDateRange: ObjectPath.get("dateSettings.useDateRange", mFilterSettings),
|
|
168
|
+
|
|
169
|
+
navigationProperties: ObjectPath.get("navigationProperties", mFilterSettings)
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Opens the dialog for the table configuration.
|
|
178
|
+
* @param {sap.ui.core.Control} oControl - The control for which the dialog should be opened.
|
|
179
|
+
* @param {object} mPropertyBag - The property bag.
|
|
180
|
+
* @returns {Promise<ControlChangeParams[]>} - The changes.
|
|
181
|
+
*/
|
|
182
|
+
async function fnOpenTableConfigurationDialog(oControl, mPropertyBag) {
|
|
183
|
+
const oResourceModel = oControl.getModel("i18n");
|
|
184
|
+
const oComponent = designtimeUtils.getOwnerComponentFor(oControl);
|
|
185
|
+
// Get the filter settings from the component
|
|
186
|
+
const mFilterSettings = getFilterSettings(oComponent);
|
|
187
|
+
|
|
188
|
+
// Get all the designtime settings
|
|
189
|
+
const aAllDesigntimeSettings = getAllDesigntimeSettings(oControl);
|
|
190
|
+
// Get the allowed designtime settings based on the floorplan
|
|
191
|
+
const aAllowedDesigntimeSettings = designtimeUtils.getAllowedDesigntimeSettings(oControl, aAllDesigntimeSettings);
|
|
192
|
+
|
|
193
|
+
// Get the current values of the properties
|
|
194
|
+
const mRuntimeAdaptationPropertyValues = getRuntimeAdapationProperties(aAllowedDesigntimeSettings, mFilterSettings);
|
|
195
|
+
// Save the unchanged data to compare later
|
|
196
|
+
const mUnchangedData = deepClone(mRuntimeAdaptationPropertyValues);
|
|
197
|
+
// Get the settings of the dialog from the designtime settings using which the dialog will be created
|
|
198
|
+
const aItems = designtimeUtils.getSettings(mRuntimeAdaptationPropertyValues, aAllowedDesigntimeSettings);
|
|
199
|
+
|
|
200
|
+
// disable the scope control if there is only one option
|
|
201
|
+
|
|
202
|
+
const mPropertyValuesEntered = await designtimeUtils.openAdaptionDialog([...aItems], mRuntimeAdaptationPropertyValues, mUnchangedData, "{i18n>RTA_CONFIGURATION_TITLE_FILTER_BAR}", { width: "650px", height: "800px" }, oResourceModel);
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* @type {ControlChangeParams}
|
|
207
|
+
*/
|
|
208
|
+
const mPathParameters = {
|
|
209
|
+
sChangeType: designtimeUtils.ChangeType.ChangePageConfiguration
|
|
210
|
+
};
|
|
211
|
+
return designtimeUtils.extractChanges(mPropertyValuesEntered, mUnchangedData, aAllowedDesigntimeSettings, oComponent, mPathParameters);
|
|
212
|
+
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Expose the functions for QUnit tests
|
|
216
|
+
testableHelper.testableStatic(fnOpenTableConfigurationDialog, "fnOpenTableConfigurationDialog");
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
const oHelper = {
|
|
220
|
+
getDesigntime: function (oControl) {
|
|
221
|
+
return {
|
|
222
|
+
actions: {
|
|
223
|
+
settings: {
|
|
224
|
+
fe: {
|
|
225
|
+
name: "Configuration",
|
|
226
|
+
icon: "sap-icon://developer-settings",
|
|
227
|
+
handler: fnOpenTableConfigurationDialog
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
return oHelper;
|
|
235
|
+
}
|
|
236
|
+
);
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
sap.ui.define([
|
|
2
|
-
"sap/
|
|
3
|
-
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/base/util/deepExtend",
|
|
3
|
+
"sap/base/util/merge",
|
|
4
|
+
"sap/suite/ui/generic/template/designtime/controls/SmartTable.designtime",
|
|
5
|
+
"sap/suite/ui/generic/template/designtime/controls/DynamicPage.designtime",
|
|
6
|
+
"sap/suite/ui/generic/template/designtime/controls/SmartFilterBar.designtime",
|
|
7
|
+
"sap/suite/ui/generic/template/designtime/controls/ObjectPageLayout.designtime",
|
|
8
|
+
"sap/ui/core/Element"
|
|
9
|
+
], function (
|
|
10
|
+
deepExtend,
|
|
11
|
+
merge,
|
|
12
|
+
SmartTableDesigntimeHelper,
|
|
13
|
+
DynamicPageDesigntimeHelper,
|
|
14
|
+
SmartFilterBarDesigntimeHelper,
|
|
15
|
+
ObjectPageLayoutDesigntimeHelper,
|
|
16
|
+
Element
|
|
17
|
+
) {
|
|
4
18
|
"use strict";
|
|
5
19
|
|
|
6
20
|
/*
|
|
@@ -72,8 +86,8 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
72
86
|
|
|
73
87
|
// Assumption: Enough to start with template views and find all aggregated objects
|
|
74
88
|
// for later added controls: enough to add listener on those views, react if related Node is a known control, and recheck all aggregated objects of that control
|
|
75
|
-
document.querySelectorAll(".sapUiXMLView").forEach(function
|
|
76
|
-
var oView =
|
|
89
|
+
document.querySelectorAll(".sapUiXMLView").forEach(function(oTopNode){
|
|
90
|
+
var oView = Element.getElementById(oTopNode.id);
|
|
77
91
|
// defensive programming, as any error here would be caught by UI adaptation and lead to just ignoring designtime provided here - which would open up for any UI adaptation provided from
|
|
78
92
|
// deeper layers
|
|
79
93
|
// first two conditions should actually not occur, but if so, evaluating the third would break
|
|
@@ -91,7 +105,7 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
91
105
|
mutation.addedNodes.forEach(function (node) {
|
|
92
106
|
// Find the preceding known node and the corresponding control
|
|
93
107
|
var oNode = findPreceedingKnownNode(node);
|
|
94
|
-
var oControl = oNode &&
|
|
108
|
+
var oControl = oNode && Element.getElementById(oNode.id);
|
|
95
109
|
if (oControl) {
|
|
96
110
|
// For each control, find aggregated objects and add them to control info
|
|
97
111
|
oControl.findAggregatedObjects(true).forEach(addToControlInfo);
|
|
@@ -335,14 +349,27 @@ sap.ui.define(["sap/base/util/extend", "sap/base/util/deepExtend", "sap/base/uti
|
|
|
335
349
|
var oCustomDesigntime = {};
|
|
336
350
|
if (sFioriToolsRtaMode === FioriToolsRtaMode.ForAdaptation) {
|
|
337
351
|
switch (oElement.getMetadata().getElementName()) {
|
|
352
|
+
// objectpagelayout
|
|
353
|
+
case "sap.uxap.ObjectPageLayout":
|
|
354
|
+
oCustomDesigntime = ObjectPageLayoutDesigntimeHelper.getDesigntime(
|
|
355
|
+
oElement
|
|
356
|
+
);
|
|
357
|
+
break;
|
|
358
|
+
case "sap.ui.comp.smartfilterbar.SmartFilterBar":
|
|
359
|
+
oCustomDesigntime = SmartFilterBarDesigntimeHelper.getDesigntime(
|
|
360
|
+
oElement
|
|
361
|
+
);
|
|
362
|
+
break;
|
|
338
363
|
case "sap.ui.comp.smarttable.SmartTable":
|
|
339
|
-
case "sap.ui.table.Table":
|
|
340
|
-
case "sap.m.Table":
|
|
341
|
-
case "sap.ui.table.AnalyticalTable":
|
|
342
364
|
oCustomDesigntime = SmartTableDesigntimeHelper.getDesigntime(
|
|
343
365
|
oElement
|
|
344
366
|
);
|
|
345
367
|
break;
|
|
368
|
+
case "sap.f.DynamicPage":
|
|
369
|
+
oCustomDesigntime = DynamicPageDesigntimeHelper.getDesigntime(
|
|
370
|
+
oElement
|
|
371
|
+
);
|
|
372
|
+
break;
|
|
346
373
|
default:
|
|
347
374
|
break;
|
|
348
375
|
}
|
|
@@ -44,8 +44,9 @@ sap.ui.define([
|
|
|
44
44
|
"sap/m/CheckBox",
|
|
45
45
|
"sap/ui/core/Item",
|
|
46
46
|
"sap/m/Select",
|
|
47
|
-
"sap/m/Token"
|
|
48
|
-
|
|
47
|
+
"sap/m/Token",
|
|
48
|
+
"sap/m/MultiComboBox"
|
|
49
|
+
], function (JSONModel, InputListItem, List, MultiInput, Input, CheckBox, Item, Select, Token, MultiComboBox) {
|
|
49
50
|
const settingsModel = new JSONModel();
|
|
50
51
|
settingsModel.setData(aDialogContent);
|
|
51
52
|
|
|
@@ -89,27 +90,51 @@ sap.ui.define([
|
|
|
89
90
|
}).data("id", id);
|
|
90
91
|
}
|
|
91
92
|
case "string[]":
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (index !== -1) { array.splice(index, 1); }
|
|
93
|
+
if (oContext.getProperty("enum")) {
|
|
94
|
+
const multiSelectItem = new Item({ text: "{name}", key: "{id}" });
|
|
95
|
+
const oMultiComboBox = new MultiComboBox({
|
|
96
|
+
width: "60%",
|
|
97
|
+
selectedKeys: propertyValues[id] || [],
|
|
98
|
+
selectionChange: function (event) {
|
|
99
|
+
propertyValues[this.data("id")] = event.getSource().getSelectedKeys();
|
|
100
|
+
},
|
|
101
|
+
enabled: {
|
|
102
|
+
path: "disabled",
|
|
103
|
+
formatter: function (disabled) {
|
|
104
|
+
return !disabled;
|
|
105
|
+
}
|
|
106
106
|
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
}).data("id", id);
|
|
108
|
+
|
|
109
|
+
oMultiComboBox.bindItems({ path: "enum", template: multiSelectItem });
|
|
110
|
+
oMultiComboBox.setSelectedKeys(unchangedData[id] || []);
|
|
111
|
+
return oMultiComboBox;
|
|
112
|
+
} else {
|
|
113
|
+
const oMultiInput = new MultiInput({
|
|
114
|
+
width: "70%",
|
|
115
|
+
showValueHelp: false,
|
|
116
|
+
showClearIcon: true,
|
|
117
|
+
tokens: (propertyValues[id] || []).map(function (navigationProperty) {
|
|
118
|
+
return new Token({ text: navigationProperty, key: navigationProperty });
|
|
119
|
+
}),
|
|
120
|
+
tokenUpdate: function (event) {
|
|
121
|
+
const array = propertyValues[this.data("id")];
|
|
122
|
+
if (event.getParameter("addedTokens").length > 0) {
|
|
123
|
+
array.push(event.getParameter("addedTokens")[0].getKey());
|
|
124
|
+
} else if (event.getParameter("removedTokens").length > 0) {
|
|
125
|
+
const index = array.indexOf(event.getParameter("removedTokens")[0].getKey());
|
|
126
|
+
if (index !== -1) {
|
|
127
|
+
array.splice(index, 1);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}).data("id", id);
|
|
132
|
+
|
|
133
|
+
oMultiInput.addValidator(function (args) {
|
|
134
|
+
return new Token({ key: args.text, text: args.text });
|
|
135
|
+
});
|
|
136
|
+
return oMultiInput;
|
|
137
|
+
}
|
|
113
138
|
case "number":
|
|
114
139
|
return new Input({
|
|
115
140
|
value: "{value}",
|
|
@@ -141,6 +166,19 @@ sap.ui.define([
|
|
|
141
166
|
booleanOrStringSelect.bindItems({ path: "enum", template: booleanOrStringItem });
|
|
142
167
|
booleanOrStringSelect.setSelectedKey(unchangedData[id]);
|
|
143
168
|
return booleanOrStringSelect;
|
|
169
|
+
|
|
170
|
+
case "booleanOrStringCheckbox":
|
|
171
|
+
const enums = oContext.getProperty("enum");
|
|
172
|
+
const booleanOrStringCheckbox = new CheckBox({
|
|
173
|
+
selected: unchangedData[id] === enums.find(e => e.name === "true").id,
|
|
174
|
+
select: function (event) {
|
|
175
|
+
const isSelected = event.getParameter("selected");
|
|
176
|
+
const value = isSelected ? enums.find(e => e.name === "true").id : enums.find(e => e.name === "false").id;
|
|
177
|
+
propertyValues[this.data("id")] = value;
|
|
178
|
+
}
|
|
179
|
+
}).data("id", id);
|
|
180
|
+
return booleanOrStringCheckbox;
|
|
181
|
+
|
|
144
182
|
case "json":
|
|
145
183
|
return new Input({
|
|
146
184
|
value: "{value}",
|
|
@@ -417,6 +455,11 @@ sap.ui.define([
|
|
|
417
455
|
return oSupportedGlobalManifestSettings;
|
|
418
456
|
}
|
|
419
457
|
|
|
458
|
+
function getAllowedDesigntimeSettings(oControl, aDesigntimeSettings) {
|
|
459
|
+
const sComponentName = getOwnerComponentFor(oControl).getMetadata().getComponentName();
|
|
460
|
+
return aDesigntimeSettings.filter(oSetting => !oSetting.restrictedTo || oSetting.restrictedTo.includes(sComponentName));
|
|
461
|
+
}
|
|
462
|
+
|
|
420
463
|
|
|
421
464
|
// Add the functions to the testableHelper for testing which are not exported
|
|
422
465
|
getChangedPropertyValues = testableHelper.testableStatic(getChangedPropertyValues, "getChangedPropertyValues");
|
|
@@ -432,6 +475,7 @@ sap.ui.define([
|
|
|
432
475
|
getLocalId,
|
|
433
476
|
SettingScope,
|
|
434
477
|
ChangeType,
|
|
435
|
-
getSupportedGlobalManifestSettings
|
|
478
|
+
getSupportedGlobalManifestSettings,
|
|
479
|
+
getAllowedDesigntimeSettings
|
|
436
480
|
};
|
|
437
481
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
APPLY=
|
|
2
|
+
APPLY=nH1BrR0hyKgb04d73Mxd+A_Apply
|
|
3
3
|
|
|
4
|
-
MESSAGE_BUTTON_TOOLTIP_S=
|
|
4
|
+
MESSAGE_BUTTON_TOOLTIP_S=NwlSqAFib9vfeqqNE781IQ_1 Message
|
|
5
5
|
|
|
6
|
-
MESSAGE_BUTTON_TOOLTIP_P=
|
|
6
|
+
MESSAGE_BUTTON_TOOLTIP_P=NgyLDP6lSQDYc2CsPadzZg_{0} Messages
|
|
7
7
|
|
|
8
|
-
MESSAGE_BUTTON_TYPE=
|
|
8
|
+
MESSAGE_BUTTON_TYPE=x5WGCQhSx49hUiJHwlOkmw_Messages
|
|
9
9
|
|
|
10
|
-
ST_DETAIL_TITLE_VALIDATION=
|
|
10
|
+
ST_DETAIL_TITLE_VALIDATION=AfreC6WzZTp/+R8OrCdWgA_Validation Messages
|
|
11
11
|
|
|
12
|
-
ST_DETAIL_TITLE_DELETE=
|
|
12
|
+
ST_DETAIL_TITLE_DELETE=IkZr5MmugIY4SHT8ExcbvQ_Delete
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
press="{customAction>press}"
|
|
14
14
|
type="Transparent">
|
|
15
15
|
<layoutData>
|
|
16
|
-
<OverflowToolbarLayoutData priority
|
|
16
|
+
<OverflowToolbarLayoutData priority="{path: 'customAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
17
17
|
</layoutData>
|
|
18
18
|
</Button>
|
|
19
19
|
</template:if>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
press="{customAction>press}"
|
|
30
30
|
type="Transparent">
|
|
31
31
|
<layoutData>
|
|
32
|
-
<OverflowToolbarLayoutData priority
|
|
32
|
+
<OverflowToolbarLayoutData priority="{path: 'customAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
33
33
|
</layoutData>
|
|
34
34
|
</Button>
|
|
35
35
|
</template:if>
|
|
@@ -1,12 +1,13 @@
|
|
|
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
|
<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
|
|
5
6
|
<Button id="{customaction>id}"
|
|
6
7
|
text="{customaction>text}"
|
|
7
8
|
press="{customaction>press}" type="Default">
|
|
8
9
|
<layoutData>
|
|
9
|
-
<OverflowToolbarLayoutData priority
|
|
10
|
+
<OverflowToolbarLayoutData priority="{path: 'customaction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
10
11
|
</layoutData>
|
|
11
12
|
</Button>
|
|
12
13
|
</template:if>
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core" xmlns:feControls="sap.fe.controls.easyFilter">
|
|
2
2
|
<!-- to check how to use a common model property instead of listReport/filterMode which is specific to LR-->
|
|
3
3
|
<VBox visible="{= ${_templPriv>/listReport/filterMode} === 'easyFilter'}">
|
|
4
|
-
<MessageStrip
|
|
5
|
-
text="{i18n>ST_EASY_FILTER_PROMPT_INFO}"
|
|
6
|
-
showIcon="true"
|
|
7
|
-
showCloseButton="true"
|
|
8
|
-
class="sapUiSmallMarginBottom"/>
|
|
9
4
|
<feControls:EasyFilterBarContainer id="template::easyFilterContainer"
|
|
10
5
|
showValueHelp="._templateEventHandlers.onEasyFilterShowValueHelp"
|
|
11
6
|
queryChanged="._templateEventHandlers.onEasyFilterQueryChanged"
|
|
@@ -13,7 +8,6 @@
|
|
|
13
8
|
beforeQueryProcessing="._templateEventHandlers.onEasyFilterBeforeQueryProcessing"
|
|
14
9
|
afterQueryProcessing="._templateEventHandlers.onEasyFilterAfterQueryProcessing"
|
|
15
10
|
clearFilters="._templateEventHandlers.onEasyFilterClearFilters"
|
|
16
|
-
executeSearch="._templateEventHandlers.onEasyFilterExecuteSearch"
|
|
17
11
|
/>
|
|
18
12
|
</VBox>
|
|
19
13
|
</core:FragmentDefinition>
|
|
@@ -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
|
<template:if test="{= ${tmpEntitySet>EntitySet} === ${parameter>/entitySet} }">
|
|
5
6
|
<template:repeat list="{tmpEntitySet>Actions}" var="customAction">
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
press="{= ${customAction>command} ? 'cmd:' + ${customAction>command} : ${customAction>press} }"
|
|
10
11
|
type="Default">
|
|
11
12
|
<layoutData>
|
|
12
|
-
<OverflowToolbarLayoutData priority="{customAction>importance}"/>
|
|
13
|
+
<OverflowToolbarLayoutData priority="{path: 'customAction>importance', formatter: 'AH.getToolbarButtonPriorityFromImportance'}"/>
|
|
13
14
|
</layoutData>
|
|
14
15
|
</Button>
|
|
15
16
|
</template:if>
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
<fe:Link
|
|
11
11
|
text="{parts: [{path: 'dataField>'}, {path: 'listEntitySet>'}], formatter: 'AH.getLinkTextForDFwithIBN'}"
|
|
12
12
|
press="._templateEventHandlers.onDataFieldWithIntentBasedNavigation"
|
|
13
|
+
accessibleRole="Button"
|
|
13
14
|
wrapping="false">
|
|
14
15
|
<fe:customData>
|
|
15
16
|
<core:CustomData key="SemanticObject" value="{path: 'dataField>SemanticObject', formatter: 'AHModel.format'}" />
|
|
@@ -89,9 +90,9 @@
|
|
|
89
90
|
<template:elseif test="{= ${dataFieldTarget>Visualization/EnumMember} === 'com.sap.vocabularies.UI.v1.VisualizationType/Progress'}">
|
|
90
91
|
<template:with path="dataFieldTarget>Value" helper="AHModel.resolvePath" var="value">
|
|
91
92
|
<!-- Progress Bar Control -->
|
|
92
|
-
<!-- The formatter 'formatDisplayValueForProgressIndicator' is used by 'AH.buildExpressionForProgressIndicatorDisplayValue' -->
|
|
93
|
+
<!-- The formatter 'RuntimeFormatters.formatDisplayValueForProgressIndicator' is used by 'AH.buildExpressionForProgressIndicatorDisplayValue' -->
|
|
93
94
|
<ProgressIndicator
|
|
94
|
-
core:require="{
|
|
95
|
+
core:require="{RuntimeFormatters: 'sap/suite/ui/generic/template/js/RuntimeFormatters'}"
|
|
95
96
|
binding="{= ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/') > -1 ? '{' + ${path: 'dataField>Target/AnnotationPath'}.slice(0, ${ path: 'dataField>Target/AnnotationPath'}.indexOf('/')) + '}' : null}"
|
|
96
97
|
percentValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>'}], formatter: 'AH.buildExpressionForProgressIndicatorPercentValue' }"
|
|
97
98
|
displayValue="{ parts: [{path:'dataFieldTarget>'}, {path:'value>Org.OData.Measures.V1.Unit'}], formatter: 'AH.buildExpressionForProgressIndicatorDisplayValue'}"
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<template:if test="{headerFacet>Label}">
|
|
10
10
|
<Title id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::Label"
|
|
11
11
|
text="{path: 'headerFacet>Label', formatter: 'AHModel.format'}:"
|
|
12
|
-
class="sapSmartTemplatesObjectPageHeaderAddressLabel"
|
|
12
|
+
class="sapSmartTemplatesObjectPageHeaderAddressLabel"
|
|
13
|
+
level="H3"/>
|
|
13
14
|
</template:if>
|
|
14
15
|
<Text id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::Address"
|
|
15
16
|
class="sapSmartTemplatesObjectPageHeaderAddressValue"
|
package/src/sap/suite/ui/generic/template/fragments/HeaderContactWithDetailsPopover.fragment.xml
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
<template:if test="{headerFacet>Label}">
|
|
10
10
|
<Title id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::Label"
|
|
11
11
|
text="{path: 'headerFacet>Label', formatter: 'AHModel.format'}"
|
|
12
|
-
class="sapSmartTemplatesObjectPageHeaderContactLabel"
|
|
12
|
+
class="sapSmartTemplatesObjectPageHeaderContactLabel"
|
|
13
|
+
level="H3"/>
|
|
13
14
|
</template:if>
|
|
14
15
|
<HBox>
|
|
15
16
|
<core:Icon id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::Link::Icon"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
<Title id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataPoint>', formatter: 'AH.getStableIdPartFromDataPoint'}::Label"
|
|
6
6
|
text="{path: 'dataPoint>Title', formatter: 'AH.formatWithExpandSimple'}"
|
|
7
|
-
class="sapSmartTemplatesObjectPageDataPointLabel sapUiTinyMarginEnd"/>
|
|
7
|
+
class="sapSmartTemplatesObjectPageDataPointLabel sapUiTinyMarginEnd" level="H3"/>
|
|
8
8
|
<template:with path="headerFacet>Target" helper="AHModel.gotoEntitySet"
|
|
9
9
|
var="annotation">
|
|
10
10
|
<sfi:SmartField
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="facetId">
|
|
9
9
|
<template:if test="{= ${facetId>}.buildStableId({type: 'ObjectPage', subType: 'Facet', sRecordType: ${headerFacet>RecordType}, sAnnotationPath: ${headerFacet>Target/AnnotationPath}, sAnnotationId: ${headerFacet>ID/String}, bIsHeaderFacet: ${isHeaderFacet>value}})}"/>
|
|
10
10
|
<template:if test="{headerFacet>Label}">
|
|
11
|
-
<Title id="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageHeader', subType: 'HeaderTitle', sFacet: ${facetId>id}})}" text="{path: 'headerFacet>Label', formatter: 'AHModel.format'}" class="sapSmartTemplatesObjectPageHeaderFormTitle"/>
|
|
11
|
+
<Title id="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageHeader', subType: 'HeaderTitle', sFacet: ${facetId>id}})}" text="{path: 'headerFacet>Label', formatter: 'AHModel.format'}" class="sapSmartTemplatesObjectPageHeaderFormTitle" level="H3"/>
|
|
12
12
|
</template:if>
|
|
13
13
|
<template:if test="{form>Data}">
|
|
14
14
|
<template:then>
|
|
@@ -17,7 +17,9 @@
|
|
|
17
17
|
<Label id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
18
18
|
labelFor="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
19
19
|
text="{path: 'dataField>Label', formatter: 'AHModel.format'}"
|
|
20
|
-
class="sapSmartTemplatesObjectPageHeaderFormLabel sapUiTinyMarginEnd"
|
|
20
|
+
class="sapSmartTemplatesObjectPageHeaderFormLabel sapUiTinyMarginEnd"
|
|
21
|
+
showColon="true"
|
|
22
|
+
/>
|
|
21
23
|
<fe:Link id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
22
24
|
press="._templateEventHandlers.onContactDetails"
|
|
23
25
|
ariaLabelledBy="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageHeader', subType: 'HeaderTitle', sFacet: ${facetId>id}})} header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
@@ -37,16 +39,19 @@
|
|
|
37
39
|
<HBox binding="{parts: [{path: 'headerFacet>Target'}, {path: 'entitySet>'}], formatter: 'AH.getNavigationPathWithExpand'}"
|
|
38
40
|
visible="{path: 'dataField>', formatter: 'AH.getBindingForHiddenPath'}">
|
|
39
41
|
<Label
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
42
|
+
id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
43
|
+
text="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getLabelForDFwithIBN'}"
|
|
44
|
+
class="sapSmartTemplatesObjectPageHeaderFormLabel sapUiTinyMarginEnd"
|
|
45
|
+
showColon="true"
|
|
46
|
+
/>
|
|
43
47
|
<fe:Link
|
|
44
48
|
id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
45
49
|
text="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}], formatter: 'AH.getLinkTextForDFwithIBN'}"
|
|
46
50
|
press="._templateEventHandlers.onDataFieldWithIntentBasedNavigation"
|
|
47
51
|
wrapping="true"
|
|
48
52
|
class="sapSmartTemplatesObjectPageHeaderFormField"
|
|
49
|
-
ariaLabelledBy="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageHeader', subType: 'HeaderTitle', sFacet: ${facetId>id}})} header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
53
|
+
ariaLabelledBy="{:= ${parameter>/stableId}.getStableId({type: 'ObjectPageHeader', subType: 'HeaderTitle', sFacet: ${facetId>id}})} header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
54
|
+
accessibleRole="Button">
|
|
50
55
|
<fe:customData>
|
|
51
56
|
<core:CustomData key="SemanticObject" value="{path: 'dataField>SemanticObject', formatter: 'AHModel.format'}"/>
|
|
52
57
|
<core:CustomData key="Action" value="{path: 'dataField>Action', formatter: 'AHModel.format'}"/>
|
|
@@ -61,6 +66,7 @@
|
|
|
61
66
|
binding="{parts: [{path: 'headerFacet>Target'}, {path: 'entitySet>'}], formatter: 'AH.getNavigationPathWithExpand'}"
|
|
62
67
|
visible="{path: 'dataField>', formatter: 'AH.getBindingForHiddenPath'}" >
|
|
63
68
|
<sfi:SmartLabel
|
|
69
|
+
showColon="true"
|
|
64
70
|
labelFor="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
65
71
|
class="sapSmartTemplatesObjectPageHeaderFormLabel sapUiTinyMarginEnd" />
|
|
66
72
|
|
|
@@ -88,6 +94,7 @@
|
|
|
88
94
|
<sfi:SmartLabel
|
|
89
95
|
id="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Label"
|
|
90
96
|
labelFor="header::{path: 'headerFacet>', formatter: 'AH.getStableIdPartFromFacet'}::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}::Field"
|
|
97
|
+
showColon="true"
|
|
91
98
|
class="{= ${dataField>Criticality} ? 'sapSmartTemplatesObjectPageHeaderFormLabel': 'sapSmartTemplatesObjectPageHeaderFormLabelNCriticcal' } sapUiTinyMarginEnd"/>
|
|
92
99
|
<!-- TODO: Should also work with ...format -->
|
|
93
100
|
<template:with path="headerFacet>Target" helper="AHModel.gotoEntitySet" var="annotation">
|