@sapui5/sap.ushell_abap 1.94.1 → 1.97.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 (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 +574 -454
  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 +718 -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 +951 -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 +31 -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
package/ui5.yaml CHANGED
@@ -185,6 +185,7 @@ builder:
185
185
  - sap/ui/core/ValueStateSupport.js
186
186
  - sap/ui/core/XMLComposite.js
187
187
  - sap/ui/core/XMLTemplateProcessor.js
188
+ - sap/ui/core/date/Gregorian.js
188
189
  - sap/ui/core/delegate/ItemNavigation.js
189
190
  - sap/ui/core/delegate/ScrollEnablement.js
190
191
  - sap/ui/core/dnd/DragDropInfo.js
@@ -213,6 +214,7 @@ builder:
213
214
  - sap/m/Link.js
214
215
  - sap/m/LinkRenderer.js
215
216
  - sap/m/MessagePage.js
217
+ - sap/m/MessageStrip.js
216
218
  - sap/m/NumericContent.js
217
219
  - sap/m/NumericContentRenderer.js
218
220
  - sap/m/Page.js
@@ -239,6 +241,7 @@ builder:
239
241
  - sap/ushell/renderers/fiori2/Renderer.js
240
242
  - sap/ushell/renderers/fiori2/Shell.controller.js
241
243
  - sap/ushell/renderers/fiori2/Shell.view.js
244
+ - sap/ushell/renderers/fiori2/ShellAsync.view.js
242
245
  - sap/ushell/components/CatalogsManager.js
243
246
  - sap/ushell/components/HomepageManager.js
244
247
  - sap/ushell/services/UserInfo.js
@@ -285,6 +288,34 @@ builder:
285
288
  - sap/ushell_abap/adapters/abap/PagePersistenceAdapter.js
286
289
  - sap/ushell_abap/adapters/abap/PersonalizationAdapter.js
287
290
  - sap/ushell_abap/adapters/abap/UserInfoAdapter.js
291
+ - sap/ushell_abap/pbServices/ui2/AllCatalogs.js
292
+ - sap/ushell_abap/pbServices/ui2/Bag.js
293
+ - sap/ushell_abap/pbServices/ui2/Catalog.js
294
+ - sap/ushell_abap/pbServices/ui2/Chip.js
295
+ - sap/ushell_abap/pbServices/ui2/ChipDefinition.js
296
+ - sap/ushell_abap/pbServices/ui2/chipdefinition.xsd
297
+ - sap/ushell_abap/pbServices/ui2/ChipInstance.js
298
+ - sap/ushell_abap/pbServices/ui2/Error.js
299
+ - sap/ushell_abap/pbServices/ui2/Factory.js
300
+ - sap/ushell_abap/pbServices/ui2/ODataService.js
301
+ - sap/ushell_abap/pbServices/ui2/ODataWrapper.js
302
+ - sap/ushell_abap/pbServices/ui2/Page.js
303
+ - sap/ushell_abap/pbServices/ui2/PageBuildingService.js
304
+ - sap/ushell_abap/pbServices/ui2/PageSet.js
305
+ - sap/ushell_abap/pbServices/ui2/RemoteCatalogService.js
306
+ - sap/ushell_abap/pbServices/ui2/Utils.js
307
+ - sap/ushell_abap/pbServices/ui2/contracts/actions.js
308
+ - sap/ushell_abap/pbServices/ui2/contracts/bag.js
309
+ - sap/ushell_abap/pbServices/ui2/contracts/configuration.js
310
+ - sap/ushell_abap/pbServices/ui2/contracts/configurationUi.js
311
+ - sap/ushell_abap/pbServices/ui2/contracts/fullscreen.js
312
+ - sap/ushell_abap/pbServices/ui2/contracts/navigation.js
313
+ - sap/ushell_abap/pbServices/ui2/contracts/preview.js
314
+ - sap/ushell_abap/pbServices/ui2/contracts/refresh.js
315
+ - sap/ushell_abap/pbServices/ui2/contracts/search.js
316
+ - sap/ushell_abap/pbServices/ui2/contracts/types.js
317
+ - sap/ushell_abap/pbServices/ui2/contracts/url.js
318
+ - sap/ushell_abap/pbServices/ui2/contracts/visible.js
288
319
  - sap/ushell/ui/ShellHeader.fragment.xml
289
320
  - sap/ushell/ui/ShellLayout.fragment.xml
290
321
  - sap/ushell/services/_VisualizationInstantiation/VizInstance.control.xml
@@ -1,426 +0,0 @@
1
- // Copyright (c) 2009-2021 SAP SE. All rights reserved.
2
-
3
- sap.ui.define([
4
- "sap/ui/core/Component",
5
- "./model/models",
6
- "sap/ui/model/resource/ResourceModel"
7
- ], function (Component, models, ResourceModel) {
8
- "use strict";
9
-
10
- var bInitialized = false;
11
-
12
- return Component.extend("sap.ushell_abap.plugins.fcc-transport-ui.Component", {
13
- metadata: { manifest: "json" },
14
-
15
- /**
16
- * The component is initialized by UI5 automatically during the startup of the app and calls the init method once.
17
- *
18
- * @public
19
- * @override
20
- */
21
- init: function () {
22
- // prevent duplicate instantiation
23
- if (bInitialized) {
24
- return;
25
- }
26
- bInitialized = true;
27
-
28
- // set the device model
29
- this.setModel(models.createDeviceModel(), "device");
30
-
31
- // Create a resource bundle for language specific texts
32
- var oResourceModel = new ResourceModel({ bundleName: "sap.ushell_abap.plugins.fcc-transport-ui.i18n.i18n" });
33
-
34
- // Assign the model object to the SAPUI5 core using the name "i18n"
35
- sap.ui.getCore().setModel(oResourceModel, "i18n");
36
-
37
- // register this with FCC
38
- var eventBus = sap.ui.getCore().getEventBus();
39
- eventBus.subscribe("sap.fcc.services.siteService", "beforeSave", function (sChannelId, sEventId, siteService) {
40
- siteService.doBeforeSave(this.onBeforeSave, this);
41
- }.bind(this));
42
- },
43
-
44
- openDialog: function (aMetadata) {
45
- sap.ui.require([
46
- "sap/m/Label",
47
- "sap/ui/layout/form/GridElementData",
48
- "sap/m/Input",
49
- "sap/ui/fl/LrepConnector",
50
- "sap/ui/model/json/JSONModel",
51
- "sap/ui/core/ListItem",
52
- "sap/ui/core/library",
53
- "sap/m/ComboBox",
54
- "sap/m/CheckBox",
55
- "sap/m/Text",
56
- "sap/m/Button",
57
- "sap/m/Dialog",
58
- "sap/ui/layout/form/Form",
59
- "sap/ui/layout/form/GridLayout",
60
- "sap/ui/layout/form/FormContainer",
61
- "sap/ui/layout/form/FormElement"
62
- ], function (
63
- Label,
64
- GridElementData,
65
- Input,
66
- LrepConnector,
67
- JSONModel,
68
- ListItem,
69
- coreLibrary,
70
- ComboBox,
71
- CheckBox,
72
- Text,
73
- Button,
74
- Dialog,
75
- Form,
76
- GridLayout,
77
- FormContainer,
78
- FormElement
79
- ) {
80
- // shortcut for sap.ui.core.ValueState
81
- var ValueState = coreLibrary.ValueState;
82
-
83
- var def = jQuery.Deferred(),
84
- result = aMetadata,
85
- initPackage = aMetadata.package,
86
- initTransport = aMetadata.transport;
87
-
88
- // package label
89
- var oLabelPackage = new Label({
90
- text: "{i18n>LABEL_TITLE_PACKAGE}",
91
- layoutData: new GridElementData({ hCells: "2" })
92
- });
93
-
94
- // package input
95
- var oInputPackage = new Input({
96
- maxLength: 30,
97
- layoutData: new GridElementData({ hCells: "auto" }),
98
- change: function (oEvent) {
99
- // change package name to uppercase
100
- aMetadata.package = oEvent.getSource().getValue().toUpperCase();
101
- oEvent.getSource().setValue(aMetadata.package);
102
-
103
- if (aMetadata.package) {
104
- if (aMetadata.package === "$TMP") { // local object
105
- aMetadata.transport = "";
106
- oButtonOK.setEnabled(false);
107
- oComboTransport.setEnabled(false);
108
- oComboTransport.setSelectedKey("");
109
- return;
110
- }
111
- // not local object
112
-
113
- if (!String.prototype.startsWith) { // make startsWith work in IE
114
- String.prototype.startsWith = function (searchString, position) {
115
- position = position || 0;
116
- return this.indexOf(searchString, position) === position;
117
- };
118
- }
119
- var sRelativeUrl = "/sap/bc/ui2/cdm_fcc/vhtr",
120
- sMethod = "GET",
121
- options = "package=" + aMetadata.package, // /UI2/CDM_DPS//sap-client=010&
122
- oLrepConnector = LrepConnector.createConnector();
123
- oLrepConnector
124
- .send(sRelativeUrl, sMethod, options, null)
125
- .then(function (aMetadata) {
126
- var aTransports = [],
127
- item;
128
- if (Array.isArray(aMetadata.response.transports)) {
129
- for (var j in aMetadata.response.transports) {
130
- item = aMetadata.response.transports[j];
131
- aTransports.push({
132
- "transportId": item.transportid,
133
- "description": item.description
134
- });
135
- }
136
- } else {
137
- item = aMetadata.response.transports;
138
- aTransports.push({
139
- "transportId": item.transportid,
140
- "description": item.description
141
- });
142
- }
143
- var oModel = new JSONModel();
144
- oModel.setData(aTransports);
145
- sap.ui.getCore().setModel(oModel);
146
- oComboTransport.bindItems("/", new ListItem({
147
- key: "{transportId}",
148
- text: "{transportId}",
149
- additionalText: "{description}"
150
- }));
151
- aMetadata.transport = oComboTransport.getFirstItem();
152
- oComboTransport.setSelectedItem(aMetadata.transport);
153
- oComboTransport.fireChangeEvent(aMetadata.transport);
154
- oInputPackage.setValueState(ValueState.None);
155
- oButtonOK.setEnabled(true);
156
- oComboTransport.setEnabled(true);
157
- }, function (error) {
158
- jQuery.sap.log.info(JSON.stringify(error));
159
- oInputPackage.setEnabled(true);
160
- oInputPackage.setValueState(ValueState.Error);
161
- if (error.code === 500) {
162
- oInputPackage.setValueStateText(sap.ui.getCore().getModel("i18n").getProperty("ERROR_HTTP500"));
163
- } else if (error.code === 404) {
164
- oInputPackage.setValueStateText(sap.ui.getCore().getModel("i18n").getProperty("ERROR_HTTP404"));
165
- } else {
166
- oInputPackage.setValueStateText(sap.ui.getCore().getModel("i18n").getProperty("ERROR_REQUESTFAILED"));
167
- }
168
- oButtonOK.setEnabled(false);
169
- oComboTransport.setEnabled(false);
170
- oComboTransport.setSelectedKey("");
171
- });
172
- } else { // null, undefinied, ...
173
- aMetadata.transport = "";
174
- oComboTransport.setEnabled(false);
175
- oComboTransport.setSelectedKey("");
176
- }
177
- }
178
- });
179
-
180
- // Transport label
181
- var oLabelTransport = new Label({
182
- text: "{i18n>LABEL_TITLE_TRANSPORT}",
183
- layoutData: new GridElementData({ hCells: "2" })
184
- });
185
-
186
- // Transport combobox
187
- var oComboTransport = new ComboBox({
188
- layoutData: new GridElementData({ hCells: "auto" }),
189
- showSecondaryValues: true,
190
- enabled: false,
191
- items: {
192
- path: "/",
193
- template: new ListItem({
194
- key: "{transportId}",
195
- text: "{transportId}",
196
- additionalText: "{description}"
197
- })
198
- },
199
- change: function (oEvent) {
200
- aMetadata.transport = oEvent.getSource().getValue();
201
- if (aMetadata.transport) {
202
- oButtonOK.setEnabled(true);
203
- }
204
- }
205
- });
206
-
207
- // batch checkbox
208
- var oCheckbox = new CheckBox({
209
- selected: false,
210
- layoutData: new GridElementData({ hCells: "1" }),
211
- select: function () {
212
- if (oCheckbox.getSelected()) {
213
- result.checkboxFlag = true;
214
- } else {
215
- result.checkboxFlag = false;
216
- }
217
- }
218
- });
219
-
220
- // checkbox text - used instead of standard checkbox text to enable text wrapping
221
- var oText = new Text({
222
- text: "{i18n>CHKBOX_TXT_BATCHOBJECTS}",
223
- tooltip: "{i18n>CHKBOX_TXT_BATCHOBJECTS}",
224
- wrapping: true,
225
- layoutData: new GridElementData({ hCells: "auto" })
226
- });
227
-
228
- var oButtonLO = new Button({
229
- text: "{i18n>BTN_TITLE_LOCALOBJECT}",
230
- tooltip: "{i18n>BTN_TITLE_LOCALOBJECT}",
231
- press: function () {
232
- result.package = "$tmp";
233
- result.transport = "";
234
- oDialog.close();
235
- }
236
- });
237
-
238
- var oButtonOK = new Button({
239
- text: "{i18n>BTN_TITLE_OK}",
240
- tooltip: "{i18n>BTN_TITLE_OK}",
241
- enabled: false,
242
- press: function () {
243
- oDialog.close();
244
- }
245
- });
246
-
247
- var oButtonCancel = new Button({
248
- text: "{i18n>BTN_TITLE_CANCEL}",
249
- tooltip: "{i18n>BTN_TITLE_CANCEL}",
250
- press: function () {
251
- result.package = initPackage;
252
- result.transport = initTransport;
253
- result.cancelClickedFlag = true;
254
- oDialog.close();
255
- if (result.operation === "CREATE") {
256
- var eventBus = sap.ui.getCore().getEventBus();
257
- eventBus.publish("sap.fcc.services.siteService", "onCancelCreation");
258
- }
259
- }
260
- });
261
-
262
- // fire change event if package provided initially
263
- if (aMetadata.package) {
264
- oInputPackage.setValue(aMetadata.package);
265
- oInputPackage.setEnabled(false);
266
- oButtonLO.setEnabled(false);
267
- oInputPackage.fireChangeEvent(aMetadata.package);
268
- }
269
-
270
- // Dialog title
271
- var sDialogTitle = "";
272
- if (aMetadata.id === "" || aMetadata.type === "") {
273
- sDialogTitle = "{i18n>DLG_TITLE_DEFAULTNAME}";
274
- } else {
275
- // read msg from i18n model
276
- var oBundle = sap.ui.getCore().getModel("i18n").getResourceBundle();
277
- sDialogTitle = oBundle.getText("DLG_TITLE_" + aMetadata.type.toUpperCase(), [aMetadata.id]);
278
- }
279
-
280
- // transport dialog
281
- var oDialog = new Dialog({
282
- title: sDialogTitle,
283
- resizable: true,
284
- draggable: true,
285
- content: [new Form({
286
- width: "400px",
287
- editable: true,
288
- layout: new GridLayout({ singleColumn: true }),
289
- formContainers: [new FormContainer({
290
- formElements: [
291
- new FormElement({ label: oLabelPackage, fields: [oInputPackage] }),
292
- new FormElement({ label: oLabelTransport, fields: [oComboTransport] }),
293
- new FormElement({ fields: [oCheckbox, oText] })
294
- ]
295
- })]
296
- })],
297
- buttons: [oButtonLO, oButtonOK, oButtonCancel],
298
- afterClose: function () {
299
- oDialog.destroy();
300
- def.resolve(result);
301
- }
302
- });
303
-
304
- oDialog.open();
305
- return def.promise();
306
- });
307
- },
308
-
309
- onBeforeSave: function (oContent) {
310
- var that = this;
311
- return new jQuery.Deferred(
312
- function (oDeferred) {
313
- try {
314
- var oResult = oContent,
315
- aMetadata = [],
316
- i;
317
- // loop through items in the BATCH array
318
- for (i in oContent.BATCH) {
319
- var item = oContent.BATCH[i];
320
- aMetadata[i] = {
321
- "operation": item.metadata.operation,
322
- "id": item.metadata.id,
323
- "type": item.metadata.entityType,
324
- "package": item.metadata.package,
325
- "transport": item.metadata.transportId,
326
- "openDialogFlag": false,
327
- "checkboxFlag": false,
328
- "cancelClickedFlag": false
329
- };
330
- }
331
-
332
- for (i = 0; i < aMetadata.length; i++) {
333
- if (aMetadata[i].operation === "CREATE") {
334
- // if operation = create (instead of "Update/Delete/..."), open popup to get missing data
335
- aMetadata[i].openDialogFlag = true;
336
- } else if (!aMetadata[i].package) {
337
- // if package is empty, open transport popup
338
- aMetadata[i].openDialogFlag = true;
339
- } else if (aMetadata[i].package.toUpperCase() === "$TMP") {
340
- // do not open popup in case of local object
341
- aMetadata[i].openDialogFlag = false;
342
- } else if (aMetadata[i].package && !aMetadata[i].transport) {
343
- // if package is not empty and transport ID is empty, search for same package name
344
- for (var j = 0; j < aMetadata.length; j++) {
345
- // compare package with all other packages in the batch,
346
- // if match found then copy the corresponding transport id
347
- if (i != j && aMetadata[i].package === aMetadata[j].package && aMetadata[j].transport) {
348
- aMetadata[i].transport = aMetadata[j].transport;
349
- oResult.BATCH[i].metadata.transportId = aMetadata[j].transport;
350
- break;
351
- } else { // else open popup to get missing data
352
- aMetadata[i].openDialogFlag = true;
353
- }
354
- }
355
- } // no popup if both package and transport id are known
356
- }
357
- that.processEntry(that, oResult, oDeferred, aMetadata, 0);
358
- } catch (err) {
359
- oDeferred.reject(err);
360
- }
361
- }).promise();
362
- },
363
-
364
- processEntry: function (_that, oResult, oDeferred, aMetadata, i) {
365
- var length = aMetadata.length;
366
- while (aMetadata[i].openDialogFlag === false) {
367
- if (i < length - 1) {
368
- i++;
369
- } else {
370
- break;
371
- }
372
- }
373
-
374
- if (aMetadata[i].openDialogFlag === true) { // if openDialogFlag is true
375
- _that.openDialog(aMetadata[i]).done(function (result) {
376
- var j;
377
- oResult.BATCH[i].metadata.package = result.package;
378
- oResult.BATCH[i].metadata.transportId = result.transport;
379
- if (result.checkboxFlag === true && result.package && result.cancelClickedFlag === false) {
380
- // if checkbox checked, package is not empty, and cancel button not clicked
381
- if (result.operation === "CREATE" && result.package.toUpperCase() !== "$TMP") {
382
- // if operation=create and package non $tmp,
383
- // assign given package and transport ID to all following objects of same type (catalog, group, etc.)
384
- for (j = i + 1; j < aMetadata.length; j++) {
385
- if (aMetadata[j].type === result.type) {
386
- oResult.BATCH[j].metadata.package = result.package;
387
- oResult.BATCH[j].metadata.transportId = result.transport;
388
- aMetadata[j].openDialogFlag = false;
389
- }
390
- }
391
- } else {
392
- // if operation=update/delete/..., apply transport ID to all objects in same package
393
- for (j = i + 1; j < aMetadata.length; j++) {
394
- if (aMetadata[j].package === result.package) {
395
- oResult.BATCH[j].metadata.transportId = result.transport;
396
- aMetadata[j].openDialogFlag = false;
397
- }
398
- }
399
- }
400
- }
401
- if (aMetadata[i].cancelClickedFlag === true && aMetadata.length === 1) {
402
- oDeferred.reject(sap.ui.getCore().getModel("i18n").getProperty("MSG_SINGLECANCEL"));
403
- } else if (++i < aMetadata.length) {
404
- _that.processEntry(_that, oResult, oDeferred, aMetadata, i);
405
- } else {
406
- // fail promise in case all popups were cancelled
407
- var cancelCounter = 0, dialogCounter = 0;
408
- for (j = 0; j < aMetadata.length; j++) {
409
- if (aMetadata[j].openDialogFlag === true) {
410
- dialogCounter++;
411
- }
412
- if (aMetadata[j].cancelClickedFlag === true) {
413
- cancelCounter++;
414
- }
415
- }
416
- if (dialogCounter === cancelCounter) {
417
- oDeferred.reject(sap.ui.getCore().getModel("i18n").getProperty("MSG_ALLPOPUPSCANCELLED"));
418
- } else {
419
- oDeferred.resolve(oResult);
420
- }
421
- }
422
- }).fail(function () { });
423
- }
424
- }
425
- });
426
- });
@@ -1 +0,0 @@
1
- /* Enter your custom styles here */
@@ -1,56 +0,0 @@
1
- #Resource bundle of diagnostic plugin for UI adaptation at runtime
2
- #__ldi.translation.uuid = b188ed20-2c0c-11e7-9598-0800200c9a66
3
-
4
- #XFLD: Text for Label: Package
5
- LABEL_TITLE_PACKAGE = Package
6
-
7
- #XFLD: Text for Label: Transport
8
- LABEL_TITLE_TRANSPORT = Transport
9
-
10
- #XFLD: Text for CheckBox
11
- CHKBOX_TXT_BATCHOBJECTS = Put all subsequent objects of the same package into the selected transport
12
-
13
- #XBUT: Text for Button: Local Object
14
- BTN_TITLE_LOCALOBJECT = Local Object
15
-
16
- #XBUT: Text for Button: OK
17
- BTN_TITLE_OK = OK
18
-
19
- #XBUT: Text for Button: Cancel
20
- BTN_TITLE_CANCEL = Cancel
21
-
22
- #XTIT: Text for Transport Dialog Title
23
- DLG_TITLE_DEFAULTNAME= Transport Content
24
-
25
- #YMSG: Text for Error Message
26
- ERROR_WRONGNAMESPACE = Package name needs to start with the same namespace as the ID shown in dialog title
27
-
28
- #YMSG: Text for Error Message
29
- ERROR_NAMESPACENOTALLOWED= Package for entity {0} must not have a namespace.
30
-
31
- #YMSG: Text Message when promise is rejected
32
- MSG_SINGLECANCEL = Operation has been cancelled.
33
-
34
- #YMSG: Text Message when promise is rejected
35
- MSG_ALLPOPUPSCANCELLED= Operation has been cancelled.
36
-
37
- #XTIT: Text for Transport Dialog
38
- DLG_TITLE_APPDESCR_VARIANT = Transport App: {0}
39
-
40
- #XTIT: Text for Transport Dialog
41
- DLG_TITLE_CATALOG = Transport Catalog: {0}
42
-
43
- #XTIT: Text for Transport Dialog
44
- DLG_TITLE_GROUP = Transport Group: {0}
45
-
46
- #XTIT: Text for Transport Dialog
47
- DLG_TITLE_ROLE = Transport Role: {0}
48
-
49
- #YMSG: Text for Error Message
50
- ERROR_REQUESTFAILED = Sorry we could not connect to the server. Please try again later.
51
-
52
- #YMSG: Text for Error Message HTTP500
53
- ERROR_HTTP500 = Internal server error
54
-
55
- #YMSG: Text for Error Message HTTP404
56
- ERROR_HTTP404 = Package not found
@@ -1,36 +0,0 @@
1
-
2
- LABEL_TITLE_PACKAGE=\u0627\u0644\u062D\u0632\u0645\u0629
3
-
4
- LABEL_TITLE_TRANSPORT=\u0646\u0642\u0644
5
-
6
- CHKBOX_TXT_BATCHOBJECTS=\u0648\u0636\u0639 \u0643\u0644 \u0627\u0644\u0643\u0627\u0626\u0646\u0627\u062A \u0627\u0644\u0644\u0627\u062D\u0642\u0629 \u0645\u0646 \u0646\u0641\u0633 \u0627\u0644\u062D\u0632\u0645\u0629 \u0641\u064A \u0627\u0644\u0646\u0642\u0644 \u0627\u0644\u0645\u062D\u062F\u062F
7
-
8
- BTN_TITLE_LOCALOBJECT=\u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u0645\u062D\u0644\u064A
9
-
10
- BTN_TITLE_OK=\u0645\u0648\u0627\u0641\u0642
11
-
12
- BTN_TITLE_CANCEL=\u0625\u0644\u063A\u0627\u0621
13
-
14
- DLG_TITLE_DEFAULTNAME=\u0645\u062D\u062A\u0648\u0649 \u0627\u0644\u0646\u0642\u0644
15
-
16
- ERROR_WRONGNAMESPACE=\u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0627\u0633\u0645 \u0627\u0644\u062D\u0632\u0645\u0629 \u0628\u0646\u0641\u0633 \u0645\u0633\u0627\u062D\u0629 \u0627\u0644\u0627\u0633\u0645 \u0645\u062B\u0644 \u0627\u0644\u0645\u0639\u0631\u0641 \u0627\u0644\u0645\u0648\u062C\u0648\u062F \u0641\u064A \u0639\u0646\u0648\u0627\u0646 \u0645\u0631\u0628\u0639 \u0627\u0644\u062D\u0648\u0627\u0631
17
-
18
- ERROR_NAMESPACENOTALLOWED=\u064A\u062C\u0628 \u0623\u0644\u0627 \u062A\u062D\u062A\u0648\u064A \u062D\u0632\u0645\u0629 \u0627\u0644\u0643\u064A\u0627\u0646 {0} \u0639\u0644\u0649 \u0645\u0633\u0627\u062D\u0629 \u0627\u0633\u0645.
19
-
20
- MSG_SINGLECANCEL=\u062A\u0645 \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u064A\u0629.
21
-
22
- MSG_ALLPOPUPSCANCELLED=\u062A\u0645 \u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0639\u0645\u0644\u064A\u0629.
23
-
24
- DLG_TITLE_APPDESCR_VARIANT=\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0646\u0642\u0644\: {0}
25
-
26
- DLG_TITLE_CATALOG=\u062F\u0644\u064A\u0644 \u0627\u0644\u0646\u0642\u0644\: {0}
27
-
28
- DLG_TITLE_GROUP=\u0645\u062C\u0645\u0648\u0639\u0629 \u0627\u0644\u0646\u0642\u0644\: {0}
29
-
30
- DLG_TITLE_ROLE=\u062F\u0648\u0631 \u0627\u0644\u0646\u0642\u0644\: {0}
31
-
32
- ERROR_REQUESTFAILED=\u0639\u0630\u0631\u064B\u0627\u060C \u062A\u0639\u0630\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062E\u0627\u062F\u0645. \u0627\u0644\u0631\u062C\u0627\u0621 \u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629 \u0644\u0627\u062D\u0642\u064B\u0627.
33
-
34
- ERROR_HTTP500=\u062D\u062F\u062B \u062E\u0637\u0623 \u0641\u064A \u0627\u0644\u062E\u0627\u062F\u0645 \u0627\u0644\u062F\u0627\u062E\u0644\u064A
35
-
36
- ERROR_HTTP404=\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u062D\u0632\u0645\u0629
@@ -1,36 +0,0 @@
1
-
2
- LABEL_TITLE_PACKAGE=\u041F\u0430\u043A\u0435\u0442
3
-
4
- LABEL_TITLE_TRANSPORT=\u0422\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442
5
-
6
- CHKBOX_TXT_BATCHOBJECTS=\u041F\u043E\u0441\u0442\u0430\u0432\u0435\u0442\u0435 \u0432\u0441\u0438\u0447\u043A\u0438 \u043F\u043E\u0441\u043B\u0435\u0434\u0432\u0430\u0449\u0438 \u043E\u0431\u0435\u043A\u0442\u0438 \u043E\u0442 \u0441\u044A\u0449\u0438\u044F \u043F\u0430\u043A\u0435\u0442 \u0432 \u0438\u0437\u0431\u0440\u0430\u043D\u0438\u044F \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442
7
-
8
- BTN_TITLE_LOCALOBJECT=\u041B\u043E\u043A\u0430\u043B\u0435\u043D \u043E\u0431\u0435\u043A\u0442
9
-
10
- BTN_TITLE_OK=OK
11
-
12
- BTN_TITLE_CANCEL=\u041E\u0442\u043A\u0430\u0437
13
-
14
- DLG_TITLE_DEFAULTNAME=\u0421\u044A\u0434\u044A\u0440\u0436\u0430\u043D\u0438\u0435 \u043D\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442
15
-
16
- ERROR_WRONGNAMESPACE=\u0418\u043C\u0435 \u043D\u0430 \u043F\u0430\u043A\u0435\u0442 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441\u044A\u0441 \u0441\u044A\u0449\u0430\u0442\u0430 \u043E\u0431\u043B\u0430\u0441\u0442 \u043D\u0430 \u0438\u043C\u0435\u043D\u0430 \u043A\u0430\u0442\u043E \u0418\u0414, \u043F\u043E\u043A\u0430\u0437\u0430\u043D \u0432 \u0437\u0430\u0433\u043B\u0430\u0432\u0438\u0435\u0442\u043E \u043D\u0430 \u0434\u0438\u0430\u043B\u043E\u0433
17
-
18
- ERROR_NAMESPACENOTALLOWED=\u041F\u0430\u043A\u0435\u0442 \u0437\u0430 \u0435\u0434\u0438\u043D\u0438\u0446\u0430 {0} \u043D\u0435 \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0438\u043C\u0430 \u043E\u0431\u043B\u0430\u0441\u0442 \u0438\u043C\u0435\u043D\u0430.
19
-
20
- MSG_SINGLECANCEL=\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F\u0442\u0430 \u0435 \u043E\u0442\u043A\u0430\u0437\u0430\u043D\u0430.
21
-
22
- MSG_ALLPOPUPSCANCELLED=\u041E\u043F\u0435\u0440\u0430\u0446\u0438\u044F\u0442\u0430 \u0435 \u043E\u0442\u043A\u0430\u0437\u0430\u043D\u0430.
23
-
24
- DLG_TITLE_APPDESCR_VARIANT=\u0422\u0440\u0430\u043D\u0441\u043F. \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435\: {0}
25
-
26
- DLG_TITLE_CATALOG=\u041A\u0430\u0442\u0430\u043B\u043E\u0433 \u043D\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\: {0}
27
-
28
- DLG_TITLE_GROUP=\u0413\u0440\u0443\u043F\u0430 \u043D\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\: {0}
29
-
30
- DLG_TITLE_ROLE=\u0420\u043E\u043B\u044F \u043D\u0430 \u0442\u0440\u0430\u043D\u0441\u043F\u043E\u0440\u0442\: {0}
31
-
32
- ERROR_REQUESTFAILED=\u041D\u044F\u043C\u0430 \u0432\u0440\u044A\u0437\u043A\u0430 \u0441\u044A\u0441 \u0441\u044A\u0440\u0432\u044A\u0440\u0430. \u041C\u043E\u043B\u044F, \u043E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u043E\u0442\u043D\u043E\u0432\u043E \u043F\u043E-\u043A\u044A\u0441\u043D\u043E.
33
-
34
- ERROR_HTTP500=\u0412\u044A\u0442\u0440\u0435\u0448\u043D\u0430 \u0433\u0440\u0435\u0448\u043A\u0430 \u043D\u0430 \u0441\u044A\u0440\u0432\u044A\u0440
35
-
36
- ERROR_HTTP404=\u041F\u0430\u043A\u0435\u0442\u044A\u0442 \u043D\u0435 \u0435 \u043D\u0430\u043C\u0435\u0440\u0435\u043D
@@ -1,36 +0,0 @@
1
-
2
- LABEL_TITLE_PACKAGE=Paquet
3
-
4
- LABEL_TITLE_TRANSPORT=Transport
5
-
6
- CHKBOX_TXT_BATCHOBJECTS=Col\u00B7locar els objectes seg\u00FCents del mateix paquet en el transport seleccionat
7
-
8
- BTN_TITLE_LOCALOBJECT=Objecte local
9
-
10
- BTN_TITLE_OK=D'acord
11
-
12
- BTN_TITLE_CANCEL=Cancel\u00B7lar
13
-
14
- DLG_TITLE_DEFAULTNAME=Contingut de transport
15
-
16
- ERROR_WRONGNAMESPACE=El nom del paquet ha de comen\u00E7ar per la mateixa \u00E0rea de noms que l'ID visualitzat en el t\u00EDtol del di\u00E0leg
17
-
18
- ERROR_NAMESPACENOTALLOWED=El paquet de l''entitat {0} no pot tenir cap \u00E0rea de noms.
19
-
20
- MSG_SINGLECANCEL=Operaci\u00F3 cancel\u00B7lada
21
-
22
- MSG_ALLPOPUPSCANCELLED=Operaci\u00F3 cancel\u00B7lada
23
-
24
- DLG_TITLE_APPDESCR_VARIANT=Aplicaci\u00F3 de transport\: {0}
25
-
26
- DLG_TITLE_CATALOG=Cat\u00E0leg de transport\: {0}
27
-
28
- DLG_TITLE_GROUP=Grup de transport\: {0}
29
-
30
- DLG_TITLE_ROLE=Rol de transport\: {0}
31
-
32
- ERROR_REQUESTFAILED=No es pot establir cap connexi\u00F3 amb el servidor. Torneu a intentar-ho m\u00E9s tard
33
-
34
- ERROR_HTTP500=Error de servidor intern
35
-
36
- ERROR_HTTP404=No s\u2019ha trobat el paquet