@openui5/sap.ui.rta 1.113.0 → 1.114.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 +97 -19
- package/src/sap/ui/rta/Utils.js +1 -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 +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 +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 +22 -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/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/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 +2 -22
- 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 +95 -13
- 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 +20 -26
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +3 -15
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +119 -33
- 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 +6 -3
- 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
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.114.0
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -79,25 +79,6 @@ sap.ui.define([
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
function checkInvalidAddActions(bSibling, oSourceElementOverlay, oPlugin) {
|
|
83
|
-
var mParents = AdditionalElementsUtils.getParents(bSibling, oSourceElementOverlay, oPlugin);
|
|
84
|
-
var oDesignTimeMetadata = mParents.parentOverlay && mParents.parentOverlay.getDesignTimeMetadata();
|
|
85
|
-
var aAddODataPropertyActions = oDesignTimeMetadata ? oDesignTimeMetadata.getActionDataFromAggregations("addODataProperty", mParents.parent) : [];
|
|
86
|
-
if (aAddODataPropertyActions.length > 0) {
|
|
87
|
-
Log.error("Outdated addODataProperty action in designtime metadata in "
|
|
88
|
-
+ oDesignTimeMetadata.getData().designtimeModule
|
|
89
|
-
+ " or propagated or via instance specific designtime metadata.");
|
|
90
|
-
}
|
|
91
|
-
var aAddActions = oDesignTimeMetadata ? oDesignTimeMetadata.getActionDataFromAggregations("add", mParents.parent) : [];
|
|
92
|
-
aAddActions.forEach(function(mAddAction) {
|
|
93
|
-
if (mAddAction["custom"]) {
|
|
94
|
-
Log.error("Outdated custom add action in designtime metadata in "
|
|
95
|
-
+ oDesignTimeMetadata.getData().designtimeModule
|
|
96
|
-
+ " or propagated or via instance specific designtime metadata.");
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
82
|
function getInvisibleElements (oParentOverlay, sAggregationName, oPlugin) {
|
|
102
83
|
var oParentElement = oParentOverlay.getElement();
|
|
103
84
|
if (!oParentElement) {
|
|
@@ -337,8 +318,7 @@ sap.ui.define([
|
|
|
337
318
|
|
|
338
319
|
return Promise.all([
|
|
339
320
|
oRevealActionsPromise,
|
|
340
|
-
oAddPropertyActionsPromise
|
|
341
|
-
checkInvalidAddActions(bSibling, oSourceElementOverlay, oPlugin)
|
|
321
|
+
oAddPropertyActionsPromise
|
|
342
322
|
]).then(function(aAllActions) {
|
|
343
323
|
//join and condense all action data
|
|
344
324
|
var mAllActions = merge(aAllActions[0], aAllActions[1]);
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
76
76
|
* @extends sap.ui.rta.plugin.Plugin
|
|
77
77
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
78
|
+
* @version 1.114.0
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.44
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* Helper object containing methods for the AdditionalElements plugin
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.114.0
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.94
|
|
21
21
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Helper object to build the RTA commands resulting from the AdditionalElements Plugin
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.114.0
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.94
|
|
31
31
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
118
118
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.
|
|
120
|
+
* @version 1.114.0
|
|
121
121
|
* @constructor
|
|
122
122
|
* @private
|
|
123
123
|
* @since 1.75
|
|
@@ -4,17 +4,20 @@
|
|
|
4
4
|
xmlns:form="sap.ui.layout.form"
|
|
5
5
|
xmlns:util="sap.ui.fl.util"
|
|
6
6
|
xmlns:layout="sap.ui.layout">
|
|
7
|
-
<Dialog
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
<Dialog
|
|
8
|
+
id="sapUiRtaAddIFrameDialog"
|
|
9
|
+
title="{/text/dialogTitle}"
|
|
10
|
+
verticalScrolling="true"
|
|
11
|
+
resizable="false"
|
|
12
|
+
class="sapUiRtaAddIFrameDialog"
|
|
13
|
+
draggable="true"
|
|
14
|
+
validationSuccess="onValidationSuccess"
|
|
15
|
+
validationError="onValidationError"
|
|
16
|
+
parseError="onValidationError"
|
|
17
|
+
contentWidth="50rem"
|
|
18
|
+
contentHeight="44rem"
|
|
19
|
+
core:require="{ FloatType: 'sap/ui/model/type/Float' }"
|
|
20
|
+
>
|
|
18
21
|
<content>
|
|
19
22
|
|
|
20
23
|
<layout:VerticalLayout
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
text="{/text/widthLabel}">
|
|
62
65
|
</Label>
|
|
63
66
|
<Input id="sapUiRtaAddIFrameDialog_WidthInput" class="sapUiRtaAddIFrameDialogWidthInput"
|
|
64
|
-
value="{path: '/frameWidth/value', type: '
|
|
67
|
+
value="{path: '/frameWidth/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
65
68
|
valueState="{/frameWidth/valueState}"/>
|
|
66
69
|
<Select
|
|
67
70
|
id="sapUiRtaAddIFrameDialog_WidthUnit"
|
|
@@ -87,13 +90,14 @@
|
|
|
87
90
|
<Label id="sapUiRtaAddIFrameDialog_HeightLabel" class="sapUiRtaAddIFrameDialogHeightLabel" labelFor="sapUiRtaAddIFrameDialog_HeightInput"
|
|
88
91
|
text="{/text/heightLabel}"/>
|
|
89
92
|
<Input id="sapUiRtaAddIFrameDialog_HeightInput" class="sapUiRtaAddIFrameDialogHeightInput"
|
|
90
|
-
value="{path: '/frameHeight/value', type: '
|
|
93
|
+
value="{path: '/frameHeight/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
91
94
|
valueState="{/frameHeight/valueState}"/>
|
|
92
95
|
<Select
|
|
93
96
|
id="sapUiRtaAddIFrameDialog_HeightUnit"
|
|
94
97
|
class="sapUiRtaAddIFrameDialogHeightUnit"
|
|
95
98
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_HeightUnitLabel"
|
|
96
99
|
selectedKey="{/frameHeightUnit/value}"
|
|
100
|
+
forceSelection="false"
|
|
97
101
|
items="{/unitsOfHeightMeasure}"
|
|
98
102
|
showSecondaryValues= "true"
|
|
99
103
|
columnRatio="1:5"
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
id: "sapUiRtaAddIFrameDialog_HeightInput"
|
|
94
94
|
},
|
|
95
95
|
frameHeightUnit: {
|
|
96
|
-
value: "
|
|
96
|
+
value: "vh"
|
|
97
97
|
},
|
|
98
98
|
frameUrl: {
|
|
99
99
|
value: "",
|
|
@@ -133,7 +133,7 @@ sap.ui.define([
|
|
|
133
133
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
134
134
|
* @extends sap.ui.base.ManagedObject
|
|
135
135
|
* @author SAP SE
|
|
136
|
-
* @version 1.
|
|
136
|
+
* @version 1.114.0
|
|
137
137
|
* @constructor
|
|
138
138
|
* @private
|
|
139
139
|
* @since 1.78
|
|
@@ -301,7 +301,7 @@ sap.ui.define([
|
|
|
301
301
|
* @param {string} sSize - Size to import
|
|
302
302
|
*/
|
|
303
303
|
_importIFrameSize: function(sFieldName, sSize) {
|
|
304
|
-
var aResults = sSize.split(/(px|rem
|
|
304
|
+
var aResults = sSize.split(/(px|rem|%|vh)/);
|
|
305
305
|
if (aResults.length >= 2) {
|
|
306
306
|
this._oJSONModel.setProperty("/" + sFieldName + "/value", parseFloat(aResults[0]));
|
|
307
307
|
this._oJSONModel.setProperty("/" + sFieldName + "Unit/value", aResults[1]);
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @experimental Since 1.56
|
|
46
46
|
* @since 1.56
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.114.0
|
|
48
48
|
* @private
|
|
49
49
|
* @ui5-restricted
|
|
50
50
|
*/
|
|
@@ -331,6 +331,9 @@ sap.ui.define([
|
|
|
331
331
|
editable: oOverlay.getEditable(),
|
|
332
332
|
bIsView: oOverlay.getElement() instanceof View
|
|
333
333
|
};
|
|
334
|
+
if (oElement.isA("sap.ui.core.Component")) {
|
|
335
|
+
oData.component = true;
|
|
336
|
+
}
|
|
334
337
|
if (typeof oOverlay.isVisible() === "boolean") {
|
|
335
338
|
oData.visible = oOverlay.isVisible();
|
|
336
339
|
}
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<Button
|
|
110
110
|
id="sapUiRta_actionsMenu"
|
|
111
111
|
icon="sap-icon://menu2"
|
|
112
|
-
visible="{= ${controls>/modeSwitcher} === 'adaptation' && (${controls>/translation/visible} || ${controls>/appVariantMenu/visible} || ${controls>/restore/visible}
|
|
112
|
+
visible="{= ${controls>/modeSwitcher} === 'adaptation' && (${controls>/translation/visible} || ${controls>/appVariantMenu/visible} || ${controls>/restore/visible})}"
|
|
113
113
|
enabled="{controls>/actionsMenuButton/enabled}"
|
|
114
114
|
type="Transparent"
|
|
115
115
|
tooltip="{i18n>BTN_MENU}"
|
|
@@ -143,26 +143,65 @@
|
|
|
143
143
|
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
144
144
|
</layoutData>
|
|
145
145
|
</Button>
|
|
146
|
-
<
|
|
147
|
-
id="
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
146
|
+
<MenuButton
|
|
147
|
+
id="sapUiRta_contextBasedAdaptationMenu"
|
|
148
|
+
tooltip="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
|
|
149
|
+
text="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
|
|
150
|
+
visible="{= (${controls>/contextBasedAdaptation/visible} && ${controls>/modeSwitcher} === 'adaptation')}">
|
|
151
|
+
<Menu>
|
|
152
|
+
<MenuItem
|
|
153
|
+
id="sapUiRta_saveAsAdaptation"
|
|
154
|
+
text="{i18n>SAC_DIALOG_HEADER}"
|
|
155
|
+
press=".saveAsAdaptation"
|
|
156
|
+
icon="sap-icon://copy"/>
|
|
157
|
+
<MenuItem
|
|
158
|
+
id="sapUiRta_editAdaptation"
|
|
159
|
+
visible="{= (${contextBasedAdaptations>/count} > 0 && ${contextBasedAdaptations>/displayedAdaptation/title} !== '')}"
|
|
160
|
+
text="{i18n>EAC_DIALOG_HEADER}"
|
|
161
|
+
press=".editAdaptation"
|
|
162
|
+
icon="sap-icon://edit"/>
|
|
163
|
+
<MenuItem
|
|
164
|
+
id="sapUiRta_deleteAdaptation"
|
|
165
|
+
text="{i18n>DAC_DIALOG_HEADER}"
|
|
166
|
+
press=".deleteAdaptation"
|
|
167
|
+
visible="{= (${contextBasedAdaptations>/count} > 0 && ${contextBasedAdaptations>/displayedAdaptation/title} !== '')}"
|
|
168
|
+
icon="sap-icon://delete"/>
|
|
169
|
+
<MenuItem
|
|
170
|
+
id="sapUiRta_manageAdaptations"
|
|
171
|
+
text="{i18n>MANAGE_ADAPTATIONS_DIALOG_HEADER}"
|
|
172
|
+
press=".manageAdaptations"
|
|
173
|
+
icon="sap-icon://action-settings"/>
|
|
174
|
+
<MenuItem
|
|
175
|
+
id="sapUiRta_switchAdaptations"
|
|
176
|
+
visible="{= (${contextBasedAdaptations>/count} > 0)}"
|
|
177
|
+
text="{i18n>BTN_SWITCH_ADAPTATIONS}"
|
|
178
|
+
icon="sap-icon://switch-views"
|
|
179
|
+
items="{contextBasedAdaptations>/allAdaptations}">
|
|
180
|
+
<items>
|
|
181
|
+
<MenuItem
|
|
182
|
+
id="sapUiRta_switchAdaptations_items"
|
|
183
|
+
enabled="{= (${contextBasedAdaptations>id} !== ${contextBasedAdaptations>/displayedAdaptation/id}) }"
|
|
184
|
+
icon="{= (${contextBasedAdaptations>id} === ${contextBasedAdaptations>/displayedAdaptation/id} ? 'sap-icon://accept' : 'blank')}"
|
|
185
|
+
text="{= (${contextBasedAdaptations>title} ? ${contextBasedAdaptations>title} : ${i18n>TXT_DEFAULT_APP})}"
|
|
186
|
+
press=".switchAdaptation(${contextBasedAdaptations>id})"/>
|
|
187
|
+
</items>
|
|
188
|
+
</MenuItem>
|
|
189
|
+
</Menu>
|
|
190
|
+
<layoutData>
|
|
191
|
+
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
192
|
+
</layoutData>
|
|
193
|
+
</MenuButton>
|
|
194
|
+
<Button
|
|
195
|
+
id="sapUiRta_feedback"
|
|
196
|
+
icon="sap-icon://feedback"
|
|
197
|
+
press=".showFeedbackForm"
|
|
198
|
+
visible="{controls>/feedbackButton/visible}"
|
|
160
199
|
type="Transparent"
|
|
161
|
-
|
|
162
|
-
<
|
|
163
|
-
<OverflowToolbarLayoutData priority="
|
|
164
|
-
</
|
|
165
|
-
</
|
|
200
|
+
tooltip="{i18n>BTN_FEEDBACK}" >
|
|
201
|
+
<layoutData>
|
|
202
|
+
<OverflowToolbarLayoutData priority="NeverOverflow" />
|
|
203
|
+
</layoutData>
|
|
204
|
+
</Button>
|
|
166
205
|
<toolbar:OverflowToolbarButton
|
|
167
206
|
id="sapUiRta_save"
|
|
168
207
|
type="Transparent"
|
|
@@ -5,29 +5,43 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"./AdaptationRenderer",
|
|
9
|
+
"sap/base/Log",
|
|
10
|
+
"sap/m/MessageBox",
|
|
11
|
+
"sap/ui/core/BusyIndicator",
|
|
8
12
|
"sap/ui/core/Fragment",
|
|
9
13
|
"sap/ui/core/Popup",
|
|
14
|
+
"sap/ui/core/Core",
|
|
15
|
+
"sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
|
|
10
16
|
"sap/ui/fl/write/api/Version",
|
|
11
|
-
"sap/ui/
|
|
17
|
+
"sap/ui/model/json/JSONModel",
|
|
18
|
+
"sap/ui/model/resource/ResourceModel",
|
|
19
|
+
"sap/ui/rta/appVariant/Feature",
|
|
20
|
+
"sap/ui/rta/toolbar/Base",
|
|
12
21
|
"sap/ui/rta/toolbar/contextBased/ManageAdaptations",
|
|
22
|
+
"sap/ui/rta/toolbar/contextBased/SaveAsAdaptation",
|
|
13
23
|
"sap/ui/rta/toolbar/translation/Translation",
|
|
14
24
|
"sap/ui/rta/toolbar/versioning/Versioning",
|
|
15
|
-
"sap/ui/rta/
|
|
16
|
-
"sap/ui/rta/toolbar/Base",
|
|
17
|
-
"sap/ui/rta/Utils",
|
|
18
|
-
"./AdaptationRenderer"
|
|
25
|
+
"sap/ui/rta/Utils"
|
|
19
26
|
], function(
|
|
27
|
+
AdaptationRenderer,
|
|
28
|
+
Log,
|
|
29
|
+
MessageBox,
|
|
30
|
+
BusyIndicator,
|
|
20
31
|
Fragment,
|
|
21
32
|
Popup,
|
|
33
|
+
Core,
|
|
34
|
+
ContextBasedAdaptationsAPI,
|
|
22
35
|
Version,
|
|
23
|
-
|
|
36
|
+
JSONModel,
|
|
37
|
+
ResourceModel,
|
|
38
|
+
AppVariantFeature,
|
|
39
|
+
Base,
|
|
24
40
|
ManageAdaptations,
|
|
41
|
+
SaveAsAdaptation,
|
|
25
42
|
Translation,
|
|
26
43
|
Versioning,
|
|
27
|
-
|
|
28
|
-
Base,
|
|
29
|
-
Utils,
|
|
30
|
-
AdaptationRenderer
|
|
44
|
+
Utils
|
|
31
45
|
) {
|
|
32
46
|
"use strict";
|
|
33
47
|
|
|
@@ -39,7 +53,7 @@ sap.ui.define([
|
|
|
39
53
|
* @extends sap.ui.rta.toolbar.Base
|
|
40
54
|
*
|
|
41
55
|
* @author SAP SE
|
|
42
|
-
* @version 1.
|
|
56
|
+
* @version 1.114.0
|
|
43
57
|
*
|
|
44
58
|
* @constructor
|
|
45
59
|
* @private
|
|
@@ -66,6 +80,8 @@ sap.ui.define([
|
|
|
66
80
|
activate: {},
|
|
67
81
|
discardDraft: {},
|
|
68
82
|
switchVersion: {},
|
|
83
|
+
switchAdaptation: {},
|
|
84
|
+
deleteAdaptation: {},
|
|
69
85
|
openChangeCategorySelectionPopover: {}
|
|
70
86
|
}
|
|
71
87
|
}
|
|
@@ -299,13 +315,18 @@ sap.ui.define([
|
|
|
299
315
|
redo: this.eventHandler.bind(this, "Redo"),
|
|
300
316
|
openChangeCategorySelectionPopover: this.eventHandler.bind(this, "OpenChangeCategorySelectionPopover"),
|
|
301
317
|
saveAsAdaptation: onSaveAsAdaptation.bind(this),
|
|
318
|
+
editAdaptation: onEditAdaptation.bind(this),
|
|
319
|
+
deleteAdaptation: onDeleteAdaptation.bind(this),
|
|
302
320
|
manageAdaptations: onManageAdaptations.bind(this),
|
|
321
|
+
switchAdaptation: onSwitchAdaptations.bind(this),
|
|
322
|
+
formatAdaptationsMenuText: formatAdaptationsMenuText.bind(this),
|
|
303
323
|
publishVersion: this.eventHandler.bind(this, "PublishVersion"),
|
|
304
324
|
save: this.eventHandler.bind(this, "Save"),
|
|
305
325
|
exit: this.eventHandler.bind(this, "Exit"),
|
|
306
326
|
formatVersionButtonText: this.formatVersionButtonText.bind(this),
|
|
307
327
|
showVersionHistory: this.showVersionHistory.bind(this),
|
|
308
|
-
showActionsMenu: this.showActionsMenu.bind(this)
|
|
328
|
+
showActionsMenu: this.showActionsMenu.bind(this),
|
|
329
|
+
showFeedbackForm: this.showFeedbackForm.bind(this)
|
|
309
330
|
}
|
|
310
331
|
});
|
|
311
332
|
};
|
|
@@ -334,10 +355,32 @@ sap.ui.define([
|
|
|
334
355
|
this.getExtension("contextBasedSaveAs", SaveAsAdaptation).openAddAdaptationDialog(this.getRtaInformation().flexSettings.layer);
|
|
335
356
|
}
|
|
336
357
|
|
|
358
|
+
function onEditAdaptation() {
|
|
359
|
+
this.getExtension("contextBasedSaveAs", SaveAsAdaptation).openAddAdaptationDialog(this.getRtaInformation().flexSettings.layer, true /*bIsEditMode*/);
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
function onDeleteAdaptation() {
|
|
363
|
+
this.fireEvent("deleteAdaptation");
|
|
364
|
+
}
|
|
365
|
+
|
|
337
366
|
function onManageAdaptations() {
|
|
338
367
|
this.getExtension("contextBasedManage", ManageAdaptations).openManageAdaptationDialog();
|
|
339
368
|
}
|
|
340
369
|
|
|
370
|
+
function onSwitchAdaptations(sAdaptationId) {
|
|
371
|
+
this.fireEvent("switchAdaptation", {adaptationId: sAdaptationId});
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
function formatAdaptationsMenuText(iCount, sTitle) {
|
|
375
|
+
if (iCount > 0) {
|
|
376
|
+
if (sTitle === "") {
|
|
377
|
+
sTitle = this.getTextResources().getText("TXT_DEFAULT_APP");
|
|
378
|
+
}
|
|
379
|
+
return this.getTextResources().getText("BTN_ADAPTING_FOR", sTitle);
|
|
380
|
+
}
|
|
381
|
+
return this.getTextResources().getText("BTN_ADAPTING_FOR_ALL_USERS");
|
|
382
|
+
}
|
|
383
|
+
|
|
341
384
|
function onOverviewForKeyUserPressed() {
|
|
342
385
|
return AppVariantFeature.onGetOverview(true, this.getRtaInformation().flexSettings.layer);
|
|
343
386
|
}
|
|
@@ -369,5 +412,44 @@ sap.ui.define([
|
|
|
369
412
|
return Base.prototype.hide.apply(this, arguments);
|
|
370
413
|
};
|
|
371
414
|
|
|
415
|
+
Adaptation.prototype.showFeedbackForm = function() {
|
|
416
|
+
// Get Connector Type
|
|
417
|
+
var sConnector = Core.getConfiguration().getFlexibilityServices()[0].connector;
|
|
418
|
+
|
|
419
|
+
// Set URL
|
|
420
|
+
var sURLPart1 = "https://sapinsights.eu.qualtrics.com/jfe/form/";
|
|
421
|
+
var sURLPart2 = "SV_4MANxRymEIl9K06";
|
|
422
|
+
var sURL = sURLPart1 + sURLPart2;
|
|
423
|
+
var oUrlParams = new URLSearchParams();
|
|
424
|
+
oUrlParams.set("version", sap.ui.version);
|
|
425
|
+
oUrlParams.set("feature", (sConnector === "KeyUserConnector" ? "BTP" : "ABAP"));
|
|
426
|
+
|
|
427
|
+
var oFeedbackDialogModel = new JSONModel({
|
|
428
|
+
url: sURL + "?" + oUrlParams.toString()
|
|
429
|
+
});
|
|
430
|
+
|
|
431
|
+
return Fragment.load({
|
|
432
|
+
name: "sap.ui.rta.toolbar.FeedbackDialog",
|
|
433
|
+
controller: this
|
|
434
|
+
}).then(function (oFeedbackDialog) {
|
|
435
|
+
this._oFeedbackDialog = oFeedbackDialog;
|
|
436
|
+
this._oFeedbackDialog.addStyleClass(Utils.getRtaStyleClassName());
|
|
437
|
+
this._oFeedbackDialog.setModel(oFeedbackDialogModel, "feedbackModel");
|
|
438
|
+
this._oFeedbackDialog.setModel(this.getModel("i18n"), "i18n");
|
|
439
|
+
this._oFeedbackDialog.attachEventOnce("afterClose", function() {
|
|
440
|
+
this._oFeedbackDialog.destroy();
|
|
441
|
+
}.bind(this));
|
|
442
|
+
this._oFeedbackDialog.open();
|
|
443
|
+
}.bind(this)).catch(function (oError) {
|
|
444
|
+
Log.error("Error loading fragment sap.ui.rta.toolbar.FeedbackDialog: ", oError);
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
|
|
448
|
+
Adaptation.prototype.closeFeedbackForm = function() {
|
|
449
|
+
if (this._oFeedbackDialog) {
|
|
450
|
+
this._oFeedbackDialog.close();
|
|
451
|
+
}
|
|
452
|
+
};
|
|
453
|
+
|
|
372
454
|
return Adaptation;
|
|
373
|
-
});
|
|
455
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<core:FragmentDefinition
|
|
2
|
+
xmlns:core="sap.ui.core"
|
|
3
|
+
xmlns="sap.m"
|
|
4
|
+
xmlns:util="sap.ui.fl.util">
|
|
5
|
+
<Dialog
|
|
6
|
+
id="sapUiRtaFeedbackIFrameDialog"
|
|
7
|
+
title="{i18n>TIT_FEEDBACK}"
|
|
8
|
+
contentWidth="50rem"
|
|
9
|
+
contentHeight="50rem"
|
|
10
|
+
draggable="true">
|
|
11
|
+
<content>
|
|
12
|
+
<util:IFrame
|
|
13
|
+
id="sapUiRtaFeedbackIFrameDialog_iFrame"
|
|
14
|
+
url="{= ${feedbackModel>/url}}"
|
|
15
|
+
height="46rem"/>
|
|
16
|
+
</content>
|
|
17
|
+
<buttons>
|
|
18
|
+
<Button
|
|
19
|
+
id="sapUiRtaFeedbackIFrameDialog_ButtonClose"
|
|
20
|
+
text="{i18n>BTN_CLOSE_FEEDBACK_DIALOG}"
|
|
21
|
+
press=".closeFeedbackForm"/>
|
|
22
|
+
</buttons>
|
|
23
|
+
</Dialog>
|
|
24
|
+
</core:FragmentDefinition>
|