@openui5/sap.ui.rta 1.113.0 → 1.114.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/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 +157 -53
- package/src/sap/ui/rta/Utils.js +35 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +6 -5
- 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 +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 +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 +4 -2
- 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 +4 -2
- 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 +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 +93 -76
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +40 -2
- package/src/sap/ui/rta/messagebundle_ar.properties +12 -4
- package/src/sap/ui/rta/messagebundle_bg.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ca.properties +12 -4
- package/src/sap/ui/rta/messagebundle_cs.properties +12 -4
- package/src/sap/ui/rta/messagebundle_cy.properties +12 -4
- package/src/sap/ui/rta/messagebundle_da.properties +12 -4
- package/src/sap/ui/rta/messagebundle_de.properties +12 -4
- package/src/sap/ui/rta/messagebundle_el.properties +12 -4
- package/src/sap/ui/rta/messagebundle_en.properties +10 -2
- package/src/sap/ui/rta/messagebundle_en_GB.properties +10 -2
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +10 -2
- package/src/sap/ui/rta/messagebundle_es.properties +12 -4
- package/src/sap/ui/rta/messagebundle_es_MX.properties +12 -4
- package/src/sap/ui/rta/messagebundle_et.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hu.properties +12 -4
- package/src/sap/ui/rta/messagebundle_id.properties +12 -4
- package/src/sap/ui/rta/messagebundle_it.properties +12 -4
- package/src/sap/ui/rta/messagebundle_iw.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ja.properties +16 -8
- package/src/sap/ui/rta/messagebundle_kk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ko.properties +16 -8
- package/src/sap/ui/rta/messagebundle_lt.properties +12 -4
- package/src/sap/ui/rta/messagebundle_lv.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +16 -8
- package/src/sap/ui/rta/messagebundle_nl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_no.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pt.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sh.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sv.properties +12 -4
- package/src/sap/ui/rta/messagebundle_th.properties +12 -4
- package/src/sap/ui/rta/messagebundle_tr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_vi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +12 -4
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +12 -4
- 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 +6 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +4 -2
- 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 +11 -24
- 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.fragment.xml +17 -13
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.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 +4 -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/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +59 -20
- package/src/sap/ui/rta/toolbar/Adaptation.js +161 -12
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/FeedbackDialog.fragment.xml +24 -0
- 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/contextBased/ManageAdaptations.js +68 -37
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +5 -23
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +121 -35
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +12 -10
- 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 +32 -21
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +15 -6
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +16 -9
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* @extends sap.ui.base.ManagedObject
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.114.1
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.42
|
|
@@ -152,7 +152,8 @@ sap.ui.define([
|
|
|
152
152
|
* @param {boolean} mPropertyBag.saveAsDraft - save the changes as a draft
|
|
153
153
|
* @param {string} [mPropertyBag.layer] - Layer for which the changes should be saved
|
|
154
154
|
* @param {boolean} [mPropertyBag.removeOtherLayerChanges=false] - Whether to remove changes on other layers before saving
|
|
155
|
-
* @param {string} [mPropertyBag.version] -
|
|
155
|
+
* @param {string} [mPropertyBag.version] - Version to load into Flex State after saving (e.g. undefined when exiting RTA)
|
|
156
|
+
* @param {string} [mPropertyBag.adaptationId] - Adaptation to load into Flex State after saving (e.g. undefined when exiting RTA)
|
|
156
157
|
* @returns {Promise} return empty promise
|
|
157
158
|
* @public
|
|
158
159
|
*/
|
|
@@ -172,6 +173,7 @@ sap.ui.define([
|
|
|
172
173
|
layer: mPropertyBag.layer,
|
|
173
174
|
removeOtherLayerChanges: !!mPropertyBag.removeOtherLayerChanges,
|
|
174
175
|
version: mPropertyBag.version,
|
|
176
|
+
adaptationId: mPropertyBag.adaptationId,
|
|
175
177
|
condenseAnyLayer: mPropertyBag.condenseAnyLayer
|
|
176
178
|
});
|
|
177
179
|
}.bind(this))
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"sap/ui/core/UIComponent",
|
|
10
10
|
"sap/ui/core/ComponentContainer",
|
|
11
|
+
"sap/ui/core/Core",
|
|
11
12
|
"sap/ui/core/mvc/XMLView",
|
|
12
13
|
"sap/ui/rta/command/CommandFactory",
|
|
14
|
+
"sap/ui/rta/util/changeVisualization/ChangeCategories",
|
|
13
15
|
"sap/ui/rta/util/changeVisualization/ChangeVisualization",
|
|
14
16
|
"sap/ui/dt/DesignTime",
|
|
15
17
|
"sap/ui/dt/DesignTimeStatus",
|
|
@@ -25,8 +27,10 @@ sap.ui.define([
|
|
|
25
27
|
], function(
|
|
26
28
|
UIComponent,
|
|
27
29
|
ComponentContainer,
|
|
30
|
+
Core,
|
|
28
31
|
XMLView,
|
|
29
32
|
CommandFactory,
|
|
33
|
+
ChangeCategories,
|
|
30
34
|
ChangeVisualization,
|
|
31
35
|
DesignTime,
|
|
32
36
|
DesignTimeStatus,
|
|
@@ -53,7 +57,7 @@ sap.ui.define([
|
|
|
53
57
|
* E.g. <code>elementActionTest.only("Remove");</code>
|
|
54
58
|
*
|
|
55
59
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
60
|
+
* @version 1.114.1
|
|
57
61
|
*
|
|
58
62
|
* @static
|
|
59
63
|
* @since 1.42
|
|
@@ -66,10 +70,12 @@ sap.ui.define([
|
|
|
66
70
|
* @param {sap.ui.model.Model} [mOptions.model] - Any model to be assigned on the view
|
|
67
71
|
* @param {string} [mOptions.placeAt="qunit-fixture"] - Id of tag to place view at runtime
|
|
68
72
|
* @param {boolean} [mOptions.jsOnly] - Set to true, if change handler cannot work on xml view
|
|
73
|
+
* @param {string} [mOptions.label] - Check the result of "getLabel" function from the control designtime metadata
|
|
69
74
|
* @param {object} mOptions.action - Action to operate on <code>mOptions.xmlView</code>
|
|
70
75
|
* @param {string} mOptions.action.name - Name of the action - e.g. 'remove', 'move', 'rename'
|
|
71
76
|
* @param {string} [mOptions.action.controlId] - Id of the control the action is executed with - may be the parent of the control being 'touched'
|
|
72
77
|
* @param {function():sap.ui.core.Control} [mOptions.action.control] - Function returning the control instance on which the change is being applied
|
|
78
|
+
* @param {string} [mOptions.action.label] - Check the result of "getLabel" function from the action in the control designtime metadata
|
|
73
79
|
* @param {function} mOptions.action.parameter - Function(oView) returning the parameter object of the action to be executed
|
|
74
80
|
* @param {function} [mOptions.before] - Function(assert) hook before test execution is started
|
|
75
81
|
* @param {function} [mOptions.after] - Function(assert) hook after test execution is finished
|
|
@@ -167,7 +173,7 @@ sap.ui.define([
|
|
|
167
173
|
this.oView.setModel(mOptions.model);
|
|
168
174
|
}
|
|
169
175
|
|
|
170
|
-
|
|
176
|
+
Core.applyChanges();
|
|
171
177
|
|
|
172
178
|
return mOptions.model && mOptions.model.getMetaModel() && mOptions.model.getMetaModel().loaded();
|
|
173
179
|
}.bind(this));
|
|
@@ -195,83 +201,94 @@ sap.ui.define([
|
|
|
195
201
|
}
|
|
196
202
|
|
|
197
203
|
function buildCommand(assert, oAction) {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
204
|
+
var oControl;
|
|
205
|
+
var mParameter;
|
|
206
|
+
var oElementDesignTimeMetadata;
|
|
207
|
+
var sCommandName = oAction.name;
|
|
208
|
+
return Promise.resolve()
|
|
209
|
+
.then(function() {
|
|
202
210
|
if (typeof oAction.control === "function") {
|
|
203
|
-
|
|
204
|
-
} else {
|
|
205
|
-
oControl = this.oView.byId(oAction.controlId);
|
|
211
|
+
return oAction.control(this.oView);
|
|
206
212
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
return this.oView.byId(oAction.controlId);
|
|
214
|
+
}.bind(this))
|
|
215
|
+
.then(function(oRetrievedControl) {
|
|
216
|
+
oControl = oRetrievedControl;
|
|
217
|
+
return oControl.getMetadata().loadDesignTime(oControl);
|
|
218
|
+
})
|
|
219
|
+
.then(function() {
|
|
220
|
+
if (oAction.parameter) {
|
|
221
|
+
if (typeof oAction.parameter === "function") {
|
|
222
|
+
mParameter = oAction.parameter(this.oView);
|
|
215
223
|
} else {
|
|
216
|
-
mParameter =
|
|
224
|
+
mParameter = oAction.parameter;
|
|
217
225
|
}
|
|
226
|
+
} else {
|
|
227
|
+
mParameter = {};
|
|
228
|
+
}
|
|
218
229
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
230
|
+
Core.applyChanges();
|
|
231
|
+
this.oDesignTime = new DesignTime({
|
|
232
|
+
rootElements: [
|
|
233
|
+
this.oView
|
|
234
|
+
]
|
|
235
|
+
});
|
|
236
|
+
return new Promise(function(resolve) {
|
|
237
|
+
this.oDesignTime.attachEventOnce("synced", function() {
|
|
238
|
+
// The "settings" action doesn't require an overlay
|
|
239
|
+
if (oAction.name === "settings") {
|
|
240
|
+
return resolve();
|
|
241
|
+
}
|
|
242
|
+
var oControlOverlay = OverlayRegistry.getOverlay(oControl);
|
|
243
|
+
oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
|
|
244
|
+
var oResponsibleElement = oElementDesignTimeMetadata.getAction("getResponsibleElement", oControl);
|
|
245
|
+
var oAggregationOverlay;
|
|
246
|
+
if (mOptions.label) {
|
|
247
|
+
assert.strictEqual(oElementDesignTimeMetadata.getLabel(oControl), mOptions.label, "then the control label is correct");
|
|
248
|
+
}
|
|
249
|
+
if (oAction.name === "move") {
|
|
250
|
+
var oElementOverlay = OverlayRegistry.getOverlay(mParameter.movedElements[0].element || mParameter.movedElements[0].id);
|
|
251
|
+
var oRelevantContainer = oElementOverlay.getRelevantContainer();
|
|
252
|
+
oControl = oRelevantContainer;
|
|
253
|
+
oElementDesignTimeMetadata = oElementOverlay.getParentAggregationOverlay().getDesignTimeMetadata();
|
|
254
|
+
} else if (Array.isArray(oAction.name)) {
|
|
255
|
+
var aAddActions = oElementDesignTimeMetadata.getActionDataFromAggregations(oAction.name[0], oControl, undefined, oAction.name[1]);
|
|
256
|
+
assert.equal(aAddActions.length, 1, "there should be only one aggregation with the possibility to do an add " + oAction.name[1] + " action");
|
|
257
|
+
oAggregationOverlay = oControlOverlay.getAggregationOverlay(aAddActions[0].aggregation);
|
|
258
|
+
oElementDesignTimeMetadata = oAggregationOverlay.getDesignTimeMetadata();
|
|
259
|
+
sCommandName = "addDelegateProperty";
|
|
260
|
+
} else if (oResponsibleElement) {
|
|
261
|
+
if (oAction.name === "reveal") {
|
|
262
|
+
oControl = oAction.revealedElement(this.oView);
|
|
263
|
+
oControlOverlay = OverlayRegistry.getOverlay(oAction.revealedElement(this.oView));
|
|
264
|
+
oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
|
|
265
|
+
if (oAction.label) {
|
|
266
|
+
var oRevealAction = oElementDesignTimeMetadata.getAction("reveal");
|
|
267
|
+
assert.strictEqual(oRevealAction.getLabel(oControl), oAction.label, "then the control label is correct");
|
|
255
268
|
}
|
|
269
|
+
} else {
|
|
270
|
+
oControl = oResponsibleElement;
|
|
271
|
+
oControlOverlay = OverlayRegistry.getOverlay(oControl);
|
|
272
|
+
oElementDesignTimeMetadata = oControlOverlay.getDesignTimeMetadata();
|
|
273
|
+
resolve(oControl.getMetadata().loadDesignTime(oControl));
|
|
256
274
|
}
|
|
257
|
-
resolve();
|
|
258
|
-
}.bind(this));
|
|
259
|
-
}.bind(this));
|
|
260
|
-
}.bind(this))
|
|
261
|
-
.then(function() {
|
|
262
|
-
var oCommandFactory = new CommandFactory({
|
|
263
|
-
flexSettings: {
|
|
264
|
-
layer: mOptions.layer || Layer.CUSTOMER
|
|
265
275
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
})
|
|
269
|
-
.then(function(oCommand) {
|
|
270
|
-
assert.ok(oCommand, "then the registration for action to change type, the registration for change and control type to change handler is available and " + mOptions.action.name + " is a valid action");
|
|
271
|
-
return oCommand;
|
|
272
|
-
});
|
|
276
|
+
resolve();
|
|
277
|
+
}.bind(this));
|
|
278
|
+
}.bind(this));
|
|
273
279
|
}.bind(this))
|
|
274
|
-
|
|
280
|
+
.then(function() {
|
|
281
|
+
var oCommandFactory = new CommandFactory({
|
|
282
|
+
flexSettings: {
|
|
283
|
+
layer: mOptions.layer || Layer.CUSTOMER
|
|
284
|
+
}
|
|
285
|
+
});
|
|
286
|
+
return oCommandFactory.getCommandFor(oControl, sCommandName, mParameter, oElementDesignTimeMetadata);
|
|
287
|
+
})
|
|
288
|
+
.then(function(oCommand) {
|
|
289
|
+
assert.ok(oCommand, "then the registration for action to change type, the registration for change and control type to change handler is available and " + mOptions.action.name + " is a valid action");
|
|
290
|
+
return oCommand;
|
|
291
|
+
})
|
|
275
292
|
.catch(function(oMessage) {
|
|
276
293
|
throw new Error(oMessage);
|
|
277
294
|
});
|
|
@@ -358,7 +375,7 @@ sap.ui.define([
|
|
|
358
375
|
return oChangeVisualization._updateChangeRegistry()
|
|
359
376
|
|
|
360
377
|
.then(function() {
|
|
361
|
-
return oChangeVisualization._selectChangeCategory(
|
|
378
|
+
return oChangeVisualization._selectChangeCategory(ChangeCategories.ALL);
|
|
362
379
|
})
|
|
363
380
|
|
|
364
381
|
.then(function() {
|
|
@@ -496,7 +513,7 @@ sap.ui.define([
|
|
|
496
513
|
}.bind(this))
|
|
497
514
|
|
|
498
515
|
.then(function() {
|
|
499
|
-
|
|
516
|
+
Core.applyChanges();
|
|
500
517
|
mOptions.afterUndo(this.oUiComponent, this.oView, assert);
|
|
501
518
|
}.bind(this));
|
|
502
519
|
});
|
|
@@ -525,7 +542,7 @@ sap.ui.define([
|
|
|
525
542
|
}.bind(this))
|
|
526
543
|
|
|
527
544
|
.then(function() {
|
|
528
|
-
|
|
545
|
+
Core.applyChanges();
|
|
529
546
|
mOptions.afterRedo(this.oUiComponent, this.oView, assert);
|
|
530
547
|
}.bind(this));
|
|
531
548
|
});
|
|
@@ -576,7 +593,7 @@ sap.ui.define([
|
|
|
576
593
|
}.bind(this))
|
|
577
594
|
|
|
578
595
|
.then(function() {
|
|
579
|
-
|
|
596
|
+
Core.applyChanges();
|
|
580
597
|
return mOptions.afterAction(this.oUiComponent, this.oView, assert);
|
|
581
598
|
}.bind(this));
|
|
582
599
|
});
|
|
@@ -589,7 +606,7 @@ sap.ui.define([
|
|
|
589
606
|
.then(cleanUpAfterUndo.bind(null, this.aCommands))
|
|
590
607
|
|
|
591
608
|
.then(function() {
|
|
592
|
-
|
|
609
|
+
Core.applyChanges();
|
|
593
610
|
return mOptions.afterUndo(this.oUiComponent, this.oView, assert);
|
|
594
611
|
}.bind(this));
|
|
595
612
|
});
|
|
@@ -614,7 +631,7 @@ sap.ui.define([
|
|
|
614
631
|
}.bind(this))
|
|
615
632
|
|
|
616
633
|
.then(function() {
|
|
617
|
-
|
|
634
|
+
Core.applyChanges();
|
|
618
635
|
return mOptions.afterRedo(this.oUiComponent, this.oView, assert);
|
|
619
636
|
}.bind(this));
|
|
620
637
|
});
|
|
@@ -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.114.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.114.1",
|
|
34
34
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
35
35
|
types: [],
|
|
36
36
|
interfaces: [],
|
|
@@ -95,6 +95,12 @@ BTN_MENU=More Actions
|
|
|
95
95
|
BTN_RESTORE=Reset
|
|
96
96
|
#XBUT: Button 'UI Adaptation' of the Toolbar
|
|
97
97
|
BTN_ADAPTATION=UI Adaptation
|
|
98
|
+
#XBUT: Button 'Feedback' of the Toolbar
|
|
99
|
+
BTN_FEEDBACK=Feedback
|
|
100
|
+
#XBUT: Button 'Close' in Feedback Dialog
|
|
101
|
+
BTN_CLOSE_FEEDBACK_DIALOG=Close
|
|
102
|
+
#XTIT: Title for feedback dialog
|
|
103
|
+
TIT_FEEDBACK=Give Feedback
|
|
98
104
|
#XTIT: Title used for a button text, feed title and highlight text to indicate the existence of a draft version in the current session
|
|
99
105
|
TIT_DRAFT=Draft
|
|
100
106
|
#XTIT: Title used for a button text, feed title and highlight text for the 'original app'
|
|
@@ -113,6 +119,10 @@ TIT_VERSION_HISTORY_UNPUBLISHED=Unpublished
|
|
|
113
119
|
MSG_DRAFT_ACTIVATION_SUCCESS=New version activated
|
|
114
120
|
#XMSG: message toast text when activated failed
|
|
115
121
|
MSG_DRAFT_ACTIVATION_FAILED=Sorry, the draft cannot be activated at this time. Please try again later.
|
|
122
|
+
#XMSG: message box text when version switch failed
|
|
123
|
+
MSG_SWITCH_VERSION_FAILED=Failed to switch version. Please reload.
|
|
124
|
+
#XMSG: message box text when adaptation switch failed
|
|
125
|
+
MSG_SWITCH_ADAPTATION_FAILED=Failed to switch adaptation. Please reload.
|
|
116
126
|
#TIT: Title of a published version
|
|
117
127
|
TIT_VERSION_TITLE=Title
|
|
118
128
|
#XTIT: Title for the dialog to state a title for a version the key user is about to activate
|
|
@@ -208,7 +218,7 @@ MSG_NO_FIELDS=No more content available
|
|
|
208
218
|
#XHED: Dialog title for personalization exists
|
|
209
219
|
HEADER_PERSONALIZATION_EXISTS=Information
|
|
210
220
|
#XMSG: Dialog message for personalization exists
|
|
211
|
-
MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=You have personalized the app or there are public views. The app will now reload without these changes.
|
|
221
|
+
MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=You have personalized the app or there are public views. The app will now reload without these changes.
|
|
212
222
|
#XMSG: MessageToast to warn users that changes made in navigation mode will be discarded after exit
|
|
213
223
|
MSG_NAVIGATION_MODE_CHANGES_WARNING=Changes made to the UI in navigation mode will be discarded after you exit UI Adaptation.
|
|
214
224
|
#XMSG: Dialog message for draft changes exists
|
|
@@ -245,6 +255,10 @@ MSG_RELOAD_WITH_VIEWS_PERSONALIZATION_AND_WITHOUT_DRAFT=The app will now reload
|
|
|
245
255
|
MSG_RELOAD_WITH_PERSONALIZATION_AND_RESTRICTED_CONTEXT=The app will now reload with your personalization changes. Your public or role-specific views will be applied again.
|
|
246
256
|
#XMSG: Dialog message for reload without restricted contexts
|
|
247
257
|
MSG_RELOAD_WITHOUT_ALL_CONTEXT=The app will now reload with your public or role-specific views.
|
|
258
|
+
#XMSG: Dialog message for reload without context-based adaptation and personalization changes
|
|
259
|
+
MSG_RELOAD_WITH_PERSONALIZATION_AND_CONTEXT_BASED_ADAPTATION=The app will now reload with your personal changes and with the adaptation that has the highest priority matching your user roles.
|
|
260
|
+
#XMSG: Dialog message for reload if key user adaptation is not the highest ranked context-based adaptation for end user
|
|
261
|
+
MSG_RELOAD_OTHER_CONTEXT_BASED_ADAPTATION=The app will now reload with the adaptation that has the highest priority matching your user roles.
|
|
248
262
|
#XMSG: Dialog message before a reload when personalization changes will be applied again
|
|
249
263
|
MSG_RELOAD_WITH_ALL_CHANGES=The app will reload with all changes.
|
|
250
264
|
#XMSG: Dialog message before a reload when changes need server-side processing and new cache tokens to be fetched (rare case for use to see this message)
|
|
@@ -540,10 +554,32 @@ MSG_NO_KEY_USER_RIGHTS_ERROR_MESSAGE=You do not have key user permissions. Pleas
|
|
|
540
554
|
BTN_TOOLTIP_MOVE_UP=Move up
|
|
541
555
|
#XBTN: Tooltip for button to move list item down
|
|
542
556
|
BTN_TOOLTIP_MOVE_DOWN=Move down
|
|
557
|
+
#XTIT: RTA toolbar menu button text if there is one context-based adaptation
|
|
558
|
+
BTN_ADAPTING_FOR=Adapting for ''{0}''
|
|
559
|
+
#XTIT: RTA toolbar menu button text if there is no context-based adaptation
|
|
560
|
+
BTN_ADAPTING_FOR_ALL_USERS=Adapting for 'All Users'
|
|
561
|
+
#XTIT: Context-based Adaptation Sub Menu Button to switch to another context-based adaptation
|
|
562
|
+
BTN_SWITCH_ADAPTATIONS=Switch Adaptations
|
|
543
563
|
#XTIT: Context-Based Adaptation Edit Dialog title
|
|
544
564
|
EAC_DIALOG_HEADER=Edit Adaptation
|
|
545
565
|
#XTIT: Context-Based Adaptation Save Dialog title
|
|
546
566
|
SAC_DIALOG_HEADER=Save as New Adaptation
|
|
567
|
+
#XTIT: Context-Based Adaptation Delete Dialog title
|
|
568
|
+
DAC_DIALOG_HEADER=Delete Adaptation
|
|
569
|
+
#XTIT: Context-Based Adaptation Delete Dialog description
|
|
570
|
+
DAC_DIALOG_DESCRIPTION=Do you really want to delete this adaptation?
|
|
571
|
+
#XMSG: Context-Based Adaptation dialog to delete but unsaved changes exist description
|
|
572
|
+
DAC_DATA_LOSS_DIALOG_DESCRIPTION=You have unsaved UI changes. Deleting this adaptation will also delete the UI changes. Do you really want to delete this adaptation?
|
|
573
|
+
#XTIT: Context-Based Adaptation Migration Dialog title
|
|
574
|
+
DAC_DIALOG_MIGRATION_HEADER=Migrate Views
|
|
575
|
+
#XMSG: Context-Based Adaptation Migration Dialog description
|
|
576
|
+
DAC_DIALOG_MIGRATION_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.
|
|
577
|
+
#XMSG: Context-Based Adaptation Migration Dialog description
|
|
578
|
+
DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.\n\n You have unsaved UI changes. These will be discarded before the migration.
|
|
579
|
+
#XMSG: Context-Based Adaptation Migration Successful Dialog description
|
|
580
|
+
DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION=Views have been successfully migrated.\n You can now switch to the created adaptations and verify them.
|
|
581
|
+
#XMSG: Context-Based Adaptation Migration Error Dialog description
|
|
582
|
+
DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION=An Error occurred during the migration. Please try again later or contact your administrator.
|
|
547
583
|
#XTITT: Context-Based Adaptation Manage Dialog title
|
|
548
584
|
MANAGE_ADAPTATIONS_DIALOG_HEADER=Manage Adaptations
|
|
549
585
|
#XTIT: Text for Manage Adaptations Button in RTA toolbar
|
|
@@ -589,11 +625,13 @@ TXT_TABLE_CONTEXT_CELL_ROLE=role
|
|
|
589
625
|
#XFLD: postfix for context table cell
|
|
590
626
|
TXT_TABLE_CONTEXT_CELL_ROLES=roles
|
|
591
627
|
#XTXT: title of adaptation without contexts
|
|
592
|
-
TXT_DEFAULT_APP=
|
|
628
|
+
TXT_DEFAULT_APP=Context-free adaptation
|
|
593
629
|
#XBUT: Context-Based Adaptation predefined text for Save button
|
|
594
630
|
APP_CTX_DIALOG_SAVE=Save
|
|
595
631
|
#XBUT: Context-Based Adaptation predefined text for Cancel button
|
|
596
632
|
APP_CTX_DIALOG_CANCEL=Cancel
|
|
633
|
+
#XBUT: Context-Based Adaptation predefined text for Confirm button
|
|
634
|
+
APP_CTX_DIALOG_CONFIRM=Confirm
|
|
597
635
|
TOOLTIP_APP_CTX_DIALOG_SAVE=Context-based adaptation has not been changed.
|
|
598
636
|
#TXT: Context-Based Adaptation duplicate title error message
|
|
599
637
|
TXT_CTX_ERROR_DUPLICATE_TITLE=The adaptation title already exists. Please enter a different title.
|