@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 +1 -1
- package/src/main/js/sap/ushell_abap/.library +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/CommonDataModelAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +56 -17
- package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +1 -1
- package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
- package/src/main/js/sap/ushell_abap/library.js +2 -2
package/package.json
CHANGED
|
@@ -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.
|
|
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
|
|
|
@@ -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.
|
|
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.
|
|
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
|
*
|
|
@@ -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.
|
|
10
|
+
* @version 1.108.22
|
|
11
11
|
*/
|
|
12
12
|
sap.ui.define([
|
|
13
13
|
"sap/ushell_abap/adapters/abap/AdapterContainer",
|
|
@@ -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.
|
|
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.
|
|
25
|
+
version: "1.108.22",
|
|
26
26
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
27
27
|
noLibraryCSS: true,
|
|
28
28
|
extensions: {
|