@openui5/sap.ui.rta 1.94.0 → 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 (164) hide show
  1. package/.reuse/dep5 +12 -12
  2. package/THIRDPARTY.txt +21 -17
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +1 -1
  5. package/src/sap/ui/rta/Client.js +1 -1
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +108 -73
  7. package/src/sap/ui/rta/Utils.js +73 -1
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -2
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +8 -5
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -22
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +108 -85
  13. package/src/sap/ui/rta/appVariant/Feature.js +5 -12
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -1
  15. package/src/sap/ui/rta/appVariant/Utils.js +10 -2
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +35 -20
  17. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  18. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  19. package/src/sap/ui/rta/command/AddXML.js +1 -1
  20. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  21. package/src/sap/ui/rta/command/AppDescriptorCommand.js +4 -3
  22. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  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 +1 -1
  26. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantConfigure.js +4 -4
  28. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  29. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +7 -4
  30. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
  31. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -6
  32. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  33. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  34. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  35. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  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/Reveal.js +1 -1
  42. package/src/sap/ui/rta/command/Settings.js +1 -1
  43. package/src/sap/ui/rta/command/Split.js +1 -1
  44. package/src/sap/ui/rta/command/Stack.js +1 -1
  45. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  49. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  50. package/src/sap/ui/rta/library.js +2 -2
  51. package/src/sap/ui/rta/messagebundle.properties +14 -12
  52. package/src/sap/ui/rta/messagebundle_ar.properties +11 -10
  53. package/src/sap/ui/rta/messagebundle_bg.properties +11 -10
  54. package/src/sap/ui/rta/messagebundle_ca.properties +10 -9
  55. package/src/sap/ui/rta/messagebundle_cs.properties +11 -10
  56. package/src/sap/ui/rta/messagebundle_cy.properties +11 -10
  57. package/src/sap/ui/rta/messagebundle_da.properties +11 -10
  58. package/src/sap/ui/rta/messagebundle_de.properties +14 -13
  59. package/src/sap/ui/rta/messagebundle_el.properties +11 -10
  60. package/src/sap/ui/rta/messagebundle_en.properties +11 -10
  61. package/src/sap/ui/rta/messagebundle_en_GB.properties +11 -10
  62. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +11 -10
  63. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +11 -10
  64. package/src/sap/ui/rta/messagebundle_es.properties +11 -10
  65. package/src/sap/ui/rta/messagebundle_es_MX.properties +11 -10
  66. package/src/sap/ui/rta/messagebundle_et.properties +11 -10
  67. package/src/sap/ui/rta/messagebundle_fi.properties +10 -9
  68. package/src/sap/ui/rta/messagebundle_fr.properties +11 -10
  69. package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -10
  70. package/src/sap/ui/rta/messagebundle_hi.properties +11 -10
  71. package/src/sap/ui/rta/messagebundle_hr.properties +11 -10
  72. package/src/sap/ui/rta/messagebundle_hu.properties +10 -9
  73. package/src/sap/ui/rta/messagebundle_id.properties +11 -10
  74. package/src/sap/ui/rta/messagebundle_it.properties +11 -10
  75. package/src/sap/ui/rta/messagebundle_iw.properties +11 -10
  76. package/src/sap/ui/rta/messagebundle_ja.properties +11 -10
  77. package/src/sap/ui/rta/messagebundle_kk.properties +11 -10
  78. package/src/sap/ui/rta/messagebundle_ko.properties +11 -10
  79. package/src/sap/ui/rta/messagebundle_lt.properties +11 -10
  80. package/src/sap/ui/rta/messagebundle_lv.properties +11 -10
  81. package/src/sap/ui/rta/messagebundle_ms.properties +11 -10
  82. package/src/sap/ui/rta/messagebundle_nl.properties +11 -10
  83. package/src/sap/ui/rta/messagebundle_no.properties +11 -10
  84. package/src/sap/ui/rta/messagebundle_pl.properties +11 -10
  85. package/src/sap/ui/rta/messagebundle_pt.properties +10 -9
  86. package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -9
  87. package/src/sap/ui/rta/messagebundle_ro.properties +11 -10
  88. package/src/sap/ui/rta/messagebundle_ru.properties +10 -9
  89. package/src/sap/ui/rta/messagebundle_sh.properties +11 -10
  90. package/src/sap/ui/rta/messagebundle_sk.properties +11 -10
  91. package/src/sap/ui/rta/messagebundle_sl.properties +11 -10
  92. package/src/sap/ui/rta/messagebundle_sv.properties +11 -10
  93. package/src/sap/ui/rta/messagebundle_th.properties +16 -15
  94. package/src/sap/ui/rta/messagebundle_tr.properties +11 -10
  95. package/src/sap/ui/rta/messagebundle_uk.properties +12 -11
  96. package/src/sap/ui/rta/messagebundle_vi.properties +11 -10
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -10
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +11 -10
  99. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  100. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  101. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  102. package/src/sap/ui/rta/plugin/CompVariant.js +1 -2
  103. package/src/sap/ui/rta/plugin/ControlVariant.js +10 -5
  104. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  105. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  106. package/src/sap/ui/rta/plugin/DragDrop.js +52 -2
  107. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  108. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  109. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  110. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  111. package/src/sap/ui/rta/plugin/RTAElementMover.js +14 -62
  112. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  113. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  114. package/src/sap/ui/rta/plugin/RenameHandler.js +4 -14
  115. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  116. package/src/sap/ui/rta/plugin/Settings.js +15 -14
  117. package/src/sap/ui/rta/plugin/Split.js +2 -1
  118. package/src/sap/ui/rta/plugin/Stretch.js +133 -138
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +6 -6
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +74 -0
  121. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +97 -260
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +31 -18
  124. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  125. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +8 -5
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +31 -29
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -16
  129. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  130. package/src/sap/ui/rta/service/Action.js +1 -1
  131. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  132. package/src/sap/ui/rta/service/Outline.js +164 -67
  133. package/src/sap/ui/rta/service/Property.js +1 -3
  134. package/src/sap/ui/rta/service/Selection.js +2 -1
  135. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -30
  136. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +55 -0
  137. package/src/sap/ui/rta/themes/base/Toolbar.base.less +12 -1
  138. package/src/sap/ui/rta/themes/base/library.source.less +3 -1
  139. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +26 -14
  140. package/src/sap/ui/rta/toolbar/Adaptation.js +3 -3
  141. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  143. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  144. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +3 -3
  145. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  147. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  148. package/src/sap/ui/rta/util/BindingsExtractor.js +13 -7
  149. package/src/sap/ui/rta/util/PluginManager.js +2 -4
  150. package/src/sap/ui/rta/util/PopupManager.js +3 -11
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  152. package/src/sap/ui/rta/util/adaptationStarter.js +4 -4
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +16 -78
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +15 -37
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +85 -107
  157. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +30 -0
  158. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +3 -2
  159. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +30 -0
  160. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +9 -3
  161. package/src/sap/ui/rta/util/validateFlexEnabled.js +4 -4
  162. package/ui5.yaml +4 -1
  163. package/src/sap/ui/rta/assets/InPageStyles.css +0 -34
  164. package/src/sap/ui/rta/util/changeVisualization/ChangesListPopover.fragment.xml +0 -23
@@ -6,6 +6,7 @@
6
6
  sap.ui.define([
7
7
  "sap/ui/core/mvc/Controller",
8
8
  "sap/ui/fl/Layer",
9
+ "sap/ui/fl/Utils",
9
10
  "sap/ui/rta/appVariant/manageApps/webapp/model/models",
10
11
  "sap/ui/rta/appVariant/AppVariantUtils",
11
12
  "sap/ui/rta/appVariant/Utils",
@@ -19,6 +20,7 @@ sap.ui.define([
19
20
  ], function(
20
21
  Controller,
21
22
  Layer,
23
+ FlUtils,
22
24
  Model,
23
25
  AppVariantUtils,
24
26
  AppVariantOverviewUtils,
@@ -35,6 +37,7 @@ sap.ui.define([
35
37
  var _sIdRunningApp;
36
38
  var _bKeyUser;
37
39
  var _sLayer;
40
+ var _oCrossAppNavService;
38
41
  var sModulePath;
39
42
  var oI18n;
40
43
 
@@ -43,29 +46,41 @@ sap.ui.define([
43
46
  _sIdRunningApp = this.getOwnerComponent().getIdRunningApp();
44
47
  _bKeyUser = this.getOwnerComponent().getIsOverviewForKeyUser();
45
48
  _sLayer = this.getOwnerComponent().getLayer();
49
+ var oUShellContainer = FlUtils.getUshellContainer();
46
50
 
47
51
  if (!oI18n) {
48
52
  this._createResourceBundle();
49
53
  }
50
54
 
51
55
  BusyIndicator.show();
52
- return AppVariantOverviewUtils.getAppVariantOverview(_sIdRunningApp, _bKeyUser).then(function(aAppVariantOverviewAttributes) {
53
- BusyIndicator.hide();
54
- if (aAppVariantOverviewAttributes.length) {
55
- return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
56
- return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
57
- }.bind(this));
58
- }
59
-
60
- AppVariantUtils.closeOverviewDialog();
61
- return this._showMessageWhenNoAppVariantsExist();
62
- }.bind(this))["catch"](function(oError) {
63
- AppVariantUtils.closeOverviewDialog();
64
- var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
65
- oErrorInfo.overviewDialog = true;
66
- BusyIndicator.hide();
67
- return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
68
- });
56
+ return Promise.resolve()
57
+ .then(function() {
58
+ if (oUShellContainer) {
59
+ return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
60
+ .then(function(oCrossAppNavService) {
61
+ _oCrossAppNavService = oCrossAppNavService;
62
+ });
63
+ }
64
+ return undefined;
65
+ })
66
+ .then(AppVariantOverviewUtils.getAppVariantOverview.bind(AppVariantOverviewUtils, _sIdRunningApp, _bKeyUser))
67
+ .then(function(aAppVariantOverviewAttributes) {
68
+ BusyIndicator.hide();
69
+ if (aAppVariantOverviewAttributes.length) {
70
+ return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
71
+ return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
72
+ }.bind(this));
73
+ }
74
+ AppVariantUtils.closeOverviewDialog();
75
+ return this._showMessageWhenNoAppVariantsExist();
76
+ }.bind(this))
77
+ .catch(function(oError) {
78
+ AppVariantUtils.closeOverviewDialog();
79
+ var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
80
+ oErrorInfo.overviewDialog = true;
81
+ BusyIndicator.hide();
82
+ return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
83
+ });
69
84
  },
70
85
 
71
86
  _createResourceBundle: function() {
@@ -222,8 +237,6 @@ sap.ui.define([
222
237
  },
223
238
 
224
239
  handleUiAdaptation: function(oEvent) {
225
- var oNavigationService = sap.ushell.Container.getService("CrossApplicationNavigation");
226
-
227
240
  var sSemanticObject = this.getModelProperty("semanticObject", oEvent.getSource().getBindingContext());
228
241
  var sAction = this.getModelProperty("action", oEvent.getSource().getBindingContext());
229
242
  var oParams = this.getModelProperty("params", oEvent.getSource().getBindingContext());
@@ -241,7 +254,9 @@ sap.ui.define([
241
254
 
242
255
  RuntimeAuthoring.enableRestart(Layer.CUSTOMER);
243
256
 
244
- oNavigationService.toExternal(oNavigationParams);
257
+ if (_oCrossAppNavService) {
258
+ _oCrossAppNavService.toExternal(oNavigationParams);
259
+ }
245
260
 
246
261
  AppVariantUtils.closeOverviewDialog();
247
262
  return true;
@@ -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.94.0
19
+ * @version 1.97.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.94.0
17
+ * @version 1.97.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.94.0
19
+ * @version 1.97.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.94.0
27
+ * @version 1.97.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.94.0
24
+ * @version 1.97.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -64,8 +64,9 @@ sap.ui.define([
64
64
 
65
65
  /**
66
66
  * Prepare the app descriptor change, setting the layer.
67
- * @param {object} mFlexSettings Map of flex Settings
68
- * @param {string} mFlexSettings.layer Layer where the change is applied
67
+ * @param {object} mFlexSettings - Map of flex settings
68
+ * @param {string} mFlexSettings.layer - Layer where the change is applied
69
+ * @returns {boolean} <code>true</true>
69
70
  */
70
71
  AppDescriptorCommand.prototype.prepare = function (mFlexSettings) {
71
72
  this.setLayer(mFlexSettings.layer);
@@ -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.94.0
16
+ * @version 1.97.0
17
17
  *
18
18
  * @constructor
19
19
  * @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.94.0
29
+ * @version 1.97.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.94.0
19
+ * @version 1.97.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -475,7 +475,7 @@ sap.ui.define([
475
475
  * @extends sap.ui.base.ManagedObject
476
476
  *
477
477
  * @author SAP SE
478
- * @version 1.94.0
478
+ * @version 1.97.0
479
479
  *
480
480
  * @constructor
481
481
  * @private
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @extends sap.ui.rta.command.BaseCommand
20
20
  *
21
21
  * @author SAP SE
22
- * @version 1.94.0
22
+ * @version 1.97.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.94.0
23
+ * @version 1.97.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.52
@@ -72,7 +72,7 @@ sap.ui.define([
72
72
  this.getChanges().forEach(function(mChangeProperties) {
73
73
  mChangeProperties.appComponent = this.oAppComponent;
74
74
  mChangeProperties.generator = sap.ui.rta.GENERATOR_NAME;
75
- this._aPreparedChanges.push(this.oModel.setVariantProperties(this.sVariantManagementReference, mChangeProperties, true));
75
+ this._aPreparedChanges.push(this.oModel.addVariantChange(this.sVariantManagementReference, mChangeProperties));
76
76
  }.bind(this));
77
77
 
78
78
  return Promise.resolve().then(function() {
@@ -100,8 +100,8 @@ sap.ui.define([
100
100
  mPropertyBag[sProperty] = mChangeProperties[sProperty];
101
101
  }
102
102
  });
103
- mPropertyBag.change = this._aPreparedChanges[index];
104
- this.oModel.setVariantProperties(this.sVariantManagementReference, mPropertyBag, false);
103
+ var oChange = this._aPreparedChanges[index];
104
+ this.oModel.deleteVariantChange(this.sVariantManagementReference, mPropertyBag, oChange);
105
105
  }.bind(this));
106
106
 
107
107
  return Promise.resolve().then(function() {
@@ -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.94.0
23
+ * @version 1.97.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -7,12 +7,14 @@ sap.ui.define([
7
7
  "sap/ui/rta/command/BaseCommand",
8
8
  "sap/ui/core/util/reflection/JsControlTreeModifier",
9
9
  "sap/ui/rta/Utils",
10
- "sap/ui/fl/Utils"
10
+ "sap/ui/fl/Utils",
11
+ "sap/ui/fl/write/api/ContextSharingAPI"
11
12
  ], function(
12
13
  BaseCommand,
13
14
  JsControlTreeModifier,
14
15
  rtaUtils,
15
- flUtils
16
+ flUtils,
17
+ ContextSharingAPI
16
18
  ) {
17
19
  "use strict";
18
20
 
@@ -22,7 +24,7 @@ sap.ui.define([
22
24
  * @class
23
25
  * @extends sap.ui.rta.command.BaseCommand
24
26
  * @author SAP SE
25
- * @version 1.94.0
27
+ * @version 1.97.0
26
28
  * @constructor
27
29
  * @private
28
30
  * @since 1.86
@@ -77,7 +79,8 @@ sap.ui.define([
77
79
  return new Promise(function(resolve) {
78
80
  this.oVariantManagementControl.attachSave({resolve: resolve}, storeEventParameters, this);
79
81
  this.oVariantManagementControl.attachCancel({resolve: resolve}, handleCancel, this);
80
- this.oVariantManagementControl.openSaveAsDialogForKeyUser(rtaUtils.getRtaStyleClassName());
82
+ this.oVariantManagementControl.openSaveAsDialogForKeyUser(rtaUtils.getRtaStyleClassName(),
83
+ ContextSharingAPI.createComponent(mFlexSettings));
81
84
  }.bind(this))
82
85
  .then(function(bState) {
83
86
  return bState;
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.BaseCommand
18
18
  * @author SAP SE
19
- * @version 1.94.0
19
+ * @version 1.97.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.50
@@ -80,7 +80,7 @@ sap.ui.define([
80
80
  generator: sap.ui.rta.GENERATOR_NAME
81
81
  };
82
82
 
83
- return Promise.resolve(this.oModel.setVariantProperties(this.sVariantManagementReference, mPropertyBag, true))
83
+ return Promise.resolve(this.oModel.addVariantChange(this.sVariantManagementReference, mPropertyBag))
84
84
  .then(function(oChange) {
85
85
  this._oVariantChange = oChange;
86
86
  oVariantManagementControlBinding.checkUpdate(true); /*Force Update as binding key stays same*/
@@ -97,13 +97,13 @@ sap.ui.define([
97
97
  var mPropertyBag = {
98
98
  variantReference: this.sCurrentVariant,
99
99
  changeType: "setTitle",
100
- title: this.getOldText(),
101
- change: this._oVariantChange
100
+ title: this.getOldText()
102
101
  };
102
+ var oChange = this._oVariantChange;
103
103
 
104
- return Promise.resolve(this.oModel.setVariantProperties(this.sVariantManagementReference, mPropertyBag, false))
105
- .then(function(oChange) {
106
- this._oVariantChange = oChange;
104
+ return Promise.resolve(this.oModel.deleteVariantChange(this.sVariantManagementReference, mPropertyBag, oChange))
105
+ .then(function() {
106
+ this._oVariantChange = null;
107
107
  oVariantManagementControlBinding.checkUpdate(true); /*Force Update as binding key stays same*/
108
108
  }.bind(this));
109
109
  };
@@ -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.94.0
23
+ * @version 1.97.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.50
@@ -74,11 +74,6 @@ sap.ui.define([
74
74
  return this._updateModelVariant(sOldVariantReference, oAppComponent);
75
75
  };
76
76
 
77
- /**
78
- * Update variant for the underlying model.
79
- * @private
80
- * @returns {Promise} Returns promise resolve
81
- */
82
77
  ControlVariantSwitch.prototype._updateModelVariant = function (sVariantReference, oAppComponent) {
83
78
  if (this.getTargetVariantReference() !== this.getSourceVariantReference()) {
84
79
  return this.oModel.updateCurrentVariant({
@@ -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.94.0
15
+ * @version 1.97.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.94.0
15
+ * @version 1.97.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.rta.command.BaseCommand
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.94.0
32
+ * @version 1.97.0
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @class
30
30
  * @extends sap.ui.base.ManagedObject
31
31
  * @author SAP SE
32
- * @version 1.94.0
32
+ * @version 1.97.0
33
33
  * @constructor
34
34
  * @private
35
35
  * @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.94.0
23
+ * @version 1.97.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.94.0
20
+ * @version 1.97.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.94.0
19
+ * @version 1.97.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.94.0
15
+ * @version 1.97.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.94.0
15
+ * @version 1.97.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.94.0
15
+ * @version 1.97.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.94.0
15
+ * @version 1.97.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.94.0
17
+ * @version 1.97.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @class
60
60
  * @extends sap.ui.base.ManagedObject
61
61
  * @author SAP SE
62
- * @version 1.94.0
62
+ * @version 1.97.0
63
63
  * @constructor
64
64
  * @private
65
65
  * @since 1.34
@@ -17,7 +17,7 @@ sap.ui.define([
17
17
  * @extends sap.ui.rta.command.AppDescriptorCommand
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.94.0
20
+ * @version 1.97.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -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.94.0
21
+ * @version 1.97.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @since 1.87
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.BaseCommand
18
18
  * @author SAP SE
19
- * @version 1.94.0
19
+ * @version 1.97.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.87
@@ -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.94.0
23
+ * @version 1.97.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * E.g. <code>controlEnablingCheck.only("Remove");</code>
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.94.0
54
+ * @version 1.97.0
55
55
  *
56
56
  * @static
57
57
  * @since 1.42
@@ -23,7 +23,7 @@ function() {
23
23
  * @namespace
24
24
  * @name sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.94.0
26
+ * @version 1.97.0
27
27
  * @since 1.50
28
28
  * @private
29
29
  * @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
@@ -33,7 +33,7 @@ function() {
33
33
  // delegate further initialization of this library to the Core
34
34
  sap.ui.getCore().initLibrary({
35
35
  name: "sap.ui.rta",
36
- version: "1.94.0",
36
+ version: "1.97.0",
37
37
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
38
38
  types: [],
39
39
  interfaces: [],
@@ -369,7 +369,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_RENAME_TO=Name was changed to ''{0}''
369
369
  #XTXT: Description for rename-changes
370
370
  TXT_CHANGEVISUALIZATION_CHANGE_RENAME_FROM_TO=Name was changed from ''{1}'' to ''{0}''
371
371
  #XTXT: Description for move-changes
372
- TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element {0} was moved to a different position
372
+ TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element ''{0}'' was moved
373
373
  #XTXT: Description for remove-changes
374
374
  TXT_CHANGEVISUALIZATION_CHANGE_REMOVE=Element {0} was removed
375
375
  #XTXT: Description for reveal-changes
@@ -377,7 +377,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_REVEAL=Element {0} was revealed
377
377
  #XTXT: Description for combine-changes
378
378
  TXT_CHANGEVISUALIZATION_CHANGE_COMBINE=Element {0} was combined
379
379
  #XTXT: Description for split-changes
380
- TXT_CHANGEVISUALIZATION_CHANGE_SPLIT=Element {0} was split
380
+ TXT_CHANGEVISUALIZATION_CHANGE_SPLIT=Element ''{0}'' was split
381
381
  #XTXT: Description for createcontainer-changes
382
382
  TXT_CHANGEVISUALIZATION_CHANGE_CREATECONTAINER=Group {0} was added
383
383
  #XTXT: Description for adddelegateproperty-changes
@@ -386,10 +386,6 @@ TXT_CHANGEVISUALIZATION_CHANGE_ADDDELEGATEPROPERTY=Field {0} was added
386
386
  TXT_CHANGEVISUALIZATION_CHANGE_ADDIFRAME=IFrame was added
387
387
  #XTXT: Description for settings-changes
388
388
  TXT_CHANGEVISUALIZATION_CHANGE_SETTINGS=Settings of element {0} were changed
389
- #XTXT: Description for dependents of move-changes
390
- TXT_CHANGEVISUALIZATION_DEPENDENT_MOVE=Element was moved from this container
391
- #XTXT: Description for dependents of split-changes
392
- TXT_CHANGEVISUALIZATION_DEPENDENT_SPLIT=This element is a part of the split
393
389
  #XTIT: Title for SingleChangePopover
394
390
  TIT_CHANGEVISUALIZATION_CHANGE=Change
395
391
  #XTIT: Title for ChangePopover and ChangesPopover
@@ -405,28 +401,34 @@ BUT_CHANGEVISUALIZATION_SHOWCHANGES=Visualize Key User Changes
405
401
  #XTOL: Tooltip for Select Changes Button in Toolbar
406
402
  BUT_CHANGEVISUALIZATION_SELECTCHANGES=Select Change Type
407
403
  #XTXT: Text for all-changes item of ChangesPopover
408
- TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=Show all changes
404
+ TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All ({0})
409
405
  #XBUT: Button text for all-changes
410
406
  BTN_CHANGEVISUALIZATION_OVERVIEW_ALL=All Changes
411
407
  #XTXT: Text for move-changes item of ChangesPopover
412
- TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Show moved elements
408
+ TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move ({0})
413
409
  #XBUT: Button text for move-changes
414
410
  BTN_CHANGEVISUALIZATION_OVERVIEW_MOVE=Moved Elements
415
411
  #XTXT: Text for rename-changes item of ChangesPopover
416
- TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Show renamed elements
412
+ TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename ({0})
417
413
  #XBUT: Button text for rename-changes
418
414
  BTN_CHANGEVISUALIZATION_OVERVIEW_RENAME=Renamed Elements
419
415
  #XTXT: Text for add-changes item of ChangesPopover
420
- TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Show added elements
416
+ TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add ({0})
421
417
  #BUT: Button text for add-changes
422
418
  BTN_CHANGEVISUALIZATION_OVERVIEW_ADD=Added Elements
423
419
  #XTXT: Text for combine- and split-changes item of ChangesPopover
424
- TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Show Combined and Split Elements
420
+ TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split ({0})
425
421
  #XBUT: Button text for combine- and split-changes
426
422
  BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combined and Split Elements
427
423
  #XTXT: Text for remove-changes item of ChangesPopover
428
- TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Show removed elements
424
+ TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove ({0})
429
425
  #XBUT: Button text for remove-changes
430
426
  BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Removed Elements
427
+ #XTXT: Semantic date for changes created in same session
428
+ TXT_CHANGEVISUALIZATION_CREATED_IN_SESSION_DATE=Just now
431
429
  #XMSG: message toast text after a local reset saved the variant
432
430
  MSG_LOCAL_RESET_VARIANT_SAVE=The container has been reset and the view has been saved automatically.
431
+ #XBUT: Button text for showing the dependent container of a move change
432
+ BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE=Show Source
433
+ #XBUT: Button text for showing the dependent container of a split change
434
+ BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=Show Other Parts