@openui5/sap.ui.rta 1.133.0 → 1.134.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 (158) hide show
  1. package/.reuse/dep5 +0 -7
  2. package/THIRDPARTY.txt +1 -22
  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 +5 -7
  7. package/src/sap/ui/rta/Utils.js +11 -1
  8. package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
  9. package/src/sap/ui/rta/appVariant/AppVariantUtils.js +0 -4
  10. package/src/sap/ui/rta/appVariant/Feature.js +15 -21
  11. package/src/sap/ui/rta/appVariant/Utils.js +31 -35
  12. package/src/sap/ui/rta/command/AddIFrame.js +1 -1
  13. package/src/sap/ui/rta/command/AddProperty.js +1 -1
  14. package/src/sap/ui/rta/command/AddXML.js +1 -1
  15. package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
  16. package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
  17. package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
  18. package/src/sap/ui/rta/command/BaseCommand.js +1 -1
  19. package/src/sap/ui/rta/command/BindProperty.js +1 -1
  20. package/src/sap/ui/rta/command/Combine.js +1 -1
  21. package/src/sap/ui/rta/command/CommandFactory.js +1 -1
  22. package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
  23. package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
  24. package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
  25. package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
  26. package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
  27. package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
  28. package/src/sap/ui/rta/command/CreateContainer.js +1 -1
  29. package/src/sap/ui/rta/command/CustomAdd.js +1 -1
  30. package/src/sap/ui/rta/command/FlexCommand.js +1 -1
  31. package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
  32. package/src/sap/ui/rta/command/LocalReset.js +1 -1
  33. package/src/sap/ui/rta/command/Move.js +1 -1
  34. package/src/sap/ui/rta/command/Property.js +1 -1
  35. package/src/sap/ui/rta/command/Remove.js +1 -1
  36. package/src/sap/ui/rta/command/Rename.js +1 -1
  37. package/src/sap/ui/rta/command/Resize.js +1 -1
  38. package/src/sap/ui/rta/command/Reveal.js +1 -1
  39. package/src/sap/ui/rta/command/Settings.js +1 -1
  40. package/src/sap/ui/rta/command/Split.js +1 -1
  41. package/src/sap/ui/rta/command/Stack.js +1 -1
  42. package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
  43. package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
  44. package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
  45. package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
  46. package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
  47. package/src/sap/ui/rta/enablement/elementActionTest.js +1 -7
  48. package/src/sap/ui/rta/library.js +2 -2
  49. package/src/sap/ui/rta/messagebundle.properties +6 -4
  50. package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
  51. package/src/sap/ui/rta/messagebundle_bg.properties +3 -2
  52. package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
  53. package/src/sap/ui/rta/messagebundle_cnr.properties +3 -2
  54. package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
  55. package/src/sap/ui/rta/messagebundle_cy.properties +2 -1
  56. package/src/sap/ui/rta/messagebundle_da.properties +3 -2
  57. package/src/sap/ui/rta/messagebundle_de.properties +2 -1
  58. package/src/sap/ui/rta/messagebundle_el.properties +2 -1
  59. package/src/sap/ui/rta/messagebundle_en.properties +2 -1
  60. package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
  61. package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -1
  62. package/src/sap/ui/rta/messagebundle_es.properties +2 -1
  63. package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -2
  64. package/src/sap/ui/rta/messagebundle_et.properties +2 -1
  65. package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
  66. package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
  67. package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
  68. package/src/sap/ui/rta/messagebundle_hi.properties +2 -1
  69. package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
  70. package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
  71. package/src/sap/ui/rta/messagebundle_id.properties +2 -1
  72. package/src/sap/ui/rta/messagebundle_it.properties +2 -1
  73. package/src/sap/ui/rta/messagebundle_iw.properties +2 -1
  74. package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
  75. package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
  76. package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
  77. package/src/sap/ui/rta/messagebundle_lt.properties +2 -1
  78. package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
  79. package/src/sap/ui/rta/messagebundle_mk.properties +2 -1
  80. package/src/sap/ui/rta/messagebundle_ms.properties +2 -1
  81. package/src/sap/ui/rta/messagebundle_nl.properties +2 -1
  82. package/src/sap/ui/rta/messagebundle_no.properties +2 -1
  83. package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
  84. package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
  85. package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
  86. package/src/sap/ui/rta/messagebundle_ro.properties +2 -1
  87. package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
  88. package/src/sap/ui/rta/messagebundle_sh.properties +3 -2
  89. package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
  90. package/src/sap/ui/rta/messagebundle_sl.properties +2 -1
  91. package/src/sap/ui/rta/messagebundle_sr.properties +3 -2
  92. package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
  93. package/src/sap/ui/rta/messagebundle_th.properties +2 -1
  94. package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
  95. package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
  96. package/src/sap/ui/rta/messagebundle_vi.properties +2 -1
  97. package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
  98. package/src/sap/ui/rta/messagebundle_zh_TW.properties +2 -1
  99. package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +9 -3
  100. package/src/sap/ui/rta/plugin/AddXMLPlugin.js +168 -0
  101. package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
  102. package/src/sap/ui/rta/plugin/Combine.js +1 -1
  103. package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
  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 +1 -1
  107. package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
  108. package/src/sap/ui/rta/plugin/Plugin.js +5 -4
  109. package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
  110. package/src/sap/ui/rta/plugin/Remove.js +1 -1
  111. package/src/sap/ui/rta/plugin/Rename.js +1 -1
  112. package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
  113. package/src/sap/ui/rta/plugin/Resize.js +1 -1
  114. package/src/sap/ui/rta/plugin/Selection.js +1 -1
  115. package/src/sap/ui/rta/plugin/Settings.js +1 -1
  116. package/src/sap/ui/rta/plugin/Split.js +1 -1
  117. package/src/sap/ui/rta/plugin/Stretch.js +1 -1
  118. package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
  119. package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
  120. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
  121. package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
  122. package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
  123. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +30 -47
  124. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +30 -41
  125. package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +89 -32
  126. package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +19 -1
  127. package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
  128. package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
  129. package/src/sap/ui/rta/service/Action.js +1 -1
  130. package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
  131. package/src/sap/ui/rta/service/Outline.js +1 -1
  132. package/src/sap/ui/rta/service/Property.js +1 -1
  133. package/src/sap/ui/rta/service/Selection.js +1 -1
  134. package/src/sap/ui/rta/service/SupportTools.js +1 -1
  135. package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
  136. package/src/sap/ui/rta/toolbar/Base.js +1 -1
  137. package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
  138. package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
  139. package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
  140. package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
  141. package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
  142. package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
  143. package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
  144. package/src/sap/ui/rta/util/Animation.js +1 -1
  145. package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
  146. package/src/sap/ui/rta/util/PluginManager.js +5 -7
  147. package/src/sap/ui/rta/util/PopupManager.js +1 -1
  148. package/src/sap/ui/rta/util/ReloadManager.js +1 -1
  149. package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
  150. package/src/sap/ui/rta/util/ServiceManager.js +1 -1
  151. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
  152. package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
  153. package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
  154. package/src/sap/ui/rta/util/isReuseComponent.js +44 -0
  155. package/src/sap/ui/rta/util/validateText.js +1 -1
  156. package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
  157. package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +12 -7
  158. package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
package/.reuse/dep5 CHANGED
@@ -364,13 +364,6 @@ Copyright:
364
364
  License: Apache-2.0 and ISC
365
365
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
366
366
 
367
- Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
368
- Copyright:
369
- 2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
370
- Arthur David Olson, Paul Eggert and other contributors
371
- License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
372
- Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
373
-
374
367
 
375
368
  # Library: sap.ui.documentation:
376
369
 
package/THIRDPARTY.txt CHANGED
@@ -22,7 +22,7 @@ Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
22
22
 
23
23
  Library: sap.ui.codeeditor:
24
24
 
25
- Component: Ace (Ajax.org Cloud9 Editor), version: 1.31.1
25
+ Component: Ace (Ajax.org Cloud9 Editor), version: 1.36.5
26
26
  Copyright: 2010, Ajax.org B.V.
27
27
  License: BSD-3-Clause
28
28
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
@@ -342,12 +342,6 @@ License: ISC
342
342
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
343
343
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
344
344
 
345
- Component: Time Zone Database, version: 2024b
346
- Copyright: Arthur David Olson, Paul Eggert and other contributors
347
- License: LicenseRef-tzdata-PublicDomain
348
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
349
- Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
350
-
351
345
 
352
346
  Library: sap.ui.documentation:
353
347
 
@@ -1015,21 +1009,6 @@ END of license: LicenseRef-Unicode-3.0
1015
1009
  =================================
1016
1010
 
1017
1011
 
1018
- =================================
1019
- BEGIN of license: LicenseRef-tzdata-PublicDomain
1020
- =================================
1021
-
1022
- Unless specified below, all files in the tz code and data (including
1023
- this LICENSE file) are in the public domain.
1024
-
1025
- If the files date.c, newstrftime.3, and strftime.c are present, they
1026
- contain material derived from BSD and use the BSD 3-clause license.
1027
-
1028
- =================================
1029
- END of license: LicenseRef-tzdata-PublicDomain
1030
- =================================
1031
-
1032
-
1033
1012
  =================================
1034
1013
  BEGIN of license: MIT
1035
1014
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.rta",
3
- "version": "1.133.0",
3
+ "version": "1.134.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.133.0",
18
- "@openui5/sap.ui.core": "1.133.0",
19
- "@openui5/sap.ui.dt": "1.133.0",
20
- "@openui5/sap.ui.fl": "1.133.0",
21
- "@openui5/sap.ui.layout": "1.133.0"
17
+ "@openui5/sap.m": "1.134.0",
18
+ "@openui5/sap.ui.core": "1.134.0",
19
+ "@openui5/sap.ui.dt": "1.134.0",
20
+ "@openui5/sap.ui.fl": "1.134.0",
21
+ "@openui5/sap.ui.layout": "1.134.0"
22
22
  }
23
23
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.133.0</version>
9
+ <version>1.134.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with RTA controls.</documentation>
12
12
 
@@ -59,7 +59,7 @@ sap.ui.define([
59
59
  * @alias sap.ui.rta.Client
60
60
  * @author SAP SE
61
61
  * @since 1.56.0
62
- * @version 1.133.0
62
+ * @version 1.134.0
63
63
  * @private
64
64
  * @ui5-restricted
65
65
  */
@@ -31,7 +31,6 @@ sap.ui.define([
31
31
  "sap/ui/fl/write/api/VersionsAPI",
32
32
  "sap/ui/fl/write/api/TranslationAPI",
33
33
  "sap/ui/fl/Layer",
34
- "sap/ui/fl/registry/Settings",
35
34
  "sap/ui/fl/Utils",
36
35
  "sap/ui/model/json/JSONModel",
37
36
  "sap/ui/performance/Measurement",
@@ -77,7 +76,6 @@ sap.ui.define([
77
76
  VersionsAPI,
78
77
  TranslationAPI,
79
78
  Layer,
80
- Settings,
81
79
  FlexUtils,
82
80
  JSONModel,
83
81
  Measurement,
@@ -111,7 +109,7 @@ sap.ui.define([
111
109
  * @class The runtime authoring allows to adapt the fields of a running application.
112
110
  * @extends sap.ui.base.ManagedObject
113
111
  * @author SAP SE
114
- * @version 1.133.0
112
+ * @version 1.134.0
115
113
  * @constructor
116
114
  * @private
117
115
  * @since 1.30
@@ -487,7 +485,7 @@ sap.ui.define([
487
485
  oRootControl,
488
486
  this.fnOnPersonalizationChangeCreation
489
487
  );
490
- await checkFlexEnabled.call(this);
488
+ checkFlexEnabled.call(this);
491
489
 
492
490
  this._sStatus = STARTED;
493
491
  RuntimeAuthoring.disableRestart(this.getLayer());
@@ -930,10 +928,10 @@ sap.ui.define([
930
928
  });
931
929
  }
932
930
 
933
- async function checkFlexEnabled() {
931
+ function checkFlexEnabled() {
934
932
  const sUriParam = new URLSearchParams(window.location.search).get("sap-ui-rta-skip-flex-validation");
935
- const oSettings = await Settings.getInstance();
936
- if (!oSettings.isCustomerSystem() && sUriParam !== "true") {
933
+ const bIsCustomerSystem = FlexRuntimeInfoAPI.isCustomerSystem();
934
+ if (!bIsCustomerSystem && sUriParam !== "true") {
937
935
  validateFlexEnabled(this);
938
936
  }
939
937
  }
@@ -13,6 +13,7 @@ sap.ui.define([
13
13
  "sap/ui/dt/ElementUtil",
14
14
  "sap/ui/dt/MetadataPropagationUtil",
15
15
  "sap/ui/dt/OverlayUtil",
16
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
16
17
  "sap/ui/fl/initial/api/Version",
17
18
  "sap/ui/fl/Layer",
18
19
  "sap/ui/fl/LayerUtils",
@@ -29,6 +30,7 @@ sap.ui.define([
29
30
  ElementUtil,
30
31
  MetadataPropagationUtil,
31
32
  OverlayUtil,
33
+ FlexRuntimeInfoAPI,
32
34
  Version,
33
35
  Layer,
34
36
  FlexLayerUtils,
@@ -44,7 +46,7 @@ sap.ui.define([
44
46
  *
45
47
  * @namespace
46
48
  * @author SAP SE
47
- * @version 1.133.0
49
+ * @version 1.134.0
48
50
  *
49
51
  * @private
50
52
  * @since 1.30
@@ -430,6 +432,14 @@ sap.ui.define([
430
432
  return undefined;
431
433
  };
432
434
 
435
+ /**
436
+ * Checks if the system is an S4Hana Cloud system
437
+ * @return {boolean} <code>true</code> if the system is an S4HANA Cloud system
438
+ */
439
+ Utils.isS4HanaCloud = function() {
440
+ return FlexRuntimeInfoAPI.isAtoEnabled() && FlexRuntimeInfoAPI.getSystem();
441
+ };
442
+
433
443
  /**
434
444
  * Checks drop ability for aggregation overlays
435
445
  * @param {sap.ui.dt.Overlay} oAggregationOverlay Aggregation overlay object
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.53
@@ -259,4 +259,4 @@ sap.ui.define([
259
259
  };
260
260
 
261
261
  return AppVariantManager;
262
- }, true);
262
+ });
@@ -385,10 +385,6 @@ sap.ui.define([
385
385
  });
386
386
  };
387
387
 
388
- AppVariantUtils.isS4HanaCloud = function(oSettings) {
389
- return oSettings.isAtoEnabled() && oSettings.isAtoAvailable();
390
- };
391
-
392
388
  AppVariantUtils.copyId = function(sId) {
393
389
  var textArea = document.createElement("textarea");
394
390
  textArea.value = sId;
@@ -5,25 +5,25 @@
5
5
  */
6
6
 
7
7
  sap.ui.define([
8
- "sap/ui/fl/Utils",
9
- "sap/ui/rta/appVariant/AppVariantUtils",
10
- "sap/ui/rta/util/showMessageBox",
8
+ "sap/base/util/merge",
11
9
  "sap/ui/core/BusyIndicator",
12
10
  "sap/ui/core/EventBus",
13
- "sap/ui/fl/registry/Settings",
11
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
14
12
  "sap/ui/fl/write/_internal/appVariant/AppVariantFactory",
15
13
  "sap/ui/fl/write/api/FeaturesAPI",
16
- "sap/base/util/merge"
14
+ "sap/ui/fl/Utils",
15
+ "sap/ui/rta/appVariant/AppVariantUtils",
16
+ "sap/ui/rta/util/showMessageBox"
17
17
  ], function(
18
- FlexUtils,
19
- AppVariantUtils,
20
- showMessageBox,
18
+ merge,
21
19
  BusyIndicator,
22
20
  EventBus,
23
- Settings,
21
+ FlexRuntimeInfoAPI,
24
22
  AppVariantFactory,
25
23
  FeaturesAPI,
26
- merge
24
+ FlexUtils,
25
+ AppVariantUtils,
26
+ showMessageBox
27
27
  ) {
28
28
  "use strict";
29
29
 
@@ -37,10 +37,6 @@ sap.ui.define([
37
37
  return FlexUtils.getAppDescriptor(oRootControlRunningApp);
38
38
  };
39
39
 
40
- var fnGetFlexSettings = function() {
41
- return Settings.getInstance();
42
- };
43
-
44
40
  var fnS4HanaRemoveBrowserCloseWarning = function() {
45
41
  window.onbeforeunload = _oldUnloadHandler;
46
42
  };
@@ -282,9 +278,9 @@ sap.ui.define([
282
278
  }
283
279
  };
284
280
 
285
- var fnTriggerSuccessMessage = function(oSettings) {
281
+ var fnTriggerSuccessMessage = function() {
286
282
  fnResetDirtyFlag();
287
- bIsS4HanaCloud = AppVariantUtils.isS4HanaCloud(oSettings);
283
+ bIsS4HanaCloud = FlexRuntimeInfoAPI.isAtoEnabled();
288
284
  // Shows the success message and closes the current app (if 'Save As' triggered from UI adaptation toolbar)
289
285
  // or opens the app variant overview list (if 'Save As' triggered from App variant overview List)
290
286
  var oSuccessInfo = AppVariantUtils.buildSuccessInfo(oAppVariantSaveClosure.id, bSaveAsFromRta, bIsS4HanaCloud);
@@ -335,7 +331,6 @@ sap.ui.define([
335
331
  .then(fnAddChangesToPersistence) // Adds the descriptor inline changes to the persistence
336
332
  .then(fnCreateAppVariant) // Creates the application variant and saves it to the layered repository
337
333
  .then(fnClearRTACommandStack)
338
- .then(fnGetFlexSettings)
339
334
  .then(fnTriggerSuccessMessage)
340
335
  .then(fnTriggerPlatformDependentFlow.bind(this)).then(resolve)
341
336
  .catch(function(oError) {
@@ -385,8 +380,8 @@ sap.ui.define([
385
380
  return oAppVariantManager.showSuccessMessage(oSuccessInfo);
386
381
  };
387
382
 
388
- var fnTriggerS4HanaPolling = function(oSettings) {
389
- bIsS4HanaCloud = AppVariantUtils.isS4HanaCloud(oSettings);
383
+ var fnTriggerS4HanaPolling = function() {
384
+ bIsS4HanaCloud = FlexRuntimeInfoAPI.isAtoEnabled();
390
385
  if (bIsS4HanaCloud) {
391
386
  var oIAMResponse;
392
387
  return fnS4HanaAddBrowserCloseWarning(bCurrentlyAdapting)
@@ -418,8 +413,7 @@ sap.ui.define([
418
413
  AppVariantUtils.navigateToFLPHomepage();
419
414
  }
420
415
 
421
- return fnGetFlexSettings()
422
- .then(fnTriggerS4HanaPolling.bind(this))
416
+ return fnTriggerS4HanaPolling.call(this)
423
417
  .then(fnDeleteAppVariant)
424
418
  .then(fnDeleteSuccessMessage)
425
419
  .then(fnTriggerS4HanaRefresh.bind(this))
@@ -4,20 +4,19 @@
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([
7
- "sap/ui/rta/appVariant/AppVariantUtils",
8
- "sap/ui/fl/registry/Settings",
9
- "sap/ui/fl/Utils",
10
7
  "sap/base/i18n/ResourceBundle",
8
+ "sap/ui/core/IconPool",
9
+ "sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
11
10
  "sap/ui/fl/write/api/AppVariantWriteAPI",
12
- "sap/ui/core/IconPool"
13
- ],
14
- function(
15
- AppVariantUtils,
16
- Settings,
17
- FlUtils,
11
+ "sap/ui/fl/Utils",
12
+ "sap/ui/rta/appVariant/AppVariantUtils"
13
+ ], function(
18
14
  ResourceBundle,
15
+ IconPool,
16
+ FlexRuntimeInfoAPI,
19
17
  AppVariantWriteAPI,
20
- IconPool
18
+ FlUtils,
19
+ AppVariantUtils
21
20
  ) {
22
21
  "use strict";
23
22
 
@@ -194,32 +193,29 @@ function(
194
193
  // Calculate current status of application required for Overview Dialog
195
194
  oAppVariantAttributes.currentStatus = this._calculateCurrentStatus(oAppVariantInfo.appId, oAppVariantInfo.appVarStatus);
196
195
 
197
- var bIsS4HanaCloud;
198
- return Settings.getInstance().then(function(oSettings) {
199
- bIsS4HanaCloud = AppVariantUtils.isS4HanaCloud(oSettings);
200
- // Populate the app variant attributes with the cloud system information
201
- oAppVariantAttributes.isS4HanaCloud = bIsS4HanaCloud;
202
-
203
- var oPreparedObject = {
204
- isKeyUser: bKeyUser,
205
- isOriginal: oAppVariantInfo.isOriginal,
206
- isS4HanaCloud: bIsS4HanaCloud,
207
- appVarStatus: oAppVariantInfo.appVarStatus
208
- };
209
-
210
- if (oAppVariantInfo.hasStartableIntent) {
211
- oPreparedObject.startWith = oAppVariantInfo.startWith;
212
- return this._getNavigationInfo(oPreparedObject).then(function(oNavigationObject) {
213
- oAppVariantAttributes = { ...oAppVariantAttributes, ...oNavigationObject };
214
- return oAppVariantAttributes;
215
- });
216
- }
196
+ const bIsS4HanaCloud = FlexRuntimeInfoAPI.isAtoEnabled();
197
+ // Populate the app variant attributes with the cloud system information
198
+ oAppVariantAttributes.isS4HanaCloud = bIsS4HanaCloud;
217
199
 
218
- oAppVariantAttributes.adaptUIButtonEnabled = false;
219
- var oDeleteButtonProperties = this._checkMenuItemOptions(oPreparedObject, false);
220
- oAppVariantAttributes = { ...oAppVariantAttributes, ...oDeleteButtonProperties };
221
- return Promise.resolve(oAppVariantAttributes);
222
- }.bind(this));
200
+ var oPreparedObject = {
201
+ isKeyUser: bKeyUser,
202
+ isOriginal: oAppVariantInfo.isOriginal,
203
+ isS4HanaCloud: bIsS4HanaCloud,
204
+ appVarStatus: oAppVariantInfo.appVarStatus
205
+ };
206
+
207
+ if (oAppVariantInfo.hasStartableIntent) {
208
+ oPreparedObject.startWith = oAppVariantInfo.startWith;
209
+ return this._getNavigationInfo(oPreparedObject).then(function(oNavigationObject) {
210
+ oAppVariantAttributes = { ...oAppVariantAttributes, ...oNavigationObject };
211
+ return oAppVariantAttributes;
212
+ });
213
+ }
214
+
215
+ oAppVariantAttributes.adaptUIButtonEnabled = false;
216
+ var oDeleteButtonProperties = this._checkMenuItemOptions(oPreparedObject, false);
217
+ oAppVariantAttributes = { ...oAppVariantAttributes, ...oDeleteButtonProperties };
218
+ return Promise.resolve(oAppVariantAttributes);
223
219
  };
224
220
 
225
221
  Utils.getAppVariantOverview = function(sReferenceAppId, bKeyUser) {
@@ -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.133.0
19
+ * @version 1.134.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.75
@@ -14,7 +14,7 @@ sap.ui.define([
14
14
  * @class
15
15
  * @extends sap.ui.rta.command.FlexCommand
16
16
  * @author SAP SE
17
- * @version 1.133.0
17
+ * @version 1.134.0
18
18
  * @constructor
19
19
  * @private
20
20
  * @since 1.78
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.133.0
19
+ * @version 1.134.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.54
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.FlexCommand
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.76
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.FlexCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.133.0
24
+ * @version 1.134.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.133.0
24
+ * @version 1.134.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @extends sap.ui.base.ManagedObject
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.133.0
19
+ * @version 1.134.0
20
20
  *
21
21
  * @constructor
22
22
  * @private
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.FlexCommand
28
28
  * @author SAP SE
29
- * @version 1.133.0
29
+ * @version 1.134.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.38
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.133.0
19
+ * @version 1.134.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.46
@@ -493,7 +493,7 @@ sap.ui.define([
493
493
  * @extends sap.ui.base.ManagedObject
494
494
  *
495
495
  * @author SAP SE
496
- * @version 1.133.0
496
+ * @version 1.134.0
497
497
  *
498
498
  * @constructor
499
499
  * @private
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.ui.rta.command.BaseCommand
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.133.0
24
+ * @version 1.134.0
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @class
31
31
  * @extends sap.ui.rta.command.BaseCommand
32
32
  * @author SAP SE
33
- * @version 1.133.0
33
+ * @version 1.134.0
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.52
@@ -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.133.0
23
+ * @version 1.134.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.86
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @class
31
31
  * @extends sap.ui.rta.command.BaseCommand
32
32
  * @author SAP SE
33
- * @version 1.133.0
33
+ * @version 1.134.0
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.86
@@ -26,7 +26,7 @@ sap.ui.define([
26
26
  * @class
27
27
  * @extends sap.ui.rta.command.BaseCommand
28
28
  * @author SAP SE
29
- * @version 1.133.0
29
+ * @version 1.134.0
30
30
  * @constructor
31
31
  * @private
32
32
  * @since 1.50
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @class
25
25
  * @extends sap.ui.rta.command.BaseCommand
26
26
  * @author SAP SE
27
- * @version 1.133.0
27
+ * @version 1.134.0
28
28
  * @constructor
29
29
  * @private
30
30
  * @since 1.50
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.133.0
15
+ * @version 1.134.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.133.0
15
+ * @version 1.134.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.62
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.rta.command.BaseCommand
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.133.0
38
+ * @version 1.134.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class
28
28
  * @extends sap.ui.base.ManagedObject
29
29
  * @author SAP SE
30
- * @version 1.133.0
30
+ * @version 1.134.0
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.42
@@ -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.133.0
23
+ * @version 1.134.0
24
24
  * @constructor
25
25
  * @private
26
26
  * @since 1.90
@@ -17,7 +17,7 @@ function(
17
17
  * @class
18
18
  * @extends sap.ui.rta.command.FlexCommand
19
19
  * @author SAP SE
20
- * @version 1.133.0
20
+ * @version 1.134.0
21
21
  * @constructor
22
22
  * @private
23
23
  * @since 1.34
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.133.0
19
+ * @version 1.134.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.34
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.133.0
15
+ * @version 1.134.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.42
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.133.0
15
+ * @version 1.134.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.34
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  * @class
17
17
  * @extends sap.ui.rta.command.FlexCommand
18
18
  * @author SAP SE
19
- * @version 1.133.0
19
+ * @version 1.134.0
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.101
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
12
12
  * @class
13
13
  * @extends sap.ui.rta.command.FlexCommand
14
14
  * @author SAP SE
15
- * @version 1.133.0
15
+ * @version 1.134.0
16
16
  * @constructor
17
17
  * @private
18
18
  * @since 1.44