@openui5/sap.ui.rta 1.102.2 → 1.104.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 (153) hide show
  1. package/.reuse/dep5 +17 -0
  2. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
  3. package/THIRDPARTY.txt +35 -2
  4. package/package.json +6 -6
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +1 -1
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +83 -410
  8. package/src/sap/ui/rta/Utils.js +2 -2
  9. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +5 -20
  11. package/src/sap/ui/rta/appVariant/Feature.js +2 -2
  12. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  13. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  14. package/src/sap/ui/rta/command/AddXML.js +1 -1
  15. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  16. package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
  17. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  18. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  19. package/src/sap/ui/rta/command/Combine.js +1 -1
  20. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  21. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  22. package/src/sap/ui/rta/command/ControlVariantConfigure.js +4 -2
  23. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -2
  25. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +4 -3
  26. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  27. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  28. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  29. package/src/sap/ui/rta/command/FlexCommand.js +4 -2
  30. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  31. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  32. package/src/sap/ui/rta/command/Move.js +1 -1
  33. package/src/sap/ui/rta/command/Property.js +2 -2
  34. package/src/sap/ui/rta/command/Remove.js +1 -1
  35. package/src/sap/ui/rta/command/Rename.js +1 -1
  36. package/src/sap/ui/rta/command/Resize.js +1 -1
  37. package/src/sap/ui/rta/command/Reveal.js +1 -1
  38. package/src/sap/ui/rta/command/Settings.js +2 -2
  39. package/src/sap/ui/rta/command/Split.js +1 -1
  40. package/src/sap/ui/rta/command/Stack.js +1 -1
  41. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  42. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +12 -10
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
  45. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +7 -5
  46. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  47. package/src/sap/ui/rta/library.js +2 -2
  48. package/src/sap/ui/rta/messagebundle.properties +15 -11
  49. package/src/sap/ui/rta/messagebundle_ar.properties +10 -8
  50. package/src/sap/ui/rta/messagebundle_bg.properties +11 -9
  51. package/src/sap/ui/rta/messagebundle_ca.properties +11 -9
  52. package/src/sap/ui/rta/messagebundle_cs.properties +10 -8
  53. package/src/sap/ui/rta/messagebundle_cy.properties +8 -6
  54. package/src/sap/ui/rta/messagebundle_da.properties +12 -10
  55. package/src/sap/ui/rta/messagebundle_de.properties +12 -10
  56. package/src/sap/ui/rta/messagebundle_el.properties +11 -9
  57. package/src/sap/ui/rta/messagebundle_en.properties +12 -10
  58. package/src/sap/ui/rta/messagebundle_en_GB.properties +12 -10
  59. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +13 -11
  60. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +13 -11
  61. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +13 -11
  62. package/src/sap/ui/rta/messagebundle_es.properties +8 -6
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +6 -4
  64. package/src/sap/ui/rta/messagebundle_et.properties +8 -6
  65. package/src/sap/ui/rta/messagebundle_fi.properties +12 -10
  66. package/src/sap/ui/rta/messagebundle_fr.properties +9 -7
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -9
  68. package/src/sap/ui/rta/messagebundle_hi.properties +11 -9
  69. package/src/sap/ui/rta/messagebundle_hr.properties +10 -8
  70. package/src/sap/ui/rta/messagebundle_hu.properties +4 -2
  71. package/src/sap/ui/rta/messagebundle_id.properties +10 -8
  72. package/src/sap/ui/rta/messagebundle_it.properties +11 -9
  73. package/src/sap/ui/rta/messagebundle_iw.properties +11 -9
  74. package/src/sap/ui/rta/messagebundle_ja.properties +11 -9
  75. package/src/sap/ui/rta/messagebundle_kk.properties +11 -9
  76. package/src/sap/ui/rta/messagebundle_ko.properties +11 -9
  77. package/src/sap/ui/rta/messagebundle_lt.properties +10 -8
  78. package/src/sap/ui/rta/messagebundle_lv.properties +8 -6
  79. package/src/sap/ui/rta/messagebundle_ms.properties +12 -10
  80. package/src/sap/ui/rta/messagebundle_nl.properties +12 -10
  81. package/src/sap/ui/rta/messagebundle_no.properties +11 -9
  82. package/src/sap/ui/rta/messagebundle_pl.properties +10 -8
  83. package/src/sap/ui/rta/messagebundle_pt.properties +11 -9
  84. package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -8
  85. package/src/sap/ui/rta/messagebundle_ro.properties +10 -8
  86. package/src/sap/ui/rta/messagebundle_ru.properties +11 -9
  87. package/src/sap/ui/rta/messagebundle_sh.properties +12 -10
  88. package/src/sap/ui/rta/messagebundle_sk.properties +10 -8
  89. package/src/sap/ui/rta/messagebundle_sl.properties +8 -6
  90. package/src/sap/ui/rta/messagebundle_sv.properties +12 -10
  91. package/src/sap/ui/rta/messagebundle_th.properties +14 -12
  92. package/src/sap/ui/rta/messagebundle_tr.properties +11 -9
  93. package/src/sap/ui/rta/messagebundle_uk.properties +12 -10
  94. package/src/sap/ui/rta/messagebundle_vi.properties +11 -9
  95. package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -9
  96. package/src/sap/ui/rta/messagebundle_zh_TW.properties +10 -8
  97. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  98. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  99. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  100. package/src/sap/ui/rta/plugin/CompVariant.js +3 -3
  101. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  102. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  103. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  104. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  105. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  106. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  107. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  108. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  109. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  110. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  111. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  112. package/src/sap/ui/rta/plugin/RenameHandler.js +23 -5
  113. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  114. package/src/sap/ui/rta/plugin/Selection.js +12 -1
  115. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  116. package/src/sap/ui/rta/plugin/Split.js +1 -1
  117. package/src/sap/ui/rta/plugin/Stretch.js +5 -3
  118. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +5 -5
  121. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  124. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  125. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  126. package/src/sap/ui/rta/service/Action.js +1 -1
  127. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  128. package/src/sap/ui/rta/service/Outline.js +1 -1
  129. package/src/sap/ui/rta/service/Property.js +1 -1
  130. package/src/sap/ui/rta/service/Selection.js +1 -1
  131. package/src/sap/ui/rta/toolbar/Adaptation.js +36 -262
  132. package/src/sap/ui/rta/toolbar/Base.js +12 -18
  133. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  134. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  135. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  136. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  137. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  138. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  139. package/src/sap/ui/rta/toolbar/{VersionHistory.fragment.xml → versioning/VersionHistory.fragment.xml} +4 -3
  140. package/src/sap/ui/rta/toolbar/{VersionTitleDialog.fragment.xml → versioning/VersionTitleDialog.fragment.xml} +3 -2
  141. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +271 -0
  142. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  143. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  144. package/src/sap/ui/rta/util/ReloadManager.js +330 -0
  145. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  146. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +21 -4
  147. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
  148. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  149. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +24 -9
  150. package/src/sap/ui/rta/util/changeVisualization/categories/CombineVisualization.js +87 -0
  151. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +2 -2
  152. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +4 -2
  153. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +3 -0
@@ -45,7 +45,7 @@ function(
45
45
  *
46
46
  * @namespace
47
47
  * @author SAP SE
48
- * @version 1.102.2
48
+ * @version 1.104.0
49
49
  *
50
50
  * @private
51
51
  * @since 1.30
@@ -221,7 +221,7 @@ function(
221
221
  Utils.getFocusedOverlay = function() {
222
222
  if (document.activeElement) {
223
223
  var oElement = sap.ui.getCore().byId(document.activeElement.id);
224
- if (oElement instanceof sap.ui.dt.ElementOverlay) {
224
+ if (oElement && oElement.isA("sap.ui.dt.ElementOverlay")) {
225
225
  return oElement;
226
226
  }
227
227
  }
@@ -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.102.2
27
+ * @version 1.104.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -13,7 +13,8 @@ sap.ui.define([
13
13
  "sap/base/Log",
14
14
  "sap/ui/fl/write/api/PersistenceWriteAPI",
15
15
  "sap/ui/fl/write/api/AppVariantWriteAPI",
16
- "sap/ui/fl/write/api/ChangesWriteAPI"
16
+ "sap/ui/fl/write/api/ChangesWriteAPI",
17
+ "sap/ui/fl/write/_internal/connectors/LrepConnector"
17
18
  ], function(
18
19
  FlexUtils,
19
20
  MessageBox,
@@ -23,7 +24,8 @@ sap.ui.define([
23
24
  Log,
24
25
  PersistenceWriteAPI,
25
26
  AppVariantWriteAPI,
26
- ChangesWriteAPI
27
+ ChangesWriteAPI,
28
+ LrepConnector
27
29
  ) {
28
30
  "use strict";
29
31
  var AppVariantUtils = {};
@@ -34,24 +36,7 @@ sap.ui.define([
34
36
  AppVariantUtils._newAppVariantId = null;
35
37
 
36
38
  AppVariantUtils.getManifirstSupport = function(sRunningAppId) {
37
- var sManifirstUrl = '/sap/bc/ui2/app_index/ui5_app_mani_first_supported/?id=' + sRunningAppId;
38
-
39
- return new Promise(function (resolve, reject) {
40
- var xhr = new XMLHttpRequest();
41
- xhr.open("GET", sManifirstUrl);
42
- xhr.send();
43
-
44
- xhr.onload = function() {
45
- if (xhr.status >= 200 && xhr.status < 400) {
46
- resolve(xhr.response === "true");
47
- } else {
48
- var oError = new Error(xhr.statusText);
49
- oError.status = xhr.status;
50
- Log.error("Response status code is: " + oError.status, "Stacktrace: " + oError.stack);
51
- reject(false);
52
- }
53
- };
54
- });
39
+ return LrepConnector.appVariant.getManifirstSupport({appId: sRunningAppId});
55
40
  };
56
41
 
57
42
  AppVariantUtils.getNewAppVariantId = function() {
@@ -107,8 +107,8 @@ sap.ui.define([
107
107
  AppVariantUtils.closeOverviewDialog();
108
108
  };
109
109
 
110
- var oUriParameters = new UriParameters(window.location.href);
111
- var sAppContextsEnabled = oUriParameters.get("sap-ui-rta-appContexts");
110
+ var oUriParameters = UriParameters.fromQuery(window.location.search);
111
+ var sAppContextsEnabled = oUriParameters.get("sap-ui-xx-rta-adaptations");
112
112
 
113
113
  var sOverviewPath = "sap/ui/rta/appVariant/AppVariantOverviewDialog";
114
114
  var oProperties = {
@@ -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.102.2
19
+ * @version 1.104.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.102.2
17
+ * @version 1.104.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.102.2
19
+ * @version 1.104.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.102.2
27
+ * @version 1.104.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.102.2
24
+ * @version 1.104.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @experimental Since 1.49. This class is experimental and provides only limited functionality. Also the API might be
31
31
  * changed in future.
32
32
  */
33
- var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.AppDescriptor", {
33
+ var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.AppDescriptorCommand", {
34
34
  metadata: {
35
35
  library: "sap.ui.rta",
36
36
  properties: {
@@ -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.102.2
16
+ * @version 1.104.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.102.2
29
+ * @version 1.104.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.102.2
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -485,7 +485,7 @@ sap.ui.define([
485
485
  * @extends sap.ui.base.ManagedObject
486
486
  *
487
487
  * @author SAP SE
488
- * @version 1.102.2
488
+ * @version 1.104.0
489
489
  *
490
490
  * @constructor
491
491
  * @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.102.2
24
+ * @version 1.104.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -5,10 +5,12 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/rta/command/BaseCommand",
8
+ "sap/ui/rta/library",
8
9
  "sap/ui/core/util/reflection/JsControlTreeModifier",
9
10
  "sap/ui/fl/Utils"
10
11
  ], function(
11
12
  BaseCommand,
13
+ rtaLibrary,
12
14
  JsControlTreeModifier,
13
15
  flUtils
14
16
  ) {
@@ -20,7 +22,7 @@ sap.ui.define([
20
22
  * @class
21
23
  * @extends sap.ui.rta.command.BaseCommand
22
24
  * @author SAP SE
23
- * @version 1.102.2
25
+ * @version 1.104.0
24
26
  * @constructor
25
27
  * @private
26
28
  * @since 1.52
@@ -71,7 +73,7 @@ sap.ui.define([
71
73
  this._aPreparedChanges = [];
72
74
  this.getChanges().forEach(function(mChangeProperties) {
73
75
  mChangeProperties.appComponent = this.oAppComponent;
74
- mChangeProperties.generator = sap.ui.rta.GENERATOR_NAME;
76
+ mChangeProperties.generator = rtaLibrary.GENERATOR_NAME;
75
77
  this._aPreparedChanges.push(this.oModel.addVariantChange(this.sVariantManagementReference, mChangeProperties));
76
78
  }.bind(this));
77
79
 
@@ -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.102.2
23
+ * @version 1.104.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -5,12 +5,14 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/rta/command/BaseCommand",
8
+ "sap/ui/rta/library",
8
9
  "sap/ui/core/util/reflection/JsControlTreeModifier",
9
10
  "sap/ui/rta/Utils",
10
11
  "sap/ui/fl/Utils",
11
12
  "sap/ui/fl/write/api/ContextSharingAPI"
12
13
  ], function(
13
14
  BaseCommand,
15
+ rtaLibrary,
14
16
  JsControlTreeModifier,
15
17
  rtaUtils,
16
18
  flUtils,
@@ -24,7 +26,7 @@ sap.ui.define([
24
26
  * @class
25
27
  * @extends sap.ui.rta.command.BaseCommand
26
28
  * @author SAP SE
27
- * @version 1.102.2
29
+ * @version 1.104.0
28
30
  * @constructor
29
31
  * @private
30
32
  * @since 1.86
@@ -105,7 +107,7 @@ sap.ui.define([
105
107
  var mParams = this.getNewVariantParameters();
106
108
  mParams.layer = this.sLayer;
107
109
  mParams.newVariantReference = this.sNewVariantReference;
108
- mParams.generator = sap.ui.rta.GENERATOR_NAME;
110
+ mParams.generator = rtaLibrary.GENERATOR_NAME;
109
111
  return this.oModel._handleSave(this.oVariantManagementControl, mParams)
110
112
  .then(function(aDirtyChanges) {
111
113
  this._aPreparedChanges = aDirtyChanges;
@@ -5,9 +5,10 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/rta/command/BaseCommand",
8
+ "sap/ui/rta/library",
8
9
  "sap/ui/core/util/reflection/JsControlTreeModifier",
9
10
  "sap/ui/fl/Utils"
10
- ], function(BaseCommand, JsControlTreeModifier, flUtils) {
11
+ ], function(BaseCommand, rtaLibrary, JsControlTreeModifier, flUtils) {
11
12
  "use strict";
12
13
 
13
14
  /**
@@ -16,7 +17,7 @@ sap.ui.define([
16
17
  * @class
17
18
  * @extends sap.ui.rta.command.BaseCommand
18
19
  * @author SAP SE
19
- * @version 1.102.2
20
+ * @version 1.104.0
20
21
  * @constructor
21
22
  * @private
22
23
  * @since 1.50
@@ -77,7 +78,7 @@ sap.ui.define([
77
78
  changeType: "setTitle",
78
79
  title: this.getNewText(),
79
80
  layer: this.sLayer,
80
- generator: sap.ui.rta.GENERATOR_NAME
81
+ generator: rtaLibrary.GENERATOR_NAME
81
82
  };
82
83
 
83
84
  return Promise.resolve(this.oModel.addVariantChange(this.sVariantManagementReference, mPropertyBag))
@@ -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.102.2
23
+ * @version 1.104.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @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.102.2
15
+ * @version 1.104.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.102.2
15
+ * @version 1.104.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -5,6 +5,7 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/rta/command/BaseCommand",
8
+ "sap/ui/rta/library",
8
9
  "sap/ui/core/util/reflection/JsControlTreeModifier",
9
10
  "sap/ui/fl/Utils",
10
11
  "sap/base/Log",
@@ -13,6 +14,7 @@ sap.ui.define([
13
14
  "sap/base/util/values"
14
15
  ], function(
15
16
  BaseCommand,
17
+ rtaLibrary,
16
18
  JsControlTreeModifier,
17
19
  FlUtils,
18
20
  Log,
@@ -29,7 +31,7 @@ sap.ui.define([
29
31
  * @extends sap.ui.rta.command.BaseCommand
30
32
  *
31
33
  * @author SAP SE
32
- * @version 1.102.2
34
+ * @version 1.104.0
33
35
  *
34
36
  * @constructor
35
37
  * @private
@@ -206,7 +208,7 @@ sap.ui.define([
206
208
  mChangeSpecificData = Object.assign({}, mChangeSpecificData, mVariantObj);
207
209
  }
208
210
  mChangeSpecificData.command = sCommand;
209
- mChangeSpecificData.generator = sap.ui.rta.GENERATOR_NAME;
211
+ mChangeSpecificData.generator = rtaLibrary.GENERATOR_NAME;
210
212
  return ChangesWriteAPI.create({changeSpecificData: mChangeSpecificData, selector: this._validateControlForChange(mFlexSettings)})
211
213
  .then(function(oChange) {
212
214
  // originalSelector is only present when making a change on/inside a template; the selector does not work with the JS propagation hook (the template has no parent),
@@ -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.102.2
32
+ * @version 1.104.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.102.2
23
+ * @version 1.104.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.102.2
20
+ * @version 1.104.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -16,11 +16,11 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.102.2
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34
23
- * @alias sap.ui.rta.command.BaseCommand
23
+ * @alias sap.ui.rta.command.Property
24
24
  * @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
25
25
  * changed in future.
26
26
  */
@@ -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.102.2
15
+ * @version 1.104.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.102.2
15
+ * @version 1.104.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.102.2
19
+ * @version 1.104.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.102.2
15
+ * @version 1.104.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -12,11 +12,11 @@ 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.102.2
15
+ * @version 1.104.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
19
- * @alias sap.ui.rta.command.BaseCommand
19
+ * @alias sap.ui.rta.command.Settings
20
20
  * @experimental Since 1.44. This class is experimental and provides only limited functionality. Also the API might be
21
21
  * changed in future.
22
22
  */
@@ -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.102.2
17
+ * @version 1.104.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * @class
56
56
  * @extends sap.ui.base.ManagedObject
57
57
  * @author SAP SE
58
- * @version 1.102.2
58
+ * @version 1.104.0
59
59
  * @constructor
60
60
  * @private
61
61
  * @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.102.2
20
+ * @version 1.104.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -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.102.2
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.102
@@ -5,10 +5,12 @@
5
5
  */
6
6
  sap.ui.define([
7
7
  "sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
8
- "sap/ui/rta/command/BaseCommand"
8
+ "sap/ui/rta/command/BaseCommand",
9
+ "sap/ui/rta/library"
9
10
  ], function(
10
11
  SmartVariantManagementWriteAPI,
11
- BaseCommand
12
+ BaseCommand,
13
+ rtaLibrary
12
14
  ) {
13
15
  "use strict";
14
16
 
@@ -18,13 +20,13 @@ sap.ui.define([
18
20
  * @class
19
21
  * @extends sap.ui.rta.command.BaseCommand
20
22
  * @author SAP SE
21
- * @version 1.102.2
23
+ * @version 1.104.0
22
24
  * @constructor
23
25
  * @private
24
26
  * @since 1.87
25
27
  * @alias sap.ui.rta.command.compVariant.CompVariantSaveAs
26
28
  */
27
- var CompVariantSaveAs = BaseCommand.extend("sap.ui.rta.command.CompVariantSaveAs", {
29
+ var CompVariantSaveAs = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantSaveAs", {
28
30
  metadata: {
29
31
  library: "sap.ui.rta",
30
32
  properties: {
@@ -51,7 +53,7 @@ sap.ui.define([
51
53
  this.mInformation = {
52
54
  layer: mFlexSettings.layer,
53
55
  command: sCommand, // used for ChangeVisualization and should end up in the support object in change definition
54
- generator: sap.ui.rta.GENERATOR_NAME // also to be saved in the support section
56
+ generator: rtaLibrary.GENERATOR_NAME // also to be saved in the support section
55
57
  };
56
58
  return true;
57
59
  };
@@ -70,7 +72,7 @@ sap.ui.define([
70
72
  var mPropertyBag = {
71
73
  changeSpecificData: {
72
74
  // in case of redo the variant is still saved and the ID should be reused
73
- id: this._oVariant ? this._oVariant.getId() : undefined,
75
+ id: this._oVariant ? this._oVariant.getVariantId() : undefined,
74
76
  type: oNewVariantProperties.type,
75
77
  texts: {
76
78
  variantName: oNewVariantProperties.text
@@ -90,12 +92,12 @@ sap.ui.define([
90
92
  if (oNewVariantProperties.default) {
91
93
  SmartVariantManagementWriteAPI.setDefaultVariantId(Object.assign({}, this.mInformation, {
92
94
  control: this.getElement(),
93
- defaultVariantId: this._oVariant.getId()
95
+ defaultVariantId: this._oVariant.getVariantId()
94
96
  }));
95
97
  }
96
98
 
97
99
  this.getElement().addVariant(this._oVariant, oNewVariantProperties.default);
98
- this.getElement().activateVariant(this._oVariant.getId());
100
+ this.getElement().activateVariant(this._oVariant.getVariantId());
99
101
  return Promise.resolve();
100
102
  };
101
103
 
@@ -106,7 +108,7 @@ sap.ui.define([
106
108
  */
107
109
  CompVariantSaveAs.prototype.undo = function() {
108
110
  SmartVariantManagementWriteAPI.removeVariant({
109
- id: this._oVariant.getId(),
111
+ id: this._oVariant.getVariantId(),
110
112
  control: this.getElement(),
111
113
  revert: true
112
114
  });
@@ -122,7 +124,7 @@ sap.ui.define([
122
124
  previousDirtyFlag: this.getPreviousDirtyFlag(),
123
125
  previousVariantId: this.getPreviousVariantId(),
124
126
  previousDefault: this.getPreviousDefault(),
125
- variantId: this._oVariant.getId()
127
+ variantId: this._oVariant.getVariantId()
126
128
  });
127
129
 
128
130
  return Promise.resolve();
@@ -16,13 +16,13 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.BaseCommand
18
18
  * @author SAP SE
19
- * @version 1.102.2
19
+ * @version 1.104.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.87
23
23
  * @alias sap.ui.rta.command.compVariant.CompVariantSwitch
24
24
  */
25
- var CompVariantSwitch = BaseCommand.extend("sap.ui.rta.command.CompVariantSwitch", {
25
+ var CompVariantSwitch = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantSwitch", {
26
26
  metadata: {
27
27
  library: "sap.ui.rta",
28
28
  properties: {
@@ -6,11 +6,13 @@
6
6
  sap.ui.define([
7
7
  "sap/base/util/each",
8
8
  "sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
9
- "sap/ui/rta/command/BaseCommand"
9
+ "sap/ui/rta/command/BaseCommand",
10
+ "sap/ui/rta/library"
10
11
  ], function(
11
12
  each,
12
13
  SmartVariantManagementWriteAPI,
13
- BaseCommand
14
+ BaseCommand,
15
+ rtaLibrary
14
16
  ) {
15
17
  "use strict";
16
18
 
@@ -20,13 +22,13 @@ sap.ui.define([
20
22
  * @class
21
23
  * @extends sap.ui.rta.command.BaseCommand
22
24
  * @author SAP SE
23
- * @version 1.102.2
25
+ * @version 1.104.0
24
26
  * @constructor
25
27
  * @private
26
28
  * @since 1.87
27
29
  * @alias sap.ui.rta.command.compVariant.CompVariantUpdate
28
30
  */
29
- var CompVariantUpdate = BaseCommand.extend("sap.ui.rta.command.CompVariantUpdate", {
31
+ var CompVariantUpdate = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantUpdate", {
30
32
  metadata: {
31
33
  library: "sap.ui.rta",
32
34
  properties: {
@@ -55,7 +57,7 @@ sap.ui.define([
55
57
  this.mInformation = {
56
58
  layer: mFlexSettings.layer,
57
59
  command: sCommand, // used for ChangeVisualization and should end up in the support object in change definition
58
- generator: sap.ui.rta.GENERATOR_NAME // also to be saved in the support section
60
+ generator: rtaLibrary.GENERATOR_NAME // also to be saved in the support section
59
61
  };
60
62
  return true;
61
63
  };
@@ -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.102.2
54
+ * @version 1.104.0
55
55
  *
56
56
  * @static
57
57
  * @since 1.42