@openui5/sap.ui.rta 1.84.20 → 1.84.23

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 (106) hide show
  1. package/LICENSE.txt +1 -1
  2. package/package.json +6 -6
  3. package/src/sap/ui/rta/.library +2 -2
  4. package/src/sap/ui/rta/Client.js +2 -2
  5. package/src/sap/ui/rta/RuntimeAuthoring.js +14 -5
  6. package/src/sap/ui/rta/Utils.js +2 -2
  7. package/src/sap/ui/rta/api/startAdaptation.js +1 -1
  8. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
  9. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  11. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  13. package/src/sap/ui/rta/appVariant/Feature.js +1 -1
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
  15. package/src/sap/ui/rta/appVariant/Utils.js +1 -1
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  20. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  21. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  22. package/src/sap/ui/rta/command/AddXML.js +2 -2
  23. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  24. package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
  25. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  26. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  27. package/src/sap/ui/rta/command/Combine.js +2 -2
  28. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  29. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  30. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantDuplicate.js +2 -2
  32. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -2
  34. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  35. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  36. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  37. package/src/sap/ui/rta/command/LREPSerializer.js +12 -4
  38. package/src/sap/ui/rta/command/Move.js +2 -2
  39. package/src/sap/ui/rta/command/Property.js +2 -2
  40. package/src/sap/ui/rta/command/Remove.js +2 -2
  41. package/src/sap/ui/rta/command/Rename.js +2 -2
  42. package/src/sap/ui/rta/command/Reveal.js +2 -2
  43. package/src/sap/ui/rta/command/Settings.js +2 -2
  44. package/src/sap/ui/rta/command/Split.js +2 -2
  45. package/src/sap/ui/rta/command/Stack.js +2 -2
  46. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
  47. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  48. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  49. package/src/sap/ui/rta/library.js +3 -3
  50. package/src/sap/ui/rta/messagebundle.properties +2 -0
  51. package/src/sap/ui/rta/messagebundle_ko.properties +1 -1
  52. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  53. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  54. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  55. package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
  56. package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
  57. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  58. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  59. package/src/sap/ui/rta/plugin/EasyAdd.js +2 -2
  60. package/src/sap/ui/rta/plugin/EasyRemove.js +2 -2
  61. package/src/sap/ui/rta/plugin/Plugin.js +2 -2
  62. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  63. package/src/sap/ui/rta/plugin/Remove.js +2 -2
  64. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  65. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
  66. package/src/sap/ui/rta/plugin/Selection.js +2 -2
  67. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  68. package/src/sap/ui/rta/plugin/Split.js +2 -2
  69. package/src/sap/ui/rta/plugin/Stretch.js +2 -2
  70. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  71. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  72. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -2
  73. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  74. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  75. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
  76. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  77. package/src/sap/ui/rta/service/Action.js +2 -2
  78. package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
  79. package/src/sap/ui/rta/service/Outline.js +2 -2
  80. package/src/sap/ui/rta/service/Property.js +2 -2
  81. package/src/sap/ui/rta/service/Receiver.js +1 -1
  82. package/src/sap/ui/rta/service/Selection.js +2 -2
  83. package/src/sap/ui/rta/service/index.js +1 -1
  84. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  85. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  86. package/src/sap/ui/rta/toolbar/Adaptation.js +2 -2
  87. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  88. package/src/sap/ui/rta/toolbar/Base.js +2 -2
  89. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  90. package/src/sap/ui/rta/toolbar/ChangeIndicator.js +1 -1
  91. package/src/sap/ui/rta/toolbar/ChangeVisualization.js +1 -1
  92. package/src/sap/ui/rta/toolbar/Fiori.js +2 -2
  93. package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
  94. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  95. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  96. package/src/sap/ui/rta/util/Animation.js +1 -1
  97. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  98. package/src/sap/ui/rta/util/PopupManager.js +6 -3
  99. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  100. package/src/sap/ui/rta/util/StylesLoader.js +1 -1
  101. package/src/sap/ui/rta/util/UrlParser.js +1 -1
  102. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  103. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  104. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  105. package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
  106. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
package/LICENSE.txt CHANGED
@@ -581,7 +581,7 @@ License: MIT License
581
581
  <copyright holders> = Bjarke Walling
582
582
  <year> = 2014
583
583
 
584
- Component: URI.js 1.19.7
584
+ Component: URI.js 1.19.10
585
585
  Licensor: Rodney Rehm
586
586
  Website: http://github.com/medialize/URI.js/
587
587
  License: MIT License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.84.20",
3
+ "version": "1.84.23",
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.84.20",
18
- "@openui5/sap.ui.core": "1.84.20",
19
- "@openui5/sap.ui.dt": "1.84.20",
20
- "@openui5/sap.ui.fl": "1.84.20",
21
- "@openui5/sap.ui.layout": "1.84.20"
17
+ "@openui5/sap.m": "1.84.23",
18
+ "@openui5/sap.ui.core": "1.84.23",
19
+ "@openui5/sap.ui.dt": "1.84.23",
20
+ "@openui5/sap.ui.fl": "1.84.23",
21
+ "@openui5/sap.ui.layout": "1.84.23"
22
22
  }
23
23
  }
@@ -4,9 +4,9 @@
4
4
  <name>sap.ui.rta</name>
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>OpenUI5
7
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
7
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.84.20</version>
9
+ <version>1.84.23</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.84.20
60
+ * @version 1.84.23
61
61
  * @private
62
62
  * @ui5-restricted
63
63
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -145,7 +145,7 @@ function(
145
145
  * @class The runtime authoring allows to adapt the fields of a running application.
146
146
  * @extends sap.ui.base.ManagedObject
147
147
  * @author SAP SE
148
- * @version 1.84.20
148
+ * @version 1.84.23
149
149
  * @constructor
150
150
  * @private
151
151
  * @since 1.30
@@ -262,6 +262,7 @@ function(
262
262
  _sAppTitle: null,
263
263
  _dependents: null,
264
264
  _sStatus: STOPPED,
265
+ _bHasSwitchedToNavigationMode: false,
265
266
  constructor: function() {
266
267
  // call parent constructor
267
268
  ManagedObject.apply(this, arguments);
@@ -1012,7 +1013,8 @@ function(
1012
1013
  };
1013
1014
 
1014
1015
  RuntimeAuthoring.prototype._serializeAndSave = function() {
1015
- return this._oSerializer.saveCommands(this._oVersionsModel.getProperty("/versioningEnabled"));
1016
+ // Save changes on the current layer and discard dirty changes on other layers
1017
+ return this._oSerializer.saveCommands(this._oVersionsModel.getProperty("/versioningEnabled"), this.getLayer(), true);
1016
1018
  };
1017
1019
 
1018
1020
  RuntimeAuthoring.prototype._serializeToLrep = function() {
@@ -1390,10 +1392,10 @@ function(
1390
1392
  * @param {string} sMessageKey The text key for the message
1391
1393
  * @private
1392
1394
  */
1393
- RuntimeAuthoring.prototype._showMessageToast = function(sMessageKey) {
1395
+ RuntimeAuthoring.prototype._showMessageToast = function(sMessageKey, mOptions) {
1394
1396
  var sMessage = this._getTextResources().getText(sMessageKey);
1395
1397
 
1396
- MessageToast.show(sMessage);
1398
+ MessageToast.show(sMessage, mOptions || {});
1397
1399
  };
1398
1400
 
1399
1401
  /**
@@ -1880,6 +1882,13 @@ function(
1880
1882
  */
1881
1883
  RuntimeAuthoring.prototype.setMode = function (sNewMode) {
1882
1884
  if (this.getMode() !== sNewMode) {
1885
+ if (sNewMode === "navigation" && !this._bHasSwitchedToNavigationMode) {
1886
+ this._showMessageToast("MSG_NAVIGATION_MODE_CHANGES_WARNING", {
1887
+ duration: 5000
1888
+ });
1889
+ this._bHasSwitchedToNavigationMode = true;
1890
+ }
1891
+
1883
1892
  var bOverlaysEnabled = sNewMode === 'adaptation';
1884
1893
  this._oDesignTime.setEnabled(bOverlaysEnabled);
1885
1894
  this.getPlugins()['tabHandling'][bOverlaysEnabled ? 'removeTabIndex' : 'restoreTabIndex']();
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -42,7 +42,7 @@ function(
42
42
  * @class Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.84.20
45
+ * @version 1.84.23
46
46
  *
47
47
  * @private
48
48
  * @static
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
27
+ * @version 1.84.23
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.require([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
19
+ * @version 1.84.23
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
17
+ * @version 1.84.23
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
19
+ * @version 1.84.23
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
27
+ * @version 1.84.23
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
24
+ * @version 1.84.23
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
@@ -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.84.20
16
+ * @version 1.84.23
17
17
  *
18
18
  * @constructor
19
19
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
29
+ * @version 1.84.23
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
19
+ * @version 1.84.23
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -432,7 +432,7 @@ function(
432
432
  * @extends sap.ui.base.ManagedObject
433
433
  *
434
434
  * @author SAP SE
435
- * @version 1.84.20
435
+ * @version 1.84.23
436
436
  *
437
437
  * @constructor
438
438
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
22
+ * @version 1.84.23
23
23
  *
24
24
  * @constructor
25
25
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
23
+ * @version 1.84.23
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.52
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
23
+ * @version 1.84.23
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.52
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
19
+ * @version 1.84.23
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.50
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
23
+ * @version 1.84.23
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.50
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
@@ -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.84.20
15
+ * @version 1.84.23
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
@@ -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.84.20
15
+ * @version 1.84.23
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
32
+ * @version 1.84.23
33
33
  *
34
34
  * @constructor
35
35
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
32
+ * @version 1.84.23
33
33
  * @constructor
34
34
  * @private
35
35
  * @since 1.42
@@ -153,10 +153,12 @@ sap.ui.define([
153
153
  * In case of Base Applications (no App Variants) the App Descriptor Changes and UI Changes are saved in different Flex Persistence instances,
154
154
  * so we have to call save twice. For App Variants all the changes are saved in one place.
155
155
  * @param {boolean} bSaveAsDraft - save the changes as a draft
156
+ * @param {string} [sLayer] - Layer for which the changes should be saved
157
+ * @param {boolean} [bRemoveOtherLayerChanges=false] - Whether to remove changes on other layers before saving
156
158
  * @returns {Promise} return empty promise
157
159
  * @public
158
160
  */
159
- LREPSerializer.prototype.saveCommands = function(bSaveAsDraft) {
161
+ LREPSerializer.prototype.saveCommands = function(bSaveAsDraft, sLayer, bRemoveOtherLayerChanges) {
160
162
  this._lastPromise = this._lastPromise.catch(function() {
161
163
  // _lastPromise chain must not be interrupted
162
164
  }).then(function() {
@@ -164,7 +166,13 @@ sap.ui.define([
164
166
  if (!oRootControl) {
165
167
  throw new Error("Can't save commands without root control instance!");
166
168
  }
167
- return PersistenceWriteAPI.save({selector: oRootControl, skipUpdateCache: false, draft: !!bSaveAsDraft});
169
+ return PersistenceWriteAPI.save({
170
+ selector: oRootControl,
171
+ skipUpdateCache: false,
172
+ draft: !!bSaveAsDraft,
173
+ layer: sLayer,
174
+ removeOtherLayerChanges: !!bRemoveOtherLayerChanges
175
+ });
168
176
  }.bind(this))
169
177
 
170
178
  .then(function() {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -17,7 +17,7 @@ function(
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.FlexCommand
19
19
  * @author SAP SE
20
- * @version 1.84.20
20
+ * @version 1.84.23
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
@@ -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.84.20
19
+ * @version 1.84.23
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34