@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
|
@@ -1322,16 +1322,19 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1322
1322
|
var oSmartTableHandler = oServices.oPresentationControlHandlerFactory.getPresentationControlHandler(oSmartTable);
|
|
1323
1323
|
var oTable = oSmartTable.getTable();
|
|
1324
1324
|
var aItems = oTable.getRows ? oTable.getRows() : oTable.getItems();
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1325
|
+
var oColumn = oSmartTableHandler.getColumnByKey(sColumnKey);
|
|
1326
|
+
//if the column is visible in the table, then only we bind the visible property of the cell
|
|
1327
|
+
if (oColumn && oColumn.getVisible()){
|
|
1328
|
+
aItems.forEach(function(oItem) {
|
|
1329
|
+
var oCell = oItem.getCells()[oTable.indexOfColumn(oColumn)];
|
|
1330
|
+
oCell && oCell.bindProperty("visible", {
|
|
1331
|
+
path: sPath,
|
|
1332
|
+
formatter: function (bIsHidden) {
|
|
1333
|
+
return !bIsHidden;
|
|
1334
|
+
}
|
|
1335
|
+
});
|
|
1333
1336
|
});
|
|
1334
|
-
}
|
|
1337
|
+
}
|
|
1335
1338
|
}
|
|
1336
1339
|
|
|
1337
1340
|
// callback for the onBeforeRebindTable event of a smart table
|
|
@@ -1512,7 +1515,6 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1512
1515
|
var oLineItems = oEntityType[sLineItemAnnotation] || []; // some tests in safety net run without any lineitem annotation - seems to work somehow at least for tree table;
|
|
1513
1516
|
for (var index = 0; index < oLineItems.length; index++) {
|
|
1514
1517
|
switch (oLineItems[index].RecordType) {
|
|
1515
|
-
default: break;
|
|
1516
1518
|
case "com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation":
|
|
1517
1519
|
case "com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath":
|
|
1518
1520
|
var aDataFieldsWithNavigation = fnGetDataFieldsWithNavigation(oLineItems[index], oMetaModel, oEntityType);
|
|
@@ -1547,6 +1549,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
1547
1549
|
}
|
|
1548
1550
|
}
|
|
1549
1551
|
break;
|
|
1552
|
+
default: break;
|
|
1550
1553
|
}
|
|
1551
1554
|
}
|
|
1552
1555
|
|
|
@@ -2652,6 +2655,47 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2652
2655
|
oController.onBeforeExportTableExtension(oExportParams);
|
|
2653
2656
|
}
|
|
2654
2657
|
|
|
2658
|
+
/**
|
|
2659
|
+
* This method is called when the user interacts with EasyFilter field (Enter on the input field or Go button press).
|
|
2660
|
+
* The AI easy filter is triggered and the result filters are applied to the SmartFilterBar.
|
|
2661
|
+
* @param {object} oEasyFilterInputField - The EasyFilter input field which has the value entered by the user
|
|
2662
|
+
* @param {object} oState - oState of the component
|
|
2663
|
+
*/
|
|
2664
|
+
function fnHandleEasyFilterChange(oEasyFilterInputField, oState) {
|
|
2665
|
+
|
|
2666
|
+
var oSmartFilterbar = oState.oSmartFilterbar;
|
|
2667
|
+
FESRHelper.setSemanticStepname(oEasyFilterInputField, "press", "fe2:ai:search");
|
|
2668
|
+
var oAIFilterQueryHandlerPromise = oState.oEasyFilterBarHandler.triggerEasyFilterQuery(oEasyFilterInputField, oSmartFilterbar);
|
|
2669
|
+
|
|
2670
|
+
oAIFilterQueryHandlerPromise.then(function(oFiltersFromAI) {
|
|
2671
|
+
|
|
2672
|
+
var sSmartFilterBarId = oSmartFilterbar.getId();
|
|
2673
|
+
var oSmartFilterBarWrapper = oCommonUtils.getControlStateWrapperById(sSmartFilterBarId, "SmartFilterBar");
|
|
2674
|
+
var oSmartFilterBarVariant = oSmartFilterBarWrapper.getState();
|
|
2675
|
+
var oVariantDataFromAI = oState.oEasyFilterBarHandler.getSFBVariantData(oFiltersFromAI);
|
|
2676
|
+
|
|
2677
|
+
// restore the custom filters to the initial state for now
|
|
2678
|
+
// To check if other objects in oSmartFilterBarVariant needs to be modified
|
|
2679
|
+
var aAppExtension = Object.keys(oSmartFilterBarVariant.customFilters.appExtension);
|
|
2680
|
+
if ( aAppExtension.length > 0 ) {
|
|
2681
|
+
aAppExtension.forEach(function(sKey) {
|
|
2682
|
+
oSmartFilterBarVariant.customFilters.appExtension[sKey] = "";
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2685
|
+
oSmartFilterBarVariant.selectOptions = oVariantDataFromAI.aSelectOptions;
|
|
2686
|
+
if (oComponentUtils.isDraftEnabled()) {
|
|
2687
|
+
oSmartFilterBarVariant.customFilters.editState = oVariantDataFromAI.oEditStateFilter;
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
oSmartFilterBarWrapper.setState(oSmartFilterBarVariant);
|
|
2691
|
+
oSmartFilterbar.getSmartVariant() && oSmartFilterbar.getSmartVariant().currentVariantSetModified(true);
|
|
2692
|
+
oSmartFilterbar.search();
|
|
2693
|
+
}, function(oError) {
|
|
2694
|
+
oLogger.error("Error occurred while applying the AI filters", oError);
|
|
2695
|
+
});
|
|
2696
|
+
oComponentUtils.getBusyHelper().setBusy(oAIFilterQueryHandlerPromise);
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2655
2699
|
/* eslint-disable */
|
|
2656
2700
|
var fnBuildSelectionVariantForNavigation = testableHelper.testable(fnBuildSelectionVariantForNavigation, "fnBuildSelectionVariantForNavigation");
|
|
2657
2701
|
var fnEvaluateParameters = testableHelper.testable(fnEvaluateParameters, "fnEvaluateParameters");
|
|
@@ -2702,7 +2746,8 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
2702
2746
|
handleSideEffectForField: fnHandleSideEffectForField,
|
|
2703
2747
|
onSmartFieldModeToggled: onSmartFieldModeToggled,
|
|
2704
2748
|
onRenderTeamsContactCollabOptions: fnRenderTeamsContactCollabOptions,
|
|
2705
|
-
hideTableCells: fnHideTableCells
|
|
2749
|
+
hideTableCells: fnHideTableCells,
|
|
2750
|
+
onEasyFilterChange: fnHandleEasyFilterChange
|
|
2706
2751
|
};
|
|
2707
2752
|
}
|
|
2708
2753
|
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
},
|
|
56
56
|
afterOpen: function (oEvent) {
|
|
57
57
|
var oPopover = oEvent.getSource();
|
|
58
|
-
var oToolbar = oPopover.getContent()[0].getItems()[1].getItems()[
|
|
58
|
+
var oToolbar = oPopover.getContent()[0].getItems()[1].getItems()[0];
|
|
59
59
|
oToolbar.getContent().forEach(function(oItem){
|
|
60
60
|
if (controlHelper.isButton(oItem)) {
|
|
61
61
|
var sType = oItem.data("type");
|
|
@@ -28,14 +28,14 @@ sap.ui.define([
|
|
|
28
28
|
//Type definitions
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* @typedef {
|
|
31
|
+
* @typedef {object} sap.suite.ui.generic.template.lib.ContextMenuHandler.FocusInfo Information about the applicable records for the context menu
|
|
32
32
|
* @property {sap.ui.model.Context} focussedBindingContext - Binding context of the currently focussed row
|
|
33
33
|
* @property {Array<sap.ui.model.Context>} applicableContexts - Array of contexts applicable to the context menu
|
|
34
34
|
* @property {boolean} doesApplicableEqualSelected - If the focussed row is part of selected rows
|
|
35
35
|
*/
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* @typedef {
|
|
38
|
+
* @typedef {object} sap.suite.ui.generic.template.lib.ContextMenuHandler.ContextMenuEntry Context menu entry
|
|
39
39
|
* @property {string} text - Text
|
|
40
40
|
* @property {string} icon - Icon
|
|
41
41
|
* @property {string} key - Uniquely identifiable key
|
|
@@ -79,12 +79,12 @@ sap.ui.define([
|
|
|
79
79
|
* Note: When the current entry has children, please pass "oHandlerPromise" as null.
|
|
80
80
|
*
|
|
81
81
|
* @param {string} sPathToItems Binding path for the items
|
|
82
|
-
* @param {Array<ContextMenuEntry>} aItems Array which stores all context menu entries
|
|
82
|
+
* @param {Array<sap.suite.ui.generic.template.lib.ContextMenuHandler.ContextMenuEntry>} aItems Array which stores all context menu entries
|
|
83
83
|
* @param {string} sText Text of the context menu item
|
|
84
84
|
* @param {string} sIcon Icon for the context menu item
|
|
85
85
|
* @param {boolean} bStartsSection Defines whether a visual separator should be rendered before the item
|
|
86
86
|
* @param {Promise<Function|boolean>} oHandlerPromise Optional parameter. A promise which resolves the press handler method to the current menu item
|
|
87
|
-
* @param {Array<ContextMenuEntry>} aChildren Child entries for the current menu item
|
|
87
|
+
* @param {Array<sap.suite.ui.generic.template.lib.ContextMenuHandler.ContextMenuEntry>} aChildren Child entries for the current menu item
|
|
88
88
|
*/
|
|
89
89
|
function fnAddMenuItem(sPathToItems, aItems, sText, sIcon, bStartsSection, oHandlerPromise, aChildren){
|
|
90
90
|
iCreatedMenuItemsCounter++;
|
|
@@ -261,8 +261,8 @@ sap.ui.define([
|
|
|
261
261
|
|
|
262
262
|
/**
|
|
263
263
|
* Adds the toolbar buttons and menu buttons to the context menu
|
|
264
|
-
* @param {FocusInfo} oFocusInfo Focus info
|
|
265
|
-
* @param {Array<ContextMenuEntry>} aItems Array of context menu items
|
|
264
|
+
* @param {sap.suite.ui.generic.template.lib.ContextMenuHandler.FocusInfo} oFocusInfo Focus info
|
|
265
|
+
* @param {Array<sap.suite.ui.generic.template.lib.ContextMenuHandler.ContextMenuEntry>} aItems Array of context menu items
|
|
266
266
|
*/
|
|
267
267
|
function fnAddToolbarButtonsToContextMenu(oFocusInfo, aItems){
|
|
268
268
|
var aStandardActions = oCommonUtils.getToolbarCustomData(oSourceControl);
|
|
@@ -356,9 +356,8 @@ sap.ui.define([
|
|
|
356
356
|
/**
|
|
357
357
|
* Opens all the eligible contexts in new tab.
|
|
358
358
|
* Also, validates the maximum allowed number of records to be opened.
|
|
359
|
-
* @param {FocusInfo} oFocusInfo
|
|
359
|
+
* @param {sap.suite.ui.generic.template.lib.ContextMenuHandler.FocusInfo} oFocusInfo
|
|
360
360
|
* @param {Array<sap.ui.model.Context>} aNavigableContexts
|
|
361
|
-
* @returns
|
|
362
361
|
*/
|
|
363
362
|
function fnOpenNavigableContextsInNewTab (oFocusInfo, aNavigableContexts) {
|
|
364
363
|
if (oFocusInfo.applicableContexts.length > MAX_RECORDS_OPEN_IN_NEW_TAB) {
|
|
@@ -396,7 +395,7 @@ sap.ui.define([
|
|
|
396
395
|
* c. The controller is configured with onListNavigationExtension (i.e custom navigation logic written by app).
|
|
397
396
|
* //TODO: These negative scenarios need to be revisited
|
|
398
397
|
*
|
|
399
|
-
* @param {FocusInfo} oFocusInfo
|
|
398
|
+
* @param {sap.suite.ui.generic.template.lib.ContextMenuHandler.FocusInfo} oFocusInfo
|
|
400
399
|
* @returns {Promise<Function|undefined>} Promise which resolves the handler method
|
|
401
400
|
*/
|
|
402
401
|
function getHandlePromiseForOpenInNewTab (oFocusInfo) {
|
|
@@ -419,8 +418,8 @@ sap.ui.define([
|
|
|
419
418
|
|
|
420
419
|
/**
|
|
421
420
|
* Adds "Open in wew tab/window" entry to context menu
|
|
422
|
-
* @param {FocusInfo} oFocusInfo
|
|
423
|
-
* @param {Array<ContextMenuEntry>} aItems
|
|
421
|
+
* @param {sap.suite.ui.generic.template.lib.ContextMenuHandler.FocusInfo} oFocusInfo
|
|
422
|
+
* @param {Array<sap.suite.ui.generic.template.lib.ContextMenuHandler.ContextMenuEntry>} aItems
|
|
424
423
|
*/
|
|
425
424
|
function fnAddOpenInNewTabToContextMenu(oFocusInfo, aItems) {
|
|
426
425
|
var oHandlePromise = getHandlePromiseForOpenInNewTab(oFocusInfo);
|
|
@@ -450,7 +449,7 @@ sap.ui.define([
|
|
|
450
449
|
oTemplatePrivateModel.setProperty(sModelPath + "/items", aContextMenuItems);
|
|
451
450
|
if (aContextMenuItems.length === 0) {
|
|
452
451
|
oEvent.preventDefault();
|
|
453
|
-
}
|
|
452
|
+
}
|
|
454
453
|
}
|
|
455
454
|
|
|
456
455
|
function onContextMenu(oEvent){
|
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
|
|
12
12
|
// This helper class handles creation using dialog in the List Report
|
|
13
13
|
// In case the create with dialog is enabled in List Report it instantiates an instance of
|
|
14
|
-
// sap.suite.ui.generic.template.
|
|
14
|
+
// sap.suite.ui.generic.template.ListReport.controller.CreateWithDialogHandler which implements the main part of the logic
|
|
15
15
|
// This class only contains the glue code which is used to adapt the services provided by generic class to the requirements of the List Report
|
|
16
16
|
|
|
17
17
|
// oState is used as a channel to transfer data to the controller and back
|
|
@@ -22,15 +22,30 @@ sap.ui.define([
|
|
|
22
22
|
var oDialog, oTable;
|
|
23
23
|
|
|
24
24
|
function fnGetFilterForCurrentState(bIncludePersistenceFilter) {
|
|
25
|
+
var sDialogBindingPath = oDialog.getBindingContext().getPath();
|
|
26
|
+
var sEntitySet = "/" + oController.getOwnerComponent().getEntitySet();
|
|
27
|
+
var aFiltersOnTargetPath = [
|
|
28
|
+
new Filter({
|
|
29
|
+
path: "aFullTargets",
|
|
30
|
+
test: function (aFullTargets) {
|
|
31
|
+
return aFullTargets.some(function(sFullTarget){
|
|
32
|
+
return sFullTarget.startsWith(sDialogBindingPath);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}),
|
|
36
|
+
new Filter({
|
|
37
|
+
path: "aTargets",
|
|
38
|
+
test: function (aTargets) {
|
|
39
|
+
return aTargets.includes(sEntitySet);
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
];
|
|
25
43
|
if (bIncludePersistenceFilter) {
|
|
26
44
|
return new Filter({
|
|
27
45
|
filters : [
|
|
28
46
|
new Filter("persistent", "EQ", false),
|
|
29
47
|
new Filter({
|
|
30
|
-
filters :
|
|
31
|
-
new Filter("fullTarget", "StartsWith", oDialog.getBindingContext().getPath()),
|
|
32
|
-
new Filter("target", "EQ", "/" + oController.getOwnerComponent().getEntitySet())
|
|
33
|
-
],
|
|
48
|
+
filters : aFiltersOnTargetPath,
|
|
34
49
|
and : false
|
|
35
50
|
})
|
|
36
51
|
],
|
|
@@ -38,10 +53,7 @@ sap.ui.define([
|
|
|
38
53
|
});
|
|
39
54
|
} else {
|
|
40
55
|
return new Filter({
|
|
41
|
-
filters :
|
|
42
|
-
new Filter("fullTarget", "StartsWith", oDialog.getBindingContext().getPath()),
|
|
43
|
-
new Filter("target", "EQ", "/" + oController.getOwnerComponent().getEntitySet())
|
|
44
|
-
],
|
|
56
|
+
filters : aFiltersOnTargetPath,
|
|
45
57
|
and : false
|
|
46
58
|
});
|
|
47
59
|
}
|
|
@@ -70,7 +82,8 @@ sap.ui.define([
|
|
|
70
82
|
oTemplateUtils.oServices.oCRUDManager.discardDraft(oDialog.getBindingContext());
|
|
71
83
|
} else {
|
|
72
84
|
fnRemoveOldMessageFromModel(oDialog);
|
|
73
|
-
|
|
85
|
+
var sContextPath = oDialog.getBindingContext().getPath();
|
|
86
|
+
oController.getView().getModel().resetChanges([sContextPath], undefined, true);
|
|
74
87
|
}
|
|
75
88
|
oDialog.setBindingContext(null);
|
|
76
89
|
}
|
|
@@ -159,8 +172,8 @@ sap.ui.define([
|
|
|
159
172
|
if (!oPredefinedValues) {
|
|
160
173
|
var oGetDefaultValuesPromise = oTemplateUtils.oServices.oCRUDManager.getDefaultValues(oEventSource, oPredefinedValues);
|
|
161
174
|
if (oGetDefaultValuesPromise instanceof Promise) {
|
|
162
|
-
var fnGetPredefinedValues = function (
|
|
163
|
-
openDialog(oCreateWithDialog, oEventSource,
|
|
175
|
+
var fnGetPredefinedValues = function (mDefaultValues) {
|
|
176
|
+
openDialog(oCreateWithDialog, oEventSource, mDefaultValues, oTable, oParentContext);
|
|
164
177
|
};
|
|
165
178
|
oGetDefaultValuesPromise.then(fnGetPredefinedValues, fnGetPredefinedValues);
|
|
166
179
|
} else {
|
|
@@ -276,17 +276,19 @@ sap.ui.define([
|
|
|
276
276
|
// Show messages for current context including all "property children"
|
|
277
277
|
aCurrentFilters = bIsODataBased ? [
|
|
278
278
|
new Filter(bIsNonDraftCreate ? { // in non-draft create mode the binding path does not contain the full path
|
|
279
|
-
path: "
|
|
280
|
-
|
|
281
|
-
|
|
279
|
+
path: "aTargets",
|
|
280
|
+
test: function(aTargets){
|
|
281
|
+
return aTargets.some(function(sTarget){
|
|
282
|
+
return sTarget.startsWith(sCurrentBindingPath);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
282
285
|
} : {
|
|
283
286
|
path: "aFullTargets", // there may be more than one full target identified for this message. If any of those fits we consider the message as fitting.
|
|
284
287
|
test: function(aFullTargets){
|
|
285
288
|
return aFullTargets.some(function(sFullTarget){
|
|
286
289
|
return sFullTarget.startsWith(sCurrentBindingPath);
|
|
287
290
|
});
|
|
288
|
-
}
|
|
289
|
-
caseSensitive: true
|
|
291
|
+
}
|
|
290
292
|
})
|
|
291
293
|
] : [];
|
|
292
294
|
addExternalFiltersToCurrentFilter(); //Check/add external filters
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
var oMessageManager = sap.ui.getCore().getMessageManager();
|
|
15
15
|
|
|
16
16
|
// This class is implementing a facility of a message strip attached to a smart control or a accumulation of smart controls.
|
|
17
|
-
// More precisely, the class can be used in the following three different
|
|
17
|
+
// More precisely, the class can be used in the following three different scenarios
|
|
18
18
|
// - There is exactly one smart control for which the corresponding message strip should be displayed
|
|
19
19
|
// - There is exactly one smart control for which the corresponding message strip should be displayed, but the user may switch
|
|
20
20
|
// between different views on this control. For each view a different message (resp. no message) may be shown in the message strip
|
|
@@ -28,11 +28,11 @@ sap.ui.define([
|
|
|
28
28
|
// not support the getDataStateIndicator() method or for which this method does not return a corresponding instance.
|
|
29
29
|
//
|
|
30
30
|
// The scenarios are unified in a way that a map mTabToGetPresentationControlHandler is passed to the constructor of this class.
|
|
31
|
-
// The keys of this map are called "tabs" and represent the
|
|
31
|
+
// The keys of this map are called "tabs" and represent the different views (second scenario) resp. the different smart controls (third scenario).
|
|
32
32
|
// The corresponding value is a function that returns the corresponding smart control (identical for all in scenario 2).
|
|
33
33
|
// Note that this map is transferred to a more general map mApplicationCustomMessageInfo which has the same keys but holds an object
|
|
34
34
|
// as a value. This object has a method getPresentationControlHandler which is exactly the function named above.
|
|
35
|
-
// In
|
|
35
|
+
// In addition to this immutable member the object will have two properties which change during runtime:
|
|
36
36
|
// - bindingPath: the binding path which is currently valid for the corresponding smart control
|
|
37
37
|
// - message: An instance of sap.ui.core.message.Message implementing the content of the message strip.
|
|
38
38
|
// This property is faulty if no message should be displayed for the corresponding key.
|
|
@@ -70,8 +70,8 @@ sap.ui.define([
|
|
|
70
70
|
var oPresentationControlHandler = oApplicationCustomMessageInfo && oApplicationCustomMessageInfo.getPresentationControlHandler();
|
|
71
71
|
var oDataStateIndicator = oPresentationControlHandler && oPresentationControlHandler.getDataStateIndicator && oPresentationControlHandler.getDataStateIndicator();
|
|
72
72
|
if (oDataStateIndicator) { //Only add message if there is Data state indicator to display it
|
|
73
|
-
oApplicationCustomMessageInfo.message.
|
|
74
|
-
oApplicationCustomMessageInfo.message.
|
|
73
|
+
oApplicationCustomMessageInfo.message.setTargets([oApplicationCustomMessageInfo.bindingPath]);
|
|
74
|
+
oApplicationCustomMessageInfo.message.aFullTargets = [oApplicationCustomMessageInfo.bindingPath];
|
|
75
75
|
oMessageManager.addMessages(oApplicationCustomMessageInfo.message);
|
|
76
76
|
oApplicationCustomMessageInfo.isAddedToMessageManager = true;
|
|
77
77
|
}
|
|
@@ -120,7 +120,7 @@ sap.ui.define([
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
// Private
|
|
123
|
+
// Private methods that triggers a new calculation of the content of the message strip
|
|
124
124
|
function fnRefresh(){
|
|
125
125
|
var oApplicationCustomMessageInfo = mApplicationCustomMessageInfo[sCurrentTab];
|
|
126
126
|
var oPresentationControlHandler = oApplicationCustomMessageInfo && oApplicationCustomMessageInfo.getPresentationControlHandler();
|
|
@@ -37,23 +37,23 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
37
37
|
onDraftPopupOk: function () {
|
|
38
38
|
var selectedItem = getSelectedKey(oDraftPopup);
|
|
39
39
|
switch (selectedItem) {
|
|
40
|
-
case "draftPopupOptionSave":
|
|
40
|
+
case "draftPopupOptionSave":
|
|
41
41
|
var oBeforeSavePromise = Promise.resolve(getComponent().oController.beforeSaveExtension());
|
|
42
42
|
oBeforeSavePromise.then(fnSaveDraft.bind(null, oTemplateContract, sMode), Function.prototype);
|
|
43
43
|
oDraftPopup.close();
|
|
44
|
-
|
|
45
|
-
case "draftPopupOptionKeep":
|
|
44
|
+
break;
|
|
45
|
+
case "draftPopupOptionKeep":
|
|
46
46
|
oTemplateContract.oAppComponent.getApplicationController().synchronizeDraftAsync().then(function() {
|
|
47
47
|
fnOnDiscardOrKeepDraftConfirmed();
|
|
48
48
|
}).finally(function() {
|
|
49
49
|
oDraftPopup.close();
|
|
50
50
|
});
|
|
51
|
-
|
|
52
|
-
case "draftPopupOptionDiscard":
|
|
51
|
+
break;
|
|
52
|
+
case "draftPopupOptionDiscard":
|
|
53
53
|
var discardDraftPromise = fnDiscardDraft(sMode).then(fnOnDiscardOrKeepDraftConfirmed);
|
|
54
54
|
discardDraftPromise.catch(fnOnDiscardOrKeepDraftCancel);
|
|
55
55
|
oDraftPopup.close();
|
|
56
|
-
|
|
56
|
+
break;
|
|
57
57
|
default:
|
|
58
58
|
break;
|
|
59
59
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sap.ui.define(["sap/base/util/ObjectPath", "sap/ushell/ui/footerbar/AddBookmarkButton",
|
|
2
2
|
"sap/suite/ui/commons/collaboration/ServiceContainer", "sap/ui/core/CustomData", 'sap/ui/performance/trace/FESRHelper', "sap/ui/core/Component",
|
|
3
|
-
"sap/suite/ui/generic/template/lib/AdaptiveCardHelper", "sap/m/MenuItem", "sap/ui/core/Lib"
|
|
4
|
-
], function (ObjectPath, AddBookmarkButton, ServiceContainer, CustomData, FESRHelper, Component, AdaptiveCardHelper, MenuItem, Library
|
|
3
|
+
"sap/suite/ui/generic/template/lib/AdaptiveCardHelper", "sap/m/MenuItem", "sap/ui/core/Lib"
|
|
4
|
+
], function (ObjectPath, AddBookmarkButton, ServiceContainer, CustomData, FESRHelper, Component, AdaptiveCardHelper, MenuItem, Library) {
|
|
5
5
|
"use strict";
|
|
6
6
|
|
|
7
7
|
var ShareUtils = {};
|
|
@@ -85,22 +85,12 @@ sap.ui.define(["sap/base/util/ObjectPath", "sap/ushell/ui/footerbar/AddBookmarkB
|
|
|
85
85
|
|
|
86
86
|
oCommonUtils.getDialogFragmentAsync("sap.suite.ui.generic.template.fragments.ShareSheet", oFragmentController, "share", ShareUtils.setStaticShareData, true).then(function (oFragment) {
|
|
87
87
|
oShareActionSheet = oFragment;
|
|
88
|
-
var oUshellContainer = sap.ui.require("sap/ushell/Container");
|
|
89
88
|
var oShareModel = oShareActionSheet.getModel("share");
|
|
90
|
-
var that = this;
|
|
91
89
|
oFragmentController.getModelData().then(function (oFragmentModelData) {
|
|
92
90
|
oShareModel.setData(oFragmentModelData, true);
|
|
93
|
-
if (oUshellContainer && oUshellContainer.inAppRuntime()) {
|
|
94
|
-
CollaborationMessageConsumer.getProviderConfiguration().then(function(oProviderConfiguration){
|
|
95
|
-
ServiceContainer.getServiceAsyncForAppRuntime(oProviderConfiguration).then(function (oTeamsHelper) {
|
|
96
|
-
that.addMenuItem(oShareModel, oTeamsHelper, oShareActionSheet, oControlToOpenBy);
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
} else {
|
|
100
91
|
ServiceContainer.getServiceAsync().then(function (oTeamsHelper) {
|
|
101
92
|
this.addMenuItem(oShareModel, oTeamsHelper, oShareActionSheet, oControlToOpenBy);
|
|
102
93
|
}.bind(this));
|
|
103
|
-
}
|
|
104
94
|
}.bind(this));
|
|
105
95
|
}.bind(this));
|
|
106
96
|
};
|
|
@@ -12,9 +12,9 @@ sap.ui.define(["sap/suite/ui/generic/template/js/AnnotationHelper",
|
|
|
12
12
|
|
|
13
13
|
/***
|
|
14
14
|
* To trigger side effect on value change , only the fieldGroup Ids of single source property is required
|
|
15
|
-
* @param {
|
|
15
|
+
* @param {sap.ui.comp.smartfield.SmartField} oSmartField
|
|
16
16
|
* @param {*} oComputedMetaData
|
|
17
|
-
* @returns
|
|
17
|
+
* @returns {string[]|null} array of fieldGroupID assigned for a property (oComputedMetaData.path)
|
|
18
18
|
*/
|
|
19
19
|
function fnGetFieldGroupIdOnlyForSingleSource(oSmartField, oComputedMetaData) {
|
|
20
20
|
var oSideEffect;
|
|
@@ -88,12 +88,10 @@ sap.ui.define(["sap/suite/ui/generic/template/js/AnnotationHelper",
|
|
|
88
88
|
* Triggers side effect from generic template layer for a field. This method gets triggerd from two sources
|
|
89
89
|
* 1. changeModelValue (SmartField)
|
|
90
90
|
* 2. fieldChange (SmartTable) - in this case get the source smart field from 'changeEvent'
|
|
91
|
-
* @param {
|
|
91
|
+
* @param {sap.ui.base.Event} oEvent
|
|
92
92
|
* @param {*} oComponentUtils
|
|
93
|
-
* @param {
|
|
94
|
-
* @returns
|
|
93
|
+
* @param {boolean} bIsSideEffectTypeComputed
|
|
95
94
|
*/
|
|
96
|
-
|
|
97
95
|
function fnHandleSideEffectForField(oEvent, oComponentUtils, bIsSideEffectTypeComputed) {
|
|
98
96
|
|
|
99
97
|
if (!oComponentUtils.isDraftEnabled()) {
|
|
@@ -114,7 +112,7 @@ sap.ui.define(["sap/suite/ui/generic/template/js/AnnotationHelper",
|
|
|
114
112
|
|
|
115
113
|
/**
|
|
116
114
|
* Calculate and assign fieldGroup Id(s) for a smart Field
|
|
117
|
-
* @param {
|
|
115
|
+
* @param {sap.ui.comp.smartfield.SmartField} oSmartField
|
|
118
116
|
* @param {*} oMetaModel
|
|
119
117
|
* @param {*} sEntitySet
|
|
120
118
|
*/
|
|
@@ -274,6 +274,7 @@ sap.ui.define(["sap/ui/core/mvc/ControllerExtension",
|
|
|
274
274
|
oTemplateUtils.oServices.oApplicationController.registerView(oView);
|
|
275
275
|
oTemplateUtils.oServices.oDataLossHandler = oAppRegistryEntry.oTemplateContract.oDataLossHandler;
|
|
276
276
|
oTemplateUtils.oServices.oInsightsFECardProvider = oAppRegistryEntry.oTemplateContract.oInsightsFECardProvider;
|
|
277
|
+
oTemplateUtils.oServices.oFioriAIHandler = oAppRegistryEntry.oTemplateContract.oFioriAIHandler;
|
|
277
278
|
oTemplateUtils.oCommonUtils = new CommonUtils(oRet, oTemplateUtils.oServices, oTemplateUtils.oComponentUtils);
|
|
278
279
|
oTemplateUtils.oInfoObjectHandler = new InfoObjectHandler(oRet, oTemplateUtils);
|
|
279
280
|
oTemplateUtils.oServices.oCRUDManager = new CRUDManager(oRet,
|