@openui5/sap.ui.rta 1.115.1 → 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 (178) hide show
  1. package/.eslintrc.json +33 -2
  2. package/.reuse/dep5 +0 -5
  3. package/THIRDPARTY.txt +1 -7
  4. package/package.json +6 -6
  5. package/src/sap/ui/rta/.library +1 -1
  6. package/src/sap/ui/rta/Client.js +60 -59
  7. package/src/sap/ui/rta/RuntimeAuthoring.js +256 -254
  8. package/src/sap/ui/rta/Utils.js +42 -42
  9. package/src/sap/ui/rta/api/startAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +3 -3
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -27
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +100 -103
  13. package/src/sap/ui/rta/appVariant/Feature.js +75 -77
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +6 -7
  15. package/src/sap/ui/rta/appVariant/Utils.js +17 -17
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +36 -36
  17. package/src/sap/ui/rta/command/AddIFrame.js +7 -7
  18. package/src/sap/ui/rta/command/AddProperty.js +7 -7
  19. package/src/sap/ui/rta/command/AddXML.js +1 -1
  20. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +7 -7
  21. package/src/sap/ui/rta/command/AppDescriptorCommand.js +18 -18
  22. package/src/sap/ui/rta/command/BaseCommand.js +1 -2
  23. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  24. package/src/sap/ui/rta/command/Combine.js +1 -1
  25. package/src/sap/ui/rta/command/CommandFactory.js +11 -11
  26. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantConfigure.js +28 -3
  28. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  29. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +26 -24
  30. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
  31. package/src/sap/ui/rta/command/ControlVariantSwitch.js +11 -11
  32. package/src/sap/ui/rta/command/CreateContainer.js +2 -2
  33. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  34. package/src/sap/ui/rta/command/FlexCommand.js +30 -30
  35. package/src/sap/ui/rta/command/LREPSerializer.js +20 -10
  36. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  37. package/src/sap/ui/rta/command/Move.js +1 -1
  38. package/src/sap/ui/rta/command/Property.js +1 -1
  39. package/src/sap/ui/rta/command/Remove.js +1 -1
  40. package/src/sap/ui/rta/command/Rename.js +1 -1
  41. package/src/sap/ui/rta/command/Resize.js +1 -1
  42. package/src/sap/ui/rta/command/Reveal.js +1 -1
  43. package/src/sap/ui/rta/command/Settings.js +1 -1
  44. package/src/sap/ui/rta/command/Split.js +1 -1
  45. package/src/sap/ui/rta/command/Stack.js +4 -4
  46. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  49. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  50. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  51. package/src/sap/ui/rta/enablement/TestDelegate.js +92 -92
  52. package/src/sap/ui/rta/enablement/elementActionTest.js +230 -112
  53. package/src/sap/ui/rta/library.js +2 -2
  54. package/src/sap/ui/rta/messagebundle.properties +11 -1
  55. package/src/sap/ui/rta/messagebundle_ar.properties +5 -0
  56. package/src/sap/ui/rta/messagebundle_bg.properties +5 -0
  57. package/src/sap/ui/rta/messagebundle_ca.properties +5 -0
  58. package/src/sap/ui/rta/messagebundle_cs.properties +5 -0
  59. package/src/sap/ui/rta/messagebundle_cy.properties +5 -0
  60. package/src/sap/ui/rta/messagebundle_da.properties +5 -0
  61. package/src/sap/ui/rta/messagebundle_de.properties +6 -1
  62. package/src/sap/ui/rta/messagebundle_el.properties +5 -0
  63. package/src/sap/ui/rta/messagebundle_en.properties +5 -0
  64. package/src/sap/ui/rta/messagebundle_en_GB.properties +5 -0
  65. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
  66. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +5 -0
  67. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +6 -1
  68. package/src/sap/ui/rta/messagebundle_es.properties +5 -0
  69. package/src/sap/ui/rta/messagebundle_es_MX.properties +5 -0
  70. package/src/sap/ui/rta/messagebundle_et.properties +5 -0
  71. package/src/sap/ui/rta/messagebundle_fi.properties +5 -0
  72. package/src/sap/ui/rta/messagebundle_fr.properties +5 -0
  73. package/src/sap/ui/rta/messagebundle_fr_CA.properties +5 -0
  74. package/src/sap/ui/rta/messagebundle_hi.properties +5 -0
  75. package/src/sap/ui/rta/messagebundle_hr.properties +5 -0
  76. package/src/sap/ui/rta/messagebundle_hu.properties +5 -0
  77. package/src/sap/ui/rta/messagebundle_id.properties +5 -0
  78. package/src/sap/ui/rta/messagebundle_it.properties +5 -0
  79. package/src/sap/ui/rta/messagebundle_iw.properties +5 -0
  80. package/src/sap/ui/rta/messagebundle_ja.properties +5 -0
  81. package/src/sap/ui/rta/messagebundle_kk.properties +5 -0
  82. package/src/sap/ui/rta/messagebundle_ko.properties +5 -0
  83. package/src/sap/ui/rta/messagebundle_lt.properties +5 -0
  84. package/src/sap/ui/rta/messagebundle_lv.properties +5 -0
  85. package/src/sap/ui/rta/messagebundle_ms.properties +5 -0
  86. package/src/sap/ui/rta/messagebundle_nl.properties +5 -0
  87. package/src/sap/ui/rta/messagebundle_no.properties +5 -0
  88. package/src/sap/ui/rta/messagebundle_pl.properties +5 -0
  89. package/src/sap/ui/rta/messagebundle_pt.properties +5 -0
  90. package/src/sap/ui/rta/messagebundle_pt_PT.properties +5 -0
  91. package/src/sap/ui/rta/messagebundle_ro.properties +5 -0
  92. package/src/sap/ui/rta/messagebundle_ru.properties +5 -0
  93. package/src/sap/ui/rta/messagebundle_sh.properties +5 -0
  94. package/src/sap/ui/rta/messagebundle_sk.properties +5 -0
  95. package/src/sap/ui/rta/messagebundle_sl.properties +5 -0
  96. package/src/sap/ui/rta/messagebundle_sv.properties +5 -0
  97. package/src/sap/ui/rta/messagebundle_th.properties +5 -0
  98. package/src/sap/ui/rta/messagebundle_tr.properties +5 -0
  99. package/src/sap/ui/rta/messagebundle_uk.properties +5 -0
  100. package/src/sap/ui/rta/messagebundle_vi.properties +5 -0
  101. package/src/sap/ui/rta/messagebundle_zh_CN.properties +5 -0
  102. package/src/sap/ui/rta/messagebundle_zh_TW.properties +5 -0
  103. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +44 -44
  104. package/src/sap/ui/rta/plugin/BaseCreate.js +29 -29
  105. package/src/sap/ui/rta/plugin/Combine.js +9 -9
  106. package/src/sap/ui/rta/plugin/ControlVariant.js +21 -21
  107. package/src/sap/ui/rta/plugin/CreateContainer.js +6 -6
  108. package/src/sap/ui/rta/plugin/CutPaste.js +46 -46
  109. package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
  110. package/src/sap/ui/rta/plugin/EasyAdd.js +4 -4
  111. package/src/sap/ui/rta/plugin/EasyRemove.js +5 -5
  112. package/src/sap/ui/rta/plugin/LocalReset.js +25 -25
  113. package/src/sap/ui/rta/plugin/Plugin.js +20 -20
  114. package/src/sap/ui/rta/plugin/RTAElementMover.js +42 -42
  115. package/src/sap/ui/rta/plugin/Remove.js +11 -11
  116. package/src/sap/ui/rta/plugin/Rename.js +7 -7
  117. package/src/sap/ui/rta/plugin/RenameHandler.js +17 -17
  118. package/src/sap/ui/rta/plugin/Resize.js +62 -62
  119. package/src/sap/ui/rta/plugin/Selection.js +14 -14
  120. package/src/sap/ui/rta/plugin/Settings.js +20 -20
  121. package/src/sap/ui/rta/plugin/Split.js +7 -7
  122. package/src/sap/ui/rta/plugin/Stretch.js +4 -4
  123. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +94 -87
  124. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +18 -18
  125. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +98 -99
  126. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +144 -144
  127. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +3 -4
  128. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +67 -67
  129. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +38 -39
  130. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -0
  131. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +29 -29
  132. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +5 -5
  133. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  134. package/src/sap/ui/rta/service/Action.js +36 -37
  135. package/src/sap/ui/rta/service/ControllerExtension.js +4 -4
  136. package/src/sap/ui/rta/service/Outline.js +59 -59
  137. package/src/sap/ui/rta/service/Property.js +125 -125
  138. package/src/sap/ui/rta/service/Receiver.js +78 -77
  139. package/src/sap/ui/rta/service/Selection.js +6 -6
  140. package/src/sap/ui/rta/service/SupportTools.js +188 -37
  141. package/src/sap/ui/rta/service/index.js +1 -1
  142. package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +14 -0
  143. package/src/sap/ui/rta/themes/base/library.source.less +2 -1
  144. package/src/sap/ui/rta/toolbar/Adaptation.js +81 -26
  145. package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Base.js +17 -15
  147. package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -2
  148. package/src/sap/ui/rta/toolbar/Fiori.js +8 -8
  149. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  150. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +4 -4
  151. package/src/sap/ui/rta/toolbar/Personalization.js +2 -2
  152. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  153. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +13 -6
  154. package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +2 -8
  155. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -3
  156. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +0 -2
  157. package/src/sap/ui/rta/toolbar/translation/Translation.js +41 -41
  158. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +9 -9
  159. package/src/sap/ui/rta/util/Animation.js +5 -5
  160. package/src/sap/ui/rta/util/BindingsExtractor.js +33 -33
  161. package/src/sap/ui/rta/util/PluginManager.js +25 -25
  162. package/src/sap/ui/rta/util/PopupManager.js +27 -27
  163. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  164. package/src/sap/ui/rta/util/ServiceEventBus.js +3 -4
  165. package/src/sap/ui/rta/util/StylesLoader.js +9 -9
  166. package/src/sap/ui/rta/util/UrlParser.js +19 -19
  167. package/src/sap/ui/rta/util/adaptationStarter.js +34 -31
  168. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +23 -19
  169. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +61 -61
  170. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +76 -63
  171. package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +6 -6
  172. package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
  173. package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
  174. package/src/sap/ui/rta/util/hasStableId.js +2 -2
  175. package/src/sap/ui/rta/util/showMessageBox.js +4 -5
  176. package/src/sap/ui/rta/util/validateFlexEnabled.js +5 -5
  177. package/src/sap/ui/rta/util/validateStableIds.js +8 -8
  178. package/ui5.yaml +1 -1
@@ -137,7 +137,7 @@ function(
137
137
  }
138
138
  var aAggregationNames = sAggregationName ? [sAggregationName] : Object.keys(oElement.getMetadata().getAllAggregations());
139
139
 
140
- aAggregationNames.forEach(function (sAggregationNameInLoop) {
140
+ aAggregationNames.forEach(function(sAggregationNameInLoop) {
141
141
  aBindings = aBindings.concat(getBindingsForAggregation(oElement, oModel, mPropertyBag.template, sAggregationNameInLoop, oRelevantContainerElement));
142
142
  });
143
143
 
@@ -171,7 +171,7 @@ function(
171
171
  }
172
172
 
173
173
  // Getting children of the current aggregation and iterating through all of them
174
- aElements.forEach(function (oChildElement) {
174
+ aElements.forEach(function(oChildElement) {
175
175
  if (oChildElement.getMetadata) {
176
176
  if (isElementRelatedToRelevantContainer(oElement, oRelevantContainerElement)) {
177
177
  // Fetching bindings from Element and all children of Element
@@ -209,7 +209,7 @@ function(
209
209
  var sModelName = oBinding.getMetadata().getName();
210
210
 
211
211
  if (sModelName === "sap.ui.model.CompositeBinding") {
212
- oBinding.getBindings().forEach(function (oBinding) {
212
+ oBinding.getBindings().forEach(function(oBinding) {
213
213
  aBindings = aBindings.concat(BindingsExtractor.filterAndFlattenBindings(oBinding, oParentDefaultModel));
214
214
  });
215
215
  } else if (
@@ -244,7 +244,7 @@ function(
244
244
  var aParts = mBinding.parts;
245
245
 
246
246
  // TODO: check if we need to filter bindings by modelName, relative indicator ("/")
247
- aParts.forEach(function (mPart) {
247
+ aParts.forEach(function(mPart) {
248
248
  aBindings.push({
249
249
  parts: [mPart]
250
250
  });
@@ -267,16 +267,16 @@ function(
267
267
  var aPropertiesKeys = Object.keys(oElement.getMetadata().getAllProperties());
268
268
 
269
269
  return aPropertiesKeys
270
- // filter properties which are not bound
271
- .filter(oElement.getBinding.bind(oElement))
272
- .reduce(function (aBindings, sPropertyName) {
273
- return aBindings.concat(
274
- BindingsExtractor.filterAndFlattenBindings(
275
- oElement.getBinding(sPropertyName),
276
- oModel
277
- )
278
- );
279
- }, []);
270
+ // filter properties which are not bound
271
+ .filter(oElement.getBinding.bind(oElement))
272
+ .reduce(function(aBindings, sPropertyName) {
273
+ return aBindings.concat(
274
+ BindingsExtractor.filterAndFlattenBindings(
275
+ oElement.getBinding(sPropertyName),
276
+ oModel
277
+ )
278
+ );
279
+ }, []);
280
280
  };
281
281
 
282
282
  /**
@@ -294,26 +294,26 @@ function(
294
294
  var bIsSameModel;
295
295
 
296
296
  return aPropertiesKeys
297
- .filter(function (sPropertyName) {
298
- var mBindingInfo = oTemplate.mBindingInfos[sPropertyName];
299
- var sModelName = mBindingInfo && mBindingInfo.parts[0] && mBindingInfo.parts[0].model;
297
+ .filter(function(sPropertyName) {
298
+ var mBindingInfo = oTemplate.mBindingInfos[sPropertyName];
299
+ var sModelName = mBindingInfo && mBindingInfo.parts[0] && mBindingInfo.parts[0].model;
300
+ bIsSameModel = oModel === oTemplateParent.getModel(sModelName);
301
+ if (!sModelName) {
302
+ var oParentDefaultModel = oTemplateParent.getDefaultModel ? oTemplateParent.getDefaultModel() : null;
303
+ var oTemplateDefaultModel = oTemplate.getDefaultModel ? oTemplate.getDefaultModel() : null;
304
+ bIsSameModel = oParentDefaultModel === oTemplateDefaultModel;
305
+ } else {
300
306
  bIsSameModel = oModel === oTemplateParent.getModel(sModelName);
301
- if (!sModelName) {
302
- var oParentDefaultModel = oTemplateParent.getDefaultModel ? oTemplateParent.getDefaultModel() : null;
303
- var oTemplateDefaultModel = oTemplate.getDefaultModel ? oTemplate.getDefaultModel() : null;
304
- bIsSameModel = oParentDefaultModel === oTemplateDefaultModel;
305
- } else {
306
- bIsSameModel = oModel === oTemplateParent.getModel(sModelName);
307
- }
308
- return mBindingInfo && bIsSameModel;
309
- })
310
- .reduce(function (aBindings, sPropertyName) {
311
- return aBindings.concat(
312
- flattenBindingsFromTemplate(
313
- oTemplate.mBindingInfos[sPropertyName]
314
- )
315
- );
316
- }, []);
307
+ }
308
+ return mBindingInfo && bIsSameModel;
309
+ })
310
+ .reduce(function(aBindings, sPropertyName) {
311
+ return aBindings.concat(
312
+ flattenBindingsFromTemplate(
313
+ oTemplate.mBindingInfos[sPropertyName]
314
+ )
315
+ );
316
+ }, []);
317
317
  }
318
318
 
319
319
  /**
@@ -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.115.1
71
+ * @version 1.117.0
72
72
  * @constructor
73
73
  * @private
74
74
  * @since 1.86
@@ -130,7 +130,7 @@ sap.ui.define([
130
130
 
131
131
  this._mDefaultPlugins = {};
132
132
 
133
- this._mDefaultPlugins["selection"] = new SelectionPlugin({
133
+ this._mDefaultPlugins.selection = new SelectionPlugin({
134
134
  commandFactory: this._oCommandFactory,
135
135
  multiSelectionRequiredPlugins: [
136
136
  CombinePlugin.getMetadata().getName(),
@@ -143,79 +143,79 @@ sap.ui.define([
143
143
  commandFactory: this._oCommandFactory
144
144
  });
145
145
 
146
- this._mDefaultPlugins["dragDrop"] = new RTADragDropPlugin({
146
+ this._mDefaultPlugins.dragDrop = new RTADragDropPlugin({
147
147
  elementMover: this._oRTAElementMover,
148
148
  commandFactory: this._oCommandFactory,
149
149
  dragStarted: this.handleStopCutPaste.bind(this)
150
150
  });
151
151
 
152
- this._mDefaultPlugins["rename"] = new RTARenamePlugin({
152
+ this._mDefaultPlugins.rename = new RTARenamePlugin({
153
153
  commandFactory: this._oCommandFactory,
154
154
  editable: this.handleStopCutPaste.bind(this)
155
155
  });
156
156
 
157
- this._mDefaultPlugins["additionalElements"] = new AdditionalElementsPlugin({
157
+ this._mDefaultPlugins.additionalElements = new AdditionalElementsPlugin({
158
158
  commandFactory: this._oCommandFactory
159
159
  });
160
160
 
161
- this._mDefaultPlugins["createContainer"] = new CreateContainerPlugin({
161
+ this._mDefaultPlugins.createContainer = new CreateContainerPlugin({
162
162
  commandFactory: this._oCommandFactory
163
163
  });
164
164
 
165
- this._mDefaultPlugins["remove"] = new RemovePlugin({
165
+ this._mDefaultPlugins.remove = new RemovePlugin({
166
166
  commandFactory: this._oCommandFactory
167
167
  });
168
168
 
169
- this._mDefaultPlugins["cutPaste"] = new CutPastePlugin({
169
+ this._mDefaultPlugins.cutPaste = new CutPastePlugin({
170
170
  elementMover: this._oRTAElementMover,
171
171
  commandFactory: this._oCommandFactory
172
172
  });
173
173
 
174
- this._mDefaultPlugins["settings"] = new SettingsPlugin({
174
+ this._mDefaultPlugins.settings = new SettingsPlugin({
175
175
  commandFactory: this._oCommandFactory
176
176
  });
177
177
 
178
- this._mDefaultPlugins["combine"] = new CombinePlugin({
178
+ this._mDefaultPlugins.combine = new CombinePlugin({
179
179
  commandFactory: this._oCommandFactory
180
180
  });
181
181
 
182
- this._mDefaultPlugins["split"] = new SplitPlugin({
182
+ this._mDefaultPlugins.split = new SplitPlugin({
183
183
  commandFactory: this._oCommandFactory
184
184
  });
185
185
 
186
- this._mDefaultPlugins["resize"] = new ResizePlugin({
186
+ this._mDefaultPlugins.resize = new ResizePlugin({
187
187
  commandFactory: this._oCommandFactory
188
188
  });
189
189
 
190
- this._mDefaultPlugins["contextMenu"] = new ContextMenuPlugin();
190
+ this._mDefaultPlugins.contextMenu = new ContextMenuPlugin();
191
191
 
192
- this._mDefaultPlugins["tabHandling"] = new TabHandlingPlugin();
192
+ this._mDefaultPlugins.tabHandling = new TabHandlingPlugin();
193
193
 
194
- this._mDefaultPlugins["stretch"] = new StretchPlugin();
194
+ this._mDefaultPlugins.stretch = new StretchPlugin();
195
195
 
196
196
  var oSettings = Settings.getInstanceOrUndef();
197
197
  if (oSettings && oSettings.isVariantAdaptationEnabled()) {
198
- this._mDefaultPlugins["compVariant"] = new CompVariantPlugin({
198
+ this._mDefaultPlugins.compVariant = new CompVariantPlugin({
199
199
  commandFactory: this._oCommandFactory
200
200
  });
201
201
  }
202
202
 
203
- this._mDefaultPlugins["controlVariant"] = new ControlVariantPlugin({
203
+ this._mDefaultPlugins.controlVariant = new ControlVariantPlugin({
204
204
  commandFactory: this._oCommandFactory
205
205
  });
206
206
 
207
- this._mDefaultPlugins["addIFrame"] = new AddIFramePlugin({
207
+ this._mDefaultPlugins.addIFrame = new AddIFramePlugin({
208
208
  commandFactory: this._oCommandFactory
209
209
  });
210
210
 
211
- this._mDefaultPlugins["toolHooks"] = new ToolHooksPlugin();
211
+ this._mDefaultPlugins.toolHooks = new ToolHooksPlugin();
212
212
 
213
213
  if (
214
214
  oFlexSettings.layer === Layer.CUSTOMER
215
215
  && oSettings
216
216
  && oSettings.isLocalResetEnabled()
217
217
  ) {
218
- this._mDefaultPlugins["localReset"] = new LocalResetPlugin({
218
+ this._mDefaultPlugins.localReset = new LocalResetPlugin({
219
219
  commandFactory: this._oCommandFactory
220
220
  });
221
221
  }
@@ -231,7 +231,7 @@ sap.ui.define([
231
231
  * @param {function} fnHandleElementModified - Handler function for element modified events
232
232
  * @param {sap.ui.rta.command.Stack} oCommandStack - Command stack required in plugins
233
233
  */
234
- PluginManager.prototype.preparePlugins = function (oFlexSettings, fnHandleElementModified, oCommandStack) {
234
+ PluginManager.prototype.preparePlugins = function(oFlexSettings, fnHandleElementModified, oCommandStack) {
235
235
  // Take default plugins if no plugins handed over
236
236
  if (isEmptyObject(this.getPlugins())) {
237
237
  this.setPlugins(this.getDefaultPlugins(oFlexSettings));
@@ -253,7 +253,7 @@ sap.ui.define([
253
253
  * Returns a list of registered plugins
254
254
  * @returns {array} list of plugins
255
255
  */
256
- PluginManager.prototype.getPluginList = function () {
256
+ PluginManager.prototype.getPluginList = function() {
257
257
  return values(this.getPlugins());
258
258
  };
259
259
 
@@ -262,7 +262,7 @@ sap.ui.define([
262
262
  * @param {string} sPluginName - Plugin name
263
263
  * @returns {sap.ui.rta.plugin.Plugin} plugin
264
264
  */
265
- PluginManager.prototype.getPlugin = function (sPluginName) {
265
+ PluginManager.prototype.getPlugin = function(sPluginName) {
266
266
  return this.getPlugins()[sPluginName];
267
267
  };
268
268
 
@@ -271,7 +271,7 @@ sap.ui.define([
271
271
  * @param {string} sPluginName - Plugin name
272
272
  * @param {sap.ui.rta.command.Stack} oCommandStack - Command stack required in plugins
273
273
  */
274
- PluginManager.prototype.provideCommandStack = function (sPluginName, oCommandStack) {
274
+ PluginManager.prototype.provideCommandStack = function(sPluginName, oCommandStack) {
275
275
  if (this.getPlugin(sPluginName)) {
276
276
  this.getPlugin(sPluginName).setCommandStack(oCommandStack);
277
277
  }
@@ -301,7 +301,7 @@ sap.ui.define([
301
301
  }
302
302
  };
303
303
 
304
- PluginManager.prototype._destroyDefaultPlugins = function (mPluginsToKeep) {
304
+ PluginManager.prototype._destroyDefaultPlugins = function(mPluginsToKeep) {
305
305
  for (var sDefaultPluginName in this._mDefaultPlugins) {
306
306
  var oDefaultPlugin = this._mDefaultPlugins[sDefaultPluginName];
307
307
 
@@ -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.115.1
45
+ * @version 1.117.0
46
46
  * @constructor
47
47
  * @private
48
48
  * @since 1.48
@@ -100,17 +100,17 @@ sap.ui.define([
100
100
  * @private
101
101
  */
102
102
  PopupManager.prototype._overrideInstanceFunctions = function() {
103
- //check open popups and create overlays while starting RTA
103
+ // check open popups and create overlays while starting RTA
104
104
  this._applyPopupAttributes({
105
105
  method: this._createPopupOverlays,
106
106
  setModal: true,
107
107
  bringToTop: true
108
108
  });
109
109
 
110
- //override InstanceManager.AddDialogInstance() and InstanceManager.AddPopoverInstance()
110
+ // override InstanceManager.AddDialogInstance() and InstanceManager.AddPopoverInstance()
111
111
  this._overrideAddPopupInstance();
112
112
 
113
- //override InstanceManager.RemoveDialogInstance() and InstanceManager.RemovePopoverInstance()
113
+ // override InstanceManager.RemoveDialogInstance() and InstanceManager.RemovePopoverInstance()
114
114
  this._overrideRemovePopupInstance();
115
115
  };
116
116
 
@@ -176,7 +176,7 @@ sap.ui.define([
176
176
  * @private
177
177
  */
178
178
  PopupManager.prototype._isComponentInsidePopup = function(oPopup) {
179
- //check if root RTA component is directly inside a popupElement
179
+ // check if root RTA component is directly inside a popupElement
180
180
  return Array.isArray(oPopup.getContent())
181
181
  ? oPopup.getContent().some(
182
182
  function(oContent) {
@@ -209,7 +209,7 @@ sap.ui.define([
209
209
  this.setProperty("rta", oRta);
210
210
  var oRootControl = oRta.getRootControlInstance();
211
211
  this.oRtaRootAppComponent = this._getAppComponentForControl(oRootControl);
212
- //listener for RTA mode change
212
+ // listener for RTA mode change
213
213
  var fnModeChange = this._onModeChange.bind(this);
214
214
  oRta.attachModeChanged(fnModeChange);
215
215
  this._overrideInstanceFunctions();
@@ -237,7 +237,7 @@ sap.ui.define([
237
237
  PopupManager.prototype._onModeChange = function(oEvent) {
238
238
  var sNewMode = oEvent.getParameters().mode;
239
239
  var fnApplyFocusAndSetModal = function(sMode, oPopover) {
240
- if (sMode === 'navigation') {
240
+ if (sMode === "navigation") {
241
241
  // add focus handlers
242
242
  oPopover.oPopup[this._getFocusEventName("add")]();
243
243
  } else {
@@ -250,7 +250,7 @@ sap.ui.define([
250
250
  }
251
251
  };
252
252
 
253
- sNewMode === 'navigation'
253
+ sNewMode === "navigation"
254
254
  ? this._applyPatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode))
255
255
  : this._removePatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode));
256
256
  };
@@ -297,11 +297,11 @@ sap.ui.define([
297
297
  * @private
298
298
  */
299
299
  PopupManager.prototype._overrideAddPopupInstance = function() {
300
- //Dialog
300
+ // Dialog
301
301
  this._fnOriginalAddDialogInstance = InstanceManager.addDialogInstance;
302
302
  InstanceManager.addDialogInstance = this._overrideAddFunctions(this._fnOriginalAddDialogInstance);
303
303
 
304
- //Popover
304
+ // Popover
305
305
  this._fnOriginalAddPopoverInstance = InstanceManager.addPopoverInstance;
306
306
  InstanceManager.addPopoverInstance = this._overrideAddFunctions(this._fnOriginalAddPopoverInstance);
307
307
  };
@@ -320,7 +320,7 @@ sap.ui.define([
320
320
  if (this._isPopupAdaptable(oPopupElement)
321
321
  && this.getRta()._oDesignTime) {
322
322
  oPopupElement.attachEventOnce("afterOpen", this._createPopupOverlays, this);
323
- //PopupManager internal method
323
+ // PopupManager internal method
324
324
  oPopupElement.attachEventOnce("afterOpen", this.fireOpen, this);
325
325
  this._setModal(true, oPopupElement);
326
326
  } else if (!(oPopupElement instanceof Popover)) {
@@ -342,7 +342,7 @@ sap.ui.define([
342
342
  */
343
343
  PopupManager.prototype._setModal = function(bSetModal, oPopupElement) {
344
344
  var bOriginalModalState = this._oModalState.get(oPopupElement.oPopup);
345
- if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() !== 'navigation') {
345
+ if (typeof bOriginalModalState !== "boolean" && bSetModal && this.getRta().getMode() !== "navigation") {
346
346
  this._oModalState.set(oPopupElement.oPopup, oPopupElement.oPopup.getModal());
347
347
  if (this._isPopupAdaptable(oPopupElement)) {
348
348
  this._adjustRootOverlayVisibility(false, oPopupElement);
@@ -358,12 +358,12 @@ sap.ui.define([
358
358
  };
359
359
 
360
360
  PopupManager.prototype._applyPopupAttributes = function(mPropertyBag) {
361
- //check if popups are open
361
+ // check if popups are open
362
362
  var oRelevantPopups = this.getCategorizedOpenPopups();
363
363
 
364
364
  ["aDialogs", "aPopovers"].forEach(function(sKey) {
365
365
  if (oRelevantPopups[sKey].length > 0) {
366
- //set focus
366
+ // set focus
367
367
  if (mPropertyBag.focus) {
368
368
  if (oRelevantPopups[sKey][0].oPopup.oContent) {
369
369
  oRelevantPopups[sKey][0].oPopup.oContent.focus();
@@ -371,13 +371,13 @@ sap.ui.define([
371
371
  }
372
372
 
373
373
  oRelevantPopups[sKey].forEach(function(oPopupElement) {
374
- //call passed method for all relevant popups
374
+ // call passed method for all relevant popups
375
375
  mPropertyBag.method.call(this, oPopupElement);
376
376
  }.bind(this));
377
377
  }
378
378
  }.bind(this));
379
379
 
380
- //set modal for all popups
380
+ // set modal for all popups
381
381
  oRelevantPopups.aAllSupportedPopups.forEach(this._setModal.bind(this, mPropertyBag.setModal));
382
382
  };
383
383
 
@@ -409,10 +409,10 @@ sap.ui.define([
409
409
  aAutoCloseAreas.push(oRtaToolbar.getDomRef());
410
410
  }
411
411
  }
412
- //If clicked from toolbar or popup - autoClose is disabled
412
+ // If clicked from toolbar or popup - autoClose is disabled
413
413
  oPopup.setExtraContent(aAutoCloseAreas);
414
414
 
415
- //cases when onAfterRendering is called after this function - app inside popup
415
+ // cases when onAfterRendering is called after this function - app inside popup
416
416
  if (!this.fnOriginalPopupOnAfterRendering) {
417
417
  this.fnOriginalPopupOnAfterRendering = oPopup.onAfterRendering;
418
418
  }
@@ -422,8 +422,8 @@ sap.ui.define([
422
422
  return vOriginalReturn;
423
423
  }.bind(this);
424
424
 
425
- //only remove focus event when in adaptation mode
426
- if (this.getRta().getMode() === 'adaptation') {
425
+ // only remove focus event when in adaptation mode
426
+ if (this.getRta().getMode() === "adaptation") {
427
427
  oPopup[this._getFocusEventName("remove")]();
428
428
  }
429
429
  };
@@ -434,11 +434,11 @@ sap.ui.define([
434
434
  * @private
435
435
  */
436
436
  PopupManager.prototype._overrideRemovePopupInstance = function() {
437
- //Dialog
437
+ // Dialog
438
438
  this._fnOriginalRemoveDialogInstance = InstanceManager.removeDialogInstance;
439
439
  InstanceManager.removeDialogInstance = this._overrideRemoveFunctions(this._fnOriginalRemoveDialogInstance);
440
440
 
441
- //Popover
441
+ // Popover
442
442
  this._fnOriginalRemovePopoverInstance = InstanceManager.removePopoverInstance;
443
443
  InstanceManager.removePopoverInstance = this._overrideRemoveFunctions(this._fnOriginalRemovePopoverInstance);
444
444
  };
@@ -460,7 +460,7 @@ sap.ui.define([
460
460
  }
461
461
  // remove the Modal state from the map
462
462
  this._oModalState.delete(oPopupElement.oPopup);
463
- //PopupManager internal method
463
+ // PopupManager internal method
464
464
  this.fireClose(oPopupElement);
465
465
  }
466
466
  return vOriginalReturn;
@@ -533,7 +533,7 @@ sap.ui.define([
533
533
  }
534
534
  var oPopupElement = (oEvent instanceof Element) ? oEvent : oEvent.getSource();
535
535
 
536
- //when application is opened in a popup, rootElement should not be added more than once
536
+ // when application is opened in a popup, rootElement should not be added more than once
537
537
  if (
538
538
  this.getRta()._oDesignTime.getRootElements().indexOf(oPopupElement.getId()) === -1
539
539
  && !this._isComponentInsidePopup(oPopupElement)
@@ -541,7 +541,7 @@ sap.ui.define([
541
541
  this.getRta()._oDesignTime.addRootElement(oPopupElement);
542
542
  }
543
543
 
544
- //detach for persistent popups with same id
544
+ // detach for persistent popups with same id
545
545
  oPopupElement.detachAfterOpen(this._createPopupOverlays, this);
546
546
 
547
547
  this._applyPopupPatch(oPopupElement);
@@ -553,7 +553,7 @@ sap.ui.define([
553
553
  * @private
554
554
  */
555
555
  PopupManager.prototype._restoreInstanceFunctions = function() {
556
- //Dialog
556
+ // Dialog
557
557
  if (this._fnOriginalAddDialogInstance) {
558
558
  InstanceManager.addDialogInstance = this._fnOriginalAddDialogInstance;
559
559
  }
@@ -561,7 +561,7 @@ sap.ui.define([
561
561
  InstanceManager.removeDialogInstance = this._fnOriginalRemoveDialogInstance;
562
562
  }
563
563
 
564
- //Popover
564
+ // Popover
565
565
  if (this._fnOriginalAddPopoverInstance) {
566
566
  InstanceManager.addPopoverInstance = this._fnOriginalAddPopoverInstance;
567
567
  }
@@ -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.115.1
33
+ * @version 1.117.0
34
34
  * @private
35
35
  * @ui5-restricted
36
36
  */
@@ -19,19 +19,18 @@ function(
19
19
  *
20
20
  * @extends sap.ui.core.EventBus
21
21
  * @author SAP SE
22
- * @version 1.115.1
22
+ * @version 1.117.0
23
23
  * @private
24
24
  * @since 1.56.0
25
25
  * @alias sap.ui.rta.util.ServiceEventBus
26
26
  */
27
27
  var ServiceEventBus = EventBus.extend("sap.ui.rta.util.ServiceEventBus");
28
28
 
29
-
30
- ServiceEventBus.prototype._callListener = function (fnCallback, oListener, sChannelId, sEventId, vData) {
29
+ ServiceEventBus.prototype._callListener = function(fnCallback, oListener, sChannelId, sEventId, vData) {
31
30
  fnCallback.call(oListener, vData);
32
31
  };
33
32
 
34
- ServiceEventBus.prototype.getChannel = function (sChannelId) {
33
+ ServiceEventBus.prototype.getChannel = function(sChannelId) {
35
34
  return this._mChannels[sChannelId];
36
35
  };
37
36
 
@@ -16,15 +16,15 @@ sap.ui.define([
16
16
  * @param {string} sFileName - Name of the file
17
17
  * @return {jqXHR} - returns jqXHR object which can be thenable
18
18
  */
19
- module.loadStyles = function (sFileName) {
20
- return jQuery.get(sap.ui.require.toUrl(('sap.ui.rta.assets.' + sFileName).replace(/\./g, "/")) + '.css')
21
- .then(function (sData) {
22
- // TODO: check if it's possible to use UI5 standard mechanism for styles adjustments
23
- if (Configuration.getRTL()) {
24
- return sData.replace(/right/g, 'left');
25
- }
26
- return sData;
27
- });
19
+ module.loadStyles = function(sFileName) {
20
+ return jQuery.get(sap.ui.require.toUrl(("sap.ui.rta.assets." + sFileName).replace(/\./g, "/")) + ".css")
21
+ .then(function(sData) {
22
+ // TODO: check if it's possible to use UI5 standard mechanism for styles adjustments
23
+ if (Configuration.getRTL()) {
24
+ return sData.replace(/right/g, "left");
25
+ }
26
+ return sData;
27
+ });
28
28
  };
29
29
 
30
30
  return module;
@@ -14,7 +14,7 @@ sap.ui.define([], function() {
14
14
  * @param {string} sParamName - Parameter name
15
15
  * @return {string|undefined} - Returns value of the specified param or undefined if not found
16
16
  */
17
- module.getParam = function (sParamName) {
17
+ module.getParam = function(sParamName) {
18
18
  return module.getParams()[sParamName];
19
19
  };
20
20
 
@@ -23,28 +23,28 @@ sap.ui.define([], function() {
23
23
  * @param {string} [sUrl] - Url parameter string notation starting with ? and following key value pair
24
24
  * @returns {object} Object with key value pairs of given parameters
25
25
  */
26
- module.getParams = function (sUrl) {
26
+ module.getParams = function(sUrl) {
27
27
  sUrl = (sUrl || sUrl === "") ? sUrl : document.location.search;
28
28
  return sUrl
29
- .replace(/^\?/, "")
30
- .split("&")
31
- .reduce(function (mParams, sParam) {
32
- var aParts = sParam.split("="); //split on key/value
33
- var sValue = aParts[1];
29
+ .replace(/^\?/, "")
30
+ .split("&")
31
+ .reduce(function(mParams, sParam) {
32
+ var aParts = sParam.split("="); // split on key/value
33
+ var sValue = aParts[1];
34
34
 
35
- switch (sValue) {
36
- case "true":
37
- sValue = true;
38
- break;
39
- case "false":
40
- sValue = false;
41
- break;
42
- default: break;
43
- }
35
+ switch (sValue) {
36
+ case "true":
37
+ sValue = true;
38
+ break;
39
+ case "false":
40
+ sValue = false;
41
+ break;
42
+ default: break;
43
+ }
44
44
 
45
- mParams[aParts[0]] = sValue;
46
- return mParams;
47
- }, {});
45
+ mParams[aParts[0]] = sValue;
46
+ return mParams;
47
+ }, {});
48
48
  };
49
49
 
50
50
  return module;