@openui5/sap.ui.rta 1.121.1 → 1.122.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 (148) hide show
  1. package/THIRDPARTY.txt +1 -1
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +1 -1
  4. package/src/sap/ui/rta/Client.js +1 -1
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +40 -47
  6. package/src/sap/ui/rta/Utils.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  8. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  9. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  10. package/src/sap/ui/rta/command/AddXML.js +1 -1
  11. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  12. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  13. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  14. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  15. package/src/sap/ui/rta/command/Combine.js +1 -1
  16. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  17. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  18. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  19. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  21. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  23. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  24. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  25. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  26. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  27. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  28. package/src/sap/ui/rta/command/Move.js +1 -1
  29. package/src/sap/ui/rta/command/Property.js +1 -1
  30. package/src/sap/ui/rta/command/Remove.js +1 -1
  31. package/src/sap/ui/rta/command/Rename.js +1 -1
  32. package/src/sap/ui/rta/command/Resize.js +1 -1
  33. package/src/sap/ui/rta/command/Reveal.js +1 -1
  34. package/src/sap/ui/rta/command/Settings.js +1 -1
  35. package/src/sap/ui/rta/command/Split.js +1 -1
  36. package/src/sap/ui/rta/command/Stack.js +1 -1
  37. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  38. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  39. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  40. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  41. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  42. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  43. package/src/sap/ui/rta/library.js +2 -2
  44. package/src/sap/ui/rta/messagebundle.properties +1 -5
  45. package/src/sap/ui/rta/messagebundle_ar.properties +2 -4
  46. package/src/sap/ui/rta/messagebundle_bg.properties +2 -4
  47. package/src/sap/ui/rta/messagebundle_ca.properties +1 -3
  48. package/src/sap/ui/rta/messagebundle_cnr.properties +1 -3
  49. package/src/sap/ui/rta/messagebundle_cs.properties +2 -4
  50. package/src/sap/ui/rta/messagebundle_cy.properties +2 -4
  51. package/src/sap/ui/rta/messagebundle_da.properties +2 -4
  52. package/src/sap/ui/rta/messagebundle_de.properties +2 -4
  53. package/src/sap/ui/rta/messagebundle_el.properties +2 -4
  54. package/src/sap/ui/rta/messagebundle_en.properties +2 -4
  55. package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -4
  56. package/src/sap/ui/rta/messagebundle_es.properties +1 -3
  57. package/src/sap/ui/rta/messagebundle_es_MX.properties +1 -3
  58. package/src/sap/ui/rta/messagebundle_et.properties +1 -3
  59. package/src/sap/ui/rta/messagebundle_fi.properties +1 -3
  60. package/src/sap/ui/rta/messagebundle_fr.properties +1 -3
  61. package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -4
  62. package/src/sap/ui/rta/messagebundle_hi.properties +1 -3
  63. package/src/sap/ui/rta/messagebundle_hr.properties +2 -4
  64. package/src/sap/ui/rta/messagebundle_hu.properties +1 -3
  65. package/src/sap/ui/rta/messagebundle_id.properties +2 -4
  66. package/src/sap/ui/rta/messagebundle_it.properties +1 -3
  67. package/src/sap/ui/rta/messagebundle_iw.properties +1 -3
  68. package/src/sap/ui/rta/messagebundle_ja.properties +2 -4
  69. package/src/sap/ui/rta/messagebundle_kk.properties +2 -4
  70. package/src/sap/ui/rta/messagebundle_ko.properties +1 -3
  71. package/src/sap/ui/rta/messagebundle_lt.properties +1 -3
  72. package/src/sap/ui/rta/messagebundle_lv.properties +2 -4
  73. package/src/sap/ui/rta/messagebundle_mk.properties +13 -15
  74. package/src/sap/ui/rta/messagebundle_ms.properties +2 -4
  75. package/src/sap/ui/rta/messagebundle_nl.properties +2 -4
  76. package/src/sap/ui/rta/messagebundle_no.properties +1 -3
  77. package/src/sap/ui/rta/messagebundle_pl.properties +2 -4
  78. package/src/sap/ui/rta/messagebundle_pt.properties +2 -4
  79. package/src/sap/ui/rta/messagebundle_pt_PT.properties +1 -3
  80. package/src/sap/ui/rta/messagebundle_ro.properties +2 -4
  81. package/src/sap/ui/rta/messagebundle_ru.properties +1 -3
  82. package/src/sap/ui/rta/messagebundle_sh.properties +1 -3
  83. package/src/sap/ui/rta/messagebundle_sk.properties +1 -3
  84. package/src/sap/ui/rta/messagebundle_sl.properties +2 -4
  85. package/src/sap/ui/rta/messagebundle_sr.properties +1 -3
  86. package/src/sap/ui/rta/messagebundle_sv.properties +1 -3
  87. package/src/sap/ui/rta/messagebundle_th.properties +1 -3
  88. package/src/sap/ui/rta/messagebundle_tr.properties +1 -3
  89. package/src/sap/ui/rta/messagebundle_uk.properties +2 -4
  90. package/src/sap/ui/rta/messagebundle_vi.properties +2 -4
  91. package/src/sap/ui/rta/messagebundle_zh_CN.properties +1 -3
  92. package/src/sap/ui/rta/messagebundle_zh_TW.properties +2 -4
  93. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  94. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  95. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  96. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  97. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  98. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  99. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  100. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  101. package/src/sap/ui/rta/plugin/Plugin.js +7 -8
  102. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  103. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  104. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  105. package/src/sap/ui/rta/plugin/RenameHandler.js +20 -5
  106. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  107. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  108. package/src/sap/ui/rta/plugin/Settings.js +7 -2
  109. package/src/sap/ui/rta/plugin/Split.js +1 -1
  110. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  111. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  112. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  113. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  114. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  115. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  116. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  117. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  118. package/src/sap/ui/rta/service/Action.js +1 -1
  119. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  120. package/src/sap/ui/rta/service/Outline.js +7 -7
  121. package/src/sap/ui/rta/service/Property.js +1 -1
  122. package/src/sap/ui/rta/service/Selection.js +1 -1
  123. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  124. package/src/sap/ui/rta/themes/base/Overlay.less +4 -0
  125. package/src/sap/ui/rta/themes/base/library.source.less +0 -1
  126. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +0 -1
  127. package/src/sap/ui/rta/toolbar/Adaptation.js +4 -8
  128. package/src/sap/ui/rta/toolbar/Base.js +7 -3
  129. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  130. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  131. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  132. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  133. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  134. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  135. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  136. package/src/sap/ui/rta/util/PluginManager.js +2 -10
  137. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  138. package/src/sap/ui/rta/util/ReloadManager.js +2 -3
  139. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  140. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  141. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  142. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  143. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -3
  144. package/src/sap/ui/rta/plugin/EasyAdd.js +0 -217
  145. package/src/sap/ui/rta/plugin/EasyRemove.js +0 -141
  146. package/src/sap/ui/rta/themes/base/Toolbar.personalization.less +0 -29
  147. package/src/sap/ui/rta/themes/sap_hcb/Toolbar.personalization.less +0 -10
  148. package/src/sap/ui/rta/toolbar/Personalization.js +0 -73
package/THIRDPARTY.txt CHANGED
@@ -461,7 +461,7 @@ License: Apache-2.0
461
461
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
462
462
  Contained in: lib/jsdoc/ui5/plugin.js
463
463
 
464
- Component: SAP Theming Base Content, version: 11.10.0
464
+ Component: SAP Theming Base Content, version: 11.12.0
465
465
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
466
466
  License: Apache-2.0
467
467
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.121.1",
3
+ "version": "1.122.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.rta",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.121.1",
18
- "@openui5/sap.ui.core": "1.121.1",
19
- "@openui5/sap.ui.dt": "1.121.1",
20
- "@openui5/sap.ui.fl": "1.121.1",
21
- "@openui5/sap.ui.layout": "1.121.1"
17
+ "@openui5/sap.m": "1.122.0",
18
+ "@openui5/sap.ui.core": "1.122.0",
19
+ "@openui5/sap.ui.dt": "1.122.0",
20
+ "@openui5/sap.ui.fl": "1.122.0",
21
+ "@openui5/sap.ui.layout": "1.122.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.121.1</version>
9
+ <version>1.122.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @alias sap.ui.rta.Client
60
60
  * @author SAP SE
61
61
  * @since 1.56.0
62
- * @version 1.121.1
62
+ * @version 1.122.0
63
63
  * @private
64
64
  * @ui5-restricted
65
65
  */
@@ -42,7 +42,6 @@ sap.ui.define([
42
42
  "sap/ui/rta/command/Stack",
43
43
  "sap/ui/rta/toolbar/Fiori",
44
44
  "sap/ui/rta/toolbar/FioriLike",
45
- "sap/ui/rta/toolbar/Personalization",
46
45
  "sap/ui/rta/toolbar/Standalone",
47
46
  "sap/ui/rta/util/changeVisualization/ChangeVisualization",
48
47
  "sap/ui/rta/util/PluginManager",
@@ -89,7 +88,6 @@ sap.ui.define([
89
88
  CommandStack,
90
89
  FioriToolbar,
91
90
  FioriLikeToolbar,
92
- PersonalizationToolbar,
93
91
  StandaloneToolbar,
94
92
  ChangeVisualization,
95
93
  PluginManager,
@@ -113,7 +111,7 @@ sap.ui.define([
113
111
  * @class The runtime authoring allows to adapt the fields of a running application.
114
112
  * @extends sap.ui.base.ManagedObject
115
113
  * @author SAP SE
116
- * @version 1.121.1
114
+ * @version 1.122.0
117
115
  * @constructor
118
116
  * @private
119
117
  * @since 1.30
@@ -313,7 +311,7 @@ sap.ui.define([
313
311
  * Returns (and creates) the default plugins of RuntimeAuthoring
314
312
  *
315
313
  * These are AdditionalElements, ContextMenu, CreateContainer, CutPaste,
316
- * DragDrop, Remove, Rename, Selection, Settings, TabHandling
314
+ * DragDrop, Remove, Rename, Selection, Settings
317
315
  *
318
316
  * Method uses a local cache to hold the default plugins: Then on multiple access
319
317
  * always the same instances get returned.
@@ -408,7 +406,7 @@ sap.ui.define([
408
406
  // Also Check if the application has an available draft and if yes, reload with those changes.
409
407
  const bReloadTriggered = await ReloadManager.handleReloadOnStart({
410
408
  layer: this.getLayer(),
411
- selector: this.getRootControlInstance(),
409
+ selector: oRootControl,
412
410
  versioningEnabled: this._oVersionsModel.getProperty("/versioningEnabled"),
413
411
  developerMode: this.getFlexSettings().developerMode,
414
412
  adaptationId: this._oContextBasedAdaptationsModel.getProperty("/displayedAdaptation/id")
@@ -417,8 +415,8 @@ sap.ui.define([
417
415
  // FLP Plugin reacts on this error string and doesn't pass the error on the UI
418
416
  throw Error("Reload triggered");
419
417
  }
420
- PersistenceWriteAPI.setAdaptationLayer(this.getLayer(), this.getRootControlInstance());
421
- const oFlexInfoSession = PersistenceWriteAPI.getResetAndPublishInfoFromSession(this.getRootControlInstance());
418
+ PersistenceWriteAPI.setAdaptationLayer(this.getLayer(), oRootControl);
419
+ const oFlexInfoSession = PersistenceWriteAPI.getResetAndPublishInfoFromSession(oRootControl);
422
420
  this.bInitialResetEnabled = !!oFlexInfoSession.isResetEnabled;
423
421
 
424
422
  this._oSerializer = new LREPSerializer({commandStack: this.getCommandStack(), rootControl: this.getRootControl()});
@@ -437,7 +435,7 @@ sap.ui.define([
437
435
  if (this.getShowToolbars()) {
438
436
  // Create ToolsMenu
439
437
  const mButtonsAvailability = await getToolbarButtonsVisibility(
440
- this.getRootControlInstance(), this.getLayer(), this._oSerializer
438
+ oRootControl, this.getLayer(), this._oSerializer
441
439
  );
442
440
  await createToolsMenu.call(this, mButtonsAvailability);
443
441
  }
@@ -459,6 +457,7 @@ sap.ui.define([
459
457
  if (this.getChangeVisualization) {
460
458
  this.getChangeVisualization()._oDesignTime = this._oDesignTime;
461
459
  }
460
+ setBlockedOnRootElements.call(this, true);
462
461
 
463
462
  // PopupManager sets the toolbar to already open popups' autoCloseAreas
464
463
  // Since at this point the toolbar is not available, it waits for RTA to start,
@@ -478,7 +477,7 @@ sap.ui.define([
478
477
  jQuery(document).on("keydown", this.fnKeyDown);
479
478
  this.fnOnPersonalizationChangeCreation = onPersonalizationChangeCreation.bind(this);
480
479
  ControlPersonalizationWriteAPI.attachChangeCreation(
481
- this.getRootControlInstance(),
480
+ oRootControl,
482
481
  this.fnOnPersonalizationChangeCreation
483
482
  );
484
483
  await checkFlexEnabled.call(this);
@@ -516,12 +515,8 @@ sap.ui.define([
516
515
  this._oDesignTime.addRootElement(this._oRootControl);
517
516
 
518
517
  Overlay.getOverlayContainer().get(0).classList.add("sapUiRta");
519
- if (this.getLayer() === Layer.USER) {
520
- Overlay.getOverlayContainer().get(0).classList.add("sapUiRtaPersonalize");
521
- } else {
522
- // RTA Visual Improvements
523
- document.body.classList.add("sapUiRtaMode");
524
- }
518
+ // RTA Visual Improvements
519
+ document.body.classList.add("sapUiRtaMode");
525
520
  this._oDesignTime.getSelectionManager().attachChange(function(oEvent) {
526
521
  this.fireSelectionChange({selection: oEvent.getParameter("selection")});
527
522
  }, this);
@@ -565,8 +560,7 @@ sap.ui.define([
565
560
  checkToolbarAndExecuteFunction.call(this, "setBusy", true);
566
561
  try {
567
562
  await waitForPendingActions.call(this);
568
- const sLayer = this.getLayer();
569
- if (sLayer !== Layer.USER && !bSkipSave && this.canSave()) {
563
+ if (!bSkipSave && this.canSave()) {
570
564
  const sAction = await showSaveConfirmation.call(this);
571
565
  if (sAction === MessageBox.Action.CANCEL) {
572
566
  bUserCancelled = true;
@@ -602,6 +596,7 @@ sap.ui.define([
602
596
  }
603
597
  }
604
598
  checkToolbarAndExecuteFunction.call(this, "setBusy", false);
599
+ setBlockedOnRootElements.call(this, false);
605
600
  if (!bUserCancelled) {
606
601
  this._sStatus = STOPPED;
607
602
  document.body.classList.remove("sapUiRtaMode");
@@ -655,13 +650,12 @@ sap.ui.define([
655
650
  RuntimeAuthoring.prototype.setMode = function(sNewMode) {
656
651
  const sCurrentMode = this.getMode();
657
652
  if (sCurrentMode !== sNewMode) {
658
- const oTabHandlingPlugin = this.getPluginManager().getPlugin("tabHandling");
659
653
  const oSelectionPlugin = this.getPluginManager().getPlugin("selection");
660
654
 
661
- // Switch between another mode and navigation -> toggle overlay & App-TabIndex enablement
655
+ // Switch between another mode and navigation -> toggle blocked on root controls
662
656
  if (sCurrentMode === "navigation" || sNewMode === "navigation") {
663
657
  this._oDesignTime.setEnabled(sNewMode !== "navigation");
664
- oTabHandlingPlugin[(sNewMode === "navigation") ? "restoreTabIndex" : "removeTabIndex"]();
658
+ setBlockedOnRootElements.call(this, sCurrentMode === "navigation");
665
659
  }
666
660
 
667
661
  const oChangeVisualization = this.getChangeVisualization?.();
@@ -676,7 +670,6 @@ sap.ui.define([
676
670
  this.getPluginManager().handleStopCutPaste();
677
671
  }
678
672
 
679
- oTabHandlingPlugin[(sNewMode === "adaptation") ? "restoreOverlayTabIndex" : "removeOverlayTabIndex"]();
680
673
  oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
681
674
 
682
675
  Overlay.getOverlayContainer().toggleClass("sapUiRtaVisualizationMode", (sNewMode === "visualization"));
@@ -723,6 +716,7 @@ sap.ui.define([
723
716
  this.removeDependent(sDependentKey);
724
717
  }.bind(this));
725
718
 
719
+ setBlockedOnRootElements.call(this, false);
726
720
  if (this._oDesignTime) {
727
721
  this._oDesignTime.destroy();
728
722
  this._oDesignTime = null;
@@ -825,12 +819,8 @@ sap.ui.define([
825
819
  */
826
820
  RuntimeAuthoring.prototype.restore = function() {
827
821
  const sLayer = this.getLayer();
828
- const sMessageKey = sLayer === Layer.USER
829
- ? "FORM_PERS_RESET_MESSAGE_PERSONALIZATION"
830
- : "FORM_PERS_RESET_MESSAGE";
831
- const sTitleKey = sLayer === Layer.USER
832
- ? "BTN_RESTORE"
833
- : "FORM_PERS_RESET_TITLE";
822
+ const sMessageKey = "FORM_PERS_RESET_MESSAGE";
823
+ const sTitleKey = "FORM_PERS_RESET_TITLE";
834
824
 
835
825
  this.getPluginManager().handleStopCutPaste();
836
826
 
@@ -919,6 +909,14 @@ sap.ui.define([
919
909
  return undefined;
920
910
  };
921
911
 
912
+ // the blocked property makes the elements unreachable via mouse or keyboard
913
+ function setBlockedOnRootElements(bBlocked) {
914
+ this._oDesignTime?.getRootElements().forEach((oRootElement) => {
915
+ const oUiElement = oRootElement.isA("sap.ui.core.Component") ? oRootElement.getRootControl() : oRootElement;
916
+ oUiElement?.setBlocked(bBlocked);
917
+ });
918
+ }
919
+
922
920
  async function checkFlexEnabled() {
923
921
  const sUriParam = new URLSearchParams(window.location.search).get("sap-ui-rta-skip-flex-validation");
924
922
  const oSettings = await Settings.getInstance();
@@ -1422,7 +1420,6 @@ sap.ui.define([
1422
1420
  return;
1423
1421
  }
1424
1422
 
1425
- const bUserLayer = this.getLayer() === Layer.USER;
1426
1423
  const oProperties = {
1427
1424
  rtaInformation: {
1428
1425
  flexSettings: this.getFlexSettings(),
@@ -1431,29 +1428,25 @@ sap.ui.define([
1431
1428
  },
1432
1429
  textResources: this._getTextResources(),
1433
1430
  restore: this.restore.bind(this),
1434
- exit: this.stop.bind(this, false, bUserLayer)
1431
+ exit: this.stop.bind(this, false, false)
1435
1432
  };
1436
1433
 
1437
- if (!bUserLayer) {
1438
- oProperties.publishVersion = onPublishVersion.bind(this);
1439
- oProperties.undo = this.undo.bind(this);
1440
- oProperties.redo = this.redo.bind(this);
1441
- oProperties.modeChange = onModeChange.bind(this);
1442
- oProperties.activate = onActivate.bind(this);
1443
- oProperties.discardDraft = onDiscardDraft.bind(this);
1444
- oProperties.switchVersion = onSwitchVersion.bind(this);
1445
- oProperties.switchAdaptation = onSwitchAdaptation.bind(this);
1446
- oProperties.deleteAdaptation = onDeleteAdaptation.bind(this);
1447
- oProperties.openChangeCategorySelectionPopover = this.getChangeVisualization
1448
- ? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
1449
- : function() {};
1450
- oProperties.save = saveOnly.bind(this);
1451
- }
1434
+ oProperties.publishVersion = onPublishVersion.bind(this);
1435
+ oProperties.undo = this.undo.bind(this);
1436
+ oProperties.redo = this.redo.bind(this);
1437
+ oProperties.modeChange = onModeChange.bind(this);
1438
+ oProperties.activate = onActivate.bind(this);
1439
+ oProperties.discardDraft = onDiscardDraft.bind(this);
1440
+ oProperties.switchVersion = onSwitchVersion.bind(this);
1441
+ oProperties.switchAdaptation = onSwitchAdaptation.bind(this);
1442
+ oProperties.deleteAdaptation = onDeleteAdaptation.bind(this);
1443
+ oProperties.openChangeCategorySelectionPopover = this.getChangeVisualization
1444
+ ? this.getChangeVisualization().openChangeCategorySelectionPopover.bind(this.getChangeVisualization())
1445
+ : function() {};
1446
+ oProperties.save = saveOnly.bind(this);
1452
1447
 
1453
1448
  let oToolbar;
1454
- if (bUserLayer) {
1455
- oToolbar = new PersonalizationToolbar(oProperties);
1456
- } else if (Utils.isOriginalFioriToolbarAccessible()) {
1449
+ if (Utils.isOriginalFioriToolbarAccessible()) {
1457
1450
  oToolbar = new FioriToolbar(oProperties);
1458
1451
  } else if (Utils.getFiori2Renderer()) {
1459
1452
  oToolbar = new FioriLikeToolbar(oProperties);
@@ -44,7 +44,7 @@ sap.ui.define([
44
44
  *
45
45
  * @namespace
46
46
  * @author SAP SE
47
- * @version 1.121.1
47
+ * @version 1.122.0
48
48
  *
49
49
  * @private
50
50
  * @since 1.30
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.121.1
27
+ * @version 1.122.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -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.121.1
19
+ * @version 1.122.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -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.121.1
17
+ * @version 1.122.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -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.121.1
19
+ * @version 1.122.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.121.1
27
+ * @version 1.122.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -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.121.1
24
+ * @version 1.122.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.ui.base.ManagedObject
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.121.1
19
+ * @version 1.122.0
20
20
  *
21
21
  * @constructor
22
22
  * @private
@@ -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.121.1
29
+ * @version 1.122.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.121.1
19
+ * @version 1.122.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -487,7 +487,7 @@ sap.ui.define([
487
487
  * @extends sap.ui.base.ManagedObject
488
488
  *
489
489
  * @author SAP SE
490
- * @version 1.121.1
490
+ * @version 1.122.0
491
491
  *
492
492
  * @constructor
493
493
  * @private
@@ -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.121.1
24
+ * @version 1.122.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
26
26
  * @author SAP SE
27
- * @version 1.121.1
27
+ * @version 1.122.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.52
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.121.1
23
+ * @version 1.122.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.BaseCommand
28
28
  * @author SAP SE
29
- * @version 1.121.1
29
+ * @version 1.122.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.86
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
26
26
  * @author SAP SE
27
- * @version 1.121.1
27
+ * @version 1.122.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.50
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @class
23
23
  * @extends sap.ui.rta.command.BaseCommand
24
24
  * @author SAP SE
25
- * @version 1.121.1
25
+ * @version 1.122.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.50
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.rta.command.BaseCommand
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.121.1
38
+ * @version 1.122.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.121.1
30
+ * @version 1.122.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.42
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.121.1
23
+ * @version 1.122.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.90
@@ -17,7 +17,7 @@ function(
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.FlexCommand
19
19
  * @author SAP SE
20
- * @version 1.121.1
20
+ * @version 1.122.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -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.121.1
19
+ * @version 1.122.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.42
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -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.121.1
19
+ * @version 1.122.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.101
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.121.1
15
+ * @version 1.122.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -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.121.1
17
+ * @version 1.122.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -73,7 +73,7 @@ sap.ui.define([
73
73
  * @class
74
74
  * @extends sap.ui.base.ManagedObject
75
75
  * @author SAP SE
76
- * @version 1.121.1
76
+ * @version 1.122.0
77
77
  * @constructor
78
78
  * @private
79
79
  * @since 1.34
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.rta.command.AppDescriptorCommand
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.121.1
22
+ * @version 1.122.0
23
23
  *
24
24
  * @constructor
25
25
  * @private
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.121.1
23
+ * @version 1.122.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.102
@@ -20,7 +20,7 @@ sap.ui.define([
20
20
  * @class
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  * @author SAP SE
23
- * @version 1.121.1
23
+ * @version 1.122.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -18,7 +18,7 @@ sap.ui.define([
18
18
  * @class
19
19
  * @extends sap.ui.rta.command.BaseCommand
20
20
  * @author SAP SE
21
- * @version 1.121.1
21
+ * @version 1.122.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @since 1.87
@@ -22,7 +22,7 @@ sap.ui.define([
22
22
  * @class
23
23
  * @extends sap.ui.rta.command.BaseCommand
24
24
  * @author SAP SE
25
- * @version 1.121.1
25
+ * @version 1.122.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * E.g. <code>elementActionTest.only("Remove");</code>
58
58
  *
59
59
  * @author SAP SE
60
- * @version 1.121.1
60
+ * @version 1.122.0
61
61
  *
62
62
  * @static
63
63
  * @since 1.42