@openui5/sap.ui.rta 1.102.2 → 1.104.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 +17 -0
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +5 -0
- package/THIRDPARTY.txt +35 -2
- 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 +83 -410
- package/src/sap/ui/rta/Utils.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +5 -20
- package/src/sap/ui/rta/appVariant/Feature.js +2 -2
- 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/AppDescriptorCommand.js +2 -2
- 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 +4 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +4 -3
- 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 +4 -2
- 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 +2 -2
- 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 +2 -2
- 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 +12 -10
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +7 -5
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +15 -11
- package/src/sap/ui/rta/messagebundle_ar.properties +10 -8
- package/src/sap/ui/rta/messagebundle_bg.properties +11 -9
- package/src/sap/ui/rta/messagebundle_ca.properties +11 -9
- package/src/sap/ui/rta/messagebundle_cs.properties +10 -8
- package/src/sap/ui/rta/messagebundle_cy.properties +8 -6
- package/src/sap/ui/rta/messagebundle_da.properties +12 -10
- package/src/sap/ui/rta/messagebundle_de.properties +12 -10
- package/src/sap/ui/rta/messagebundle_el.properties +11 -9
- package/src/sap/ui/rta/messagebundle_en.properties +12 -10
- package/src/sap/ui/rta/messagebundle_en_GB.properties +12 -10
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +13 -11
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +13 -11
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +13 -11
- package/src/sap/ui/rta/messagebundle_es.properties +8 -6
- package/src/sap/ui/rta/messagebundle_es_MX.properties +6 -4
- package/src/sap/ui/rta/messagebundle_et.properties +8 -6
- package/src/sap/ui/rta/messagebundle_fi.properties +12 -10
- package/src/sap/ui/rta/messagebundle_fr.properties +9 -7
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -9
- package/src/sap/ui/rta/messagebundle_hi.properties +11 -9
- package/src/sap/ui/rta/messagebundle_hr.properties +10 -8
- package/src/sap/ui/rta/messagebundle_hu.properties +4 -2
- package/src/sap/ui/rta/messagebundle_id.properties +10 -8
- package/src/sap/ui/rta/messagebundle_it.properties +11 -9
- package/src/sap/ui/rta/messagebundle_iw.properties +11 -9
- package/src/sap/ui/rta/messagebundle_ja.properties +11 -9
- package/src/sap/ui/rta/messagebundle_kk.properties +11 -9
- package/src/sap/ui/rta/messagebundle_ko.properties +11 -9
- package/src/sap/ui/rta/messagebundle_lt.properties +10 -8
- package/src/sap/ui/rta/messagebundle_lv.properties +8 -6
- package/src/sap/ui/rta/messagebundle_ms.properties +12 -10
- package/src/sap/ui/rta/messagebundle_nl.properties +12 -10
- package/src/sap/ui/rta/messagebundle_no.properties +11 -9
- package/src/sap/ui/rta/messagebundle_pl.properties +10 -8
- package/src/sap/ui/rta/messagebundle_pt.properties +11 -9
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -8
- package/src/sap/ui/rta/messagebundle_ro.properties +10 -8
- package/src/sap/ui/rta/messagebundle_ru.properties +11 -9
- package/src/sap/ui/rta/messagebundle_sh.properties +12 -10
- package/src/sap/ui/rta/messagebundle_sk.properties +10 -8
- package/src/sap/ui/rta/messagebundle_sl.properties +8 -6
- package/src/sap/ui/rta/messagebundle_sv.properties +12 -10
- package/src/sap/ui/rta/messagebundle_th.properties +14 -12
- package/src/sap/ui/rta/messagebundle_tr.properties +11 -9
- package/src/sap/ui/rta/messagebundle_uk.properties +12 -10
- package/src/sap/ui/rta/messagebundle_vi.properties +11 -9
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -9
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +10 -8
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- 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/CompVariant.js +3 -3
- 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/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- 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 +23 -5
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +12 -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 +5 -3
- 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/AdditionalElementsAnalyzer.js +5 -5
- 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/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/toolbar/Adaptation.js +36 -262
- package/src/sap/ui/rta/toolbar/Base.js +12 -18
- 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/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- package/src/sap/ui/rta/toolbar/{VersionHistory.fragment.xml → versioning/VersionHistory.fragment.xml} +4 -3
- package/src/sap/ui/rta/toolbar/{VersionTitleDialog.fragment.xml → versioning/VersionTitleDialog.fragment.xml} +3 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +271 -0
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +330 -0
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +21 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +24 -9
- package/src/sap/ui/rta/util/changeVisualization/categories/CombineVisualization.js +87 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +4 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +3 -0
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -45,7 +45,7 @@ function(
|
|
|
45
45
|
*
|
|
46
46
|
* @namespace
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.104.0
|
|
49
49
|
*
|
|
50
50
|
* @private
|
|
51
51
|
* @since 1.30
|
|
@@ -221,7 +221,7 @@ function(
|
|
|
221
221
|
Utils.getFocusedOverlay = function() {
|
|
222
222
|
if (document.activeElement) {
|
|
223
223
|
var oElement = sap.ui.getCore().byId(document.activeElement.id);
|
|
224
|
-
if (oElement
|
|
224
|
+
if (oElement && oElement.isA("sap.ui.dt.ElementOverlay")) {
|
|
225
225
|
return oElement;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
@@ -13,7 +13,8 @@ sap.ui.define([
|
|
|
13
13
|
"sap/base/Log",
|
|
14
14
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
15
15
|
"sap/ui/fl/write/api/AppVariantWriteAPI",
|
|
16
|
-
"sap/ui/fl/write/api/ChangesWriteAPI"
|
|
16
|
+
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
17
|
+
"sap/ui/fl/write/_internal/connectors/LrepConnector"
|
|
17
18
|
], function(
|
|
18
19
|
FlexUtils,
|
|
19
20
|
MessageBox,
|
|
@@ -23,7 +24,8 @@ sap.ui.define([
|
|
|
23
24
|
Log,
|
|
24
25
|
PersistenceWriteAPI,
|
|
25
26
|
AppVariantWriteAPI,
|
|
26
|
-
ChangesWriteAPI
|
|
27
|
+
ChangesWriteAPI,
|
|
28
|
+
LrepConnector
|
|
27
29
|
) {
|
|
28
30
|
"use strict";
|
|
29
31
|
var AppVariantUtils = {};
|
|
@@ -34,24 +36,7 @@ sap.ui.define([
|
|
|
34
36
|
AppVariantUtils._newAppVariantId = null;
|
|
35
37
|
|
|
36
38
|
AppVariantUtils.getManifirstSupport = function(sRunningAppId) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return new Promise(function (resolve, reject) {
|
|
40
|
-
var xhr = new XMLHttpRequest();
|
|
41
|
-
xhr.open("GET", sManifirstUrl);
|
|
42
|
-
xhr.send();
|
|
43
|
-
|
|
44
|
-
xhr.onload = function() {
|
|
45
|
-
if (xhr.status >= 200 && xhr.status < 400) {
|
|
46
|
-
resolve(xhr.response === "true");
|
|
47
|
-
} else {
|
|
48
|
-
var oError = new Error(xhr.statusText);
|
|
49
|
-
oError.status = xhr.status;
|
|
50
|
-
Log.error("Response status code is: " + oError.status, "Stacktrace: " + oError.stack);
|
|
51
|
-
reject(false);
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
});
|
|
39
|
+
return LrepConnector.appVariant.getManifirstSupport({appId: sRunningAppId});
|
|
55
40
|
};
|
|
56
41
|
|
|
57
42
|
AppVariantUtils.getNewAppVariantId = function() {
|
|
@@ -107,8 +107,8 @@ sap.ui.define([
|
|
|
107
107
|
AppVariantUtils.closeOverviewDialog();
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
var oUriParameters =
|
|
111
|
-
var sAppContextsEnabled = oUriParameters.get("sap-ui-rta-
|
|
110
|
+
var oUriParameters = UriParameters.fromQuery(window.location.search);
|
|
111
|
+
var sAppContextsEnabled = oUriParameters.get("sap-ui-xx-rta-adaptations");
|
|
112
112
|
|
|
113
113
|
var sOverviewPath = "sap/ui/rta/appVariant/AppVariantOverviewDialog";
|
|
114
114
|
var oProperties = {
|
|
@@ -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.
|
|
24
|
+
* @version 1.104.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @experimental Since 1.49. This class is experimental and provides only limited functionality. Also the API might be
|
|
31
31
|
* changed in future.
|
|
32
32
|
*/
|
|
33
|
-
var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.
|
|
33
|
+
var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.AppDescriptorCommand", {
|
|
34
34
|
metadata: {
|
|
35
35
|
library: "sap.ui.rta",
|
|
36
36
|
properties: {
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/rta/command/BaseCommand",
|
|
8
|
+
"sap/ui/rta/library",
|
|
8
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
9
10
|
"sap/ui/fl/Utils"
|
|
10
11
|
], function(
|
|
11
12
|
BaseCommand,
|
|
13
|
+
rtaLibrary,
|
|
12
14
|
JsControlTreeModifier,
|
|
13
15
|
flUtils
|
|
14
16
|
) {
|
|
@@ -20,7 +22,7 @@ sap.ui.define([
|
|
|
20
22
|
* @class
|
|
21
23
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
24
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
25
|
+
* @version 1.104.0
|
|
24
26
|
* @constructor
|
|
25
27
|
* @private
|
|
26
28
|
* @since 1.52
|
|
@@ -71,7 +73,7 @@ sap.ui.define([
|
|
|
71
73
|
this._aPreparedChanges = [];
|
|
72
74
|
this.getChanges().forEach(function(mChangeProperties) {
|
|
73
75
|
mChangeProperties.appComponent = this.oAppComponent;
|
|
74
|
-
mChangeProperties.generator =
|
|
76
|
+
mChangeProperties.generator = rtaLibrary.GENERATOR_NAME;
|
|
75
77
|
this._aPreparedChanges.push(this.oModel.addVariantChange(this.sVariantManagementReference, mChangeProperties));
|
|
76
78
|
}.bind(this));
|
|
77
79
|
|
|
@@ -5,12 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/rta/command/BaseCommand",
|
|
8
|
+
"sap/ui/rta/library",
|
|
8
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
9
10
|
"sap/ui/rta/Utils",
|
|
10
11
|
"sap/ui/fl/Utils",
|
|
11
12
|
"sap/ui/fl/write/api/ContextSharingAPI"
|
|
12
13
|
], function(
|
|
13
14
|
BaseCommand,
|
|
15
|
+
rtaLibrary,
|
|
14
16
|
JsControlTreeModifier,
|
|
15
17
|
rtaUtils,
|
|
16
18
|
flUtils,
|
|
@@ -24,7 +26,7 @@ sap.ui.define([
|
|
|
24
26
|
* @class
|
|
25
27
|
* @extends sap.ui.rta.command.BaseCommand
|
|
26
28
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
29
|
+
* @version 1.104.0
|
|
28
30
|
* @constructor
|
|
29
31
|
* @private
|
|
30
32
|
* @since 1.86
|
|
@@ -105,7 +107,7 @@ sap.ui.define([
|
|
|
105
107
|
var mParams = this.getNewVariantParameters();
|
|
106
108
|
mParams.layer = this.sLayer;
|
|
107
109
|
mParams.newVariantReference = this.sNewVariantReference;
|
|
108
|
-
mParams.generator =
|
|
110
|
+
mParams.generator = rtaLibrary.GENERATOR_NAME;
|
|
109
111
|
return this.oModel._handleSave(this.oVariantManagementControl, mParams)
|
|
110
112
|
.then(function(aDirtyChanges) {
|
|
111
113
|
this._aPreparedChanges = aDirtyChanges;
|
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/rta/command/BaseCommand",
|
|
8
|
+
"sap/ui/rta/library",
|
|
8
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
9
10
|
"sap/ui/fl/Utils"
|
|
10
|
-
], function(BaseCommand, JsControlTreeModifier, flUtils) {
|
|
11
|
+
], function(BaseCommand, rtaLibrary, JsControlTreeModifier, flUtils) {
|
|
11
12
|
"use strict";
|
|
12
13
|
|
|
13
14
|
/**
|
|
@@ -16,7 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
* @class
|
|
17
18
|
* @extends sap.ui.rta.command.BaseCommand
|
|
18
19
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
20
|
+
* @version 1.104.0
|
|
20
21
|
* @constructor
|
|
21
22
|
* @private
|
|
22
23
|
* @since 1.50
|
|
@@ -77,7 +78,7 @@ sap.ui.define([
|
|
|
77
78
|
changeType: "setTitle",
|
|
78
79
|
title: this.getNewText(),
|
|
79
80
|
layer: this.sLayer,
|
|
80
|
-
generator:
|
|
81
|
+
generator: rtaLibrary.GENERATOR_NAME
|
|
81
82
|
};
|
|
82
83
|
|
|
83
84
|
return Promise.resolve(this.oModel.addVariantChange(this.sVariantManagementReference, mPropertyBag))
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/rta/command/BaseCommand",
|
|
8
|
+
"sap/ui/rta/library",
|
|
8
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
9
10
|
"sap/ui/fl/Utils",
|
|
10
11
|
"sap/base/Log",
|
|
@@ -13,6 +14,7 @@ sap.ui.define([
|
|
|
13
14
|
"sap/base/util/values"
|
|
14
15
|
], function(
|
|
15
16
|
BaseCommand,
|
|
17
|
+
rtaLibrary,
|
|
16
18
|
JsControlTreeModifier,
|
|
17
19
|
FlUtils,
|
|
18
20
|
Log,
|
|
@@ -29,7 +31,7 @@ sap.ui.define([
|
|
|
29
31
|
* @extends sap.ui.rta.command.BaseCommand
|
|
30
32
|
*
|
|
31
33
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
34
|
+
* @version 1.104.0
|
|
33
35
|
*
|
|
34
36
|
* @constructor
|
|
35
37
|
* @private
|
|
@@ -206,7 +208,7 @@ sap.ui.define([
|
|
|
206
208
|
mChangeSpecificData = Object.assign({}, mChangeSpecificData, mVariantObj);
|
|
207
209
|
}
|
|
208
210
|
mChangeSpecificData.command = sCommand;
|
|
209
|
-
mChangeSpecificData.generator =
|
|
211
|
+
mChangeSpecificData.generator = rtaLibrary.GENERATOR_NAME;
|
|
210
212
|
return ChangesWriteAPI.create({changeSpecificData: mChangeSpecificData, selector: this._validateControlForChange(mFlexSettings)})
|
|
211
213
|
.then(function(oChange) {
|
|
212
214
|
// originalSelector is only present when making a change on/inside a template; the selector does not work with the JS propagation hook (the template has no parent),
|
|
@@ -16,11 +16,11 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.104.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.34
|
|
23
|
-
* @alias sap.ui.rta.command.
|
|
23
|
+
* @alias sap.ui.rta.command.Property
|
|
24
24
|
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
25
25
|
* changed in future.
|
|
26
26
|
*/
|
|
@@ -12,11 +12,11 @@ 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.
|
|
15
|
+
* @version 1.104.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.44
|
|
19
|
-
* @alias sap.ui.rta.command.
|
|
19
|
+
* @alias sap.ui.rta.command.Settings
|
|
20
20
|
* @experimental Since 1.44. This class is experimental and provides only limited functionality. Also the API might be
|
|
21
21
|
* changed in future.
|
|
22
22
|
*/
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
|
|
8
|
-
"sap/ui/rta/command/BaseCommand"
|
|
8
|
+
"sap/ui/rta/command/BaseCommand",
|
|
9
|
+
"sap/ui/rta/library"
|
|
9
10
|
], function(
|
|
10
11
|
SmartVariantManagementWriteAPI,
|
|
11
|
-
BaseCommand
|
|
12
|
+
BaseCommand,
|
|
13
|
+
rtaLibrary
|
|
12
14
|
) {
|
|
13
15
|
"use strict";
|
|
14
16
|
|
|
@@ -18,13 +20,13 @@ sap.ui.define([
|
|
|
18
20
|
* @class
|
|
19
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
20
22
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
23
|
+
* @version 1.104.0
|
|
22
24
|
* @constructor
|
|
23
25
|
* @private
|
|
24
26
|
* @since 1.87
|
|
25
27
|
* @alias sap.ui.rta.command.compVariant.CompVariantSaveAs
|
|
26
28
|
*/
|
|
27
|
-
var CompVariantSaveAs = BaseCommand.extend("sap.ui.rta.command.CompVariantSaveAs", {
|
|
29
|
+
var CompVariantSaveAs = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantSaveAs", {
|
|
28
30
|
metadata: {
|
|
29
31
|
library: "sap.ui.rta",
|
|
30
32
|
properties: {
|
|
@@ -51,7 +53,7 @@ sap.ui.define([
|
|
|
51
53
|
this.mInformation = {
|
|
52
54
|
layer: mFlexSettings.layer,
|
|
53
55
|
command: sCommand, // used for ChangeVisualization and should end up in the support object in change definition
|
|
54
|
-
generator:
|
|
56
|
+
generator: rtaLibrary.GENERATOR_NAME // also to be saved in the support section
|
|
55
57
|
};
|
|
56
58
|
return true;
|
|
57
59
|
};
|
|
@@ -70,7 +72,7 @@ sap.ui.define([
|
|
|
70
72
|
var mPropertyBag = {
|
|
71
73
|
changeSpecificData: {
|
|
72
74
|
// in case of redo the variant is still saved and the ID should be reused
|
|
73
|
-
id: this._oVariant ? this._oVariant.
|
|
75
|
+
id: this._oVariant ? this._oVariant.getVariantId() : undefined,
|
|
74
76
|
type: oNewVariantProperties.type,
|
|
75
77
|
texts: {
|
|
76
78
|
variantName: oNewVariantProperties.text
|
|
@@ -90,12 +92,12 @@ sap.ui.define([
|
|
|
90
92
|
if (oNewVariantProperties.default) {
|
|
91
93
|
SmartVariantManagementWriteAPI.setDefaultVariantId(Object.assign({}, this.mInformation, {
|
|
92
94
|
control: this.getElement(),
|
|
93
|
-
defaultVariantId: this._oVariant.
|
|
95
|
+
defaultVariantId: this._oVariant.getVariantId()
|
|
94
96
|
}));
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
this.getElement().addVariant(this._oVariant, oNewVariantProperties.default);
|
|
98
|
-
this.getElement().activateVariant(this._oVariant.
|
|
100
|
+
this.getElement().activateVariant(this._oVariant.getVariantId());
|
|
99
101
|
return Promise.resolve();
|
|
100
102
|
};
|
|
101
103
|
|
|
@@ -106,7 +108,7 @@ sap.ui.define([
|
|
|
106
108
|
*/
|
|
107
109
|
CompVariantSaveAs.prototype.undo = function() {
|
|
108
110
|
SmartVariantManagementWriteAPI.removeVariant({
|
|
109
|
-
id: this._oVariant.
|
|
111
|
+
id: this._oVariant.getVariantId(),
|
|
110
112
|
control: this.getElement(),
|
|
111
113
|
revert: true
|
|
112
114
|
});
|
|
@@ -122,7 +124,7 @@ sap.ui.define([
|
|
|
122
124
|
previousDirtyFlag: this.getPreviousDirtyFlag(),
|
|
123
125
|
previousVariantId: this.getPreviousVariantId(),
|
|
124
126
|
previousDefault: this.getPreviousDefault(),
|
|
125
|
-
variantId: this._oVariant.
|
|
127
|
+
variantId: this._oVariant.getVariantId()
|
|
126
128
|
});
|
|
127
129
|
|
|
128
130
|
return Promise.resolve();
|
|
@@ -16,13 +16,13 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.BaseCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.104.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.87
|
|
23
23
|
* @alias sap.ui.rta.command.compVariant.CompVariantSwitch
|
|
24
24
|
*/
|
|
25
|
-
var CompVariantSwitch = BaseCommand.extend("sap.ui.rta.command.CompVariantSwitch", {
|
|
25
|
+
var CompVariantSwitch = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantSwitch", {
|
|
26
26
|
metadata: {
|
|
27
27
|
library: "sap.ui.rta",
|
|
28
28
|
properties: {
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/base/util/each",
|
|
8
8
|
"sap/ui/fl/write/api/SmartVariantManagementWriteAPI",
|
|
9
|
-
"sap/ui/rta/command/BaseCommand"
|
|
9
|
+
"sap/ui/rta/command/BaseCommand",
|
|
10
|
+
"sap/ui/rta/library"
|
|
10
11
|
], function(
|
|
11
12
|
each,
|
|
12
13
|
SmartVariantManagementWriteAPI,
|
|
13
|
-
BaseCommand
|
|
14
|
+
BaseCommand,
|
|
15
|
+
rtaLibrary
|
|
14
16
|
) {
|
|
15
17
|
"use strict";
|
|
16
18
|
|
|
@@ -20,13 +22,13 @@ sap.ui.define([
|
|
|
20
22
|
* @class
|
|
21
23
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
24
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
25
|
+
* @version 1.104.0
|
|
24
26
|
* @constructor
|
|
25
27
|
* @private
|
|
26
28
|
* @since 1.87
|
|
27
29
|
* @alias sap.ui.rta.command.compVariant.CompVariantUpdate
|
|
28
30
|
*/
|
|
29
|
-
var CompVariantUpdate = BaseCommand.extend("sap.ui.rta.command.CompVariantUpdate", {
|
|
31
|
+
var CompVariantUpdate = BaseCommand.extend("sap.ui.rta.command.compVariant.CompVariantUpdate", {
|
|
30
32
|
metadata: {
|
|
31
33
|
library: "sap.ui.rta",
|
|
32
34
|
properties: {
|
|
@@ -55,7 +57,7 @@ sap.ui.define([
|
|
|
55
57
|
this.mInformation = {
|
|
56
58
|
layer: mFlexSettings.layer,
|
|
57
59
|
command: sCommand, // used for ChangeVisualization and should end up in the support object in change definition
|
|
58
|
-
generator:
|
|
60
|
+
generator: rtaLibrary.GENERATOR_NAME // also to be saved in the support section
|
|
59
61
|
};
|
|
60
62
|
return true;
|
|
61
63
|
};
|