@sapui5/sap.suite.ui.generic.template 1.142.2 → 1.142.3

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.142.2",
3
+ "version": "1.142.3",
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.142.2</version>
10
+ <version>1.142.3</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.142.2"
11
+ "version": "1.142.3"
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.142.2"
11
+ "version": "1.142.3"
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.142.2"
11
+ "version": "1.142.3"
12
12
  },
13
13
  "title": "{{TITLE}}",
14
14
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.142.2"
9
+ "version": "1.142.3"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.142.2"
9
+ "version": "1.142.3"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -6,7 +6,7 @@
6
6
  "type": "component",
7
7
  "i18n": "i18n/i18n.properties",
8
8
  "applicationVersion": {
9
- "version": "1.142.2"
9
+ "version": "1.142.3"
10
10
  },
11
11
  "title": "{{TITLE}}",
12
12
  "description": "{{DESCRIPTION}}",
@@ -214,7 +214,12 @@ sap.ui.define([
214
214
  }
215
215
  },
216
216
  "sap.uxap.ObjectPageSubSection": {
217
- actions: ["rename", "remove", "reveal"]
217
+ actions: ["rename", "remove", "reveal"],
218
+ aggregations: {
219
+ actions: {
220
+ actions: ["remove"]
221
+ }
222
+ }
218
223
  },
219
224
  "sap.ui.comp.smartform.SmartForm": { // not documented in allow list, but checked by RTA OPA test
220
225
  actions: ["localReset", "annotation"],
@@ -959,7 +959,7 @@ sap.ui.define([
959
959
  * @public
960
960
  * @extends sap.ui.core.UIComponent
961
961
  * @author SAP SE
962
- * @version 1.142.2
962
+ * @version 1.142.3
963
963
  * @name sap.suite.ui.generic.template.lib.AppComponent
964
964
  */
965
965
  var oAppComponent = UIComponent.extend("sap.suite.ui.generic.template.lib.AppComponent", {
@@ -2219,25 +2219,6 @@ sap.ui.define(["sap/ui/base/Object",
2219
2219
  }) : Promise.reject();
2220
2220
  }
2221
2221
 
2222
- /**
2223
- * Calls state changer per each (template) component on url change.
2224
- * @param {Array<sap.suite.ui.generic.template.lib.StatePreserver>} aStateChangers array of StatePreserver instances
2225
- * @param {map} appStates map of appStates
2226
- * @param {boolean} bIsFCLMode optional, defined only in FLC
2227
- * @returns {boolean} returns true if url change can be handled by state changer,
2228
- * returns false in FCL, so the route-matched logic will continue as normal.
2229
- */
2230
- function fnGetIsStateChange(aStateChangers, appStates, bIsFCLMode) {
2231
- var bIsStateChangeResult = false;
2232
- for (var i = 0; i < aStateChangers.length; i++){
2233
- var oStateChanger = aStateChangers[i];
2234
- if (oStateChanger.isStateChange(appStates)){
2235
- bIsStateChangeResult = bIsFCLMode ? false : true;
2236
- }
2237
- }
2238
- return bIsStateChangeResult;
2239
- }
2240
-
2241
2222
  // Start: Handling url-changes
2242
2223
  /*
2243
2224
  * calls onActivate on the specified view, if it exists
@@ -2541,11 +2522,16 @@ sap.ui.define(["sap/ui/base/Object",
2541
2522
  fnNavigate(sTargetHash, true);
2542
2523
  return; // fnHandleRouteMatched will be called with the new url, so leave further processing to that call
2543
2524
  }
2544
- // State changers can interfere in FCL, for example between LR and OP when the search query is updated. In particular, it is necessary to skip the early return in FCL and display an error in case of 404.
2545
- // The last parameter will still trigger state changers (with possible side effects), but will never return true as a result.
2546
- var bIsStateChange = fnGetIsStateChange(oTemplateContract.aStateChangers, oCurrentIdentity.appStates, !!oTemplateContract.oFlexibleColumnLayoutHandler);
2547
2525
  // State changers may identify the hash change as something which can be handled by them internally. In this case we do not need to run the whole mechanism.
2548
2526
  // Since isStateChange is allowed to have side-effects we call all StateChangers.
2527
+ var bIsStateChange = false;
2528
+ for (var i = 0; i < oTemplateContract.aStateChangers.length; i++){
2529
+ var oStateChanger = oTemplateContract.aStateChangers[i];
2530
+ if (oStateChanger.isStateChange(oCurrentIdentity.appStates)){
2531
+ bIsStateChange = true;
2532
+ }
2533
+ }
2534
+
2549
2535
  if (bIsStateChange){
2550
2536
  oRoutingOptions = null;
2551
2537
  oCurrentHash.hash = sHash;
@@ -3130,8 +3116,7 @@ sap.ui.define(["sap/ui/base/Object",
3130
3116
  var fnPrepareHostView = testableHelper.testable(fnPrepareHostView, "prepareHostView");
3131
3117
  var fnPreloadComponent = testableHelper.testable(fnPreloadComponent, "preloadComponent");
3132
3118
  var fnGetRouteInfoByHash = testableHelper.testable(fnGetRouteInfoByHash, "getRouteInfoByHash");
3133
- var fnGetIsStateChange = testableHelper.testable(fnGetIsStateChange, "getIsStateChange");
3134
-
3119
+
3135
3120
  // Note: Function createHostView will be added by routingHelper.
3136
3121
  // Allow to mock this by unit tests
3137
3122
  testableHelper.testable(function(fnCreateHostView){
@@ -3228,7 +3213,7 @@ sap.ui.define(["sap/ui/base/Object",
3228
3213
  * @param {sap.suite.ui.generic.template.lib.AppComponent} oAppComponent The AppComponent instance
3229
3214
  * @public
3230
3215
  * @extends sap.ui.base.Object
3231
- * @version 1.142.2
3216
+ * @version 1.142.3
3232
3217
  * @since 1.30.0
3233
3218
  * @alias sap.suite.ui.generic.template.lib.NavigationController
3234
3219
  */
@@ -66,7 +66,7 @@ sap.ui.define([
66
66
  interfaces: [],
67
67
  controls: [],
68
68
  elements: [],
69
- version: "1.142.2",
69
+ version: "1.142.3",
70
70
  extensions: {
71
71
  //Configuration used for rule loading of Support Assistant
72
72
  "sap.ui.support": {