@sapui5/sap.fe.templates 1.95.0 → 1.96.4
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/fe/templates/.library +1 -1
- package/src/sap/fe/templates/AnalyticalListPage/Component.js +1 -1
- package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +1 -1
- package/src/sap/fe/templates/ListComponent.js +1 -1
- package/src/sap/fe/templates/ListReport/Component.js +1 -1
- package/src/sap/fe/templates/ListReport/ExtensionAPI.js +2 -2
- package/src/sap/fe/templates/ListReport/ListReport.view.xml +2 -1
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +62 -49
- package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +7 -3
- package/src/sap/fe/templates/ListReport/overrides/Share.js +37 -22
- package/src/sap/fe/templates/ListReport/overrides/ViewState.js +110 -25
- package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +23 -3
- package/src/sap/fe/templates/ObjectPage/Component.js +1 -7
- package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +1 -1
- package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +2 -2
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +90 -113
- package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +1 -1
- package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +1 -1
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +2 -2
- package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +1 -1
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +1 -1
- package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +1 -1
- package/src/sap/fe/templates/ObjectPage/overrides/Share.js +87 -63
- package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +7 -3
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +14 -11
- package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +26 -12
- package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +1 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +1 -4
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionFormContent.fragment.xml +1 -0
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionMoreFormContent.fragment.xml +1 -0
- package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +110 -8
- package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +35 -1
- package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +29 -22
- package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +1 -1
- package/src/sap/fe/templates/RootContainer/view/Fcl.view.xml +2 -1
- package/src/sap/fe/templates/RootContainer/view/NavContainer.view.xml +1 -1
- package/src/sap/fe/templates/TableScroller.js +1 -1
- package/src/sap/fe/templates/controls/Chart.fragment.xml +6 -2
- package/src/sap/fe/templates/library.js +2 -2
- package/src/sap/fe/templates/messagebundle.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ar.properties +1 -1
- package/src/sap/fe/templates/messagebundle_bg.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ca.properties +1 -1
- package/src/sap/fe/templates/messagebundle_cs.properties +1 -1
- package/src/sap/fe/templates/messagebundle_cy.properties +1 -1
- package/src/sap/fe/templates/messagebundle_da.properties +1 -1
- package/src/sap/fe/templates/messagebundle_de.properties +1 -1
- package/src/sap/fe/templates/messagebundle_el.properties +1 -1
- package/src/sap/fe/templates/messagebundle_en.properties +1 -1
- package/src/sap/fe/templates/messagebundle_en_GB.properties +1 -1
- package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +1 -1
- package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +1 -1
- package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +1 -1
- package/src/sap/fe/templates/messagebundle_es.properties +1 -1
- package/src/sap/fe/templates/messagebundle_es_MX.properties +1 -1
- package/src/sap/fe/templates/messagebundle_et.properties +1 -1
- package/src/sap/fe/templates/messagebundle_fi.properties +1 -1
- package/src/sap/fe/templates/messagebundle_fr.properties +1 -1
- package/src/sap/fe/templates/messagebundle_fr_CA.properties +2 -2
- package/src/sap/fe/templates/messagebundle_hi.properties +1 -1
- package/src/sap/fe/templates/messagebundle_hr.properties +2 -2
- package/src/sap/fe/templates/messagebundle_hu.properties +1 -1
- package/src/sap/fe/templates/messagebundle_id.properties +1 -1
- package/src/sap/fe/templates/messagebundle_it.properties +1 -1
- package/src/sap/fe/templates/messagebundle_iw.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ja.properties +1 -1
- package/src/sap/fe/templates/messagebundle_kk.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ko.properties +1 -1
- package/src/sap/fe/templates/messagebundle_lt.properties +1 -1
- package/src/sap/fe/templates/messagebundle_lv.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ms.properties +1 -1
- package/src/sap/fe/templates/messagebundle_nl.properties +1 -1
- package/src/sap/fe/templates/messagebundle_no.properties +2 -2
- package/src/sap/fe/templates/messagebundle_pl.properties +1 -1
- package/src/sap/fe/templates/messagebundle_pt.properties +1 -1
- package/src/sap/fe/templates/messagebundle_pt_PT.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ro.properties +1 -1
- package/src/sap/fe/templates/messagebundle_ru.properties +1 -1
- package/src/sap/fe/templates/messagebundle_sh.properties +1 -1
- package/src/sap/fe/templates/messagebundle_sk.properties +1 -1
- package/src/sap/fe/templates/messagebundle_sl.properties +1 -1
- package/src/sap/fe/templates/messagebundle_sv.properties +1 -1
- package/src/sap/fe/templates/messagebundle_th.properties +1 -1
- package/src/sap/fe/templates/messagebundle_tr.properties +1 -1
- package/src/sap/fe/templates/messagebundle_uk.properties +1 -1
- package/src/sap/fe/templates/messagebundle_vi.properties +1 -1
- package/src/sap/fe/templates/messagebundle_zh_CN.properties +1 -1
- package/src/sap/fe/templates/messagebundle_zh_TW.properties +1 -1
- package/src/sap/fe/templates/RootContainer/view/PlaceholderLR.view.xml +0 -617
- package/src/sap/fe/templates/RootContainer/view/PlaceholderOP.view.xml +0 -588
- package/src/sap/fe/templates/controls/OverflowToolbarButtonHover.js +0 -25
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(
|
|
6
6
|
[
|
|
@@ -68,12 +68,6 @@ sap.ui.define(
|
|
|
68
68
|
prepareOnEdit: {
|
|
69
69
|
type: "boolean",
|
|
70
70
|
defaultValue: false
|
|
71
|
-
},
|
|
72
|
-
/**
|
|
73
|
-
* Temporary fix to avoid activating all bindings when a message doesn't have a controlId at first
|
|
74
|
-
*/
|
|
75
|
-
_disableLazyLoadingForMessages: {
|
|
76
|
-
type: "boolean"
|
|
77
71
|
}
|
|
78
72
|
},
|
|
79
73
|
library: "sap.fe.templates",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["sap/fe/core/ExtensionAPI", "sap/fe/core/CommonUtils", "sap/fe/core/converters/helpers/ID"], function(
|
|
6
6
|
ExtensionAPI,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
</FlexBox>
|
|
89
89
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
90
90
|
<Title
|
|
91
|
-
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
91
|
+
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
92
92
|
wrapping="true"
|
|
93
93
|
/>
|
|
94
94
|
</template:with>
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.HeaderImage" type="XML" />
|
|
100
100
|
<template:with path="entityType>@com.sap.vocabularies.UI.v1.HeaderInfo" var="headerInfo">
|
|
101
101
|
<Title
|
|
102
|
-
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath})}"
|
|
102
|
+
text="{= OPTemplating.getExpressionForTitle(${headerInfo>@@UI.getConverterContext}, ${viewData>}, ${fullContextPath>@@UI.getDataModelObjectPath}, ${entitySet>@com.sap.vocabularies.Common.v1.DraftRoot})}"
|
|
103
103
|
wrapping="true"
|
|
104
104
|
/>
|
|
105
105
|
</template:with>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(
|
|
6
6
|
[
|
|
@@ -112,7 +112,7 @@ sap.ui.define(
|
|
|
112
112
|
getNavigationMode: function() {
|
|
113
113
|
var bIsStickyEditMode =
|
|
114
114
|
this._oView.getController().getStickyEditMode && this._oView.getController().getStickyEditMode();
|
|
115
|
-
return bIsStickyEditMode ? "explace" :
|
|
115
|
+
return bIsStickyEditMode ? "explace" : undefined;
|
|
116
116
|
}
|
|
117
117
|
}),
|
|
118
118
|
viewState: ViewState.override(ViewStateOverrides),
|
|
@@ -295,7 +295,9 @@ sap.ui.define(
|
|
|
295
295
|
// In IconTabBar mode keep the second section bound if there is an editable header and we are switching to display mode
|
|
296
296
|
if (iSkip < 1 || (bUseIconTabBar && (iSection > 1 || (iSection === 1 && !bEditableHeader && !bIsInEditMode)))) {
|
|
297
297
|
var oSubSection = aSubSections[iSubSection];
|
|
298
|
-
oSubSection.
|
|
298
|
+
if (oSubSection.data().isVisibilityDynamic !== "true") {
|
|
299
|
+
oSubSection.setBindingContext(null);
|
|
300
|
+
}
|
|
299
301
|
}
|
|
300
302
|
}
|
|
301
303
|
}
|
|
@@ -315,7 +317,7 @@ sap.ui.define(
|
|
|
315
317
|
var aActions = oObjectPage.getHeaderTitle() && oObjectPage.getHeaderTitle().getActions();
|
|
316
318
|
if (aActions && aActions.length) {
|
|
317
319
|
oFirstClickableElement = aActions.find(function(oAction) {
|
|
318
|
-
return oAction.getVisible();
|
|
320
|
+
return oAction.getVisible() && oAction.getEnabled();
|
|
319
321
|
});
|
|
320
322
|
}
|
|
321
323
|
return oFirstClickableElement;
|
|
@@ -354,37 +356,28 @@ sap.ui.define(
|
|
|
354
356
|
return undefined;
|
|
355
357
|
},
|
|
356
358
|
|
|
357
|
-
|
|
358
|
-
|
|
359
|
+
_updateFocusInEditMode: function(aSubSections) {
|
|
360
|
+
var oObjectPage = this.byId("fe::ObjectPage");
|
|
361
|
+
|
|
362
|
+
var oMandatoryField = this._getFirstEmptyMandatoryFieldFromSubSection(aSubSections);
|
|
363
|
+
var oFieldToFocus;
|
|
364
|
+
if (oMandatoryField) {
|
|
365
|
+
oFieldToFocus = oMandatoryField.content.getContentEdit()[0];
|
|
366
|
+
} else {
|
|
367
|
+
oFieldToFocus = oObjectPage._getFirstEditableInput() || this._getFirstClickableElement(oObjectPage);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
if (oFieldToFocus) {
|
|
371
|
+
setTimeout(function() {
|
|
372
|
+
// We set the focus in a timeeout, otherwise the focus sometimes goes to the TabBar
|
|
373
|
+
oFieldToFocus.focus();
|
|
374
|
+
}, 0);
|
|
375
|
+
}
|
|
359
376
|
},
|
|
360
377
|
|
|
361
378
|
_handleSubSectionEnteredViewPort: function(oEvent) {
|
|
362
379
|
var oSubSection = oEvent.getParameter("subSection");
|
|
363
|
-
var oInternalModelContext = this.getView().getBindingContext("internal");
|
|
364
380
|
oSubSection.setBindingContext(undefined);
|
|
365
|
-
var oObjectPage = this.byId("fe::ObjectPage");
|
|
366
|
-
if (oObjectPage.getModel("ui").getProperty("/editMode") !== "Display") {
|
|
367
|
-
if (
|
|
368
|
-
this.getView().getViewData().sectionLayout === "Tabs" &&
|
|
369
|
-
this.initialTab.value === false &&
|
|
370
|
-
oInternalModelContext.getProperty("errorNavigationSectionFlag") === false
|
|
371
|
-
) {
|
|
372
|
-
var oFieldToFocus = this._getFirstEmptyMandatoryFieldFromSubSection([oSubSection]);
|
|
373
|
-
if (oFieldToFocus) {
|
|
374
|
-
oFieldToFocus.content.getContentEdit()[0].focus();
|
|
375
|
-
} else {
|
|
376
|
-
var oFirstEditableInput = oObjectPage._getFirstEditableInput();
|
|
377
|
-
if (oFirstEditableInput) {
|
|
378
|
-
oFirstEditableInput.focus();
|
|
379
|
-
} else {
|
|
380
|
-
var oFirstClickableElement = this._getFirstClickableElement(oObjectPage);
|
|
381
|
-
if (oFirstClickableElement) {
|
|
382
|
-
oFirstClickableElement.focus();
|
|
383
|
-
}
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
381
|
},
|
|
389
382
|
|
|
390
383
|
_onBackNavigationInDraft: function(oContext) {
|
|
@@ -434,7 +427,6 @@ sap.ui.define(
|
|
|
434
427
|
}
|
|
435
428
|
}
|
|
436
429
|
// Workaround ends here!!
|
|
437
|
-
TableUtils.getSemanticTargetsFromTable(that, oTable);
|
|
438
430
|
|
|
439
431
|
// Update 'enabled' property of DataFieldForAction buttons on table toolbar
|
|
440
432
|
// The same is also performed on Table selectionChange event
|
|
@@ -563,92 +555,61 @@ sap.ui.define(
|
|
|
563
555
|
},
|
|
564
556
|
onPageReady: function(mParameters) {
|
|
565
557
|
// Apply app state only after the page is ready with the first section selected
|
|
566
|
-
function getVisibleSections(oObjectPage) {
|
|
567
|
-
var aVisibleSections;
|
|
568
|
-
var aSections = oObjectPage.getSections();
|
|
569
|
-
if (aSections && aSections.length) {
|
|
570
|
-
aVisibleSections = aSections.filter(function(oSection) {
|
|
571
|
-
return oSection.getVisible() === true;
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
return aVisibleSections;
|
|
575
|
-
}
|
|
576
558
|
var that = this;
|
|
577
|
-
var
|
|
578
|
-
var
|
|
559
|
+
var oView = this.getView();
|
|
560
|
+
var oInternalModelContext = oView.getBindingContext("internal");
|
|
561
|
+
var oBindingContext = oView.getBindingContext();
|
|
579
562
|
//Show popup while navigating back from object page in case of draft
|
|
580
563
|
if (oBindingContext) {
|
|
581
564
|
var bIsStickyMode = ModelHelper.isStickySessionSupported(oBindingContext.getModel().getMetaModel());
|
|
582
565
|
if (!bIsStickyMode) {
|
|
583
|
-
var oAppComponent = CommonUtils.getAppComponent(
|
|
566
|
+
var oAppComponent = CommonUtils.getAppComponent(oView);
|
|
584
567
|
oAppComponent.getShellServices().setBackNavigation(that._onBackNavigationInDraft.bind(that, oBindingContext));
|
|
585
568
|
}
|
|
586
569
|
}
|
|
587
570
|
this.getAppComponent()
|
|
588
571
|
.getAppStateHandler()
|
|
589
572
|
.applyAppState();
|
|
590
|
-
var oLastFocusedControl = mParameters.lastFocusedControl;
|
|
591
|
-
if (oLastFocusedControl && oLastFocusedControl.controlId && oLastFocusedControl.focusInfo) {
|
|
592
|
-
var oView = this.getView();
|
|
593
|
-
var oFocusControl = oView.byId(oLastFocusedControl.controlId);
|
|
594
|
-
if (oFocusControl) {
|
|
595
|
-
oFocusControl.applyFocusInfo(oLastFocusedControl.focusInfo);
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
var oObjectPage = this.byId("fe::ObjectPage");
|
|
600
|
-
// set the focus to the first action button, or to the first editable input if in editable mode
|
|
601
|
-
var isInDisplayMode = oObjectPage.getModel("ui").getProperty("/editMode") === "Display";
|
|
602
|
-
var oFirstClickableElement;
|
|
603
|
-
var aVisibleSections = getVisibleSections(oObjectPage);
|
|
604
573
|
|
|
605
|
-
if (
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
//Focus on first mandatory empty field
|
|
574
|
+
if (mParameters.forceFocus) {
|
|
575
|
+
var oObjectPage = this.byId("fe::ObjectPage");
|
|
576
|
+
// set the focus to the first action button, or to the first editable input if in editable mode
|
|
577
|
+
var isInDisplayMode = oObjectPage.getModel("ui").getProperty("/editMode") === "Display";
|
|
578
|
+
var aVisibleSections = oObjectPage.getSections().filter(function(oSection) {
|
|
579
|
+
return oSection.getVisible() === true;
|
|
580
|
+
});
|
|
581
|
+
// Select the first visible section
|
|
614
582
|
oObjectPage.setSelectedSection(aVisibleSections[0].getId());
|
|
615
|
-
if (
|
|
616
|
-
this.getView().getViewData().sectionLayout === "Page" ||
|
|
617
|
-
(this.getView().getViewData().sectionLayout === "Tabs" && this.initialTab.value === true)
|
|
618
|
-
) {
|
|
619
|
-
var oFieldToFocus;
|
|
620
|
-
var aSubSections = [];
|
|
621
|
-
for (var section = 0; section < aVisibleSections.length; section++) {
|
|
622
|
-
aSubSections = aVisibleSections[section].getSubSections();
|
|
623
|
-
oFieldToFocus = this._getFirstEmptyMandatoryFieldFromSubSection(aSubSections);
|
|
624
|
-
if (oFieldToFocus) {
|
|
625
|
-
oFieldToFocus.content.getContentEdit()[0].focus();
|
|
626
|
-
break;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
583
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
584
|
+
if (isInDisplayMode) {
|
|
585
|
+
var oFirstClickableElement = this._getFirstClickableElement(oObjectPage);
|
|
586
|
+
if (oFirstClickableElement) {
|
|
587
|
+
oFirstClickableElement.focus();
|
|
588
|
+
}
|
|
589
|
+
} else {
|
|
590
|
+
var aVisibleSubSections;
|
|
591
|
+
if (oView.getViewData().sectionLayout === "Tabs") {
|
|
592
|
+
// In a tabbed layout, only the subsections of the selected section are visible on the screen
|
|
593
|
+
aVisibleSubSections = aVisibleSections[0].getSubSections();
|
|
636
594
|
} else {
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
595
|
+
// In a paged layout, all subsections of the visible sections are visible on the screen
|
|
596
|
+
aVisibleSubSections = aVisibleSections
|
|
597
|
+
.map(function(oSection) {
|
|
598
|
+
return oSection.getSubSections();
|
|
599
|
+
})
|
|
600
|
+
.flat();
|
|
641
601
|
}
|
|
602
|
+
this._updateFocusInEditMode(aVisibleSubSections);
|
|
642
603
|
}
|
|
643
|
-
this.initialTab.value = false;
|
|
644
604
|
}
|
|
605
|
+
|
|
645
606
|
oInternalModelContext.setProperty("errorNavigationSectionFlag", false);
|
|
646
607
|
this._checkDataPointTitleForExternalNavigation();
|
|
647
608
|
},
|
|
648
609
|
/**
|
|
649
|
-
* Get
|
|
610
|
+
* Get the status of edit mode for sticky session.
|
|
650
611
|
*
|
|
651
|
-
* @returns {boolean}
|
|
612
|
+
* @returns {boolean} The status of edit mode for sticky session
|
|
652
613
|
*
|
|
653
614
|
*
|
|
654
615
|
*/
|
|
@@ -806,18 +767,19 @@ sap.ui.define(
|
|
|
806
767
|
);
|
|
807
768
|
}
|
|
808
769
|
});
|
|
809
|
-
return Promise.all(aWaitCreateDocuments)
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
.saveDocument(oContext, mParameters)
|
|
816
|
-
|
|
817
|
-
|
|
770
|
+
return Promise.all(aWaitCreateDocuments)
|
|
771
|
+
.then(function(aBindings) {
|
|
772
|
+
var mParameters = {
|
|
773
|
+
bExecuteSideEffectsOnError: bExecuteSideEffectsOnError,
|
|
774
|
+
bindings: aBindings
|
|
775
|
+
};
|
|
776
|
+
return that.editFlow.saveDocument(oContext, mParameters).catch(that._showMessagePopover.bind(that));
|
|
777
|
+
})
|
|
778
|
+
.finally(function() {
|
|
779
|
+
if (BusyLocker.isLocked(oModel)) {
|
|
818
780
|
BusyLocker.unlock(oModel);
|
|
819
|
-
}
|
|
820
|
-
|
|
781
|
+
}
|
|
782
|
+
});
|
|
821
783
|
},
|
|
822
784
|
|
|
823
785
|
_cancelDocument: function(oContext, mParameters) {
|
|
@@ -1072,7 +1034,7 @@ sap.ui.define(
|
|
|
1072
1034
|
var oTitleHierarchyCache = oRootViewController.getTitleHierarchyCache();
|
|
1073
1035
|
var pWaitForTitleHiearchyInfo;
|
|
1074
1036
|
var sParameterPath = oMetaModel.getMetaPath(sPath);
|
|
1075
|
-
var bResultContext = oMetaModel.
|
|
1037
|
+
var bResultContext = oMetaModel.getObject(sParameterPath + "/@com.sap.vocabularies.Common.v1.ResultContext");
|
|
1076
1038
|
if (bResultContext) {
|
|
1077
1039
|
// We dont need to create a breadcrumb for Parameter path
|
|
1078
1040
|
iSkipParameterized = 1;
|
|
@@ -1300,7 +1262,8 @@ sap.ui.define(
|
|
|
1300
1262
|
.getModel()
|
|
1301
1263
|
.getMetaModel()
|
|
1302
1264
|
.getMetaPath(oDataPointOrChartBindingContext.getPath()),
|
|
1303
|
-
aNavigationData = oController._getChartContextData(oDataPointOrChartBindingContext, sCollectionPath)
|
|
1265
|
+
aNavigationData = oController._getChartContextData(oDataPointOrChartBindingContext, sCollectionPath),
|
|
1266
|
+
additionalNavigationParameters;
|
|
1304
1267
|
|
|
1305
1268
|
aNavigationData = aNavigationData.map(function(oNavigationData) {
|
|
1306
1269
|
return {
|
|
@@ -1308,10 +1271,18 @@ sap.ui.define(
|
|
|
1308
1271
|
metaPath: sMetaPath + (sCollectionPath ? "/" + sCollectionPath : "")
|
|
1309
1272
|
};
|
|
1310
1273
|
});
|
|
1274
|
+
if (oTargetInfo && oTargetInfo.parameters) {
|
|
1275
|
+
var oParams =
|
|
1276
|
+
oTargetInfo.parameters && oController._intentBasedNavigation.getOutboundParams(oTargetInfo.parameters);
|
|
1277
|
+
if (Object.keys(oParams).length > 0) {
|
|
1278
|
+
additionalNavigationParameters = oParams;
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1311
1281
|
if (oTargetInfo && oTargetInfo.semanticObject && oTargetInfo.action) {
|
|
1312
1282
|
oController._intentBasedNavigation.navigate(oTargetInfo.semanticObject, oTargetInfo.action, {
|
|
1313
1283
|
navigationContexts: aNavigationData,
|
|
1314
|
-
semanticObjectMapping: aSemanticObjectMapping
|
|
1284
|
+
semanticObjectMapping: aSemanticObjectMapping,
|
|
1285
|
+
additionalNavigationParameters: additionalNavigationParameters
|
|
1315
1286
|
});
|
|
1316
1287
|
}
|
|
1317
1288
|
},
|
|
@@ -1339,6 +1310,17 @@ sap.ui.define(
|
|
|
1339
1310
|
//will be called always when we click on a section tab
|
|
1340
1311
|
this.getExtensionAPI().updateAppState();
|
|
1341
1312
|
this.bSectionNavigated = true;
|
|
1313
|
+
|
|
1314
|
+
var oInternalModelContext = this.getView().getBindingContext("internal");
|
|
1315
|
+
var oObjectPage = this.byId("fe::ObjectPage");
|
|
1316
|
+
if (
|
|
1317
|
+
oObjectPage.getModel("ui").getProperty("/editMode") !== "Display" &&
|
|
1318
|
+
this.getView().getViewData().sectionLayout === "Tabs" &&
|
|
1319
|
+
oInternalModelContext.getProperty("errorNavigationSectionFlag") === false
|
|
1320
|
+
) {
|
|
1321
|
+
var oSubSection = oEvent.getParameter("subSection");
|
|
1322
|
+
this._updateFocusInEditMode([oSubSection]);
|
|
1323
|
+
}
|
|
1342
1324
|
},
|
|
1343
1325
|
onVariantSelected: function(oEvent) {
|
|
1344
1326
|
this.getExtensionAPI().updateAppState();
|
|
@@ -1394,11 +1376,6 @@ sap.ui.define(
|
|
|
1394
1376
|
onChartSelectionChanged: function(oEvent) {
|
|
1395
1377
|
ChartRuntime.fnUpdateChart(oEvent);
|
|
1396
1378
|
}
|
|
1397
|
-
},
|
|
1398
|
-
formatters: {
|
|
1399
|
-
compareTitleFromTableAndTab: function(headerVisible, tableTitle, tabTitle) {
|
|
1400
|
-
return this.commonFormatters.compareTitleFromTableAndTab(headerVisible, tableTitle, tabTitle, this);
|
|
1401
|
-
}
|
|
1402
1379
|
}
|
|
1403
1380
|
});
|
|
1404
1381
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
sap.ui.define(["sap/uxap/BlockBase"], function(BlockBase) {
|
|
@@ -9,7 +9,7 @@ sap.ui.define(["sap/uxap/BlockBase"], function(BlockBase) {
|
|
|
9
9
|
var SubSectionBlock = BlockBase.extend("sap.fe.templates.ObjectPage.controls.SubSectionBlock", {
|
|
10
10
|
metadata: {
|
|
11
11
|
properties: {
|
|
12
|
-
|
|
12
|
+
columnLayout: { type: "sap.uxap.BlockBaseColumnLayout", group: "Behavior", defaultValue: 4 }
|
|
13
13
|
},
|
|
14
14
|
aggregations: {
|
|
15
15
|
content: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["sap/fe/core/CommonUtils", "sap/fe/navigation/SelectionVariant"], function(CommonUtils, SelectionVariant) {
|
|
6
6
|
"use strict";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* SAPUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
sap.ui.define(["sap/fe/core/CommonUtils", "sap/fe/navigation/SelectionVariant"], function(CommonUtils, SelectionVariant) {
|
|
6
6
|
"use strict";
|