@sapui5/sap.suite.ui.generic.template 1.136.0 → 1.136.1
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/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +2 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +41 -10
- package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n.properties +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/ObjectPage/view/Details.view.xml +1 -1
- package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -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/package.json
CHANGED
|
@@ -1936,6 +1936,7 @@ sap.ui.define([
|
|
|
1936
1936
|
oState.oSectionTitleHandler.adjustSubSectionTitle(oSubSection);
|
|
1937
1937
|
// Add accessible name to the SmartForm in the first subsection if all titles are hidden, because accessible name will not propogate to the form control
|
|
1938
1938
|
oState.oSectionTitleHandler.addAccessibleName(oSubSection);
|
|
1939
|
+
oState.oSectionTitleHandler.manageAccessability(oSubSection);
|
|
1939
1940
|
}
|
|
1940
1941
|
}
|
|
1941
1942
|
|
|
@@ -2353,7 +2354,7 @@ sap.ui.define([
|
|
|
2353
2354
|
|
|
2354
2355
|
oState.oMessageStripHelper = new MessageStripHelper(oMultipleViewsHandler, oController, oTemplateUtils, oBase.state.messageButtonHelper);
|
|
2355
2356
|
oState.oInlineCreationRowsHelper = new InlineCreationRowsHelper(oObjectPage, oTemplateUtils, fnGetSmartTableCreationMode, oController, oState.oMessageStripHelper);
|
|
2356
|
-
oState.oSectionTitleHandler = new SectionTitleHandler(oController, oObjectPage);
|
|
2357
|
+
oState.oSectionTitleHandler = new SectionTitleHandler(oController, oObjectPage, oTemplateUtils);
|
|
2357
2358
|
|
|
2358
2359
|
var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
|
|
2359
2360
|
|
|
@@ -7,25 +7,25 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
7
7
|
var sClassName = "ObjectPage.controller.SectionTitleHandler";
|
|
8
8
|
var oLogger = new FeLogger(sClassName).getLogger();
|
|
9
9
|
|
|
10
|
-
function getMethods(oController, oObjectPage) {
|
|
11
|
-
|
|
10
|
+
function getMethods(oController, oObjectPage, oTemplateUtils) {
|
|
11
|
+
|
|
12
12
|
var oViewPropertiesModel = oController.getOwnerComponent().getModel("_templPrivView");
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
var mSubSectionTitleInfo = Object.create(null);
|
|
15
15
|
|
|
16
16
|
var oAppComponent = oController.getOwnerComponent().getAppComponent();
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
oObjectPage.getSections().forEach(function(oSection){
|
|
19
19
|
var aSubSections = oSection.getSubSections();
|
|
20
20
|
if (aSubSections.length === 1){
|
|
21
21
|
var oSingleSubSection = aSubSections[0];
|
|
22
22
|
var sSubSectionId = oSingleSubSection.getId();
|
|
23
23
|
mSubSectionTitleInfo[sSubSectionId] = {
|
|
24
|
-
isStaticallySingleChild: true
|
|
24
|
+
isStaticallySingleChild: true
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
function fnSetAsTitleOwner(oControl, bIsStandardSection) {
|
|
30
30
|
// If the manifest setting is set, then the title of the section will not be adjusted
|
|
31
31
|
|
|
@@ -48,7 +48,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
48
48
|
break;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
|
|
52
52
|
if (bIsStandardSection && (!oSubSection || oSubSection.getBlocks().concat(oSubSection.getMoreBlocks()).length > 1)){
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
@@ -174,17 +174,48 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
|
|
|
174
174
|
oSmartForm.addAriaLabelledBy(sAnchorBarSectionHeaderId);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
function fnManageAccessability(oFirstSubSection) {
|
|
178
|
+
var oSubSectionInfoObject = oTemplateUtils.oInfoObjectHandler.getControlInformation(oFirstSubSection.getId()),
|
|
179
|
+
oSection = oFirstSubSection.getParent();
|
|
180
|
+
oFirstSubSection.getBlocks().concat(oFirstSubSection.getMoreBlocks())
|
|
181
|
+
.reduce(function(accBlock, currentBlock) {
|
|
182
|
+
if (!currentBlock.getContent || !currentBlock.getContent() || !currentBlock.getContent().length) {
|
|
183
|
+
return accBlock;
|
|
184
|
+
}
|
|
185
|
+
currentBlock.getContent().reduce(function(accContent, currentContent) {
|
|
186
|
+
if (controlHelper.isSmartForm(currentContent)) {
|
|
187
|
+
accContent.push(currentContent); // collect all SubSections SmartForms
|
|
188
|
+
}
|
|
189
|
+
return accContent;
|
|
190
|
+
}, accBlock);
|
|
191
|
+
return accBlock;
|
|
192
|
+
}, [])
|
|
193
|
+
.forEach(function(entry) {
|
|
194
|
+
if (!oSubSectionInfoObject) {
|
|
195
|
+
// Case: header is editable. manifest.json, editableHeaderContent=true
|
|
196
|
+
entry._suggestTitleId(`${oSection.getId()}-title`); // set Section title id that will be used for aria
|
|
197
|
+
return;
|
|
198
|
+
}
|
|
199
|
+
if (entry.getGroups().length === 1 && entry.getGroups()[0].getTitle && !entry.getGroups()[0].getTitle()) {
|
|
200
|
+
// Case: Section -> one SubSection -> one SmartForm -> one Group. Title is not displayed in this case
|
|
201
|
+
entry._suggestTitleId(`${oFirstSubSection.getId()}-headerTitle`); // set title to SubSection title id that will be used for aria
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
177
207
|
// public instance methods
|
|
178
208
|
return {
|
|
179
209
|
setAsTitleOwner: fnSetAsTitleOwner,
|
|
180
210
|
adjustSubSectionTitle: fnAdjustSubSectionTitle,
|
|
181
|
-
addAccessibleName: fnAddAccessibleName
|
|
211
|
+
addAccessibleName: fnAddAccessibleName,
|
|
212
|
+
manageAccessability: fnManageAccessability
|
|
182
213
|
};
|
|
183
214
|
}
|
|
184
215
|
|
|
185
216
|
return BaseObject.extend("sap.suite.ui.generic.template.ObjectPage.controller.SectionTitleHandler", {
|
|
186
|
-
constructor: function(oController, oObjectPage) {
|
|
187
|
-
extend(this, getMethods(oController, oObjectPage));
|
|
217
|
+
constructor: function(oController, oObjectPage, oTemplateUtils) {
|
|
218
|
+
extend(this, getMethods(oController, oObjectPage, oTemplateUtils));
|
|
188
219
|
}
|
|
189
220
|
});
|
|
190
221
|
});
|
|
@@ -184,7 +184,7 @@ NEW_ENTRY_GROUP=New entries
|
|
|
184
184
|
EDIT_BUTTON_DESCRIPTION=Edit:
|
|
185
185
|
|
|
186
186
|
# XACT, 30: Screen reader text for a footer region
|
|
187
|
-
FOOTER_REGION_LABEL_ARIA=Footer
|
|
187
|
+
FOOTER_REGION_LABEL_ARIA=Footer
|
|
188
188
|
|
|
189
189
|
#XTIT, 50: Description for the Navigate Forward keyboard shortcut
|
|
190
190
|
NAVIGATE_FORWARD_KEYBOARD_SHORTCUT_DESC=Navigate Forward
|
|
@@ -950,7 +950,7 @@ sap.ui.define([
|
|
|
950
950
|
* @public
|
|
951
951
|
* @extends sap.ui.core.UIComponent
|
|
952
952
|
* @author SAP SE
|
|
953
|
-
* @version 1.136.
|
|
953
|
+
* @version 1.136.1
|
|
954
954
|
* @name sap.suite.ui.generic.template.lib.AppComponent
|
|
955
955
|
*/
|
|
956
956
|
var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
|
|
@@ -3206,7 +3206,7 @@ sap.ui.define(["sap/ui/base/Object",
|
|
|
3206
3206
|
* @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
|
|
3207
3207
|
* @public
|
|
3208
3208
|
* @extends sap.ui.base.Object
|
|
3209
|
-
* @version 1.136.
|
|
3209
|
+
* @version 1.136.1
|
|
3210
3210
|
* @since 1.30.0
|
|
3211
3211
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3212
3212
|
*/
|