@sapui5/sap.ushell_abap 1.108.21 → 1.108.22

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.108.21",
3
+ "version": "1.108.22",
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.108.21</version>
5
+ <version>1.108.22</version>
6
6
  <copyright>Copyright (c) 2009-2022 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.108.21
5
+ * @version 1.108.22
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.108.21
12
+ * @version 1.108.22
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's CommonDataModelAdapter for the ABAP platform, it is used to avoid 404 when no adapter is found
4
4
  *
5
- * @version 1.108.21
5
+ * @version 1.108.22
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.108.21
5
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
7
+ * @version 1.108.22
8
8
  */
9
9
  sap.ui.define([
10
10
  "sap/ui/thirdparty/URI",
@@ -1264,22 +1264,7 @@ sap.ui.define([
1264
1264
  /*
1265
1265
  The target mappings are used in the classic homepage and in spaces mode.
1266
1266
  */
1267
- var oMappingPromise = this._readTargetMappings()
1268
- .done(function (oTargetMappings) {
1269
- var sFormFactor = Utils.getFormFactor();
1270
-
1271
- oTargetMappings.results.forEach(function (oTargetMapping) {
1272
- var sKey = LaunchPageAdapter.prototype._makeTargetMappingSupportKey(
1273
- oTargetMapping.semanticObject,
1274
- oTargetMapping.semanticAction
1275
- );
1276
-
1277
- oTargetMappingSupport.put(sKey,
1278
- // make sure it's boolean
1279
- oTargetMappingSupport.get(sKey)
1280
- || !!(oTargetMapping.formFactors && oTargetMapping.formFactors[sFormFactor]));
1281
- });
1282
- });
1267
+ var oMappingPromise = this._loadTargetMappings();
1283
1268
 
1284
1269
  /*
1285
1270
  In spaces mode we will create an empty page inside an empty pageSet.
@@ -1357,6 +1342,37 @@ sap.ui.define([
1357
1342
  return oGetGroupsDeferred.promise();
1358
1343
  };
1359
1344
 
1345
+ /**
1346
+ * Reads the target mappings from the start_up request and stores them in the "oTargetMappingSupport"
1347
+ * variable.
1348
+ *
1349
+ * @return {Promise} A promise resolving when all target mappings have been stored.
1350
+ * @private
1351
+ */
1352
+ this._loadTargetMappings = function () {
1353
+ if (this._oTargetMappingPromise) {
1354
+ return this._oTargetMappingPromise;
1355
+ }
1356
+ this._oTargetMappingPromise = this._readTargetMappings()
1357
+ .done(function (oTargetMappings) {
1358
+ var sFormFactor = Utils.getFormFactor();
1359
+
1360
+ oTargetMappings.results.forEach(function (oTargetMapping) {
1361
+ var sKey = LaunchPageAdapter.prototype._makeTargetMappingSupportKey(
1362
+ oTargetMapping.semanticObject,
1363
+ oTargetMapping.semanticAction
1364
+ );
1365
+
1366
+ oTargetMappingSupport.put(sKey,
1367
+ // make sure it's boolean
1368
+ oTargetMappingSupport.get(sKey)
1369
+ || !!(oTargetMapping.formFactors && oTargetMapping.formFactors[sFormFactor]));
1370
+ });
1371
+ }.bind(this));
1372
+
1373
+ return this._oTargetMappingPromise;
1374
+ };
1375
+
1360
1376
  /**
1361
1377
  * Calls getGroups and waits also for custom and remote tiles to be loaded
1362
1378
  * @returns {Promise<object[]>} Resolves the result of the getGroups call
@@ -1604,6 +1620,10 @@ sap.ui.define([
1604
1620
  * @since 1.21.0
1605
1621
  */
1606
1622
  this.isTileIntentSupported = function (oTile) {
1623
+ if (!this._oTargetMappingPromise || this._oTargetMappingPromise.state() !== "resolved") {
1624
+ Log.error("isTileIntentSupported might return wrong results as data loading hasn't finished yet!", "sap.ushell_abap.adapters.abap.LaunchPageAdapter");
1625
+ }
1626
+
1607
1627
  var oTileConfiguration,
1608
1628
  sIntent,
1609
1629
  sSubTitle,
@@ -1634,6 +1654,25 @@ sap.ui.define([
1634
1654
  return oSupport.isSupported;
1635
1655
  };
1636
1656
 
1657
+ /**
1658
+ * Returns <code>true</code> if the tile's target intent is supported taking into account the form factor of the current device.
1659
+ *
1660
+ * "Supported" means that the tile is not a broken reference and that navigation to the intent is possible.
1661
+ *
1662
+ * <p>This function may be called both for group tiles and for catalog tiles.
1663
+ *
1664
+ * <p>This function will log a warning if a falsy value is returned.
1665
+ *
1666
+ * @param {sap.ushell_abap.pbServices.ui2.ChipInstance} oTile the group tile or catalog tile
1667
+ * @returns {Promise} A Promise that returns to <code>true</code> if the tile's target intent is supported
1668
+ * @since 1.21.0
1669
+ */
1670
+ this.isTileIntentSupportedAsync = function (oTile) {
1671
+ return this._loadTargetMappings().then(function () {
1672
+ return this.isTileIntentSupported(oTile);
1673
+ }.bind(this));
1674
+ };
1675
+
1637
1676
  /**
1638
1677
  * Implements the functionality described in the public <code>#isTileIntentSupported</code> without logging.
1639
1678
  *
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the abap
9
9
  * platform.
10
10
  *
11
- * @version 1.108.21
11
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
10
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
5
+ * @version 1.108.22
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.108.21
6
+ * @version 1.108.22
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.108.21
17
+ * @version 1.108.22
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @namespace
17
17
  * @name sap.ushell_abap
18
18
  * @author SAP SE
19
- * @version 1.108.21
19
+ * @version 1.108.22
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.108.21",
25
+ version: "1.108.22",
26
26
  dependencies: ["sap.ui.core", "sap.m"],
27
27
  noLibraryCSS: true,
28
28
  extensions: {