@openui5/sap.ui.rta 1.116.0 → 1.117.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 (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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.116.0",
3
+ "version": "1.117.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.116.0",
18
- "@openui5/sap.ui.core": "1.116.0",
19
- "@openui5/sap.ui.dt": "1.116.0",
20
- "@openui5/sap.ui.fl": "1.116.0",
21
- "@openui5/sap.ui.layout": "1.116.0"
17
+ "@openui5/sap.m": "1.117.0",
18
+ "@openui5/sap.ui.core": "1.117.0",
19
+ "@openui5/sap.ui.dt": "1.117.0",
20
+ "@openui5/sap.ui.fl": "1.117.0",
21
+ "@openui5/sap.ui.layout": "1.117.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.116.0</version>
9
+ <version>1.117.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @alias sap.ui.rta.Client
58
58
  * @author SAP SE
59
59
  * @since 1.56.0
60
- * @version 1.116.0
60
+ * @version 1.117.0
61
61
  * @private
62
62
  * @ui5-restricted
63
63
  */
@@ -120,7 +120,7 @@ sap.ui.define([
120
120
  * @class The runtime authoring allows to adapt the fields of a running application.
121
121
  * @extends sap.ui.base.ManagedObject
122
122
  * @author SAP SE
123
- * @version 1.116.0
123
+ * @version 1.117.0
124
124
  * @constructor
125
125
  * @private
126
126
  * @since 1.30
@@ -455,7 +455,7 @@ sap.ui.define([
455
455
  }
456
456
 
457
457
  return this._loadUShellServicesPromise
458
- .then(initVersioning.bind(this, bIsAutomaticRestart))
458
+ .then(initVersioning.bind(this))
459
459
  .then(initContextBasedAdaptations.bind(this, bIsAutomaticRestart))
460
460
  /*
461
461
  Check if the application has personalized changes and reload without them;
@@ -668,6 +668,7 @@ sap.ui.define([
668
668
  if (!bSkipRestart) {
669
669
  ReloadManager.handleUrlParametersOnExit(oReloadInfo);
670
670
  }
671
+ VersionsAPI.clearInstances();
671
672
  }.bind(this))
672
673
  .catch(function(vError) {
673
674
  if (!bUserCancelled) {
@@ -1451,13 +1452,9 @@ sap.ui.define([
1451
1452
 
1452
1453
  /**
1453
1454
  * Inits version models. Clears old state if RTA is starting from end user mode (no switch)
1454
- * @param {boolean} bIsAutomaticRestart - If true this is not an RTA start but a reload due to version/adaptation switch
1455
1455
  * @returns {Promise<void>} - Promise
1456
1456
  */
1457
- function initVersioning(bIsAutomaticRestart) {
1458
- if (!bIsAutomaticRestart) {
1459
- VersionsAPI.clearInstances();
1460
- }
1457
+ function initVersioning() {
1461
1458
  return VersionsAPI.initialize({
1462
1459
  control: this.getRootControlInstance(),
1463
1460
  layer: this.getLayer()
@@ -47,7 +47,7 @@ function(
47
47
  *
48
48
  * @namespace
49
49
  * @author SAP SE
50
- * @version 1.116.0
50
+ * @version 1.117.0
51
51
  *
52
52
  * @private
53
53
  * @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.116.0
27
+ * @version 1.117.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -334,13 +334,10 @@ sap.ui.define([
334
334
  };
335
335
 
336
336
  AppVariantUtils.addChangesToPersistence = function(aAllInlineChanges, vSelector) {
337
- aAllInlineChanges.forEach(function(oChange) {
338
- return PersistenceWriteAPI.add({
339
- change: oChange,
340
- selector: vSelector
341
- });
337
+ PersistenceWriteAPI.add({
338
+ flexObjects: aAllInlineChanges,
339
+ selector: vSelector
342
340
  });
343
-
344
341
  return Promise.resolve();
345
342
  };
346
343
 
@@ -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.116.0
19
+ * @version 1.117.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.116.0
17
+ * @version 1.117.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.116.0
19
+ * @version 1.117.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.116.0
27
+ * @version 1.117.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.116.0
24
+ * @version 1.117.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -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.116.0
16
+ * @version 1.117.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.116.0
29
+ * @version 1.117.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.116.0
19
+ * @version 1.117.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.116.0
488
+ * @version 1.117.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.116.0
24
+ * @version 1.117.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.116.0
27
+ * @version 1.117.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.52
@@ -66,13 +66,29 @@ sap.ui.define([
66
66
  * @public
67
67
  * @returns {Promise} Returns resolve after execution
68
68
  */
69
- ControlVariantConfigure.prototype.execute = function() {
69
+ ControlVariantConfigure.prototype.execute = async function() {
70
70
  var oVariantManagementControl = this.getControl();
71
71
  this.oAppComponent = flUtils.getAppComponentForControl(oVariantManagementControl);
72
72
  this.oModel = this.oAppComponent.getModel(ControlVariantApplyAPI.getVariantModelName());
73
73
  this.sVariantManagementReference = JsControlTreeModifier.getSelector(oVariantManagementControl, this.oAppComponent).id;
74
74
 
75
75
  this._aPreparedChanges = [];
76
+ if (this.getChanges().some((oChange) => {
77
+ if (
78
+ oChange.visible === false
79
+ && oChange.variantReference === this.oModel.getCurrentVariantReference(this.sVariantManagementReference)
80
+ ) {
81
+ this._sOldVReference = oChange.variantReference;
82
+ return true;
83
+ }
84
+ return false;
85
+ })) {
86
+ await this.oModel.updateCurrentVariant({
87
+ variantManagementReference: this.sVariantManagementReference,
88
+ newVariantReference: this.sVariantManagementReference
89
+ });
90
+ }
91
+
76
92
  this.getChanges().forEach(function(mChangeProperties) {
77
93
  mChangeProperties.appComponent = this.oAppComponent;
78
94
  mChangeProperties.generator = rtaLibrary.GENERATOR_NAME;
@@ -107,6 +123,15 @@ sap.ui.define([
107
123
  }.bind(this));
108
124
 
109
125
  this._aPreparedChanges = null;
126
+ if (this._sOldVReference) {
127
+ return this.oModel.updateCurrentVariant({
128
+ variantManagementReference: this.sVariantManagementReference,
129
+ newVariantReference: this._sOldVReference
130
+ }).then(() => {
131
+ delete this._sOldVReference;
132
+ });
133
+ }
134
+
110
135
  return Promise.resolve();
111
136
  };
112
137
 
@@ -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.116.0
23
+ * @version 1.117.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -28,7 +28,7 @@ sap.ui.define([
28
28
  * @class
29
29
  * @extends sap.ui.rta.command.BaseCommand
30
30
  * @author SAP SE
31
- * @version 1.116.0
31
+ * @version 1.117.0
32
32
  * @constructor
33
33
  * @private
34
34
  * @since 1.86
@@ -133,11 +133,13 @@ sap.ui.define([
133
133
  */
134
134
  ControlVariantSaveAs.prototype.undo = function() {
135
135
  if (this._oVariantChange) {
136
+ var aChangesToBeDeleted = [];
136
137
  this._aPreparedChanges.forEach(function(oChange) {
137
138
  if (oChange.getFileType() === "ctrl_variant_management_change") {
138
- this.oModel.oFlexController.deleteChange(oChange);
139
+ aChangesToBeDeleted.push(oChange);
139
140
  }
140
- }.bind(this));
141
+ });
142
+ this.oModel.oChangePersistence.deleteChanges(aChangesToBeDeleted);
141
143
 
142
144
  var mPropertyBag = {
143
145
  variant: this._oVariantChange,
@@ -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.116.0
27
+ * @version 1.117.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.116.0
25
+ * @version 1.117.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.116.0
15
+ * @version 1.117.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.116.0
15
+ * @version 1.117.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.rta.command.BaseCommand
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.116.0
36
+ * @version 1.117.0
37
37
  *
38
38
  * @constructor
39
39
  * @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.116.0
30
+ * @version 1.117.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.42
@@ -76,7 +76,8 @@ sap.ui.define([
76
76
  this.getCommandStack().removeCommandExecutionHandler(this._fnHandleCommandExecuted);
77
77
  };
78
78
  LREPSerializer.prototype._isPersistedChange = function(oPreparedChange) {
79
- return !!this.getCommandStack()._aPersistedChanges && this.getCommandStack()._aPersistedChanges.indexOf(oPreparedChange.getId()) !== -1;
79
+ return !!this.getCommandStack()._aPersistedChanges
80
+ && this.getCommandStack()._aPersistedChanges.indexOf(oPreparedChange.getId()) !== -1;
80
81
  };
81
82
 
82
83
  LREPSerializer.prototype.handleCommandExecuted = function(oEvent) {
@@ -86,8 +87,9 @@ sap.ui.define([
86
87
  // _lastPromise chain must not be interrupted
87
88
  }).then(function() {
88
89
  var aCommands = this.getCommandStack().getSubCommands(oParams.command);
90
+ var oAppComponent;
91
+ var aFlexObjects = [];
89
92
  if (oParams.undo) {
90
- var aRemovePromises = [];
91
93
  aCommands.forEach(function(oCommand) {
92
94
  // for revertable changes which don't belong to LREP (variantSwitch) or runtime only changes
93
95
  if (!(oCommand instanceof FlexCommand || oCommand instanceof AppDescriptorCommand)
@@ -95,12 +97,18 @@ sap.ui.define([
95
97
  return;
96
98
  }
97
99
  var oChange = oCommand.getPreparedChange();
98
- var oAppComponent = oCommand.getAppComponent();
100
+ oAppComponent = oCommand.getAppComponent();
99
101
  if (oAppComponent) {
100
- aRemovePromises.push(PersistenceWriteAPI.remove({change: oChange, selector: oAppComponent}));
102
+ aFlexObjects.push(oChange);
101
103
  }
102
104
  });
103
- return Promise.all(aRemovePromises);
105
+ if (oAppComponent) {
106
+ return PersistenceWriteAPI.remove({
107
+ flexObjects: aFlexObjects,
108
+ selector: oAppComponent
109
+ });
110
+ }
111
+ return Promise.resolve();
104
112
  }
105
113
  var aDescriptorCreateAndAdd = [];
106
114
  aCommands.forEach(function(oCommand) {
@@ -109,18 +117,20 @@ sap.ui.define([
109
117
  return;
110
118
  }
111
119
  if (oCommand instanceof FlexCommand) {
112
- var oAppComponent = oCommand.getAppComponent();
120
+ oAppComponent = oCommand.getAppComponent();
113
121
  if (oAppComponent) {
114
122
  var oPreparedChange = oCommand.getPreparedChange();
115
123
  if (!this._isPersistedChange(oPreparedChange)) {
116
- PersistenceWriteAPI.add({change: oCommand.getPreparedChange(), selector: oAppComponent});
124
+ aFlexObjects.push(oCommand.getPreparedChange());
117
125
  }
118
126
  }
119
127
  } else if (oCommand instanceof AppDescriptorCommand) {
120
128
  aDescriptorCreateAndAdd.push(oCommand.createAndStoreChange());
121
129
  }
122
130
  }.bind(this));
123
-
131
+ if (oAppComponent) {
132
+ PersistenceWriteAPI.add({flexObjects: aFlexObjects, selector: oAppComponent});
133
+ }
124
134
  return Promise.all(aDescriptorCreateAndAdd);
125
135
  }.bind(this));
126
136
  return this._lastPromise;
@@ -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.116.0
23
+ * @version 1.117.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.116.0
20
+ * @version 1.117.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.116.0
19
+ * @version 1.117.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.116.0
15
+ * @version 1.117.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.116.0
15
+ * @version 1.117.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.116.0
19
+ * @version 1.117.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.116.0
15
+ * @version 1.117.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.116.0
15
+ * @version 1.117.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.116.0
17
+ * @version 1.117.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.116.0
62
+ * @version 1.117.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.116.0
20
+ * @version 1.117.0
21
21
  *
22
22
  * @constructor
23
23
  * @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.116.0
23
+ * @version 1.117.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.116.0
23
+ * @version 1.117.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.116.0
21
+ * @version 1.117.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.116.0
25
+ * @version 1.117.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.116.0
60
+ * @version 1.117.0
61
61
  *
62
62
  * @static
63
63
  * @since 1.42
@@ -23,14 +23,14 @@ function() {
23
23
  * @namespace
24
24
  * @alias sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.116.0
26
+ * @version 1.117.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.
30
30
  */
31
31
  var thisLib = sap.ui.getCore().initLibrary({
32
32
  name: "sap.ui.rta",
33
- version: "1.116.0",
33
+ version: "1.117.0",
34
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
35
35
  types: [],
36
36
  interfaces: [],
@@ -575,7 +575,7 @@ DAC_DIALOG_MIGRATION_HEADER=Migrate Views
575
575
  #XMSG: Context-Based Adaptation Migration Dialog description
576
576
  DAC_DIALOG_MIGRATION_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.
577
577
  #XMSG: Context-Based Adaptation Migration Dialog description
578
- DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.\n\n You have unsaved UI changes. These will be discarded before the migration.
578
+ DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.\n\n You have unsaved UI changes. These are saved before migration.
579
579
  #XMSG: Context-Based Adaptation Migration Successful Dialog description
580
580
  DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION=Views have been successfully migrated.\n You can now switch to the created adaptations and verify them.
581
581
  #XMSG: Context-Based Adaptation Migration Error Dialog description
@@ -311,7 +311,7 @@ MENU_BTN_SHARE=Teilen
311
311
  MENU_BTN_EDIT=Bearbeiten
312
312
  MAA_DIALOG_DELETE=L\u00F6schen
313
313
  TXT_SELECT_FIRST_PRIO=Vor allen einf\u00FCgen (Priorit\u00E4t '1')
314
- TXT_SELECT_PRIO=Nach ''{0}'' einf\u00FCgen (Priorit\u00E4t''{1}'')
314
+ TXT_SELECT_PRIO=Nach ''{0}'' einf\u00FCgen (Priorit\u00E4t ''{1}'')
315
315
  SAVE_AS_DIALOG_PLACEHOLDER_DESCRIPTION_TEXT=Beschreibung eingeben
316
316
  TXT_TABLE_CONTEXT_CELL_ROLE=Rolle
317
317
  TXT_TABLE_CONTEXT_CELL_ROLES=Rollen