@sapui5/sap.suite.ui.generic.template 1.108.1 → 1.108.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.108.1",
3
+ "version": "1.108.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.108.1</version>
10
+ <version>1.108.2</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -33,6 +33,9 @@
33
33
  <dependency>
34
34
  <libraryName>sap.suite.ui.microchart</libraryName>
35
35
  </dependency>
36
+ <dependency>
37
+ <libraryName>sap.insights</libraryName>
38
+ </dependency>
36
39
  <dependency>
37
40
  <libraryName>sap.viz</libraryName>
38
41
  <lazy>true</lazy>
@@ -52,6 +55,9 @@
52
55
  <dependency>
53
56
  <libraryName>sap.f</libraryName>
54
57
  </dependency>
58
+ <dependency>
59
+ <libraryName>sap.ui.rta</libraryName>
60
+ </dependency>
55
61
  <dependency>
56
62
  <libraryName>sap.fe.placeholder</libraryName>
57
63
  </dependency>
@@ -206,6 +206,9 @@ sap.ui.define(["sap/suite/ui/generic/template/genericUtilities/FeLogger"], funct
206
206
  isMTable: isControlOfType.bind(null, "sap/m/Table"),
207
207
  isSearchField: isControlOfType.bind(null, "sap/m/SearchField"),
208
208
  isButton: isControlOfType.bind(null, "sap/m/Button"),
209
+ isOverflowToolbar: isControlOfType.bind(null, "sap/m/OverflowToolbar"),
210
+ isMultiInputField: isControlOfType.bind(null, "sap/m/MultiInput"),
211
+ isLink: isControlOfType.bind(null, "sap/m/Link"),
209
212
  isDynamicPage: isControlOfType.bind(null, "sap/f/DynamicPage"),
210
213
  isObjectPageSection: isControlOfType.bind(null, "sap/uxap/ObjectPageSection"),
211
214
  isObjectPageSubSection: isControlOfType.bind(null, "sap/uxap/ObjectPageSubSection"),
@@ -454,6 +454,7 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
454
454
  }
455
455
  },
456
456
  getSeverityIconFromIconPool: function(messageType) {
457
+ //This mapping is consistent with one used in sap/m/MessageView.
457
458
  switch (messageType) {
458
459
  case ValueState.Error:
459
460
  return IconPool.getIconURI("error");
@@ -461,6 +462,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
461
462
  return IconPool.getIconURI("alert");
462
463
  case ValueState.Information:
463
464
  return IconPool.getIconURI("information");
465
+ case ValueState.Success:
466
+ return IconPool.getIconURI("sys-enter-2");
464
467
  default:
465
468
  return "";
466
469
  }
@@ -472,6 +475,8 @@ sap.ui.define(["sap/ui/model/odata/AnnotationHelper",
472
475
  return coreIconColor.Negative;
473
476
  case ValueState.Warning:
474
477
  return coreIconColor.Critical;
478
+ case ValueState.Success:
479
+ return coreIconColor.Positive;
475
480
  default:
476
481
  return "";
477
482
  }
@@ -142,13 +142,9 @@ sap.ui.define(["sap/m/p13n/Popup",
142
142
  }
143
143
 
144
144
  if (sComponentName === "sap.suite.ui.generic.template.ListReport.Component") {
145
- var insertionIndex = sContentURL.indexOf('&$filter');
146
- if (insertionIndex > -1) {
147
- var sFirstPart = sContentURL.slice(0, insertionIndex), sSecondPart = sContentURL.slice(insertionIndex);
148
- sContentURL = sFirstPart + '&$top=15' + sSecondPart;
149
- }
145
+ var sTopQuery = "$top=15";
146
+ sContentURL = addQueryParam(sContentURL, sTopQuery);
150
147
  }
151
-
152
148
  var sInlineCountQuery = "$inlinecount=allpages";
153
149
  sContentURL = addQueryParam(sContentURL, sInlineCountQuery);
154
150
  var oBatch = {};
@@ -1433,7 +1433,7 @@ sap.ui.define(["sap/ui/base/Object",
1433
1433
  /* If ENTER is pressed from a smartField inside a smartForm, we make sure that the validation checks for all the fields inside that smartForm
1434
1434
  * are completed before executing the side effects.
1435
1435
  */
1436
- var oSourceForm, oSourceControl, oBindingContext, mAdditionalParameters = {
1436
+ var oSourceForm, oSourceControl, oBindingContext, bSkipPreparationAction = false, mAdditionalParameters = {
1437
1437
  draftRootContext : oComponentUtils.getMainComponentDetails().bindingContext, // send the root component binding for exexuting preparation action
1438
1438
  callPreparationOnDraftRoot : true // For now execute preparation only on draft root
1439
1439
  };
@@ -1451,17 +1451,23 @@ sap.ui.define(["sap/ui/base/Object",
1451
1451
  // Resolve the promise and exit the function
1452
1452
  return fnResolve();
1453
1453
  }
1454
- }
1455
- if (controlHelper.isSmartForm(oSourceControl)) {
1454
+ } else if (controlHelper.isOverflowToolbar(oSourceControl) || controlHelper.isButton(oSourceControl) || controlHelper.isLink(oSourceControl) || (controlHelper.isMultiInputField(oSourceControl) && (oSourceControl._sTypedInValue && oSourceControl._sTypedInValue.length > 0))) {
1455
+ //Skip preparation action for controls : sap.m.OverflowToolbar, sap.m.Link, sap.m.Button.
1456
+ //Skip preparation action only if no user input for sap.m.MultiInput (using _sTypedInValue to check if user has entered any value).
1457
+ bSkipPreparationAction = true;
1458
+ } else if (controlHelper.isSmartForm(oSourceControl)) {
1456
1459
  oSourceForm = oSourceControl;
1457
1460
  break;
1458
- }
1459
- // For smartField inside the smart table the iteration can be stopped at smartTable level as the row binding info is available
1460
- if (controlHelper.isSmartTable(oSourceControl)) {
1461
+ } else if (controlHelper.isSmartTable(oSourceControl)) {
1462
+ // For smartField inside the smart table the iteration can be stopped at smartTable level as the row binding info is available
1461
1463
  break;
1462
1464
  }
1463
1465
  oSourceControl = oSourceControl.getParent();
1464
1466
  }
1467
+ if (bSkipPreparationAction) {
1468
+ // Continue with global side effect execution. Do not send parameters for preparation action.
1469
+ mAdditionalParameters = {};
1470
+ }
1465
1471
  /**
1466
1472
  * Get the bindingContext from either one of
1467
1473
  * 1. The actual event source (smart field only)
@@ -363,6 +363,8 @@ sap.ui.define([
363
363
  si18nKey = aMessages.length > 1 ? "ST_MESSAGES_DIALOG_TITLE_WARNING_PLURAL" : "ST_MESSAGES_DIALOG_TITLE_WARNING";
364
364
  } else if (sState === ValueState.Information) {
365
365
  si18nKey = "ST_MESSAGES_DIALOG_TITLE_INFORMATION";
366
+ } else if (sState === ValueState.Success) {
367
+ si18nKey = "ST_MESSAGES_DIALOG_TITLE_SUCCESS_PLURAL";
366
368
  }
367
369
  sTitle = oTemplateContract.getText(si18nKey);
368
370
 
@@ -139,7 +139,8 @@ sap.ui.define(["sap/ui/base/Object",
139
139
  var oComponent;
140
140
  var oCurrentIdentity = oTemplateContract.oNavigationControllerProxy.getCurrentIdentity();
141
141
  var oAncestralNode = oTemplateContract.oApplicationProxy.getAncestralNode(oCurrentIdentity.treeNode, 1);
142
- oComponent = oTemplateContract.componentRegistry[oAncestralNode.componentId];
142
+ var sComponentId = oAncestralNode.componentId ? oAncestralNode.componentId : oCurrentIdentity.treeNode.componentId;
143
+ oComponent = oTemplateContract.componentRegistry[sComponentId];
143
144
  return oComponent;
144
145
  }
145
146
 
@@ -1,6 +1,6 @@
1
1
  sap.ui.define(["sap/base/util/ObjectPath", "sap/base/util/extend", "sap/suite/ui/generic/template/genericUtilities/FeLogger", "sap/ushell/ui/footerbar/AddBookmarkButton",
2
- "sap/suite/ui/commons/collaboration/ServiceContainer", "sap/ui/core/CustomData"
3
- ], function (ObjectPath, extend, FeLogger, AddBookmarkButton, ServiceContainer, CustomData) {
2
+ "sap/suite/ui/commons/collaboration/ServiceContainer", "sap/ui/core/CustomData", 'sap/ui/performance/trace/FESRHelper'
3
+ ], function (ObjectPath, extend, FeLogger, AddBookmarkButton, ServiceContainer, CustomData, FESRHelper) {
4
4
  "use strict";
5
5
 
6
6
  var ShareUtils = {};
@@ -101,6 +101,7 @@ sap.ui.define(["sap/base/util/ObjectPath", "sap/base/util/extend", "sap/suite/ui
101
101
  key: "data",
102
102
  value: menuItem
103
103
  }));
104
+ FESRHelper.setSemanticStepname(oItem, "press", menuItem.fesrStepName);
104
105
  aMenus.push(oItem);
105
106
  }.bind(this));
106
107
  oShareActionSheet.insertItem(new sap.m.MenuItem({
@@ -118,6 +119,7 @@ sap.ui.define(["sap/base/util/ObjectPath", "sap/base/util/extend", "sap/suite/ui
118
119
  key: "data",
119
120
  value: oMainMenuItem
120
121
  }));
122
+ FESRHelper.setSemanticStepname(oItem, "press", oMainMenuItem.fesrStepName);
121
123
  oShareActionSheet.insertItem(oItem, iIndexForCollaborationOptions);
122
124
  }
123
125
  iIndexForCollaborationOptions++;
@@ -116,6 +116,9 @@ ST_MESSAGES_DIALOG_TITLE_ERROR=Error
116
116
  #XTIT: messagebox title for Information in message view
117
117
  ST_MESSAGES_DIALOG_TITLE_INFORMATION=Information
118
118
 
119
+ #XTIT: messagebox title for Success in message view
120
+ ST_MESSAGES_DIALOG_TITLE_SUCCESS_PLURAL=Successes
121
+
119
122
  #XTIT: messagebox title for warning in message view(Plural)
120
123
  ST_MESSAGES_DIALOG_TITLE_WARNING_PLURAL=Warnings
121
124
 
@@ -2942,7 +2942,7 @@ sap.ui.define(["sap/ui/base/Object",
2942
2942
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
2943
2943
  * @public
2944
2944
  * @extends sap.ui.base.Object
2945
- * @version 1.108.1
2945
+ * @version 1.108.2
2946
2946
  * @since 1.30.0
2947
2947
  * @alias sap.suite.ui.generic.template.lib.NavigationController
2948
2948
  */
@@ -38,7 +38,7 @@ sap.ui.define(['sap/ui/core/Core', 'sap/ui/core/library','sap/fe/placeholder/lib
38
38
  interfaces: [],
39
39
  controls: [],
40
40
  elements: [],
41
- version: "1.108.1",
41
+ version: "1.108.2",
42
42
  extensions: {
43
43
  //Configuration used for rule loading of Support Assistant
44
44
  "sap.ui.support": {
package/ui5.yaml CHANGED
@@ -17,7 +17,9 @@ framework:
17
17
  - name: sap.ushell
18
18
  - name: sap.m
19
19
  - name: sap.f
20
+ - name: sap.insights
20
21
  - name: sap.fe.placeholder
22
+ - name: sap.ui.rta
21
23
  - name: themelib_sap_horizon
22
24
  optional: true
23
25
  - name: themelib_sap_fiori_3