@openui5/sap.ui.rta 1.104.0 → 1.105.1
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 +1 -1
- package/THIRDPARTY.txt +1 -1
- 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 +12 -6
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/api/startAdaptation.js +2 -2
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +5 -3
- 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 +8 -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 +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- 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 +11 -8
- 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 +3 -3
- 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 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle_ar.properties +13 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ca.properties +13 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +13 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +13 -1
- package/src/sap/ui/rta/messagebundle_da.properties +13 -1
- package/src/sap/ui/rta/messagebundle_de.properties +13 -1
- package/src/sap/ui/rta/messagebundle_el.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +5 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +13 -1
- package/src/sap/ui/rta/messagebundle_es.properties +13 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +13 -1
- package/src/sap/ui/rta/messagebundle_et.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +13 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +13 -1
- package/src/sap/ui/rta/messagebundle_id.properties +13 -1
- package/src/sap/ui/rta/messagebundle_it.properties +13 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +13 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +13 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +13 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +13 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_no.properties +13 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +13 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +13 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +13 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +13 -1
- package/src/sap/ui/rta/messagebundle_th.properties +13 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +13 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +13 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +13 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +13 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +13 -1
- 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 +2 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +21 -15
- 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 +1 -1
- 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/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 +8 -9
- 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 +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/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/toolbar/versioning/Versioning.js +1 -1
- 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 +3 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +80 -48
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +100 -55
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +21 -101
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/CombineVisualization.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/getVisualizationCategory.js +8 -3
package/.reuse/dep5
CHANGED
|
@@ -159,7 +159,7 @@ Copyright:
|
|
|
159
159
|
License: Apache-2.0 and MIT
|
|
160
160
|
Comment: these files contain content from SAP and jQuery.rtl-scroll-type: _FeatureDetection.js is overall written by SAP, but contains code which is inspired by jQuery.rtl-scroll-type
|
|
161
161
|
|
|
162
|
-
Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite
|
|
162
|
+
Files: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
|
|
163
163
|
Copyright: jQuery Foundation and other contributors
|
|
164
164
|
License: MIT
|
|
165
165
|
Comment: these files belong to: QUnit Composite
|
package/THIRDPARTY.txt
CHANGED
|
@@ -104,7 +104,7 @@ Component: QUnit Composite, version: 1.0.2-pre
|
|
|
104
104
|
Copyright: jQuery Foundation and other contributors
|
|
105
105
|
License: MIT
|
|
106
106
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
107
|
-
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite
|
|
107
|
+
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-composite.*
|
|
108
108
|
|
|
109
109
|
Component: JUnit Reporter for QUnit, version: 1.1.1
|
|
110
110
|
Copyright: jQuery Foundation and other contributors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.105.1",
|
|
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.105.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.105.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.105.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.105.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.105.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 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.105.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -116,7 +116,7 @@ sap.ui.define([
|
|
|
116
116
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
117
117
|
* @extends sap.ui.base.ManagedObject
|
|
118
118
|
* @author SAP SE
|
|
119
|
-
* @version 1.
|
|
119
|
+
* @version 1.105.1
|
|
120
120
|
* @constructor
|
|
121
121
|
* @private
|
|
122
122
|
* @since 1.30
|
|
@@ -909,13 +909,19 @@ sap.ui.define([
|
|
|
909
909
|
.then(fnCallback);
|
|
910
910
|
};
|
|
911
911
|
|
|
912
|
-
RuntimeAuthoring.prototype._serializeAndSave = function() {
|
|
912
|
+
RuntimeAuthoring.prototype._serializeAndSave = function(bActivateVersion) {
|
|
913
913
|
if (this.getShowToolbars()) {
|
|
914
914
|
this.bPersistedDataTranslatable = this._oToolbarControlsModel.getProperty("/translationEnabled");
|
|
915
915
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
916
|
+
var mPropertyBag = {
|
|
917
|
+
// Save changes on the current layer and discard dirty changes on other layers
|
|
918
|
+
saveAsDraft: this._oVersionsModel.getProperty("/versioningEnabled") && this.getLayer() === Layer.CUSTOMER,
|
|
919
|
+
layer: this.getLayer(),
|
|
920
|
+
removeOtherLayerChanges: true,
|
|
921
|
+
version: bActivateVersion ? this._oVersionsModel.getProperty("/displayedVersion") : undefined
|
|
922
|
+
};
|
|
923
|
+
|
|
924
|
+
return this._oSerializer.saveCommands(mPropertyBag);
|
|
919
925
|
};
|
|
920
926
|
|
|
921
927
|
RuntimeAuthoring.prototype._serializeToLrep = function() {
|
|
@@ -961,7 +967,7 @@ sap.ui.define([
|
|
|
961
967
|
var sLayer = this.getLayer();
|
|
962
968
|
var oSelector = this.getRootControlInstance();
|
|
963
969
|
var sDisplayedVersion = this._oVersionsModel.getProperty("/displayedVersion");
|
|
964
|
-
return this._serializeAndSave()
|
|
970
|
+
return this._serializeAndSave(true)
|
|
965
971
|
.then(function () {
|
|
966
972
|
return VersionsAPI.activate({
|
|
967
973
|
layer: sLayer,
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -16,7 +16,8 @@ sap.ui.define([
|
|
|
16
16
|
"sap/ui/rta/RuntimeAuthoring",
|
|
17
17
|
"sap/ui/core/BusyIndicator",
|
|
18
18
|
"sap/base/i18n/ResourceBundle",
|
|
19
|
-
"sap/m/MessageToast"
|
|
19
|
+
"sap/m/MessageToast",
|
|
20
|
+
"sap/m/MenuItem"
|
|
20
21
|
], function(
|
|
21
22
|
Controller,
|
|
22
23
|
Layer,
|
|
@@ -30,7 +31,8 @@ sap.ui.define([
|
|
|
30
31
|
RuntimeAuthoring,
|
|
31
32
|
BusyIndicator,
|
|
32
33
|
ResourceBundle,
|
|
33
|
-
MessageToast
|
|
34
|
+
MessageToast,
|
|
35
|
+
MenuItem
|
|
34
36
|
) {
|
|
35
37
|
"use strict";
|
|
36
38
|
|
|
@@ -212,7 +214,7 @@ sap.ui.define([
|
|
|
212
214
|
var oItem = oEvent.getParameter("item");
|
|
213
215
|
var sItemPath = "";
|
|
214
216
|
|
|
215
|
-
while (oItem instanceof
|
|
217
|
+
while (oItem instanceof MenuItem) {
|
|
216
218
|
sItemPath = oItem.getText() + " > " + sItemPath;
|
|
217
219
|
oItem = oItem.getParent();
|
|
218
220
|
}
|
|
@@ -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.105.1
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -99,8 +99,13 @@ sap.ui.define([
|
|
|
99
99
|
}
|
|
100
100
|
})
|
|
101
101
|
.then(function(oAppDescriptorChangeContent) {
|
|
102
|
-
return new DescriptorChangeFactory().createNew(
|
|
103
|
-
|
|
102
|
+
return new DescriptorChangeFactory().createNew(
|
|
103
|
+
this.getReference(),
|
|
104
|
+
oAppDescriptorChangeContent,
|
|
105
|
+
this.getLayer(),
|
|
106
|
+
this.getAppComponent(),
|
|
107
|
+
"sap.ui.rta.AppDescriptorCommand"
|
|
108
|
+
);
|
|
104
109
|
}.bind(this))
|
|
105
110
|
.then(function(oAppDescriptorChange) {
|
|
106
111
|
var oChange = oAppDescriptorChange.store();
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @extends sap.ui.rta.command.BaseCommand
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.105.1
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.86
|
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
.then(function(aDirtyChanges) {
|
|
113
113
|
this._aPreparedChanges = aDirtyChanges;
|
|
114
114
|
this._oVariantChange = aDirtyChanges[0];
|
|
115
|
-
this.sNewVariantReference = this._oVariantChange.
|
|
115
|
+
this.sNewVariantReference = this._oVariantChange.getId();
|
|
116
116
|
this._aPreparedChanges.forEach(function(oChange) {
|
|
117
117
|
if (oChange.getFileType() === "change") {
|
|
118
118
|
oChange.assignedToVariant = true;
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @class
|
|
18
18
|
* @extends sap.ui.rta.command.BaseCommand
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.105.1
|
|
21
21
|
* @constructor
|
|
22
22
|
* @private
|
|
23
23
|
* @since 1.50
|
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
this.sVariantManagementReference = JsControlTreeModifier.getSelector(oVariantManagementControl, this.oAppComponent).id;
|
|
70
70
|
this.sCurrentVariant = this.oModel.getCurrentVariantReference(this.sVariantManagementReference);
|
|
71
71
|
|
|
72
|
-
var sCurrentTitle = this.oModel.
|
|
72
|
+
var sCurrentTitle = this.oModel.getVariantTitle(this.sCurrentVariant, this.sVariantManagementReference);
|
|
73
73
|
this.setOldText(sCurrentTitle);
|
|
74
74
|
|
|
75
75
|
var mPropertyBag = {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @class
|
|
30
30
|
* @extends sap.ui.base.ManagedObject
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.105.1
|
|
33
33
|
* @constructor
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.42
|
|
@@ -153,13 +153,15 @@ sap.ui.define([
|
|
|
153
153
|
* Serializes and saves all changes to LREP
|
|
154
154
|
* In case of Base Applications (no App Variants) the App Descriptor Changes and UI Changes are saved in different Flex Persistence instances,
|
|
155
155
|
* so we have to call save twice. For App Variants all the changes are saved in one place.
|
|
156
|
-
* @param {
|
|
157
|
-
* @param {
|
|
158
|
-
* @param {
|
|
156
|
+
* @param {object} mPropertyBag - Property bag
|
|
157
|
+
* @param {boolean} mPropertyBag.saveAsDraft - save the changes as a draft
|
|
158
|
+
* @param {string} [mPropertyBag.layer] - Layer for which the changes should be saved
|
|
159
|
+
* @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
160
|
+
* @param {string} [mPropertyBag.version] - Layer for which the changes should be saved
|
|
159
161
|
* @returns {Promise} return empty promise
|
|
160
162
|
* @public
|
|
161
163
|
*/
|
|
162
|
-
LREPSerializer.prototype.saveCommands = function(
|
|
164
|
+
LREPSerializer.prototype.saveCommands = function(mPropertyBag) {
|
|
163
165
|
this._lastPromise = this._lastPromise.catch(function(oError) {
|
|
164
166
|
Log.error(oError);
|
|
165
167
|
// _lastPromise chain must not be interrupted
|
|
@@ -171,9 +173,10 @@ sap.ui.define([
|
|
|
171
173
|
return PersistenceWriteAPI.save({
|
|
172
174
|
selector: oRootControl,
|
|
173
175
|
skipUpdateCache: false,
|
|
174
|
-
draft: !!
|
|
175
|
-
layer:
|
|
176
|
-
removeOtherLayerChanges: !!
|
|
176
|
+
draft: !!mPropertyBag.saveAsDraft,
|
|
177
|
+
layer: mPropertyBag.layer,
|
|
178
|
+
removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
|
|
179
|
+
version: mPropertyBag.version
|
|
177
180
|
});
|
|
178
181
|
}.bind(this))
|
|
179
182
|
.then(function() {
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function pushToStack(oComponent, mComposite, oStack, oChange) {
|
|
32
|
-
var oSelector = oChange.getSelector();
|
|
32
|
+
var oSelector = oChange.getSelector && oChange.getSelector();
|
|
33
33
|
var oCommand = new Settings({
|
|
34
34
|
selector: oSelector,
|
|
35
35
|
changeType: oChange.getDefinition().changeType,
|
|
@@ -55,7 +55,7 @@ sap.ui.define([
|
|
|
55
55
|
* @class
|
|
56
56
|
* @extends sap.ui.base.ManagedObject
|
|
57
57
|
* @author SAP SE
|
|
58
|
-
* @version 1.
|
|
58
|
+
* @version 1.105.1
|
|
59
59
|
* @constructor
|
|
60
60
|
* @private
|
|
61
61
|
* @since 1.34
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
var mComposite = {};
|
|
108
108
|
var mChanges = {};
|
|
109
109
|
aChanges.forEach(function(oChange) {
|
|
110
|
-
mChanges[oChange.
|
|
110
|
+
mChanges[oChange.getId()] = oChange;
|
|
111
111
|
});
|
|
112
112
|
aFileNames
|
|
113
113
|
.reduce(toAvailableChanges.bind(null, mChanges), [])
|
|
@@ -23,14 +23,14 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @alias sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.105.1
|
|
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.
|
|
30
30
|
*/
|
|
31
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
32
32
|
name: "sap.ui.rta",
|
|
33
|
-
version: "1.
|
|
33
|
+
version: "1.105.1",
|
|
34
34
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
35
35
|
types: [],
|
|
36
36
|
interfaces: [],
|