@openui5/sap.ui.rta 1.117.1 → 1.118.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/.eslintrc.json +25 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +32 -21
- package/src/sap/ui/rta/RuntimeAuthoring.js +78 -45
- package/src/sap/ui/rta/Utils.js +10 -16
- package/src/sap/ui/rta/api/startAdaptation.js +0 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +0 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +24 -26
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -3
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +5 -4
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +21 -21
- package/src/sap/ui/rta/appVariant/Feature.js +20 -30
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +21 -17
- package/src/sap/ui/rta/appVariant/Utils.js +4 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +8 -7
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +17 -17
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +5 -7
- package/src/sap/ui/rta/command/AddProperty.js +1 -3
- package/src/sap/ui/rta/command/AddXML.js +7 -7
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +5 -5
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -3
- package/src/sap/ui/rta/command/BaseCommand.js +1 -3
- package/src/sap/ui/rta/command/BindProperty.js +4 -5
- package/src/sap/ui/rta/command/Combine.js +1 -3
- package/src/sap/ui/rta/command/CommandFactory.js +7 -11
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -6
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -4
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +4 -3
- package/src/sap/ui/rta/command/CreateContainer.js +1 -3
- package/src/sap/ui/rta/command/CustomAdd.js +1 -2
- package/src/sap/ui/rta/command/FlexCommand.js +2 -7
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -3
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -3
- package/src/sap/ui/rta/command/Property.js +1 -3
- package/src/sap/ui/rta/command/Remove.js +1 -3
- package/src/sap/ui/rta/command/Rename.js +1 -3
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -3
- package/src/sap/ui/rta/command/Settings.js +5 -7
- package/src/sap/ui/rta/command/Split.js +1 -3
- package/src/sap/ui/rta/command/Stack.js +2 -4
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -3
- 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 +4 -3
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/TestDelegate.js +7 -8
- package/src/sap/ui/rta/enablement/elementActionTest.js +25 -29
- package/src/sap/ui/rta/library.js +2 -3
- package/src/sap/ui/rta/messagebundle.properties +7 -7
- package/src/sap/ui/rta/messagebundle_ar.properties +8 -8
- package/src/sap/ui/rta/messagebundle_bg.properties +7 -7
- package/src/sap/ui/rta/messagebundle_ca.properties +7 -7
- package/src/sap/ui/rta/messagebundle_cs.properties +8 -8
- package/src/sap/ui/rta/messagebundle_cy.properties +8 -8
- package/src/sap/ui/rta/messagebundle_da.properties +7 -7
- package/src/sap/ui/rta/messagebundle_de.properties +8 -8
- package/src/sap/ui/rta/messagebundle_el.properties +7 -7
- package/src/sap/ui/rta/messagebundle_en.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_GB.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +8 -8
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -7
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +8 -8
- package/src/sap/ui/rta/messagebundle_es.properties +8 -8
- package/src/sap/ui/rta/messagebundle_es_MX.properties +8 -8
- package/src/sap/ui/rta/messagebundle_et.properties +6 -6
- package/src/sap/ui/rta/messagebundle_fi.properties +8 -8
- package/src/sap/ui/rta/messagebundle_fr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +9 -9
- package/src/sap/ui/rta/messagebundle_hi.properties +7 -7
- package/src/sap/ui/rta/messagebundle_hr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_hu.properties +8 -8
- package/src/sap/ui/rta/messagebundle_id.properties +8 -8
- package/src/sap/ui/rta/messagebundle_it.properties +8 -8
- package/src/sap/ui/rta/messagebundle_iw.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ja.properties +8 -8
- package/src/sap/ui/rta/messagebundle_kk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ko.properties +7 -7
- package/src/sap/ui/rta/messagebundle_lt.properties +8 -8
- package/src/sap/ui/rta/messagebundle_lv.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ms.properties +8 -8
- package/src/sap/ui/rta/messagebundle_nl.properties +8 -8
- package/src/sap/ui/rta/messagebundle_no.properties +8 -8
- package/src/sap/ui/rta/messagebundle_pl.properties +9 -9
- package/src/sap/ui/rta/messagebundle_pt.properties +8 -8
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ro.properties +8 -8
- package/src/sap/ui/rta/messagebundle_ru.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sh.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sl.properties +8 -8
- package/src/sap/ui/rta/messagebundle_sv.properties +8 -8
- package/src/sap/ui/rta/messagebundle_th.properties +8 -8
- package/src/sap/ui/rta/messagebundle_tr.properties +8 -8
- package/src/sap/ui/rta/messagebundle_uk.properties +8 -8
- package/src/sap/ui/rta/messagebundle_vi.properties +8 -8
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +9 -9
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +8 -8
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -3
- package/src/sap/ui/rta/plugin/Combine.js +1 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +12 -8
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +13 -13
- package/src/sap/ui/rta/plugin/DragDrop.js +17 -16
- package/src/sap/ui/rta/plugin/EasyAdd.js +12 -10
- package/src/sap/ui/rta/plugin/EasyRemove.js +11 -9
- package/src/sap/ui/rta/plugin/LocalReset.js +4 -2
- package/src/sap/ui/rta/plugin/Plugin.js +6 -10
- package/src/sap/ui/rta/plugin/RTAElementMover.js +3 -6
- package/src/sap/ui/rta/plugin/Remove.js +8 -9
- package/src/sap/ui/rta/plugin/Rename.js +9 -9
- package/src/sap/ui/rta/plugin/RenameHandler.js +21 -22
- package/src/sap/ui/rta/plugin/Resize.js +11 -10
- package/src/sap/ui/rta/plugin/Selection.js +33 -14
- package/src/sap/ui/rta/plugin/Settings.js +11 -11
- package/src/sap/ui/rta/plugin/Split.js +1 -2
- package/src/sap/ui/rta/plugin/Stretch.js +18 -20
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +4 -9
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +5 -9
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +4 -4
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +41 -43
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -3
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +5 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +7 -6
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +5 -5
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +28 -27
- package/src/sap/ui/rta/service/Action.js +3 -4
- package/src/sap/ui/rta/service/ControllerExtension.js +8 -9
- package/src/sap/ui/rta/service/Outline.js +13 -11
- package/src/sap/ui/rta/service/Property.js +3 -4
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -3
- package/src/sap/ui/rta/service/SupportTools.js +2 -3
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +4 -0
- package/src/sap/ui/rta/toolbar/Adaptation.js +25 -18
- package/src/sap/ui/rta/toolbar/Base.js +25 -11
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +2 -2
- package/src/sap/ui/rta/toolbar/FeedbackDialog.fragment.xml +4 -4
- package/src/sap/ui/rta/toolbar/Fiori.js +20 -20
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +5 -6
- package/src/sap/ui/rta/toolbar/Personalization.js +4 -4
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +43 -20
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +16 -7
- package/src/sap/ui/rta/toolbar/translation/Translation.js +13 -14
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +31 -28
- package/src/sap/ui/rta/util/Animation.js +1 -3
- package/src/sap/ui/rta/util/PluginManager.js +1 -3
- package/src/sap/ui/rta/util/PopupManager.js +23 -19
- package/src/sap/ui/rta/util/ReloadManager.js +4 -4
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +18 -16
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +6 -9
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +9 -10
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +2 -2
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +2 -1
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/StylesLoader.js +0 -31
- package/src/sap/ui/rta/util/UrlParser.js +0 -51
|
@@ -35,8 +35,8 @@ sap.ui.define([
|
|
|
35
35
|
var sErrorMessage = vError.userMessage || vError.stack || vError.message || vError.status || vError;
|
|
36
36
|
var oTextResources = sap.ui.getCore().getLibraryResourceBundle("sap.ui.rta");
|
|
37
37
|
Log.error(sErrorMessage);
|
|
38
|
-
var sMsg = oTextResources.getText("MSG_LREP_TRANSFER_ERROR")
|
|
39
|
-
|
|
38
|
+
var sMsg = `${oTextResources.getText("MSG_LREP_TRANSFER_ERROR")}\n${
|
|
39
|
+
oTextResources.getText("MSG_ERROR_REASON", sErrorMessage)}`;
|
|
40
40
|
MessageBox.error(sMsg, {
|
|
41
41
|
styleClass: Utils.getRtaStyleClassName()
|
|
42
42
|
});
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
* @class
|
|
50
50
|
*
|
|
51
51
|
* @author SAP SE
|
|
52
|
-
* @version 1.
|
|
52
|
+
* @version 1.118.0
|
|
53
53
|
*
|
|
54
54
|
* @constructor
|
|
55
55
|
* @private
|
|
@@ -64,8 +64,9 @@ sap.ui.define([
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
// eslint-disable-next-line object-shorthand
|
|
68
|
+
constructor: function(...aArgs) {
|
|
69
|
+
ManagedObject.prototype.constructor.apply(this, aArgs);
|
|
69
70
|
this._oTranslationModel = new JSONModel(getInitialTranslationModelData());
|
|
70
71
|
}
|
|
71
72
|
});
|
|
@@ -74,7 +75,7 @@ sap.ui.define([
|
|
|
74
75
|
var oModel = oEvent.getSource().getModel("translation");
|
|
75
76
|
var sSourceLanguage = oModel.getProperty("/sourceLanguage");
|
|
76
77
|
var sTargetLanguage = oModel.getProperty("/targetLanguage");
|
|
77
|
-
var sFileName = sSourceLanguage
|
|
78
|
+
var sFileName = `${sSourceLanguage}_${sTargetLanguage}_` + `TranslationXLIFF`;
|
|
78
79
|
|
|
79
80
|
var mPropertyBag = {
|
|
80
81
|
layer: Layer.CUSTOMER,
|
|
@@ -106,7 +107,7 @@ sap.ui.define([
|
|
|
106
107
|
Translation.prototype._createDownloadTranslationDialog = function() {
|
|
107
108
|
return Fragment.load({
|
|
108
109
|
name: "sap.ui.rta.toolbar.translation.DownloadTranslationDialog",
|
|
109
|
-
id: this.getToolbar().getId()
|
|
110
|
+
id: `${this.getToolbar().getId()}_download_translation_fragment`,
|
|
110
111
|
controller: {
|
|
111
112
|
onDownloadFile: downloadFile.bind(this),
|
|
112
113
|
onCancelDownloadDialog: function() {
|
|
@@ -122,7 +123,7 @@ sap.ui.define([
|
|
|
122
123
|
};
|
|
123
124
|
|
|
124
125
|
Translation.prototype._createUploadTranslationDialog = function() {
|
|
125
|
-
var sUploadId = this.getToolbar().getId()
|
|
126
|
+
var sUploadId = `${this.getToolbar().getId()}_upload_translation_fragment`;
|
|
126
127
|
return Fragment.load({
|
|
127
128
|
name: "sap.ui.rta.toolbar.translation.UploadTranslationDialog",
|
|
128
129
|
id: sUploadId,
|
|
@@ -130,8 +131,8 @@ sap.ui.define([
|
|
|
130
131
|
onCancelUploadDialog: function() {
|
|
131
132
|
this._oUploadDialog.close();
|
|
132
133
|
}.bind(this),
|
|
133
|
-
formatUploadEnabled
|
|
134
|
-
var oFileUploader = sap.ui.getCore().byId(sUploadId
|
|
134
|
+
formatUploadEnabled() {
|
|
135
|
+
var oFileUploader = sap.ui.getCore().byId(`${sUploadId}--fileUploader`);
|
|
135
136
|
return oFileUploader.checkFileReadable();
|
|
136
137
|
},
|
|
137
138
|
saveFiles: function(oEvent) {
|
|
@@ -148,7 +149,7 @@ sap.ui.define([
|
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
function handleUploadPress(sUploadId) {
|
|
151
|
-
var oFileUploader = sap.ui.getCore().byId(sUploadId
|
|
152
|
+
var oFileUploader = sap.ui.getCore().byId(`${sUploadId}--fileUploader`);
|
|
152
153
|
oFileUploader.checkFileReadable().then(function() {
|
|
153
154
|
if (this._oTranslationModel.getProperty("/file")) {
|
|
154
155
|
var mPropertyBag = {
|
|
@@ -207,9 +208,7 @@ sap.ui.define([
|
|
|
207
208
|
};
|
|
208
209
|
|
|
209
210
|
Translation.prototype.openUploadTranslationDialog = function() {
|
|
210
|
-
|
|
211
|
-
this._oUploadDialogPromise = this._createUploadTranslationDialog();
|
|
212
|
-
}
|
|
211
|
+
this._oUploadDialogPromise ||= this._createUploadTranslationDialog();
|
|
213
212
|
return this._oUploadDialogPromise.then(function(oUploadDialog) {
|
|
214
213
|
this.getToolbar().addDependent(oUploadDialog);
|
|
215
214
|
return oUploadDialog.open();
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
) {
|
|
26
26
|
"use strict";
|
|
27
27
|
|
|
28
|
-
var MessageType = coreLibrary
|
|
28
|
+
var {MessageType} = coreLibrary;
|
|
29
29
|
var DRAFT_ACCENT_COLOR = "sapUiRtaDraftVersionAccent";
|
|
30
30
|
var ACTIVE_ACCENT_COLOR = "sapUiRtaActiveVersionAccent";
|
|
31
31
|
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @class
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.118.0
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|
|
@@ -51,8 +51,9 @@ sap.ui.define([
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
// eslint-disable-next-line object-shorthand
|
|
55
|
+
constructor: function(...aArgs) {
|
|
56
|
+
ManagedObject.prototype.constructor.apply(this, aArgs);
|
|
56
57
|
this.oTextResources = this.getToolbar().getTextResources();
|
|
57
58
|
}
|
|
58
59
|
});
|
|
@@ -121,15 +122,19 @@ sap.ui.define([
|
|
|
121
122
|
// in case of "Original App" and "Draft" no timestamp is set
|
|
122
123
|
return "";
|
|
123
124
|
}
|
|
124
|
-
|
|
125
|
+
if (sTimeStamp.indexOf("Z") === -1) {
|
|
126
|
+
sTimeStamp = `${sTimeStamp}Z`;
|
|
127
|
+
}
|
|
125
128
|
return DateFormat.getInstance({
|
|
126
129
|
format: "yMMMdjm"
|
|
127
|
-
}).format(new Date(sTimeStamp
|
|
130
|
+
}).format(new Date(sTimeStamp));
|
|
128
131
|
}
|
|
129
132
|
|
|
130
133
|
function getGroupHeaderFactory(oGroup) {
|
|
131
134
|
return new GroupHeaderListItem({
|
|
132
|
-
title: oGroup.key
|
|
135
|
+
title: oGroup.key
|
|
136
|
+
? this.oTextResources.getText("TIT_VERSION_HISTORY_PUBLISHED")
|
|
137
|
+
: this.oTextResources.getText("TIT_VERSION_HISTORY_UNPUBLISHED"),
|
|
133
138
|
upperCase: false,
|
|
134
139
|
visible: this.getToolbar().getModel("versions").getProperty("/publishVersionVisible")
|
|
135
140
|
}).addStyleClass("sapUiRtaVersionHistoryGrouping").addStyleClass("sapUiRtaVersionHistory");
|
|
@@ -154,7 +159,7 @@ sap.ui.define([
|
|
|
154
159
|
Versioning.prototype.formatVersionButtonText = function(aVersions, sDisplayedVersion) {
|
|
155
160
|
var sText = "";
|
|
156
161
|
var sType = "Active";
|
|
157
|
-
aVersions
|
|
162
|
+
aVersions ||= [];
|
|
158
163
|
|
|
159
164
|
if (sDisplayedVersion === undefined || sDisplayedVersion === Version.Number.Original) {
|
|
160
165
|
sText = this.oTextResources.getText("TIT_ORIGINAL_APP");
|
|
@@ -191,25 +196,23 @@ sap.ui.define([
|
|
|
191
196
|
Versioning.prototype.showVersionHistory = function(oEvent) {
|
|
192
197
|
var oVersionButton = oEvent.getSource();
|
|
193
198
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}.bind(this));
|
|
212
|
-
}
|
|
199
|
+
this._oVersionHistoryDialogPromise ||= Fragment.load({
|
|
200
|
+
name: "sap.ui.rta.toolbar.versioning.VersionHistory",
|
|
201
|
+
id: `${this.getToolbar().getId()}_fragment--sapUiRta_versionHistoryDialog`,
|
|
202
|
+
controller: {
|
|
203
|
+
formatVersionTitle: formatVersionTitle.bind(this),
|
|
204
|
+
formatVersionTimeStamp,
|
|
205
|
+
formatHighlight,
|
|
206
|
+
formatHighlightText: formatHighlightText.bind(this),
|
|
207
|
+
formatOriginalAppHighlight,
|
|
208
|
+
formatOriginalAppHighlightText: formatOriginalAppHighlightText.bind(this),
|
|
209
|
+
versionSelected: versionSelected.bind(this),
|
|
210
|
+
getGroupHeaderFactory: getGroupHeaderFactory.bind(this)
|
|
211
|
+
}
|
|
212
|
+
}).then(function(oDialog) {
|
|
213
|
+
this.getToolbar().addDependent(oDialog);
|
|
214
|
+
return oDialog;
|
|
215
|
+
}.bind(this));
|
|
213
216
|
|
|
214
217
|
return this._oVersionHistoryDialogPromise.then(function(oVersionsDialog) {
|
|
215
218
|
if (!oVersionsDialog.isOpen()) {
|
|
@@ -232,7 +235,7 @@ sap.ui.define([
|
|
|
232
235
|
if (!this._oActivateVersionDialogPromise) {
|
|
233
236
|
this._oActivateVersionDialogPromise = Fragment.load({
|
|
234
237
|
name: "sap.ui.rta.toolbar.versioning.VersionTitleDialog",
|
|
235
|
-
id: this.getToolbar().getId()
|
|
238
|
+
id: `${this.getToolbar().getId()}_fragment--sapUiRta_activateVersionDialog`,
|
|
236
239
|
controller: {
|
|
237
240
|
onConfirmVersioningDialog: function() {
|
|
238
241
|
var sVersionTitle = this.getToolbar().getControl("activateVersionDialog--versionTitleInput").getValue();
|
|
@@ -28,9 +28,7 @@ function() {
|
|
|
28
28
|
// perform animation in the next animation frame, normally 16-17ms later.
|
|
29
29
|
var iTimestampInitial;
|
|
30
30
|
var fnAnimCallback = function(iTimestamp) {
|
|
31
|
-
|
|
32
|
-
iTimestampInitial = iTimestamp;
|
|
33
|
-
}
|
|
31
|
+
iTimestampInitial ||= iTimestamp;
|
|
34
32
|
if (iTimestamp !== iTimestampInitial) {
|
|
35
33
|
fnCallback();
|
|
36
34
|
} else {
|
|
@@ -68,13 +68,11 @@ sap.ui.define([
|
|
|
68
68
|
* Constructor for a new sap.ui.rta.util.PluginManager
|
|
69
69
|
* @extends sap.ui.base.ManagedObject
|
|
70
70
|
* @author SAP SE
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.118.0
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
74
74
|
* @since 1.86
|
|
75
75
|
* @alias sap.ui.rta.util.PluginManager
|
|
76
|
-
* @experimental Since 1.86. This class is experimental and provides only limited functionality. Also the API might
|
|
77
|
-
* be changed in future.
|
|
78
76
|
*/
|
|
79
77
|
var PluginManager = ManagedObject.extend("sap.ui.rta.util.PluginManager", {
|
|
80
78
|
metadata: {
|
|
@@ -42,13 +42,11 @@ sap.ui.define([
|
|
|
42
42
|
* Constructor for a new sap.ui.rta.util.PopupManager
|
|
43
43
|
* @extends sap.ui.base.ManagedObject
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.118.0
|
|
46
46
|
* @constructor
|
|
47
47
|
* @private
|
|
48
48
|
* @since 1.48
|
|
49
49
|
* @alias sap.ui.rta.util.PopupManager
|
|
50
|
-
* @experimental Since 1.48. This class is experimental and provides only limited functionality. Also the API might
|
|
51
|
-
* be changed in future.
|
|
52
50
|
*/
|
|
53
51
|
var PopupManager = ManagedObject.extend("sap.ui.rta.util.PopupManager", {
|
|
54
52
|
metadata: {
|
|
@@ -144,7 +142,8 @@ sap.ui.define([
|
|
|
144
142
|
};
|
|
145
143
|
|
|
146
144
|
/**
|
|
147
|
-
* Filters the passed array and returns an object containing list of adaptable popups and all supported
|
|
145
|
+
* Filters the passed array and returns an object containing list of adaptable popups and all supported
|
|
146
|
+
* popup controls (also includes non-adaptable popups).
|
|
148
147
|
*
|
|
149
148
|
* @param {sap.ui.core.Popup[]} aOpenPopups Specifies open popups
|
|
150
149
|
* @returns {object} Returns an object containing all adaptation relevant popups and all supported popup controls
|
|
@@ -160,6 +159,7 @@ sap.ui.define([
|
|
|
160
159
|
// all modal type popups are supported for which modal property is later turned true, when in Adaptation mode
|
|
161
160
|
aAllSupportedPopups.push(oPopupElement);
|
|
162
161
|
}
|
|
162
|
+
return undefined;
|
|
163
163
|
}.bind(this));
|
|
164
164
|
|
|
165
165
|
return {
|
|
@@ -183,6 +183,7 @@ sap.ui.define([
|
|
|
183
183
|
if (oContent instanceof ComponentContainer) {
|
|
184
184
|
return this.oRtaRootAppComponent === this._getAppComponentForControl(Component.get(oContent.getComponent()));
|
|
185
185
|
}
|
|
186
|
+
return undefined;
|
|
186
187
|
}.bind(this))
|
|
187
188
|
: false;
|
|
188
189
|
};
|
|
@@ -250,9 +251,11 @@ sap.ui.define([
|
|
|
250
251
|
}
|
|
251
252
|
};
|
|
252
253
|
|
|
253
|
-
sNewMode === "navigation"
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
if (sNewMode === "navigation") {
|
|
255
|
+
this._applyPatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode));
|
|
256
|
+
} else {
|
|
257
|
+
this._removePatchesToOpenPopups(_curry(fnApplyFocusAndSetModal)(sNewMode));
|
|
258
|
+
}
|
|
256
259
|
};
|
|
257
260
|
|
|
258
261
|
/**
|
|
@@ -314,8 +317,9 @@ sap.ui.define([
|
|
|
314
317
|
* @private
|
|
315
318
|
*/
|
|
316
319
|
PopupManager.prototype._overrideAddFunctions = function(fnOriginalFunction) {
|
|
317
|
-
return function(
|
|
318
|
-
|
|
320
|
+
return function(...aArgs) {
|
|
321
|
+
const [oPopupElement] = aArgs;
|
|
322
|
+
var vOriginalReturn = fnOriginalFunction.apply(InstanceManager, aArgs);
|
|
319
323
|
if (this._isSupportedPopup(oPopupElement)) {
|
|
320
324
|
if (this._isPopupAdaptable(oPopupElement)
|
|
321
325
|
&& this.getRta()._oDesignTime) {
|
|
@@ -389,7 +393,7 @@ sap.ui.define([
|
|
|
389
393
|
*/
|
|
390
394
|
PopupManager.prototype._applyPopupPatch = function(oPopupElement) {
|
|
391
395
|
var oOverlayContainer = Overlay.getOverlayContainer();
|
|
392
|
-
var oPopup = oPopupElement
|
|
396
|
+
var {oPopup} = oPopupElement;
|
|
393
397
|
var aAutoCloseAreas = [
|
|
394
398
|
oPopup.oContent.getDomRef(),
|
|
395
399
|
oOverlayContainer.get(0)
|
|
@@ -413,11 +417,9 @@ sap.ui.define([
|
|
|
413
417
|
oPopup.setExtraContent(aAutoCloseAreas);
|
|
414
418
|
|
|
415
419
|
// cases when onAfterRendering is called after this function - app inside popup
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
oPopup.onAfterRendering = function() {
|
|
420
|
-
var vOriginalReturn = this.fnOriginalPopupOnAfterRendering.apply(oPopup, arguments);
|
|
420
|
+
this.fnOriginalPopupOnAfterRendering ||= oPopup.onAfterRendering;
|
|
421
|
+
oPopup.onAfterRendering = function(...aArgs) {
|
|
422
|
+
var vOriginalReturn = this.fnOriginalPopupOnAfterRendering.apply(oPopup, aArgs);
|
|
421
423
|
oPopup[this._getFocusEventName("remove")]();
|
|
422
424
|
return vOriginalReturn;
|
|
423
425
|
}.bind(this);
|
|
@@ -451,8 +453,9 @@ sap.ui.define([
|
|
|
451
453
|
* @private
|
|
452
454
|
*/
|
|
453
455
|
PopupManager.prototype._overrideRemoveFunctions = function(fnOriginalFunction) {
|
|
454
|
-
return function(
|
|
455
|
-
|
|
456
|
+
return function(...aArgs) {
|
|
457
|
+
const [oPopupElement] = aArgs;
|
|
458
|
+
var vOriginalReturn = fnOriginalFunction.apply(InstanceManager, aArgs);
|
|
456
459
|
if (this._isSupportedPopup(oPopupElement)) {
|
|
457
460
|
if (this._isPopupAdaptable(oPopupElement)
|
|
458
461
|
&& this.getRta()._oDesignTime) {
|
|
@@ -548,7 +551,8 @@ sap.ui.define([
|
|
|
548
551
|
};
|
|
549
552
|
|
|
550
553
|
/**
|
|
551
|
-
* Restores the Instance Manager AddDialogInstance/AddPopoverInstance, RemoveDialogInstance/RemovePopoverInstance
|
|
554
|
+
* Restores the Instance Manager AddDialogInstance/AddPopoverInstance, RemoveDialogInstance/RemovePopoverInstance
|
|
555
|
+
* methods and default blur event for popups
|
|
552
556
|
*
|
|
553
557
|
* @private
|
|
554
558
|
*/
|
|
@@ -579,7 +583,7 @@ sap.ui.define([
|
|
|
579
583
|
* @private
|
|
580
584
|
*/
|
|
581
585
|
PopupManager.prototype._removePopupPatch = function(oPopupElement) {
|
|
582
|
-
var oPopup = oPopupElement
|
|
586
|
+
var {oPopup} = oPopupElement;
|
|
583
587
|
oPopup[this._getFocusEventName("add")]();
|
|
584
588
|
if (this.fnOriginalPopupOnAfterRendering) {
|
|
585
589
|
oPopup.onAfterRendering = this.fnOriginalPopupOnAfterRendering;
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @namespace sap.ui.rta.util.ReloadManager
|
|
31
31
|
* @alias sap.ui.rta.util.ReloadManager
|
|
32
32
|
* @since 1.104
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.118.0
|
|
34
34
|
* @private
|
|
35
35
|
* @ui5-restricted
|
|
36
36
|
*/
|
|
@@ -211,7 +211,7 @@ sap.ui.define([
|
|
|
211
211
|
ReloadManager.enableAutomaticStart = function(sLayer, oRootControl) {
|
|
212
212
|
var sFlexReference = FlexRuntimeInfoAPI.getFlexReference({element: oRootControl});
|
|
213
213
|
var vParameter = sFlexReference || true;
|
|
214
|
-
window.sessionStorage.setItem(
|
|
214
|
+
window.sessionStorage.setItem(`sap.ui.rta.restart.${sLayer}`, vParameter);
|
|
215
215
|
};
|
|
216
216
|
|
|
217
217
|
/**
|
|
@@ -220,7 +220,7 @@ sap.ui.define([
|
|
|
220
220
|
* @param {sap.ui.fl.Layer} sLayer - Active layer
|
|
221
221
|
*/
|
|
222
222
|
ReloadManager.disableAutomaticStart = function(sLayer) {
|
|
223
|
-
window.sessionStorage.removeItem(
|
|
223
|
+
window.sessionStorage.removeItem(`sap.ui.rta.restart.${sLayer}`);
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
/**
|
|
@@ -230,7 +230,7 @@ sap.ui.define([
|
|
|
230
230
|
* @returns {boolean} <code>true</code> if restart is needed
|
|
231
231
|
*/
|
|
232
232
|
ReloadManager.needsAutomaticStart = function(sLayer) {
|
|
233
|
-
return !!window.sessionStorage.getItem(
|
|
233
|
+
return !!window.sessionStorage.getItem(`sap.ui.rta.restart.${sLayer}`);
|
|
234
234
|
};
|
|
235
235
|
|
|
236
236
|
/**
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
43
43
|
* @author SAP SE
|
|
44
44
|
* @since 1.84.0
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.118.0
|
|
46
46
|
* @private
|
|
47
47
|
*/
|
|
48
48
|
var ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -115,7 +115,7 @@ sap.ui.define([
|
|
|
115
115
|
},
|
|
116
116
|
renderer: {
|
|
117
117
|
apiVersion: 2,
|
|
118
|
-
render
|
|
118
|
+
render(oRm, oControl) {
|
|
119
119
|
oRm.openStart("div", oControl);
|
|
120
120
|
oRm.class("sapUiRtaChangeIndicator");
|
|
121
121
|
oRm.class("sapUiRtaChangeIndicatorChange");
|
|
@@ -132,7 +132,7 @@ sap.ui.define([
|
|
|
132
132
|
}
|
|
133
133
|
oRm.openEnd();
|
|
134
134
|
if (sTooltip) {
|
|
135
|
-
oRm.openStart("span", oControl.getId()
|
|
135
|
+
oRm.openStart("span", `${oControl.getId()}-tooltip`);
|
|
136
136
|
oRm.class("sapUiInvisibleText");
|
|
137
137
|
oRm.openEnd();
|
|
138
138
|
oRm.text(sTooltip);
|
|
@@ -141,12 +141,13 @@ sap.ui.define([
|
|
|
141
141
|
oRm.close("div");
|
|
142
142
|
}
|
|
143
143
|
},
|
|
144
|
-
|
|
144
|
+
// eslint-disable-next-line object-shorthand
|
|
145
|
+
constructor: function(...aArgs) {
|
|
145
146
|
this._oDetailModel = new JSONModel();
|
|
146
147
|
this._oDetailModel.setDefaultBindingMode("OneWay");
|
|
147
148
|
this._fnHoverTrue = this._setHoverStyleClasses.bind(this, true);
|
|
148
149
|
this._fnHoverFalse = this._setHoverStyleClasses.bind(this, false);
|
|
149
|
-
Control.prototype.constructor.apply(this,
|
|
150
|
+
Control.prototype.constructor.apply(this, aArgs);
|
|
150
151
|
// is needed to prevent that multiple events listeners are attached
|
|
151
152
|
// to the same overlay because setVisible is called multiple times
|
|
152
153
|
this._bEventAttachedToElement = false;
|
|
@@ -216,17 +217,17 @@ sap.ui.define([
|
|
|
216
217
|
} else {
|
|
217
218
|
var sShortenedElementLabel = ChangeVisualizationUtils.shortenString(sElementLabel);
|
|
218
219
|
var sChangeTextKey = (
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
`TXT_CHANGEVISUALIZATION_CHANGE_${
|
|
221
|
+
sCommandName.toUpperCase()}`
|
|
221
222
|
);
|
|
222
|
-
sDescriptionText = oRtaResourceBundle.getText(sChangeTextKey, sShortenedElementLabel);
|
|
223
|
-
sDescriptionTooltip = oRtaResourceBundle.getText(sChangeTextKey, sElementLabel);
|
|
223
|
+
sDescriptionText = oRtaResourceBundle.getText(sChangeTextKey, [sShortenedElementLabel]);
|
|
224
|
+
sDescriptionTooltip = oRtaResourceBundle.getText(sChangeTextKey, [sElementLabel]);
|
|
224
225
|
}
|
|
225
226
|
sDescriptionTooltip = sDescriptionText.length < sDescriptionTooltip.length ? sDescriptionTooltip : null;
|
|
226
227
|
var sDetailButtonText = oDescription && oDescription.buttonText;
|
|
227
228
|
var sIconTooltip = oRtaResourceBundle.getText(
|
|
228
|
-
|
|
229
|
-
|
|
229
|
+
`TXT_CHANGEVISUALIZATION_OVERVIEW_${
|
|
230
|
+
mChangeInformation.changeCategory.toUpperCase()}`
|
|
230
231
|
);
|
|
231
232
|
|
|
232
233
|
return {
|
|
@@ -271,8 +272,9 @@ sap.ui.define([
|
|
|
271
272
|
handleBrowserEventsOnIndicator.call(this, this, "attachBrowserEvent");
|
|
272
273
|
};
|
|
273
274
|
|
|
274
|
-
ChangeIndicator.prototype.setVisible = function(
|
|
275
|
-
|
|
275
|
+
ChangeIndicator.prototype.setVisible = function(...aArgs) {
|
|
276
|
+
const [bVisible] = aArgs;
|
|
277
|
+
Control.prototype.setVisible.apply(this, aArgs);
|
|
276
278
|
var oOverlay = Core.byId(this.getOverlayId());
|
|
277
279
|
// needed because the change indicator cleanup is only triggered on save and exit
|
|
278
280
|
if (oOverlay) {
|
|
@@ -291,10 +293,10 @@ sap.ui.define([
|
|
|
291
293
|
return this;
|
|
292
294
|
};
|
|
293
295
|
|
|
294
|
-
ChangeIndicator.prototype.focus = function() {
|
|
296
|
+
ChangeIndicator.prototype.focus = function(...aArgs) {
|
|
295
297
|
if (this.getDomRef()) {
|
|
296
298
|
// Element is rendered, focus immediately
|
|
297
|
-
Control.prototype.focus.apply(this,
|
|
299
|
+
Control.prototype.focus.apply(this, aArgs);
|
|
298
300
|
this._bScheduledForFocus = false;
|
|
299
301
|
return;
|
|
300
302
|
}
|
|
@@ -405,7 +407,7 @@ sap.ui.define([
|
|
|
405
407
|
this._iOldTabIndex = this.getDomRef().getAttribute("tabindex");
|
|
406
408
|
Fragment.load({
|
|
407
409
|
name: "sap.ui.rta.util.changeVisualization.ChangeIndicatorPopover",
|
|
408
|
-
id: this.sId
|
|
410
|
+
id: `${this.sId}Info`,
|
|
409
411
|
controller: this
|
|
410
412
|
}).then(function(oPopover) {
|
|
411
413
|
oPopover._bOpenedByChangeIndicator = true;
|
|
@@ -39,7 +39,7 @@ sap.ui.define([
|
|
|
39
39
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
|
|
40
40
|
* @author SAP SE
|
|
41
41
|
* @since 1.86.0
|
|
42
|
-
* @version 1.
|
|
42
|
+
* @version 1.118.0
|
|
43
43
|
* @private
|
|
44
44
|
*/
|
|
45
45
|
var ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
|
|
@@ -60,8 +60,9 @@ sap.ui.define([
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
// eslint-disable-next-line object-shorthand
|
|
64
|
+
constructor: function(...aArgs) {
|
|
65
|
+
ManagedObject.prototype.constructor.apply(this, aArgs);
|
|
65
66
|
|
|
66
67
|
// List of entries with indicator data, grouped by Change ID
|
|
67
68
|
this._oRegisteredChanges = {};
|
|
@@ -194,9 +195,7 @@ sap.ui.define([
|
|
|
194
195
|
sChangeCategory = Object.keys(aCategories).find(function(sChangeCategoryName) {
|
|
195
196
|
return includes(aCategories[sChangeCategoryName], sCommandName);
|
|
196
197
|
});
|
|
197
|
-
|
|
198
|
-
sChangeCategory = ChangeCategories.OTHER;
|
|
199
|
-
}
|
|
198
|
+
sChangeCategory ||= ChangeCategories.OTHER;
|
|
200
199
|
}
|
|
201
200
|
var aChangeStates;
|
|
202
201
|
var aDraftChangesList = [];
|
|
@@ -259,9 +258,7 @@ sap.ui.define([
|
|
|
259
258
|
|
|
260
259
|
function getInfoFromChangeHandler(oAppComponent, oChange) {
|
|
261
260
|
var oSelector = oChange.getOriginalSelector && oChange.getOriginalSelector();
|
|
262
|
-
|
|
263
|
-
oSelector = oChange.getSelector && oChange.getSelector();
|
|
264
|
-
}
|
|
261
|
+
oSelector ||= oChange.getSelector && oChange.getSelector();
|
|
265
262
|
var oControl = JsControlTreeModifier.bySelector(oSelector, oAppComponent);
|
|
266
263
|
if (oControl) {
|
|
267
264
|
return ChangesWriteAPI.getChangeHandler({
|
|
@@ -82,7 +82,7 @@ sap.ui.define([
|
|
|
82
82
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
83
83
|
* @author SAP SE
|
|
84
84
|
* @since 1.84.0
|
|
85
|
-
* @version 1.
|
|
85
|
+
* @version 1.118.0
|
|
86
86
|
* @private
|
|
87
87
|
*/
|
|
88
88
|
var ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|
|
@@ -110,12 +110,13 @@ sap.ui.define([
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
|
|
113
|
+
// eslint-disable-next-line object-shorthand
|
|
114
|
+
constructor: function(...aArgs) {
|
|
114
115
|
this._oChangeIndicatorRegistry = new ChangeIndicatorRegistry({
|
|
115
116
|
changeCategories: ChangeCategories.getCategories()
|
|
116
117
|
});
|
|
117
118
|
|
|
118
|
-
Control.prototype.constructor.apply(this,
|
|
119
|
+
Control.prototype.constructor.apply(this, aArgs);
|
|
119
120
|
|
|
120
121
|
this._oTextBundle = Core.getLibraryResourceBundle("sap.ui.rta");
|
|
121
122
|
this.setModel(new ResourceModel({
|
|
@@ -316,20 +317,18 @@ sap.ui.define([
|
|
|
316
317
|
};
|
|
317
318
|
|
|
318
319
|
ChangeVisualization.prototype._getChangeCategoryLabel = function(sChangeCategoryName, iChangesCount) {
|
|
319
|
-
var sLabelKey =
|
|
320
|
+
var sLabelKey = `TXT_CHANGEVISUALIZATION_OVERVIEW_${sChangeCategoryName.toUpperCase()}`;
|
|
320
321
|
return this._oTextBundle.getText(sLabelKey, [iChangesCount]);
|
|
321
322
|
};
|
|
322
323
|
|
|
323
324
|
ChangeVisualization.prototype._getChangeCategoryButton = function(sChangeCategoryName) {
|
|
324
|
-
var sButtonKey =
|
|
325
|
+
var sButtonKey = `BTN_CHANGEVISUALIZATION_OVERVIEW_${sChangeCategoryName.toUpperCase()}`;
|
|
325
326
|
return this._oTextBundle.getText(sButtonKey);
|
|
326
327
|
};
|
|
327
328
|
|
|
328
329
|
ChangeVisualization.prototype.openChangeCategorySelectionPopover = function(oEvent) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
this._oToolbarButton = Core.byId(oEvent.getParameter("id"));
|
|
332
|
-
}
|
|
330
|
+
// Event bubbled through the toolbar, get original source
|
|
331
|
+
this._oToolbarButton ||= Core.byId(oEvent.getParameter("id"));
|
|
333
332
|
var oPopover = this.getPopover();
|
|
334
333
|
|
|
335
334
|
if (!oPopover) {
|
|
@@ -648,7 +647,7 @@ sap.ui.define([
|
|
|
648
647
|
selectChange: this.selectChange.bind(this)
|
|
649
648
|
});
|
|
650
649
|
oChangeIndicator.setModel(this._oChangeVisualizationModel);
|
|
651
|
-
oChangeIndicator.bindElement(
|
|
650
|
+
oChangeIndicator.bindElement(`/content/${sSelectorId}`);
|
|
652
651
|
oChangeIndicator.setModel(this.getModel("i18n"), "i18n");
|
|
653
652
|
this._oChangeIndicatorRegistry.registerChangeIndicator(sSelectorId, oChangeIndicator);
|
|
654
653
|
};
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
if (iStringLength > 60) {
|
|
29
29
|
var sFirstPart = sString.substring(0, 27);
|
|
30
30
|
var sLastPart = sString.substring(iStringLength - 27);
|
|
31
|
-
sString = sFirstPart
|
|
31
|
+
sString = `${sFirstPart}(...)${sLastPart}`;
|
|
32
32
|
}
|
|
33
33
|
return sString;
|
|
34
34
|
};
|
|
@@ -30,8 +30,8 @@ sap.ui.define([
|
|
|
30
30
|
var sShortenedElementLabel = ChangeVisualizationUtils.shortenString(sElementLabel);
|
|
31
31
|
var sTextKey = "TXT_CHANGEVISUALIZATION_CHANGE_CREATECONTAINER";
|
|
32
32
|
return {
|
|
33
|
-
descriptionText: oRtaResourceBundle.getText(sTextKey, sShortenedElementLabel),
|
|
34
|
-
descriptionTooltip: oRtaResourceBundle.getText(sTextKey, sElementLabel)
|
|
33
|
+
descriptionText: oRtaResourceBundle.getText(sTextKey, [sShortenedElementLabel]),
|
|
34
|
+
descriptionTooltip: oRtaResourceBundle.getText(sTextKey, [sElementLabel])
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
"use strict";
|
|
17
17
|
|
|
18
18
|
function isCloneFromAggregationBinding(oControl) {
|
|
19
|
-
var sParentAggregationName = oControl
|
|
19
|
+
var {sParentAggregationName} = oControl;
|
|
20
20
|
var oParent = oControl.getParent();
|
|
21
21
|
|
|
22
22
|
if (oParent && sParentAggregationName) {
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
function isLink(sText) {
|
|
28
|
-
var oRegex = new RegExp(
|
|
28
|
+
var oRegex = new RegExp(`^${sLinkRegex}$`);
|
|
29
29
|
return Array.isArray(oRegex.exec(sText));
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -90,6 +90,7 @@ sap.ui.define([
|
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
92
|
|
|
93
|
+
// eslint-disable-next-line prefer-spread
|
|
93
94
|
aSymbols.splice.apply(aSymbols, [i, 1].concat(aInsert));
|
|
94
95
|
i += aInsert.length;
|
|
95
96
|
}
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
var sEmptyTextKey = "\xa0";
|
|
16
16
|
var oValidators = {
|
|
17
17
|
noEmptyText: {
|
|
18
|
-
validatorFunction
|
|
18
|
+
validatorFunction(sNewText) {
|
|
19
19
|
return sNewText !== sEmptyTextKey;
|
|
20
20
|
},
|
|
21
21
|
errorMessage: Core.getLibraryResourceBundle("sap.ui.rta").getText("RENAME_EMPTY_ERROR_TEXT")
|