@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
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
class="navigationPopover navigationPopoverHeader sapMQuickViewPage sapSmartTemplatesSmartLinkNavPopoverContentTitleAreaTrunc">
|
|
14
14
|
<!--the icon comes from the target entity type header,
|
|
15
15
|
the binding context is set relatively to the the target, and an expand is added if the picture is behind a nav property-->
|
|
16
|
+
<!-- The formatter 'sap/suite/ui/generic/template/js/formatters/formatImageUrl' is used by 'AH.formatImageOrTypeUrl' -->
|
|
16
17
|
<Avatar
|
|
17
18
|
id="{:= ${parameter>/stableId}.getStableId({type: 'QuickView', subType: 'Avatar'})}"
|
|
19
|
+
core:require="{formatImageUrl: 'sap/suite/ui/generic/template/js/formatters/formatImageUrl'}"
|
|
18
20
|
tooltip="{path: 'header>Title/Value', formatter: 'AHModel.format'}"
|
|
19
21
|
visible="{= !!(${path: 'header>ImageUrl'} || ${path: 'header>TypeImageUrl'}) }"
|
|
20
22
|
binding="{parts:[{path: 'entitySet>'}, {path: 'quickView>/navigationPath'}, {path: 'header>ImageUrl'}, {path: 'header>TypeImageUrl'}], formatter: 'AH.getPathWithExpandFromHeader'}"
|
|
@@ -83,7 +85,6 @@
|
|
|
83
85
|
<template:with path="dataField>Value" helper="AHModel.resolvePath" var="dataFieldValue">
|
|
84
86
|
<template:if test="{= ${path: 'isFirstEmail>', formatter: 'AH.fnCheckFirstEmail'} && ${dataFieldValue>com.sap.vocabularies.Communication.v1.IsEmailAddress}.Bool === 'true' && ${parameter>/templateSpecific/teamsCollabOptions} !== undefined && ${parameter>/templateSpecific/teamsCollabOptions}.length > 0}">
|
|
85
87
|
<VBox visible="{path: 'dataField>Value', formatter: 'AHModel.format'}" class="sapUiTinyMarginTop">
|
|
86
|
-
<Toolbar width="100%" height="1px"/>
|
|
87
88
|
<Toolbar>
|
|
88
89
|
<Title text="{i18n>CONTACT_OPTION}" level="H5" class="sapUiTinyMarginBegin"/>
|
|
89
90
|
<ToolbarSpacer/>
|
|
@@ -66,6 +66,17 @@
|
|
|
66
66
|
<sfi:customData>
|
|
67
67
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
68
68
|
</sfi:customData>
|
|
69
|
+
<template:if test="{= ${connectedFieldElement>Criticality} }">
|
|
70
|
+
<sfi:controlProposal>
|
|
71
|
+
<sfi:ControlProposal>
|
|
72
|
+
<sfi:objectStatus>
|
|
73
|
+
<sfi:ObjectStatus
|
|
74
|
+
criticality="{path: 'connectedFieldElement>Criticality', formatter: 'AHModel.simplePath'}"
|
|
75
|
+
criticalityRepresentationType="{= (${connectedFieldElement>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}" />
|
|
76
|
+
</sfi:objectStatus>
|
|
77
|
+
</sfi:ControlProposal>
|
|
78
|
+
</sfi:controlProposal>
|
|
79
|
+
</template:if>
|
|
69
80
|
<sfi:customData>
|
|
70
81
|
<template:with path="connectedFieldElement>Value" helper="AHModel.resolvePath" var="connectedFieldElementValue">
|
|
71
82
|
<core:CustomData key="SideEffectSourcePropertyType"
|
|
@@ -123,7 +134,7 @@
|
|
|
123
134
|
<sfi:SmartField
|
|
124
135
|
value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
|
|
125
136
|
visible="{path: 'dataField>', formatter: 'AH.getVisibiltyBasedOnImportanceAndHidden'}"
|
|
126
|
-
editable="{ui>/editable}"
|
|
137
|
+
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
|
|
127
138
|
<sfi:customData>
|
|
128
139
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
129
140
|
<core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
|
|
@@ -173,7 +184,7 @@
|
|
|
173
184
|
textLabel="{path: 'dataField>', formatter: 'AH.getDataFieldLabel'}"
|
|
174
185
|
fetchValueListReadOnly="{parts:[{path: 'parameter>/entityType'},{path: 'dataField>'}], formatter: 'AH.getValueListReadOnly'}"
|
|
175
186
|
modeToggled="._templateEventHandlers.onSmartFieldModeToggled"
|
|
176
|
-
|
|
187
|
+
linkPress="{parts:[{path: 'parameter>/entityType'},{path: 'dataField>'}], formatter: 'AH.checkIsEmailAddress'}"
|
|
177
188
|
changeModelValue="._templateEventHandlers.onSmartFieldModelValueChanged">
|
|
178
189
|
<sfi:customData>
|
|
179
190
|
<core:CustomData key="defaultTextInEditModeSource" value="{path: 'dataFieldValue>', formatter: 'AH.setValidationForValueList'}" />
|
|
@@ -183,6 +194,16 @@
|
|
|
183
194
|
<smartlink:SemanticObjectController ignoredFields="{parts: [{path: 'quickView>/'}, {path: 'dataField>'}], formatter: 'AH.disableSemanticObjectLinksOnPopups'}" />
|
|
184
195
|
</sfi:semanticObjectController>
|
|
185
196
|
</template:if>
|
|
197
|
+
<template:if test="{= ${dataField>Criticality} }">
|
|
198
|
+
<sfi:controlProposal>
|
|
199
|
+
<sfi:ControlProposal>
|
|
200
|
+
<sfi:objectStatus>
|
|
201
|
+
<sfi:ObjectStatus criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
202
|
+
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"/>
|
|
203
|
+
</sfi:objectStatus>
|
|
204
|
+
</sfi:ControlProposal>
|
|
205
|
+
</sfi:controlProposal>
|
|
206
|
+
</template:if>
|
|
186
207
|
<sfi:customData>
|
|
187
208
|
<core:CustomData key="SideEffectSourcePropertyType"
|
|
188
209
|
value="{parts: [{path: 'dataFieldValue>name'}, {path: 'parameter>/isDraftEnabled'}, {path: 'parameter>/metaModel'}, {path: 'parameter>/entityType'}], formatter: 'AH.getSideEffectSourcePropertyType'}" />
|
|
@@ -14,6 +14,17 @@
|
|
|
14
14
|
<smartField:configuration>
|
|
15
15
|
<smartField:Configuration displayBehaviour="{parts: [{path: 'dataField>'}, {path: 'entitySet>'}, {path: 'dataFieldTarget>Data'}], formatter: 'AH.getTextArrangementForSCFields'}"/>
|
|
16
16
|
</smartField:configuration>
|
|
17
|
+
<template:if test="{= ${dataField>Criticality}}">
|
|
18
|
+
<smartField:controlProposal>
|
|
19
|
+
<smartField:ControlProposal>
|
|
20
|
+
<smartField:objectStatus>
|
|
21
|
+
<smartField:ObjectStatus criticality="{= ${dataField>Criticality/EnumMember} ? ${dataField>Criticality/EnumMember} : ${path: 'dataField>Criticality', formatter: 'AHModel.simplePath'} }"
|
|
22
|
+
criticalityRepresentationType="{= (${dataField>CriticalityRepresentation/EnumMember} === 'com.sap.vocabularies.UI.v1.CriticalityRepresentationType/WithoutIcon') ? 'WithoutIcon' : 'WithIcon'}"
|
|
23
|
+
ariaLabelledBy="{columnId>id}"/>
|
|
24
|
+
</smartField:objectStatus>
|
|
25
|
+
</smartField:ControlProposal>
|
|
26
|
+
</smartField:controlProposal>
|
|
27
|
+
</template:if>
|
|
17
28
|
</smartField:SmartField>
|
|
18
29
|
</template:then>
|
|
19
30
|
<template:elseif test="{parts: [{path: 'listEntitySet>'}, {path: 'dataField>'}], formatter: 'AHStream.checkIfEntityOrAssociationHasStreamEnabled'}">
|
|
@@ -110,7 +121,7 @@
|
|
|
110
121
|
<!-- ObjectPage Self-Linking -->
|
|
111
122
|
<smartField:SmartField
|
|
112
123
|
value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
|
|
113
|
-
editable="{ui>/editable}"
|
|
124
|
+
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath"
|
|
114
125
|
ariaLabelledBy="{columnId>id}">
|
|
115
126
|
<smartField:customData>
|
|
116
127
|
<core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<table:template>
|
|
117
117
|
<smartField:SmartField
|
|
118
118
|
value="{path: 'dataField>Value', formatter: 'AH.getDataFieldValueSimplePath'}"
|
|
119
|
-
editable="{ui>/editable}"
|
|
119
|
+
editable="{ui>/editable}" linkPress="._templateEventHandlers.onDataFieldWithNavigationPath">
|
|
120
120
|
<smartField:customData>
|
|
121
121
|
<core:CustomData key="Target" value="{dataField>Target/NavigationPropertyPath}" />
|
|
122
122
|
</smartField:customData>
|
|
@@ -18,19 +18,23 @@ sap.ui.define([
|
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* A convenient method to make XMLHTTPRequest with different types of http methods, with a few settings.
|
|
21
|
-
* @param
|
|
21
|
+
* @param {object} mSettings an object expects following
|
|
22
22
|
* {
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
* @
|
|
23
|
+
* @param {string} mSettings.url
|
|
24
|
+
* Resource url
|
|
25
|
+
* @param {boolean} [mSettings.async=true]
|
|
26
|
+
* whether request is async or not; default value is true
|
|
27
|
+
* @param {string} mSettings.type
|
|
28
|
+
* HTTP method type; GET, PUT, POST, DELETE, PATCH
|
|
29
|
+
* @param {string} mSettings.dataType
|
|
30
|
+
* text, json, xml
|
|
31
|
+
* @param {object|string} mSettings.data
|
|
32
|
+
* data to be passed to server, only valid when request is not GET
|
|
33
|
+
* @returns {object|Promise<object>} response object if async is false, promise if async is true (default).
|
|
30
34
|
* promise is resolved or rejected with a response object with following fields:-
|
|
31
35
|
* {
|
|
32
36
|
* request @type (XMLHttpRequest): xhr request
|
|
33
|
-
*
|
|
37
|
+
* success @type (boolean): flag which tells request is successful or not
|
|
34
38
|
* statusCode @type (Number): statusCode returned by server
|
|
35
39
|
* data @type (undefined or document or json or string): data returned by server if request is successfull
|
|
36
40
|
* textStatus @type (string): text status of request like success, error, timeout, aborted
|
|
@@ -114,8 +118,8 @@ sap.ui.define([
|
|
|
114
118
|
};
|
|
115
119
|
/**
|
|
116
120
|
* Returns getJson object asynchronously from server using xhr
|
|
117
|
-
* @param url: Resource location
|
|
118
|
-
* @returns promise which is resolved with json Object or rejected with error
|
|
121
|
+
* @param {string} url: Resource location
|
|
122
|
+
* @returns {Promise} promise which is resolved with json Object or rejected with error
|
|
119
123
|
*/
|
|
120
124
|
ajaxHelper.getJSON = function (url) {
|
|
121
125
|
return new Promise(function (resolve, reject){
|
|
@@ -128,17 +132,19 @@ sap.ui.define([
|
|
|
128
132
|
};
|
|
129
133
|
/**
|
|
130
134
|
* Makes synchronous XHR call
|
|
131
|
-
* @param
|
|
135
|
+
* @param {object} mSettinga an object, expects following
|
|
136
|
+
* @param {string} mSettings.url
|
|
137
|
+
* url to be hit
|
|
138
|
+
* @param {string} mSettings.type
|
|
139
|
+
* HTTP method type; GET, PUT, POST, DELETE, PATCH
|
|
140
|
+
* @param {string} mSettings.dataType
|
|
141
|
+
* text, json, xml
|
|
142
|
+
* @param {object|string} mSettings.data
|
|
143
|
+
* data to be passed to server, only valid when request is not GET
|
|
144
|
+
* @returns {object} response object with following fields
|
|
132
145
|
* {
|
|
133
|
-
* url @type (boolean): url to be hit
|
|
134
|
-
* type @type (string): method type; GET, PUT, POST, DELETE, PATCH
|
|
135
|
-
* dtatType @type (string):(string): text, json, xml
|
|
136
|
-
* data @type (object or string) : to be passed to server, only valid when request is not GET
|
|
137
|
-
* }
|
|
138
|
-
* @returns response object with following fields
|
|
139
|
-
= * {
|
|
140
146
|
* request @type (XMLHttpRequest): xhr request
|
|
141
|
-
*
|
|
147
|
+
* success @type (boolean): flag which tells request is successful or not
|
|
142
148
|
* statusCode @type (Number): statusCode returned by server
|
|
143
149
|
* data @type (undefined or document or json or string): data returned by server if request is successfull
|
|
144
150
|
* textStatus @type (string): text status of request like success, error, timeout, aborted
|
|
@@ -155,11 +161,11 @@ sap.ui.define([
|
|
|
155
161
|
|
|
156
162
|
/**
|
|
157
163
|
* Returns the JSON object synchronously based on the passed resource URI
|
|
158
|
-
* @param url: Resource location
|
|
159
|
-
* @returns response object which with following properties
|
|
164
|
+
* @param {string} url: Resource location
|
|
165
|
+
* @returns {object} response object which with following properties
|
|
160
166
|
= * {
|
|
161
167
|
* request @type (XMLHttpRequest): xhr request
|
|
162
|
-
*
|
|
168
|
+
* success @type (boolean): flag which tells request is successful or not
|
|
163
169
|
* statusCode @type (Number): statusCode returned by server
|
|
164
170
|
* data @type (undefined or document or json or string): data returned by server if request is successfull
|
|
165
171
|
* textStatus @type (string): text status of request like success, error, timeout, aborted
|
|
@@ -171,10 +177,10 @@ sap.ui.define([
|
|
|
171
177
|
};
|
|
172
178
|
|
|
173
179
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @param {
|
|
176
|
-
* @param {
|
|
177
|
-
* @returns prepare and returns whole response object which is
|
|
180
|
+
* Handle the scenario when we get response from server
|
|
181
|
+
* @param {ProgressEvent} XMLHttpRequest load event object
|
|
182
|
+
* @param {object} mSettings settings passed while calling ajaxHelper.ajax function
|
|
183
|
+
* @returns {object} prepare and returns whole response object which is
|
|
178
184
|
* in turn returned by calling function.
|
|
179
185
|
* this function sets all the fields in response object which is
|
|
180
186
|
* returned by AjaxHelper.ajax function.
|
|
@@ -185,7 +191,7 @@ sap.ui.define([
|
|
|
185
191
|
* At the end we prepare response object with following fields:
|
|
186
192
|
* {
|
|
187
193
|
* request @type (XMLHttpRequest): xhr request
|
|
188
|
-
*
|
|
194
|
+
* success @type (boolean): flag which tells request is successful or not
|
|
189
195
|
* statusCode @type (Number): statusCode returned by server
|
|
190
196
|
* data @type (undefined or document or json or string): data returned by server if request is successfull
|
|
191
197
|
* textStatus @type (string): text status of request like success, error, timeout, aborted
|
|
@@ -253,9 +259,9 @@ sap.ui.define([
|
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
/**
|
|
256
|
-
*
|
|
257
|
-
* @param {
|
|
258
|
-
* @returns response object with following field set
|
|
262
|
+
* Handle Error event and perpare a Error response
|
|
263
|
+
* @param {ProgressEvent} event XMLHTTPRequest error event
|
|
264
|
+
* @returns {object} response object with following field set
|
|
259
265
|
* {
|
|
260
266
|
* statusCode
|
|
261
267
|
* XHRRequest
|
|
@@ -273,10 +279,10 @@ sap.ui.define([
|
|
|
273
279
|
return response;
|
|
274
280
|
}
|
|
275
281
|
/**
|
|
276
|
-
*
|
|
277
|
-
* @param {
|
|
278
|
-
* @returns response object with following field set
|
|
279
|
-
*
|
|
282
|
+
* Handle abort event and prepare an abort response
|
|
283
|
+
* @param {ProgressEVent} event XMLHTTPRequest abort event
|
|
284
|
+
* @returns {object} response object with following field set
|
|
285
|
+
* {
|
|
280
286
|
* statusCode
|
|
281
287
|
* XHRRequest
|
|
282
288
|
* textStatus
|
|
@@ -291,16 +297,18 @@ sap.ui.define([
|
|
|
291
297
|
response.textStatus = "aborted";
|
|
292
298
|
return response;
|
|
293
299
|
}
|
|
300
|
+
|
|
294
301
|
/**
|
|
295
302
|
*
|
|
296
|
-
* @param
|
|
297
|
-
* @returns {
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
303
|
+
* @param {string} jsonString
|
|
304
|
+
* @returns {object} Object with the following properties
|
|
305
|
+
* {
|
|
306
|
+
* data: json object
|
|
307
|
+
* success : boolean
|
|
308
|
+
* textStatus: if any error then error status
|
|
309
|
+
* error : if any error
|
|
310
|
+
* }
|
|
311
|
+
*/
|
|
304
312
|
function parseJson(jsonString) {
|
|
305
313
|
var response = {};
|
|
306
314
|
try {
|
|
@@ -314,8 +322,9 @@ sap.ui.define([
|
|
|
314
322
|
}
|
|
315
323
|
/**
|
|
316
324
|
*
|
|
317
|
-
* @param
|
|
318
|
-
* @returns {
|
|
325
|
+
* @param {string} xmlString
|
|
326
|
+
* @returns {object} Object with the following properties
|
|
327
|
+
* {
|
|
319
328
|
* data: XML document
|
|
320
329
|
* success : boolean
|
|
321
330
|
* textStatus: if any error then error status
|
|
@@ -335,8 +344,9 @@ sap.ui.define([
|
|
|
335
344
|
return response;
|
|
336
345
|
}
|
|
337
346
|
/**
|
|
338
|
-
* encodes the data in url encode
|
|
339
|
-
* @param {
|
|
347
|
+
* encodes the data in url encode format
|
|
348
|
+
* @param {object} data
|
|
349
|
+
* @returns {string}
|
|
340
350
|
*/
|
|
341
351
|
function encodeData(data){
|
|
342
352
|
var params;
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
/**
|
|
97
97
|
* Factory function to generate control wrapper object based on control type
|
|
98
98
|
*
|
|
99
|
-
* @param {sap.ui.core.
|
|
99
|
+
* @param {sap.ui.core.Control} oControl - control a wrapper should be provided for
|
|
100
100
|
* @param {object} [mParams] - map with any additional parameters passed to constructor of wrapper
|
|
101
101
|
* @return {object} wrapper object for the control
|
|
102
102
|
*/
|
|
@@ -2,16 +2,6 @@ sap.ui.define([
|
|
|
2
2
|
], function () {
|
|
3
3
|
"use strict";
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Constructor for SmartFilterBarWrapper
|
|
7
|
-
* @param {sap.ui.comp.smartfilterbar.SmartFilterBar} vTarget - The SmartFilterBar control
|
|
8
|
-
* or the Id of control for which this wrapper is created
|
|
9
|
-
* @param {object} oFactory - the controlStateWrapperFactory
|
|
10
|
-
* @param {object} mParams
|
|
11
|
-
* @param mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
|
|
12
|
-
* (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
5
|
|
|
16
6
|
|
|
17
7
|
// deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button (does not contain a state from SFB point of view - however, we remember whether it was pressed once
|
|
@@ -20,10 +10,22 @@ sap.ui.define([
|
|
|
20
10
|
var dataPropertyNameCustom = "sap.suite.ui.generic.template.customData",
|
|
21
11
|
dataPropertyNameExtension = "sap.suite.ui.generic.template.extensionData",
|
|
22
12
|
dataPropertyNameGeneric = "sap.suite.ui.generic.template.genericData";
|
|
23
|
-
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Constructor for SmartFilterBarWrapper
|
|
16
|
+
* @param {sap.ui.comp.smartfilterbar.SmartFilterBar} vTarget - The SmartFilterBar control
|
|
17
|
+
* or the Id of control for which this wrapper is created
|
|
18
|
+
* @param {object} oFactory - the controlStateWrapperFactory
|
|
19
|
+
* @param {object} mParams
|
|
20
|
+
* @param {Object} mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
|
|
21
|
+
* (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
|
|
22
|
+
* @returns {object}
|
|
23
|
+
* @alias sap.suite.ui.generic.template.genericUtilities.controlStateWrapperFactory.SmartFilterBarWrapper
|
|
24
|
+
*/
|
|
24
25
|
function SmartFilterBarWrapper(vTarget, oFactory, mParams) {
|
|
25
26
|
var bIsApplying = false;
|
|
26
27
|
var aBasicFilters = [];
|
|
28
|
+
var aMissingNavFilters = [];
|
|
27
29
|
var oSmartFilterBar, oControlAssignedResolve, oPreliminaryState;
|
|
28
30
|
var oControlAssignedPromise = new Promise(function (resolve) {
|
|
29
31
|
oControlAssignedResolve = resolve;
|
|
@@ -81,9 +83,54 @@ sap.ui.define([
|
|
|
81
83
|
/* SFB header state of a variant (standard or custom) gets determined by the Apply Automatically checkbox's value of the corresponding
|
|
82
84
|
variant i.e. if the checkbox is checked, then the header should be collapsed and vice versa. */
|
|
83
85
|
oSVMWrapperCallbacks.setHeaderState(!oEvent.getParameter("executeOnSelect"));
|
|
86
|
+
aMissingNavFilters = fnGetNavigationProperties();
|
|
84
87
|
});
|
|
85
88
|
|
|
86
89
|
}
|
|
90
|
+
|
|
91
|
+
function fnGetNavigationProperties() {
|
|
92
|
+
//Fetch the navigation properties
|
|
93
|
+
var oMetaModel = oSmartFilterBar.getModel().getMetaModel(),
|
|
94
|
+
sEntitySet = oSmartFilterBar.getEntitySet(),
|
|
95
|
+
oDataEntitySet = oMetaModel.getODataEntitySet(sEntitySet),
|
|
96
|
+
oDataEntityType = oMetaModel.getODataEntityType(oDataEntitySet.entityType),
|
|
97
|
+
oNavigationProperties = oDataEntityType['navigationProperty'],
|
|
98
|
+
aAddedNavigationProperties = [];
|
|
99
|
+
//Fetch the added filters in the current variant
|
|
100
|
+
var sCurrentVariantID = oSmartFilterBar.getVariantManagement().getCurrentVariantId();
|
|
101
|
+
var oCurrentVariant = oSmartFilterBar.getVariantManagement().getAllVariants().find(function(variant) {
|
|
102
|
+
return variant.getId() === sCurrentVariantID;
|
|
103
|
+
});
|
|
104
|
+
if (oCurrentVariant === undefined || oCurrentVariant.getContent() === undefined) {
|
|
105
|
+
return aAddedNavigationProperties;
|
|
106
|
+
}
|
|
107
|
+
var oSmartFilterBarVariant = JSON.parse( oCurrentVariant.getContent().searchListReportVariant.filterBarVariant );
|
|
108
|
+
delete oSmartFilterBarVariant["_CUSTOM"];
|
|
109
|
+
//Compare the filter source and navigation properties
|
|
110
|
+
var aMatchedRanges = [];
|
|
111
|
+
for (var key in oSmartFilterBarVariant) {
|
|
112
|
+
for (var i = 0; i < oNavigationProperties.length; i++) {
|
|
113
|
+
var obj = oNavigationProperties[i];
|
|
114
|
+
if (key.startsWith(obj.name)) {
|
|
115
|
+
if (oSmartFilterBarVariant[key].ranges) {
|
|
116
|
+
aMatchedRanges.push(oSmartFilterBarVariant[key].ranges);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (aMatchedRanges.length) {
|
|
122
|
+
//Compare the manifest property with the filter source
|
|
123
|
+
var oManifestNavigationProperties = oSmartFilterBar.getNavigationProperties() || [];
|
|
124
|
+
var missingNavProperty = aMatchedRanges.filter(function(item) {
|
|
125
|
+
var sKeyField = item[0].keyField.split('.')[0];
|
|
126
|
+
return !oManifestNavigationProperties.includes(sKeyField);
|
|
127
|
+
});
|
|
128
|
+
if (missingNavProperty.length) {
|
|
129
|
+
aAddedNavigationProperties = aMatchedRanges;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
return aAddedNavigationProperties;
|
|
133
|
+
}
|
|
87
134
|
|
|
88
135
|
function fnGetState() {
|
|
89
136
|
if (!oSmartFilterBar) {
|
|
@@ -242,6 +289,10 @@ sap.ui.define([
|
|
|
242
289
|
oSmartFilterBar = oControl;
|
|
243
290
|
oControlAssignedResolve(oSmartFilterBar);
|
|
244
291
|
}
|
|
292
|
+
|
|
293
|
+
function fnGetMissingNavProperties() {
|
|
294
|
+
return aMissingNavFilters;
|
|
295
|
+
}
|
|
245
296
|
|
|
246
297
|
// check waiting for initialization (like in SmartTableWrapper/SmartChartWrapper)
|
|
247
298
|
// currently, whole appState restoring is waiting for initialized event from sfb - but probably it would be enough to wait for it here
|
|
@@ -256,7 +307,8 @@ sap.ui.define([
|
|
|
256
307
|
// specific properties (needed to workaround direct connection between SFB and SVM)
|
|
257
308
|
setSVMWrapperCallbacks: setSVMWrapperCallbacks,
|
|
258
309
|
bVMConnection: oSmartFilterBar.getSmartVariant(),
|
|
259
|
-
suppressSelection: oSmartFilterBar.setSuppressSelection.bind(oSmartFilterBar) // if multiple reasons for suppressing overlap, a counter (to avoid to early resume) could be implemented here
|
|
310
|
+
suppressSelection: oSmartFilterBar.setSuppressSelection.bind(oSmartFilterBar), // if multiple reasons for suppressing overlap, a counter (to avoid to early resume) could be implemented here
|
|
311
|
+
getMissingNavProperties: fnGetMissingNavProperties
|
|
260
312
|
};
|
|
261
313
|
}
|
|
262
314
|
|
|
@@ -5,13 +5,13 @@ sap.ui.define([
|
|
|
5
5
|
/**
|
|
6
6
|
* Constructor for SmartTableChartCommon
|
|
7
7
|
* ...
|
|
8
|
-
* @param {object} mParams
|
|
8
|
+
* @param {object} mParams
|
|
9
9
|
* @param mParams.oCustomFiltersWrapper - wrapper for custom filters (from SFB point of view)
|
|
10
|
-
* (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
|
|
11
|
-
* @returns
|
|
10
|
+
* (currently containing: generic (currently only editState), app extension, and adaptation extension - but this is knowledge of LR, i.e. of iAppStateHandler, not of SFB)
|
|
11
|
+
* @returns {object}
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
// deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button
|
|
14
|
+
// deals with state of SFB itself, without SVM (see SmartVariantManagementWrapper) and go-button
|
|
15
15
|
// (does not contain a state from SFB point of view - however, we remember whether it was pressed once
|
|
16
16
|
// to restore data - this information is not considered being part of SFB)
|
|
17
17
|
function SmartTableChartCommon(vTarget, oController, oFactory, sInitializationEvent) {
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
function fnSetState(oState) {
|
|
45
45
|
if (oState) {
|
|
46
46
|
if (!oState.oUiState) {
|
|
47
|
-
// Legacy handling for state without additional level oUiState (created with 1.99.0 - 1.99.3). Could be relevant on LR and OP, and independent of VM
|
|
47
|
+
// Legacy handling for state without additional level oUiState (created with 1.99.0 - 1.99.3). Could be relevant on LR and OP, and independent of VM
|
|
48
48
|
oState = {
|
|
49
49
|
oUiState: oState
|
|
50
50
|
};
|
|
@@ -53,9 +53,11 @@ sap.ui.define([
|
|
|
53
53
|
// don't create UiState (managed object) from scratch, but fetch it from control and only apply known properties from state - thus, if any other properties would be added, we don't
|
|
54
54
|
// interfere with them
|
|
55
55
|
var oUiState = oControl.getUiState();
|
|
56
|
-
oUiState.
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
if (!oUiState.getProperty("variantName")){
|
|
57
|
+
oUiState.setPresentationVariant(oState.oUiState.oPresentationVariant);
|
|
58
|
+
oUiState.setSelectionVariant(oState.oUiState.oSelectionVariant);
|
|
59
|
+
oControl.setUiState(oUiState);
|
|
60
|
+
}
|
|
59
61
|
bIsApplying = false;
|
|
60
62
|
} else {
|
|
61
63
|
// set standard variant to overcome "implicit personalization" (esp. for OP when navigating to different object in discovery mode)
|
|
@@ -88,32 +90,38 @@ sap.ui.define([
|
|
|
88
90
|
function fnGetState() {
|
|
89
91
|
if (bSmartControlInitialized) {
|
|
90
92
|
if (oVariantManagementStateWrapper) {
|
|
91
|
-
// oVariantManagementStateWrapper would be undefined only in cases SmartControl is not yet initialized
|
|
92
|
-
// or VariantManagement is not enabled.
|
|
93
|
+
// oVariantManagementStateWrapper would be undefined only in cases SmartControl is not yet initialized
|
|
94
|
+
// or VariantManagement is not enabled.
|
|
93
95
|
return oVariantManagementStateWrapper.getState();
|
|
94
96
|
}
|
|
95
|
-
|
|
97
|
+
|
|
96
98
|
if (oSmartControlStateWrapper && !bVariantManagementActive) {
|
|
97
|
-
// VariantManagement is not turned on & SmartControlStateWrapper instance
|
|
99
|
+
// VariantManagement is not turned on & SmartControlStateWrapper instance
|
|
98
100
|
return oSmartControlStateWrapper.getState();
|
|
99
101
|
}
|
|
100
102
|
}
|
|
101
|
-
|
|
102
|
-
// Control is not available and StateWrapper is not initialized
|
|
103
|
+
|
|
104
|
+
// Control is not available and StateWrapper is not initialized
|
|
103
105
|
return oPreliminaryState;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
function fnSetState(oState) {
|
|
107
109
|
oPreliminaryState = oState;
|
|
108
110
|
oControlAssignedPromise.then(function () {
|
|
109
|
-
// map legacy states - before separating VM state from state of managed control, inner state information
|
|
110
|
-
// (presentation variant and selection variant) were put as oUiState on the same level as VM state
|
|
111
|
+
// map legacy states - before separating VM state from state of managed control, inner state information
|
|
112
|
+
// (presentation variant and selection variant) were put as oUiState on the same level as VM state
|
|
111
113
|
// information (variant id and dirty indicator), now they are contained in map managedControlStates
|
|
112
|
-
if (oState
|
|
113
|
-
oState.
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
if (oState){
|
|
115
|
+
if (oState.oUiState && !oState.managedControlStates) {
|
|
116
|
+
oState.managedControlStates = Object.create(null);
|
|
117
|
+
oState.managedControlStates[oSmartControlStateWrapper.getLocalId()] = {oUiState: oState.oUiState};
|
|
118
|
+
}
|
|
119
|
+
if (oState.bVariantModified !== undefined) {
|
|
120
|
+
oState.modified = oState.bVariantModified;
|
|
121
|
+
}
|
|
122
|
+
if (oState.sVariantId !== undefined) {
|
|
123
|
+
oState.variantId = oState.sVariantId;
|
|
124
|
+
}
|
|
117
125
|
}
|
|
118
126
|
|
|
119
127
|
if (bVariantManagementActive) {
|
|
@@ -122,7 +130,7 @@ sap.ui.define([
|
|
|
122
130
|
return;
|
|
123
131
|
}
|
|
124
132
|
|
|
125
|
-
// SmartTable/Chart shall be used
|
|
133
|
+
// SmartTable/Chart shall be used
|
|
126
134
|
oSmartControlStateWrapper.setState(oPreliminaryState);
|
|
127
135
|
});
|
|
128
136
|
}
|
|
@@ -153,7 +161,7 @@ sap.ui.define([
|
|
|
153
161
|
// in each case) -thus, we better create and return a vm wrapper here, passing the inner wrapper (the same, we would create in the other cases).
|
|
154
162
|
// Additionally, this simplifies the adaptation to the change of format (formerly, variant data and control data were mixed on same level)
|
|
155
163
|
|
|
156
|
-
// to identify the situation, check properties smartVariant and useVariantManagement. (In LR/ALP, we could directly check component settings controlling these properties, but not
|
|
164
|
+
// to identify the situation, check properties smartVariant and useVariantManagement. (In LR/ALP, we could directly check component settings controlling these properties, but not
|
|
157
165
|
// in OP, as they could be different per section. Checking control's properties would also incorporate UI changes, however, these properties are anyway not allowed to be changed.)
|
|
158
166
|
// values: smartVariant useVariantManagement
|
|
159
167
|
// a) null false on LR currently: truthy (id of VM) and true - but PageVM is not created, and thus being ignored => adapt how properties are set in xml
|
|
@@ -198,7 +206,7 @@ sap.ui.define([
|
|
|
198
206
|
setState: fnSetState,
|
|
199
207
|
setControl: fnSetControl,
|
|
200
208
|
attachStateChanged: fnAttachStateChanged,
|
|
201
|
-
bVMConnection:
|
|
209
|
+
bVMConnection: oSmartControl && oSmartControl.getSmartVariant && !!oSmartControl.getSmartVariant()
|
|
202
210
|
};
|
|
203
211
|
}
|
|
204
212
|
|
|
@@ -9,10 +9,10 @@ sap.ui.define([
|
|
|
9
9
|
* @param {object} oController - the controller of the current component
|
|
10
10
|
* @param {object} oFactory - the controlStateWrapperFactory
|
|
11
11
|
* @param {object} mParams
|
|
12
|
-
* @param mParams.managedControlWrappers - array of controlStateWrappers for controls handled by the SVM
|
|
12
|
+
* @param {array} mParams.managedControlWrappers - array of controlStateWrappers for controls handled by the SVM
|
|
13
13
|
* (currently also including SFB wrapper - to be removed)
|
|
14
|
-
* @param mParams.dynamicPageWrapper - dynamicPageWrapper instance handled by SVM
|
|
15
|
-
* @returns
|
|
14
|
+
* @param {Object} mParams.dynamicPageWrapper - dynamicPageWrapper instance handled by SVM
|
|
15
|
+
* @returns {object}
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
function SmartVariantManagementWrapper(vTarget, oController, oFactory, mParams) {
|
|
@@ -103,9 +103,9 @@ sap.ui.define([
|
|
|
103
103
|
var oControl = oController.getView().byId(sId);
|
|
104
104
|
if (oControl && oControl.isA("sap.ui.comp.smarttable.SmartTable")) {
|
|
105
105
|
oControl.attachAfterVariantInitialise(function() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if (sVariantId !== '*standard*' && oControl.
|
|
106
|
+
//set currentVariantId only when sVariantId is not standard (as it might be overriding existing
|
|
107
|
+
//different currentVariantId) or smartTable's (oControl) currentVariantId is not equal to sVariantId.
|
|
108
|
+
if (sVariantId !== '*standard*' && oControl.getCurrentVariantId && oControl.getCurrentVariantId() !== sVariantId) {
|
|
109
109
|
oControl.setCurrentVariantId(sVariantId);
|
|
110
110
|
oSmartVariantManagement.setModified(false);
|
|
111
111
|
}
|
|
@@ -192,10 +192,9 @@ sap.ui.define([
|
|
|
192
192
|
*/
|
|
193
193
|
function getFilterInfoForPropertyFilters(oParams, sProperty, aFiltersForProperty, sLogicalOperator) {
|
|
194
194
|
var oValue1, oValue2, sOperator, oProperty = metadataAnalyser.getPropertyMetadata(oParams.oMetaModel, oParams.sEntityTypeName, sProperty);
|
|
195
|
-
|
|
196
|
-
sProperty = sProperty.replaceAll("/", ".");
|
|
195
|
+
var sPropertyForFilterData = sProperty.replaceAll("/", ".");
|
|
197
196
|
// If Custom filter is implemented date field for smart filter bar then we make static tile
|
|
198
|
-
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && !oParams.oFilterData[
|
|
197
|
+
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && !oParams.oFilterData[sPropertyForFilterData]) {
|
|
199
198
|
oParams.bIsStatic = true;
|
|
200
199
|
return {
|
|
201
200
|
stringRep: "",
|
|
@@ -207,12 +206,12 @@ sap.ui.define([
|
|
|
207
206
|
if (oFilter.bCaseSensitive === undefined) {
|
|
208
207
|
bCaseSensitive = true;
|
|
209
208
|
}
|
|
210
|
-
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[
|
|
211
|
-
if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[
|
|
209
|
+
if ((oProperty.type === "Edm.DateTime" || oProperty.type === "Edm.DateTimeOffset") && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo && oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation !== "DATE") {
|
|
210
|
+
if (!DynamicDateUtil.getAllOptionKeys().includes(oParams.oFilterData[sPropertyForFilterData].conditionTypeInfo.data.operation)) {
|
|
212
211
|
oParams.bIsStatic = true;
|
|
213
212
|
return;
|
|
214
213
|
}
|
|
215
|
-
var oValue = getSematicDateFormat(oParams.oFilterData[
|
|
214
|
+
var oValue = getSematicDateFormat(oParams.oFilterData[sPropertyForFilterData], oProperty.type);
|
|
216
215
|
oValue1 = oValue.oValue1;
|
|
217
216
|
oValue2 = oValue.oValue2;
|
|
218
217
|
sOperator = oValue.operator;
|
|
@@ -280,6 +279,7 @@ sap.ui.define([
|
|
|
280
279
|
sFilterParams = oParams.bIsStatic ? "" : sFilterParams;
|
|
281
280
|
return sFilterParams;
|
|
282
281
|
}
|
|
282
|
+
testableHelper.testableStatic(getFilterInfoForPropertyFilters, "filterHelper_getFilterInfoForPropertyFilters");
|
|
283
283
|
testableHelper.testableStatic(getFilterString, "filterHelper_getFilterString");
|
|
284
284
|
return {
|
|
285
285
|
getFilterParams: getFilterParams
|