@sapui5/sap.suite.ui.generic.template 1.139.0 → 1.139.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.
Files changed (20) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/generic/template/.library +1 -1
  3. package/src/sap/suite/ui/generic/template/AnalyticalListPage/manifest.json +1 -1
  4. package/src/sap/suite/ui/generic/template/Canvas/manifest.json +1 -1
  5. package/src/sap/suite/ui/generic/template/ListReport/manifest.json +1 -1
  6. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +1 -0
  7. package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +2 -0
  8. package/src/sap/suite/ui/generic/template/ObjectPage/controller/SectionTitleHandler.js +17 -13
  9. package/src/sap/suite/ui/generic/template/ObjectPage/controllerFrameworkExtensions.js +285 -270
  10. package/src/sap/suite/ui/generic/template/ObjectPage/manifest.json +1 -1
  11. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartForm.fragment.xml +2 -1
  12. package/src/sap/suite/ui/generic/template/QuickCreate/manifest.json +1 -1
  13. package/src/sap/suite/ui/generic/template/QuickView/manifest.json +1 -1
  14. package/src/sap/suite/ui/generic/template/js/AnnotationHelper.js +81 -0
  15. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +16 -2
  16. package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterBarHandler.js +44 -198
  17. package/src/sap/suite/ui/generic/template/lib/ai/EasyFilterDataFetcherHelper.js +334 -0
  18. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +6 -1
  19. package/src/sap/suite/ui/generic/template/lib/presentationControl/SmartTableHandler.js +1 -1
  20. package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.139.0",
3
+ "version": "1.139.2",
4
4
  "description": "SAPUI5 Library sap.suite.ui.generic.template",
5
5
  "keywords": [
6
6
  "sapui5",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.139.0</version>
10
+ <version>1.139.2</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.139.0"
11
+ "version": "1.139.2"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.139.0"
11
+ "version": "1.139.2"
12
12
  },
13
13
  "title": "Canvas",
14
14
  "description": "Canvas Page",
@@ -8,7 +8,7 @@
8
8
  "i18n": "i18n/i18n.properties",
9
9
  "applicationVersion": {
10
10
  "__comment": "applicationVersion oder componentversion??",
11
- "version": "1.139.0"
11
+ "version": "1.139.2"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -1938,6 +1938,7 @@ sap.ui.define([
1938
1938
  oState.oSectionTitleHandler.adjustSubSectionTitle(oSubSection);
1939
1939
  // 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
1940
1940
  oState.oSectionTitleHandler.addAccessibleName(oSubSection);
1941
+ oState.oSectionTitleHandler.setHeaderSmartFormAriaLabelBy(oSubSection);
1941
1942
  }
1942
1943
  }
1943
1944
 
@@ -100,6 +100,8 @@ sap.ui.define([
100
100
  //Get all semantic object from manifest setting
101
101
  var oSettings = oTemplateUtils.oComponentUtils.getSettings();
102
102
  var oRelatedAppsSettings = oSettings.relatedAppsSettings;
103
+ // Extension to modify the related app settings.
104
+ oRelatedAppsSettings = oController.modifyRelatedAppsSettings(oRelatedAppsSettings, sCurrentSemObj);
103
105
  var bHasRelatedAppSettings = oRelatedAppsSettings && Object.keys(oRelatedAppsSettings).length > 0;
104
106
 
105
107
  if (bHasRelatedAppSettings) {
@@ -1,6 +1,6 @@
1
1
  sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/generic/template/genericUtilities/controlHelper", "sap/ui/core/library",
2
- "sap/suite/ui/generic/template/genericUtilities/FeLogger"
3
- ], function(BaseObject, extend, controlHelper, SapCoreLibrary, FeLogger) {
2
+ "sap/suite/ui/generic/template/genericUtilities/FeLogger", "sap/ui/core/Element", "sap/ui/core/InvisibleText"
3
+ ], function(BaseObject, extend, controlHelper, SapCoreLibrary, FeLogger, Element, InvisibleText) {
4
4
  "use strict";
5
5
 
6
6
  var STYLE_CLASS_FOR_ADJUSTMENT = "sapUiTableOnObjectPageAdjustmentsForSection";
@@ -174,9 +174,8 @@ 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();
177
+ function fnSetHeaderSmartFormAriaLabelBy(oFirstSubSection) {
178
+ var oSubSectionInfoObject = oTemplateUtils.oInfoObjectHandler.getControlInformation(oFirstSubSection.getId());
180
179
  oFirstSubSection.getBlocks().concat(oFirstSubSection.getMoreBlocks())
181
180
  .reduce(function(accBlock, currentBlock) {
182
181
  if (!currentBlock.getContent || !currentBlock.getContent() || !currentBlock.getContent().length) {
@@ -191,14 +190,19 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
191
190
  return accBlock;
192
191
  }, [])
193
192
  .forEach(function(entry) {
194
- if (!oSubSectionInfoObject) {
193
+ if (!oSubSectionInfoObject || (entry.getGroups().length === 1 && entry.getGroups()[0].getTitle && !entry.getGroups()[0].getTitle())) {
195
194
  // 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
195
+ var sInvisibleTextID = `${entry.getId()}-ariaLabelBy-InvisibleText`,
196
+ oInvisibleText = Element.getElementById(sInvisibleTextID);
197
+ if (!oInvisibleText) {
198
+ var customData = !entry.getCustomData() ? [] : entry.getCustomData().filter(function(entry) {return entry.getKey() === "smartFormAriaLabel";});
199
+ if (customData.length && customData[0].getValue()) {
200
+ oInvisibleText = new InvisibleText({id : sInvisibleTextID, text: customData[0].getValue()}).toStatic();
201
+ }
202
+ }
203
+ if (oInvisibleText) {
204
+ entry._suggestTitleId(oInvisibleText.getId()); // set Section title id that will be used for aria
205
+ }
202
206
  return;
203
207
  }
204
208
  });
@@ -209,7 +213,7 @@ sap.ui.define(["sap/ui/base/Object", "sap/base/util/extend", "sap/suite/ui/gener
209
213
  setAsTitleOwner: fnSetAsTitleOwner,
210
214
  adjustSubSectionTitle: fnAdjustSubSectionTitle,
211
215
  addAccessibleName: fnAddAccessibleName,
212
- manageAccessability: fnManageAccessability
216
+ setHeaderSmartFormAriaLabelBy: fnSetHeaderSmartFormAriaLabelBy
213
217
  };
214
218
  }
215
219