@sapui5/sap.ushell_abap 1.97.1 → 1.100.0

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.
Files changed (97) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ushell_abap/.library +2 -2
  3. package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +1 -1
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +2 -2
  5. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +2 -2
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +2 -2
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +16 -2
  8. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +37 -4
  9. package/src/main/js/sap/ushell_abap/adapters/abap/MenuAdapter.js +65 -15
  10. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +2 -2
  11. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +2 -2
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +1577 -36
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +2 -2
  14. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +2 -2
  15. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +2 -2
  16. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +2 -2
  17. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +1 -1
  18. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +2 -2
  19. package/src/main/js/sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler.js +1 -1
  20. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def-dev.js +1 -1
  21. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def-loader.js +7 -0
  22. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap-def.js +13 -10
  23. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.backend.config.requestor.js +198 -0
  24. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +6 -4
  25. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +2 -2
  26. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.constants.js +1 -1
  27. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.js +1 -1
  28. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +2 -17
  29. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.pageset.js +1 -1
  30. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.startup.js +1 -1
  31. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.theme.handler.js +1 -1
  32. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.ui5.boot.handler.js +1 -1
  33. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhr.handler.js +1 -1
  34. package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +10 -16
  35. package/src/main/js/sap/ushell_abap/library.js +3 -3
  36. package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +1 -1
  37. package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +1 -6
  38. package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +1 -1
  39. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +172 -17
  40. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +1 -1
  41. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +14 -6
  42. package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +1 -1
  43. package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +1 -1
  44. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +1 -1
  45. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1 -1
  46. package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +1 -8
  47. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +1 -1
  48. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +1 -1
  49. package/src/main/js/sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js +1 -1
  50. package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +1 -8
  51. package/src/main/js/sap/ushell_abap/pbServices/ui2/chipdefinition.xsd +0 -1
  52. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +1 -1
  53. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +1 -1
  54. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +1 -1
  55. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +48 -6
  56. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js +1 -1
  57. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/preview.js +1 -1
  58. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/refresh.js +1 -1
  59. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +1 -1
  60. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/types.js +1 -1
  61. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/url.js +1 -1
  62. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +1 -1
  63. package/src/main/js/sap/ushell_abap/support/plugins/app-infra/AppInfraOnSapNetWeaverSupportPlugin.js +1 -1
  64. package/src/main/js/sap/ushell_abap/ui5appruntime/AppInfoAdapter.js +1 -1
  65. package/ui5.yaml +379 -32
  66. package/src/main/js/sap/ui2/srvc/ODataService.js +0 -267
  67. package/src/main/js/sap/ui2/srvc/ODataWrapper.js +0 -1283
  68. package/src/main/js/sap/ui2/srvc/PageBuildingService.js +0 -1508
  69. package/src/main/js/sap/ui2/srvc/RemoteCatalogService.js +0 -49
  70. package/src/main/js/sap/ui2/srvc/allcatalogs.js +0 -197
  71. package/src/main/js/sap/ui2/srvc/bag.js +0 -711
  72. package/src/main/js/sap/ui2/srvc/catalog.js +0 -946
  73. package/src/main/js/sap/ui2/srvc/chip.js +0 -1035
  74. package/src/main/js/sap/ui2/srvc/chipdefinition.js +0 -228
  75. package/src/main/js/sap/ui2/srvc/chipinstance.js +0 -944
  76. package/src/main/js/sap/ui2/srvc/contracts/actions.js +0 -239
  77. package/src/main/js/sap/ui2/srvc/contracts/bag.js +0 -145
  78. package/src/main/js/sap/ui2/srvc/contracts/configuration.js +0 -161
  79. package/src/main/js/sap/ui2/srvc/contracts/configurationUi.js +0 -326
  80. package/src/main/js/sap/ui2/srvc/contracts/fullscreen.js +0 -69
  81. package/src/main/js/sap/ui2/srvc/contracts/navigation.js +0 -48
  82. package/src/main/js/sap/ui2/srvc/contracts/preview.js +0 -289
  83. package/src/main/js/sap/ui2/srvc/contracts/refresh.js +0 -42
  84. package/src/main/js/sap/ui2/srvc/contracts/search.js +0 -109
  85. package/src/main/js/sap/ui2/srvc/contracts/searchProvider.js +0 -46
  86. package/src/main/js/sap/ui2/srvc/contracts/types.js +0 -9
  87. package/src/main/js/sap/ui2/srvc/contracts/url.js +0 -104
  88. package/src/main/js/sap/ui2/srvc/contracts/visible.js +0 -122
  89. package/src/main/js/sap/ui2/srvc/error.js +0 -54
  90. package/src/main/js/sap/ui2/srvc/factory.js +0 -656
  91. package/src/main/js/sap/ui2/srvc/page.js +0 -934
  92. package/src/main/js/sap/ui2/srvc/pageset.js +0 -466
  93. package/src/main/js/sap/ui2/srvc/utils.js +0 -923
  94. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +0 -108
  95. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +0 -69
  96. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.validate.Url.js +0 -54
  97. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/navigation.js +0 -50
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ushell_abap",
3
- "version": "1.97.1",
3
+ "version": "1.100.0",
4
4
  "description": "SAPUI5 Library sap.ushell_abap",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "keywords": [
@@ -2,8 +2,8 @@
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.97.1</version>
6
- <copyright>Copyright (c) 2009-2022 SAP SE. All rights reserved.</copyright>
5
+ <version>1.100.0</version>
6
+ <copyright>Copyright (c) 2009-2022 SAP SE, All Rights Reserved</copyright>
7
7
  <documentation>SAP library: sap.ushell_abap</documentation>
8
8
 
9
9
  <dependencies>
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  sap.ui.define([
4
4
  "sap/base/util/ObjectPath",
@@ -1,8 +1,8 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's AppStateAdapter for the ABAP platform.
5
- * @version 1.97.1
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview ClientSideTargetResolutionAdapter for the abap platform.
@@ -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.97.1
12
+ * @version 1.100.0
13
13
  */
14
14
  sap.ui.define([
15
15
  "sap/ui/thirdparty/jquery",
@@ -1,8 +1,8 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview The ConfigurationDefaults adapter for the ABAP platform.
5
- * @version 1.97.1
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ushell_abap/bootstrap/evo/abap.constants",
@@ -1,8 +1,8 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
  /**
3
3
  * @fileOverview The Unified Shell's container adapter for the ABAP platform.
4
4
  *
5
- * @version 1.97.1
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/jquery",
@@ -222,6 +222,20 @@ sap.ui.define([
222
222
  break;
223
223
  }
224
224
  }
225
+ // Dark Mode Auto Detection - whether the user has disabled it
226
+ if (oUserProfileParameter.id === "THEME_DARKMODE_AUTO_DETECTION") {
227
+ switch (oUserProfileParameter.value) {
228
+ case "false":
229
+ oStartupResult.detectDarkMode = false;
230
+ break;
231
+ case "true":
232
+ oStartupResult.detectDarkMode = true;
233
+ break;
234
+ default:
235
+ oStartupResult.detectDarkMode = undefined;
236
+ break;
237
+ }
238
+ }
225
239
  });
226
240
  }
227
241
  };
@@ -1,8 +1,8 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
- * @version 1.97.1
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/ui/thirdparty/URI",
@@ -2594,6 +2594,31 @@ sap.ui.define([
2594
2594
  return sId;
2595
2595
  };
2596
2596
 
2597
+ /**
2598
+ * Returns the stable id of the catalog tile.
2599
+ * Note: If no stable id can be retrieved (For example for technical catalog tiles) or the reference is broken
2600
+ * a fallback to the normal id is in place.
2601
+ *
2602
+ * @param {sap.ui2.ChipInstance} oTile the tile or the catalog tile
2603
+ * @returns {string} the stable id
2604
+ * @private
2605
+ * @since 1.98.0
2606
+ */
2607
+ this.getStableCatalogTileId = function (oTile) {
2608
+ var oChip = oTile.getChip();
2609
+ var sStableId = oChip.getReferenceChipId();
2610
+
2611
+ if (sStableId === "O") {
2612
+ // The reference is broken. We do not want to return the value indicating that
2613
+ sStableId = null;
2614
+ }
2615
+ if (!sStableId) {
2616
+ sStableId = this.getCatalogTileId(oTile);
2617
+ }
2618
+
2619
+ return sStableId;
2620
+ };
2621
+
2597
2622
  /**
2598
2623
  * Returns the catalog tile's title. May be called for a catalog tile or (since 1.32.0) for a group tile.
2599
2624
  *
@@ -3665,8 +3690,16 @@ sap.ui.define([
3665
3690
 
3666
3691
  oResponse.results.forEach(function (oCatalog) {
3667
3692
  oCatalog.Chips.results.forEach(function (oChip) {
3668
- if (!oCatalogTileIndex[oChip.id]) {
3669
- oCatalogTileIndex[oChip.id] = oChip;
3693
+ var sChipId;
3694
+
3695
+ if (Config.last("/core/stableIDs/enabled") && oChip.referenceChipId) {
3696
+ sChipId = oChip.referenceChipId;
3697
+ } else {
3698
+ sChipId = oChip.id;
3699
+ }
3700
+
3701
+ if (!oCatalogTileIndex[sChipId]) {
3702
+ oCatalogTileIndex[sChipId] = oChip;
3670
3703
  }
3671
3704
  });
3672
3705
  });
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview MenuAdapter for the ABAP platform.
@@ -37,17 +37,77 @@ sap.ui.define([
37
37
 
38
38
  /**
39
39
  * Gets the menu entries for the spaces assigned to the user.
40
- *
40
+ * Handles the MyHomeSpace visibility.
41
41
  * @returns {Promise<MenuEntry[]>} The menu entries, @see sap.ushell.services.menu#MenuEntry
42
42
  *
43
43
  * @since 1.72.0
44
44
  * @private
45
45
  */
46
- MenuAdapter.prototype.getMenuEntries = function () {
46
+ MenuAdapter.prototype.getMenuEntries = function () {
47
+ var bHomeAppEnabled = Config.last("/core/homeApp/enabled");
48
+ var bMyHomeSpaceEnabled = Config.last("/core/spaces/myHome/enabled");
49
+ var bMyHomeUserEnabled = Config.last("/core/spaces/myHome/userEnabled");
50
+ var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
51
+
52
+ var aMetatagMenu = this._getAssignedSpaces();
47
53
 
54
+ // only remove myHomeSpace when myHome is enabled and user has disabled it
55
+ // remove myHomeSpace when homeApp is enabled
56
+ if ((bHomeAppEnabled && bMyHomeSpaceEnabled) || (bMyHomeSpaceEnabled && !bMyHomeUserEnabled)) {
57
+ for (var i = 0; i < aMetatagMenu.length; i++) {
58
+ if (aMetatagMenu[i].id === sMyHomeSpaceId) {
59
+ aMetatagMenu = aMetatagMenu.slice(1);
60
+ break;
61
+ }
62
+ }
63
+ }
64
+ var aMenuEntries = this._buildMenuEntries(aMetatagMenu);
65
+ return Promise.resolve(aMenuEntries);
66
+ };
67
+
68
+ /**
69
+ * Gets the menu entries for the spaces assigned to the user.
70
+ * Handles the MyHomeSpace visibility.
71
+ * Those menu items and their structure is used for the selection in bookmarking.
72
+ * @returns {Promise<MenuEntry[]>} The menu entries, @see sap.ushell.services.menu#MenuEntry
73
+ *
74
+ * @since 1.100.0
75
+ * @private
76
+ */
77
+ MenuAdapter.prototype.getContentNodes = function () {
78
+ var bHomeAppEnabled = Config.last("/core/homeApp/enabled");
79
+ var bMyHomeSpaceEnabled = Config.last("/core/spaces/myHome/enabled");
80
+ var bMyHomeUserEnabled = Config.last("/core/spaces/myHome/userEnabled");
81
+ var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
82
+
83
+ var aMetatagMenu = this._getAssignedSpaces();
84
+ // only remove myHomeSpace when myHome is enabled and user has disabled it
85
+ // but always keep myHomeSpace when homeApp is enabled
86
+ if (!bHomeAppEnabled && bMyHomeSpaceEnabled && !bMyHomeUserEnabled) {
87
+ for (var i = 0; i < aMetatagMenu.length; i++) {
88
+ if (aMetatagMenu[i].id === sMyHomeSpaceId) {
89
+ aMetatagMenu = aMetatagMenu.slice(1);
90
+ break;
91
+ }
92
+ }
93
+ }
94
+ var aMenuEntries = this._buildMenuEntries(aMetatagMenu);
95
+ return Promise.resolve(aMenuEntries);
96
+ };
97
+
98
+ /**
99
+ * Builds based on the metatags a menu which is accepted by the menu service
100
+ * @param {object[]} aMetatagMenu The menu content from the metatags
101
+ * @returns {MenuEntry[]} The menu structure required by the menu service, @see sap.ushell.services.menu#MenuEntry
102
+ *
103
+ * @private
104
+ * @since 1.100.0
105
+ */
106
+ MenuAdapter.prototype._buildMenuEntries = function (aMetatagMenu) {
48
107
  // Create a 1st level menu entry for each user-assigned space
49
108
  // having 2nd level sub menu entries for its pages inside if needed
50
- var aMenuEntries = this._getAssignedSpaces()
109
+
110
+ var aMenuEntries = aMetatagMenu
51
111
  .filter(function (oSpace) {
52
112
 
53
113
  // No menu entry for a space, if no page assigned
@@ -115,13 +175,12 @@ sap.ui.define([
115
175
  return oTopMenuEntry;
116
176
  });
117
177
 
118
- return Promise.resolve(aMenuEntries);
178
+ return aMenuEntries;
119
179
  };
120
180
 
121
181
  /**
122
182
  * Gets the menu entries for the pages assigned to the user by querying the
123
183
  * content of the meta tag with the name' sap.ushell.assignedSpaces'.
124
- * Spaces without pages are not included in the result.
125
184
  *
126
185
  * @returns {object[]} The assigned spaces from the 'sap.ushell.assignedSpaces' meta tag
127
186
  *
@@ -134,15 +193,6 @@ sap.ui.define([
134
193
  return [];
135
194
  }
136
195
  var aMetatagMenu = JSON.parse(oMetatag.getAttribute("content"));
137
- var sMyHomeSpaceId = Config.last("/core/spaces/myHome/myHomeSpaceId");
138
- if (Config.last("/core/spaces/myHome/enabled") && !Config.last("/core/spaces/myHome/userEnabled")) {
139
- for (var i = 0; i < aMetatagMenu.length; i++) {
140
- if (aMetatagMenu[i].id === sMyHomeSpaceId) {
141
- aMetatagMenu = aMetatagMenu.slice(1);
142
- break;
143
- }
144
- }
145
- }
146
196
  return aMetatagMenu;
147
197
  };
148
198
 
@@ -1,4 +1,4 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview The NavTargetResolution adapter for the ABAP platform.
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the abap
9
9
  * platform.
10
10
  *
11
- * @version 1.97.1
11
+ * @version 1.100.0
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
@@ -1,8 +1,8 @@
1
- // Copyright (c) 2009-2022 SAP SE. All rights reserved.
1
+ // Copyright (c) 2009-2022 SAP SE, All Rights Reserved
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
- * @version 1.97.1
5
+ * @version 1.100.0
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",