@openui5/sap.ui.rta 1.119.0 → 1.120.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 +4 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +14 -13
- package/src/sap/ui/rta/Utils.js +58 -56
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +7 -4
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +3 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +6 -2
- package/src/sap/ui/rta/appVariant/Feature.js +4 -4
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_bg.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ca.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_cs.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_es_MX.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hr.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_hu.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ja.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_mk.properties +28 -0
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_ms.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_pl.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_sl.properties +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +5 -3
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +6 -3
- 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 +25 -23
- 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 +5 -3
- 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 +4 -4
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +4 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +5 -6
- package/src/sap/ui/rta/messagebundle_ar.properties +3 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ca.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +3 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +3 -0
- package/src/sap/ui/rta/messagebundle_da.properties +3 -0
- package/src/sap/ui/rta/messagebundle_de.properties +3 -0
- package/src/sap/ui/rta/messagebundle_el.properties +3 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +3 -0
- package/src/sap/ui/rta/messagebundle_et.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +3 -0
- package/src/sap/ui/rta/messagebundle_id.properties +3 -0
- package/src/sap/ui/rta/messagebundle_it.properties +3 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +3 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +328 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +3 -0
- package/src/sap/ui/rta/messagebundle_nl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_no.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +3 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +3 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +59 -56
- package/src/sap/ui/rta/messagebundle_sk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +3 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +3 -0
- package/src/sap/ui/rta/messagebundle_th.properties +3 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +3 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +3 -0
- package/src/sap/ui/rta/messagebundle_vi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +3 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +3 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +4 -4
- package/src/sap/ui/rta/plugin/BaseCreate.js +4 -2
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +7 -5
- package/src/sap/ui/rta/plugin/ControlVariant.js +12 -8
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +6 -5
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +4 -2
- package/src/sap/ui/rta/plugin/EasyRemove.js +7 -3
- package/src/sap/ui/rta/plugin/LocalReset.js +7 -3
- 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 +16 -4
- package/src/sap/ui/rta/plugin/Resize.js +6 -6
- package/src/sap/ui/rta/plugin/Selection.js +3 -17
- 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 +4 -2
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +4 -2
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +6 -4
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +4 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +4 -3
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +7 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +8 -6
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +4 -2
- package/src/sap/ui/rta/service/Outline.js +4 -4
- 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 +7 -7
- package/src/sap/ui/rta/toolbar/Adaptation.js +19 -14
- package/src/sap/ui/rta/toolbar/Base.js +8 -4
- 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 +6 -7
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -2
- package/src/sap/ui/rta/toolbar/translation/Translation.js +9 -5
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +2 -2
- 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 +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/adaptationStarter.js +8 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +14 -12
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +8 -4
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +6 -4
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +3 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +3 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +3 -3
- package/src/sap/ui/rta/util/validateText.js +4 -4
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Lib",
|
|
8
9
|
"sap/ui/rta/plugin/BaseCreate",
|
|
9
10
|
"sap/ui/fl/Utils",
|
|
10
11
|
"sap/ui/dt/Util",
|
|
@@ -12,6 +13,7 @@ sap.ui.define([
|
|
|
12
13
|
"sap/ui/core/IconPool",
|
|
13
14
|
"sap/ui/rta/plugin/iframe/AddIFrameDialog"
|
|
14
15
|
], function(
|
|
16
|
+
Lib,
|
|
15
17
|
BaseCreate,
|
|
16
18
|
FlexUtils,
|
|
17
19
|
DtUtil,
|
|
@@ -117,12 +119,11 @@ sap.ui.define([
|
|
|
117
119
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
118
120
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
119
121
|
* @author SAP SE
|
|
120
|
-
* @version 1.
|
|
122
|
+
* @version 1.120.0
|
|
121
123
|
* @constructor
|
|
122
124
|
* @private
|
|
123
125
|
* @since 1.75
|
|
124
126
|
* @alias sap.ui.rta.plugin.AddIFrame
|
|
125
|
-
* Since 1.75. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
126
127
|
*/
|
|
127
128
|
var AddIFrame = BaseCreate.extend("sap.ui.rta.plugin.AddIFrame", /** @lends sap.ui.rta.plugin.AddIFrame.prototype */{
|
|
128
129
|
metadata: {
|
|
@@ -155,7 +156,7 @@ sap.ui.define([
|
|
|
155
156
|
*/
|
|
156
157
|
AddIFrame.prototype.getMenuItems = async function(aElementOverlays) {
|
|
157
158
|
function getCommonProperties(sAggregationName) {
|
|
158
|
-
var oTextResources =
|
|
159
|
+
var oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
159
160
|
var sIFrameGroupText = oTextResources.getText("CTX_ADDIFRAME_GROUP");
|
|
160
161
|
return {
|
|
161
162
|
text: getCreateMenuItemText.bind(this, sAggregationName, "CTX_ADDIFRAME", oTextResources),
|
|
@@ -8,7 +8,8 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/base/ManagedObject",
|
|
9
9
|
"sap/ui/core/Fragment",
|
|
10
10
|
"sap/ui/core/library",
|
|
11
|
-
"sap/ui/core/
|
|
11
|
+
"sap/ui/core/Element",
|
|
12
|
+
"sap/ui/core/Lib",
|
|
12
13
|
"sap/ui/model/json/JSONModel",
|
|
13
14
|
"sap/ui/rta/Utils",
|
|
14
15
|
"sap/ui/rta/plugin/iframe/AddIFrameDialogController",
|
|
@@ -18,7 +19,8 @@ sap.ui.define([
|
|
|
18
19
|
ManagedObject,
|
|
19
20
|
Fragment,
|
|
20
21
|
coreLibrary,
|
|
21
|
-
|
|
22
|
+
Element,
|
|
23
|
+
Lib,
|
|
22
24
|
JSONModel,
|
|
23
25
|
RtaUtils,
|
|
24
26
|
AddIFrameDialogController,
|
|
@@ -28,7 +30,7 @@ sap.ui.define([
|
|
|
28
30
|
|
|
29
31
|
// shortcut for sap.ui.core.ValueState
|
|
30
32
|
var {ValueState} = coreLibrary;
|
|
31
|
-
var _oTextResources =
|
|
33
|
+
var _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
32
34
|
var _sDocumentationURL = "https://help.sap.com/docs/search?q=Embedding%20Content%20%28Object%20Pages%29";
|
|
33
35
|
var _sDocumentationHTML = `${_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_TEXT")} (` + `<a href=${_sDocumentationURL}>${_oTextResources.getText("IFRAME_ADDIFRAME_DIALOG_URL_WARNING_LINKTEXT")}</a>` + `)`;
|
|
34
36
|
var _mText = {
|
|
@@ -142,7 +144,7 @@ sap.ui.define([
|
|
|
142
144
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
143
145
|
* @extends sap.ui.base.ManagedObject
|
|
144
146
|
* @author SAP SE
|
|
145
|
-
* @version 1.
|
|
147
|
+
* @version 1.120.0
|
|
146
148
|
* @constructor
|
|
147
149
|
* @private
|
|
148
150
|
* @since 1.78
|
|
@@ -226,7 +228,7 @@ sap.ui.define([
|
|
|
226
228
|
* @private
|
|
227
229
|
*/
|
|
228
230
|
AddIFrameDialog.prototype._disablePanelExpand = function() {
|
|
229
|
-
var oPanelButton =
|
|
231
|
+
var oPanelButton = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewLinkPanel").getDependents()[0];
|
|
230
232
|
if (oPanelButton) {
|
|
231
233
|
oPanelButton.setEnabled(false);
|
|
232
234
|
}
|
|
@@ -8,6 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/m/Popover",
|
|
9
9
|
"sap/m/Text",
|
|
10
10
|
"sap/ui/core/mvc/Controller",
|
|
11
|
+
"sap/ui/core/Element",
|
|
11
12
|
"sap/ui/core/library",
|
|
12
13
|
"sap/ui/rta/util/validateText",
|
|
13
14
|
"sap/ui/rta/Utils",
|
|
@@ -20,6 +21,7 @@ sap.ui.define([
|
|
|
20
21
|
Popover,
|
|
21
22
|
Text,
|
|
22
23
|
Controller,
|
|
24
|
+
Element,
|
|
23
25
|
coreLibrary,
|
|
24
26
|
validateText,
|
|
25
27
|
Utils,
|
|
@@ -90,9 +92,9 @@ sap.ui.define([
|
|
|
90
92
|
if (!isValidUrl(sURL)) {
|
|
91
93
|
return;
|
|
92
94
|
}
|
|
93
|
-
var oIFrame =
|
|
95
|
+
var oIFrame = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
94
96
|
// enable/disable expanding the Panel
|
|
95
|
-
var oPanel =
|
|
97
|
+
var oPanel = Element.getElementById("sapUiRtaAddIFrameDialog_PreviewLinkPanel");
|
|
96
98
|
var oPanelButton = oPanel.getDependents()[0];
|
|
97
99
|
if (sURL) {
|
|
98
100
|
oPanelButton.setEnabled(true);
|
|
@@ -128,7 +130,7 @@ sap.ui.define([
|
|
|
128
130
|
*/
|
|
129
131
|
onLiveChange(oEvent) {
|
|
130
132
|
var oFilter = new Filter("label", FilterOperator.Contains, oEvent.getParameter("newValue"));
|
|
131
|
-
var oBinding =
|
|
133
|
+
var oBinding = Element.getElementById("sapUiRtaAddIFrameDialog_ParameterTable").getBinding("items");
|
|
132
134
|
oBinding.filter([oFilter]);
|
|
133
135
|
},
|
|
134
136
|
|
|
@@ -188,7 +190,7 @@ sap.ui.define([
|
|
|
188
190
|
|
|
189
191
|
onUrlChange() {
|
|
190
192
|
var sUrl = this._buildPreviewURL(this._buildReturnedURL());
|
|
191
|
-
var oUrlInput =
|
|
193
|
+
var oUrlInput = Element.getElementById("sapUiRtaAddIFrameDialog_EditUrlTA");
|
|
192
194
|
if (isValidUrl(sUrl)) {
|
|
193
195
|
oUrlInput.setValueState("None");
|
|
194
196
|
} else {
|
|
@@ -249,7 +251,7 @@ sap.ui.define([
|
|
|
249
251
|
* @private
|
|
250
252
|
*/
|
|
251
253
|
_close(mSettings) {
|
|
252
|
-
var oAddIFrameDialog =
|
|
254
|
+
var oAddIFrameDialog = Element.getElementById("sapUiRtaAddIFrameDialog");
|
|
253
255
|
this._mSettings = mSettings;
|
|
254
256
|
oAddIFrameDialog.close();
|
|
255
257
|
},
|
|
@@ -347,7 +349,7 @@ sap.ui.define([
|
|
|
347
349
|
var oData = this._oJSONModel.getData();
|
|
348
350
|
_aNumericInputFields.some(function(sFieldName) {
|
|
349
351
|
if (oData[sFieldName].valueState === ValueState.Error) {
|
|
350
|
-
var oElement =
|
|
352
|
+
var oElement = Element.getElementById(oData[sFieldName].id);
|
|
351
353
|
oElement.focus();
|
|
352
354
|
return true;
|
|
353
355
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Element",
|
|
8
9
|
"sap/ui/dt/Util",
|
|
9
10
|
"sap/ui/dt/OverlayRegistry",
|
|
10
11
|
"sap/ui/fl/Utils",
|
|
@@ -13,6 +14,7 @@ sap.ui.define([
|
|
|
13
14
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
14
15
|
"sap/ui/thirdparty/jquery"
|
|
15
16
|
], function(
|
|
17
|
+
Element,
|
|
16
18
|
DtUtil,
|
|
17
19
|
OverlayRegistry,
|
|
18
20
|
FlexUtils,
|
|
@@ -30,7 +32,7 @@ sap.ui.define([
|
|
|
30
32
|
* @name sap.ui.rta.service.ControllerExtension
|
|
31
33
|
* @author SAP SE
|
|
32
34
|
* @since 1.58
|
|
33
|
-
* @version 1.
|
|
35
|
+
* @version 1.120.0
|
|
34
36
|
* @private
|
|
35
37
|
* @ui5-restricted
|
|
36
38
|
*/
|
|
@@ -86,7 +88,7 @@ sap.ui.define([
|
|
|
86
88
|
throw DtUtil.createError("service.ControllerExtension#add", "codeRef has to end with 'js'");
|
|
87
89
|
}
|
|
88
90
|
|
|
89
|
-
var oView =
|
|
91
|
+
var oView = Element.getElementById(sViewId);
|
|
90
92
|
var oAppComponent = FlexUtils.getAppComponentForControl(oView);
|
|
91
93
|
var sControllerName = oView.getControllerName && oView.getControllerName() || oView.getController() && oView.getController().getMetadata().getName();
|
|
92
94
|
// Calculate moduleName for code extension
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
"sap/base/util/restricted/_omit",
|
|
18
18
|
"sap/ui/core/mvc/View",
|
|
19
19
|
"sap/base/Log",
|
|
20
|
-
"sap/ui/
|
|
20
|
+
"sap/ui/base/DesignTime"
|
|
21
21
|
], function(
|
|
22
22
|
OverlayRegistry,
|
|
23
23
|
ElementOverlay,
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
_omit,
|
|
32
32
|
View,
|
|
33
33
|
Log,
|
|
34
|
-
|
|
34
|
+
DesignTime
|
|
35
35
|
) {
|
|
36
36
|
"use strict";
|
|
37
37
|
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @name sap.ui.rta.service.Outline
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @since 1.56
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.120.0
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted
|
|
49
49
|
*/
|
|
@@ -185,7 +185,7 @@ sap.ui.define([
|
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
oOutline._enrichExtensionPointData = function(oData, oOverlay) {
|
|
188
|
-
var bIsDesignMode =
|
|
188
|
+
var bIsDesignMode = DesignTime.isDesignModeEnabled();
|
|
189
189
|
if (!bIsDesignMode) {
|
|
190
190
|
return undefined;
|
|
191
191
|
}
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/
|
|
8
|
+
"sap/ui/core/Element",
|
|
9
9
|
"sap/ui/core/util/reflection/JsControlTreeModifier",
|
|
10
10
|
"sap/ui/dt/OverlayRegistry",
|
|
11
11
|
"sap/ui/fl/write/api/ChangesWriteAPI"
|
|
12
12
|
], function(
|
|
13
|
-
|
|
13
|
+
Element,
|
|
14
14
|
JsControlTreeModifier,
|
|
15
15
|
OverlayRegistry,
|
|
16
16
|
ChangesWriteAPI
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @name sap.ui.rta.service.SupportTools
|
|
29
29
|
* @author SAP SE
|
|
30
30
|
* @since 1.106
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.120.0
|
|
32
32
|
* @private
|
|
33
33
|
* @ui5-restricted
|
|
34
34
|
*/
|
|
@@ -101,7 +101,7 @@ sap.ui.define([
|
|
|
101
101
|
* @param {string} mPayload.overlayId
|
|
102
102
|
*/
|
|
103
103
|
function getOverlayInfo(oRta, mPayload) {
|
|
104
|
-
var oOverlay =
|
|
104
|
+
var oOverlay = Element.getElementById(mPayload.overlayId);
|
|
105
105
|
if (!oOverlay) {
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
@@ -144,7 +144,7 @@ sap.ui.define([
|
|
|
144
144
|
* @param {string} mPayload.pluginName
|
|
145
145
|
*/
|
|
146
146
|
function printChangeHandler(oRta, mPayload) {
|
|
147
|
-
var oOverlay =
|
|
147
|
+
var oOverlay = Element.getElementById(mPayload.overlayId);
|
|
148
148
|
var oPlugin = getPluginByName(oRta, mPayload.pluginName);
|
|
149
149
|
getPluginChangeHandler(oPlugin, oOverlay, oRta)
|
|
150
150
|
.then(console.log); // eslint-disable-line no-console
|
|
@@ -175,7 +175,7 @@ sap.ui.define([
|
|
|
175
175
|
*/
|
|
176
176
|
function changeOverlaySelection(oRta, mPayload) {
|
|
177
177
|
// set new focus and enforce collecting overlay info data
|
|
178
|
-
var oOverlay =
|
|
178
|
+
var oOverlay = Element.getElementById(mPayload.overlayId);
|
|
179
179
|
oOverlay.focus();
|
|
180
180
|
window.postMessage({
|
|
181
181
|
type: "getOverlayInfo",
|
|
@@ -237,7 +237,7 @@ sap.ui.define([
|
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
function printDesignTimeMetadata(oRta, mPayload) {
|
|
240
|
-
var oOverlay =
|
|
240
|
+
var oOverlay = Element.getElementById(mPayload.overlayId);
|
|
241
241
|
console.log(oOverlay.getDesignTimeMetadata().getData()); // eslint-disable-line no-console
|
|
242
242
|
}
|
|
243
243
|
|
|
@@ -7,13 +7,16 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"./AdaptationRenderer",
|
|
9
9
|
"sap/base/Log",
|
|
10
|
+
"sap/m/MessageBox",
|
|
10
11
|
"sap/ui/core/BusyIndicator",
|
|
12
|
+
"sap/ui/core/Element",
|
|
11
13
|
"sap/ui/core/Fragment",
|
|
12
14
|
"sap/ui/core/Popup",
|
|
13
|
-
"sap/ui/
|
|
15
|
+
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
16
|
+
"sap/ui/fl/initial/api/Version",
|
|
14
17
|
"sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
|
|
15
|
-
"sap/ui/fl/write/api/Version",
|
|
16
18
|
"sap/ui/model/json/JSONModel",
|
|
19
|
+
"sap/ui/performance/Measurement",
|
|
17
20
|
"sap/ui/rta/appVariant/Feature",
|
|
18
21
|
"sap/ui/rta/toolbar/Base",
|
|
19
22
|
"sap/ui/rta/toolbar/contextBased/ManageAdaptations",
|
|
@@ -21,18 +24,20 @@ sap.ui.define([
|
|
|
21
24
|
"sap/ui/rta/toolbar/translation/Translation",
|
|
22
25
|
"sap/ui/rta/toolbar/versioning/Versioning",
|
|
23
26
|
"sap/ui/rta/Utils",
|
|
24
|
-
"sap/
|
|
25
|
-
"sap/ui/performance/Measurement"
|
|
27
|
+
"sap/ui/VersionInfo"
|
|
26
28
|
], function(
|
|
27
29
|
AdaptationRenderer,
|
|
28
30
|
Log,
|
|
31
|
+
MessageBox,
|
|
29
32
|
BusyIndicator,
|
|
33
|
+
Element,
|
|
30
34
|
Fragment,
|
|
31
35
|
Popup,
|
|
32
|
-
|
|
33
|
-
ContextBasedAdaptationsAPI,
|
|
36
|
+
FlexRuntimeInfoAPI,
|
|
34
37
|
Version,
|
|
38
|
+
ContextBasedAdaptationsAPI,
|
|
35
39
|
JSONModel,
|
|
40
|
+
Measurement,
|
|
36
41
|
AppVariantFeature,
|
|
37
42
|
Base,
|
|
38
43
|
ManageAdaptations,
|
|
@@ -40,8 +45,7 @@ sap.ui.define([
|
|
|
40
45
|
Translation,
|
|
41
46
|
Versioning,
|
|
42
47
|
Utils,
|
|
43
|
-
|
|
44
|
-
Measurement
|
|
48
|
+
VersionInfo
|
|
45
49
|
) {
|
|
46
50
|
"use strict";
|
|
47
51
|
|
|
@@ -53,7 +57,7 @@ sap.ui.define([
|
|
|
53
57
|
* @extends sap.ui.rta.toolbar.Base
|
|
54
58
|
*
|
|
55
59
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
60
|
+
* @version 1.120.0
|
|
57
61
|
*
|
|
58
62
|
* @constructor
|
|
59
63
|
* @private
|
|
@@ -475,10 +479,10 @@ sap.ui.define([
|
|
|
475
479
|
}
|
|
476
480
|
|
|
477
481
|
Adaptation.prototype.getControl = function(sName) {
|
|
478
|
-
var oControl =
|
|
482
|
+
var oControl = Element.getElementById(`${this.getId()}_fragment--sapUiRta_${sName}`);
|
|
479
483
|
// Control is inside the ActionsMenu
|
|
480
484
|
if (!oControl && this._oActionsMenuFragment) {
|
|
481
|
-
oControl =
|
|
485
|
+
oControl = Element.getElementById(this._oActionsMenuFragment.getId().replace("sapUiRta_actions", "sapUiRta_") + sName);
|
|
482
486
|
}
|
|
483
487
|
return oControl;
|
|
484
488
|
};
|
|
@@ -493,16 +497,17 @@ sap.ui.define([
|
|
|
493
497
|
return Base.prototype.hide.apply(this, aArgs);
|
|
494
498
|
};
|
|
495
499
|
|
|
496
|
-
Adaptation.prototype.showFeedbackForm = function() {
|
|
500
|
+
Adaptation.prototype.showFeedbackForm = async function() {
|
|
497
501
|
// Get Connector Type
|
|
498
|
-
var sConnector =
|
|
502
|
+
var sConnector = FlexRuntimeInfoAPI.getConfiguredFlexServices()[0].connector;
|
|
499
503
|
|
|
500
504
|
// Set URL
|
|
501
505
|
var sURLPart1 = "https://sapinsights.eu.qualtrics.com/jfe/form/";
|
|
502
506
|
var sURLPart2 = "SV_4MANxRymEIl9K06";
|
|
503
507
|
var sURL = sURLPart1 + sURLPart2;
|
|
504
508
|
var oUrlParams = new URLSearchParams();
|
|
505
|
-
|
|
509
|
+
const oVersion = await VersionInfo.load();
|
|
510
|
+
oUrlParams.set("version", oVersion.version);
|
|
506
511
|
oUrlParams.set("feature", (sConnector === "KeyUserConnector" ? "BTP" : "ABAP"));
|
|
507
512
|
|
|
508
513
|
var oFeedbackDialogModel = new JSONModel({
|
|
@@ -6,14 +6,18 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/m/HBox",
|
|
9
|
+
"sap/ui/core/Element",
|
|
9
10
|
"sap/ui/core/StaticArea",
|
|
11
|
+
"sap/ui/core/Lib",
|
|
10
12
|
"sap/ui/dt/util/ZIndexManager",
|
|
11
13
|
"sap/ui/model/resource/ResourceModel",
|
|
12
14
|
"sap/ui/rta/util/Animation",
|
|
13
15
|
"./BaseRenderer"
|
|
14
16
|
], function(
|
|
15
17
|
HBox,
|
|
18
|
+
Element,
|
|
16
19
|
StaticArea,
|
|
20
|
+
Lib,
|
|
17
21
|
ZIndexManager,
|
|
18
22
|
ResourceModel,
|
|
19
23
|
Animation,
|
|
@@ -29,7 +33,7 @@ sap.ui.define([
|
|
|
29
33
|
* @extends sap.m.HBox
|
|
30
34
|
*
|
|
31
35
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
36
|
+
* @version 1.120.0
|
|
33
37
|
*
|
|
34
38
|
* @constructor
|
|
35
39
|
* @private
|
|
@@ -99,7 +103,7 @@ sap.ui.define([
|
|
|
99
103
|
*/
|
|
100
104
|
Base.prototype.init = function(...aArgs) {
|
|
101
105
|
this._oResourceModel = new ResourceModel({
|
|
102
|
-
bundle:
|
|
106
|
+
bundle: Lib.getResourceBundleFor("sap.ui.rta")
|
|
103
107
|
});
|
|
104
108
|
HBox.prototype.init.apply(this, aArgs);
|
|
105
109
|
// Assign the model object to the SAPUI5 core using the name "i18n"
|
|
@@ -140,7 +144,7 @@ sap.ui.define([
|
|
|
140
144
|
Base.prototype.setTextResources = function(oTextResource) {
|
|
141
145
|
this.setProperty("textResources", oTextResource);
|
|
142
146
|
this._oResourceModel = new ResourceModel({
|
|
143
|
-
bundle:
|
|
147
|
+
bundle: Lib.getResourceBundleFor("sap.ui.rta")
|
|
144
148
|
});
|
|
145
149
|
};
|
|
146
150
|
|
|
@@ -252,7 +256,7 @@ sap.ui.define([
|
|
|
252
256
|
* @public
|
|
253
257
|
*/
|
|
254
258
|
Base.prototype.getControl = function(sName) {
|
|
255
|
-
return
|
|
259
|
+
return Element.getElementById(`sapUiRta_${sName}`);
|
|
256
260
|
};
|
|
257
261
|
|
|
258
262
|
/**
|
|
@@ -6,29 +6,28 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.ui.rta.toolbar.contextBased.ManageAdaptationsDialog
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
"sap/base/
|
|
9
|
+
"sap/base/i18n/Localization",
|
|
10
10
|
"sap/base/util/restricted/_isEqual",
|
|
11
|
+
"sap/base/Log",
|
|
11
12
|
"sap/ui/base/ManagedObject",
|
|
12
13
|
"sap/ui/core/Fragment",
|
|
13
14
|
"sap/ui/fl/write/api/ContextBasedAdaptationsAPI",
|
|
14
15
|
"sap/m/ColumnListItem",
|
|
15
16
|
"sap/ui/rta/Utils",
|
|
16
|
-
"sap/ui/rta/toolbar/contextBased/SaveAsAdaptation",
|
|
17
17
|
"sap/ui/model/Filter",
|
|
18
18
|
"sap/ui/model/FilterOperator",
|
|
19
19
|
"sap/ui/model/json/JSONModel",
|
|
20
20
|
"sap/ui/core/date/UI5Date",
|
|
21
21
|
"sap/ui/performance/Measurement"
|
|
22
|
-
],
|
|
23
|
-
|
|
24
|
-
Log,
|
|
22
|
+
], function(
|
|
23
|
+
Localization,
|
|
25
24
|
_isEqual,
|
|
25
|
+
Log,
|
|
26
26
|
ManagedObject,
|
|
27
27
|
Fragment,
|
|
28
28
|
ContextBasedAdaptationsAPI,
|
|
29
29
|
ColumnListItem,
|
|
30
30
|
Utils,
|
|
31
|
-
SaveAsAdaptation,
|
|
32
31
|
Filter,
|
|
33
32
|
FilterOperator,
|
|
34
33
|
JSONModel,
|
|
@@ -146,7 +145,7 @@ function(
|
|
|
146
145
|
hour: "numeric",
|
|
147
146
|
minute: "numeric"
|
|
148
147
|
};
|
|
149
|
-
var sLanguage =
|
|
148
|
+
var sLanguage = Localization.getLanguage();
|
|
150
149
|
return `${sModifiedBy}\n${oUi5Date.toLocaleTimeString(sLanguage, oOptions)}`;
|
|
151
150
|
}
|
|
152
151
|
|
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
"sap/base/Log",
|
|
10
10
|
"sap/base/strings/formatMessage",
|
|
11
11
|
"sap/ui/core/BusyIndicator",
|
|
12
|
+
"sap/ui/core/Element",
|
|
12
13
|
"sap/ui/core/Fragment",
|
|
13
14
|
"sap/ui/core/library",
|
|
14
15
|
"sap/ui/fl/Layer",
|
|
@@ -22,6 +23,7 @@ sap.ui.define([
|
|
|
22
23
|
Log,
|
|
23
24
|
formatMessage,
|
|
24
25
|
BusyIndicator,
|
|
26
|
+
Element,
|
|
25
27
|
Fragment,
|
|
26
28
|
coreLibrary,
|
|
27
29
|
Layer,
|
|
@@ -43,7 +45,7 @@ sap.ui.define([
|
|
|
43
45
|
* @class
|
|
44
46
|
*
|
|
45
47
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
48
|
+
* @version 1.120.0
|
|
47
49
|
*
|
|
48
50
|
* @constructor
|
|
49
51
|
* @private
|
|
@@ -263,7 +265,7 @@ sap.ui.define([
|
|
|
263
265
|
this._oContextComponentInstance = oContextSharingComponent.getComponentInstance();
|
|
264
266
|
this._oContextComponentInstance.resetSelectedContexts();
|
|
265
267
|
this._oAddAdaptationDialog.addContent(this._oContextComponent);
|
|
266
|
-
var oContextsList =
|
|
268
|
+
var oContextsList = Element.getElementById("contextSharing---ContextVisibility--selectedContextsList");
|
|
267
269
|
oContextsList.attachUpdateFinished(onContextRoleChange.bind(this));
|
|
268
270
|
oContextsList.getHeaderToolbar().getContent()[0].setRequired(true);
|
|
269
271
|
this._oContextComponentInstance.setEmptyListTextWithAdvice();
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
sap.ui.define([
|
|
10
10
|
"sap/base/Log",
|
|
11
11
|
"sap/ui/base/ManagedObject",
|
|
12
|
+
"sap/ui/core/Element",
|
|
12
13
|
"sap/ui/core/Fragment",
|
|
14
|
+
"sap/ui/core/Lib",
|
|
13
15
|
"sap/ui/rta/Utils",
|
|
14
16
|
"sap/ui/model/json/JSONModel",
|
|
15
17
|
"sap/m/MessageBox",
|
|
@@ -20,7 +22,9 @@ sap.ui.define([
|
|
|
20
22
|
], function(
|
|
21
23
|
Log,
|
|
22
24
|
ManagedObject,
|
|
25
|
+
Element,
|
|
23
26
|
Fragment,
|
|
27
|
+
Lib,
|
|
24
28
|
Utils,
|
|
25
29
|
JSONModel,
|
|
26
30
|
MessageBox,
|
|
@@ -33,7 +37,7 @@ sap.ui.define([
|
|
|
33
37
|
|
|
34
38
|
function showError(vError) {
|
|
35
39
|
var sErrorMessage = vError.userMessage || vError.stack || vError.message || vError.status || vError;
|
|
36
|
-
var oTextResources =
|
|
40
|
+
var oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
37
41
|
Log.error(sErrorMessage);
|
|
38
42
|
var sMsg = `${oTextResources.getText("MSG_LREP_TRANSFER_ERROR")}\n${
|
|
39
43
|
oTextResources.getText("MSG_ERROR_REASON", [sErrorMessage])}`;
|
|
@@ -49,7 +53,7 @@ sap.ui.define([
|
|
|
49
53
|
* @class
|
|
50
54
|
*
|
|
51
55
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
56
|
+
* @version 1.120.0
|
|
53
57
|
*
|
|
54
58
|
* @constructor
|
|
55
59
|
* @private
|
|
@@ -132,7 +136,7 @@ sap.ui.define([
|
|
|
132
136
|
this._oUploadDialog.close();
|
|
133
137
|
}.bind(this),
|
|
134
138
|
formatUploadEnabled() {
|
|
135
|
-
var oFileUploader =
|
|
139
|
+
var oFileUploader = Element.getElementById(`${sUploadId}--fileUploader`);
|
|
136
140
|
return oFileUploader.checkFileReadable();
|
|
137
141
|
},
|
|
138
142
|
saveFiles: function(oEvent) {
|
|
@@ -149,7 +153,7 @@ sap.ui.define([
|
|
|
149
153
|
};
|
|
150
154
|
|
|
151
155
|
function handleUploadPress(sUploadId) {
|
|
152
|
-
var oFileUploader =
|
|
156
|
+
var oFileUploader = Element.getElementById(`${sUploadId}--fileUploader`);
|
|
153
157
|
oFileUploader.checkFileReadable().then(function() {
|
|
154
158
|
if (this._oTranslationModel.getProperty("/file")) {
|
|
155
159
|
var mPropertyBag = {
|
|
@@ -158,7 +162,7 @@ sap.ui.define([
|
|
|
158
162
|
};
|
|
159
163
|
mPropertyBag.payload.append("file", this._oTranslationModel.getProperty("/file"), oFileUploader.getValue());
|
|
160
164
|
return TranslationAPI.uploadTranslationTexts(mPropertyBag).then(function() {
|
|
161
|
-
var oTextResources =
|
|
165
|
+
var oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
162
166
|
var sMsg = oTextResources.getText("MSG_UPLOAD_TRANSLATION_SUCCESS");
|
|
163
167
|
MessageToast.show(sMsg, {
|
|
164
168
|
styleClass: Utils.getRtaStyleClassName()
|
|
@@ -10,7 +10,7 @@ sap.ui.define([
|
|
|
10
10
|
"sap/ui/core/format/DateFormat",
|
|
11
11
|
"sap/ui/core/Fragment",
|
|
12
12
|
"sap/ui/core/library",
|
|
13
|
-
"sap/ui/fl/
|
|
13
|
+
"sap/ui/fl/initial/api/Version",
|
|
14
14
|
"sap/ui/model/Sorter",
|
|
15
15
|
"sap/ui/rta/Utils"
|
|
16
16
|
], function(
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @class
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.120.0
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|