@openui5/sap.ui.rta 1.98.0 → 1.101.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 +6 -6
- 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 +64 -50
- package/src/sap/ui/rta/Utils.js +4 -6
- package/src/sap/ui/rta/appContexts/AppContextsOverviewDialog.js +76 -0
- package/src/sap/ui/rta/appContexts/Component.js +31 -0
- package/src/sap/ui/rta/appContexts/controller/ManageContexts.controller.js +323 -0
- package/src/sap/ui/rta/appContexts/controller/RestAPIConnector.js +22 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n.properties +47 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ar.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_bg.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ca.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cs.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_cy.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_da.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_de.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_el.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_GB.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_sappsd.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saprigi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_en_US_saptrc.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_es_MX.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_et.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_fr_CA.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_hu.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_id.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_it.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_iw.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ja.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_kk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ko.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_lv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ms.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_nl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_no.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_pt_PT.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ro.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_ru.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sh.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sl.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_sv.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_th.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_tr.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_uk.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_vi.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_CN.properties +23 -0
- package/src/sap/ui/rta/appContexts/i18n/i18n_zh_TW.properties +23 -0
- package/src/sap/ui/rta/appContexts/index.html +25 -0
- package/src/sap/ui/rta/appContexts/manifest.json +52 -0
- package/src/sap/ui/rta/appContexts/view/EditContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appContexts/view/ManageContexts.view.xml +103 -0
- package/src/sap/ui/rta/appContexts/view/SaveAsContextsDialog.fragment.xml +76 -0
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +6 -3
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +11 -11
- package/src/sap/ui/rta/appVariant/Feature.js +16 -6
- 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 +3 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +3 -2
- 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 +3 -2
- package/src/sap/ui/rta/command/Combine.js +5 -1
- package/src/sap/ui/rta/command/CommandFactory.js +20 -13
- 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 +1 -1
- 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 +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/Resize.js +45 -0
- 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 +15 -12
- 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 +6 -9
- package/src/sap/ui/rta/messagebundle.properties +20 -11
- package/src/sap/ui/rta/messagebundle_ar.properties +14 -9
- package/src/sap/ui/rta/messagebundle_bg.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ca.properties +15 -10
- package/src/sap/ui/rta/messagebundle_cs.properties +14 -9
- package/src/sap/ui/rta/messagebundle_cy.properties +14 -9
- package/src/sap/ui/rta/messagebundle_da.properties +14 -9
- package/src/sap/ui/rta/messagebundle_de.properties +14 -9
- package/src/sap/ui/rta/messagebundle_el.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_GB.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +14 -9
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +42 -20
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +14 -9
- package/src/sap/ui/rta/messagebundle_es.properties +14 -9
- package/src/sap/ui/rta/messagebundle_es_MX.properties +15 -10
- package/src/sap/ui/rta/messagebundle_et.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fi.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +14 -9
- package/src/sap/ui/rta/messagebundle_hi.properties +13 -8
- package/src/sap/ui/rta/messagebundle_hr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_hu.properties +14 -9
- package/src/sap/ui/rta/messagebundle_id.properties +14 -9
- package/src/sap/ui/rta/messagebundle_it.properties +14 -9
- package/src/sap/ui/rta/messagebundle_iw.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ja.properties +14 -9
- package/src/sap/ui/rta/messagebundle_kk.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ko.properties +14 -9
- package/src/sap/ui/rta/messagebundle_lt.properties +14 -9
- package/src/sap/ui/rta/messagebundle_lv.properties +16 -11
- package/src/sap/ui/rta/messagebundle_ms.properties +14 -9
- package/src/sap/ui/rta/messagebundle_nl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_no.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pt.properties +14 -9
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ro.properties +14 -9
- package/src/sap/ui/rta/messagebundle_ru.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sh.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sk.properties +15 -10
- package/src/sap/ui/rta/messagebundle_sl.properties +14 -9
- package/src/sap/ui/rta/messagebundle_sv.properties +14 -9
- package/src/sap/ui/rta/messagebundle_th.properties +14 -9
- package/src/sap/ui/rta/messagebundle_tr.properties +14 -9
- package/src/sap/ui/rta/messagebundle_uk.properties +13 -8
- package/src/sap/ui/rta/messagebundle_vi.properties +14 -9
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +14 -9
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +15 -10
- 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 +15 -14
- package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -3
- 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 +32 -11
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +26 -27
- package/src/sap/ui/rta/plugin/Rename.js +6 -19
- package/src/sap/ui/rta/plugin/RenameHandler.js +21 -6
- package/src/sap/ui/rta/plugin/Resize.js +432 -0
- package/src/sap/ui/rta/plugin/Selection.js +21 -8
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +5 -11
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +39 -38
- 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 +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +55 -75
- package/src/sap/ui/rta/themes/base/Overlay.less +50 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +5 -19
- package/src/sap/ui/rta/toolbar/Adaptation.js +4 -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 +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 +52 -31
- package/src/sap/ui/rta/util/PluginManager.js +9 -3
- package/src/sap/ui/rta/util/PopupManager.js +33 -12
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +109 -60
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +30 -0
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorPopover.fragment.xml +6 -5
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +146 -79
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +37 -0
- package/src/sap/ui/rta/util/changeVisualization/categories/MoveVisualization.js +25 -4
- package/src/sap/ui/rta/util/changeVisualization/categories/RenameVisualization.js +14 -2
- package/src/sap/ui/rta/util/changeVisualization/categories/SplitVisualization.js +5 -2
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.base.ManagedObject
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.101.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.53
|
|
@@ -133,7 +133,7 @@ sap.ui.define([
|
|
|
133
133
|
};
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* @param {
|
|
136
|
+
* @param {string} sAppVariantId - Application variant ID
|
|
137
137
|
* @param {sap.ui.fl.Selector} vSelector - Selector
|
|
138
138
|
* @returns {Promise} Resolved promise
|
|
139
139
|
* @description Creates the app variant with all inline changes in backend.
|
|
@@ -147,7 +147,7 @@ sap.ui.define([
|
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* @param {
|
|
150
|
+
* @param {string} sAppVariantId - Application variant ID
|
|
151
151
|
* @returns {Promise} Resolved promise
|
|
152
152
|
* @description Deletes the app variant from backend.
|
|
153
153
|
*/
|
|
@@ -160,7 +160,7 @@ sap.ui.define([
|
|
|
160
160
|
/**
|
|
161
161
|
*
|
|
162
162
|
* @param {Object} oDescriptor - Contains the app variant descriptor information
|
|
163
|
-
* @param {
|
|
163
|
+
* @param {boolean} bSaveAsTriggeredFromRtaToolbar - Boolean value which tells if 'Save As' is triggered from the UI adaptation header bar
|
|
164
164
|
* @returns {Object} Contains the information to create the app variant
|
|
165
165
|
* @description Processes the Save As Dialog and consolidates the input parameters from the 'Save As' dialog as an object.
|
|
166
166
|
*/
|
|
@@ -195,7 +195,7 @@ sap.ui.define([
|
|
|
195
195
|
|
|
196
196
|
/**
|
|
197
197
|
*
|
|
198
|
-
* @param {
|
|
198
|
+
* @param {boolean} bCopyUnsavedChanges - Boolean value which tells whether the dirty changes exist and need to be copied
|
|
199
199
|
* @returns {Promise} Server response
|
|
200
200
|
* @description Clears the RTA command stack
|
|
201
201
|
*/
|
|
@@ -210,9 +210,9 @@ sap.ui.define([
|
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
*
|
|
213
|
-
* @param {
|
|
214
|
-
* @param {
|
|
215
|
-
* @param {
|
|
213
|
+
* @param {string} sAppVariantId - Contains the application variant ID
|
|
214
|
+
* @param {string} sReferenceAppId - Contains the reference application ID
|
|
215
|
+
* @param {boolean} bSaveAs - Indicates whether the app is currently being saved
|
|
216
216
|
* @returns {Promise} Server response
|
|
217
217
|
* @description In 'Save As' scenario: The app variant gets assigned to the same catalog(s) as the original app;
|
|
218
218
|
* In 'Deletion' scenario: The app variant is unassigned from all catalogs.
|
|
@@ -228,9 +228,9 @@ sap.ui.define([
|
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
*
|
|
231
|
-
* @param {
|
|
232
|
-
* @param {
|
|
233
|
-
* @param {
|
|
231
|
+
* @param {string} sIamId - Identity Access Management ID of SAP Fiori app
|
|
232
|
+
* @param {string} sAppVarId - Application variant ID
|
|
233
|
+
* @param {boolean} bCreation - Indicates that app is being created
|
|
234
234
|
* @returns {Promise} Resolved promise
|
|
235
235
|
* @description When the app variant creation/deletion and catalog assignment/unassignment are executed successfully, this asynchronous process gets triggered. It talks to the server every 2.5 secs.
|
|
236
236
|
* In case of creation: It checks whether the new FLP tile is available.
|
|
@@ -108,13 +108,23 @@ sap.ui.define([
|
|
|
108
108
|
var fnCancel = function() {
|
|
109
109
|
AppVariantUtils.closeOverviewDialog();
|
|
110
110
|
};
|
|
111
|
-
|
|
111
|
+
|
|
112
|
+
var oUriParameters = new UriParameters(window.location.href);
|
|
113
|
+
var sAppContextsEnabled = oUriParameters.get("sap-ui-rta-appContexts");
|
|
114
|
+
|
|
115
|
+
var sOverviewPath = "sap/ui/rta/appVariant/AppVariantOverviewDialog";
|
|
116
|
+
var oProperties = {
|
|
117
|
+
idRunningApp: oDescriptor["sap.app"].id,
|
|
118
|
+
isOverviewForKeyUser: bAsKeyUser,
|
|
119
|
+
layer: sLayer
|
|
120
|
+
};
|
|
121
|
+
if (sAppContextsEnabled === "true") {
|
|
122
|
+
sOverviewPath = "sap/ui/rta/appContexts/AppContextsOverviewDialog";
|
|
123
|
+
oProperties = {layer: sLayer};
|
|
124
|
+
}
|
|
125
|
+
sap.ui.require([sOverviewPath], function(AppVariantOverviewDialog) {
|
|
112
126
|
if (!oAppVariantOverviewDialog) {
|
|
113
|
-
oAppVariantOverviewDialog = new AppVariantOverviewDialog(
|
|
114
|
-
idRunningApp: oDescriptor["sap.app"].id,
|
|
115
|
-
isOverviewForKeyUser: bAsKeyUser,
|
|
116
|
-
layer: sLayer
|
|
117
|
-
});
|
|
127
|
+
oAppVariantOverviewDialog = new AppVariantOverviewDialog(oProperties);
|
|
118
128
|
}
|
|
119
129
|
|
|
120
130
|
oAppVariantOverviewDialog.attachCancel(fnCancel);
|
|
@@ -16,7 +16,7 @@ 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.101.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.54
|
|
@@ -55,7 +55,8 @@ sap.ui.define([
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Overridden to suppress the {} being recognized as binding strings.
|
|
59
|
+
* @override
|
|
59
60
|
*/
|
|
60
61
|
AddXML.prototype.bindProperty = function(sName, oBindingInfo) {
|
|
61
62
|
if (sName === "fragment") {
|
|
@@ -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.101.0
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.76
|
|
@@ -55,7 +55,8 @@ sap.ui.define([
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Overridden to suppress the {} being recognized as binding strings.
|
|
59
|
+
* @override
|
|
59
60
|
*/
|
|
60
61
|
AddXMLAtExtensionPoint.prototype.bindProperty = function(sName, oBindingInfo) {
|
|
61
62
|
if (sName === "fragment") {
|
|
@@ -26,7 +26,7 @@ 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.101.0
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.38
|
|
@@ -55,7 +55,8 @@ sap.ui.define([
|
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Overridden to suppress the binding strings to be used as binding.
|
|
59
|
+
* @override
|
|
59
60
|
*/
|
|
60
61
|
BindProperty.prototype.bindProperty = function(sName, oBindingInfo) {
|
|
61
62
|
if (sName === "newBinding") {
|
|
@@ -16,7 +16,7 @@ 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.101.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.46
|
|
@@ -28,6 +28,9 @@ sap.ui.define([
|
|
|
28
28
|
metadata: {
|
|
29
29
|
library: "sap.ui.rta",
|
|
30
30
|
properties: {
|
|
31
|
+
newElementId: {
|
|
32
|
+
type: "string"
|
|
33
|
+
},
|
|
31
34
|
source: {
|
|
32
35
|
type: "any"
|
|
33
36
|
},
|
|
@@ -49,6 +52,7 @@ sap.ui.define([
|
|
|
49
52
|
aFieldIds.push(oField.getId());
|
|
50
53
|
});
|
|
51
54
|
var mSpecificInfo = {
|
|
55
|
+
newElementId: this.getNewElementId(),
|
|
52
56
|
changeType: this.getChangeType(),
|
|
53
57
|
sourceControlId: this.getSource().getId(),
|
|
54
58
|
combineElementIds: aFieldIds
|
|
@@ -93,19 +93,23 @@ sap.ui.define([
|
|
|
93
93
|
oCommand.setJsOnly(bJsOnly);
|
|
94
94
|
if (oCommand.setVariantIndependent) {
|
|
95
95
|
oCommand.setVariantIndependent(bVariantIndependent);
|
|
96
|
-
} else {
|
|
97
|
-
Log.error("the variant independent Flag is not available for the action
|
|
96
|
+
} else if (bVariantIndependent) {
|
|
97
|
+
Log.error("the variant independent Flag is not available for the action", sChangeType);
|
|
98
98
|
}
|
|
99
99
|
return true;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
function configureAddXmlCommand(oElement, mSettings, oDesignTimeMetadata) {
|
|
103
|
-
var
|
|
104
|
-
changeType: mSettings.name
|
|
105
|
-
};
|
|
103
|
+
var vAction;
|
|
106
104
|
if (oDesignTimeMetadata) {
|
|
107
|
-
|
|
105
|
+
vAction = oDesignTimeMetadata.getAction(mSettings.name, oElement);
|
|
108
106
|
}
|
|
107
|
+
// the change type is not configurable via designtime
|
|
108
|
+
// it can also not be disabled with 'not-adaptable' or null
|
|
109
|
+
var oAction = vAction || {};
|
|
110
|
+
Object.assign(oAction, {
|
|
111
|
+
changeType: mSettings.name
|
|
112
|
+
});
|
|
109
113
|
return oAction;
|
|
110
114
|
}
|
|
111
115
|
|
|
@@ -347,6 +351,9 @@ sap.ui.define([
|
|
|
347
351
|
configure: configureSplitCommand,
|
|
348
352
|
adjustForBinding: adjustSplitCommand
|
|
349
353
|
},
|
|
354
|
+
resize: {
|
|
355
|
+
clazz: "sap/ui/rta/command/Resize"
|
|
356
|
+
},
|
|
350
357
|
"switch": {
|
|
351
358
|
clazz: "sap/ui/rta/command/ControlVariantSwitch"
|
|
352
359
|
},
|
|
@@ -475,7 +482,7 @@ sap.ui.define([
|
|
|
475
482
|
* @extends sap.ui.base.ManagedObject
|
|
476
483
|
*
|
|
477
484
|
* @author SAP SE
|
|
478
|
-
* @version 1.
|
|
485
|
+
* @version 1.101.0
|
|
479
486
|
*
|
|
480
487
|
* @constructor
|
|
481
488
|
* @private
|
|
@@ -530,12 +537,12 @@ sap.ui.define([
|
|
|
530
537
|
* @param {string} sCommand - Command type
|
|
531
538
|
* @param {object} mSettings - Initial settings for the new command (command specific settings, looks diffrent for each and every command)
|
|
532
539
|
* @param {sap.ui.dt.DesignTimeMetadata} oDesignTimeMetadata - Contains the action used in the command
|
|
533
|
-
* @param {
|
|
534
|
-
* @param {
|
|
535
|
-
* @param {
|
|
536
|
-
* @param {
|
|
537
|
-
* @param {
|
|
538
|
-
* @param {
|
|
540
|
+
* @param {object} [mFlexSettings] - Property bag
|
|
541
|
+
* @param {string} [mFlexSettings.layer] - The Layer in which RTA should be started. Default: "CUSTOMER"
|
|
542
|
+
* @param {boolean} [mFlexSettings.developerMode] - Whether RTA is started in DeveloperMode Mode. Whether RTA is started in DeveloperMode Mode
|
|
543
|
+
* @param {string} [mFlexSettings.baseId] - Base ID of the app
|
|
544
|
+
* @param {string} [mFlexSettings.projectId] - Project ID
|
|
545
|
+
* @param {string} [mFlexSettings.scenario] - Key representing the current scenario
|
|
539
546
|
* @returns {Promise} A promise which will return the created command
|
|
540
547
|
*/
|
|
541
548
|
CommandFactory.getCommandFor = function (vElement, sCommand, mSettings, oDesignTimeMetadata, mFlexSettings) {
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/rta/command/FlexCommand"
|
|
8
|
+
], function(
|
|
9
|
+
FlexCommand
|
|
10
|
+
) {
|
|
11
|
+
"use strict";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Resize command
|
|
15
|
+
*
|
|
16
|
+
* @class
|
|
17
|
+
* @extends sap.ui.rta.command.FlexCommand
|
|
18
|
+
* @author SAP SE
|
|
19
|
+
* @version 1.101.0
|
|
20
|
+
* @constructor
|
|
21
|
+
* @private
|
|
22
|
+
* @since 1.101
|
|
23
|
+
* @alias sap.ui.rta.command.Resize
|
|
24
|
+
*/
|
|
25
|
+
var Resize = FlexCommand.extend("sap.ui.rta.command.Resize", {
|
|
26
|
+
metadata: {
|
|
27
|
+
library: "sap.ui.rta",
|
|
28
|
+
properties: {
|
|
29
|
+
// Generic structure is required as some implementations (e.g. Tables) create changes like in Settings action
|
|
30
|
+
content: {
|
|
31
|
+
type: "any",
|
|
32
|
+
group: "content"
|
|
33
|
+
},
|
|
34
|
+
changeType: {
|
|
35
|
+
type: "string",
|
|
36
|
+
defaultValue: "resize"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
associations: {},
|
|
40
|
+
events: {}
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
return Resize;
|
|
45
|
+
});
|
|
@@ -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.101.0
|
|
59
59
|
* @constructor
|
|
60
60
|
* @private
|
|
61
61
|
* @since 1.34
|
|
@@ -207,17 +207,18 @@ sap.ui.define([
|
|
|
207
207
|
}).then(function() {
|
|
208
208
|
var oCommand = this._getCommandToBeExecuted();
|
|
209
209
|
if (oCommand) {
|
|
210
|
+
var mParam = {
|
|
211
|
+
command: oCommand,
|
|
212
|
+
undo: false
|
|
213
|
+
};
|
|
210
214
|
return oCommand.execute()
|
|
211
215
|
|
|
216
|
+
.then(this._waitForCommandExecutionHandler.bind(this, mParam))
|
|
217
|
+
|
|
212
218
|
.then(function() {
|
|
213
219
|
this._toBeExecuted--;
|
|
214
|
-
var mParam = {
|
|
215
|
-
command: oCommand,
|
|
216
|
-
undo: false
|
|
217
|
-
};
|
|
218
220
|
this.fireCommandExecuted(mParam);
|
|
219
221
|
this.fireModified();
|
|
220
|
-
return this._waitForCommandExecutionHandler(mParam);
|
|
221
222
|
}.bind(this))
|
|
222
223
|
|
|
223
224
|
.catch(function(oError) {
|
|
@@ -239,15 +240,17 @@ sap.ui.define([
|
|
|
239
240
|
this._toBeExecuted++;
|
|
240
241
|
var oCommand = this._getCommandToBeExecuted();
|
|
241
242
|
if (oCommand) {
|
|
243
|
+
var mParam = {
|
|
244
|
+
command: oCommand,
|
|
245
|
+
undo: true
|
|
246
|
+
};
|
|
242
247
|
return oCommand.undo()
|
|
248
|
+
|
|
249
|
+
.then(this._waitForCommandExecutionHandler.bind(this, mParam))
|
|
250
|
+
|
|
243
251
|
.then(function() {
|
|
244
|
-
var mParam = {
|
|
245
|
-
command: oCommand,
|
|
246
|
-
undo: true
|
|
247
|
-
};
|
|
248
252
|
this.fireCommandExecuted(mParam);
|
|
249
253
|
this.fireModified();
|
|
250
|
-
return this._waitForCommandExecutionHandler(mParam);
|
|
251
254
|
}.bind(this));
|
|
252
255
|
}
|
|
253
256
|
return Promise.resolve();
|
|
@@ -314,4 +317,4 @@ sap.ui.define([
|
|
|
314
317
|
};
|
|
315
318
|
|
|
316
319
|
return Stack;
|
|
317
|
-
});
|
|
320
|
+
});
|