@sapui5/sap.ushell_abap 1.114.2 → 1.114.4

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.ushell_abap",
3
- "version": "1.114.2",
3
+ "version": "1.114.4",
4
4
  "description": "SAPUI5 Library sap.ushell_abap",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "keywords": [
@@ -2,7 +2,7 @@
2
2
  <library xmlns="http://www.sap.com/sap.ui.library.xsd">
3
3
  <name>sap.ushell_abap</name>
4
4
  <vendor>SAP SE</vendor>
5
- <version>1.114.2</version>
5
+ <version>1.114.4</version>
6
6
  <copyright>Copyright (c) 2009-2023 SAP SE, All Rights Reserved</copyright>
7
7
  <documentation>SAP library: sap.ushell_abap</documentation>
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -9,7 +9,7 @@
9
9
  * <li>provide the resolveHashFragmentFallback function, a fallback method called by ClientSideTargetResolution service.</li>
10
10
  * </ul>
11
11
  *
12
- * @version 1.114.2
12
+ * @version 1.114.4
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ushell_abap/bootstrap/evo/abap.constants",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's container adapter for the ABAP platform.
4
4
  *
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -4,7 +4,7 @@
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
5
  *
6
6
  * @deprecated since 1.100
7
- * @version 1.114.2
7
+ * @version 1.114.4
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ui/thirdparty/URI",
@@ -18,7 +18,6 @@ sap.ui.define([
18
18
  "sap/ushell/utils/chipsUtils",
19
19
  "sap/ushell_abap/pbServices/ui2/Utils",
20
20
  "sap/ushell_abap/pbServices/ui2/Page",
21
- "sap/ushell_abap/pbServices/ui2/Error",
22
21
  "sap/base/Log",
23
22
  "sap/m/library",
24
23
  "sap/ushell/ui/tile/StaticTile",
@@ -36,7 +35,6 @@ sap.ui.define([
36
35
  chipsUtils,
37
36
  Utils,
38
37
  Page,
39
- SrvcError,
40
38
  Log,
41
39
  mobileLibrary,
42
40
  StaticTile,
@@ -89,6 +87,7 @@ sap.ui.define([
89
87
  // One should use makeTargetMappingSupportKey to store and retrieve values to/from this map.
90
88
  var oTargetMappingSupport = new Utils.Map();
91
89
 
90
+
92
91
  var oAdapterConfig = (oAdapterConfiguration && oAdapterConfiguration.config) || {};
93
92
  var oLaunchPageServiceConfig = oAdapterConfig.services && oAdapterConfig.services.launchPage;
94
93
  var mEarlyTileVisibilities = {};
@@ -1243,22 +1242,7 @@ sap.ui.define([
1243
1242
  /*
1244
1243
  The target mappings are used in the classic homepage and in spaces mode.
1245
1244
  */
1246
- var oMappingPromise = this._readTargetMappings()
1247
- .done(function (oTargetMappings) {
1248
- var sFormFactor = Utils.getFormFactor();
1249
-
1250
- oTargetMappings.results.forEach(function (oTargetMapping) {
1251
- var sKey = LaunchPageAdapter.prototype._makeTargetMappingSupportKey(
1252
- oTargetMapping.semanticObject,
1253
- oTargetMapping.semanticAction
1254
- );
1255
-
1256
- oTargetMappingSupport.put(sKey,
1257
- // make sure it's boolean
1258
- oTargetMappingSupport.get(sKey)
1259
- || !!(oTargetMapping.formFactors && oTargetMapping.formFactors[sFormFactor]));
1260
- });
1261
- });
1245
+ var oMappingPromise = this._loadTargetMappings();
1262
1246
 
1263
1247
  /*
1264
1248
  In spaces mode we will create an empty page inside an empty pageSet.
@@ -1336,6 +1320,37 @@ sap.ui.define([
1336
1320
  return oGetGroupsDeferred.promise();
1337
1321
  };
1338
1322
 
1323
+ /**
1324
+ * Reads the target mappings from the start_up request and stores them in the "oTargetMappingSupport"
1325
+ * variable.
1326
+ *
1327
+ * @return {Promise} A promise resolving when all target mappings have been stored.
1328
+ * @private
1329
+ */
1330
+ this._loadTargetMappings = function () {
1331
+ if (this._oTargetMappingPromise) {
1332
+ return this._oTargetMappingPromise;
1333
+ }
1334
+ this._oTargetMappingPromise = this._readTargetMappings()
1335
+ .done(function (oTargetMappings) {
1336
+ var sFormFactor = Utils.getFormFactor();
1337
+
1338
+ oTargetMappings.results.forEach(function (oTargetMapping) {
1339
+ var sKey = LaunchPageAdapter.prototype._makeTargetMappingSupportKey(
1340
+ oTargetMapping.semanticObject,
1341
+ oTargetMapping.semanticAction
1342
+ );
1343
+
1344
+ oTargetMappingSupport.put(sKey,
1345
+ // make sure it's boolean
1346
+ oTargetMappingSupport.get(sKey)
1347
+ || !!(oTargetMapping.formFactors && oTargetMapping.formFactors[sFormFactor]));
1348
+ });
1349
+ }.bind(this));
1350
+
1351
+ return this._oTargetMappingPromise;
1352
+ };
1353
+
1339
1354
  /**
1340
1355
  * Calls getGroups and waits also for custom and remote tiles to be loaded
1341
1356
  * @returns {Promise<object[]>} Resolves the result of the getGroups call
@@ -1582,6 +1597,10 @@ sap.ui.define([
1582
1597
  * @since 1.21.0
1583
1598
  */
1584
1599
  this.isTileIntentSupported = function (oTile) {
1600
+ if (!this._oTargetMappingPromise || this._oTargetMappingPromise.state() !== "resolved") {
1601
+ Log.error("isTileIntentSupported might return wrong results as data loading hasn't finished yet!", "sap.ushell_abap.adapters.abap.LaunchPageAdapter");
1602
+ }
1603
+
1585
1604
  var oTileConfiguration;
1586
1605
  var oSupport = this._checkTileIntentSupport(oTile, oTargetMappingSupport);
1587
1606
 
@@ -1609,6 +1628,25 @@ sap.ui.define([
1609
1628
  return oSupport.isSupported;
1610
1629
  };
1611
1630
 
1631
+ /**
1632
+ * Returns <code>true</code> if the tile's target intent is supported taking into account the form factor of the current device.
1633
+ *
1634
+ * "Supported" means that the tile is not a broken reference and that navigation to the intent is possible.
1635
+ *
1636
+ * <p>This function may be called both for group tiles and for catalog tiles.
1637
+ *
1638
+ * <p>This function will log a warning if a falsy value is returned.
1639
+ *
1640
+ * @param {sap.ushell_abap.pbServices.ui2.ChipInstance} oTile the group tile or catalog tile
1641
+ * @returns {Promise} A Promise that returns to <code>true</code> if the tile's target intent is supported
1642
+ * @since 1.21.0
1643
+ */
1644
+ this.isTileIntentSupportedAsync = function (oTile) {
1645
+ return this._loadTargetMappings().then(function () {
1646
+ return this.isTileIntentSupported(oTile);
1647
+ }.bind(this));
1648
+ };
1649
+
1612
1650
  /**
1613
1651
  * Implements the functionality described in the public <code>#isTileIntentSupported</code> without logging.
1614
1652
  *
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the abap
9
9
  * platform.
10
10
  *
11
- * @version 1.114.2
11
+ * @version 1.114.4
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview PagePersistenceAdapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -7,7 +7,7 @@
7
7
  * Container header properties transported via pseudo-items are mapped to the
8
8
  * respective header properties in setItem/getItem/delItem
9
9
  *
10
- * @version 1.114.2
10
+ * @version 1.114.4
11
11
  */
12
12
  sap.ui.define([
13
13
  "sap/ushell_abap/adapters/abap/AdapterContainer",
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Search adapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([], function () {
8
8
  "use strict";
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The SupportTicket adapter for the ABAP platform.
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/isEmptyObject",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the ABAP platform
4
4
  *
5
- * @version 1.114.2
5
+ * @version 1.114.4
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.114.2
6
+ * @version 1.114.4
7
7
  */
8
8
  /**
9
9
  * @namespace Default namespace for Unified Shell adapters for the HANA platform. They can usually
@@ -14,7 +14,7 @@
14
14
  * It furthermore calculates if FLP pages get activated and if needed sets up
15
15
  * the configuration environment to run these.
16
16
  *
17
- * @version 1.114.2
17
+ * @version 1.114.4
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -30,11 +30,16 @@ sap.ui.define([
30
30
  ) {
31
31
  "use strict";
32
32
  return function () {
33
- sap.ui.require(["sap/ushell/iconfonts"], function (IconFonts) {
33
+ sap.ui.require([
34
+ "sap/ushell/iconfonts",
35
+ "sap/ushell/Config"
36
+ ], function (IconFonts, Config) {
34
37
  window.sap.ushell.Container.createRenderer("fiori2", true).then(function (oContent) {
35
38
  oContent.placeAt("canvas", "only");
36
39
  var oSystem = sap.ushell.Container.getLogonSystem();
37
- if (!oSystem.getSysInfoBar()) {
40
+ var sCurrentState = Config.last("/core/shell/model/currentState/stateName");
41
+
42
+ if (!oSystem.getSysInfoBar() || sCurrentState === "headerless" || sCurrentState === "headerless-home") {
38
43
  return;
39
44
  }
40
45
 
@@ -53,7 +58,6 @@ sap.ui.define([
53
58
  color: oSystem.getSysInfoBarColor()
54
59
  }).placeAt("systemInfo-shellArea");
55
60
  });
56
-
57
61
  });
58
62
  IconFonts.registerFiori2IconFont();
59
63
  });
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @namespace
17
17
  * @name sap.ushell_abap
18
18
  * @author SAP SE
19
- * @version 1.114.2
19
+ * @version 1.114.4
20
20
  * @private
21
21
  * @ui5-restricted
22
22
  */
23
23
  var ushellAbapLib = sap.ui.getCore().initLibrary({
24
24
  name: "sap.ushell_abap",
25
- version: "1.114.2",
25
+ version: "1.114.4",
26
26
  dependencies: ["sap.ui.core", "sap.m"],
27
27
  noLibraryCSS: true,
28
28
  extensions: {