@sapui5/sap.ushell_abap 1.94.0 → 1.96.1

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 (115) hide show
  1. package/package.json +1 -1
  2. package/src/main/js/sap/ui2/srvc/ODataWrapper.js +1 -1
  3. package/src/main/js/sap/ushell_abap/.library +4 -9
  4. package/src/main/js/sap/ushell_abap/adapters/abap/AdapterContainer.js +12 -5
  5. package/src/main/js/sap/ushell_abap/adapters/abap/AppStateAdapter.js +11 -7
  6. package/src/main/js/sap/ushell_abap/adapters/abap/ClientSideTargetResolutionAdapter.js +47 -32
  7. package/src/main/js/sap/ushell_abap/adapters/abap/ConfigurationDefaultsAdapter.js +1 -1
  8. package/src/main/js/sap/ushell_abap/adapters/abap/ContainerAdapter.js +46 -38
  9. package/src/main/js/sap/ushell_abap/adapters/abap/LaunchPageAdapter.js +438 -398
  10. package/src/main/js/sap/ushell_abap/adapters/abap/NavTargetResolutionAdapter.js +1 -1
  11. package/src/main/js/sap/ushell_abap/adapters/abap/PageBuildingAdapter.js +25 -15
  12. package/src/main/js/sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js +3 -2
  13. package/src/main/js/sap/ushell_abap/adapters/abap/PersonalizationAdapter.js +16 -7
  14. package/src/main/js/sap/ushell_abap/adapters/abap/SearchAdapter.js +1 -1
  15. package/src/main/js/sap/ushell_abap/adapters/abap/SupportTicketAdapter.js +8 -8
  16. package/src/main/js/sap/ushell_abap/adapters/abap/Ui5ComponentLoaderAdapter.js +1 -1
  17. package/src/main/js/sap/ushell_abap/adapters/abap/UserInfoAdapter.js +11 -4
  18. package/src/main/js/sap/ushell_abap/adapters/hana/ContainerAdapter.js +9 -3
  19. package/src/main/js/sap/ushell_abap/bootstrap/evo/XhrLogonEventHandler.js +13 -11
  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.js +1 -1
  22. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.bootstrap.utils.js +8 -4
  23. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.configure.ushell.js +1 -1
  24. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.constants.js +9 -0
  25. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.get.server.config.Urls.js +12 -5
  26. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.load.launchpad.js +21 -22
  27. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.pageset.js +8 -2
  28. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.server.config.js +6 -3
  29. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.request.startup.js +10 -5
  30. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.ui5.boot.handler.js +7 -4
  31. package/src/main/js/sap/ushell_abap/bootstrap/evo/abap.xhr.handler.js +10 -3
  32. package/src/main/js/sap/ushell_abap/bootstrap/evo/boottask.js +21 -16
  33. package/src/main/js/sap/ushell_abap/library.js +2 -2
  34. package/src/main/js/sap/ushell_abap/pbServices/ui2/AllCatalogs.js +186 -0
  35. package/src/main/js/sap/ushell_abap/pbServices/ui2/Bag.js +704 -0
  36. package/src/main/js/sap/ushell_abap/pbServices/ui2/Catalog.js +930 -0
  37. package/src/main/js/sap/ushell_abap/pbServices/ui2/Chip.js +1027 -0
  38. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipDefinition.js +216 -0
  39. package/src/main/js/sap/ushell_abap/pbServices/ui2/ChipInstance.js +933 -0
  40. package/src/main/js/sap/ushell_abap/pbServices/ui2/Error.js +45 -0
  41. package/src/main/js/sap/ushell_abap/pbServices/ui2/Factory.js +647 -0
  42. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataService.js +251 -0
  43. package/src/main/js/sap/ushell_abap/pbServices/ui2/ODataWrapper.js +1262 -0
  44. package/src/main/js/sap/ushell_abap/pbServices/ui2/Page.js +920 -0
  45. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageBuildingService.js +1498 -0
  46. package/src/main/js/sap/ushell_abap/pbServices/ui2/PageSet.js +466 -0
  47. package/src/main/js/sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js +52 -0
  48. package/src/main/js/sap/ushell_abap/pbServices/ui2/Utils.js +767 -0
  49. package/src/main/js/sap/ushell_abap/pbServices/ui2/chipdefinition.xsd +139 -0
  50. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/actions.js +244 -0
  51. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/bag.js +150 -0
  52. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configuration.js +165 -0
  53. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js +330 -0
  54. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js +70 -0
  55. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/navigation.js +50 -0
  56. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/preview.js +289 -0
  57. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/refresh.js +43 -0
  58. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/search.js +115 -0
  59. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/types.js +9 -0
  60. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/url.js +105 -0
  61. package/src/main/js/sap/ushell_abap/pbServices/ui2/contracts/visible.js +128 -0
  62. package/ui5.yaml +30 -0
  63. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/Component.js +0 -426
  64. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/css/style.css +0 -1
  65. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n.properties +0 -56
  66. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ar.properties +0 -36
  67. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_bg.properties +0 -36
  68. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ca.properties +0 -36
  69. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_cs.properties +0 -36
  70. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_cy.properties +0 -36
  71. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_da.properties +0 -36
  72. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_de.properties +0 -36
  73. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_el.properties +0 -36
  74. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en.properties +0 -36
  75. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_GB.properties +0 -36
  76. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_sappsd.properties +0 -36
  77. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_saprigi.properties +0 -36
  78. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_en_US_saptrc.properties +0 -36
  79. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_es.properties +0 -36
  80. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_es_MX.properties +0 -36
  81. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_et.properties +0 -36
  82. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fi.properties +0 -36
  83. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fr.properties +0 -36
  84. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_fr_CA.properties +0 -36
  85. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hi.properties +0 -36
  86. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hr.properties +0 -36
  87. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_hu.properties +0 -36
  88. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_id.properties +0 -36
  89. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_it.properties +0 -36
  90. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_iw.properties +0 -36
  91. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ja.properties +0 -36
  92. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_kk.properties +0 -36
  93. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ko.properties +0 -36
  94. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_lt.properties +0 -36
  95. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_lv.properties +0 -36
  96. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ms.properties +0 -36
  97. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_nl.properties +0 -36
  98. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_no.properties +0 -36
  99. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pl.properties +0 -36
  100. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pt.properties +0 -36
  101. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_pt_PT.properties +0 -36
  102. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ro.properties +0 -36
  103. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_ru.properties +0 -36
  104. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sh.properties +0 -36
  105. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sk.properties +0 -36
  106. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sl.properties +0 -36
  107. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_sv.properties +0 -36
  108. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_th.properties +0 -36
  109. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_tr.properties +0 -36
  110. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_uk.properties +0 -36
  111. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_vi.properties +0 -36
  112. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_zh_CN.properties +0 -36
  113. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/i18n/i18n_zh_TW.properties +0 -36
  114. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/manifest.json +0 -153
  115. package/src/main/js/sap/ushell_abap/plugins/fcc-transport-ui/model/models.js +0 -14
@@ -8,7 +8,7 @@
8
8
  * service now calls the ClientSideTargetResolution service in the abap
9
9
  * platform.
10
10
  *
11
- * @version 1.94.0
11
+ * @version 1.96.1
12
12
  */
13
13
  sap.ui.define([], function () {
14
14
  "use strict";
@@ -2,18 +2,20 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Unified Shell's page building adapter for the ABAP platform.
5
- * @version 1.94.0
5
+ * @version 1.96.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
9
- "sap/ui2/srvc/factory",
10
- "sap/ui2/srvc/PageBuildingService",
11
- "sap/ui2/srvc/RemoteCatalogService",
12
- "sap/ui2/srvc/pageset",
9
+ "sap/base/Log",
10
+ "sap/ushell_abap/pbServices/ui2/Factory",
11
+ "sap/ushell_abap/pbServices/ui2/PageBuildingService",
12
+ "sap/ushell_abap/pbServices/ui2/RemoteCatalogService",
13
+ "sap/ushell_abap/pbServices/ui2/PageSet",
13
14
  "sap/ushell/System"
14
15
  ], function (
15
- ObjectPath
16
- // factory
16
+ ObjectPath,
17
+ Log,
18
+ Factory
17
19
  // PageBuildingService
18
20
  // RemoteCatalogService
19
21
  // pageset
@@ -29,7 +31,7 @@ sap.ui.define([
29
31
  * contain a map of remote catalog base URLs to corresponding remote catalog services.
30
32
  * Each such service is assumed to be a no-args constructor function.
31
33
  * First the module is required and then the constructor is called, passing the result to
32
- * {@link sap.ui2.srvc.Factory#addRemoteCatalogService}.
34
+ * {@link sap.ushell_abap.pbServices.ui2.Factory#addRemoteCatalogService}.
33
35
  * <p>
34
36
  * <b>Example:</b>
35
37
  * <pre>
@@ -38,7 +40,7 @@ sap.ui.define([
38
40
  * adapter: {
39
41
  * config: {
40
42
  * remoteCatalogServices: {
41
- * "/sap/opu/odata/UI2/PAGE_BUILDER_PERS/": "sap.ui2.srvc.RemoteCatalogService",
43
+ * "/sap/opu/odata/UI2/PAGE_BUILDER_PERS/": "sap.ushell_abap.pbServices.ui2.RemoteCatalogService",
42
44
  * "/foo": "acme.BarService"
43
45
  * }
44
46
  * }
@@ -47,10 +49,10 @@ sap.ui.define([
47
49
  * }
48
50
  * </pre>
49
51
  * With the given configuration the adapter registers remote catalog services for two base URLs
50
- * using <code>sap.ui2.srvc.RemoteCatalogService</code> and <code>acme.BarService</code> resp.
52
+ * using <code>sap.ushell_abap.pbServices.ui2.RemoteCatalogService</code> and <code>acme.BarService</code> resp.
51
53
  * as remote catalog service constructor functions.
52
54
  * <p>
53
- * If not specified otherwise, <code>sap.ui2.srvc.RemoteCatalogService</code> is registered as
55
+ * If not specified otherwise, <code>sap.ushell_abap.pbServices.ui2.RemoteCatalogService</code> is registered as
54
56
  * a remote catalog service for the following base URLs:
55
57
  * <ul>
56
58
  * <li> "/sap/hba/apps/kpi/s/odata/hana_chip_catalog.xsodata/" (legacy HANA catalogs)</li>
@@ -79,7 +81,7 @@ sap.ui.define([
79
81
 
80
82
  /**
81
83
  * Returns the UI2 page building factory.
82
- * @returns {sap.ui2.srvc.Factory} the page building factory
84
+ * @returns {sap.ushell_abap.pbServices.ui2.Factory} the page building factory
83
85
  */
84
86
  this.getFactory = function () {
85
87
  return oFactory;
@@ -101,7 +103,7 @@ sap.ui.define([
101
103
  sPageBuilderServiceUrl = sConfigBaseUrl;
102
104
  }
103
105
 
104
- oFactory = sap.ui2.srvc.createFactory(
106
+ oFactory = Factory.createFactory(
105
107
  sPageBuilderServiceUrl,
106
108
  undefined,
107
109
  sScope === "PERS"
@@ -113,12 +115,20 @@ sap.ui.define([
113
115
  "/sap/opu/odata/sap/SM_CATALOG_SRV/"
114
116
  ].forEach(function (sBaseUrl) {
115
117
  if (!Object.prototype.hasOwnProperty.call(mRemoteCatalogServices, sBaseUrl)) {
116
- mRemoteCatalogServices[sBaseUrl] = "sap.ui2.srvc.RemoteCatalogService";
118
+ mRemoteCatalogServices[sBaseUrl] = "sap.ushell_abap.pbServices.ui2.RemoteCatalogService";
117
119
  }
118
120
  });
119
121
  Object.keys(mRemoteCatalogServices).forEach(function (sBaseUrl) {
120
122
  var sRemoteCatalogService = mRemoteCatalogServices[sBaseUrl];
121
- jQuery.sap.require(sRemoteCatalogService); // TODO: remove jQuery.sap
123
+ // Convert to new "home" of RemoteCatalogService
124
+ if (sRemoteCatalogService === "sap.ui2.srvc.RemoteCatalogService") {
125
+ sRemoteCatalogService = "sap.ushell_abap.pbServices.ui2.RemoteCatalogService";
126
+ }
127
+ var sModulePath = (sRemoteCatalogService || "").replace(/\./g, "/");
128
+ if (!sap.ui.require(sModulePath)) {
129
+ Log.error("FLP PageBuildingAdapter: remote catalog service " + sModulePath + " must be loaded before use.");
130
+ sap.ui.requireSync(sModulePath);
131
+ }
122
132
  oFactory.addRemoteCatalogService(sBaseUrl,
123
133
  new (ObjectPath.get(sRemoteCatalogService))());
124
134
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview PagePersistenceAdapter for the ABAP platform.
5
- * @version 1.94.0
5
+ * @version 1.96.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/ObjectPath",
@@ -2636,6 +2636,7 @@ sap.ui.define([
2636
2636
  subTitle: oViz.subTitle,
2637
2637
  icon: oViz.iconUrl,
2638
2638
  info: chipsUtils.getInfoFromSimplifiedChip(oSimplifiedChip),
2639
+ keywords: chipsUtils.getKeywordsFromSimplifiedChip(oSimplifiedChip),
2639
2640
  size: chipsUtils.getTileSizeFromSimplifiedChip(oSimplifiedChip),
2640
2641
  indicatorDataSource: chipsUtils.getIndicatorDataSourceFromSimplifiedChip(oSimplifiedChip),
2641
2642
  url: chipsUtils.getTargetUrlFromSimplifiedChip(oSimplifiedChip, URLParsing),
@@ -2678,7 +2679,7 @@ sap.ui.define([
2678
2679
  *
2679
2680
  * @param {object} oVisualization The visualization to create the chip from
2680
2681
  * @returns {object}
2681
- * A simplified version of the sap.ui2.srvc.ChipInstance.
2682
+ * A simplified version of the sap.ushell_abap.pbServices.ui2.ChipInstance.
2682
2683
  * The object structure of the simplified chip model can be viewed in the "simplifiedChipModel.md" document in the FLP core-concepts GitHub repository.
2683
2684
  *
2684
2685
  * @since 1.90.0
@@ -7,16 +7,25 @@
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.94.0
10
+ * @version 1.96.1
11
11
  */
12
12
  sap.ui.define([
13
13
  "sap/ushell_abap/adapters/abap/AdapterContainer",
14
14
  "sap/ushell/services/Personalization",
15
15
  "sap/ushell/services/_Personalization/constants",
16
- "sap/ui2/srvc/ODataWrapper",
17
- "sap/ui2/srvc/ODataService",
16
+ "sap/ushell_abap/pbServices/ui2/ODataWrapper",
17
+ "sap/ushell_abap/pbServices/ui2/ODataService",
18
+ "sap/ushell_abap/pbServices/ui2/Error",
18
19
  "sap/base/util/ObjectPath"
19
- ], function (AdapterContainer, Personalization, constants, ODataWrapper, ODataService, ObjectPath) {
20
+ ], function (
21
+ AdapterContainer,
22
+ Personalization,
23
+ constants,
24
+ ODataWrapper,
25
+ ODataService,
26
+ SrvcError,
27
+ ObjectPath
28
+ ) {
20
29
  "use strict";
21
30
 
22
31
  // --- Adapter ---
@@ -43,11 +52,11 @@ sap.ui.define([
43
52
  "sap-language": sap.ushell.Container.getUser().getLanguage(),
44
53
  "sap-client": sap.ushell.Container.getLogonSystem().getClient()
45
54
  };
46
- this._oWrapper = sap.ui2.srvc.createODataWrapper(oODataWrapperSettings);
55
+ this._oWrapper = ODataWrapper.createODataWrapper(oODataWrapperSettings);
47
56
  function fnDefaultFailure (oMessage) {
48
- sap.ui2.srvc.Error(oMessage, "sap.ushell_abap.adapters.abap.PersonalizationAdapter");
57
+ throw new SrvcError(oMessage, "sap.ushell_abap.adapters.abap.PersonalizationAdapter");
49
58
  }
50
- sap.ui2.srvc.ODataService.call(this, this._oWrapper, fnDefaultFailure);
59
+ ODataService.call(this, this._oWrapper, fnDefaultFailure);
51
60
  };
52
61
 
53
62
  // historically, the service always called getAdapterContainer and then load
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @fileOverview The Search adapter for the ABAP platform.
5
- * @version 1.94.0
5
+ * @version 1.96.1
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.94.0
5
+ * @version 1.96.1
6
6
  */
7
7
  sap.ui.define([
8
8
  "sap/base/util/isEmptyObject",
@@ -10,16 +10,16 @@ sap.ui.define([
10
10
  "sap/ui/thirdparty/jquery",
11
11
  "sap/ushell/utils",
12
12
  "sap/ushell/resources",
13
- "sap/ui2/srvc/ODataWrapper",
14
- "sap/ui2/srvc/ODataService"
13
+ "sap/ushell_abap/pbServices/ui2/ODataWrapper",
14
+ "sap/ushell_abap/pbServices/ui2/ODataService"
15
15
  ], function (
16
16
  isEmptyObject,
17
17
  ObjectPath,
18
18
  jQuery,
19
19
  utils,
20
- resources
21
- // ODataWrapper
22
- // ODataService
20
+ resources,
21
+ ODataWrapper,
22
+ ODataService
23
23
  ) {
24
24
  "use strict";
25
25
 
@@ -92,8 +92,8 @@ sap.ui.define([
92
92
  "sap-language": oContainer.getUser().getLanguage(),
93
93
  "sap-client": oContainer.getLogonSystem().getClient()
94
94
  };
95
- oDataWrapper = new sap.ui2.srvc.createODataWrapper(oODataWrapperSettings);
96
- sap.ui2.srvc.ODataService.call(this, oDataWrapper, function () {
95
+ oDataWrapper = new ODataWrapper.createODataWrapper(oODataWrapperSettings);
96
+ ODataService.call(this, oDataWrapper, function () {
97
97
  return false;
98
98
  });
99
99
 
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * @fileOverview The Unified Shell's Ui5ComponentLoaderAdapter for the ABAP platform
4
4
  *
5
- * @version 1.94.0
5
+ * @version 1.96.1
6
6
  */
7
7
  sap.ui.define([
8
8
  ], function () {
@@ -1,13 +1,20 @@
1
1
  // Copyright (c) 2009-2021 SAP SE. All rights reserved.
2
2
 
3
3
  sap.ui.define([
4
- "sap/ui2/srvc/ODataWrapper",
5
- "sap/ui2/srvc/ODataService",
4
+ "sap/ushell_abap/pbServices/ui2/ODataWrapper",
5
+ "sap/ushell_abap/pbServices/ui2/ODataService",
6
6
  "sap/ui/thirdparty/datajs",
7
7
  "sap/ui/thirdparty/jquery",
8
8
  "sap/base/Log",
9
9
  "sap/ushell/resources"
10
- ], function (ODataWrapper, ODataService, OData, jQuery, Log, resources) {
10
+ ], function (
11
+ ODataWrapper,
12
+ ODataService,
13
+ OData,
14
+ jQuery,
15
+ Log,
16
+ resources
17
+ ) {
11
18
  "use strict";
12
19
 
13
20
  /**
@@ -182,7 +189,7 @@ sap.ui.define([
182
189
  };
183
190
 
184
191
  this._createWrapper = function (sBaseUrl) {
185
- return sap.ui2.srvc.createODataWrapper(sBaseUrl, false, function (sError) { /*default error handler*/ });
192
+ return ODataWrapper.createODataWrapper(sBaseUrl, false, function (sError) { /*default error handler*/ });
186
193
  };
187
194
 
188
195
  /**
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * @fileOverview The Unified Shell's container adapter for the HANA platform.
5
5
  *
6
- * @version 1.94.0
6
+ * @version 1.96.1
7
7
  */
8
8
  /**
9
9
  * @namespace Default namespace for Unified Shell adapters for the HANA platform. They can usually
@@ -16,12 +16,18 @@
16
16
  * @private
17
17
  */
18
18
  sap.ui.define([
19
- "sap/ui2/srvc/utils",
19
+ "sap/ushell_abap/pbServices/ui2/Utils",
20
20
  "sap/ushell/System",
21
21
  "sap/ushell/User",
22
22
  "sap/ui/thirdparty/jquery",
23
23
  "sap/base/Log"
24
- ], function (utils, System, User, jQuery, Log) {
24
+ ], function (
25
+ Utils,
26
+ System,
27
+ User,
28
+ jQuery,
29
+ Log
30
+ ) {
25
31
  "use strict";
26
32
 
27
33
  /**
@@ -2,8 +2,13 @@
2
2
 
3
3
  sap.ui.define([
4
4
  "./abap.bootstrap.utils",
5
- "sap/base/util/ObjectPath"
6
- ], function (oAbapUtils, ObjectPath) {
5
+ "sap/base/util/ObjectPath",
6
+ "sap/base/Log"
7
+ ], function (
8
+ oAbapUtils,
9
+ ObjectPath,
10
+ Log
11
+ ) {
7
12
  "use strict";
8
13
 
9
14
  /* global URI */
@@ -46,7 +51,7 @@ sap.ui.define([
46
51
  );
47
52
  }
48
53
  } else {
49
- sap.ui2.srvc.log.error("Cannot handle event with type: " + oEvent.type,
54
+ Log.error("Cannot handle event with type: " + oEvent.type,
50
55
  null, "sap.ushell_abap.bootstrap.evo.XhrLogonEventHandler");
51
56
  }
52
57
 
@@ -151,7 +156,7 @@ sap.ui.define([
151
156
  if (!this._isPageReloaded()) {
152
157
  // not in reload case, try reload once
153
158
  // no translation in fallback case
154
- sap.ui2.srvc.log.error(
159
+ Log.error(
155
160
  "Illegal state: XHR authentication (mode=reload) requested before SAPUI5 is initialized. "
156
161
  + "This should not happen if the FioriLaunchpad.html page is loaded from the server. Trying to reload page once.",
157
162
  null, "sap.ushell_abap.bootstrap.evo.XhrLogonEventHandler"
@@ -163,7 +168,7 @@ sap.ui.define([
163
168
  fnReload.call(this);
164
169
  } else {
165
170
  // reload already triggered at least once, giving up
166
- sap.ui2.srvc.log.error(
171
+ Log.error(
167
172
  "Illegal state: XHR authentication (mode=reload) requested before SAPUI5 is initialized and page reload has been triggered once."
168
173
  + " Stopping reload to avoid endless loop. This state cannot be overcome. Please ensure that the FioriLaunchpad.html"
169
174
  + " page is not cached, but always loaded from the server.",
@@ -191,10 +196,8 @@ sap.ui.define([
191
196
  // but this might trigger module loading as well normally, the 2 required modules should be part of the fiori-lib preload package,
192
197
  // so the fallback should not occur under normal circumstances
193
198
  if (sap && sap.ui && (typeof sap.ui.getCore === "function")
194
- && sap.ui.getCore().isInitialized() && jQuery.sap.isDeclared("sap.m.MessageBox", true)) {
195
- jQuery.sap.require("sap.m.MessageBox"); // TODO: remove jQuery.sap
196
- if (jQuery.sap.isDeclared("sap.ushell.resources", true)) {
197
- jQuery.sap.require("sap.ushell.resources"); // TODO: remove jQuery.sap
199
+ && sap.ui.getCore().isInitialized() && sap.ui.require("sap/m/MessageBox")) {
200
+ if (sap.ui.require("sap/ushell/resources")) {
198
201
  sTitle = this._getText(oTitleText);
199
202
  sMessage = this._getText(oMessageText);
200
203
  }
@@ -205,8 +208,7 @@ sap.ui.define([
205
208
  // Therefore we overwrite the 'show' method of the sap.ui.core.BusyIndicator class with an empty implementation body.
206
209
  // In case a 'show' call of the busy indicator with a delay is triggered, we need to stop that with a respective 'hide' call.
207
210
  // As the FLP gets reloaded afterwards, we do not need to apply the old logic of 'show' again.
208
- if (jQuery.sap.isDeclared("sap.ui.core.BusyIndicator", true)) {
209
- jQuery.sap.require("sap.ui.core.BusyIndicator"); // TODO: remove jQuery.sap
211
+ if (sap.ui.require("sap/ui/core/BusyIndicator")) {
210
212
  if (typeof sap.ui.core.BusyIndicator.show === "function" &&
211
213
  typeof sap.ui.core.BusyIndicator.hide === "function") {
212
214
  sap.ui.core.BusyIndicator.hide();
@@ -9,7 +9,7 @@ sap.ui.define([
9
9
  "sap/ushell/bootstrap/common/common.configure.ui5.extractLibs",
10
10
  "sap/ushell/bootstrap/common/common.debug.mode",
11
11
  "sap/ushell/bootstrap/common/common.load.bootstrapExtension",
12
- "sap/ui2/srvc/chip"
12
+ "sap/ushell_abap/pbServices/ui2/Chip"
13
13
  ], function (
14
14
  fnConfigureUshell,
15
15
  oUi5BootHandler,
@@ -11,7 +11,7 @@ sap.ui.define([
11
11
  "sap/ushell/bootstrap/common/common.debug.mode",
12
12
  "sap/ushell/bootstrap/common/common.load.core-min",
13
13
  "sap/ushell/bootstrap/common/common.preload.module",
14
- "sap/ui2/srvc/chip"
14
+ "sap/ushell_abap/pbServices/ui2/Chip"
15
15
  ], function (
16
16
  fnConfigureUshell,
17
17
  oUi5BootHandler,
@@ -3,8 +3,12 @@
3
3
  sap.ui.define([
4
4
  "sap/ushell/utils",
5
5
  "sap/base/util/ObjectPath",
6
- "sap/ui2/srvc/utils"
7
- ], function (oUshellUtils, ObjectPath/*, oUi2Utils*/) {
6
+ "sap/ushell_abap/pbServices/ui2/Utils"
7
+ ], function (
8
+ oUshellUtils,
9
+ ObjectPath,
10
+ Utils
11
+ ) {
8
12
  "use strict";
9
13
 
10
14
  var utils = {};
@@ -19,7 +23,7 @@ sap.ui.define([
19
23
  * @private
20
24
  */
21
25
  utils.getUrlParameterValue = function (sValue, mMap) {
22
- var mParameterMap = mMap || sap.ui2.srvc.getParameterMap();
26
+ var mParameterMap = mMap || Utils.getParameterMap();
23
27
  return mParameterMap[sValue] && mParameterMap[sValue][0];
24
28
  };
25
29
 
@@ -122,7 +126,7 @@ sap.ui.define([
122
126
  /**
123
127
  * Merge the object oConfigToMerge into oMutatedConfig according to
124
128
  * sap-ushell-config merge rules Note that the JSON serialized content of
125
- * oConfigToMerge is used, thus JSON serialization limitations apply (e.g.
129
+ * oConfigToMerge is used, thus JSON serialization restrictions apply (e.g.
126
130
  * Infinity -> null ) Note that it is thus not possible to remove a
127
131
  * property definition or overriding with {"propname" : undefined}, one
128
132
  * has to override with null or 0 etc.
@@ -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.94.0
17
+ * @version 1.96.1
18
18
  */
19
19
  sap.ui.define([
20
20
  "./abap.constants",
@@ -161,6 +161,15 @@ sap.ui.define([
161
161
  "sap.m": true,
162
162
  "sap.ushell": true
163
163
  }
164
+ },
165
+ // default for the UI5_PLACEHOLDER_SCREEN parameter is evaluated from "Manage Launchpad Settings"
166
+ // app via ConfigurationDefaults service and has therefore be defined in client constants
167
+ // (was false in 2111)
168
+ // this setting is only evaluated by Fiori Elements framework and shall be removed in a future release
169
+ apps: {
170
+ placeholder: {
171
+ enabled: true
172
+ }
164
173
  }
165
174
  }
166
175
  };
@@ -5,8 +5,15 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "./abap.validate.Url",
8
- "sap/base/util/ObjectPath"
9
- ], function (fnValidateUrl, ObjectPath) {
8
+ "sap/base/util/ObjectPath",
9
+ "sap/ushell_abap/pbServices/ui2/Utils",
10
+ "sap/base/Log"
11
+ ], function (
12
+ fnValidateUrl,
13
+ ObjectPath,
14
+ Utils,
15
+ Log
16
+ ) {
10
17
  "use strict";
11
18
 
12
19
  return getServerConfigUrls;
@@ -64,7 +71,7 @@ sap.ui.define([
64
71
 
65
72
  // try url parameter if no hardcoded url
66
73
  sHardcodedUrlOrParameterUrl = sHardcodedUrlOrParameterUrl || (
67
- sap.ui2.srvc.getParameterMap()["sap-ushell-config-url"] && sap.ui2.srvc.getParameterMap()["sap-ushell-config-url"][0]
74
+ Utils.getParameterMap()["sap-ushell-config-url"] && Utils.getParameterMap()["sap-ushell-config-url"][0]
68
75
  );
69
76
 
70
77
  if (typeof sHardcodedUrlOrParameterUrl !== "undefined") {
@@ -74,7 +81,7 @@ sap.ui.define([
74
81
 
75
82
  sValidationFailReason = fnValidateUrl(sHardcodedUrlOrParameterUrl, oAllowlist);
76
83
  if (typeof sValidationFailReason !== "undefined") {
77
- sap.ui2.srvc.log.error(sValidationFailReason, null, "sap.ushell_abap.bootstrap");
84
+ Log.error(sValidationFailReason, null, "sap.ushell_abap.bootstrap");
78
85
  } else {
79
86
  aRequestUrls.push(sHardcodedUrlOrParameterUrl);
80
87
  }
@@ -91,7 +98,7 @@ sap.ui.define([
91
98
  }
92
99
  });
93
100
  if (aDuplicateUrls.length > 0) {
94
- sap.ui2.srvc.log.error([
101
+ Log.error([
95
102
  "Duplicate Urls found in server configuration:", aDuplicateUrls.join(", ")
96
103
  ].join(" "), null, "sap.ushell_abap.bootstrap");
97
104
  }
@@ -2,26 +2,27 @@
2
2
  sap.ui.define([
3
3
  "sap/base/util/UriParameters",
4
4
  "sap/base/Log",
5
- "sap/ui2/srvc/chip",
6
- "sap/ui2/srvc/bag",
7
- "sap/ui2/srvc/contracts/bag",
8
- "sap/ui2/srvc/contracts/configuration",
9
- "sap/ui2/srvc/contracts/configurationUi",
10
- "sap/ui2/srvc/contracts/fullscreen",
11
- "sap/ui2/srvc/contracts/preview",
12
- "sap/ui2/srvc/contracts/visible",
13
- "sap/ui2/srvc/contracts/refresh",
14
- "sap/ui2/srvc/contracts/searchProvider",
15
- "sap/ui2/srvc/contracts/search",
16
- "sap/ui2/srvc/contracts/url",
17
- "sap/ui2/srvc/contracts/actions",
18
- "sap/ui2/srvc/contracts/types",
19
- "sap/ui2/srvc/error"
5
+ "sap/ushell_abap/pbServices/ui2/Chip",
6
+ "sap/ushell_abap/pbServices/ui2/Error",
7
+ "sap/ushell_abap/pbServices/ui2/Bag",
8
+ "sap/ushell_abap/pbServices/ui2/contracts/bag",
9
+ "sap/ushell_abap/pbServices/ui2/contracts/configuration",
10
+ "sap/ushell_abap/pbServices/ui2/contracts/configurationUi",
11
+ "sap/ushell_abap/pbServices/ui2/contracts/fullscreen",
12
+ "sap/ushell_abap/pbServices/ui2/contracts/preview",
13
+ "sap/ushell_abap/pbServices/ui2/contracts/visible",
14
+ "sap/ushell_abap/pbServices/ui2/contracts/refresh",
15
+ "sap/ushell_abap/pbServices/ui2/contracts/search",
16
+ "sap/ushell_abap/pbServices/ui2/contracts/url",
17
+ "sap/ushell_abap/pbServices/ui2/contracts/actions",
18
+ "sap/ushell_abap/pbServices/ui2/contracts/types"
20
19
  ], function (
21
20
  UriParameters,
22
- Log
21
+
22
+ Log,
23
+ Chip,
24
+ SrvcError
23
25
  /*
24
- ui2Chip,
25
26
  ui2Bag,
26
27
  ui2ContractsBag,
27
28
  ui2Configuration,
@@ -30,12 +31,10 @@ sap.ui.define([
30
31
  ui2Preview,
31
32
  ui2Visible,
32
33
  ui2Refresh,
33
- ui2SearchProvider,
34
34
  ui2Search,
35
35
  ui2Url,
36
36
  ui2Actions,
37
- ui2Types,
38
- ui2Error
37
+ ui2Types
39
38
  */
40
39
  ) {
41
40
  "use strict";
@@ -77,9 +76,9 @@ sap.ui.define([
77
76
  }
78
77
 
79
78
  //TODO inserted to support chips requesting this contract unecessarily
80
- sap.ui2.srvc.Chip.addContract("navigation", function (oChipInstance) {
79
+ Chip.addContract("navigation", function (oChipInstance) {
81
80
  this.navigateToUrl = function (sUrl, oSettings) {
82
- throw new sap.ui2.srvc.Error("'navigation' contract not implemented!",
81
+ throw new SrvcError("'navigation' contract not implemented!",
83
82
  "sap.ushell.adapters.abap.LaunchPageAdapter");
84
83
  };
85
84
  });
@@ -3,8 +3,14 @@
3
3
  sap.ui.define([
4
4
  "./abap.bootstrap.utils",
5
5
  "sap/ui/thirdparty/jquery",
6
+ "sap/ushell_abap/pbServices/ui2/Utils",
6
7
  "sap/base/Log"
7
- ], function (oAbapUtils, jQuery, Log) {
8
+ ], function (
9
+ oAbapUtils,
10
+ jQuery,
11
+ Utils,
12
+ Log
13
+ ) {
8
14
  "use strict";
9
15
 
10
16
  /* global OData */
@@ -149,7 +155,7 @@ sap.ui.define([
149
155
  // the responses from the "cache", even if UI5 bootstrap is faster than the
150
156
  // OData requests
151
157
  sap.ui.require(["sap/ui/thirdparty/datajs"], function (datajs) {
152
- OData.read.$cache = OData.read.$cache || new sap.ui2.srvc.Map();
158
+ OData.read.$cache = OData.read.$cache || new Utils.Map();
153
159
  OData.read.$cache.put(sUrl, oDeferred.promise());
154
160
  });
155
161
  return oDeferred;
@@ -6,8 +6,11 @@
6
6
  */
7
7
  sap.ui.define([
8
8
  "./abap.get.server.config.Urls",
9
- "sap/ui2/srvc/utils"
10
- ], function (fnGetServerConfigUrls /*, oUtil */) {
9
+ "sap/ushell_abap/pbServices/ui2/Utils"
10
+ ], function (
11
+ fnGetServerConfigUrls,
12
+ Utils
13
+ ) {
11
14
  "use strict";
12
15
 
13
16
  return requestServerConfig;
@@ -43,7 +46,7 @@ sap.ui.define([
43
46
 
44
47
  aRequestedPromise = aConfigUrls.map(function (sUrl, iIdx) {
45
48
  return new Promise(function (resolve, reject) {
46
- sap.ui2.srvc.get(
49
+ Utils.get(
47
50
  sUrl,
48
51
  false, /*xml=*/
49
52
  function (sResponseText) {