@openui5/sap.ui.rta 1.94.0 → 1.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +12 -12
- package/THIRDPARTY.txt +21 -17
- 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 +108 -73
- package/src/sap/ui/rta/Utils.js +73 -1
- package/src/sap/ui/rta/api/startAdaptation.js +1 -2
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +8 -5
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +27 -22
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +108 -85
- package/src/sap/ui/rta/appVariant/Feature.js +5 -12
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -1
- package/src/sap/ui/rta/appVariant/Utils.js +10 -2
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +35 -20
- 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 +4 -3
- 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 -4
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +7 -4
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +7 -7
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -6
- 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/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/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 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +14 -12
- package/src/sap/ui/rta/messagebundle_ar.properties +11 -10
- package/src/sap/ui/rta/messagebundle_bg.properties +11 -10
- package/src/sap/ui/rta/messagebundle_ca.properties +10 -9
- package/src/sap/ui/rta/messagebundle_cs.properties +11 -10
- package/src/sap/ui/rta/messagebundle_cy.properties +11 -10
- package/src/sap/ui/rta/messagebundle_da.properties +11 -10
- package/src/sap/ui/rta/messagebundle_de.properties +14 -13
- package/src/sap/ui/rta/messagebundle_el.properties +11 -10
- package/src/sap/ui/rta/messagebundle_en.properties +11 -10
- package/src/sap/ui/rta/messagebundle_en_GB.properties +11 -10
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +11 -10
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +11 -10
- package/src/sap/ui/rta/messagebundle_es.properties +11 -10
- package/src/sap/ui/rta/messagebundle_es_MX.properties +11 -10
- package/src/sap/ui/rta/messagebundle_et.properties +11 -10
- package/src/sap/ui/rta/messagebundle_fi.properties +10 -9
- package/src/sap/ui/rta/messagebundle_fr.properties +11 -10
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +11 -10
- package/src/sap/ui/rta/messagebundle_hi.properties +11 -10
- package/src/sap/ui/rta/messagebundle_hr.properties +11 -10
- package/src/sap/ui/rta/messagebundle_hu.properties +10 -9
- package/src/sap/ui/rta/messagebundle_id.properties +11 -10
- package/src/sap/ui/rta/messagebundle_it.properties +11 -10
- package/src/sap/ui/rta/messagebundle_iw.properties +11 -10
- package/src/sap/ui/rta/messagebundle_ja.properties +11 -10
- package/src/sap/ui/rta/messagebundle_kk.properties +11 -10
- package/src/sap/ui/rta/messagebundle_ko.properties +11 -10
- package/src/sap/ui/rta/messagebundle_lt.properties +11 -10
- package/src/sap/ui/rta/messagebundle_lv.properties +11 -10
- package/src/sap/ui/rta/messagebundle_ms.properties +11 -10
- package/src/sap/ui/rta/messagebundle_nl.properties +11 -10
- package/src/sap/ui/rta/messagebundle_no.properties +11 -10
- package/src/sap/ui/rta/messagebundle_pl.properties +11 -10
- package/src/sap/ui/rta/messagebundle_pt.properties +10 -9
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -9
- package/src/sap/ui/rta/messagebundle_ro.properties +11 -10
- package/src/sap/ui/rta/messagebundle_ru.properties +10 -9
- package/src/sap/ui/rta/messagebundle_sh.properties +11 -10
- package/src/sap/ui/rta/messagebundle_sk.properties +11 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +11 -10
- package/src/sap/ui/rta/messagebundle_sv.properties +11 -10
- package/src/sap/ui/rta/messagebundle_th.properties +16 -15
- package/src/sap/ui/rta/messagebundle_tr.properties +11 -10
- package/src/sap/ui/rta/messagebundle_uk.properties +12 -11
- package/src/sap/ui/rta/messagebundle_vi.properties +11 -10
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +11 -10
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +11 -10
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +1 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +10 -5
- 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 +52 -2
- 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 +14 -62
- 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 +4 -14
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +15 -14
- package/src/sap/ui/rta/plugin/Split.js +2 -1
- package/src/sap/ui/rta/plugin/Stretch.js +133 -138
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +6 -6
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +74 -0
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +97 -260
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +31 -18
- 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 +8 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +31 -29
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -16
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.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 +164 -67
- package/src/sap/ui/rta/service/Property.js +1 -3
- package/src/sap/ui/rta/service/Selection.js +2 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -30
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +55 -0
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +12 -1
- package/src/sap/ui/rta/themes/base/library.source.less +3 -1
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +26 -14
- package/src/sap/ui/rta/toolbar/Adaptation.js +3 -3
- 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 +3 -3
- 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 +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +13 -7
- package/src/sap/ui/rta/util/PluginManager.js +2 -4
- package/src/sap/ui/rta/util/PopupManager.js +3 -11
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +4 -4
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +16 -78
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +15 -37
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +85 -107
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +30 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +3 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +30 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +9 -3
- package/src/sap/ui/rta/util/validateFlexEnabled.js +4 -4
- package/ui5.yaml +4 -1
- package/src/sap/ui/rta/assets/InPageStyles.css +0 -34
- package/src/sap/ui/rta/util/changeVisualization/ChangesListPopover.fragment.xml +0 -23
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/core/mvc/Controller",
|
|
8
8
|
"sap/ui/fl/Layer",
|
|
9
|
+
"sap/ui/fl/Utils",
|
|
9
10
|
"sap/ui/rta/appVariant/manageApps/webapp/model/models",
|
|
10
11
|
"sap/ui/rta/appVariant/AppVariantUtils",
|
|
11
12
|
"sap/ui/rta/appVariant/Utils",
|
|
@@ -19,6 +20,7 @@ sap.ui.define([
|
|
|
19
20
|
], function(
|
|
20
21
|
Controller,
|
|
21
22
|
Layer,
|
|
23
|
+
FlUtils,
|
|
22
24
|
Model,
|
|
23
25
|
AppVariantUtils,
|
|
24
26
|
AppVariantOverviewUtils,
|
|
@@ -35,6 +37,7 @@ sap.ui.define([
|
|
|
35
37
|
var _sIdRunningApp;
|
|
36
38
|
var _bKeyUser;
|
|
37
39
|
var _sLayer;
|
|
40
|
+
var _oCrossAppNavService;
|
|
38
41
|
var sModulePath;
|
|
39
42
|
var oI18n;
|
|
40
43
|
|
|
@@ -43,29 +46,41 @@ sap.ui.define([
|
|
|
43
46
|
_sIdRunningApp = this.getOwnerComponent().getIdRunningApp();
|
|
44
47
|
_bKeyUser = this.getOwnerComponent().getIsOverviewForKeyUser();
|
|
45
48
|
_sLayer = this.getOwnerComponent().getLayer();
|
|
49
|
+
var oUShellContainer = FlUtils.getUshellContainer();
|
|
46
50
|
|
|
47
51
|
if (!oI18n) {
|
|
48
52
|
this._createResourceBundle();
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
BusyIndicator.show();
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
return Promise.resolve()
|
|
57
|
+
.then(function() {
|
|
58
|
+
if (oUShellContainer) {
|
|
59
|
+
return oUShellContainer.getServiceAsync("CrossApplicationNavigation")
|
|
60
|
+
.then(function(oCrossAppNavService) {
|
|
61
|
+
_oCrossAppNavService = oCrossAppNavService;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
})
|
|
66
|
+
.then(AppVariantOverviewUtils.getAppVariantOverview.bind(AppVariantOverviewUtils, _sIdRunningApp, _bKeyUser))
|
|
67
|
+
.then(function(aAppVariantOverviewAttributes) {
|
|
68
|
+
BusyIndicator.hide();
|
|
69
|
+
if (aAppVariantOverviewAttributes.length) {
|
|
70
|
+
return this._arrangeOverviewDataAndBindToModel(aAppVariantOverviewAttributes).then(function(aAppVariantOverviewAttributes) {
|
|
71
|
+
return this._highlightNewCreatedAppVariant(aAppVariantOverviewAttributes);
|
|
72
|
+
}.bind(this));
|
|
73
|
+
}
|
|
74
|
+
AppVariantUtils.closeOverviewDialog();
|
|
75
|
+
return this._showMessageWhenNoAppVariantsExist();
|
|
76
|
+
}.bind(this))
|
|
77
|
+
.catch(function(oError) {
|
|
78
|
+
AppVariantUtils.closeOverviewDialog();
|
|
79
|
+
var oErrorInfo = AppVariantUtils.buildErrorInfo("MSG_MANAGE_APPS_FAILED", oError);
|
|
80
|
+
oErrorInfo.overviewDialog = true;
|
|
81
|
+
BusyIndicator.hide();
|
|
82
|
+
return AppVariantUtils.showRelevantDialog(oErrorInfo, false);
|
|
83
|
+
});
|
|
69
84
|
},
|
|
70
85
|
|
|
71
86
|
_createResourceBundle: function() {
|
|
@@ -222,8 +237,6 @@ sap.ui.define([
|
|
|
222
237
|
},
|
|
223
238
|
|
|
224
239
|
handleUiAdaptation: function(oEvent) {
|
|
225
|
-
var oNavigationService = sap.ushell.Container.getService("CrossApplicationNavigation");
|
|
226
|
-
|
|
227
240
|
var sSemanticObject = this.getModelProperty("semanticObject", oEvent.getSource().getBindingContext());
|
|
228
241
|
var sAction = this.getModelProperty("action", oEvent.getSource().getBindingContext());
|
|
229
242
|
var oParams = this.getModelProperty("params", oEvent.getSource().getBindingContext());
|
|
@@ -241,7 +254,9 @@ sap.ui.define([
|
|
|
241
254
|
|
|
242
255
|
RuntimeAuthoring.enableRestart(Layer.CUSTOMER);
|
|
243
256
|
|
|
244
|
-
|
|
257
|
+
if (_oCrossAppNavService) {
|
|
258
|
+
_oCrossAppNavService.toExternal(oNavigationParams);
|
|
259
|
+
}
|
|
245
260
|
|
|
246
261
|
AppVariantUtils.closeOverviewDialog();
|
|
247
262
|
return true;
|
|
@@ -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.97.0
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -64,8 +64,9 @@ sap.ui.define([
|
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
66
|
* Prepare the app descriptor change, setting the layer.
|
|
67
|
-
* @param {object} mFlexSettings Map of flex
|
|
68
|
-
* @param {string} mFlexSettings.layer Layer where the change is applied
|
|
67
|
+
* @param {object} mFlexSettings - Map of flex settings
|
|
68
|
+
* @param {string} mFlexSettings.layer - Layer where the change is applied
|
|
69
|
+
* @returns {boolean} <code>true</true>
|
|
69
70
|
*/
|
|
70
71
|
AppDescriptorCommand.prototype.prepare = function (mFlexSettings) {
|
|
71
72
|
this.setLayer(mFlexSettings.layer);
|
|
@@ -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.
|
|
23
|
+
* @version 1.97.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.52
|
|
@@ -72,7 +72,7 @@ sap.ui.define([
|
|
|
72
72
|
this.getChanges().forEach(function(mChangeProperties) {
|
|
73
73
|
mChangeProperties.appComponent = this.oAppComponent;
|
|
74
74
|
mChangeProperties.generator = sap.ui.rta.GENERATOR_NAME;
|
|
75
|
-
this._aPreparedChanges.push(this.oModel.
|
|
75
|
+
this._aPreparedChanges.push(this.oModel.addVariantChange(this.sVariantManagementReference, mChangeProperties));
|
|
76
76
|
}.bind(this));
|
|
77
77
|
|
|
78
78
|
return Promise.resolve().then(function() {
|
|
@@ -100,8 +100,8 @@ sap.ui.define([
|
|
|
100
100
|
mPropertyBag[sProperty] = mChangeProperties[sProperty];
|
|
101
101
|
}
|
|
102
102
|
});
|
|
103
|
-
|
|
104
|
-
this.oModel.
|
|
103
|
+
var oChange = this._aPreparedChanges[index];
|
|
104
|
+
this.oModel.deleteVariantChange(this.sVariantManagementReference, mPropertyBag, oChange);
|
|
105
105
|
}.bind(this));
|
|
106
106
|
|
|
107
107
|
return Promise.resolve().then(function() {
|
|
@@ -7,12 +7,14 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/rta/command/BaseCommand",
|
|
8
8
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
9
9
|
"sap/ui/rta/Utils",
|
|
10
|
-
"sap/ui/fl/Utils"
|
|
10
|
+
"sap/ui/fl/Utils",
|
|
11
|
+
"sap/ui/fl/write/api/ContextSharingAPI"
|
|
11
12
|
], function(
|
|
12
13
|
BaseCommand,
|
|
13
14
|
JsControlTreeModifier,
|
|
14
15
|
rtaUtils,
|
|
15
|
-
flUtils
|
|
16
|
+
flUtils,
|
|
17
|
+
ContextSharingAPI
|
|
16
18
|
) {
|
|
17
19
|
"use strict";
|
|
18
20
|
|
|
@@ -22,7 +24,7 @@ sap.ui.define([
|
|
|
22
24
|
* @class
|
|
23
25
|
* @extends sap.ui.rta.command.BaseCommand
|
|
24
26
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
27
|
+
* @version 1.97.0
|
|
26
28
|
* @constructor
|
|
27
29
|
* @private
|
|
28
30
|
* @since 1.86
|
|
@@ -77,7 +79,8 @@ sap.ui.define([
|
|
|
77
79
|
return new Promise(function(resolve) {
|
|
78
80
|
this.oVariantManagementControl.attachSave({resolve: resolve}, storeEventParameters, this);
|
|
79
81
|
this.oVariantManagementControl.attachCancel({resolve: resolve}, handleCancel, this);
|
|
80
|
-
this.oVariantManagementControl.openSaveAsDialogForKeyUser(rtaUtils.getRtaStyleClassName()
|
|
82
|
+
this.oVariantManagementControl.openSaveAsDialogForKeyUser(rtaUtils.getRtaStyleClassName(),
|
|
83
|
+
ContextSharingAPI.createComponent(mFlexSettings));
|
|
81
84
|
}.bind(this))
|
|
82
85
|
.then(function(bState) {
|
|
83
86
|
return bState;
|
|
@@ -16,7 +16,7 @@ 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.97.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.50
|
|
@@ -80,7 +80,7 @@ sap.ui.define([
|
|
|
80
80
|
generator: sap.ui.rta.GENERATOR_NAME
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
return Promise.resolve(this.oModel.
|
|
83
|
+
return Promise.resolve(this.oModel.addVariantChange(this.sVariantManagementReference, mPropertyBag))
|
|
84
84
|
.then(function(oChange) {
|
|
85
85
|
this._oVariantChange = oChange;
|
|
86
86
|
oVariantManagementControlBinding.checkUpdate(true); /*Force Update as binding key stays same*/
|
|
@@ -97,13 +97,13 @@ sap.ui.define([
|
|
|
97
97
|
var mPropertyBag = {
|
|
98
98
|
variantReference: this.sCurrentVariant,
|
|
99
99
|
changeType: "setTitle",
|
|
100
|
-
title: this.getOldText()
|
|
101
|
-
change: this._oVariantChange
|
|
100
|
+
title: this.getOldText()
|
|
102
101
|
};
|
|
102
|
+
var oChange = this._oVariantChange;
|
|
103
103
|
|
|
104
|
-
return Promise.resolve(this.oModel.
|
|
105
|
-
.then(function(
|
|
106
|
-
this._oVariantChange =
|
|
104
|
+
return Promise.resolve(this.oModel.deleteVariantChange(this.sVariantManagementReference, mPropertyBag, oChange))
|
|
105
|
+
.then(function() {
|
|
106
|
+
this._oVariantChange = null;
|
|
107
107
|
oVariantManagementControlBinding.checkUpdate(true); /*Force Update as binding key stays same*/
|
|
108
108
|
}.bind(this));
|
|
109
109
|
};
|
|
@@ -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.
|
|
23
|
+
* @version 1.97.0
|
|
24
24
|
* @constructor
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.50
|
|
@@ -74,11 +74,6 @@ sap.ui.define([
|
|
|
74
74
|
return this._updateModelVariant(sOldVariantReference, oAppComponent);
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
/**
|
|
78
|
-
* Update variant for the underlying model.
|
|
79
|
-
* @private
|
|
80
|
-
* @returns {Promise} Returns promise resolve
|
|
81
|
-
*/
|
|
82
77
|
ControlVariantSwitch.prototype._updateModelVariant = function (sVariantReference, oAppComponent) {
|
|
83
78
|
if (this.getTargetVariantReference() !== this.getSourceVariantReference()) {
|
|
84
79
|
return this.oModel.updateCurrentVariant({
|
|
@@ -23,7 +23,7 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.97.0
|
|
27
27
|
* @since 1.50
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -33,7 +33,7 @@ function() {
|
|
|
33
33
|
// delegate further initialization of this library to the Core
|
|
34
34
|
sap.ui.getCore().initLibrary({
|
|
35
35
|
name: "sap.ui.rta",
|
|
36
|
-
version: "1.
|
|
36
|
+
version: "1.97.0",
|
|
37
37
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
38
38
|
types: [],
|
|
39
39
|
interfaces: [],
|
|
@@ -369,7 +369,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_RENAME_TO=Name was changed to ''{0}''
|
|
|
369
369
|
#XTXT: Description for rename-changes
|
|
370
370
|
TXT_CHANGEVISUALIZATION_CHANGE_RENAME_FROM_TO=Name was changed from ''{1}'' to ''{0}''
|
|
371
371
|
#XTXT: Description for move-changes
|
|
372
|
-
TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element {0} was moved
|
|
372
|
+
TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element ''{0}'' was moved
|
|
373
373
|
#XTXT: Description for remove-changes
|
|
374
374
|
TXT_CHANGEVISUALIZATION_CHANGE_REMOVE=Element {0} was removed
|
|
375
375
|
#XTXT: Description for reveal-changes
|
|
@@ -377,7 +377,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_REVEAL=Element {0} was revealed
|
|
|
377
377
|
#XTXT: Description for combine-changes
|
|
378
378
|
TXT_CHANGEVISUALIZATION_CHANGE_COMBINE=Element {0} was combined
|
|
379
379
|
#XTXT: Description for split-changes
|
|
380
|
-
TXT_CHANGEVISUALIZATION_CHANGE_SPLIT=Element {0} was split
|
|
380
|
+
TXT_CHANGEVISUALIZATION_CHANGE_SPLIT=Element ''{0}'' was split
|
|
381
381
|
#XTXT: Description for createcontainer-changes
|
|
382
382
|
TXT_CHANGEVISUALIZATION_CHANGE_CREATECONTAINER=Group {0} was added
|
|
383
383
|
#XTXT: Description for adddelegateproperty-changes
|
|
@@ -386,10 +386,6 @@ TXT_CHANGEVISUALIZATION_CHANGE_ADDDELEGATEPROPERTY=Field {0} was added
|
|
|
386
386
|
TXT_CHANGEVISUALIZATION_CHANGE_ADDIFRAME=IFrame was added
|
|
387
387
|
#XTXT: Description for settings-changes
|
|
388
388
|
TXT_CHANGEVISUALIZATION_CHANGE_SETTINGS=Settings of element {0} were changed
|
|
389
|
-
#XTXT: Description for dependents of move-changes
|
|
390
|
-
TXT_CHANGEVISUALIZATION_DEPENDENT_MOVE=Element was moved from this container
|
|
391
|
-
#XTXT: Description for dependents of split-changes
|
|
392
|
-
TXT_CHANGEVISUALIZATION_DEPENDENT_SPLIT=This element is a part of the split
|
|
393
389
|
#XTIT: Title for SingleChangePopover
|
|
394
390
|
TIT_CHANGEVISUALIZATION_CHANGE=Change
|
|
395
391
|
#XTIT: Title for ChangePopover and ChangesPopover
|
|
@@ -405,28 +401,34 @@ BUT_CHANGEVISUALIZATION_SHOWCHANGES=Visualize Key User Changes
|
|
|
405
401
|
#XTOL: Tooltip for Select Changes Button in Toolbar
|
|
406
402
|
BUT_CHANGEVISUALIZATION_SELECTCHANGES=Select Change Type
|
|
407
403
|
#XTXT: Text for all-changes item of ChangesPopover
|
|
408
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=
|
|
404
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_ALL=All ({0})
|
|
409
405
|
#XBUT: Button text for all-changes
|
|
410
406
|
BTN_CHANGEVISUALIZATION_OVERVIEW_ALL=All Changes
|
|
411
407
|
#XTXT: Text for move-changes item of ChangesPopover
|
|
412
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=
|
|
408
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_MOVE=Move ({0})
|
|
413
409
|
#XBUT: Button text for move-changes
|
|
414
410
|
BTN_CHANGEVISUALIZATION_OVERVIEW_MOVE=Moved Elements
|
|
415
411
|
#XTXT: Text for rename-changes item of ChangesPopover
|
|
416
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=
|
|
412
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Rename ({0})
|
|
417
413
|
#XBUT: Button text for rename-changes
|
|
418
414
|
BTN_CHANGEVISUALIZATION_OVERVIEW_RENAME=Renamed Elements
|
|
419
415
|
#XTXT: Text for add-changes item of ChangesPopover
|
|
420
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=
|
|
416
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Add ({0})
|
|
421
417
|
#BUT: Button text for add-changes
|
|
422
418
|
BTN_CHANGEVISUALIZATION_OVERVIEW_ADD=Added Elements
|
|
423
419
|
#XTXT: Text for combine- and split-changes item of ChangesPopover
|
|
424
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=
|
|
420
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combine and Split ({0})
|
|
425
421
|
#XBUT: Button text for combine- and split-changes
|
|
426
422
|
BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Combined and Split Elements
|
|
427
423
|
#XTXT: Text for remove-changes item of ChangesPopover
|
|
428
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=
|
|
424
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Remove ({0})
|
|
429
425
|
#XBUT: Button text for remove-changes
|
|
430
426
|
BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Removed Elements
|
|
427
|
+
#XTXT: Semantic date for changes created in same session
|
|
428
|
+
TXT_CHANGEVISUALIZATION_CREATED_IN_SESSION_DATE=Just now
|
|
431
429
|
#XMSG: message toast text after a local reset saved the variant
|
|
432
430
|
MSG_LOCAL_RESET_VARIANT_SAVE=The container has been reset and the view has been saved automatically.
|
|
431
|
+
#XBUT: Button text for showing the dependent container of a move change
|
|
432
|
+
BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_MOVE=Show Source
|
|
433
|
+
#XBUT: Button text for showing the dependent container of a split change
|
|
434
|
+
BTN_CHANGEVISUALIZATION_SHOW_DEPENDENT_CONTAINER_SPLIT=Show Other Parts
|