@openui5/sap.ui.rta 1.94.0 → 1.97.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 (164) hide show
  1. package/.reuse/dep5 +12 -12
  2. package/THIRDPARTY.txt +21 -17
  3. package/package.json +6 -6
  4. package/src/sap/ui/rta/.library +1 -1
  5. package/src/sap/ui/rta/Client.js +1 -1
  6. package/src/sap/ui/rta/RuntimeAuthoring.js +108 -73
  7. package/src/sap/ui/rta/Utils.js +73 -1
  8. package/src/sap/ui/rta/api/startAdaptation.js +1 -2
  9. package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
  10. package/src/sap/ui/rta/appVariant/AppVariantDialog.js +8 -5
  11. package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -22
  12. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +108 -85
  13. package/src/sap/ui/rta/appVariant/Feature.js +5 -12
  14. package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -1
  15. package/src/sap/ui/rta/appVariant/Utils.js +10 -2
  16. package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +35 -20
  17. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  18. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  19. package/src/sap/ui/rta/command/AddXML.js +1 -1
  20. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  21. package/src/sap/ui/rta/command/AppDescriptorCommand.js +4 -3
  22. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  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 +1 -1
  26. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantConfigure.js +4 -4
  28. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  29. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +7 -4
  30. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
  31. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -6
  32. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  33. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  34. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  35. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  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/Reveal.js +1 -1
  42. package/src/sap/ui/rta/command/Settings.js +1 -1
  43. package/src/sap/ui/rta/command/Split.js +1 -1
  44. package/src/sap/ui/rta/command/Stack.js +1 -1
  45. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  47. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  48. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  49. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
  50. package/src/sap/ui/rta/library.js +2 -2
  51. package/src/sap/ui/rta/messagebundle.properties +14 -12
  52. package/src/sap/ui/rta/messagebundle_ar.properties +11 -10
  53. package/src/sap/ui/rta/messagebundle_bg.properties +11 -10
  54. package/src/sap/ui/rta/messagebundle_ca.properties +10 -9
  55. package/src/sap/ui/rta/messagebundle_cs.properties +11 -10
  56. package/src/sap/ui/rta/messagebundle_cy.properties +11 -10
  57. package/src/sap/ui/rta/messagebundle_da.properties +11 -10
  58. package/src/sap/ui/rta/messagebundle_de.properties +14 -13
  59. package/src/sap/ui/rta/messagebundle_el.properties +11 -10
  60. package/src/sap/ui/rta/messagebundle_en.properties +11 -10
  61. package/src/sap/ui/rta/messagebundle_en_GB.properties +11 -10
  62. package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +11 -10
  63. package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +11 -10
  64. package/src/sap/ui/rta/messagebundle_es.properties +11 -10
  65. package/src/sap/ui/rta/messagebundle_es_MX.properties +11 -10
  66. package/src/sap/ui/rta/messagebundle_et.properties +11 -10
  67. package/src/sap/ui/rta/messagebundle_fi.properties +10 -9
  68. package/src/sap/ui/rta/messagebundle_fr.properties +11 -10
  69. package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -10
  70. package/src/sap/ui/rta/messagebundle_hi.properties +11 -10
  71. package/src/sap/ui/rta/messagebundle_hr.properties +11 -10
  72. package/src/sap/ui/rta/messagebundle_hu.properties +10 -9
  73. package/src/sap/ui/rta/messagebundle_id.properties +11 -10
  74. package/src/sap/ui/rta/messagebundle_it.properties +11 -10
  75. package/src/sap/ui/rta/messagebundle_iw.properties +11 -10
  76. package/src/sap/ui/rta/messagebundle_ja.properties +11 -10
  77. package/src/sap/ui/rta/messagebundle_kk.properties +11 -10
  78. package/src/sap/ui/rta/messagebundle_ko.properties +11 -10
  79. package/src/sap/ui/rta/messagebundle_lt.properties +11 -10
  80. package/src/sap/ui/rta/messagebundle_lv.properties +11 -10
  81. package/src/sap/ui/rta/messagebundle_ms.properties +11 -10
  82. package/src/sap/ui/rta/messagebundle_nl.properties +11 -10
  83. package/src/sap/ui/rta/messagebundle_no.properties +11 -10
  84. package/src/sap/ui/rta/messagebundle_pl.properties +11 -10
  85. package/src/sap/ui/rta/messagebundle_pt.properties +10 -9
  86. package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -9
  87. package/src/sap/ui/rta/messagebundle_ro.properties +11 -10
  88. package/src/sap/ui/rta/messagebundle_ru.properties +10 -9
  89. package/src/sap/ui/rta/messagebundle_sh.properties +11 -10
  90. package/src/sap/ui/rta/messagebundle_sk.properties +11 -10
  91. package/src/sap/ui/rta/messagebundle_sl.properties +11 -10
  92. package/src/sap/ui/rta/messagebundle_sv.properties +11 -10
  93. package/src/sap/ui/rta/messagebundle_th.properties +16 -15
  94. package/src/sap/ui/rta/messagebundle_tr.properties +11 -10
  95. package/src/sap/ui/rta/messagebundle_uk.properties +12 -11
  96. package/src/sap/ui/rta/messagebundle_vi.properties +11 -10
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -10
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +11 -10
  99. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
  100. package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
  101. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  102. package/src/sap/ui/rta/plugin/CompVariant.js +1 -2
  103. package/src/sap/ui/rta/plugin/ControlVariant.js +10 -5
  104. package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
  105. package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
  106. package/src/sap/ui/rta/plugin/DragDrop.js +52 -2
  107. package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
  108. package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
  109. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  110. package/src/sap/ui/rta/plugin/Plugin.js +1 -1
  111. package/src/sap/ui/rta/plugin/RTAElementMover.js +14 -62
  112. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  113. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  114. package/src/sap/ui/rta/plugin/RenameHandler.js +4 -14
  115. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  116. package/src/sap/ui/rta/plugin/Settings.js +15 -14
  117. package/src/sap/ui/rta/plugin/Split.js +2 -1
  118. package/src/sap/ui/rta/plugin/Stretch.js +133 -138
  119. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +6 -6
  120. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +74 -0
  121. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +97 -260
  122. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
  123. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +31 -18
  124. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  125. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  126. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +8 -5
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +31 -29
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -16
  129. package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
  130. package/src/sap/ui/rta/service/Action.js +1 -1
  131. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  132. package/src/sap/ui/rta/service/Outline.js +164 -67
  133. package/src/sap/ui/rta/service/Property.js +1 -3
  134. package/src/sap/ui/rta/service/Selection.js +2 -1
  135. package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -30
  136. package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +55 -0
  137. package/src/sap/ui/rta/themes/base/Toolbar.base.less +12 -1
  138. package/src/sap/ui/rta/themes/base/library.source.less +3 -1
  139. package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +26 -14
  140. package/src/sap/ui/rta/toolbar/Adaptation.js +3 -3
  141. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  142. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  143. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  144. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +3 -3
  145. package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
  146. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  147. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  148. package/src/sap/ui/rta/util/BindingsExtractor.js +13 -7
  149. package/src/sap/ui/rta/util/PluginManager.js +2 -4
  150. package/src/sap/ui/rta/util/PopupManager.js +3 -11
  151. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  152. package/src/sap/ui/rta/util/adaptationStarter.js +4 -4
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +16 -78
  154. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +15 -37
  155. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
  156. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +85 -107
  157. package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +30 -0
  158. package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +3 -2
  159. package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +30 -0
  160. package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +9 -3
  161. package/src/sap/ui/rta/util/validateFlexEnabled.js +4 -4
  162. package/ui5.yaml +4 -1
  163. package/src/sap/ui/rta/assets/InPageStyles.css +0 -34
  164. package/src/sap/ui/rta/util/changeVisualization/ChangesListPopover.fragment.xml +0 -23
package/.reuse/dep5 CHANGED
@@ -309,7 +309,7 @@ License: MIT
309
309
  Comment: these files belong to: lodash
310
310
 
311
311
  Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
312
- Copyright: 2018 Mathias Nater
312
+ Copyright: 2021 Mathias Nater
313
313
  License: MIT
314
314
  Comment: these files belong to: Hyphenopoly
315
315
 
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
347
347
  License: BSD-2-Clause
348
348
  Comment: these files belong to: Esprima
349
349
 
350
- Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
351
- Copyright: 2006 Google Inc.
352
- License: Apache-2.0
353
- Comment: these files belong to: google-code-prettify
354
-
355
350
  Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
356
351
  Copyright: 2006-2020, Ivan Sagalaev
357
352
  License: BSD-3-Clause
@@ -405,6 +400,11 @@ Copyright: 2014 Vitaly Puzrin, Alex Kocharin
405
400
  License: MIT
406
401
  Comment: these files belong to: Markdown-it
407
402
 
403
+ Files: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
404
+ Copyright: 2015-2017 Evgeny Poberezkin
405
+ License: MIT
406
+ Comment: these files belong to: ajv
407
+
408
408
 
409
409
  # Library: sap.ui.mdc:
410
410
 
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
418
418
 
419
419
  # Library: sap.ui.webc.common:
420
420
 
421
- Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
421
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
422
422
  Copyright: SAP
423
423
  License: Apache-2.0
424
424
  Comment: these files belong to: UI5 Web Components
@@ -452,11 +452,6 @@ Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
452
452
  License: Apache-2.0
453
453
  Comment: these files belong to: LESS
454
454
 
455
- Files: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
456
- Copyright: 2015-2017 Evgeny Poberezkin
457
- License: MIT
458
- Comment: these files belong to: ajv
459
-
460
455
  Files: lib/jsdoc/ui5/plugin.js
461
456
  Copyright:
462
457
  2009-2021 SAP SE or an SAP affiliate company and OpenUI5 contributors
@@ -464,3 +459,8 @@ Copyright:
464
459
  License: Apache-2.0
465
460
  Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
466
461
 
462
+ Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
463
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
464
+ License: Apache-2.0
465
+ Comment: these files belong to: SAP Theming Base Content
466
+
package/THIRDPARTY.txt CHANGED
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
6
6
 
7
7
  Library: sap.ui.codeeditor:
8
8
 
9
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.4
9
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.13
10
10
  Copyright: 2010, Ajax.org B.V.
11
11
  License: BSD-3-Clause
12
12
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -197,7 +197,7 @@ License: BSD-3-Clause
197
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
199
 
200
- Component: URI.js, version: 1.19.6
200
+ Component: URI.js, version: 1.19.7
201
201
  Copyright: Rodney Rehm
202
202
  License: MIT
203
203
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -279,8 +279,8 @@ License: MIT
279
279
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
280
280
  Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
281
281
 
282
- Component: Hyphenopoly, version: 2.4.0
283
- Copyright: 2018 Mathias Nater
282
+ Component: Hyphenopoly, version: 3.4.0
283
+ Copyright: 2021 Mathias Nater
284
284
  License: MIT
285
285
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
286
286
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
@@ -324,12 +324,6 @@ License: BSD-2-Clause
324
324
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
325
325
  Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
326
326
 
327
- Component: google-code-prettify, version: 20130304
328
- Copyright: 2006 Google Inc.
329
- License: Apache-2.0
330
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
331
- Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
332
-
333
327
  Component: highlight.js, version: 10.4.1
334
328
  Copyright: 2006-2020, Ivan Sagalaev
335
329
  License: BSD-3-Clause
@@ -395,6 +389,12 @@ License: MIT
395
389
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
390
  Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/markdown-it.js
397
391
 
392
+ Component: ajv, version: 6.12.3
393
+ Copyright: 2015-2017 Evgeny Poberezkin
394
+ License: MIT
395
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
396
+ Contained in: src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
397
+
398
398
 
399
399
  Library: sap.ui.mdc:
400
400
 
@@ -412,10 +412,11 @@ Copyright: SAP
412
412
  License: Apache-2.0
413
413
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
414
  Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
- src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
415
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
416
416
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
417
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
418
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
419
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
419
420
 
420
421
  Component: lit-html, version: 1.4.1
421
422
  Copyright: Google LLC
@@ -450,18 +451,21 @@ License: Apache-2.0
450
451
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
452
  Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
452
453
 
453
- Component: ajv, version: 6.12.3
454
- Copyright: 2015-2017 Evgeny Poberezkin
455
- License: MIT
456
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
457
- Contained in: ../test/sap/ui/integration/demokit/cardExplorer/webapp/thirdparty/ajv/ajv.min.js
458
-
459
454
  Component: JSDoc 3, version: 3.6.7
460
455
  Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
461
456
  License: Apache-2.0
462
457
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
463
458
  Contained in: lib/jsdoc/ui5/plugin.js
464
459
 
460
+ Component: SAP Theming Base Content, version: 11.1.34
461
+ Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
462
+ License: Apache-2.0
463
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
464
+ Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
465
+ src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
466
+ src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
467
+ src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
468
+
465
469
 
466
470
  ALL LICENSE TEXTS:
467
471
  ==================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.94.0",
3
+ "version": "1.97.0",
4
4
  "description": "OpenUI5 UI Library sap.ui.rta",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,10 +14,10 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.m": "1.94.0",
18
- "@openui5/sap.ui.core": "1.94.0",
19
- "@openui5/sap.ui.dt": "1.94.0",
20
- "@openui5/sap.ui.fl": "1.94.0",
21
- "@openui5/sap.ui.layout": "1.94.0"
17
+ "@openui5/sap.m": "1.97.0",
18
+ "@openui5/sap.ui.core": "1.97.0",
19
+ "@openui5/sap.ui.dt": "1.97.0",
20
+ "@openui5/sap.ui.fl": "1.97.0",
21
+ "@openui5/sap.ui.layout": "1.97.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.94.0</version>
9
+ <version>1.97.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -57,7 +57,7 @@ sap.ui.define([
57
57
  * @alias sap.ui.rta.Client
58
58
  * @author SAP SE
59
59
  * @since 1.56.0
60
- * @version 1.94.0
60
+ * @version 1.97.0
61
61
  * @private
62
62
  * @ui5-restricted
63
63
  */
@@ -33,7 +33,6 @@ sap.ui.define([
33
33
  "sap/ui/rta/util/PopupManager",
34
34
  "sap/ui/core/BusyIndicator",
35
35
  "sap/ui/dt/DOMUtil",
36
- "sap/ui/rta/util/StylesLoader",
37
36
  "sap/ui/rta/appVariant/Feature",
38
37
  "sap/ui/Device",
39
38
  "sap/ui/rta/service/index",
@@ -47,8 +46,7 @@ sap.ui.define([
47
46
  "sap/ui/model/json/JSONModel",
48
47
  "sap/ui/rta/util/validateFlexEnabled",
49
48
  "sap/ui/rta/util/changeVisualization/ChangeVisualization"
50
- ],
51
- function(
49
+ ], function(
52
50
  jQuery,
53
51
  ManagedObject,
54
52
  FioriToolbar,
@@ -76,7 +74,6 @@ function(
76
74
  PopupManager,
77
75
  BusyIndicator,
78
76
  DOMUtil,
79
- StylesLoader,
80
77
  RtaAppVariantFeature,
81
78
  Device,
82
79
  ServicesIndex,
@@ -107,7 +104,7 @@ function(
107
104
  * @class The runtime authoring allows to adapt the fields of a running application.
108
105
  * @extends sap.ui.base.ManagedObject
109
106
  * @author SAP SE
110
- * @version 1.94.0
107
+ * @version 1.97.0
111
108
  * @constructor
112
109
  * @private
113
110
  * @since 1.30
@@ -119,7 +116,7 @@ function(
119
116
  // ---- control specific ----
120
117
  library: "sap.ui.rta",
121
118
  associations: {
122
- /** The root control which the runtime authoring should handle. Can only be sap.ui.core.Element or sap.ui.core.UIComponent */
119
+ /** The root control which the runtime authoring should handle. Can only be sap.ui.core.Control or sap.ui.core.UIComponent */
123
120
  rootControl: {
124
121
  type: "sap.ui.base.ManagedObject"
125
122
  }
@@ -225,6 +222,7 @@ function(
225
222
  this._dependents = {};
226
223
  this._mServices = {};
227
224
  this._mCustomServicesDictinary = {};
225
+ this._mUShellServices = {};
228
226
 
229
227
  this.addDependent(new PluginManager(), "pluginManager");
230
228
  this.addDependent(new PopupManager(), "popupManager");
@@ -244,6 +242,11 @@ function(
244
242
  if (this._shouldValidateFlexEnabled()) {
245
243
  this.attachEvent("start", validateFlexEnabled.bind(null, this));
246
244
  }
245
+
246
+ this._loadUShellServicesPromise = FlexUtils.getUShellServices(["URLParsing", "AppLifeCycle", "CrossApplicationNavigation"])
247
+ .then(function (mUShellServices) {
248
+ this._mUShellServices = mUShellServices;
249
+ }.bind(this));
247
250
  },
248
251
  _RELOAD: {
249
252
  NOT_NEEDED: "NO_RELOAD",
@@ -411,6 +414,15 @@ function(
411
414
  }).then(this._setVersionsModel.bind(this));
412
415
  };
413
416
 
417
+ function addOrRemoveStyleClass(oRootControl, bAdd) {
418
+ if (oRootControl.isA("sap.ui.core.UIComponent")) {
419
+ oRootControl = oRootControl.getRootControl();
420
+ }
421
+ if (oRootControl) {
422
+ oRootControl[bAdd ? "addStyleClass" : "removeStyleClass"]("sapUiRtaRoot");
423
+ }
424
+ }
425
+
414
426
  /**
415
427
  * Start UI adaptation at runtime (RTA).
416
428
  * @return {Promise} Returns a Promise with the initialization of RTA
@@ -429,7 +441,8 @@ function(
429
441
  return Promise.reject(vError);
430
442
  }
431
443
 
432
- return this._initVersioning()
444
+ return this._loadUShellServicesPromise
445
+ .then(this._initVersioning.bind(this))
433
446
  /*
434
447
  Check if the application has personalized changes and reload without them;
435
448
  Also Check if the application has an available draft and if yes, reload with those changes.
@@ -495,15 +508,9 @@ function(
495
508
  // this is needed to initially check if undo is available, e.g. when the stack gets initialized with changes
496
509
  .then(this._onStackModified.bind(this))
497
510
  .then(function () {
498
- // non-blocking style loading
499
- StylesLoader
500
- .loadStyles("InPageStyles")
501
- .then(function (sData) {
502
- var sStyles = sData.replace(/%scrollWidth%/g, DOMUtil.getScrollbarWidth() + "px");
503
- DOMUtil.insertStyles(sStyles, Overlay.getOverlayContainer().get(0));
504
- });
505
- })
506
- .then(function () {
511
+ //Resolve the CSS variable set in themes/base/OverlayWithScrollbar.css
512
+ Overlay.getOverlayContainer().get(0).style.setProperty("--sap-ui-rta-scrollbar-scrollWidth", DOMUtil.getScrollbarWidth() + "px");
513
+ Overlay.getOverlayContainer().get(0).style.setProperty("--sap-ui-rta-scrollbar-scrollWidthPlusTwo", DOMUtil.getScrollbarWidth() + 2 + "px");
507
514
  return oDesignTimePromise;
508
515
  })
509
516
  .then(function () {
@@ -527,11 +534,7 @@ function(
527
534
  this.fnKeyDown = this._onKeyDown.bind(this);
528
535
  jQuery(document).on("keydown", this.fnKeyDown);
529
536
 
530
- var oRootOverlay = OverlayRegistry.getOverlay(this.getRootControl());
531
- this._$RootControl = oRootOverlay.getAssociatedDomRef();
532
- if (this._$RootControl) {
533
- this._$RootControl.addClass("sapUiRtaRoot");
534
- }
537
+ addOrRemoveStyleClass(this.getRootControlInstance(), true);
535
538
  }.bind(this))
536
539
  .then(function () {
537
540
  this._sStatus = STARTED;
@@ -646,6 +649,7 @@ function(
646
649
 
647
650
  /**
648
651
  * adapt the enablement of undo/redo/reset/transport button
652
+ * @returns {Promise} Resolves as soon as the MessageBox is closed
649
653
  * @private
650
654
  */
651
655
  RuntimeAuthoring.prototype._onStackModified = function() {
@@ -907,7 +911,7 @@ function(
907
911
  }
908
912
  var bTriggerReload = true;
909
913
  this.getCommandStack().removeAllCommands();
910
- var mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, FlexUtils.getParsedURLHash(), bTriggerReload);
914
+ var mParsedHash = this._removeVersionParameterForFLP(oReloadInfo, FlexUtils.getParsedURLHash(this._getUShellService("URLParsing")), bTriggerReload);
911
915
  this._triggerCrossAppNavigation(mParsedHash);
912
916
  return this.stop(true, true);
913
917
  };
@@ -926,6 +930,7 @@ function(
926
930
  })
927
931
  .then(this._handleDiscard.bind(this));
928
932
  }
933
+ return undefined;
929
934
  }.bind(this));
930
935
  };
931
936
 
@@ -940,23 +945,23 @@ function(
940
945
 
941
946
  if (this.canUndo()) {
942
947
  this._nSwitchToVersion = nVersion;
943
- return Utils.showMessageBox("warning", "MSG_SWITCH_VERSION_DIALOG", {
948
+ Utils.showMessageBox("warning", "MSG_SWITCH_VERSION_DIALOG", {
944
949
  titleKey: "TIT_SWITCH_VERSION_DIALOG",
945
950
  actions: [MessageBox.Action.YES, MessageBox.Action.NO, MessageBox.Action.CANCEL],
946
951
  emphasizedAction: MessageBox.Action.YES
947
952
  }).then(function (sAction) {
948
- switch (sAction) {
949
- case MessageBox.Action.YES:
950
- return this._serializeToLrep(this)
951
- .then(this._switchVersion.bind(this, this._nSwitchToVersion));
952
- case MessageBox.Action.NO:
953
- // avoids the data loss popup; a reload is triggered later and will destroy RTA & the command stack
954
- this.getCommandStack().removeAllCommands(true);
955
- this._switchVersion(this._nSwitchToVersion);
953
+ if (sAction === MessageBox.Action.YES) {
954
+ this._serializeToLrep(this)
955
+ .then(this._switchVersion.bind(this, this._nSwitchToVersion));
956
+ } else if (sAction === MessageBox.Action.NO) {
957
+ // avoids the data loss popup; a reload is triggered later and will destroy RTA & the command stack
958
+ this.getCommandStack().removeAllCommands(true);
959
+ this._switchVersion(this._nSwitchToVersion);
956
960
  }
961
+ return undefined;
957
962
  }.bind(this));
963
+ return;
958
964
  }
959
-
960
965
  this._switchVersion(nVersion);
961
966
  };
962
967
 
@@ -966,7 +971,7 @@ function(
966
971
  RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
967
972
 
968
973
  if (!FlexUtils.getUshellContainer()) {
969
- if (!ReloadInfoAPI.hasVersionParameterWithValue({value: sVersion})) {
974
+ if (!ReloadInfoAPI.hasVersionParameterWithValue({value: sVersion}, this._getUShellService("URLParsing"))) {
970
975
  var oReloadInfo = {
971
976
  versionSwitch: true,
972
977
  version: sVersion
@@ -975,20 +980,25 @@ function(
975
980
  }
976
981
  return this._reloadPage();
977
982
  }
978
- var mParsedHash = FlexUtils.getParsedURLHash();
983
+ var mParsedHash = FlexUtils.getParsedURLHash(this._getUShellService("URLParsing"));
979
984
  VersionsAPI.loadVersionForApplication({
980
985
  selector: this.getRootControlInstance(),
981
986
  layer: this.getLayer(),
982
987
  version: nVersion
983
988
  });
984
989
  var aVersionsParameter = mParsedHash.params[sap.ui.fl.Versions.UrlParameter];
985
- if (aVersionsParameter && aVersionsParameter[0] === sVersion) {
990
+ if (
991
+ aVersionsParameter &&
992
+ aVersionsParameter[0] === sVersion &&
993
+ this._getUShellService("AppLifeCycle")
994
+ ) {
986
995
  // RTA was started with a version parameter, the displayed version has changed and the key user switches back
987
- FlexUtils.getUshellContainer().getService("AppLifeCycle").reloadCurrentApp();
996
+ this._getUShellService("AppLifeCycle").reloadCurrentApp();
988
997
  } else {
989
998
  mParsedHash.params[sap.ui.fl.Versions.UrlParameter] = sVersion;
990
999
  this._triggerCrossAppNavigation(mParsedHash);
991
1000
  }
1001
+ return undefined;
992
1002
  };
993
1003
 
994
1004
  RuntimeAuthoring.prototype._setUriParameter = function (sParameters) {
@@ -1017,8 +1027,8 @@ function(
1017
1027
  oProperties.activate = this._onActivate.bind(this);
1018
1028
  oProperties.discardDraft = this._onDiscardDraft.bind(this);
1019
1029
  oProperties.switchVersion = this._onSwitchVersion.bind(this);
1020
- oProperties.toggleChangeVisualizationPopover = this.getChangeVisualization
1021
- ? this.getChangeVisualization().togglePopover.bind(this.getChangeVisualization())
1030
+ oProperties.onCommandCategorySelection = this.getChangeVisualization
1031
+ ? this.getChangeVisualization().onCommandCategorySelection.bind(this.getChangeVisualization())
1022
1032
  : function () {};
1023
1033
  }
1024
1034
 
@@ -1100,8 +1110,8 @@ function(
1100
1110
  jQuery(document).off("keydown", this.fnKeyDown);
1101
1111
  }
1102
1112
 
1103
- if (this._$RootControl) {
1104
- this._$RootControl.removeClass("sapUiRtaRoot");
1113
+ if (this.getRootControlInstance()) {
1114
+ addOrRemoveStyleClass(this.getRootControlInstance(), false);
1105
1115
  }
1106
1116
 
1107
1117
  this.setCommandStack(null);
@@ -1169,7 +1179,7 @@ function(
1169
1179
  * the changes for both places will be deleted. For App Variants all the changes are saved in one place.
1170
1180
  *
1171
1181
  * @private
1172
- * @returns {Promise}
1182
+ * @returns {Promise} Resolves when change persistence is resetted
1173
1183
  */
1174
1184
  RuntimeAuthoring.prototype._deleteChanges = function() {
1175
1185
  var sLayer = this.getLayer();
@@ -1180,7 +1190,7 @@ function(
1180
1190
  }).then(function () {
1181
1191
  ReloadInfoAPI.removeInfoSessionStorage(oSelector);
1182
1192
  var oReloadInfo = {
1183
- isDraftAvailable: ReloadInfoAPI.hasVersionParameterWithValue({value: sLayer}),
1193
+ isDraftAvailable: ReloadInfoAPI.hasVersionParameterWithValue({value: sLayer}, this._getUShellService("URLParsing")),
1184
1194
  layer: sLayer,
1185
1195
  deleteMaxLayer: false,
1186
1196
  triggerHardReload: true
@@ -1261,25 +1271,28 @@ function(
1261
1271
  */
1262
1272
  RuntimeAuthoring.prototype._onRestore = function() {
1263
1273
  var sLayer = this.getLayer();
1264
- var sMessage = sLayer === Layer.USER
1265
- ? this._getTextResources().getText("FORM_PERS_RESET_MESSAGE_PERSONALIZATION")
1266
- : this._getTextResources().getText("FORM_PERS_RESET_MESSAGE");
1267
- var sTitle = sLayer === Layer.USER
1268
- ? this._getTextResources().getText("BTN_RESTORE")
1269
- : this._getTextResources().getText("FORM_PERS_RESET_TITLE");
1274
+ var sMessageKey = sLayer === Layer.USER
1275
+ ? "FORM_PERS_RESET_MESSAGE_PERSONALIZATION"
1276
+ : "FORM_PERS_RESET_MESSAGE";
1277
+ var sTitleKey = sLayer === Layer.USER
1278
+ ? "BTN_RESTORE"
1279
+ : "FORM_PERS_RESET_TITLE";
1270
1280
 
1271
1281
  this.getPluginManager().handleStopCutPaste();
1272
1282
 
1273
- return Utils.showMessageBox("warning", sMessage, {
1274
- titleKey: sTitle,
1283
+ return Utils.showMessageBox("warning", sMessageKey, {
1284
+ titleKey: sTitleKey,
1275
1285
  actions: [MessageBox.Action.OK, MessageBox.Action.CANCEL],
1276
1286
  emphasizedAction: MessageBox.Action.OK
1277
1287
  }).then(function(sAction) {
1278
1288
  if (sAction === MessageBox.Action.OK) {
1279
1289
  RuntimeAuthoring.enableRestart(sLayer, this.getRootControlInstance());
1280
- this._deleteChanges();
1281
- this.getCommandStack().removeAllCommands();
1290
+ return this._deleteChanges()
1291
+ .then(function () {
1292
+ this.getCommandStack().removeAllCommands();
1293
+ }.bind(this));
1282
1294
  }
1295
+ return undefined;
1283
1296
  }.bind(this));
1284
1297
  };
1285
1298
 
@@ -1420,12 +1433,15 @@ function(
1420
1433
  };
1421
1434
 
1422
1435
  RuntimeAuthoring.prototype._triggerCrossAppNavigation = function(mParsedHash) {
1423
- if (this.getLayer() !== Layer.USER) {
1424
- return FlexUtils.ifUShellContainerThen(function(aServices) {
1425
- aServices[0].toExternal(this._buildNavigationArguments(mParsedHash));
1426
- return Promise.resolve(true);
1427
- }.bind(this), ["CrossApplicationNavigation"]);
1436
+ if (
1437
+ (this.getLayer() !== Layer.USER) &&
1438
+ this._getUShellService("CrossApplicationNavigation")
1439
+ ) {
1440
+ this._getUShellService("CrossApplicationNavigation")
1441
+ .toExternal(this._buildNavigationArguments(mParsedHash));
1442
+ return true;
1428
1443
  }
1444
+ return false;
1429
1445
  };
1430
1446
 
1431
1447
  RuntimeAuthoring.prototype._removeVersionParameterForFLP = function(oReloadInfo, mParsedHash, bTriggerReload) {
@@ -1434,13 +1450,16 @@ function(
1434
1450
  return mParsedHash;
1435
1451
  }
1436
1452
 
1437
- var sVersionParameter = FlexUtils.getParameter(flexLibrary.Versions.UrlParameter);
1453
+ var sVersionParameter = FlexUtils.getParameter(flexLibrary.Versions.UrlParameter, this._getUShellService("URLParsing"));
1438
1454
  if (sVersionParameter) {
1439
1455
  delete mParsedHash.params[flexLibrary.Versions.UrlParameter];
1440
- } else if ((this._isDraftAvailable() || bTriggerReload /* for discarding of dirty changes */)
1441
- && !oReloadInfo.hasHigherLayerChanges) {
1456
+ } else if (
1457
+ (this._isDraftAvailable() || bTriggerReload /* for discarding of dirty changes */) &&
1458
+ !oReloadInfo.hasHigherLayerChanges &&
1459
+ this._getUShellService("AppLifeCycle")
1460
+ ) {
1442
1461
  // reloading this way only works when we dont have to remove max-layer parameter, see _removeMaxLayerParameterForFLP
1443
- FlexUtils.getUshellContainer().getService("AppLifeCycle").reloadCurrentApp();
1462
+ this._getUShellService("AppLifeCycle").reloadCurrentApp();
1444
1463
  }
1445
1464
  return mParsedHash;
1446
1465
  };
@@ -1468,14 +1487,18 @@ function(
1468
1487
  return this._triggerHardReload(oReloadInfo);
1469
1488
  }
1470
1489
 
1471
- var mParsedHash = FlexUtils.getParsedURLHash();
1490
+ var mParsedHash = FlexUtils.getParsedURLHash(this._getUShellService("URLParsing"));
1472
1491
  if (!mParsedHash) {
1473
- return;
1492
+ return undefined;
1474
1493
  }
1475
1494
 
1476
1495
  // allContexts do not change the url parameter to trigger a reload
1477
- if (oReloadInfo.allContexts && !oReloadInfo.hasHigherLayerChanges) {
1478
- FlexUtils.getUshellContainer().getService("AppLifeCycle").reloadCurrentApp();
1496
+ if (
1497
+ oReloadInfo.allContexts &&
1498
+ !oReloadInfo.hasHigherLayerChanges &&
1499
+ this._getUShellService("AppLifeCycle")
1500
+ ) {
1501
+ this._getUShellService("AppLifeCycle").reloadCurrentApp();
1479
1502
  }
1480
1503
 
1481
1504
  mParsedHash = this._removeMaxLayerParameterForFLP(oReloadInfo, mParsedHash);
@@ -1582,7 +1605,7 @@ function(
1582
1605
  };
1583
1606
 
1584
1607
  RuntimeAuthoring.prototype._triggerReloadOnStart = function(oReloadInfo) {
1585
- FlexUtils.ifUShellContainerThen(function() {
1608
+ if (this._getUShellService("CrossApplicationNavigation")) {
1586
1609
  if (oReloadInfo.isDraftAvailable) {
1587
1610
  // clears FlexState and triggers reloading of the flex data without blocking
1588
1611
  VersionsAPI.loadDraftForApplication({
@@ -1596,7 +1619,7 @@ function(
1596
1619
  allContexts: oReloadInfo.allContexts
1597
1620
  });
1598
1621
  }
1599
- }, ["CrossApplicationNavigation"]);
1622
+ }
1600
1623
  var sReason = this._getReloadMessageOnStart(oReloadInfo);
1601
1624
  if (!sReason) {
1602
1625
  return Promise.resolve();
@@ -1605,8 +1628,12 @@ function(
1605
1628
  .then(function() {
1606
1629
  RuntimeAuthoring.enableRestart(oReloadInfo.layer, this.getRootControlInstance());
1607
1630
  // allContexts do not change the url parameter to trigger a reload
1608
- if (oReloadInfo.allContexts && !oReloadInfo.hasHigherLayerChanges) {
1609
- FlexUtils.getUshellContainer().getService("AppLifeCycle").reloadCurrentApp();
1631
+ if (
1632
+ oReloadInfo.allContexts &&
1633
+ !oReloadInfo.hasHigherLayerChanges &&
1634
+ this._getUShellService("AppLifeCycle")
1635
+ ) {
1636
+ this._getUShellService("AppLifeCycle").reloadCurrentApp();
1610
1637
  }
1611
1638
  if (FlexUtils.getUshellContainer()) {
1612
1639
  // clears FlexState and triggers reloading of the flex data without blocking
@@ -1632,7 +1659,8 @@ function(
1632
1659
  layer: this.getLayer(),
1633
1660
  selector: this.getRootControlInstance(),
1634
1661
  ignoreMaxLayerParameter: false,
1635
- includeCtrlVariants: true
1662
+ includeCtrlVariants: true,
1663
+ URLParsingService: this._getUShellService("URLParsing")
1636
1664
  };
1637
1665
  return ReloadInfoAPI.getReloadReasonsForStart(oReloadInfo)
1638
1666
  .then(function (oReloadInfo) {
@@ -1642,6 +1670,7 @@ function(
1642
1670
  if (oReloadInfo.hasHigherLayerChanges || oReloadInfo.isDraftAvailable || oReloadInfo.allContexts) {
1643
1671
  return this._triggerReloadOnStart(oReloadInfo);
1644
1672
  }
1673
+ return undefined;
1645
1674
  }.bind(this));
1646
1675
  };
1647
1676
 
@@ -1650,10 +1679,11 @@ function(
1650
1679
  * This function must only be called outside of the ushell.
1651
1680
  *
1652
1681
  * @param {Object} oReloadInfo - Information to determine reload is needed
1653
- * @returns {Promise}
1682
+ * @returns {Promise} Resolves when page reload is triggered
1654
1683
  */
1655
1684
  RuntimeAuthoring.prototype._triggerHardReload = function(oReloadInfo) {
1656
1685
  oReloadInfo.parameters = document.location.search;
1686
+ oReloadInfo.URLParsingService = this._getUShellService("URLParsing");
1657
1687
  var sParameters = ReloadInfoAPI.handleUrlParametersForStandalone(oReloadInfo);
1658
1688
  if (document.location.search !== sParameters) {
1659
1689
  this._setUriParameter(sParameters);
@@ -1682,7 +1712,8 @@ function(
1682
1712
  changesNeedReload: bChangesNeedReload,
1683
1713
  isDraftAvailable: this._oVersionsModel.getProperty("/draftAvailable"),
1684
1714
  versioningEnabled: this._oVersionsModel.getProperty("/versioningEnabled"),
1685
- activeVersion: this._oVersionsModel.getProperty("/activeVersion")
1715
+ activeVersion: this._oVersionsModel.getProperty("/activeVersion"),
1716
+ URLParsingService: this._getUShellService("URLParsing")
1686
1717
  };
1687
1718
  oReloadInfo = ReloadInfoAPI.getReloadMethod(oReloadInfo);
1688
1719
  return this._handleReloadMessageBoxOnExit(oReloadInfo).then(function () {
@@ -1704,7 +1735,7 @@ function(
1704
1735
  if (sCurrentMode !== sNewMode) {
1705
1736
  var oChangeVisualization = this.getChangeVisualization && this.getChangeVisualization();
1706
1737
  if (sNewMode === "visualization" || sCurrentMode === "visualization") {
1707
- oChangeVisualization.triggerModeChange(this.getRootControl());
1738
+ oChangeVisualization.triggerModeChange(this.getRootControl(), this.getToolbar());
1708
1739
  }
1709
1740
  var oTabHandlingPlugin = this.getPluginManager().getPlugin("tabHandling");
1710
1741
  var oSelectionPlugin = this.getPluginManager().getPlugin("selection");
@@ -1940,5 +1971,9 @@ function(
1940
1971
  return this.startService(sName);
1941
1972
  };
1942
1973
 
1974
+ RuntimeAuthoring.prototype._getUShellService = function(sServiceName) {
1975
+ return FlexUtils.getUshellContainer() && this._mUShellServices[sServiceName];
1976
+ };
1977
+
1943
1978
  return RuntimeAuthoring;
1944
1979
  });