@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.
- package/.reuse/dep5 +0 -7
- package/THIRDPARTY.txt +1 -22
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +5 -7
- package/src/sap/ui/rta/Utils.js +11 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +0 -4
- package/src/sap/ui/rta/appVariant/Feature.js +15 -21
- package/src/sap/ui/rta/appVariant/Utils.js +31 -35
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AnnotationCommand.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -7
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +6 -4
- package/src/sap/ui/rta/messagebundle_ar.properties +2 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +3 -2
- package/src/sap/ui/rta/messagebundle_ca.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cnr.properties +3 -2
- package/src/sap/ui/rta/messagebundle_cs.properties +2 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +2 -1
- package/src/sap/ui/rta/messagebundle_da.properties +3 -2
- package/src/sap/ui/rta/messagebundle_de.properties +2 -1
- package/src/sap/ui/rta/messagebundle_el.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +2 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -1
- package/src/sap/ui/rta/messagebundle_es.properties +2 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -2
- package/src/sap/ui/rta/messagebundle_et.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +2 -1
- package/src/sap/ui/rta/messagebundle_id.properties +2 -1
- package/src/sap/ui/rta/messagebundle_it.properties +2 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +2 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +2 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +2 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_mk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +2 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_no.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +2 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +2 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +3 -2
- package/src/sap/ui/rta/messagebundle_sk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +2 -1
- package/src/sap/ui/rta/messagebundle_sr.properties +3 -2
- package/src/sap/ui/rta/messagebundle_sv.properties +2 -1
- package/src/sap/ui/rta/messagebundle_th.properties +2 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +2 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +2 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +2 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +2 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +2 -1
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +9 -3
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +168 -0
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +5 -4
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +2 -2
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +30 -47
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +30 -41
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +89 -32
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +19 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +5 -7
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
- package/src/sap/ui/rta/util/isReuseComponent.js +44 -0
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +12 -7
- 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.
|
|
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.
|
|
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.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
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
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -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.
|
|
9
|
+
<version>1.134.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
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
|
-
|
|
931
|
+
function checkFlexEnabled() {
|
|
934
932
|
const sUriParam = new URLSearchParams(window.location.search).get("sap-ui-rta-skip-flex-validation");
|
|
935
|
-
const
|
|
936
|
-
if (!
|
|
933
|
+
const bIsCustomerSystem = FlexRuntimeInfoAPI.isCustomerSystem();
|
|
934
|
+
if (!bIsCustomerSystem && sUriParam !== "true") {
|
|
937
935
|
validateFlexEnabled(this);
|
|
938
936
|
}
|
|
939
937
|
}
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
-
}
|
|
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/
|
|
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/
|
|
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/
|
|
14
|
+
"sap/ui/fl/Utils",
|
|
15
|
+
"sap/ui/rta/appVariant/AppVariantUtils",
|
|
16
|
+
"sap/ui/rta/util/showMessageBox"
|
|
17
17
|
], function(
|
|
18
|
-
|
|
19
|
-
AppVariantUtils,
|
|
20
|
-
showMessageBox,
|
|
18
|
+
merge,
|
|
21
19
|
BusyIndicator,
|
|
22
20
|
EventBus,
|
|
23
|
-
|
|
21
|
+
FlexRuntimeInfoAPI,
|
|
24
22
|
AppVariantFactory,
|
|
25
23
|
FeaturesAPI,
|
|
26
|
-
|
|
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(
|
|
281
|
+
var fnTriggerSuccessMessage = function() {
|
|
286
282
|
fnResetDirtyFlag();
|
|
287
|
-
bIsS4HanaCloud =
|
|
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(
|
|
389
|
-
bIsS4HanaCloud =
|
|
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
|
|
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/
|
|
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
|
-
|
|
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
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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) {
|