@openui5/sap.ui.rta 1.116.0 → 1.117.1

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 (100) hide show
  1. package/package.json +6 -6
  2. package/src/sap/ui/rta/.library +1 -1
  3. package/src/sap/ui/rta/Client.js +1 -1
  4. package/src/sap/ui/rta/RuntimeAuthoring.js +4 -7
  5. package/src/sap/ui/rta/Utils.js +1 -1
  6. package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
  7. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +3 -6
  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 +27 -2
  19. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  20. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +5 -3
  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 +19 -9
  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 -1
  45. package/src/sap/ui/rta/messagebundle_de.properties +1 -1
  46. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +1 -1
  47. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  48. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  49. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  50. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  51. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  52. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  53. package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
  54. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  55. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  56. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  57. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  58. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  59. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  60. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  61. package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
  62. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  63. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  64. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  65. package/src/sap/ui/rta/plugin/Split.js +1 -1
  66. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  67. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  68. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  69. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  70. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  71. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  72. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  73. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  74. package/src/sap/ui/rta/service/Action.js +1 -1
  75. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  76. package/src/sap/ui/rta/service/Outline.js +1 -1
  77. package/src/sap/ui/rta/service/Property.js +1 -1
  78. package/src/sap/ui/rta/service/Selection.js +1 -1
  79. package/src/sap/ui/rta/service/SupportTools.js +159 -8
  80. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +14 -0
  81. package/src/sap/ui/rta/themes/base/library.source.less +2 -1
  82. package/src/sap/ui/rta/toolbar/Adaptation.js +36 -29
  83. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  84. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  85. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  86. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  87. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  88. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  89. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  90. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +0 -2
  91. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  92. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  93. package/src/sap/ui/rta/util/PluginManager.js +1 -1
  94. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  95. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  96. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  97. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +3 -1
  98. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  99. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +4 -4
  100. package/ui5.yaml +1 -1
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
  * @extends sap.ui.rta.toolbar.Base
52
52
  *
53
53
  * @author SAP SE
54
- * @version 1.116.0
54
+ * @version 1.117.1
55
55
  *
56
56
  * @constructor
57
57
  * @private
@@ -352,47 +352,54 @@ sap.ui.define([
352
352
  function confirmMigration(oRtaInformation) {
353
353
  var bDirty = oRtaInformation.commandStack.canSave();
354
354
 
355
- Utils.showMessageBox("confirm", (bDirty) ? "DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION" : "DAC_DIALOG_MIGRATION_DESCRIPTION", {
355
+ return Utils.showMessageBox("confirm", (bDirty) ? "DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION" : "DAC_DIALOG_MIGRATION_DESCRIPTION", {
356
356
  titleKey: "DAC_DIALOG_MIGRATION_HEADER",
357
357
  actionKeys: ["DAC_DIALOG_MIGRATION_HEADER"],
358
358
  showCancel: true
359
359
  })
360
360
  .then(function(sAction) {
361
361
  if (sAction !== MessageBox.Action.CANCEL) {
362
- BusyIndicator.show();
363
-
364
362
  if (bDirty) {
365
- oRtaInformation.commandStack.removeAllCommands(true);
366
- }
367
-
368
- ContextBasedAdaptationsAPI.migrate({
369
- control: oRtaInformation.rootControl,
370
- layer: oRtaInformation.flexSettings.layer
371
- })
372
- .finally(function() {
373
- BusyIndicator.hide();
374
- })
375
- .then(Utils.showMessageBox.bind(undefined, "information", "DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION", {
376
- titleKey: "DAC_DIALOG_MIGRATION_HEADER"
377
- }))
378
- .then(function() {
379
363
  return new Promise(function(resolve) {
380
- this.fireEvent("switchAdaptation", {adaptationId: "DEFAULT", callback: resolve});
364
+ this.fireEvent("save", {callback: resolve});
365
+ }.bind(this))
366
+ .then(function() {
367
+ return performMigration.call(this, oRtaInformation);
381
368
  }.bind(this));
382
- }.bind(this))
383
- .catch(function(oError) {
384
- Log.error(oError.stack || oError);
385
- var sMessage = "DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION";
386
- var oOptions = {
387
- titleKey: "DAC_DIALOG_MIGRATION_HEADER",
388
- details: oError.userMessage || oError
389
- };
390
- Utils.showMessageBox("error", sMessage, oOptions);
391
- });
369
+ }
370
+ return performMigration.call(this, oRtaInformation);
392
371
  }
393
372
  }.bind(this));
394
373
  }
395
374
 
375
+ function performMigration(oRtaInformation) {
376
+ BusyIndicator.show();
377
+ return ContextBasedAdaptationsAPI.migrate({
378
+ control: oRtaInformation.rootControl,
379
+ layer: oRtaInformation.flexSettings.layer
380
+ })
381
+ .finally(function() {
382
+ BusyIndicator.hide();
383
+ })
384
+ .then(Utils.showMessageBox.bind(undefined, "information", "DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION", {
385
+ titleKey: "DAC_DIALOG_MIGRATION_HEADER"
386
+ }))
387
+ .then(function() {
388
+ return new Promise(function(resolve) {
389
+ this.fireEvent("switchAdaptation", {adaptationId: "DEFAULT", callback: resolve});
390
+ }.bind(this));
391
+ }.bind(this))
392
+ .catch(function(oError) {
393
+ Log.error(oError.stack || oError);
394
+ var sMessage = "DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION";
395
+ var oOptions = {
396
+ titleKey: "DAC_DIALOG_MIGRATION_HEADER",
397
+ details: oError.userMessage || oError
398
+ };
399
+ Utils.showMessageBox("error", sMessage, oOptions);
400
+ });
401
+ }
402
+
396
403
  function onSaveAsAdaptation() {
397
404
  var oRtaInformation = this.getRtaInformation();
398
405
  Utils.checkDraftOverwrite(this.getModel("versions")).then(function() {
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.m.HBox
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.116.0
32
+ * @version 1.117.1
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -32,7 +32,7 @@ function(
32
32
  * @extends sap.ui.rta.toolbar.Adaptation
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.116.0
35
+ * @version 1.117.1
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.116.0
23
+ * @version 1.117.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @extends sap.m.OverflowToolbarButton
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.116.0
26
+ * @version 1.117.1
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -22,7 +22,7 @@ function(
22
22
  * @extends sap.ui.rta.toolbar.Base
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.116.0
25
+ * @version 1.117.1
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -20,7 +20,7 @@ function(
20
20
  * @extends sap.ui.rta.toolbar.Adaptation
21
21
  *
22
22
  * @author SAP SE
23
- * @version 1.116.0
23
+ * @version 1.117.1
24
24
  *
25
25
  * @constructor
26
26
  * @private
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @class
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.116.0
44
+ * @version 1.117.1
45
45
  *
46
46
  * @constructor
47
47
  * @private
@@ -38,7 +38,6 @@
38
38
  <form:label>
39
39
  <Label id="saveAdaptation-title-label"
40
40
  text="{i18n>APP_DIALOG_TITLE_TEXT}"
41
- textAlign="Left"
42
41
  required="true">
43
42
  </Label>
44
43
  </form:label>
@@ -53,7 +52,6 @@
53
52
  <form:label>
54
53
  <Label id="saveAdaptation-rank-label"
55
54
  text="{i18n>CLM_HEADER_PRIORITY}"
56
- textAlign="Left"
57
55
  required="true">
58
56
  </Label>
59
57
  </form:label>
@@ -49,7 +49,7 @@ sap.ui.define([
49
49
  * @class
50
50
  *
51
51
  * @author SAP SE
52
- * @version 1.116.0
52
+ * @version 1.117.1
53
53
  *
54
54
  * @constructor
55
55
  * @private
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @class
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.116.0
39
+ * @version 1.117.1
40
40
  *
41
41
  * @constructor
42
42
  * @private
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  * Constructor for a new sap.ui.rta.util.PluginManager
69
69
  * @extends sap.ui.base.ManagedObject
70
70
  * @author SAP SE
71
- * @version 1.116.0
71
+ * @version 1.117.1
72
72
  * @constructor
73
73
  * @private
74
74
  * @since 1.86
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * Constructor for a new sap.ui.rta.util.PopupManager
43
43
  * @extends sap.ui.base.ManagedObject
44
44
  * @author SAP SE
45
- * @version 1.116.0
45
+ * @version 1.117.1
46
46
  * @constructor
47
47
  * @private
48
48
  * @since 1.48
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace sap.ui.rta.util.ReloadManager
31
31
  * @alias sap.ui.rta.util.ReloadManager
32
32
  * @since 1.104
33
- * @version 1.116.0
33
+ * @version 1.117.1
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -19,7 +19,7 @@ function(
19
19
  *
20
20
  * @extends sap.ui.core.EventBus
21
21
  * @author SAP SE
22
- * @version 1.116.0
22
+ * @version 1.117.1
23
23
  * @private
24
24
  * @since 1.56.0
25
25
  * @alias sap.ui.rta.util.ServiceEventBus
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
43
43
  * @author SAP SE
44
44
  * @since 1.84.0
45
- * @version 1.116.0
45
+ * @version 1.117.1
46
46
  * @private
47
47
  */
48
48
  var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
@@ -175,6 +175,8 @@ sap.ui.define([
175
175
  // the indicator should be centered only if the element has a small enough height to improve the design and visibility
176
176
  if (iOverlayHeight < iIndicatorHeight * 5) {
177
177
  oIndicator.addStyleClass("sapUiRtaChangeIndicatorVerticallyCentered");
178
+ } else {
179
+ oIndicator.removeStyleClass("sapUiRtaChangeIndicatorVerticallyCentered");
178
180
  }
179
181
  }
180
182
 
@@ -39,7 +39,7 @@ sap.ui.define([
39
39
  * @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
40
40
  * @author SAP SE
41
41
  * @since 1.86.0
42
- * @version 1.116.0
42
+ * @version 1.117.1
43
43
  * @private
44
44
  */
45
45
  var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
@@ -7,12 +7,12 @@
7
7
  sap.ui.define([
8
8
  "sap/ui/core/Core",
9
9
  "sap/ui/core/Fragment",
10
+ "sap/base/util/isEmptyObject",
10
11
  "sap/base/util/restricted/_difference",
11
12
  "sap/base/util/deepEqual",
12
13
  "sap/ui/core/util/reflection/JsControlTreeModifier",
13
14
  "sap/ui/core/Control",
14
15
  "sap/ui/dt/OverlayRegistry",
15
- "sap/ui/dt/OverlayUtil",
16
16
  "sap/ui/dt/ElementUtil",
17
17
  "sap/ui/fl/write/api/PersistenceWriteAPI",
18
18
  "sap/ui/fl/Layer",
@@ -26,12 +26,12 @@ sap.ui.define([
26
26
  ], function(
27
27
  Core,
28
28
  Fragment,
29
+ isEmptyObject,
29
30
  difference,
30
31
  deepEqual,
31
32
  JsControlTreeModifier,
32
33
  Control,
33
34
  OverlayRegistry,
34
- OverlayUtil,
35
35
  ElementUtil,
36
36
  PersistenceWriteAPI,
37
37
  Layer,
@@ -82,7 +82,7 @@ sap.ui.define([
82
82
  * @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
83
83
  * @author SAP SE
84
84
  * @since 1.84.0
85
- * @version 1.116.0
85
+ * @version 1.117.1
86
86
  * @private
87
87
  */
88
88
  var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
@@ -406,7 +406,7 @@ sap.ui.define([
406
406
  return sCommand;
407
407
  }
408
408
 
409
- if (!oChange.getSelector || !oChange.getSelector()) {
409
+ if (!oChange.getSelector || !oChange.getSelector() || isEmptyObject(oChange.getSelector())) {
410
410
  return false;
411
411
  }
412
412
 
package/ui5.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- specVersion: "2.0"
2
+ specVersion: "3.0"
3
3
  type: library
4
4
  metadata:
5
5
  name: sap.ui.rta