@openui5/sap.ui.rta 1.109.0 → 1.111.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 (196) hide show
  1. package/.reuse/dep5 +16 -16
  2. package/THIRDPARTY.txt +2 -2
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +2 -2
  5. package/src/sap/ui/rta/Client.js +2 -2
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +251 -151
  7. package/src/sap/ui/rta/Utils.js +40 -19
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -1
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  12. package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
  13. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
  14. package/src/sap/ui/rta/appVariant/Feature.js +2 -8
  15. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
  16. package/src/sap/ui/rta/appVariant/Utils.js +1 -1
  17. package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
  18. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
  19. package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
  20. package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
  21. package/src/sap/ui/rta/command/AddIFrame.js +2 -2
  22. package/src/sap/ui/rta/command/AddProperty.js +2 -2
  23. package/src/sap/ui/rta/command/AddXML.js +2 -2
  24. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
  25. package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
  26. package/src/sap/ui/rta/command/BaseCommand.js +2 -2
  27. package/src/sap/ui/rta/command/BindProperty.js +2 -2
  28. package/src/sap/ui/rta/command/Combine.js +2 -2
  29. package/src/sap/ui/rta/command/CommandFactory.js +2 -2
  30. package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
  31. package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
  32. package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
  33. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
  34. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
  35. package/src/sap/ui/rta/command/ControlVariantSwitch.js +15 -13
  36. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  37. package/src/sap/ui/rta/command/CustomAdd.js +2 -2
  38. package/src/sap/ui/rta/command/FlexCommand.js +2 -2
  39. package/src/sap/ui/rta/command/LREPSerializer.js +27 -12
  40. package/src/sap/ui/rta/command/LocalReset.js +2 -2
  41. package/src/sap/ui/rta/command/Move.js +2 -2
  42. package/src/sap/ui/rta/command/Property.js +2 -2
  43. package/src/sap/ui/rta/command/Remove.js +2 -2
  44. package/src/sap/ui/rta/command/Rename.js +2 -2
  45. package/src/sap/ui/rta/command/Resize.js +2 -2
  46. package/src/sap/ui/rta/command/Reveal.js +2 -2
  47. package/src/sap/ui/rta/command/Settings.js +2 -2
  48. package/src/sap/ui/rta/command/Split.js +2 -2
  49. package/src/sap/ui/rta/command/Stack.js +11 -3
  50. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
  51. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
  52. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
  53. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
  54. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +2 -2
  55. package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
  56. package/src/sap/ui/rta/enablement/elementActionTest.js +2 -2
  57. package/src/sap/ui/rta/library.js +3 -3
  58. package/src/sap/ui/rta/messagebundle.properties +65 -13
  59. package/src/sap/ui/rta/messagebundle_ar.properties +35 -11
  60. package/src/sap/ui/rta/messagebundle_bg.properties +35 -11
  61. package/src/sap/ui/rta/messagebundle_ca.properties +35 -11
  62. package/src/sap/ui/rta/messagebundle_cs.properties +35 -11
  63. package/src/sap/ui/rta/messagebundle_cy.properties +34 -10
  64. package/src/sap/ui/rta/messagebundle_da.properties +34 -10
  65. package/src/sap/ui/rta/messagebundle_de.properties +37 -13
  66. package/src/sap/ui/rta/messagebundle_el.properties +34 -10
  67. package/src/sap/ui/rta/messagebundle_en.properties +33 -9
  68. package/src/sap/ui/rta/messagebundle_en_GB.properties +33 -9
  69. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +31 -5
  70. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +37 -5
  71. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +31 -7
  72. package/src/sap/ui/rta/messagebundle_es.properties +34 -10
  73. package/src/sap/ui/rta/messagebundle_es_MX.properties +34 -10
  74. package/src/sap/ui/rta/messagebundle_et.properties +34 -10
  75. package/src/sap/ui/rta/messagebundle_fi.properties +34 -10
  76. package/src/sap/ui/rta/messagebundle_fr.properties +34 -10
  77. package/src/sap/ui/rta/messagebundle_fr_CA.properties +35 -11
  78. package/src/sap/ui/rta/messagebundle_hi.properties +35 -11
  79. package/src/sap/ui/rta/messagebundle_hr.properties +35 -11
  80. package/src/sap/ui/rta/messagebundle_hu.properties +34 -10
  81. package/src/sap/ui/rta/messagebundle_id.properties +35 -11
  82. package/src/sap/ui/rta/messagebundle_it.properties +35 -11
  83. package/src/sap/ui/rta/messagebundle_iw.properties +34 -10
  84. package/src/sap/ui/rta/messagebundle_ja.properties +35 -11
  85. package/src/sap/ui/rta/messagebundle_kk.properties +34 -10
  86. package/src/sap/ui/rta/messagebundle_ko.properties +34 -10
  87. package/src/sap/ui/rta/messagebundle_lt.properties +34 -10
  88. package/src/sap/ui/rta/messagebundle_lv.properties +35 -11
  89. package/src/sap/ui/rta/messagebundle_ms.properties +35 -11
  90. package/src/sap/ui/rta/messagebundle_nl.properties +34 -10
  91. package/src/sap/ui/rta/messagebundle_no.properties +35 -11
  92. package/src/sap/ui/rta/messagebundle_pl.properties +35 -11
  93. package/src/sap/ui/rta/messagebundle_pt.properties +35 -11
  94. package/src/sap/ui/rta/messagebundle_pt_PT.properties +34 -10
  95. package/src/sap/ui/rta/messagebundle_ro.properties +35 -11
  96. package/src/sap/ui/rta/messagebundle_ru.properties +35 -11
  97. package/src/sap/ui/rta/messagebundle_sh.properties +34 -10
  98. package/src/sap/ui/rta/messagebundle_sk.properties +34 -10
  99. package/src/sap/ui/rta/messagebundle_sl.properties +34 -10
  100. package/src/sap/ui/rta/messagebundle_sv.properties +35 -11
  101. package/src/sap/ui/rta/messagebundle_th.properties +36 -12
  102. package/src/sap/ui/rta/messagebundle_tr.properties +34 -10
  103. package/src/sap/ui/rta/messagebundle_uk.properties +34 -10
  104. package/src/sap/ui/rta/messagebundle_vi.properties +35 -11
  105. package/src/sap/ui/rta/messagebundle_zh_CN.properties +35 -11
  106. package/src/sap/ui/rta/messagebundle_zh_TW.properties +35 -11
  107. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
  108. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  109. package/src/sap/ui/rta/plugin/Combine.js +2 -2
  110. package/src/sap/ui/rta/plugin/CompVariant.js +4 -6
  111. package/src/sap/ui/rta/plugin/ControlVariant.js +2 -2
  112. package/src/sap/ui/rta/plugin/CreateContainer.js +3 -3
  113. package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
  114. package/src/sap/ui/rta/plugin/DragDrop.js +4 -4
  115. package/src/sap/ui/rta/plugin/EasyAdd.js +30 -21
  116. package/src/sap/ui/rta/plugin/EasyRemove.js +13 -11
  117. package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
  118. package/src/sap/ui/rta/plugin/Plugin.js +57 -13
  119. package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
  120. package/src/sap/ui/rta/plugin/Remove.js +3 -3
  121. package/src/sap/ui/rta/plugin/Rename.js +2 -2
  122. package/src/sap/ui/rta/plugin/RenameHandler.js +30 -19
  123. package/src/sap/ui/rta/plugin/Resize.js +2 -2
  124. package/src/sap/ui/rta/plugin/Selection.js +8 -15
  125. package/src/sap/ui/rta/plugin/Settings.js +2 -2
  126. package/src/sap/ui/rta/plugin/Split.js +2 -2
  127. package/src/sap/ui/rta/plugin/Stretch.js +17 -16
  128. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +28 -7
  129. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +1 -0
  130. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +2 -2
  131. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +4 -2
  132. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -5
  133. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
  134. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
  135. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
  136. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +7 -2
  137. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
  138. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -4
  139. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  140. package/src/sap/ui/rta/service/Action.js +2 -2
  141. package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
  142. package/src/sap/ui/rta/service/Outline.js +2 -2
  143. package/src/sap/ui/rta/service/Property.js +2 -2
  144. package/src/sap/ui/rta/service/Receiver.js +1 -1
  145. package/src/sap/ui/rta/service/Selection.js +2 -2
  146. package/src/sap/ui/rta/service/SupportTools.js +2 -2
  147. package/src/sap/ui/rta/service/index.js +1 -1
  148. package/src/sap/ui/rta/themes/base/AddIFrame.less +1 -1
  149. package/src/sap/ui/rta/themes/base/Dialogs.less +1 -1
  150. package/src/sap/ui/rta/themes/base/FieldRepository.less +1 -1
  151. package/src/sap/ui/rta/themes/base/library.source.less +1 -1
  152. package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
  153. package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +82 -0
  154. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +35 -79
  155. package/src/sap/ui/rta/toolbar/Adaptation.js +83 -25
  156. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  157. package/src/sap/ui/rta/toolbar/Base.js +4 -4
  158. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
  159. package/src/sap/ui/rta/toolbar/Fiori.js +15 -11
  160. package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
  161. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
  162. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  163. package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
  164. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +340 -0
  165. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +152 -0
  166. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +225 -0
  167. package/src/sap/ui/rta/toolbar/contextBased/{SaveAsContextBasedAdaptationDialog.fragment.xml → SaveAsAdaptationDialog.fragment.xml} +19 -15
  168. package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
  169. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +4 -4
  170. package/src/sap/ui/rta/util/Animation.js +5 -9
  171. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  172. package/src/sap/ui/rta/util/PluginManager.js +2 -2
  173. package/src/sap/ui/rta/util/PopupManager.js +2 -2
  174. package/src/sap/ui/rta/util/ReloadManager.js +2 -2
  175. package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
  176. package/src/sap/ui/rta/util/StylesLoader.js +1 -1
  177. package/src/sap/ui/rta/util/UrlParser.js +1 -1
  178. package/src/sap/ui/rta/util/adaptationStarter.js +1 -1
  179. package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
  180. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +4 -6
  181. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
  182. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +27 -3
  183. package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +2 -2
  184. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +127 -71
  185. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
  186. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
  187. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  188. package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
  189. package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
  190. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  191. package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
  192. package/src/sap/ui/rta/util/hasStableId.js +1 -1
  193. package/src/sap/ui/rta/util/showMessageBox.js +1 -1
  194. package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
  195. package/src/sap/ui/rta/util/validateStableIds.js +1 -1
  196. package/src/sap/ui/rta/toolbar/contextBased/SaveAsContextBasedAdaptation.js +0 -124
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -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.109.0
30
+ * @version 1.111.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.42
@@ -177,23 +177,33 @@ sap.ui.define([
177
177
  }.bind(this))
178
178
  .then(function() {
179
179
  Log.info("UI adaptation successfully transfered changes to layered repository");
180
+ this.getCommandStack().setSaved(true);
180
181
  this.getCommandStack().removeAllCommands();
181
182
  }.bind(this));
182
183
 
183
184
  return this._lastPromise;
184
185
  };
185
186
 
186
- LREPSerializer.prototype._triggerUndoChanges = function() {
187
+ LREPSerializer.prototype._triggerUndoChanges = function(bRemoveChanges) {
187
188
  var oCommandStack = this.getCommandStack();
188
189
  var aPromises = [];
189
190
 
190
191
  var aCommands = oCommandStack.getAllExecutedCommands();
191
- aCommands.forEach(function(oCommand) {
192
- aPromises.push(oCommand.undo.bind(oCommand));
193
- });
194
192
 
195
- // The last command has to be undone first, therefore reversing is required
196
- aPromises = aPromises.reverse();
193
+ if (bRemoveChanges) {
194
+ // Calling "undo" from the stack, the serializer is also informed of the
195
+ // command execution and clears the dirty changes from the persistence
196
+ aCommands.forEach(function() {
197
+ // Undo on the stack already starts from the last command
198
+ aPromises.push(oCommandStack.undo.bind(oCommandStack));
199
+ });
200
+ } else {
201
+ aCommands.forEach(function(oCommand) {
202
+ aPromises.push(oCommand.undo.bind(oCommand));
203
+ });
204
+ // The last command has to be undone first, therefore reversing is required
205
+ aPromises = aPromises.reverse();
206
+ }
197
207
 
198
208
  return FlUtils.execPromiseQueueSequentially(aPromises, false, true);
199
209
  };
@@ -203,18 +213,23 @@ sap.ui.define([
203
213
  * At this point command stack is not aware if the changes have been already booked for the new app variant.
204
214
  * Therefore if there shall be some UI changes present in command stack, we undo all the changes till the beginning.
205
215
  * In the last when user presses 'Save and Exit', there will be no change registered for the current app.
216
+ * @param {boolean} bRemoveChanges if LREPSerializer should clear the dirty changes in the persistence
206
217
  * @returns {Promise} returns a promise with true or false
207
218
  */
208
- LREPSerializer.prototype.clearCommandStack = function() {
219
+ LREPSerializer.prototype.clearCommandStack = function(bRemoveChanges) {
209
220
  var oCommandStack = this.getCommandStack();
210
221
 
211
222
  // Detach the event 'commandExecuted' here to stop the communication of LREPSerializer with Flex
212
- oCommandStack.detachCommandExecuted(this.handleCommandExecuted.bind(this));
213
- return this._triggerUndoChanges()
223
+ if (!bRemoveChanges) {
224
+ oCommandStack.detachCommandExecuted(this.handleCommandExecuted.bind(this));
225
+ }
226
+ return this._triggerUndoChanges(bRemoveChanges)
214
227
  .then(function() {
215
228
  oCommandStack.removeAllCommands();
216
229
  // Attach the event 'commandExecuted' here to start the communication of LREPSerializer with Flex
217
- oCommandStack.attachCommandExecuted(this.handleCommandExecuted.bind(this));
230
+ if (!bRemoveChanges) {
231
+ oCommandStack.attachCommandExecuted(this.handleCommandExecuted.bind(this));
232
+ }
218
233
  return true;
219
234
  }.bind(this));
220
235
  };
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.90
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
20
+ * @version 1.111.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
19
+ * @version 1.111.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
15
+ * @version 1.111.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.42
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
15
+ * @version 1.111.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
19
+ * @version 1.111.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.101
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
15
+ * @version 1.111.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
15
+ * @version 1.111.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
17
+ * @version 1.111.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.46
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -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.109.0
62
+ * @version 1.111.0
63
63
  * @constructor
64
64
  * @private
65
65
  * @since 1.34
@@ -70,7 +70,15 @@ sap.ui.define([
70
70
  var Stack = ManagedObject.extend("sap.ui.rta.command.Stack", {
71
71
  metadata: {
72
72
  library: "sap.ui.rta",
73
- properties: {},
73
+ properties: {
74
+ /**
75
+ * If the stack was saved at least once
76
+ */
77
+ saved: {
78
+ type: "boolean",
79
+ defaultValue: false
80
+ }
81
+ },
74
82
  aggregations: {
75
83
  commands: {
76
84
  type: "sap.ui.rta.command.BaseCommand",
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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 @@ sap.ui.define([
17
17
  * @extends sap.ui.rta.command.AppDescriptorCommand
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.109.0
20
+ * @version 1.111.0
21
21
  *
22
22
  * @constructor
23
23
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.102
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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.109.0
23
+ * @version 1.111.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.87
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -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.109.0
21
+ * @version 1.111.0
22
22
  * @constructor
23
23
  * @private
24
24
  * @since 1.87
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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([
@@ -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.109.0
25
+ * @version 1.111.0
26
26
  * @constructor
27
27
  * @private
28
28
  * @since 1.87
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 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,7 +1,7 @@
1
1
  /* global QUnit */
2
2
  /*!
3
3
  * OpenUI5
4
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
5
5
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
6
6
  */
7
7
 
@@ -53,7 +53,7 @@ sap.ui.define([
53
53
  * E.g. <code>elementActionTest.only("Remove");</code>
54
54
  *
55
55
  * @author SAP SE
56
- * @version 1.109.0
56
+ * @version 1.111.0
57
57
  *
58
58
  * @static
59
59
  * @since 1.42
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,14 +23,14 @@ function() {
23
23
  * @namespace
24
24
  * @alias sap.ui.rta
25
25
  * @author SAP SE
26
- * @version 1.109.0
26
+ * @version 1.111.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.109.0",
33
+ version: "1.111.0",
34
34
  dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
35
35
  types: [],
36
36
  interfaces: [],
@@ -3,15 +3,17 @@
3
3
 
4
4
  #XTIT: Service name for general use (e.g. confirmation dialogs, titles, etc.)
5
5
  SERVICE_NAME=UI Adaptation
6
- #XBUT: Button 'Save & Exit' of the Toolbar
7
- BTN_EXIT=Save & Exit
6
+ #XBUT: Button 'Save' on the Toolbar
7
+ BTN_SAVE=Save
8
+ #XBUT: Button 'Exit' on the Toolbar
9
+ BTN_EXIT=Exit
8
10
  #XBUT: Button 'Done' of the Toolbar
9
11
  BTN_DONE=Done
10
12
  #XMIT: Context Menu Entry 'Remove'
11
13
  CTX_REMOVE=Remove
12
14
  #XMIT: Remove Confirm Dialog Title
13
15
  CTX_REMOVE_TITLE=Remove
14
- #XMIT: Context Menu Entry for local reset of container
16
+ #XMIT: Context Menu Entry for local reset of containers
15
17
  CTX_LOCAL_RESET=Reset Container
16
18
  #XMIT: Context Menu Entry 'Add <control type, e.g. Field, Section, ...>'
17
19
  CTX_ADD_ELEMENTS=Add\: {0}
@@ -69,8 +71,10 @@ LBL_FREP=was {0}
69
71
  HEADER_ADDITIONAL_ELEMENTS=Available Content\: {0}
70
72
  #XHED: Header for dialog showing additional elements with placeholder specifying the aggregation name
71
73
  HEADER_ADDITIONAL_ELEMENTS_WITH_AGGREGATION=Available Content for\: {0}
72
- #XBUT: Tooltip for Manage Apps Variant Button in RTA Toolbar
73
- BTN_MANAGE_APPS_TXT=Manage App Variants
74
+ #XBUT: Tooltip for Apps Variant menu in RTA Toolbar
75
+ BTN_MANAGE_APPS_TXT=App Variants
76
+ #XBUT: Tooltip for Manage Apps Variant submenu item in RTA Toolbar
77
+ BTN_MANAGE_APPS_ITEM=Manage
74
78
  #XBUT: Button 'Save As' of the Toolbar
75
79
  BTN_SAVE_AS=Save As
76
80
  #XTOL: Tooltip for Button 'Save As' of the Toolbar
@@ -79,6 +83,8 @@ TOOLTIP_SAVE_AS=Create New App Variant
79
83
  BTN_UNDO=Undo
80
84
  #XBUT: Button 'Redo' of the Toolbar
81
85
  BTN_REDO=Redo
86
+ #BUT: Button 'More Actions' of the Toolbar
87
+ BTN_MENU=More Actions
82
88
  #XBUT: Button 'Reset' of the Toolbar
83
89
  BTN_RESTORE=Reset
84
90
  #XBUT: Button 'UI Adaptation' of the Toolbar
@@ -177,6 +183,14 @@ FORM_PERS_RESET_MESSAGE_PERSONALIZATION=Do you want to discard all your personal
177
183
  MSG_LREP_TRANSFER_ERROR=Sorry, a technical error occurred. Please try again later, or contact your administrator.
178
184
  #XMSG: Error message showing the reason (technical info)
179
185
  MSG_ERROR_REASON=Reason\:\n{0}
186
+ #XTIT: undo unsaved changes on close ui adaptation confirmation dialog title
187
+ TIT_UNSAVED_CHANGES_ON_CLOSE=Exit
188
+ #XMSG: undo unsaved changes on close ui adaptation confirmation dialog message
189
+ MSG_UNSAVED_CHANGES_ON_CLOSE=Save your changes?
190
+ #XBUT: Button 'Save' on the Dialog
191
+ BTN_UNSAVED_CHANGES_ON_CLOSE_SAVE=Save
192
+ #XBUT: Button 'Discard' on the Dialog
193
+ BTN_UNSAVED_CHANGES_ON_CLOSE_DONT_SAVE=Discard
180
194
  #XMSG: Message when leaving RTA without saving
181
195
  MSG_UNSAVED_CHANGES=If you confirm, all your UI changes will be lost. To save them, close this dialog box, and exit UI Adaptation.
182
196
  #XMSG: Message when no fields are available in the add-field-dialog
@@ -185,8 +199,8 @@ MSG_NO_FIELDS=No more content available
185
199
  HEADER_PERSONALIZATION_EXISTS=Information
186
200
  #XMSG: Dialog message for personalization exists
187
201
  MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=You have personalized the app or there are public views. The app will now reload without these changes. Any recently made changes may remain active.
188
- #XMSG: MessageToast to warn users that changes made in navigation mode will be discarded after save & exit
189
- MSG_NAVIGATION_MODE_CHANGES_WARNING=Changes made to the UI in navigation mode will be discarded after you choose Save & Exit.
202
+ #XMSG: MessageToast to warn users that changes made in navigation mode will be discarded after exit
203
+ MSG_NAVIGATION_MODE_CHANGES_WARNING=Changes made to the UI in navigation mode will be discarded after you exit UI Adaptation.
190
204
  #XMSG: Dialog message for draft changes exists
191
205
  MSG_DRAFT_EXISTS=Draft changes are available for this app. In UI adaptation mode, the draft changes will be loaded.
192
206
  #XMSG: Dialog message when user discards a draft
@@ -496,22 +510,60 @@ MSG_ADAPTATION_COULD_NOT_START=Error starting UI adaptation
496
510
  #XMSG: No Key User rights Error Message
497
511
  MSG_NO_KEY_USER_RIGHTS_ERROR_MESSAGE=You do not have key user permissions. Please contact your administrator.
498
512
 
499
- #XTIT: App contexts Overview Dialog title
500
- APP_CONTEXTS_OVERVIEW_DIALOG_TITLE=Overview of App Contexts
501
-
502
- #XTIT: App contexts Edit Dialog title
513
+ #XTIT: Context-Based Adaptation Edit Dialog title
503
514
  EAC_DIALOG_HEADER=Edit Adaptation
504
- #XTIT: App contexts Save Dialog title
515
+ #XTIT: Context-Based Adaptation Save Dialog title
505
516
  SAC_DIALOG_HEADER=Save as New Adaptation
517
+ #XTITT: Context-Based Adaptation Manage Dialog title
518
+ MANAGE_ADAPTATIONS_DIALOG_HEADER=Manage Adaptations
506
519
  #XTIT: Text for Manage Adaptations Button in RTA toolbar
507
520
  BTN_MANAGE_APP_CTX=Manage Adaptations
508
521
  #XBUT: Tooltip for Manage Adaptations Button in RTA Toolbar
509
522
  TXT_MANAGE_APP_CTX=View, edit or delete adaptations
510
523
  #XFLD: column header for column on the far left
511
524
  CLM_HEADER_PRIORITY=Priority
525
+ #XFLD: column header for table who created table row and when
526
+ CLM_HEADER_CREATED=Created
527
+ #XFLD: column header for table who last changed table row and when
528
+ CLM_HEADER_CHANGED=Last Changed
529
+ #XFLD: actions that can be performed on new artefact
530
+ CLM_HEADER_ADAPTATIONS_ACTIONS=Actions
531
+ #XFLD: column header for column on the far left
532
+ CLM_HEADER_CONTEXT=Context
533
+ #XFLD: title of a new artefact
534
+ CLM_HEADER_ADAPTATIONS_TITLE=Title
535
+ #XFLD: description of a new artefact
536
+ MAA_DIALOG_DESCRIPTION=Description
537
+ #XBTN: save as new artefact
538
+ MAA_DIALOG_SAVE_AS_APP=Save as
539
+ #XBTN: button to adapt the UI
540
+ MAA_DIALOG_ADAPT_UI=Adapt UI
541
+ #XFLD: menu bar item for available actions
542
+ MENU_BTN_SHARE=Share
543
+ #XFLD: menu bar item for available actions
544
+ MENU_BTN_EDIT=Edit
545
+ #XFLD: delete context-based adaptation button
546
+ MAA_DIALOG_DELETE=Delete
512
547
  #XTXT: priority dropdown selection for first position
513
548
  TXT_SELECT_FIRST_PRIO=Insert before all (Priority '1')
514
549
  #XTXT: priority dropdown selection for all other positions
515
550
  TXT_SELECT_PRIO=Insert after ''{0}'' (Priority ''{1}'')
516
551
  #XTXT: placeholder text to enter into description input field
517
- SAVE_AS_DIALOG_PLACEHOLDER_DESCRIPTION_TEXT=Enter description
552
+ SAVE_AS_DIALOG_PLACEHOLDER_DESCRIPTION_TEXT=Enter description
553
+ #XFLD: postfix for context table cell
554
+ TXT_TABLE_CONTEXT_CELL_ROLE=role
555
+ #XFLD: postfix for context table cell
556
+ TXT_TABLE_CONTEXT_CELL_ROLES=roles
557
+ #XTXT: title of adaptation without contexts
558
+ TXT_DEFAULT_APP=Default App
559
+ #XBUT: Context-Based Adaptation predefined text for Save button
560
+ APP_CTX_DIALOG_SAVE=Save
561
+ #XBUT: Context-Based Adaptation predefined text for Cancel button
562
+ APP_CTX_DIALOG_CANCEL=Cancel
563
+ TOOLTIP_APP_CTX_DIALOG_SAVE=Context-based adaptation has not been changed.
564
+ #TXT: Context-Based Adaptation duplicate title error message
565
+ TXT_CTX_ERROR_DUPLICATE_TITLE=The adaptation title already exists. Please enter a different title.
566
+ #XTIT: Context-Based Adaptation predefined title for Error Message max length
567
+ TXT_CTX_ERROR_MAX_LEN=Adaptation titles are restricted to {0} characters
568
+ #TXT: Context-Based Adaptation empty title error message
569
+ TXT_CTX_ERROR_EMPTY_TITLE=Please enter a title.