@openui5/sap.ui.rta 1.117.1 → 1.118.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/.eslintrc.json +25 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +32 -21
- package/src/sap/ui/rta/RuntimeAuthoring.js +78 -45
- package/src/sap/ui/rta/Utils.js +10 -16
- package/src/sap/ui/rta/api/startAdaptation.js +0 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +0 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +24 -26
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -3
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +5 -4
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +21 -21
- package/src/sap/ui/rta/appVariant/Feature.js +20 -30
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +21 -17
- package/src/sap/ui/rta/appVariant/Utils.js +4 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +8 -7
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +17 -17
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +5 -7
- package/src/sap/ui/rta/command/AddProperty.js +1 -3
- package/src/sap/ui/rta/command/AddXML.js +7 -7
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +5 -5
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -3
- package/src/sap/ui/rta/command/BaseCommand.js +1 -3
- package/src/sap/ui/rta/command/BindProperty.js +4 -5
- package/src/sap/ui/rta/command/Combine.js +1 -3
- package/src/sap/ui/rta/command/CommandFactory.js +7 -11
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -6
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -4
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +4 -3
- package/src/sap/ui/rta/command/CreateContainer.js +1 -3
- package/src/sap/ui/rta/command/CustomAdd.js +1 -2
- package/src/sap/ui/rta/command/FlexCommand.js +2 -7
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -3
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -3
- package/src/sap/ui/rta/command/Property.js +1 -3
- package/src/sap/ui/rta/command/Remove.js +1 -3
- package/src/sap/ui/rta/command/Rename.js +1 -3
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -3
- package/src/sap/ui/rta/command/Settings.js +5 -7
- package/src/sap/ui/rta/command/Split.js +1 -3
- package/src/sap/ui/rta/command/Stack.js +2 -4
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -3
- 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 +4 -3
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/TestDelegate.js +7 -8
- package/src/sap/ui/rta/enablement/elementActionTest.js +25 -29
- package/src/sap/ui/rta/library.js +2 -3
- package/src/sap/ui/rta/messagebundle.properties +7 -7
- package/src/sap/ui/rta/messagebundle_ar.properties +8 -8
- package/src/sap/ui/rta/messagebundle_bg.properties +7 -7
- package/src/sap/ui/rta/messagebundle_ca.properties +7 -7
- package/src/sap/ui/rta/messagebundle_cs.properties +8 -8
- package/src/sap/ui/rta/messagebundle_cy.properties +8 -8
- package/src/sap/ui/rta/messagebundle_da.properties +7 -7
- package/src/sap/ui/rta/messagebundle_de.properties +8 -8
- package/src/sap/ui/rta/messagebundle_el.properties +7 -7
- package/src/sap/ui/rta/messagebundle_en.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_GB.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -7
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +8 -8
- package/src/sap/ui/rta/messagebundle_es.properties +8 -8
- package/src/sap/ui/rta/messagebundle_es_MX.properties +8 -8
- package/src/sap/ui/rta/messagebundle_et.properties +6 -6
- package/src/sap/ui/rta/messagebundle_fi.properties +8 -8
- package/src/sap/ui/rta/messagebundle_fr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +9 -9
- package/src/sap/ui/rta/messagebundle_hi.properties +7 -7
- package/src/sap/ui/rta/messagebundle_hr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_hu.properties +8 -8
- package/src/sap/ui/rta/messagebundle_id.properties +8 -8
- package/src/sap/ui/rta/messagebundle_it.properties +8 -8
- package/src/sap/ui/rta/messagebundle_iw.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ja.properties +8 -8
- package/src/sap/ui/rta/messagebundle_kk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ko.properties +7 -7
- package/src/sap/ui/rta/messagebundle_lt.properties +8 -8
- package/src/sap/ui/rta/messagebundle_lv.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ms.properties +8 -8
- package/src/sap/ui/rta/messagebundle_nl.properties +8 -8
- package/src/sap/ui/rta/messagebundle_no.properties +8 -8
- package/src/sap/ui/rta/messagebundle_pl.properties +9 -9
- package/src/sap/ui/rta/messagebundle_pt.properties +8 -8
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ro.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ru.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sh.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sl.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sv.properties +8 -8
- package/src/sap/ui/rta/messagebundle_th.properties +8 -8
- package/src/sap/ui/rta/messagebundle_tr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_uk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_vi.properties +8 -8
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +9 -9
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +8 -8
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -3
- package/src/sap/ui/rta/plugin/Combine.js +1 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +12 -8
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +13 -13
- package/src/sap/ui/rta/plugin/DragDrop.js +17 -16
- package/src/sap/ui/rta/plugin/EasyAdd.js +12 -10
- package/src/sap/ui/rta/plugin/EasyRemove.js +11 -9
- package/src/sap/ui/rta/plugin/LocalReset.js +4 -2
- package/src/sap/ui/rta/plugin/Plugin.js +6 -10
- package/src/sap/ui/rta/plugin/RTAElementMover.js +3 -6
- package/src/sap/ui/rta/plugin/Remove.js +8 -9
- package/src/sap/ui/rta/plugin/Rename.js +9 -9
- package/src/sap/ui/rta/plugin/RenameHandler.js +21 -22
- package/src/sap/ui/rta/plugin/Resize.js +11 -10
- package/src/sap/ui/rta/plugin/Selection.js +33 -14
- package/src/sap/ui/rta/plugin/Settings.js +11 -11
- package/src/sap/ui/rta/plugin/Split.js +1 -2
- package/src/sap/ui/rta/plugin/Stretch.js +18 -20
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +4 -9
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +5 -9
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +4 -4
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +41 -43
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -3
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +5 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +7 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +5 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +28 -27
- package/src/sap/ui/rta/service/Action.js +3 -4
- package/src/sap/ui/rta/service/ControllerExtension.js +8 -9
- package/src/sap/ui/rta/service/Outline.js +13 -11
- package/src/sap/ui/rta/service/Property.js +3 -4
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -3
- package/src/sap/ui/rta/service/SupportTools.js +2 -3
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +4 -0
- package/src/sap/ui/rta/toolbar/Adaptation.js +25 -18
- package/src/sap/ui/rta/toolbar/Base.js +25 -11
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +2 -2
- package/src/sap/ui/rta/toolbar/FeedbackDialog.fragment.xml +4 -4
- package/src/sap/ui/rta/toolbar/Fiori.js +20 -20
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +5 -6
- package/src/sap/ui/rta/toolbar/Personalization.js +4 -4
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +43 -20
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +16 -7
- package/src/sap/ui/rta/toolbar/translation/Translation.js +13 -14
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +31 -28
- package/src/sap/ui/rta/util/Animation.js +1 -3
- package/src/sap/ui/rta/util/PluginManager.js +1 -3
- package/src/sap/ui/rta/util/PopupManager.js +23 -19
- package/src/sap/ui/rta/util/ReloadManager.js +4 -4
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +18 -16
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +6 -9
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +9 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +2 -2
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +2 -1
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/StylesLoader.js +0 -31
- package/src/sap/ui/rta/util/UrlParser.js +0 -51
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
var oI18n;
|
|
45
45
|
|
|
46
46
|
return Controller.extend("sap.ui.rta.appVariant.manageApps.webapp.controller.ManageApps", {
|
|
47
|
-
onInit
|
|
47
|
+
onInit() {
|
|
48
48
|
_sIdRunningApp = this.getOwnerComponent().getIdRunningApp();
|
|
49
49
|
_bKeyUser = this.getOwnerComponent().getIsOverviewForKeyUser();
|
|
50
50
|
_sLayer = this.getOwnerComponent().getLayer();
|
|
@@ -85,20 +85,20 @@ sap.ui.define([
|
|
|
85
85
|
});
|
|
86
86
|
},
|
|
87
87
|
|
|
88
|
-
_createResourceBundle
|
|
89
|
-
sModulePath = sap.ui.require.toUrl("sap/ui/rta/appVariant/manageApps/")
|
|
88
|
+
_createResourceBundle() {
|
|
89
|
+
sModulePath = `${sap.ui.require.toUrl("sap/ui/rta/appVariant/manageApps/")}webapp`;
|
|
90
90
|
oI18n = ResourceBundle.create({
|
|
91
|
-
url: sModulePath
|
|
91
|
+
url: `${sModulePath}/i18n/i18n.properties`
|
|
92
92
|
});
|
|
93
93
|
},
|
|
94
94
|
|
|
95
|
-
_showMessageWhenNoAppVariantsExist
|
|
95
|
+
_showMessageWhenNoAppVariantsExist() {
|
|
96
96
|
return RtaUtils.showMessageBox(MessageBox.Icon.INFORMATION, "MSG_APP_VARIANT_OVERVIEW_SAP_DEVELOPER", {
|
|
97
97
|
titleKey: "TITLE_APP_VARIANT_OVERVIEW_SAP_DEVELOPER"
|
|
98
98
|
});
|
|
99
99
|
},
|
|
100
100
|
|
|
101
|
-
_highlightNewCreatedAppVariant
|
|
101
|
+
_highlightNewCreatedAppVariant(aAppVariantOverviewAttributes) {
|
|
102
102
|
var oTable = this.byId("Table1");
|
|
103
103
|
oTable.focus();
|
|
104
104
|
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
return Promise.resolve();
|
|
116
116
|
},
|
|
117
117
|
|
|
118
|
-
_arrangeOverviewDataAndBindToModel
|
|
118
|
+
_arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes) {
|
|
119
119
|
var aAdaptingAppAttributes = aAppVariantOverviewAttributes.filter(function(oAppVariantProperty) {
|
|
120
120
|
return oAppVariantProperty.appId === _sIdRunningApp;
|
|
121
121
|
});
|
|
@@ -155,7 +155,7 @@ sap.ui.define([
|
|
|
155
155
|
return Promise.resolve(aAppVariantOverviewAttributes);
|
|
156
156
|
},
|
|
157
157
|
|
|
158
|
-
formatRowHighlight
|
|
158
|
+
formatRowHighlight(sValue) {
|
|
159
159
|
// Your logic for rowHighlight goes here
|
|
160
160
|
if (sValue === oI18n.getText("MAA_CURRENTLY_ADAPTING")) {
|
|
161
161
|
return "Success";
|
|
@@ -168,7 +168,7 @@ sap.ui.define([
|
|
|
168
168
|
return "None";
|
|
169
169
|
},
|
|
170
170
|
|
|
171
|
-
formatDelButtonTooltip
|
|
171
|
+
formatDelButtonTooltip(bDelAppVarButtonEnabled, bIsS4HanaCloud) {
|
|
172
172
|
if (!oI18n) {
|
|
173
173
|
this._createResourceBundle();
|
|
174
174
|
}
|
|
@@ -178,7 +178,7 @@ sap.ui.define([
|
|
|
178
178
|
return undefined;
|
|
179
179
|
},
|
|
180
180
|
|
|
181
|
-
formatAdaptUIButtonTooltip
|
|
181
|
+
formatAdaptUIButtonTooltip(bAdaptUIButtonEnabled, sAppVarStatus) {
|
|
182
182
|
if (!oI18n) {
|
|
183
183
|
this._createResourceBundle();
|
|
184
184
|
}
|
|
@@ -202,20 +202,20 @@ sap.ui.define([
|
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
204
|
|
|
205
|
-
formatAdaptUIButtonVisibility
|
|
205
|
+
formatAdaptUIButtonVisibility(bVisible, bKeyUser) {
|
|
206
206
|
return bVisible && bKeyUser;
|
|
207
207
|
},
|
|
208
208
|
|
|
209
|
-
getModelProperty
|
|
209
|
+
getModelProperty(sModelPropName, sBindingContext) {
|
|
210
210
|
return this.getView().getModel().getProperty(sModelPropName, sBindingContext);
|
|
211
211
|
},
|
|
212
212
|
|
|
213
|
-
onMenuAction
|
|
213
|
+
onMenuAction(oEvent) {
|
|
214
214
|
var oItem = oEvent.getParameter("item");
|
|
215
215
|
var sItemPath = "";
|
|
216
216
|
|
|
217
217
|
while (oItem instanceof MenuItem) {
|
|
218
|
-
sItemPath = oItem.getText()
|
|
218
|
+
sItemPath = `${oItem.getText()} > ${sItemPath}`;
|
|
219
219
|
oItem = oItem.getParent();
|
|
220
220
|
}
|
|
221
221
|
|
|
@@ -236,7 +236,7 @@ sap.ui.define([
|
|
|
236
236
|
return undefined;
|
|
237
237
|
},
|
|
238
238
|
|
|
239
|
-
handleUiAdaptation
|
|
239
|
+
handleUiAdaptation(oEvent) {
|
|
240
240
|
var sSemanticObject = this.getModelProperty("semanticObject", oEvent.getSource().getBindingContext());
|
|
241
241
|
var sAction = this.getModelProperty("action", oEvent.getSource().getBindingContext());
|
|
242
242
|
var oParams = this.getModelProperty("params", oEvent.getSource().getBindingContext());
|
|
@@ -265,13 +265,13 @@ sap.ui.define([
|
|
|
265
265
|
return false;
|
|
266
266
|
},
|
|
267
267
|
|
|
268
|
-
copyId
|
|
268
|
+
copyId(oEvent) {
|
|
269
269
|
var sCopiedId = this.getModelProperty("appId", oEvent.getSource().getBindingContext());
|
|
270
270
|
AppVariantUtils.copyId(sCopiedId);
|
|
271
271
|
MessageToast.show(oI18n.getText("MAA_COPY_ID_SUCCESS"));
|
|
272
272
|
},
|
|
273
273
|
|
|
274
|
-
deleteAppVariant
|
|
274
|
+
deleteAppVariant(oEvent) {
|
|
275
275
|
var oInfo = {};
|
|
276
276
|
if (!oI18n) {
|
|
277
277
|
this._createResourceBundle();
|
|
@@ -16,13 +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.118.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.75
|
|
23
23
|
* @alias sap.ui.rta.command.AddIFrame
|
|
24
|
-
* @experimental Since 1.75. This class is experimental and provides only limited functionality. Also the API might be
|
|
25
|
-
* changed in future.
|
|
26
24
|
*/
|
|
27
25
|
var AddIFrame = FlexCommand.extend("sap.ui.rta.command.AddIFrame", {
|
|
28
26
|
metadata: {
|
|
@@ -67,7 +65,8 @@ sap.ui.define([
|
|
|
67
65
|
});
|
|
68
66
|
|
|
69
67
|
// Override to avoid url to be 'bound'
|
|
70
|
-
AddIFrame.prototype.applySettings = function(
|
|
68
|
+
AddIFrame.prototype.applySettings = function(...aArgs) {
|
|
69
|
+
const mSettings = aArgs[0];
|
|
71
70
|
var mSettingsWithoutUrl = {};
|
|
72
71
|
Object.keys(mSettings)
|
|
73
72
|
.filter(function(sSettingName) {
|
|
@@ -76,9 +75,8 @@ sap.ui.define([
|
|
|
76
75
|
.forEach(function(sSettingName) {
|
|
77
76
|
mSettingsWithoutUrl[sSettingName] = mSettings[sSettingName];
|
|
78
77
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
FlexCommand.prototype.applySettings.apply(this, aArguments);
|
|
78
|
+
aArgs[0] = mSettingsWithoutUrl;
|
|
79
|
+
FlexCommand.prototype.applySettings.apply(this, aArgs);
|
|
82
80
|
this.setUrl(mSettings.url);
|
|
83
81
|
};
|
|
84
82
|
|
|
@@ -14,13 +14,11 @@ sap.ui.define([
|
|
|
14
14
|
* @class
|
|
15
15
|
* @extends sap.ui.rta.command.FlexCommand
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.118.0
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.78
|
|
21
21
|
* @alias sap.ui.rta.command.AddProperty
|
|
22
|
-
* @experimental Since 1.78. This class is experimental and provides only limited functionality. Also the API might be
|
|
23
|
-
* changed in future.
|
|
24
22
|
*/
|
|
25
23
|
var AddProperty = FlexCommand.extend("sap.ui.rta.command.AddProperty", {
|
|
26
24
|
metadata: {
|
|
@@ -16,13 +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.118.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.54
|
|
23
23
|
* @alias sap.ui.rta.command.AddXML
|
|
24
|
-
* @experimental Since 1.54. This class is experimental and provides only limited functionality. Also the API might be
|
|
25
|
-
* changed in future.
|
|
26
24
|
*/
|
|
27
25
|
var AddXML = FlexCommand.extend("sap.ui.rta.command.AddXML", {
|
|
28
26
|
metadata: {
|
|
@@ -58,11 +56,12 @@ sap.ui.define([
|
|
|
58
56
|
* Overridden to suppress the {} being recognized as binding strings.
|
|
59
57
|
* @override
|
|
60
58
|
*/
|
|
61
|
-
AddXML.prototype.bindProperty = function(
|
|
59
|
+
AddXML.prototype.bindProperty = function(...aArgs) {
|
|
60
|
+
const [sName, oBindingInfo] = aArgs;
|
|
62
61
|
if (sName === "fragment") {
|
|
63
62
|
return this.setFragment(oBindingInfo.bindingString);
|
|
64
63
|
}
|
|
65
|
-
return FlexCommand.prototype.bindProperty.apply(this,
|
|
64
|
+
return FlexCommand.prototype.bindProperty.apply(this, aArgs);
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
/**
|
|
@@ -70,13 +69,14 @@ sap.ui.define([
|
|
|
70
69
|
* When first applying a change we need to do the same.
|
|
71
70
|
* @override
|
|
72
71
|
*/
|
|
73
|
-
AddXML.prototype._applyChange = function(
|
|
72
|
+
AddXML.prototype._applyChange = function(...aArgs) {
|
|
73
|
+
const vChange = aArgs[0];
|
|
74
74
|
// preload the module to be applicable in this session
|
|
75
75
|
var mModulePreloads = {};
|
|
76
76
|
mModulePreloads[vChange.getFlexObjectMetadata().moduleName] = this.getFragment();
|
|
77
77
|
sap.ui.require.preload(mModulePreloads);
|
|
78
78
|
|
|
79
|
-
return FlexCommand.prototype._applyChange.apply(this,
|
|
79
|
+
return FlexCommand.prototype._applyChange.apply(this, aArgs);
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
return AddXML;
|
|
@@ -24,13 +24,11 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.rta.command.FlexCommand
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.118.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.76
|
|
31
31
|
* @alias sap.ui.rta.command.AddXMLAtExtensionPoint
|
|
32
|
-
* @experimental Since 1.76. This class is experimental and provides only limited functionality. Also the API might be
|
|
33
|
-
* changed in future.
|
|
34
32
|
*/
|
|
35
33
|
var AddXMLAtExtensionPoint = FlexCommand.extend("sap.ui.rta.command.AddXMLAtExtensionPoint", {
|
|
36
34
|
metadata: {
|
|
@@ -58,11 +56,12 @@ sap.ui.define([
|
|
|
58
56
|
* Overridden to suppress the {} being recognized as binding strings.
|
|
59
57
|
* @override
|
|
60
58
|
*/
|
|
61
|
-
AddXMLAtExtensionPoint.prototype.bindProperty = function(
|
|
59
|
+
AddXMLAtExtensionPoint.prototype.bindProperty = function(...aArgs) {
|
|
60
|
+
const [sName, oBindingInfo] = aArgs;
|
|
62
61
|
if (sName === "fragment") {
|
|
63
62
|
return this.setFragment(oBindingInfo.bindingString);
|
|
64
63
|
}
|
|
65
|
-
return FlexCommand.prototype.bindProperty.apply(this,
|
|
64
|
+
return FlexCommand.prototype.bindProperty.apply(this, aArgs);
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
AddXMLAtExtensionPoint.prototype.getAppComponent = function() {
|
|
@@ -102,6 +101,7 @@ sap.ui.define([
|
|
|
102
101
|
if (!oResult.success) {
|
|
103
102
|
return Promise.reject(oResult.error);
|
|
104
103
|
}
|
|
104
|
+
return undefined;
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
107
|
|
|
@@ -21,14 +21,12 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.118.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.49
|
|
29
29
|
* @alias sap.ui.rta.command.AppDescriptorCommand
|
|
30
|
-
* @experimental Since 1.49. This class is experimental and provides only limited functionality. Also the API might be
|
|
31
|
-
* changed in future.
|
|
32
30
|
*/
|
|
33
31
|
var AppDescriptorCommand = BaseCommand.extend("sap.ui.rta.command.AppDescriptorCommand", {
|
|
34
32
|
metadata: {
|
|
@@ -13,14 +13,12 @@ sap.ui.define(["sap/ui/base/ManagedObject"], function(ManagedObject) {
|
|
|
13
13
|
* @extends sap.ui.base.ManagedObject
|
|
14
14
|
*
|
|
15
15
|
* @author SAP SE
|
|
16
|
-
* @version 1.
|
|
16
|
+
* @version 1.118.0
|
|
17
17
|
*
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.34
|
|
21
21
|
* @alias sap.ui.rta.command.BaseCommand
|
|
22
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
23
|
-
* changed in future.
|
|
24
22
|
*/
|
|
25
23
|
var BaseCommand = ManagedObject.extend("sap.ui.rta.command.BaseCommand", {
|
|
26
24
|
metadata: {
|
|
@@ -26,13 +26,11 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @extends sap.ui.rta.command.FlexCommand
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.118.0
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.38
|
|
33
33
|
* @alias sap.ui.rta.command.BindProperty
|
|
34
|
-
* @experimental Since 1.38. This class is experimental and provides only limited functionality. Also the API might be
|
|
35
|
-
* changed in future.
|
|
36
34
|
*/
|
|
37
35
|
var BindProperty = FlexCommand.extend("sap.ui.rta.command.BindProperty", {
|
|
38
36
|
metadata: {
|
|
@@ -58,11 +56,12 @@ sap.ui.define([
|
|
|
58
56
|
* Overridden to suppress the binding strings to be used as binding.
|
|
59
57
|
* @override
|
|
60
58
|
*/
|
|
61
|
-
BindProperty.prototype.bindProperty = function(
|
|
59
|
+
BindProperty.prototype.bindProperty = function(...aArgs) {
|
|
60
|
+
const [sName, oBindingInfo] = aArgs;
|
|
62
61
|
if (sName === "newBinding") {
|
|
63
62
|
return this.setNewBinding(oBindingInfo.bindingString);
|
|
64
63
|
}
|
|
65
|
-
return FlexCommand.prototype.bindProperty.apply(this,
|
|
64
|
+
return FlexCommand.prototype.bindProperty.apply(this, aArgs);
|
|
66
65
|
};
|
|
67
66
|
|
|
68
67
|
BindProperty.prototype._getChangeSpecificData = function() {
|
|
@@ -16,13 +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.118.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.46
|
|
23
23
|
* @alias sap.ui.rta.command.Combine
|
|
24
|
-
* @experimental Since 1.46. This class is experimental and provides only limited functionality. Also the API might be
|
|
25
|
-
* changed in future.
|
|
26
24
|
*/
|
|
27
25
|
var Combine = FlexCommand.extend("sap.ui.rta.command.Combine", {
|
|
28
26
|
metadata: {
|
|
@@ -405,7 +405,7 @@ sap.ui.define([
|
|
|
405
405
|
var mAllFlexSettings = mFlexSettings;
|
|
406
406
|
|
|
407
407
|
if (!mCommand) {
|
|
408
|
-
return Promise.reject(DtUtil.createError("CommandFactory#getCommandFor",
|
|
408
|
+
return Promise.reject(DtUtil.createError("CommandFactory#getCommandFor", `Command '${sCommand}' doesn't exist, check typing`, "sap.ui.rta"));
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
return new Promise(function(fnResolve) {
|
|
@@ -485,14 +485,12 @@ sap.ui.define([
|
|
|
485
485
|
* @extends sap.ui.base.ManagedObject
|
|
486
486
|
*
|
|
487
487
|
* @author SAP SE
|
|
488
|
-
* @version 1.
|
|
488
|
+
* @version 1.118.0
|
|
489
489
|
*
|
|
490
490
|
* @constructor
|
|
491
491
|
* @private
|
|
492
492
|
* @since 1.34
|
|
493
493
|
* @alias sap.ui.rta.command.CommandFactory
|
|
494
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
495
|
-
* changed in future.
|
|
496
494
|
*/
|
|
497
495
|
var CommandFactory = ManagedObject.extend("sap.ui.rta.command.CommandFactory", {
|
|
498
496
|
metadata: {
|
|
@@ -550,17 +548,15 @@ sap.ui.define([
|
|
|
550
548
|
* @returns {Promise} A promise which will return the created command
|
|
551
549
|
*/
|
|
552
550
|
CommandFactory.getCommandFor = function(vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings) {
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
};
|
|
558
|
-
}
|
|
551
|
+
mFlexSettings ||= {
|
|
552
|
+
layer: Layer.CUSTOMER,
|
|
553
|
+
developerMode: true
|
|
554
|
+
};
|
|
559
555
|
|
|
560
556
|
if (mFlexSettings.scenario || mFlexSettings.baseId) {
|
|
561
557
|
var sLRepRootNamespace = FlexUtils.buildLrepRootNamespace(mFlexSettings.baseId, mFlexSettings.scenario, mFlexSettings.projectId);
|
|
562
558
|
mFlexSettings.rootNamespace = sLRepRootNamespace;
|
|
563
|
-
mFlexSettings.namespace = sLRepRootNamespace
|
|
559
|
+
mFlexSettings.namespace = `${sLRepRootNamespace}changes/`;
|
|
564
560
|
}
|
|
565
561
|
|
|
566
562
|
return getCommandFor(vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings);
|
|
@@ -21,14 +21,12 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.118.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.34
|
|
29
29
|
* @alias sap.ui.rta.command.CompositeCommand
|
|
30
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
31
|
-
* changed in future.
|
|
32
30
|
*/
|
|
33
31
|
var CompositeCommand = BaseCommand.extend("sap.ui.rta.command.CompositeCommand", {
|
|
34
32
|
metadata: {
|
|
@@ -93,9 +91,7 @@ sap.ui.define([
|
|
|
93
91
|
};
|
|
94
92
|
|
|
95
93
|
CompositeCommand.prototype._addCompositeIdToChange = function(oCommand) {
|
|
96
|
-
|
|
97
|
-
this._sCompositeId = FlUtils.createDefaultFileName("composite");
|
|
98
|
-
}
|
|
94
|
+
this._sCompositeId ||= FlUtils.createDefaultFileName("composite");
|
|
99
95
|
var oPreparedChange = oCommand.getPreparedChange && oCommand.getPreparedChange();
|
|
100
96
|
if (oPreparedChange) {
|
|
101
97
|
var oChangeSupportInformation = oPreparedChange.getSupportInformation();
|
|
@@ -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.
|
|
27
|
+
* @version 1.118.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.52
|
|
@@ -108,7 +108,7 @@ sap.ui.define([
|
|
|
108
108
|
this.getChanges().forEach(function(mChangeProperties, index) {
|
|
109
109
|
mPropertyBag = {};
|
|
110
110
|
Object.keys(mChangeProperties).forEach(function(sProperty) {
|
|
111
|
-
var sOriginalProperty =
|
|
111
|
+
var sOriginalProperty = `original${sProperty.charAt(0).toUpperCase()}${sProperty.substr(1)}`;
|
|
112
112
|
if (sProperty === "visible") {
|
|
113
113
|
mPropertyBag[sProperty] = true; /* visibility of the variant always set back to true on undo */
|
|
114
114
|
} else if (mChangeProperties[sOriginalProperty]) {
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @class
|
|
29
29
|
* @extends sap.ui.rta.command.BaseCommand
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.118.0
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
34
34
|
* @since 1.86
|
|
@@ -83,8 +83,8 @@ sap.ui.define([
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
return new Promise(function(resolve) {
|
|
86
|
-
this.oVariantManagementControl.attachSave({resolve
|
|
87
|
-
this.oVariantManagementControl.attachCancel({resolve
|
|
86
|
+
this.oVariantManagementControl.attachSave({resolve}, storeEventParameters, this);
|
|
87
|
+
this.oVariantManagementControl.attachCancel({resolve}, handleCancel, this);
|
|
88
88
|
this.oVariantManagementControl.openSaveAsDialogForKeyUser(rtaUtils.getRtaStyleClassName(),
|
|
89
89
|
ContextSharingAPI.createComponent(mComponentPropertyBag));
|
|
90
90
|
}.bind(this))
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
return this.oModel._handleSave(this.oVariantManagementControl, mParams)
|
|
116
116
|
.then(function(aDirtyChanges) {
|
|
117
117
|
this._aPreparedChanges = aDirtyChanges;
|
|
118
|
-
this._oVariantChange = aDirtyChanges
|
|
118
|
+
[this._oVariantChange] = aDirtyChanges;
|
|
119
119
|
this.sNewVariantReference = this._oVariantChange.getId();
|
|
120
120
|
this._aPreparedChanges.forEach(function(oChange) {
|
|
121
121
|
if (oChange.getFileType() === "change") {
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @class
|
|
23
23
|
* @extends sap.ui.rta.command.BaseCommand
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.118.0
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
28
28
|
* @since 1.50
|
|
@@ -45,8 +45,9 @@ sap.ui.define([
|
|
|
45
45
|
associations: {},
|
|
46
46
|
events: {}
|
|
47
47
|
},
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
// eslint-disable-next-line object-shorthand
|
|
49
|
+
constructor: function(...aArgs) {
|
|
50
|
+
BaseCommand.apply(this, aArgs);
|
|
50
51
|
this.setRelevantForSave(false);
|
|
51
52
|
}
|
|
52
53
|
});
|
|
@@ -12,13 +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.118.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.34
|
|
19
19
|
* @alias sap.ui.rta.command.CreateContainer
|
|
20
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
21
|
-
* changed in future.
|
|
22
20
|
*/
|
|
23
21
|
var CreateContainer = FlexCommand.extend("sap.ui.rta.command.CreateContainer", {
|
|
24
22
|
metadata: {
|
|
@@ -12,12 +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.118.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.62
|
|
19
19
|
* @alias sap.ui.rta.command.CustomAdd
|
|
20
|
-
* @experimental Since 1.62. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
21
20
|
*/
|
|
22
21
|
var CustomAdd = FlexCommand.extend("sap.ui.rta.command.CustomAdd", {
|
|
23
22
|
metadata: {
|
|
@@ -33,14 +33,12 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.ui.rta.command.BaseCommand
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.118.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
40
40
|
* @since 1.34
|
|
41
41
|
* @alias sap.ui.rta.command.FlexCommand
|
|
42
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
43
|
-
* changed in future.
|
|
44
42
|
*/
|
|
45
43
|
var FlexCommand = BaseCommand.extend("sap.ui.rta.command.FlexCommand", {
|
|
46
44
|
metadata: {
|
|
@@ -243,10 +241,7 @@ sap.ui.define([
|
|
|
243
241
|
* @param {sap.ui.fl.apply._internal.flexObjects.UIChange|Object} vChange Change object or map containing the change object
|
|
244
242
|
* @returns {Promise} Returns an empty promise
|
|
245
243
|
*/
|
|
246
|
-
FlexCommand.prototype._applyChange = function(
|
|
247
|
-
// TODO: remove the following compatibility code when concept is implemented
|
|
248
|
-
var oChange = vChange.change || vChange;
|
|
249
|
-
|
|
244
|
+
FlexCommand.prototype._applyChange = function(oChange) {
|
|
250
245
|
var oAppComponent = this.getAppComponent();
|
|
251
246
|
var oSelectorElement = JsControlTreeModifier.bySelector(oChange.getSelector(), oAppComponent);
|
|
252
247
|
|
|
@@ -27,13 +27,11 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* @extends sap.ui.base.ManagedObject
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.118.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.42
|
|
34
34
|
* @alias sap.ui.rta.command.LREPSerializer
|
|
35
|
-
* @experimental Since 1.42. This class is experimental and provides only limited functionality. Also the API might be
|
|
36
|
-
* changed in future.
|
|
37
35
|
*/
|
|
38
36
|
var LREPSerializer = ManagedObject.extend("sap.ui.rta.command.LREPSerializer", {
|
|
39
37
|
metadata: {
|
|
@@ -17,13 +17,11 @@ function(
|
|
|
17
17
|
* @class
|
|
18
18
|
* @extends sap.ui.rta.command.FlexCommand
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.118.0
|
|
21
21
|
* @constructor
|
|
22
22
|
* @private
|
|
23
23
|
* @since 1.34
|
|
24
24
|
* @alias sap.ui.rta.command.Move
|
|
25
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
26
|
-
* changed in future.
|
|
27
25
|
*/
|
|
28
26
|
var Move = FlexCommand.extend("sap.ui.rta.command.Move", {
|
|
29
27
|
metadata: {
|
|
@@ -16,13 +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.118.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.34
|
|
23
23
|
* @alias sap.ui.rta.command.Property
|
|
24
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
25
|
-
* changed in future.
|
|
26
24
|
*/
|
|
27
25
|
var Property = FlexCommand.extend("sap.ui.rta.command.Property", {
|
|
28
26
|
metadata: {
|
|
@@ -12,13 +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.118.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.42
|
|
19
19
|
* @alias sap.ui.rta.command.Remove
|
|
20
|
-
* @experimental Since 1.42. This class is experimental and provides only limited functionality. Also the API might be
|
|
21
|
-
* changed in future.
|
|
22
20
|
*/
|
|
23
21
|
var Remove = FlexCommand.extend("sap.ui.rta.command.Remove", {
|
|
24
22
|
metadata: {
|
|
@@ -12,13 +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.118.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.34
|
|
19
19
|
* @alias sap.ui.rta.command.Rename
|
|
20
|
-
* @experimental Since 1.34. This class is experimental and provides only limited functionality. Also the API might be
|
|
21
|
-
* changed in future.
|
|
22
20
|
*/
|
|
23
21
|
var Rename = FlexCommand.extend("sap.ui.rta.command.Rename", {
|
|
24
22
|
metadata: {
|