@openui5/sap.ui.rta 1.128.0 → 1.129.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/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 +21 -3
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +2 -2
- package/src/sap/ui/rta/appVariant/Utils.js +3 -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 +2 -2
- package/src/sap/ui/rta/command/Annotation.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +10 -8
- 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 +14 -15
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +8 -5
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +6 -4
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +7 -5
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +5 -3
- package/src/sap/ui/rta/enablement/TestDelegate.js +4 -3
- package/src/sap/ui/rta/enablement/elementActionTest.js +9 -6
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +43 -1
- package/src/sap/ui/rta/messagebundle_ar.properties +21 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +21 -0
- package/src/sap/ui/rta/messagebundle_cnr.properties +22 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +21 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +21 -0
- package/src/sap/ui/rta/messagebundle_da.properties +22 -1
- package/src/sap/ui/rta/messagebundle_de.properties +21 -0
- package/src/sap/ui/rta/messagebundle_el.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +21 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +14 -2
- package/src/sap/ui/rta/messagebundle_es.properties +21 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +21 -0
- package/src/sap/ui/rta/messagebundle_et.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +22 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +21 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +21 -0
- package/src/sap/ui/rta/messagebundle_id.properties +22 -1
- package/src/sap/ui/rta/messagebundle_it.properties +21 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +21 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +21 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +21 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +21 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +21 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_no.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +21 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +21 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +22 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +22 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +21 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +22 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +21 -0
- package/src/sap/ui/rta/messagebundle_th.properties +21 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +21 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +22 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +22 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +21 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +21 -0
- 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/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +2 -3
- 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.fragment.xml +0 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +70 -69
- 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 +9 -7
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +4 -3
- package/src/sap/ui/rta/service/Action.js +4 -3
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +5 -9
- package/src/sap/ui/rta/service/Property.js +10 -11
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/themes/base/WhatsNew.less +7 -0
- package/src/sap/ui/rta/themes/base/library.source.less +2 -1
- package/src/sap/ui/rta/toolbar/ActionsMenu.fragment.xml +8 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +8 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +9 -2
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +20 -18
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +10 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +11 -13
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +59 -25
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +110 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +81 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +82 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +75 -0
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +73 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +138 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/AdvancedSettingsImage.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/FullIframe.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/MiniMenu.png +0 -0
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/WhatsNewOverview.png +0 -0
package/THIRDPARTY.txt
CHANGED
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.18.0
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.129.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.rta",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.129.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.129.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.129.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.129.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.129.0"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 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.129.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -44,6 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
"sap/ui/rta/toolbar/FioriLike",
|
|
45
45
|
"sap/ui/rta/toolbar/Standalone",
|
|
46
46
|
"sap/ui/rta/util/changeVisualization/ChangeVisualization",
|
|
47
|
+
"sap/ui/rta/util/whatsNew/WhatsNew",
|
|
47
48
|
"sap/ui/rta/util/PluginManager",
|
|
48
49
|
"sap/ui/rta/util/PopupManager",
|
|
49
50
|
"sap/ui/rta/util/ReloadManager",
|
|
@@ -90,6 +91,7 @@ sap.ui.define([
|
|
|
90
91
|
FioriLikeToolbar,
|
|
91
92
|
StandaloneToolbar,
|
|
92
93
|
ChangeVisualization,
|
|
94
|
+
WhatsNew,
|
|
93
95
|
PluginManager,
|
|
94
96
|
PopupManager,
|
|
95
97
|
ReloadManager,
|
|
@@ -111,7 +113,7 @@ sap.ui.define([
|
|
|
111
113
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
112
114
|
* @extends sap.ui.base.ManagedObject
|
|
113
115
|
* @author SAP SE
|
|
114
|
-
* @version 1.
|
|
116
|
+
* @version 1.129.0
|
|
115
117
|
* @constructor
|
|
116
118
|
* @private
|
|
117
119
|
* @since 1.30
|
|
@@ -252,6 +254,13 @@ sap.ui.define([
|
|
|
252
254
|
.then(function(mUShellServices) {
|
|
253
255
|
this._mUShellServices = mUShellServices;
|
|
254
256
|
ReloadManager.setUShellServices(mUShellServices);
|
|
257
|
+
return FeaturesAPI.isSeenFeaturesAvailable();
|
|
258
|
+
}.bind(this))
|
|
259
|
+
.then(function(isAvailable) {
|
|
260
|
+
if (isAvailable) {
|
|
261
|
+
this.addDependent(new WhatsNew({ layer: this.getLayer() }), "whatsNew");
|
|
262
|
+
}
|
|
263
|
+
return Promise.resolve();
|
|
255
264
|
}.bind(this));
|
|
256
265
|
}
|
|
257
266
|
});
|
|
@@ -339,7 +348,7 @@ sap.ui.define([
|
|
|
339
348
|
const oUriParams = new URLSearchParams(window.location.search);
|
|
340
349
|
const sUriLayer = oUriParams.get("sap-ui-layer");
|
|
341
350
|
|
|
342
|
-
mFlexSettings =
|
|
351
|
+
mFlexSettings = { ...this.getFlexSettings(), ...mFlexSettings };
|
|
343
352
|
if (sUriLayer) {
|
|
344
353
|
mFlexSettings.layer = sUriLayer.toUpperCase();
|
|
345
354
|
}
|
|
@@ -459,6 +468,10 @@ sap.ui.define([
|
|
|
459
468
|
}
|
|
460
469
|
setBlockedOnRootElements.call(this, true);
|
|
461
470
|
|
|
471
|
+
if (this.getWhatsNew) {
|
|
472
|
+
this.getWhatsNew().initializeWhatsNewDialog();
|
|
473
|
+
}
|
|
474
|
+
|
|
462
475
|
// PopupManager sets the toolbar to already open popups' autoCloseAreas
|
|
463
476
|
// Since at this point the toolbar is not available, it waits for RTA to start,
|
|
464
477
|
// before adding it to the autoCloseAreas of the open popups
|
|
@@ -468,6 +481,7 @@ sap.ui.define([
|
|
|
468
481
|
// the show() method of the toolbar relies on this RTA instance being set on the PopupManager
|
|
469
482
|
await this.getToolbar().show();
|
|
470
483
|
}
|
|
484
|
+
|
|
471
485
|
if (Device.browser.name === "ff") {
|
|
472
486
|
// in FF shift+f10 also opens a browser context menu.
|
|
473
487
|
// It seems that the only way to get rid of it is to completely turn off context menu in ff..
|
|
@@ -1458,7 +1472,7 @@ sap.ui.define([
|
|
|
1458
1472
|
|
|
1459
1473
|
await oToolbar.onFragmentLoaded();
|
|
1460
1474
|
const bTranslationAvailable = await FeaturesAPI.isKeyUserTranslationEnabled(this.getLayer());
|
|
1461
|
-
|
|
1475
|
+
const bWhatsNewFeaturesAvailable = await FeaturesAPI.isSeenFeaturesAvailable();
|
|
1462
1476
|
const bAppVariantsAvailable = mButtonsAvailability.saveAsAvailable;
|
|
1463
1477
|
const bExtendedOverview = bAppVariantsAvailable && RtaAppVariantFeature.isOverviewExtended();
|
|
1464
1478
|
const oUriParameters = new URLSearchParams(window.location.search);
|
|
@@ -1485,6 +1499,10 @@ sap.ui.define([
|
|
|
1485
1499
|
visible: bTranslationAvailable,
|
|
1486
1500
|
enabled: this.bPersistedDataTranslatable
|
|
1487
1501
|
},
|
|
1502
|
+
newFeaturesOverview: {
|
|
1503
|
+
visible: bWhatsNewFeaturesAvailable,
|
|
1504
|
+
enabled: bWhatsNewFeaturesAvailable
|
|
1505
|
+
},
|
|
1488
1506
|
appVariantMenu: {
|
|
1489
1507
|
visible: bAppVariantsAvailable,
|
|
1490
1508
|
enabled: bAppVariantsAvailable,
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -113,7 +113,7 @@ sap.ui.define([
|
|
|
113
113
|
|
|
114
114
|
AppVariantUtils.createAppVariant = function(vSelector, mPropertyBag) {
|
|
115
115
|
mPropertyBag.version = "1.0.0"; // Application variant version should be 1.0.0 which is expected by backend
|
|
116
|
-
return AppVariantWriteAPI.saveAs(
|
|
116
|
+
return AppVariantWriteAPI.saveAs({ selector: vSelector, ...mPropertyBag });
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
AppVariantUtils.getInlineChangeInput = function(sValue, sComment) {
|
|
@@ -305,7 +305,7 @@ sap.ui.define([
|
|
|
305
305
|
return fnTriggerCatalogAssignment(oAppVariantSaveClosure.id, oAppVariantSaveClosure.reference);
|
|
306
306
|
})
|
|
307
307
|
.then(function(oResult) {
|
|
308
|
-
oIAMResponse =
|
|
308
|
+
oIAMResponse = { ...oResult };
|
|
309
309
|
BusyIndicator.hide();
|
|
310
310
|
return fnTriggerActionFlow.call(this, bSaveAsFromRta, null, sCurrentLayer);
|
|
311
311
|
}.bind(this))
|
|
@@ -394,7 +394,7 @@ sap.ui.define([
|
|
|
394
394
|
return fnTriggerCatalogUnAssignment(sAppVariantId);
|
|
395
395
|
})
|
|
396
396
|
.then(function(oResult) {
|
|
397
|
-
oIAMResponse =
|
|
397
|
+
oIAMResponse = { ...oResult };
|
|
398
398
|
return fnReloadOverviewDialog.call(this, !bCurrentlyAdapting, sCurrentLayer);
|
|
399
399
|
}.bind(this))
|
|
400
400
|
.then(function() {
|
|
@@ -154,7 +154,7 @@ function(
|
|
|
154
154
|
oNavigationObject.params = oParams;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
oNavigationObject =
|
|
157
|
+
oNavigationObject = { ...oNavigationObject, ...oDeleteButtonProperties };
|
|
158
158
|
return oNavigationObject;
|
|
159
159
|
}.bind(this));
|
|
160
160
|
};
|
|
@@ -210,14 +210,14 @@ function(
|
|
|
210
210
|
if (oAppVariantInfo.hasStartableIntent) {
|
|
211
211
|
oPreparedObject.startWith = oAppVariantInfo.startWith;
|
|
212
212
|
return this._getNavigationInfo(oPreparedObject).then(function(oNavigationObject) {
|
|
213
|
-
oAppVariantAttributes =
|
|
213
|
+
oAppVariantAttributes = { ...oAppVariantAttributes, ...oNavigationObject };
|
|
214
214
|
return oAppVariantAttributes;
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
oAppVariantAttributes.adaptUIButtonEnabled = false;
|
|
219
219
|
var oDeleteButtonProperties = this._checkMenuItemOptions(oPreparedObject, false);
|
|
220
|
-
oAppVariantAttributes =
|
|
220
|
+
oAppVariantAttributes = { ...oAppVariantAttributes, ...oDeleteButtonProperties };
|
|
221
221
|
return Promise.resolve(oAppVariantAttributes);
|
|
222
222
|
}.bind(this));
|
|
223
223
|
};
|
|
@@ -24,7 +24,7 @@ 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.129.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.76
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
appComponent: oAppComponent,
|
|
97
97
|
view: oView
|
|
98
98
|
};
|
|
99
|
-
return ChangesWriteAPI.apply(
|
|
99
|
+
return ChangesWriteAPI.apply({ change: oChange, element: oSelectorElement, ...mPropertyBag })
|
|
100
100
|
.then(function(oResult) {
|
|
101
101
|
if (!oResult.success) {
|
|
102
102
|
return Promise.reject(oResult.error);
|
|
@@ -259,10 +259,11 @@ sap.ui.define([
|
|
|
259
259
|
function configureCustomAddCommand(oElement, mSettings, oDesignTimeMetadata) {
|
|
260
260
|
var oAddAction = oDesignTimeMetadata.getAction("add", mSettings.element);
|
|
261
261
|
if (oAddAction && oAddAction.custom && typeof oAddAction.custom.getItems === "function") {
|
|
262
|
-
var oAction =
|
|
262
|
+
var oAction = {
|
|
263
|
+
...oAddAction.custom,
|
|
263
264
|
changeOnRelevantContainer: mSettings.changeOnRelevantContainer,
|
|
264
265
|
changeType: mSettings.changeType
|
|
265
|
-
}
|
|
266
|
+
};
|
|
266
267
|
delete mSettings.changeOnRelevantContainer; // this property is not required for a sap.ui.rta.command.CustomAdd
|
|
267
268
|
return oAction;
|
|
268
269
|
}
|
|
@@ -425,14 +426,15 @@ sap.ui.define([
|
|
|
425
426
|
var bIsUiElement = vElement instanceof ManagedObject;
|
|
426
427
|
|
|
427
428
|
// only sap.ui.rta.command.FlexCommand requires a selector property
|
|
428
|
-
if (!mCommand.noSelector) {
|
|
429
|
-
mSettings =
|
|
429
|
+
if (!mCommand.noSelector && !bIsUiElement) {
|
|
430
|
+
mSettings = { ...mSettings, selector: vElement };
|
|
430
431
|
}
|
|
431
432
|
|
|
432
|
-
mSettings =
|
|
433
|
+
mSettings = {
|
|
434
|
+
...mSettings,
|
|
433
435
|
element: bIsUiElement ? vElement : undefined,
|
|
434
436
|
name: sCommand
|
|
435
|
-
}
|
|
437
|
+
};
|
|
436
438
|
|
|
437
439
|
var oAction;
|
|
438
440
|
if (mCommand.configure) {
|
|
@@ -491,7 +493,7 @@ sap.ui.define([
|
|
|
491
493
|
* @extends sap.ui.base.ManagedObject
|
|
492
494
|
*
|
|
493
495
|
* @author SAP SE
|
|
494
|
-
* @version 1.
|
|
496
|
+
* @version 1.129.0
|
|
495
497
|
*
|
|
496
498
|
* @constructor
|
|
497
499
|
* @private
|
|
@@ -522,7 +524,7 @@ sap.ui.define([
|
|
|
522
524
|
* @param {Object} [mFlexSettings] - Property bag. See {@link sap.ui.rta.RuntimeAuthoring#setFlexSettings} method for more information
|
|
523
525
|
*/
|
|
524
526
|
CommandFactory.prototype.setFlexSettings = function(mFlexSettings) {
|
|
525
|
-
this.setProperty("flexSettings",
|
|
527
|
+
this.setProperty("flexSettings", { ...this.getFlexSettings(), ...mFlexSettings });
|
|
526
528
|
};
|
|
527
529
|
|
|
528
530
|
/**
|
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
8
|
-
"sap/ui/fl/Utils",
|
|
9
8
|
"sap/ui/fl/write/api/ContextSharingAPI",
|
|
9
|
+
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
10
|
+
"sap/ui/fl/Utils",
|
|
10
11
|
"sap/ui/rta/command/BaseCommand",
|
|
11
12
|
"sap/ui/rta/library",
|
|
12
13
|
"sap/ui/rta/Utils"
|
|
13
14
|
], function(
|
|
14
15
|
JsControlTreeModifier,
|
|
15
|
-
flUtils,
|
|
16
16
|
ContextSharingAPI,
|
|
17
|
+
PersistenceWriteAPI,
|
|
18
|
+
flUtils,
|
|
17
19
|
BaseCommand,
|
|
18
20
|
rtaLibrary,
|
|
19
21
|
rtaUtils
|
|
@@ -26,7 +28,7 @@ sap.ui.define([
|
|
|
26
28
|
* @class
|
|
27
29
|
* @extends sap.ui.rta.command.BaseCommand
|
|
28
30
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
31
|
+
* @version 1.129.0
|
|
30
32
|
* @constructor
|
|
31
33
|
* @private
|
|
32
34
|
* @since 1.86
|
|
@@ -132,7 +134,7 @@ sap.ui.define([
|
|
|
132
134
|
* @public
|
|
133
135
|
* @returns {Promise} Resolves after undo
|
|
134
136
|
*/
|
|
135
|
-
ControlVariantSaveAs.prototype.undo = function() {
|
|
137
|
+
ControlVariantSaveAs.prototype.undo = async function() {
|
|
136
138
|
if (this._oVariantChange) {
|
|
137
139
|
var aChangesToBeDeleted = [];
|
|
138
140
|
this._aPreparedChanges.forEach(function(oChange) {
|
|
@@ -140,7 +142,10 @@ sap.ui.define([
|
|
|
140
142
|
aChangesToBeDeleted.push(oChange);
|
|
141
143
|
}
|
|
142
144
|
});
|
|
143
|
-
|
|
145
|
+
await PersistenceWriteAPI.remove({
|
|
146
|
+
flexObjects: aChangesToBeDeleted,
|
|
147
|
+
selector: this.oAppComponent
|
|
148
|
+
});
|
|
144
149
|
|
|
145
150
|
var mPropertyBag = {
|
|
146
151
|
variant: this._oVariantChange,
|
|
@@ -149,17 +154,11 @@ sap.ui.define([
|
|
|
149
154
|
component: this.oAppComponent
|
|
150
155
|
};
|
|
151
156
|
|
|
152
|
-
|
|
153
|
-
.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
}.bind(this))
|
|
157
|
-
.then(function() {
|
|
158
|
-
this._aPreparedChanges = null;
|
|
159
|
-
this._oVariantChange = null;
|
|
160
|
-
}.bind(this));
|
|
157
|
+
await this.oModel.removeVariant(mPropertyBag, true);
|
|
158
|
+
await this.oModel.addAndApplyChangesOnVariant(this._aControlChangesWithoutVariant);
|
|
159
|
+
this._aPreparedChanges = null;
|
|
160
|
+
this._oVariantChange = null;
|
|
161
161
|
}
|
|
162
|
-
return Promise.resolve();
|
|
163
162
|
};
|
|
164
163
|
|
|
165
164
|
return ControlVariantSaveAs;
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.rta.command.BaseCommand
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.129.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -208,7 +208,7 @@ sap.ui.define([
|
|
|
208
208
|
variantReference: sVariantReference,
|
|
209
209
|
isChangeOnStandardVariant: sVariantManagementReference === sVariantReference
|
|
210
210
|
};
|
|
211
|
-
mChangeSpecificData =
|
|
211
|
+
mChangeSpecificData = { ...mChangeSpecificData, ...mVariantObj };
|
|
212
212
|
}
|
|
213
213
|
mChangeSpecificData.command = sCommand;
|
|
214
214
|
mChangeSpecificData.generator = mFlexSettings.generator || rtaLibrary.GENERATOR_NAME;
|
|
@@ -220,8 +220,11 @@ sap.ui.define([
|
|
|
220
220
|
// ATTENTION! the change gets applied as soon as the parent is available, so there might be possible side effects with lazy loading
|
|
221
221
|
if (mFlexSettings && mFlexSettings.originalSelector) {
|
|
222
222
|
oChange.addDependentControl(mFlexSettings.originalSelector, "originalSelector", {modifier: JsControlTreeModifier, appComponent: this.getAppComponent()});
|
|
223
|
-
oChange.setSelector(
|
|
224
|
-
|
|
223
|
+
oChange.setSelector({
|
|
224
|
+
...oChange.getSelector(),
|
|
225
|
+
...JsControlTreeModifier.getSelector(this.getSelector().id, this.getAppComponent())
|
|
226
|
+
});
|
|
227
|
+
oChange.setContent({ ...oChange.getContent(), ...mFlexSettings.content });
|
|
225
228
|
}
|
|
226
229
|
return oChange;
|
|
227
230
|
}.bind(this));
|
|
@@ -252,7 +255,7 @@ sap.ui.define([
|
|
|
252
255
|
appComponent: oAppComponent,
|
|
253
256
|
view: FlUtils.getViewForControl(oSelectorElement)
|
|
254
257
|
};
|
|
255
|
-
return ChangesWriteAPI.apply(
|
|
258
|
+
return ChangesWriteAPI.apply({ change: oChange, element: oSelectorElement, ...mPropertyBag })
|
|
256
259
|
|
|
257
260
|
.then(function(oResult) {
|
|
258
261
|
if (!oResult.success) {
|