@openui5/sap.ui.rta 1.115.0 → 1.116.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 (174) hide show
  1. package/.eslintrc.json +33 -2
  2. package/.reuse/dep5 +0 -5
  3. package/THIRDPARTY.txt +1 -7
  4. package/package.json +6 -6
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +60 -59
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +253 -248
  8. package/src/sap/ui/rta/Utils.js +42 -42
  9. package/src/sap/ui/rta/api/startAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +3 -3
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -27
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +97 -97
  13. package/src/sap/ui/rta/appVariant/Feature.js +75 -77
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +6 -7
  15. package/src/sap/ui/rta/appVariant/Utils.js +17 -17
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +36 -36
  17. package/src/sap/ui/rta/command/AddIFrame.js +7 -7
  18. package/src/sap/ui/rta/command/AddProperty.js +7 -7
  19. package/src/sap/ui/rta/command/AddXML.js +1 -1
  20. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +7 -7
  21. package/src/sap/ui/rta/command/AppDescriptorCommand.js +18 -18
  22. package/src/sap/ui/rta/command/BaseCommand.js +1 -2
  23. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  24. package/src/sap/ui/rta/command/Combine.js +1 -1
  25. package/src/sap/ui/rta/command/CommandFactory.js +11 -11
  26. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  28. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  29. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +22 -22
  30. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
  31. package/src/sap/ui/rta/command/ControlVariantSwitch.js +11 -11
  32. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  33. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  34. package/src/sap/ui/rta/command/FlexCommand.js +30 -30
  35. package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
  36. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  37. package/src/sap/ui/rta/command/Move.js +1 -1
  38. package/src/sap/ui/rta/command/Property.js +1 -1
  39. package/src/sap/ui/rta/command/Remove.js +1 -1
  40. package/src/sap/ui/rta/command/Rename.js +1 -1
  41. package/src/sap/ui/rta/command/Resize.js +1 -1
  42. package/src/sap/ui/rta/command/Reveal.js +1 -1
  43. package/src/sap/ui/rta/command/Settings.js +1 -1
  44. package/src/sap/ui/rta/command/Split.js +1 -1
  45. package/src/sap/ui/rta/command/Stack.js +4 -4
  46. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  49. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  50. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  51. package/src/sap/ui/rta/enablement/TestDelegate.js +92 -92
  52. package/src/sap/ui/rta/enablement/elementActionTest.js +230 -112
  53. package/src/sap/ui/rta/library.js +2 -2
  54. package/src/sap/ui/rta/messagebundle.properties +11 -1
  55. package/src/sap/ui/rta/messagebundle_ar.properties +5 -0
  56. package/src/sap/ui/rta/messagebundle_bg.properties +5 -0
  57. package/src/sap/ui/rta/messagebundle_ca.properties +5 -0
  58. package/src/sap/ui/rta/messagebundle_cs.properties +5 -0
  59. package/src/sap/ui/rta/messagebundle_cy.properties +5 -0
  60. package/src/sap/ui/rta/messagebundle_da.properties +5 -0
  61. package/src/sap/ui/rta/messagebundle_de.properties +5 -0
  62. package/src/sap/ui/rta/messagebundle_el.properties +5 -0
  63. package/src/sap/ui/rta/messagebundle_en.properties +5 -0
  64. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -0
  65. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
  66. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -0
  67. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
  68. package/src/sap/ui/rta/messagebundle_es.properties +5 -0
  69. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -0
  70. package/src/sap/ui/rta/messagebundle_et.properties +5 -0
  71. package/src/sap/ui/rta/messagebundle_fi.properties +5 -0
  72. package/src/sap/ui/rta/messagebundle_fr.properties +5 -0
  73. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -0
  74. package/src/sap/ui/rta/messagebundle_hi.properties +5 -0
  75. package/src/sap/ui/rta/messagebundle_hr.properties +5 -0
  76. package/src/sap/ui/rta/messagebundle_hu.properties +5 -0
  77. package/src/sap/ui/rta/messagebundle_id.properties +5 -0
  78. package/src/sap/ui/rta/messagebundle_it.properties +5 -0
  79. package/src/sap/ui/rta/messagebundle_iw.properties +5 -0
  80. package/src/sap/ui/rta/messagebundle_ja.properties +5 -0
  81. package/src/sap/ui/rta/messagebundle_kk.properties +5 -0
  82. package/src/sap/ui/rta/messagebundle_ko.properties +5 -0
  83. package/src/sap/ui/rta/messagebundle_lt.properties +5 -0
  84. package/src/sap/ui/rta/messagebundle_lv.properties +5 -0
  85. package/src/sap/ui/rta/messagebundle_ms.properties +5 -0
  86. package/src/sap/ui/rta/messagebundle_nl.properties +5 -0
  87. package/src/sap/ui/rta/messagebundle_no.properties +5 -0
  88. package/src/sap/ui/rta/messagebundle_pl.properties +5 -0
  89. package/src/sap/ui/rta/messagebundle_pt.properties +5 -0
  90. package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -0
  91. package/src/sap/ui/rta/messagebundle_ro.properties +5 -0
  92. package/src/sap/ui/rta/messagebundle_ru.properties +5 -0
  93. package/src/sap/ui/rta/messagebundle_sh.properties +5 -0
  94. package/src/sap/ui/rta/messagebundle_sk.properties +5 -0
  95. package/src/sap/ui/rta/messagebundle_sl.properties +5 -0
  96. package/src/sap/ui/rta/messagebundle_sv.properties +5 -0
  97. package/src/sap/ui/rta/messagebundle_th.properties +5 -0
  98. package/src/sap/ui/rta/messagebundle_tr.properties +5 -0
  99. package/src/sap/ui/rta/messagebundle_uk.properties +5 -0
  100. package/src/sap/ui/rta/messagebundle_vi.properties +5 -0
  101. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -0
  102. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -0
  103. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +44 -44
  104. package/src/sap/ui/rta/plugin/BaseCreate.js +29 -29
  105. package/src/sap/ui/rta/plugin/Combine.js +9 -9
  106. package/src/sap/ui/rta/plugin/ControlVariant.js +21 -21
  107. package/src/sap/ui/rta/plugin/CreateContainer.js +6 -6
  108. package/src/sap/ui/rta/plugin/CutPaste.js +46 -46
  109. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  110. package/src/sap/ui/rta/plugin/EasyAdd.js +4 -4
  111. package/src/sap/ui/rta/plugin/EasyRemove.js +5 -5
  112. package/src/sap/ui/rta/plugin/LocalReset.js +25 -25
  113. package/src/sap/ui/rta/plugin/Plugin.js +20 -20
  114. package/src/sap/ui/rta/plugin/RTAElementMover.js +42 -42
  115. package/src/sap/ui/rta/plugin/Remove.js +11 -11
  116. package/src/sap/ui/rta/plugin/Rename.js +7 -7
  117. package/src/sap/ui/rta/plugin/RenameHandler.js +17 -17
  118. package/src/sap/ui/rta/plugin/Resize.js +62 -62
  119. package/src/sap/ui/rta/plugin/Selection.js +14 -14
  120. package/src/sap/ui/rta/plugin/Settings.js +20 -20
  121. package/src/sap/ui/rta/plugin/Split.js +7 -7
  122. package/src/sap/ui/rta/plugin/Stretch.js +4 -4
  123. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +94 -87
  124. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +18 -18
  125. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +98 -99
  126. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +144 -144
  127. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +3 -4
  128. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +67 -67
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +38 -39
  130. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -0
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +29 -29
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +5 -5
  133. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  134. package/src/sap/ui/rta/service/Action.js +36 -37
  135. package/src/sap/ui/rta/service/ControllerExtension.js +4 -4
  136. package/src/sap/ui/rta/service/Outline.js +59 -59
  137. package/src/sap/ui/rta/service/Property.js +125 -125
  138. package/src/sap/ui/rta/service/Receiver.js +78 -77
  139. package/src/sap/ui/rta/service/Selection.js +6 -6
  140. package/src/sap/ui/rta/service/SupportTools.js +30 -30
  141. package/src/sap/ui/rta/service/index.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Adaptation.js +74 -26
  143. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  144. package/src/sap/ui/rta/toolbar/Base.js +17 -15
  145. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -2
  146. package/src/sap/ui/rta/toolbar/Fiori.js +8 -8
  147. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  148. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +4 -4
  149. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  150. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  151. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +13 -6
  152. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +2 -8
  153. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -3
  154. package/src/sap/ui/rta/toolbar/translation/Translation.js +41 -41
  155. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +9 -9
  156. package/src/sap/ui/rta/util/Animation.js +5 -5
  157. package/src/sap/ui/rta/util/BindingsExtractor.js +33 -33
  158. package/src/sap/ui/rta/util/PluginManager.js +25 -25
  159. package/src/sap/ui/rta/util/PopupManager.js +27 -27
  160. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  161. package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
  162. package/src/sap/ui/rta/util/StylesLoader.js +9 -9
  163. package/src/sap/ui/rta/util/UrlParser.js +19 -19
  164. package/src/sap/ui/rta/util/adaptationStarter.js +34 -31
  165. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +21 -19
  166. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +61 -61
  167. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +73 -60
  168. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +6 -6
  169. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  170. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  171. package/src/sap/ui/rta/util/hasStableId.js +2 -2
  172. package/src/sap/ui/rta/util/showMessageBox.js +4 -5
  173. package/src/sap/ui/rta/util/validateFlexEnabled.js +5 -5
  174. package/src/sap/ui/rta/util/validateStableIds.js +8 -8
@@ -144,7 +144,7 @@ sap.ui.define([
144
144
  return false;
145
145
  }
146
146
 
147
- return sMode.toLowerCase() === 'true';
147
+ return sMode.toLowerCase() === "true";
148
148
  },
149
149
  isManifestSupported: function() {
150
150
  var oDescriptor = fnGetDescriptor();
@@ -252,14 +252,14 @@ sap.ui.define([
252
252
 
253
253
  // Based on the key user provided info, app variant descriptor is created
254
254
  return oAppVariantManager.createAppVariant(sAppVariantId, vSelector)
255
- .catch(function(oError) {
256
- var sMessageKey = oError.messageKey;
257
- if (!sMessageKey) {
258
- sMessageKey = "MSG_SAVE_APP_VARIANT_FAILED";
259
- }
255
+ .catch(function(oError) {
256
+ var sMessageKey = oError.messageKey;
257
+ if (!sMessageKey) {
258
+ sMessageKey = "MSG_SAVE_APP_VARIANT_FAILED";
259
+ }
260
260
 
261
- return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
262
- });
261
+ return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
262
+ });
263
263
  };
264
264
 
265
265
  var fnClearRTACommandStack = function(oResult) {
@@ -292,30 +292,29 @@ sap.ui.define([
292
292
  return oAppVariantManager.showSuccessMessage(oSuccessInfo);
293
293
  };
294
294
 
295
-
296
295
  var fnTriggerPlatformDependentFlow = function() {
297
296
  BusyIndicator.show();
298
297
  if (bIsS4HanaCloud) {
299
298
  var oIAMResponse;
300
299
  return fnS4HanaAddBrowserCloseWarning()
301
- .then(function() {
302
- return fnTriggerCatalogAssignment(oAppVariantSaveClosure.id, oAppVariantSaveClosure.reference);
303
- })
304
- .then(function(oResult) {
305
- oIAMResponse = Object.assign({}, oResult);
306
- BusyIndicator.hide();
307
- return fnTriggerActionFlow.call(this, bSaveAsFromRta, null, sCurrentLayer);
308
- }.bind(this))
309
- .then(function() {
310
- return fnTriggerPollingTileCreation(oIAMResponse, oAppVariantSaveClosure.id);
311
- })
312
- .then(function() {
313
- fnS4HanaRemoveBrowserCloseWarning();
314
- return fnShowCatalogAssignmentSuccessMessage();
315
- })
316
- .then(function() {
317
- return bSaveAsFromRta ? resolve() : fnTriggerActionFlow.call(this, bSaveAsFromRta, bIsS4HanaCloud, sCurrentLayer);
318
- }.bind(this));
300
+ .then(function() {
301
+ return fnTriggerCatalogAssignment(oAppVariantSaveClosure.id, oAppVariantSaveClosure.reference);
302
+ })
303
+ .then(function(oResult) {
304
+ oIAMResponse = Object.assign({}, oResult);
305
+ BusyIndicator.hide();
306
+ return fnTriggerActionFlow.call(this, bSaveAsFromRta, null, sCurrentLayer);
307
+ }.bind(this))
308
+ .then(function() {
309
+ return fnTriggerPollingTileCreation(oIAMResponse, oAppVariantSaveClosure.id);
310
+ })
311
+ .then(function() {
312
+ fnS4HanaRemoveBrowserCloseWarning();
313
+ return fnShowCatalogAssignmentSuccessMessage();
314
+ })
315
+ .then(function() {
316
+ return bSaveAsFromRta ? resolve() : fnTriggerActionFlow.call(this, bSaveAsFromRta, bIsS4HanaCloud, sCurrentLayer);
317
+ }.bind(this));
319
318
  }
320
319
  BusyIndicator.hide();
321
320
  return fnTriggerActionFlow.call(this, bSaveAsFromRta, bIsS4HanaCloud, sCurrentLayer);
@@ -330,22 +329,22 @@ sap.ui.define([
330
329
  }
331
330
 
332
331
  return fnProcessSaveAsDialog()
333
- .then(fnCreateInlineChanges) // Create the inline changes for application variant
334
- .then(fnAddChangesToPersistence) // Adds the descriptor inline changes to the persistence
335
- .then(fnCreateAppVariant) // Creates the application variant and saves it to the layered repository
336
- .then(fnClearRTACommandStack)
337
- .then(fnGetFlexSettings)
338
- .then(fnTriggerSuccessMessage)
339
- .then(fnTriggerPlatformDependentFlow.bind(this)).then(resolve)
340
- .catch(function(oError) {
341
- if (!oError) {// Cancelling Save As Dialog
342
- return false;
343
- }
344
- if (bIsS4HanaCloud) {
345
- fnS4HanaRemoveBrowserCloseWarning();
346
- }
347
- return fnTriggerActionFlow.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
348
- }.bind(this));
332
+ .then(fnCreateInlineChanges) // Create the inline changes for application variant
333
+ .then(fnAddChangesToPersistence) // Adds the descriptor inline changes to the persistence
334
+ .then(fnCreateAppVariant) // Creates the application variant and saves it to the layered repository
335
+ .then(fnClearRTACommandStack)
336
+ .then(fnGetFlexSettings)
337
+ .then(fnTriggerSuccessMessage)
338
+ .then(fnTriggerPlatformDependentFlow.bind(this)).then(resolve)
339
+ .catch(function(oError) {
340
+ if (!oError) {// Cancelling Save As Dialog
341
+ return false;
342
+ }
343
+ if (bIsS4HanaCloud) {
344
+ fnS4HanaRemoveBrowserCloseWarning();
345
+ }
346
+ return fnTriggerActionFlow.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
347
+ }.bind(this));
349
348
  }.bind(this));
350
349
  }.bind(this));
351
350
  },
@@ -370,16 +369,16 @@ sap.ui.define([
370
369
 
371
370
  var fnDeleteAppVariant = function() {
372
371
  return oAppVariantManager.deleteAppVariant(sAppVariantId)
373
- .catch(function(oError) {
374
- if (oError === 'cancel') {
375
- return Promise.reject("cancel");
376
- }
377
- var sMessageKey = oError.messageKey;
378
- if (!sMessageKey) {
379
- sMessageKey = "MSG_DELETE_APP_VARIANT_FAILED";
380
- }
381
- return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
382
- });
372
+ .catch(function(oError) {
373
+ if (oError === "cancel") {
374
+ return Promise.reject("cancel");
375
+ }
376
+ var sMessageKey = oError.messageKey;
377
+ if (!sMessageKey) {
378
+ sMessageKey = "MSG_DELETE_APP_VARIANT_FAILED";
379
+ }
380
+ return AppVariantUtils.catchErrorDialog(oError, sMessageKey, sAppVariantId);
381
+ });
383
382
  };
384
383
 
385
384
  var fnDeleteSuccessMessage = function() {
@@ -388,22 +387,21 @@ sap.ui.define([
388
387
  return oAppVariantManager.showSuccessMessage(oSuccessInfo);
389
388
  };
390
389
 
391
-
392
390
  var fnTriggerS4HanaPolling = function(oSettings) {
393
391
  bIsS4HanaCloud = AppVariantUtils.isS4HanaCloud(oSettings);
394
392
  if (bIsS4HanaCloud) {
395
393
  var oIAMResponse;
396
394
  return fnS4HanaAddBrowserCloseWarning(bCurrentlyAdapting)
397
- .then(function() {
398
- return fnTriggerCatalogUnAssignment(sAppVariantId);
399
- })
400
- .then(function(oResult) {
401
- oIAMResponse = Object.assign({}, oResult);
402
- return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
403
- }.bind(this))
404
- .then(function() {
405
- return fnTriggerPollingTileDeletion(oIAMResponse, sAppVariantId);
406
- });
395
+ .then(function() {
396
+ return fnTriggerCatalogUnAssignment(sAppVariantId);
397
+ })
398
+ .then(function(oResult) {
399
+ oIAMResponse = Object.assign({}, oResult);
400
+ return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
401
+ }.bind(this))
402
+ .then(function() {
403
+ return fnTriggerPollingTileDeletion(oIAMResponse, sAppVariantId);
404
+ });
407
405
  }
408
406
  BusyIndicator.show();
409
407
  return Promise.resolve();
@@ -423,19 +421,19 @@ sap.ui.define([
423
421
  }
424
422
 
425
423
  return fnGetFlexSettings()
426
- .then(fnTriggerS4HanaPolling.bind(this))
427
- .then(fnDeleteAppVariant)
428
- .then(fnDeleteSuccessMessage)
429
- .then(fnTriggerS4HanaRefresh.bind(this))
430
- .catch(function(oError) {
431
- if (oError === 'cancel') {
432
- return false;
433
- }
434
- if (bIsS4HanaCloud) {
435
- fnS4HanaRemoveBrowserCloseWarning();
436
- }
437
- return fnReloadOverviewDialog.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
438
- }.bind(this));
424
+ .then(fnTriggerS4HanaPolling.bind(this))
425
+ .then(fnDeleteAppVariant)
426
+ .then(fnDeleteSuccessMessage)
427
+ .then(fnTriggerS4HanaRefresh.bind(this))
428
+ .catch(function(oError) {
429
+ if (oError === "cancel") {
430
+ return false;
431
+ }
432
+ if (bIsS4HanaCloud) {
433
+ fnS4HanaRemoveBrowserCloseWarning();
434
+ }
435
+ return fnReloadOverviewDialog.call(this, null, bIsS4HanaCloud, sCurrentLayer).then(resolve);
436
+ }.bind(this));
439
437
  }.bind(this));
440
438
  }.bind(this));
441
439
  }
@@ -139,7 +139,6 @@ sap.ui.define([
139
139
  });
140
140
  };
141
141
 
142
-
143
142
  /**
144
143
  * Polls the OData model to check catalog publishing status of the given IAM app ID.
145
144
  *
@@ -150,12 +149,12 @@ sap.ui.define([
150
149
  */
151
150
  S4HanaCloudBackend.prototype.checkCatalogCustomizingIsReady = function(sIamAppId, bAppVarCreation) {
152
151
  return S4HanaCloudBackend._getODataModel()
153
- .then(function(oModel) {
154
- return S4HanaCloudBackend._readODataModel(oModel, sIamAppId);
155
- })
156
- .then(function(oAppStatusResponse) {
157
- return S4HanaCloudBackend._isAppReady(oAppStatusResponse, bAppVarCreation);
158
- });
152
+ .then(function(oModel) {
153
+ return S4HanaCloudBackend._readODataModel(oModel, sIamAppId);
154
+ })
155
+ .then(function(oAppStatusResponse) {
156
+ return S4HanaCloudBackend._isAppReady(oAppStatusResponse, bAppVarCreation);
157
+ });
159
158
  };
160
159
 
161
160
  return S4HanaCloudBackend;
@@ -31,12 +31,12 @@ function(
31
31
  Utils._checkNavigationSupported = function(oNavigationParams) {
32
32
  var oUShellContainer = FlUtils.getUshellContainer();
33
33
  return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
34
- .then(function(oNavigationService) {
35
- return oNavigationService.getLinks(oNavigationParams);
36
- })
37
- .catch(function(vError) {
38
- throw new Error("Error retrieving ushell service CrossApplicationNavigation: " + vError);
39
- });
34
+ .then(function(oNavigationService) {
35
+ return oNavigationService.getLinks(oNavigationParams);
36
+ })
37
+ .catch(function(vError) {
38
+ throw new Error("Error retrieving ushell service CrossApplicationNavigation: " + vError);
39
+ });
40
40
  };
41
41
 
42
42
  Utils._checkAppType = function(bOriginalApp, bAppVariant) {
@@ -55,11 +55,11 @@ function(
55
55
  // Get the id of a new created app variant
56
56
  var sNewAppVariantId = AppVariantUtils.getNewAppVariantId();
57
57
 
58
- if (sAppVarStatus === 'R') {
58
+ if (sAppVarStatus === "R") {
59
59
  return oI18n.getText("MAA_OPERATION_IN_PROGRESS");
60
60
  } else if (sNewAppVariantId === sAppVariantInfoId) {
61
61
  AppVariantUtils.setNewAppVariantId(null);
62
- if (sAppVarStatus !== 'E') {
62
+ if (sAppVarStatus !== "E") {
63
63
  return oI18n.getText("MAA_NEW_APP_VARIANT");
64
64
  }
65
65
  }
@@ -78,7 +78,7 @@ function(
78
78
  // Unpublished state ('U')
79
79
  // Error state ('E')
80
80
  // Running state ('R')
81
- if (oPreparedObject.appVarStatus === 'U' || oPreparedObject.appVarStatus === 'E' || oPreparedObject.appVarStatus === 'R') {
81
+ if (oPreparedObject.appVarStatus === "U" || oPreparedObject.appVarStatus === "E" || oPreparedObject.appVarStatus === "R") {
82
82
  oAppVarObject.saveAsButtonEnabled = false;
83
83
  }
84
84
  oAppVarObject.adaptUIButtonVisibility = true;
@@ -95,7 +95,7 @@ function(
95
95
  }
96
96
  } else {
97
97
  oAppVarObject.delAppVarButtonVisibility = true;
98
- if (oPreparedObject.appVarStatus === 'R') {
98
+ if (oPreparedObject.appVarStatus === "R") {
99
99
  // catalog unpublishing or publishing is currently in progress => not deleteable
100
100
  oAppVarObject.delAppVarButtonEnabled = false;
101
101
  } else {
@@ -131,7 +131,7 @@ function(
131
131
  if (aResult.length && oPreparedObject.isKeyUser) {
132
132
  oNavigationObject.adaptUIButtonEnabled = true;
133
133
 
134
- if (oPreparedObject.appVarStatus === 'R' || oPreparedObject.appVarStatus === 'U' || oPreparedObject.appVarStatus === 'E') {
134
+ if (oPreparedObject.appVarStatus === "R" || oPreparedObject.appVarStatus === "U" || oPreparedObject.appVarStatus === "E") {
135
135
  oNavigationObject.adaptUIButtonEnabled = false;
136
136
  oNavigationObject.appVarStatus = oPreparedObject.appVarStatus;
137
137
  }
@@ -162,10 +162,10 @@ function(
162
162
  Utils._prepareAppVariantAttributes = function(oAppVariantInfo) {
163
163
  return {
164
164
  appId: oAppVariantInfo.appId,
165
- title: oAppVariantInfo.title || '',
166
- subTitle: oAppVariantInfo.subTitle || '',
167
- description: oAppVariantInfo.description || '',
168
- icon: oAppVariantInfo.iconUrl || '',
165
+ title: oAppVariantInfo.title || "",
166
+ subTitle: oAppVariantInfo.subTitle || "",
167
+ description: oAppVariantInfo.description || "",
168
+ icon: oAppVariantInfo.iconUrl || "",
169
169
  iconText: oAppVariantInfo.iconText,
170
170
  isOriginal: oAppVariantInfo.isOriginal,
171
171
  isAppVariant: oAppVariantInfo.isAppVariant,
@@ -179,7 +179,7 @@ function(
179
179
  // Adding the tooltip to every icon which is shown on the App Variant Overview Dialog
180
180
  var sIconUrl = oAppVariantInfo.iconUrl;
181
181
  if (sIconUrl && IconPool.isIconURI(sIconUrl)) {
182
- oAppVariantInfo.iconText = sIconUrl.split('//')[1];
182
+ oAppVariantInfo.iconText = sIconUrl.split("//")[1];
183
183
  }
184
184
 
185
185
  oAppVariantAttributes = this._prepareAppVariantAttributes(oAppVariantInfo);
@@ -223,7 +223,7 @@ function(
223
223
 
224
224
  Utils.getAppVariantOverview = function(sReferenceAppId, bKeyUser) {
225
225
  // Customer* means the layer can be either CUSTOMER or CUSTOMER_BASE. This layer determination takes place in backend.
226
- var sLayer = bKeyUser ? 'CUSTOMER*' : 'VENDOR';
226
+ var sLayer = bKeyUser ? "CUSTOMER*" : "VENDOR";
227
227
 
228
228
  var mPropertyBag = {
229
229
  selector: {
@@ -56,33 +56,33 @@ sap.ui.define([
56
56
 
57
57
  BusyIndicator.show();
58
58
  return Promise.resolve()
59
- .then(function() {
60
- if (oUShellContainer) {
61
- return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
62
- .then(function(oCrossAppNavService) {
63
- _oCrossAppNavService = oCrossAppNavService;
64
- });
65
- }
66
- return undefined;
67
- })
68
- .then(AppVariantOverviewUtils.getAppVariantOverview.bind(AppVariantOverviewUtils, _sIdRunningApp, _bKeyUser))
69
- .then(function(aAppVariantOverviewAttributes) {
70
- BusyIndicator.hide();
71
- if (aAppVariantOverviewAttributes.length) {
72
- return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
73
- return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
74
- }.bind(this));
75
- }
76
- AppVariantUtils.closeOverviewDialog();
77
- return this._showMessageWhenNoAppVariantsExist();
78
- }.bind(this))
79
- .catch(function(oError) {
80
- AppVariantUtils.closeOverviewDialog();
81
- var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
82
- oErrorInfo.overviewDialog = true;
83
- BusyIndicator.hide();
84
- return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
85
- });
59
+ .then(function() {
60
+ if (oUShellContainer) {
61
+ return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
62
+ .then(function(oCrossAppNavService) {
63
+ _oCrossAppNavService = oCrossAppNavService;
64
+ });
65
+ }
66
+ return undefined;
67
+ })
68
+ .then(AppVariantOverviewUtils.getAppVariantOverview.bind(AppVariantOverviewUtils, _sIdRunningApp, _bKeyUser))
69
+ .then(function(aAppVariantOverviewAttributes) {
70
+ BusyIndicator.hide();
71
+ if (aAppVariantOverviewAttributes.length) {
72
+ return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
73
+ return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
74
+ }.bind(this));
75
+ }
76
+ AppVariantUtils.closeOverviewDialog();
77
+ return this._showMessageWhenNoAppVariantsExist();
78
+ }.bind(this))
79
+ .catch(function(oError) {
80
+ AppVariantUtils.closeOverviewDialog();
81
+ var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
82
+ oErrorInfo.overviewDialog = true;
83
+ BusyIndicator.hide();
84
+ return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
85
+ });
86
86
  },
87
87
 
88
88
  _createResourceBundle: function() {
@@ -184,14 +184,14 @@ sap.ui.define([
184
184
  }
185
185
  if (!bAdaptUIButtonEnabled) {
186
186
  switch (sAppVarStatus) {
187
- case 'R':
187
+ case "R":
188
188
  // For S4/Hana Cloud systems
189
189
  return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_RUNNING");
190
- case 'U':
190
+ case "U":
191
191
  return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR");
192
- case 'E':
192
+ case "E":
193
193
  return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR");
194
- case 'P':
194
+ case "P":
195
195
  return oI18n.getText("TOOLTIP_ADAPTUI_STATUS_PUBLISHED");
196
196
  case undefined:
197
197
  // For S4/Hana onPrem systems
@@ -285,11 +285,11 @@ sap.ui.define([
285
285
  var bCurrentlyAdapting = sCurrentStatus === oI18n.getText("MAA_CURRENTLY_ADAPTING");
286
286
 
287
287
  return AppVariantUtils.showRelevantDialog(oInfo)
288
- .then(function() {
289
- return RtaAppVariantFeature.onDeleteFromOverviewDialog(sAppVarId, bCurrentlyAdapting, _sLayer);
290
- }).catch(function() {
291
- return true;
292
- });
288
+ .then(function() {
289
+ return RtaAppVariantFeature.onDeleteFromOverviewDialog(sAppVarId, bCurrentlyAdapting, _sLayer);
290
+ }).catch(function() {
291
+ return true;
292
+ });
293
293
  }
294
294
  });
295
295
  });
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.115.0
19
+ * @version 1.116.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -70,12 +70,12 @@ sap.ui.define([
70
70
  AddIFrame.prototype.applySettings = function(mSettings) {
71
71
  var mSettingsWithoutUrl = {};
72
72
  Object.keys(mSettings)
73
- .filter(function (sSettingName) {
74
- return sSettingName !== "url";
75
- })
76
- .forEach(function (sSettingName) {
77
- mSettingsWithoutUrl[sSettingName] = mSettings[sSettingName];
78
- });
73
+ .filter(function(sSettingName) {
74
+ return sSettingName !== "url";
75
+ })
76
+ .forEach(function(sSettingName) {
77
+ mSettingsWithoutUrl[sSettingName] = mSettings[sSettingName];
78
+ });
79
79
  var aArguments = [].slice.call(arguments);
80
80
  aArguments[0] = mSettingsWithoutUrl;
81
81
  FlexCommand.prototype.applySettings.apply(this, aArguments);
@@ -5,7 +5,7 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/rta/command/FlexCommand"
8
- ], function (FlexCommand) {
8
+ ], function(FlexCommand) {
9
9
  "use strict";
10
10
 
11
11
  /**
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @class
15
15
  * @extends sap.ui.rta.command.FlexCommand
16
16
  * @author SAP SE
17
- * @version 1.115.0
17
+ * @version 1.116.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  newControlId: {
33
33
  type: "string"
34
34
  },
35
- //the name "bindingPath" conflicts with getBindingPath() method from ManagedObject
35
+ // the name "bindingPath" conflicts with getBindingPath() method from ManagedObject
36
36
  bindingString: {
37
37
  type: "string"
38
38
  },
@@ -69,13 +69,13 @@ sap.ui.define([
69
69
  newControlId: this.getNewControlId(),
70
70
  bindingPath: this.getBindingString(),
71
71
  parentId: this.getParentId(),
72
- //used to connect to default delegate
72
+ // used to connect to default delegate
73
73
  modelType: this.getModelType(),
74
- //allow change handlers to access delegates if the change is not done on the relevant container
74
+ // allow change handlers to access delegates if the change is not done on the relevant container
75
75
  relevantContainerId: this.getRelevantContainerId(),
76
- //used to connect to change handler mediator
76
+ // used to connect to change handler mediator
77
77
  oDataServiceVersion: this.getODataServiceVersion(),
78
- //necessary for custom fields support tools
78
+ // necessary for custom fields support tools
79
79
  oDataInformation: {
80
80
  oDataServiceUri: this.getODataServiceUri(),
81
81
  propertyName: this.getPropertyName(),
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.115.0
19
+ * @version 1.116.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.FlexCommand
26
26
  * @author SAP SE
27
- * @version 1.115.0
27
+ * @version 1.116.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -65,7 +65,7 @@ sap.ui.define([
65
65
  return FlexCommand.prototype.bindProperty.apply(this, arguments);
66
66
  };
67
67
 
68
- AddXMLAtExtensionPoint.prototype.getAppComponent = function () {
68
+ AddXMLAtExtensionPoint.prototype.getAppComponent = function() {
69
69
  var oView = this.getSelector().view;
70
70
  return Utils.getAppComponentForControl(oView);
71
71
  };
@@ -98,11 +98,11 @@ sap.ui.define([
98
98
  view: oView
99
99
  };
100
100
  return ChangesWriteAPI.apply(Object.assign({change: oChange, element: oSelectorElement}, mPropertyBag))
101
- .then(function(oResult) {
102
- if (!oResult.success) {
103
- return Promise.reject(oResult.error);
104
- }
105
- });
101
+ .then(function(oResult) {
102
+ if (!oResult.success) {
103
+ return Promise.reject(oResult.error);
104
+ }
105
+ });
106
106
  };
107
107
 
108
108
  return AddXMLAtExtensionPoint;
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.115.0
24
+ * @version 1.116.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  * @param {string} mFlexSettings.layer - Layer where the change is applied
69
69
  * @returns {boolean} <code>true</true>
70
70
  */
71
- AppDescriptorCommand.prototype.prepare = function (mFlexSettings) {
71
+ AppDescriptorCommand.prototype.prepare = function(mFlexSettings) {
72
72
  this.setLayer(mFlexSettings.layer);
73
73
  return true;
74
74
  };
@@ -77,11 +77,11 @@ sap.ui.define([
77
77
  * Retrieves the prepared change for e.g. undo execution.
78
78
  * @return {sap.ui.fl.apply._internal.flexObjects.UIChange} Returns change after being created and stored
79
79
  */
80
- AppDescriptorCommand.prototype.getPreparedChange = function () {
80
+ AppDescriptorCommand.prototype.getPreparedChange = function() {
81
81
  return this._oPreparedChange;
82
82
  };
83
83
 
84
- AppDescriptorCommand.prototype.setCompositeId = function (sCompositeId) {
84
+ AppDescriptorCommand.prototype.setCompositeId = function(sCompositeId) {
85
85
  this._sCompositeId = sCompositeId;
86
86
  };
87
87
 
@@ -89,7 +89,7 @@ sap.ui.define([
89
89
  * Create the change for the app descriptor and adds it to the Flex Persistence.
90
90
  * @return {Promise} Returns Promise resolving after change has been created and stored
91
91
  */
92
- AppDescriptorCommand.prototype.createAndStoreChange = function () {
92
+ AppDescriptorCommand.prototype.createAndStoreChange = function() {
93
93
  return AppVariantInlineChangeFactory.createDescriptorInlineChange({
94
94
  changeType: this.getChangeType(),
95
95
  content: this.getParameters(),
@@ -98,19 +98,19 @@ sap.ui.define([
98
98
  compositeCommand: this._sCompositeId || ""
99
99
  }
100
100
  })
101
- .then(function(oAppDescriptorChangeContent) {
102
- return new DescriptorChangeFactory().createNew(
103
- this.getReference(),
104
- oAppDescriptorChangeContent,
105
- this.getLayer(),
106
- this.getAppComponent(),
107
- "sap.ui.rta.AppDescriptorCommand"
108
- );
109
- }.bind(this))
110
- .then(function(oAppDescriptorChange) {
111
- var oChange = oAppDescriptorChange.store();
112
- this._oPreparedChange = oChange;
113
- }.bind(this));
101
+ .then(function(oAppDescriptorChangeContent) {
102
+ return new DescriptorChangeFactory().createNew(
103
+ this.getReference(),
104
+ oAppDescriptorChangeContent,
105
+ this.getLayer(),
106
+ this.getAppComponent(),
107
+ "sap.ui.rta.AppDescriptorCommand"
108
+ );
109
+ }.bind(this))
110
+ .then(function(oAppDescriptorChange) {
111
+ var oChange = oAppDescriptorChange.store();
112
+ this._oPreparedChange = oChange;
113
+ }.bind(this));
114
114
  };
115
115
  return AppDescriptorCommand;
116
116
  });
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
13
13
  * @extends sap.ui.base.ManagedObject
14
14
  *
15
15
  * @author SAP SE
16
- * @version 1.115.0
16
+ * @version 1.116.0
17
17
  *
18
18
  * @constructor
19
19
  * @private
@@ -50,7 +50,6 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
50
50
  }
51
51
  });
52
52
 
53
-
54
53
  /**
55
54
  * Returns element instance instead of ID.
56
55
  * @override
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.FlexCommand
28
28
  * @author SAP SE
29
- * @version 1.115.0
29
+ * @version 1.116.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.115.0
19
+ * @version 1.116.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46