@sapui5/sap.fe.templates 1.121.0 → 1.121.2
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/manifest.json +1 -1
- package/src/sap/fe/templates/ObjectPage/manifest.json +1 -1
- package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +8 -8
- package/src/sap/fe/templates/ObjectPage/view/fragments/SectionFormContent.fragment.xml +0 -1
- package/src/sap/fe/templates/library.js +1 -1
- package/src/sap/fe/templates/ObjectPage/controls/Section.js +0 -37
- package/src/sap/fe/templates/ObjectPage/controls/Section.ts +0 -28
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
-->
|
|
21
21
|
<template:with path="converterContext>header/section" var="headerSection">
|
|
22
22
|
<template:if test="{viewData>/editableHeaderContent}">
|
|
23
|
-
<
|
|
23
|
+
<uxap:ObjectPageSection
|
|
24
24
|
dt:designtime="not-adaptable-visibility"
|
|
25
25
|
id="{headerSection>id}"
|
|
26
26
|
title="{headerSection>title}"
|
|
@@ -28,17 +28,17 @@
|
|
|
28
28
|
visible="{headerSection>visible}"
|
|
29
29
|
titleUppercase="false"
|
|
30
30
|
>
|
|
31
|
-
<
|
|
31
|
+
<uxap:subSections>
|
|
32
32
|
<uxap:ObjectPageSubSection id="fe::EditableHeaderSubSection" title="{headerSection>title}" titleLevel="H4">
|
|
33
33
|
<core:Fragment fragmentName="sap.fe.templates.ObjectPage.view.fragments.EditableHeaderFacet" type="XML" />
|
|
34
34
|
</uxap:ObjectPageSubSection>
|
|
35
|
-
</
|
|
36
|
-
</
|
|
35
|
+
</uxap:subSections>
|
|
36
|
+
</uxap:ObjectPageSection>
|
|
37
37
|
</template:if>
|
|
38
38
|
</template:with>
|
|
39
39
|
<template:with path="converterContext>sections" var="sections">
|
|
40
40
|
<template:repeat list="{sections>}" var="section">
|
|
41
|
-
<
|
|
41
|
+
<uxap:ObjectPageSection
|
|
42
42
|
id="{section>id}"
|
|
43
43
|
title="{section>title}"
|
|
44
44
|
titleLevel="H3"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
visible="{section>visible}"
|
|
48
48
|
class="{= OP.getTitleMergeClass(${section>subSections})}"
|
|
49
49
|
>
|
|
50
|
-
<
|
|
50
|
+
<uxap:subSections>
|
|
51
51
|
<template:repeat list="{section>subSections}" var="subSection">
|
|
52
52
|
<uxap:ObjectPageSubSection
|
|
53
53
|
id="{subSection>id}"
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
</template:if>
|
|
86
86
|
</uxap:ObjectPageSubSection>
|
|
87
87
|
</template:repeat>
|
|
88
|
-
</
|
|
89
|
-
</
|
|
88
|
+
</uxap:subSections>
|
|
89
|
+
</uxap:ObjectPageSection>
|
|
90
90
|
</template:repeat>
|
|
91
91
|
</template:with>
|
|
92
92
|
</core:FragmentDefinition>
|
|
@@ -16,6 +16,5 @@
|
|
|
16
16
|
formContainers="{subSection>formDefinition/formContainers}"
|
|
17
17
|
isVisible="{subSection>formDefinition/isVisible}"
|
|
18
18
|
titleLevel="{= ${section>subSections}.length > 1 ? 'H5' : 'H4'}"
|
|
19
|
-
fallbackAriaLabelForSingleElement="{subSection>title}"
|
|
20
19
|
/>
|
|
21
20
|
</core:FragmentDefinition>
|
|
@@ -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.121.
|
|
39
|
+
version: "1.121.2",
|
|
40
40
|
noLibraryCSS: true
|
|
41
41
|
});
|
|
42
42
|
if (!thisLib.ObjectPage) {
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
|
-
* (c) Copyright 2009-2024 SAP SE. All rights reserved
|
|
4
|
-
*/
|
|
5
|
-
sap.ui.define(["sap/fe/core/helpers/ClassSupport", "sap/uxap/ObjectPageSection"], function (ClassSupport, ObjectPageSection) {
|
|
6
|
-
"use strict";
|
|
7
|
-
|
|
8
|
-
var _dec, _class;
|
|
9
|
-
var defineUI5Class = ClassSupport.defineUI5Class;
|
|
10
|
-
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
|
|
11
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
-
let Section = (_dec = defineUI5Class("sap.fe.templates.ObjectPage.controls.Section"), _dec(_class = /*#__PURE__*/function (_ObjectPageSection) {
|
|
13
|
-
_inheritsLoose(Section, _ObjectPageSection);
|
|
14
|
-
function Section() {
|
|
15
|
-
return _ObjectPageSection.apply(this, arguments) || this;
|
|
16
|
-
}
|
|
17
|
-
var _proto = Section.prototype;
|
|
18
|
-
/**
|
|
19
|
-
* Enhances the setTitleVisible function to set visibility of underlying form element label.
|
|
20
|
-
* @param titleVisible Visibility of title
|
|
21
|
-
*/
|
|
22
|
-
_proto.setTitleVisible = function setTitleVisible(titleVisible) {
|
|
23
|
-
_ObjectPageSection.prototype.setTitleVisible.call(this, titleVisible);
|
|
24
|
-
const subSections = this.getAggregation("subSections");
|
|
25
|
-
subSections === null || subSections === void 0 ? void 0 : subSections.forEach(subSection => {
|
|
26
|
-
var _subSection$getBlocks, _subSection$getBlocks2;
|
|
27
|
-
const content = (_subSection$getBlocks = subSection.getBlocks()[0]) === null || _subSection$getBlocks === void 0 ? void 0 : (_subSection$getBlocks2 = _subSection$getBlocks.getContent) === null || _subSection$getBlocks2 === void 0 ? void 0 : _subSection$getBlocks2.call(_subSection$getBlocks);
|
|
28
|
-
if (subSection.getBlocks().length === 1 && content !== null && content !== void 0 && content.isA("sap.fe.macros.form.FormAPI")) {
|
|
29
|
-
content === null || content === void 0 ? void 0 : content.enhanceFormContainers(this.getTitleVisible());
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
return Section;
|
|
34
|
-
}(ObjectPageSection)) || _class);
|
|
35
|
-
return Section;
|
|
36
|
-
}, false);
|
|
37
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJTZWN0aW9uIiwiZGVmaW5lVUk1Q2xhc3MiLCJzZXRUaXRsZVZpc2libGUiLCJ0aXRsZVZpc2libGUiLCJzdWJTZWN0aW9ucyIsImdldEFnZ3JlZ2F0aW9uIiwiZm9yRWFjaCIsInN1YlNlY3Rpb24iLCJjb250ZW50IiwiZ2V0QmxvY2tzIiwiZ2V0Q29udGVudCIsImxlbmd0aCIsImlzQSIsImVuaGFuY2VGb3JtQ29udGFpbmVycyIsImdldFRpdGxlVmlzaWJsZSIsIk9iamVjdFBhZ2VTZWN0aW9uIl0sInNvdXJjZVJvb3QiOiIuIiwic291cmNlcyI6WyJTZWN0aW9uLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGRlZmluZVVJNUNsYXNzIH0gZnJvbSBcInNhcC9mZS9jb3JlL2hlbHBlcnMvQ2xhc3NTdXBwb3J0XCI7XG5pbXBvcnQgT2JqZWN0UGFnZVNlY3Rpb24gZnJvbSBcInNhcC91eGFwL09iamVjdFBhZ2VTZWN0aW9uXCI7XG5pbXBvcnQgdHlwZSBPYmplY3RQYWdlU3ViU2VjdGlvbiBmcm9tIFwic2FwL3V4YXAvT2JqZWN0UGFnZVN1YlNlY3Rpb25cIjtcbmltcG9ydCB0eXBlIFN1YlNlY3Rpb25CbG9jayBmcm9tIFwiLi9TdWJTZWN0aW9uQmxvY2tcIjtcblxudH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Support";
|
|
2
|
-
import ObjectPageSection from "sap/uxap/ObjectPageSection";
|
|
3
|
-
import type ObjectPageSubSection from "sap/uxap/ObjectPageSubSection";
|
|
4
|
-
import type SubSectionBlock from "./SubSectionBlock";
|
|
5
|
-
|
|
6
|
-
type Block = SubSectionBlock & {
|
|
7
|
-
getContent: Function;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
@defineUI5Class("sap.fe.templates.ObjectPage.controls.Section")
|
|
11
|
-
class Section extends ObjectPageSection {
|
|
12
|
-
/**
|
|
13
|
-
* Enhances the setTitleVisible function to set visibility of underlying form element label.
|
|
14
|
-
* @param titleVisible Visibility of title
|
|
15
|
-
*/
|
|
16
|
-
setTitleVisible(titleVisible: boolean): void {
|
|
17
|
-
super.setTitleVisible(titleVisible);
|
|
18
|
-
const subSections = this.getAggregation("subSections") as ObjectPageSubSection[];
|
|
19
|
-
subSections?.forEach((subSection) => {
|
|
20
|
-
const content = (subSection.getBlocks()[0] as Block)?.getContent?.();
|
|
21
|
-
if (subSection.getBlocks().length === 1 && content?.isA("sap.fe.macros.form.FormAPI")) {
|
|
22
|
-
content?.enhanceFormContainers(this.getTitleVisible());
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export default Section;
|