@sapui5/sap.fe.templates 1.142.11 → 1.142.13
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/manifest.json +1 -1
- package/src/sap/fe/templates/ListReport/ListReportController.controller.js +9 -1
- package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +8 -0
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.js +4 -1
- package/src/sap/fe/templates/ListReport/controls/MultipleModeControl.ts +3 -0
- package/src/sap/fe/templates/ListReport/manifest.json +1 -1
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +17 -4
- package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +17 -2
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.js +4 -1
- package/src/sap/fe/templates/ObjectPage/ObjectPageTemplating.ts +3 -0
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +18 -2
- package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.ts +26 -0
- package/src/sap/fe/templates/ObjectPage/manifest.json +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +2 -2
- package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +4 -4
- package/src/sap/fe/templates/library.js +1 -1
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { aggregation, defineUI5Class, property } from "sap/fe/base/ClassSupport";
|
|
2
|
+
import CommonUtils from "sap/fe/core/CommonUtils";
|
|
3
|
+
import { CreationMode, type ObjectPageManifestSettings } from "sap/fe/core/converters/ManifestSettings";
|
|
4
|
+
import type SubSection from "sap/fe/macros/controls/section/SubSection";
|
|
5
|
+
import type TableAPI from "sap/fe/macros/Table";
|
|
2
6
|
import type ManagedObject from "sap/ui/base/ManagedObject";
|
|
3
7
|
import type Control from "sap/ui/core/Control";
|
|
4
8
|
import BlockBase from "sap/uxap/BlockBase";
|
|
@@ -33,6 +37,28 @@ class SubSectionBlock extends BlockBase {
|
|
|
33
37
|
}
|
|
34
38
|
}
|
|
35
39
|
|
|
40
|
+
onAfterRendering(oEvent: jQuery.Event): void | undefined {
|
|
41
|
+
const subSection = this._oParentObjectPageSubSection as unknown as SubSection;
|
|
42
|
+
const subSectionBlocks = subSection
|
|
43
|
+
.getBlocks()
|
|
44
|
+
.filter((block) => block.isA("sap.fe.templates.ObjectPage.controls.SubSectionBlock"));
|
|
45
|
+
if (subSectionBlocks.length === 1 && this.content && this.content.isA<TableAPI>("sap.fe.macros.Table")) {
|
|
46
|
+
const view = CommonUtils.getTargetView(this);
|
|
47
|
+
const sectionLayout = (view?.getViewData() as ObjectPageManifestSettings)?.sectionLayout;
|
|
48
|
+
const tableControl = this.content.getTableDefinition().control;
|
|
49
|
+
|
|
50
|
+
if (
|
|
51
|
+
tableControl.rowCountMode === "Auto" &&
|
|
52
|
+
// Exclude CreationRow mode unless sectionLayout is Tabs: the fit-container style creates whitespace in the subsection in display mode when CreationRow is used in TableCreationOptions
|
|
53
|
+
(tableControl.creationMode !== CreationMode.CreationRow || sectionLayout === "Tabs") &&
|
|
54
|
+
!subSection.hasStyleClass("sapUxAPObjectPageSubSectionFitContainer")
|
|
55
|
+
) {
|
|
56
|
+
subSection.addStyleClass("sapUxAPObjectPageSubSectionFitContainer");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return super.onAfterRendering(oEvent);
|
|
60
|
+
}
|
|
61
|
+
|
|
36
62
|
setMode(sMode: string): void {
|
|
37
63
|
this.setProperty("mode", sMode);
|
|
38
64
|
// OPTIONAL: this.internalModel.setProperty("/mode", sMode);
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
>
|
|
41
41
|
<template:if test="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}">
|
|
42
42
|
<f:title>
|
|
43
|
-
<core:Title level="
|
|
43
|
+
<core:Title level="H3" text="{sap.fe.i18n>T_COMMON_OBJECT_PAGE_OBJECT_INFO}" />
|
|
44
44
|
</f:title>
|
|
45
45
|
</template:if>
|
|
46
46
|
<f:dependents>
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
>
|
|
150
150
|
<template:if test="{subSection>title}">
|
|
151
151
|
<f:title>
|
|
152
|
-
<core:Title level="
|
|
152
|
+
<core:Title level="H3" text="{subSection>title}" />
|
|
153
153
|
</f:title>
|
|
154
154
|
</template:if>
|
|
155
155
|
<f:formElements>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
dt:designtime="not-adaptable-visibility"
|
|
25
25
|
id="{headerSection>id}"
|
|
26
26
|
title="{headerSection>title}"
|
|
27
|
-
titleLevel="
|
|
27
|
+
titleLevel="H2"
|
|
28
28
|
visible="{headerSection>visible}"
|
|
29
29
|
titleUppercase="false"
|
|
30
30
|
onSectionLoaded="{section>onSectionLoaded}"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
retrieveStateHandler="{headerSection>retrieveState}"
|
|
33
33
|
>
|
|
34
34
|
<macroControl:subSections>
|
|
35
|
-
<macroSectionContent:SubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}" titleLevel="
|
|
35
|
+
<macroSectionContent:SubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}" titleLevel="H3">
|
|
36
36
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.EditableHeaderFacet" type="XML" />
|
|
37
37
|
</macroSectionContent:SubSection>
|
|
38
38
|
</macroControl:subSections>
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<macroControl:Section
|
|
45
45
|
id="{section>id}"
|
|
46
46
|
title="{section>title}"
|
|
47
|
-
titleLevel="
|
|
47
|
+
titleLevel="H2"
|
|
48
48
|
showTitle="{section>showTitle}"
|
|
49
49
|
titleUppercase="false"
|
|
50
50
|
visible="{section>visible}"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
<macroSectionContent:SubSection
|
|
59
59
|
id="{subSection>id}"
|
|
60
60
|
title="{subSection>title}"
|
|
61
|
-
titleLevel="
|
|
61
|
+
titleLevel="H3"
|
|
62
62
|
showTitle="{subSection>showSubSectionTitle}"
|
|
63
63
|
visible="{subSection>visible}"
|
|
64
64
|
class="{subSection>class}"
|
|
@@ -36,7 +36,7 @@ sap.ui.define(["sap/f/library", "sap/fe/core/library", "sap/fe/macros/library",
|
|
|
36
36
|
controls: [],
|
|
37
37
|
elements: [],
|
|
38
38
|
// eslint-disable-next-line no-template-curly-in-string
|
|
39
|
-
version: "1.142.
|
|
39
|
+
version: "1.142.13",
|
|
40
40
|
noLibraryCSS: true
|
|
41
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
42
42
|
});
|