@sapui5/sap.suite.ui.generic.template 1.142.1 → 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 +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/manifest.json +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/designtime/floorplans/ObjectPage.designtime.js +6 -1
- package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
- package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +10 -25
- package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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.
|
|
3216
|
+
* @version 1.142.3
|
|
3232
3217
|
* @since 1.30.0
|
|
3233
3218
|
* @alias sap.suite.ui.generic.template.lib.NavigationController
|
|
3234
3219
|
*/
|