@sapui5/sap.suite.ui.generic.template 1.146.0 → 1.147.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/controller/ControllerImplementation.js +3 -3
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/controllerFrameworkExtensions.js +15 -2
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ar.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ca.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cnr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cs.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_cy.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_de.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_el.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_GB.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_en_US_saprigi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_es_MX.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_et.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_fr_CA.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_hu.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_it.properties +9 -1
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_iw.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ja.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_kk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ko.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lt.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_lv.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_mk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ms.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_nl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_no.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_pt_PT.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ro.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_ru.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sh.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sl.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_sv.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_th.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_tr.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_uk.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_vi.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_CN.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_zh_TW.properties +8 -0
- package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +97 -7
- package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +19 -8
- package/src/sap/suite/ui/generic/template/ListReport/controllerFrameworkExtensions.js +16 -2
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_fr_CA.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_sk.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_uk.properties +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DeleteConfirmation.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartChart.fragment.xml +1 -0
- package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +5 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +16 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_cnr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_mk.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftConfirmationPopup.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftResumeDialog.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/RelatedAppsSheet.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +3 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/TableDeleteConfirmation.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/UnsavedChangesDialog.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/view/QuickCreate.view.xml +7 -7
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/view/QuickView.view.xml +6 -6
- package/src/sap/suite/ui/generic/template/detailTemplates/detailUtils.js +18 -1
- package/src/sap/suite/ui/generic/template/fragments/AINotice.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/ActionConfirmation.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/ContactDetails.fragment.xml +5 -5
- package/src/sap/suite/ui/generic/template/fragments/DataLoss.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/DataLossTechnicalError.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/DiscardEditPopover.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/fragments/DraftAdminDataPopover.fragment.xml +1 -1
- package/src/sap/suite/ui/generic/template/fragments/MessageDialog.fragment.xml +7 -7
- package/src/sap/suite/ui/generic/template/fragments/MessageInfluencingCRUDAction.fragment.xml +7 -7
- package/src/sap/suite/ui/generic/template/fragments/MessagePopover.fragment.xml +2 -2
- package/src/sap/suite/ui/generic/template/fragments/ShareSheet.fragment.xml +3 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +108 -67
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/DynamicPageWrapper.js +19 -51
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/ObjectPageLayoutWrapper.js +10 -32
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/PreliminaryWrapper.js +151 -0
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SearchFieldWrapper.js +8 -30
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +68 -174
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +100 -94
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableWrapper.js +22 -3
- package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +90 -81
- package/src/sap/suite/ui/generic/template/genericUtilities/metadataAnalyser.js +5 -5
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +5 -1
- package/src/sap/suite/ui/generic/template/lib/CommonEventHandlers.js +76 -7
- package/src/sap/suite/ui/generic/template/lib/ContextMenuHandler.js +27 -21
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/EasyFillHandler.js +5 -1
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFill/fragments/EasyFillDialog.fragment.xml +12 -11
- package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +9 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ar.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_bg.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ca.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cnr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cs.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_cy.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_da.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_de.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_el.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_GB.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_en_US_saprigi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_es_MX.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_et.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr_CA.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_hu.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_id.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_it.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_iw.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ja.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_kk.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ko.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lt.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_lv.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_mk.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ms.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_nl.properties +17 -1
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_no.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pl.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_pt_PT.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ro.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +21 -5
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sh.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sk.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sl.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_sv.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_th.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_tr.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_uk.properties +18 -2
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_vi.properties +16 -0
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_TW.properties +20 -4
- package/src/sap/suite/ui/generic/template/lib/insights/InsightsFECardProvider.js +7 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +1 -1
- package/src/sap/suite/ui/generic/template/library.js +1 -1
- package/src/sap/suite/ui/generic/template/listTemplates/fragments/MessagesOnRetrieval.fragment.xml +5 -5
|
@@ -214,12 +214,6 @@ sap.ui.define([
|
|
|
214
214
|
// However, for iAppState case, SVM wrapper also needs to contain SFB wrapper (and not oCustomFiltersWrapper directly)
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
// DynamicPage state: header pinned
|
|
218
|
-
var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
|
|
219
|
-
// TODO: Discuss: should this state (header pinned) be part of variant (only page variant or SFB variant)? Assumption: no
|
|
220
|
-
var oDynamicPageWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage);
|
|
221
|
-
aControlStateWrappers.push(oDynamicPageWrapper);
|
|
222
|
-
|
|
223
217
|
// SmartVariantManagement state: Selected Variant and whether it's dirty, including wrappers for managed controls (all controls, for which the corresponding state
|
|
224
218
|
// information should be part of the variant)
|
|
225
219
|
// Due to direct connection between SVM and SFB, also their wrappers need to each other directly. Remarks:
|
|
@@ -230,13 +224,19 @@ sap.ui.define([
|
|
|
230
224
|
if (oSmartVariantManagement){
|
|
231
225
|
var oSmartVariantManagementWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oSmartVariantManagement, {
|
|
232
226
|
managedControlWrappers: aPageVariantControlStateWrappers.concat([oSmartFilterBarWrapper]),
|
|
233
|
-
|
|
227
|
+
smartFilterBarWrapper: oSmartFilterBarWrapper
|
|
234
228
|
});
|
|
235
229
|
aControlStateWrappers.push(oSmartVariantManagementWrapper);
|
|
236
230
|
} else {
|
|
237
231
|
aControlStateWrappers.push(oSmartFilterBarWrapper);
|
|
238
232
|
}
|
|
239
233
|
|
|
234
|
+
// DynamicPage state: header pinned
|
|
235
|
+
var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
|
|
236
|
+
// The DynamicPage state (header pinned) is intentionally stored only in iAppState and not included in any variant (neither page variant nor SFB variant).
|
|
237
|
+
var oDynamicPageWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage);
|
|
238
|
+
aControlStateWrappers.push(oDynamicPageWrapper);
|
|
239
|
+
|
|
240
240
|
|
|
241
241
|
// Wrapper to control whether data is loaded
|
|
242
242
|
|
|
@@ -774,7 +774,8 @@ sap.ui.define([
|
|
|
774
774
|
// For desktop devices, expand the header for Standard and Custom variants and for tablet and mobile devices,
|
|
775
775
|
// collapse the header only if search is triggered.
|
|
776
776
|
if (Device.system.desktop) {
|
|
777
|
-
|
|
777
|
+
var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
|
|
778
|
+
oTemplatePrivateModel.setProperty("/listReport/isHeaderExpanded", true);
|
|
778
779
|
} else {
|
|
779
780
|
collapseHeader();
|
|
780
781
|
}
|
|
@@ -909,6 +910,16 @@ sap.ui.define([
|
|
|
909
910
|
}
|
|
910
911
|
sap.ui.getCore().getMessageManager().removeMessages(removedMessages);
|
|
911
912
|
}
|
|
913
|
+
|
|
914
|
+
// Restore header collapse logic (originally removed in change 5641712)
|
|
915
|
+
// Collapse header when user manually selects a variant (context === undefined) that has executeOnSelect set to true
|
|
916
|
+
var oContext = oEvent.getParameter("context");
|
|
917
|
+
var bExecuteOnSelect = oEvent.getParameter("executeOnSelect");
|
|
918
|
+
|
|
919
|
+
if (oContext === undefined && bExecuteOnSelect) {
|
|
920
|
+
collapseHeader();
|
|
921
|
+
}
|
|
922
|
+
|
|
912
923
|
fnRestoreExtendedFilterDataOnAfterSFBVariantLoad(oEvent);
|
|
913
924
|
}
|
|
914
925
|
|
|
@@ -22,6 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
onBeforeRebindChartExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
23
23
|
adaptNavigationParameterExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
24
24
|
onListNavigationExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
25
|
+
onListNavigationExtensionFromContextMenu: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
25
26
|
getPredefinedValuesForCreateExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
26
27
|
adaptTransientMessageExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
27
28
|
onSaveAsTileExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After},
|
|
@@ -177,7 +178,6 @@ sap.ui.define([
|
|
|
177
178
|
* @param {sap.ui.model.Context} oBindingContext - The context of the corresponding table row
|
|
178
179
|
* @param {boolean} bReplaceInHistory - This parameter should be considered if the method triggers an internal
|
|
179
180
|
* navigation. Pass this parameter to <code>oNavigationData.replaceInHistory</code> in this case
|
|
180
|
-
*
|
|
181
181
|
* @returns {boolean} Method should return <code>true</code> if framework navigation should be suppressed
|
|
182
182
|
* (that means: extension code has taken over navigation)
|
|
183
183
|
* @protected
|
|
@@ -185,7 +185,21 @@ sap.ui.define([
|
|
|
185
185
|
onListNavigationExtension: function(oEvent, oBindingContext, bReplaceInHistory) {
|
|
186
186
|
return false;
|
|
187
187
|
},
|
|
188
|
-
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* This method is called by SAP Fiori elements when a Contextmenu open in a new tab is triggered from a table. Application
|
|
191
|
+
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
192
|
+
* rows of a table. Such custom navigation should be triggered via corresponding methods of
|
|
193
|
+
* {@link sap.suite.ui.generic.template.extensionAPI.NavigationController NavigationController}.
|
|
194
|
+
*
|
|
195
|
+
* @returns {boolean} Method should return <code>true</code> if framework navigation should be suppressed
|
|
196
|
+
* @param {Array<sap.ui.model.Context>} aContext - The context of the corresponding table row
|
|
197
|
+
* @protected
|
|
198
|
+
*/
|
|
199
|
+
onListNavigationExtensionFromContextMenu: function(aContext) {
|
|
200
|
+
return false;
|
|
201
|
+
},
|
|
202
|
+
|
|
189
203
|
/**
|
|
190
204
|
* This method is called by SAP Fiori elements when the Create with Filters is executed. Application developers
|
|
191
205
|
* can enable this feature in the LR component by adding createWithFilters in the settings object of the
|
|
@@ -63,7 +63,7 @@ OBJECT_NOT_EDITABLE=Impossible de modifier cet objet
|
|
|
63
63
|
|
|
64
64
|
NODATA_SMARTTABLE_LR=Pour commencer, activez les filtres appropri\u00E9s et cliquez sur "Lancer".
|
|
65
65
|
|
|
66
|
-
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=Voyons
|
|
66
|
+
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=Voyons les r\u00E9sultats.
|
|
67
67
|
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=Commencez par indiquer vos crit\u00E8res de recherche ou de filtre.
|
|
68
68
|
|
|
69
69
|
SEARCH_FILTERS_KEYBOARD_SHORTCUT_DESC=Lancer
|
|
@@ -63,7 +63,7 @@ OBJECT_NOT_EDITABLE=Impossible de modifier cet objet.
|
|
|
63
63
|
|
|
64
64
|
NODATA_SMARTTABLE_LR=Activez les filtres appropri\u00E9s, puis s\u00E9lectionnez Lancer.
|
|
65
65
|
|
|
66
|
-
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=
|
|
66
|
+
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=Faisons une recherche.
|
|
67
67
|
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=Commencez par indiquer vos crit\u00E8res de recherche ou de filtre.
|
|
68
68
|
|
|
69
69
|
SEARCH_FILTERS_KEYBOARD_SHORTCUT_DESC=Lancer
|
|
@@ -64,7 +64,7 @@ OBJECT_NOT_EDITABLE=Tento objekt nie je mo\u017En\u00E9 upravi\u0165.
|
|
|
64
64
|
NODATA_SMARTTABLE_LR=Pre spustenie nastavte relevantn\u00E9 filtre a zvo\u013Ete Spusti\u0165.
|
|
65
65
|
|
|
66
66
|
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=Pozrime si v\u00FDsledky
|
|
67
|
-
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=Za\u010Dnite zadan\u00EDm
|
|
67
|
+
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=Za\u010Dnite zadan\u00EDm krit\u00E9ri\u00ED vyh\u013Ead\u00E1vania alebo filtrovania.
|
|
68
68
|
|
|
69
69
|
SEARCH_FILTERS_KEYBOARD_SHORTCUT_DESC=Spusti\u0165
|
|
70
70
|
|
|
@@ -64,7 +64,7 @@ OBJECT_NOT_EDITABLE=\u0426\u0435\u0439 \u043E\u0431'\u0454\u043A\u0442 \u043D\u0
|
|
|
64
64
|
NODATA_SMARTTABLE_LR=\u0429\u043E\u0431 \u0440\u043E\u0437\u043F\u043E\u0447\u0430\u0442\u0438, \u0432\u0441\u0442\u0430\u043D\u043E\u0432\u0456\u0442\u044C \u0440\u0435\u043B\u0435\u0432\u0430\u043D\u0442.\u0444\u0456\u043B\u044C\u0442\u0440\u0438 \u0439 \u043E\u0431\u0435\u0440\u0456\u0442\u044C"\u041F\u0443\u0441\u043A".
|
|
65
65
|
|
|
66
66
|
NODATA_SMARTTABLE_LR_ILLUSTRATION_TITLE=\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043E\u0442\u0440\u0438\u043C\u0430\u0454\u043C\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0438
|
|
67
|
-
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=\
|
|
67
|
+
NODATA_SMARTTABLE_LR_ILLUSTRATION_DESCRIPTION=\u0420\u043E\u0437\u043F\u043E\u0447\u043D\u0456\u0442\u044C \u0437 \u043D\u0430\u0434\u0430\u043D\u043D\u044F \u0441\u0432\u043E\u0457\u0445 \u043A\u0440\u0438\u0442\u0435\u0440\u0456\u0457\u0432 \u043F\u043E\u0448\u0443\u043A\u0443 \u0430\u0431\u043E \u0444\u0456\u043B\u044C\u0442\u0440\u0430\u0446\u0456\u0457.
|
|
68
68
|
|
|
69
69
|
SEARCH_FILTERS_KEYBOARD_SHORTCUT_DESC=\u041F\u0443\u0441\u043A
|
|
70
70
|
|
package/src/sap/suite/ui/generic/template/ListReport/view/fragments/DeleteConfirmation.fragment.xml
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
</VBox>
|
|
12
12
|
</content>
|
|
13
13
|
<beginButton>
|
|
14
|
-
<Button text="{i18n>DELETE}" press="onDelete"
|
|
14
|
+
<Button text="{i18n>DELETE}" press=".onDelete"
|
|
15
15
|
visible="{= ((${delete>/lockedItemsCount} + ${delete>/undeletableCount}) !== ${delete>/itemsCount}) }"
|
|
16
16
|
type="Emphasized"/>
|
|
17
17
|
</beginButton>
|
|
18
18
|
<endButton>
|
|
19
19
|
<Button text="{= ((${delete>/lockedItemsCount} + ${delete>/undeletableCount}) !== ${delete>/itemsCount}) ? ${i18n>CANCEL} : ${i18n>CLOSE} }"
|
|
20
|
-
press="onCancel"/>
|
|
20
|
+
press=".onCancel"/>
|
|
21
21
|
</endButton>
|
|
22
22
|
</Dialog>
|
|
23
23
|
</core:FragmentDefinition>
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
<template:with path="entityType>com.sap.vocabularies.UI.v1.HeaderInfo" var="header">
|
|
10
10
|
<smartChart:SmartChart
|
|
11
11
|
id="listReport{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'AH.getSuffixFromIconTabFilterKey'} : ''}"
|
|
12
|
+
afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
|
|
12
13
|
visible="{path: 'tabItem>', formatter: 'AHMultipleViews.getVisibleForTableTabs'}"
|
|
13
14
|
smartFilterId=""
|
|
14
15
|
persistencyKey="listReportChart{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'AH.getSuffixFromIconTabFilterKey'} : ''}"
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
<template:with path="tableAnnotationPath>" helper="AH.searchForFirstSemKey_Title_Description" var="targetColumn">
|
|
18
18
|
<template:with path="parameter>/" helper="StableIdHelper.preparePathForStableId" var="smartControlId">
|
|
19
19
|
<template:if test="{= ${smartControlId>}.buildStableId({type: 'ListReportTable', subType: 'SmartTable', sQuickVariantKey: ${tabItem>key}})}" />
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
<smarttable:SmartTable id="{smartControlId>id}" useDateRangeType="{= ${parameter>/settings/filterSettings/dateSettings/useDateRange} }"
|
|
21
|
+
afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
|
|
22
|
+
smartFilterId="{= ${parameter>/settings/quickVariantSelectionX} ? '' : 'listReportFilter'}"
|
|
22
23
|
visible="{path: 'tabItem>', formatter: 'AHMultipleViews.getVisibleForTableTabs'}"
|
|
23
24
|
initialise="._templateEventHandlers.onTableInit"
|
|
24
25
|
persistencyKey="{= ${path: 'parameter>/settings/routeConfig/', formatter: 'AH.getPersistencyKeyForSmartTable'} }{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'AH.getSuffixFromIconTabFilterKey'} : ''}"
|
|
@@ -2523,8 +2523,11 @@ sap.ui.define([
|
|
|
2523
2523
|
}
|
|
2524
2524
|
|
|
2525
2525
|
},
|
|
2526
|
-
|
|
2527
|
-
|
|
2526
|
+
handlers: {
|
|
2527
|
+
onAfterVariantInitialise: function(oEvent) {
|
|
2528
|
+
oTemplateUtils.oCommonUtils.getControlStateWrapper(oEvent.getSource()).onAfterVariantInitialise();
|
|
2529
|
+
},
|
|
2530
|
+
onEditAndActiveToggle: function () { // Implementation of draft toggle for static header
|
|
2528
2531
|
var oUIModel = oObjectPage.getModel("ui");
|
|
2529
2532
|
var bIsEditable = oUIModel.getProperty("/editable");
|
|
2530
2533
|
|
|
@@ -30,7 +30,8 @@ sap.ui.define([
|
|
|
30
30
|
beforeSmartLinkPopoverOpensExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After },
|
|
31
31
|
onBeforeExportTableExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After },
|
|
32
32
|
focusOnEditExtension: { "public": true, "final": false, overrideExecution: OverrideExecution.After },
|
|
33
|
-
modifyRelatedAppsSettings: { "public": true, "final": false, overrideExecution: OverrideExecution.After }
|
|
33
|
+
modifyRelatedAppsSettings: { "public": true, "final": false, overrideExecution: OverrideExecution.After },
|
|
34
|
+
onListNavigationExtensionFromContextMenu: { "public": true, "final": false, overrideExecution: OverrideExecution.After }
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
|
|
@@ -82,13 +83,26 @@ sap.ui.define([
|
|
|
82
83
|
* @param {sap.ui.model.Context} oBindingContext - The context of the corresponding table row
|
|
83
84
|
* @param {boolean} bReplaceInHistory - This parameter should be considered if the method triggers an internal
|
|
84
85
|
* navigation. Pass this parameter to <code>oNavigationData.replaceInHistory</code> in this case
|
|
85
|
-
*
|
|
86
86
|
* @returns {boolean} Method should return <code>true</code> if framework navigation should be suppressed
|
|
87
87
|
* (that means: extension code has taken over navigation)
|
|
88
88
|
* @protected
|
|
89
89
|
*/
|
|
90
90
|
onListNavigationExtension: function (oEvent, oBindingContext, bReplaceInHistory) { },
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* This method is called by SAP Fiori elements when a Contextmenu open in a new tab is triggered from a table. Application
|
|
94
|
+
* developers can override this method and perform conditional (internal or external) navigation from different
|
|
95
|
+
* rows of a table. Such custom navigation should be triggered via corresponding methods of
|
|
96
|
+
* {@link sap.suite.ui.generic.template.extensionAPI.NavigationController NavigationController}.
|
|
97
|
+
*
|
|
98
|
+
* @returns {boolean} Method should return <code>true</code> if framework navigation should be suppressed
|
|
99
|
+
* @param {Array<sap.ui.model.Context>} aContext - The context of the corresponding table row
|
|
100
|
+
* @protected
|
|
101
|
+
*/
|
|
102
|
+
onListNavigationExtensionFromContextMenu: function(aContext) {
|
|
103
|
+
return false;
|
|
104
|
+
},
|
|
105
|
+
|
|
92
106
|
/**
|
|
93
107
|
* This method will be called by SAP Fiori elements before persisting the AppState. Application developers can
|
|
94
108
|
* override this method for persisting the state of custom controls. State of the custom controls
|
|
@@ -19,7 +19,7 @@ SAVE=\u0417\u0430\u0447\u0443\u0432\u0430\u0458
|
|
|
19
19
|
|
|
20
20
|
SAVE_AND_EDIT=\u0417\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0443\u0440\u0435\u0434\u0438
|
|
21
21
|
|
|
22
|
-
SAVE_AND_NEXT=\u0417\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0441\u043B\u0435\u0434\u043D\u043E
|
|
22
|
+
SAVE_AND_NEXT=\u0417\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u043E\u0434\u0438 \u0441\u043B\u0435\u0434\u043D\u043E
|
|
23
23
|
|
|
24
24
|
VALIDATE_DRAFT=\u041F\u043E\u0442\u0432\u0440\u0434\u0438
|
|
25
25
|
|
|
@@ -5,7 +5,7 @@ DESCRIPTION=Stran objekta
|
|
|
5
5
|
|
|
6
6
|
EDIT=Obdelava
|
|
7
7
|
|
|
8
|
-
CREATE_OBJECT=
|
|
8
|
+
CREATE_OBJECT=Kreiraj
|
|
9
9
|
|
|
10
10
|
DISPLAY_ACTIVE_VERSION=Prikaz shranjene verzije
|
|
11
11
|
|
|
@@ -23,7 +23,7 @@ SAVE_AND_NEXT=Shrani in naprej
|
|
|
23
23
|
|
|
24
24
|
VALIDATE_DRAFT=Validacija
|
|
25
25
|
|
|
26
|
-
CREATE=
|
|
26
|
+
CREATE=Kreiraj
|
|
27
27
|
|
|
28
28
|
CLOSE=Zapiranje
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ ADD=Dodajanje
|
|
|
33
33
|
|
|
34
34
|
SEG_BUTTON_TEXT={0} ({1})
|
|
35
35
|
|
|
36
|
-
CREATE_DRAFT_MESSAGE_TEXT=
|
|
36
|
+
CREATE_DRAFT_MESSAGE_TEXT=Kreirajte objekt.
|
|
37
37
|
|
|
38
38
|
SAVE_DRAFT_MESSAGE_TEXT=Uporabite spremembe za shranjeno verzijo.
|
|
39
39
|
|
|
@@ -19,7 +19,7 @@ SAVE=\u0421\u0430\u0447\u0443\u0432\u0430\u0458
|
|
|
19
19
|
|
|
20
20
|
SAVE_AND_EDIT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0443\u0440\u0435\u0434\u0438
|
|
21
21
|
|
|
22
|
-
SAVE_AND_NEXT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0441\u043B\u0435\u0434\u0435\u045B\u0435
|
|
22
|
+
SAVE_AND_NEXT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0438\u0434\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0435\u045B\u0435
|
|
23
23
|
|
|
24
24
|
VALIDATE_DRAFT=\u0412\u0430\u043B\u0438\u0434\u0438\u0440\u0430\u0458
|
|
25
25
|
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
</List>
|
|
37
37
|
</content>
|
|
38
38
|
<buttons>
|
|
39
|
-
<Button text="{i18n>OK}" type="Emphasized" press="onDraftPopupOk" />
|
|
40
|
-
<Button text="{i18n>CANCEL}" press="onDraftPopupCancel" />
|
|
39
|
+
<Button text="{i18n>OK}" type="Emphasized" press=".onDraftPopupOk" />
|
|
40
|
+
<Button text="{i18n>CANCEL}" press=".onDraftPopupCancel" />
|
|
41
41
|
</buttons>
|
|
42
42
|
</Dialog>
|
|
43
43
|
</core:FragmentDefinition>
|
package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/DraftResumeDialog.fragment.xml
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
|
-
<Dialog id="draftResumeDialog" title="{i18n>WARNING}" state="Warning" type="Message" afterClose="onResumeDialogClosed">
|
|
2
|
+
<Dialog id="draftResumeDialog" title="{i18n>WARNING}" state="Warning" type="Message" afterClose=".onResumeDialogClosed">
|
|
3
3
|
<content>
|
|
4
4
|
<Text id="draftResumeText" text="{Dialog>/draftResumeText}" />
|
|
5
5
|
</content>
|
|
6
6
|
<buttons>
|
|
7
|
-
<Button id="draftResumeResumeButton" text="{i18n>RESUME}" press="onDraftResume" type="Emphasized"/>
|
|
8
|
-
<Button id="draftResumeDiscardButton" text="{i18n>DISCARD}" press="onDraftDiscard" />
|
|
7
|
+
<Button id="draftResumeResumeButton" text="{i18n>RESUME}" press=".onDraftResume" type="Emphasized"/>
|
|
8
|
+
<Button id="draftResumeDiscardButton" text="{i18n>DISCARD}" press=".onDraftDiscard" />
|
|
9
9
|
</buttons>
|
|
10
10
|
</Dialog>
|
|
11
11
|
</core:FragmentDefinition>
|
package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/RelatedAppsSheet.fragment.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
|
|
2
2
|
<ActionSheet id="realtedAppsSheet" buttons="{buttons>/buttons}" showCancelButton="true" class="sapSmartTemplatesObjectPageRelatedAppsPopover sapSmartTemplatesObjectPageActionSheetButton">
|
|
3
3
|
<buttons>
|
|
4
|
-
<Button id="relatedAppsButton" enabled="{buttons>enabled}" text="{buttons>text}" press="buttonPressed" class="sapMFlexBox" width="100%" />
|
|
4
|
+
<Button id="relatedAppsButton" enabled="{buttons>enabled}" text="{buttons>text}" press=".buttonPressed" class="sapMFlexBox" width="100%" />
|
|
5
5
|
</buttons>
|
|
6
6
|
</ActionSheet>
|
|
7
7
|
</core:FragmentDefinition>
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
<template:if test="{:= ${smartChartId>}.set(AH.getStableIdPartFromFacet(${facet>}) + '::Chart') }"/>
|
|
12
12
|
<!-- Header Level for Smart Chart is hardcoded here with "H5" for fallback scenarios, After Section Title hiding logic, if required the level is calculated on the class /ObjectPage/controller/SectionTitleHandler.js-->
|
|
13
13
|
<!-- Header Style for Smart Chart is hardcoded here with "H5" for all Scenarios.-->
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
<smartChart:SmartChart
|
|
15
|
+
id="{smartChartId>value}"
|
|
16
|
+
afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
|
|
16
17
|
header="{chartAnnotation>Title/String}"
|
|
17
18
|
initialized="._templateEventHandlers.onChartInit"
|
|
18
19
|
requestAtLeastFields="{parts: [{path: 'chartAnnotation>'}, {path: 'entitySet>entityType'}], formatter: 'AH.getApplicablePathForChartToolbarActions'}"
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
<template:if test="{= ${smartControlId>}.buildStableId({type: 'ObjectPageTable', subType: 'SmartTable', sFacet: ${facetId>id}})}" />
|
|
17
17
|
<!-- Header Level for Smart Table is hardcoded here with "H5" for fallback scenarios, After Section Title hiding logic, if required the level is calculated on the class /ObjectPage/controller/SectionTitleHandler.js-->
|
|
18
18
|
<!-- Header Style for Smart Table is hardcoded here with "H5" for all Scenarios.-->
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
<st:SmartTable id="{smartControlId>id}"
|
|
20
|
+
afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
|
|
21
|
+
initialise="._templateEventHandlers.onTableInit($event, '{facetId>id}')"
|
|
21
22
|
persistencyKey="{parts: [{path: 'smartControlId>id'}, {path: 'objectPageTableSettings>value/persistencyKeyState'}], formatter: 'AH.getPersistencyKey'}"
|
|
22
23
|
tableBindingPath="{= ${path: 'target>AnnotationPath'}.slice(0, ${path: 'target>AnnotationPath'}.lastIndexOf('/')) }"
|
|
23
24
|
fitContainer="false"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
class="sapUiNoContentPadding">
|
|
7
7
|
<SelectList
|
|
8
8
|
selectedKey="{= ${HasDraftEntity} ? 'SwitchToActive' : 'SwitchToDraft'}"
|
|
9
|
-
itemPress="onEditAndActiveToggle($event, ${HasDraftEntity})">
|
|
9
|
+
itemPress=".onEditAndActiveToggle($event, ${HasDraftEntity})">
|
|
10
10
|
<core:Item text="{i18n>SAVED_VERSION}" key="SwitchToActive"/>
|
|
11
11
|
<core:Item text="{i18n>DRAFT_VERSION}" key="SwitchToDraft"/>
|
|
12
12
|
</SelectList>
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
<beginButton>
|
|
10
10
|
<Button text="{i18n>DELETE}"
|
|
11
11
|
visible="{= ${delete>/tableMode} !== 'Delete' || ${delete>/undeletableCount} === 0 }"
|
|
12
|
-
press="onDelete"
|
|
12
|
+
press=".onDelete"
|
|
13
13
|
type="Emphasized"/>
|
|
14
14
|
</beginButton>
|
|
15
15
|
<endButton>
|
|
16
16
|
<Button text="{= (${delete>/tableMode} !== 'Delete' || ${delete>/undeletableCount} === 0) ? ${i18n>CANCEL} : ${i18n>CLOSE} }"
|
|
17
|
-
press="onCancel"/>
|
|
17
|
+
press=".onCancel"/>
|
|
18
18
|
</endButton>
|
|
19
19
|
</Dialog>
|
|
20
20
|
</core:FragmentDefinition>
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<Text id="unsavedChangesQuestionText" text="{Dialog>/unsavedChangesQuestion}" />
|
|
5
5
|
</content>
|
|
6
6
|
<buttons>
|
|
7
|
-
<Button id="unsavedChangesEditButton" text="{i18n>EDIT}" press="onEdit" type="Emphasized"/>
|
|
8
|
-
<Button id="unsavedChangesCancelButton" text="{i18n>CANCEL}" press="onCancel" />
|
|
7
|
+
<Button id="unsavedChangesEditButton" text="{i18n>EDIT}" press=".onEdit" type="Emphasized"/>
|
|
8
|
+
<Button id="unsavedChangesCancelButton" text="{i18n>CANCEL}" press=".onCancel" />
|
|
9
9
|
</buttons>
|
|
10
10
|
</Dialog>
|
|
11
11
|
</core:FragmentDefinition>
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
contextEditable="true"
|
|
66
66
|
change=".onChange"
|
|
67
67
|
value="{path: 'dataField>Value', formatter: 'AHModel.format'}"
|
|
68
|
-
innerControlsCreated="onSmartFieldsCreated"
|
|
68
|
+
innerControlsCreated=".onSmartFieldsCreated"
|
|
69
69
|
width="100%"/>
|
|
70
70
|
</smartForm:GroupElement>
|
|
71
71
|
</smartForm:Group>
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
<template:with path="facet>Target" helper="AHModel.resolvePath" var="target">
|
|
79
79
|
<HBox visible="{quickCreate>/draftExists}" width="100%" alignItems="Center" justifyContent="Center" class="sapUiSmallMarginEnd sapQuickCreateLineItemTable">
|
|
80
80
|
<Table
|
|
81
|
-
updateStarted="onTableUpdateStarted"
|
|
82
|
-
updateFinished="onTableUpdateFinished"
|
|
81
|
+
updateStarted=".onTableUpdateStarted"
|
|
82
|
+
updateFinished=".onTableUpdateFinished"
|
|
83
83
|
backgroundDesign="Translucent"
|
|
84
84
|
items="{parts:[{path:'entitySet>entityType'}, {path: 'parameter>/isDraftEnabled'}], formatter: 'AHQuickTemplates.formatBindingPathForLineItems'}">
|
|
85
85
|
<headerToolbar>
|
|
86
86
|
<Toolbar>
|
|
87
87
|
<Title text="{path: 'facet>Label', formatter: 'AH.formatWithExpandSimple'}" level="h6"/>
|
|
88
88
|
<ToolbarSpacer/>
|
|
89
|
-
<Button icon="sap-icon://add" press="onAddLineItemPress" visible="{ui>/enabled}"/>
|
|
89
|
+
<Button icon="sap-icon://add" press=".onAddLineItemPress" visible="{ui>/enabled}"/>
|
|
90
90
|
</Toolbar>
|
|
91
91
|
</headerToolbar>
|
|
92
92
|
<columns>
|
|
@@ -112,9 +112,9 @@
|
|
|
112
112
|
contextEditable="true"
|
|
113
113
|
value="{path: 'columnItemFieldValue>Value', formatter: 'AHModel.format'}"
|
|
114
114
|
change=".onChange"
|
|
115
|
-
innerControlsCreated="onSmartFieldsCreated"/>
|
|
115
|
+
innerControlsCreated=".onSmartFieldsCreated"/>
|
|
116
116
|
</template:repeat>
|
|
117
|
-
<c:Icon visible="{ui>/enabled}" src="sap-icon://delete" class="hoverIcon" press="onRemoveLineItemPress" tooltip="{i18n>QuickCreate_DeleteLineItem}"/>
|
|
117
|
+
<c:Icon visible="{ui>/enabled}" src="sap-icon://delete" class="hoverIcon" press=".onRemoveLineItemPress" tooltip="{i18n>QuickCreate_DeleteLineItem}"/>
|
|
118
118
|
</cells>
|
|
119
119
|
</ColumnListItem>
|
|
120
120
|
</items>
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
</content>
|
|
130
130
|
</Panel>
|
|
131
131
|
<HBox visible="{quickCreate>/draftExists}" width="100%" alignItems="Center" justifyContent="Center" class="sapQuickActionCreateButtonContainer">
|
|
132
|
-
<Button enabled="{ui>/createenabled}" type="Emphasized" text="{i18n>QuickCreate_CreateButtonText}" press="onCreatePress" visible="{ui>/enabled}"/>
|
|
132
|
+
<Button enabled="{ui>/createenabled}" type="Emphasized" text="{i18n>QuickCreate_CreateButtonText}" press=".onCreatePress" visible="{ui>/enabled}"/>
|
|
133
133
|
</HBox>
|
|
134
134
|
|
|
135
135
|
</mvc:View>
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<template:if test="{badge>ImageUrl}">
|
|
30
30
|
<template:then>
|
|
31
31
|
<FlexBox alignItems="Start" justifyContent="Center">
|
|
32
|
-
<Avatar
|
|
32
|
+
<Avatar
|
|
33
33
|
src="{path: 'badge>ImageUrl', formatter: 'AHModel.format'}"
|
|
34
34
|
class="sapUiSmallMarginEnd sapQuickViewBadgeImageBorder"
|
|
35
35
|
displaySize="L"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<FlexBox visible="{=${badge>/badgeVisible}}" width="100%" alignItems="Start" justifyContent="Start">
|
|
59
59
|
<HBox alignItems="Left" justifyContent="Left" width="100%">
|
|
60
60
|
<FlexBox visible="{=${badge>/imgUrlDefined}}" alignItems="Start" justifyContent="Center">
|
|
61
|
-
<Avatar
|
|
61
|
+
<Avatar
|
|
62
62
|
src="{badge>/imgUrl}"
|
|
63
63
|
class="sapUiSmallMarginEnd sapQuickViewBadgeImageBorder"
|
|
64
64
|
displaySize="L"
|
|
@@ -100,14 +100,14 @@
|
|
|
100
100
|
<template:then>
|
|
101
101
|
<Label
|
|
102
102
|
labelFor="field::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}"
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
text="{path: 'dataField>Label', formatter: 'AH.formatWithExpandSimple'}" class="sapQuickViewSmartFieldLabel"/>
|
|
105
105
|
</template:then>
|
|
106
106
|
<template:else>
|
|
107
107
|
<smart:SmartLabel labelFor="field::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}" class="sapQuickViewSmartFieldLabel"/>
|
|
108
108
|
</template:else>
|
|
109
109
|
</template:if>
|
|
110
|
-
|
|
110
|
+
|
|
111
111
|
<template:if test="{= ${dataField>RecordType} === 'com.sap.vocabularies.UI.v1.DataFieldWithUrl'}">
|
|
112
112
|
<template:then>
|
|
113
113
|
<fe:Link id="field::{path: 'dataField>', formatter: 'AH.getStableIdPartFromDataField'}"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
clientSideMandatoryCheck="false"
|
|
126
126
|
value="{path: 'dataField>Value', formatter: 'AHModel.format'}"
|
|
127
127
|
url="{= ${dataField>Url} ? ${path: 'dataField>Url', formatter: 'AHModel.format'} : ''}"
|
|
128
|
-
innerControlsCreated="onSmartFieldsCreated"
|
|
128
|
+
innerControlsCreated=".onSmartFieldsCreated"
|
|
129
129
|
class="sapQuickViewTextTitle"/>
|
|
130
130
|
</template:else>
|
|
131
131
|
</template:if>
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
contextEditable="false"
|
|
185
185
|
value="{path: 'columnItemFieldValue>Value', formatter: 'AHModel.format'}"
|
|
186
186
|
url="{= ${columnItemFieldValue>Url} ? ${path: 'columnItemFieldValue>Url', formatter: 'AHModel.format'} : ''}"
|
|
187
|
-
innerControlsCreated="onSmartFieldsCreated"/>
|
|
187
|
+
innerControlsCreated=".onSmartFieldsCreated"/>
|
|
188
188
|
</template:repeat>
|
|
189
189
|
</cells>
|
|
190
190
|
</ColumnListItem>
|
|
@@ -164,7 +164,24 @@ sap.ui.define([ "sap/suite/ui/generic/template/genericUtilities/FeLogger", "sap/
|
|
|
164
164
|
function fnApplyAndUp(oEvent) {
|
|
165
165
|
var oControl = oEvent.getSource();
|
|
166
166
|
var oCRUDActionHandler = oTemplateUtils.oComponentUtils.getCRUDActionHandler();
|
|
167
|
-
|
|
167
|
+
|
|
168
|
+
// Pre-check validation to decide navigation
|
|
169
|
+
var oAppComponent = oController.getOwnerComponent().getAppComponent();
|
|
170
|
+
var oManifestSettings = oAppComponent.getManifest()["sap.ui.generic.app"];
|
|
171
|
+
var bNavigateImmediately = oManifestSettings &&
|
|
172
|
+
oManifestSettings.settings &&
|
|
173
|
+
oManifestSettings.settings.applyButtonNavigatesImmediately;
|
|
174
|
+
if (bNavigateImmediately) {
|
|
175
|
+
oCRUDActionHandler.hasValidationMessageOnDetailsViews().then(function(bHasValidationErrors) {
|
|
176
|
+
if (!bHasValidationErrors) {
|
|
177
|
+
// No frontend errors - navigate immediately
|
|
178
|
+
fnNavigateUp();
|
|
179
|
+
oTemplateUtils.oServices.oApplicationController.synchronizeDraftAsync();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
} else {
|
|
183
|
+
oCRUDActionHandler.handleCRUDScenario(2, fnApplyAndUpImpl.bind(null, oControl));
|
|
184
|
+
}
|
|
168
185
|
}
|
|
169
186
|
|
|
170
187
|
var oDiscardEditHandler; // singleton, initialized on demand
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<Dialog id="actionConfirmationDialog" title="{list>/dialogTitle}" class="sapUiContentPadding" state="Warning" ariaLabelledBy="warningText">
|
|
3
3
|
<content>
|
|
4
4
|
<Text id="warningText" text="{list>/warningText}" />
|
|
5
|
-
<VBox>
|
|
5
|
+
<VBox>
|
|
6
6
|
<List items = "{path: 'list>/aInApplicableItems'}" >
|
|
7
7
|
<items>
|
|
8
8
|
<StandardListItem title = "{list>sKey}" class="sapSmartTemplatesSLIBold" />
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
</VBox>
|
|
17
17
|
</content>
|
|
18
18
|
<beginButton>
|
|
19
|
-
<Button text="{i18n>ST_GENERIC_DIALOG_CONTINUE_BUT}" press="onContinue" visible="true" type="Emphasized"/>
|
|
19
|
+
<Button text="{i18n>ST_GENERIC_DIALOG_CONTINUE_BUT}" press=".onContinue" visible="true" type="Emphasized"/>
|
|
20
20
|
</beginButton>
|
|
21
21
|
<endButton>
|
|
22
|
-
<Button text="{i18n>CANCEL}" press="onCancel"/>
|
|
22
|
+
<Button text="{i18n>CANCEL}" press=".onCancel"/>
|
|
23
23
|
</endButton>
|
|
24
24
|
</Dialog>
|
|
25
25
|
</core:FragmentDefinition>
|