@openui5/sap.ui.rta 1.141.2 → 1.143.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 +3 -2
- package/README.md +2 -2
- package/REUSE.toml +39 -1
- package/THIRDPARTY.txt +36 -3
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +21 -17
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +0 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +4 -4
- package/src/sap/ui/rta/appVariant/Feature.js +1 -1
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +2 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +0 -1
- 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/AnnotationCommand.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 +2 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -3
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -2
- 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/ExtendControllerCommand.js +9 -2
- package/src/sap/ui/rta/command/FlexCommand.js +3 -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/ManifestCommand.js +2 -2
- 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 +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +3 -3
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
- package/src/sap/ui/rta/enablement/elementActionTest.js +5 -5
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +7 -1
- package/src/sap/ui/rta/messagebundle_ar.properties +4 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ca.properties +4 -1
- package/src/sap/ui/rta/messagebundle_cnr.properties +4 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +4 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +4 -1
- package/src/sap/ui/rta/messagebundle_da.properties +4 -1
- package/src/sap/ui/rta/messagebundle_de.properties +4 -1
- package/src/sap/ui/rta/messagebundle_el.properties +4 -1
- package/src/sap/ui/rta/messagebundle_en.properties +4 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +4 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -0
- package/src/sap/ui/rta/messagebundle_es.properties +4 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +4 -1
- package/src/sap/ui/rta/messagebundle_et.properties +5 -2
- package/src/sap/ui/rta/messagebundle_fi.properties +4 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +4 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +4 -1
- package/src/sap/ui/rta/messagebundle_hi.properties +4 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +4 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +4 -1
- package/src/sap/ui/rta/messagebundle_id.properties +4 -1
- package/src/sap/ui/rta/messagebundle_it.properties +4 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +4 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +4 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +4 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +4 -1
- package/src/sap/ui/rta/messagebundle_mk.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +4 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +4 -1
- package/src/sap/ui/rta/messagebundle_no.properties +4 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +4 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +4 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +4 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +4 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +4 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +4 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +4 -1
- package/src/sap/ui/rta/messagebundle_sr.properties +4 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +4 -1
- package/src/sap/ui/rta/messagebundle_th.properties +4 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +4 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +4 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +4 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +4 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +4 -1
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +3 -3
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +3 -3
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +3 -3
- package/src/sap/ui/rta/plugin/ExtendControllerPlugin.js +3 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +3 -3
- package/src/sap/ui/rta/plugin/Plugin.js +9 -9
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- 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 +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +3 -3
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +61 -48
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +2 -3
- 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/annotations/AnnotationChangeDialog.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +4 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +3 -4
- package/src/sap/ui/rta/plugin/rename/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +10 -5
- package/src/sap/ui/rta/service/Outline.js +3 -3
- package/src/sap/ui/rta/service/Property.js +10 -10
- 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/themes/base/ChangeVisualization.less +1 -1
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +5 -0
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +1 -0
- package/src/sap/ui/rta/toolbar/Adaptation.js +5 -5
- package/src/sap/ui/rta/toolbar/Base.js +2 -3
- 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 +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +3 -4
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -5
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -2
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +3 -4
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +3 -3
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.js +1 -2
- package/src/sap/ui/rta/util/adaptationStarter.js +3 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/resolveBinding.js +1 -1
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/whatsNewImages/ExtendedActions.png +0 -0
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class Context - Dialog for available Fields in Runtime Authoring
|
|
33
33
|
* @extends sap.ui.base.ManagedObject
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.143.0
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.44
|
|
@@ -57,57 +57,81 @@ sap.ui.define([
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
let oRTAResourceModel;
|
|
61
|
-
|
|
62
60
|
/**
|
|
63
61
|
* Initialize the Dialog
|
|
64
62
|
*
|
|
65
63
|
* @private
|
|
66
64
|
*/
|
|
67
65
|
AddElementsDialog.prototype.init = function() {
|
|
68
|
-
this._oDialogPromise = Fragment.load({
|
|
69
|
-
id: this.getId(),
|
|
70
|
-
name: "sap.ui.rta.plugin.additionalElements.AddElementsDialog",
|
|
71
|
-
controller: this
|
|
72
|
-
});
|
|
73
|
-
|
|
74
66
|
this._oDialogModel = new JSONModel({
|
|
75
67
|
elements: [],
|
|
76
68
|
customFieldButtonText: "",
|
|
77
69
|
customFieldButtonVisible: false,
|
|
78
70
|
businessContextVisible: false,
|
|
79
71
|
customFieldButtonTooltip: "",
|
|
80
|
-
businessContextTexts: [{text: ""}], // empty element in first place to be replaced by the headerText (see: addExtensibilityInfo)
|
|
72
|
+
businessContextTexts: [{ text: "" }], // empty element in first place to be replaced by the headerText (see: addExtensibilityInfo)
|
|
81
73
|
extensibilityMenuButtonActive: false,
|
|
82
74
|
extensibilityMenuButtonText: "",
|
|
83
75
|
extensibilityMenuButtonTooltip: "",
|
|
84
76
|
extensibilityOptions: []
|
|
85
77
|
});
|
|
86
78
|
|
|
87
|
-
this.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
79
|
+
this._bDescendingSortOrder = false;
|
|
80
|
+
this.oRTAResourceModel = new ResourceModel({ bundleName: "sap.ui.rta.messagebundle" });
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
AddElementsDialog.prototype.exit = function(...aArgs) {
|
|
84
|
+
if (this._oDialog) {
|
|
85
|
+
this._oDialog.destroy();
|
|
86
|
+
}
|
|
91
87
|
|
|
92
|
-
|
|
88
|
+
if (ManagedObject.prototype.exit) {
|
|
89
|
+
ManagedObject.prototype.exit.apply(this, aArgs);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Create the Add Elements Dialog
|
|
95
|
+
*
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
AddElementsDialog.prototype._createDialog = function() {
|
|
99
|
+
Fragment.load({
|
|
100
|
+
id: this.getId(),
|
|
101
|
+
name: "sap.ui.rta.plugin.additionalElements.AddElementsDialog",
|
|
102
|
+
controller: this
|
|
103
|
+
}).then(function(oDialog) {
|
|
104
|
+
this._oDialog = oDialog;
|
|
105
|
+
this._oDialog.addStyleClass(Utils.getRtaStyleClassName());
|
|
106
|
+
this._oDialog.setModel(this._oDialogModel);
|
|
107
|
+
this._oDialog.setModel(this.oRTAResourceModel, "i18n");
|
|
93
108
|
|
|
94
|
-
this._oDialogModel.setProperty("/listNoDataText", oRTAResourceModel.getProperty("MSG_NO_FIELDS").toLowerCase());
|
|
109
|
+
this._oDialogModel.setProperty("/listNoDataText", this.oRTAResourceModel.getProperty("MSG_NO_FIELDS").toLowerCase());
|
|
95
110
|
|
|
96
111
|
// retrieve List to set the sorting for the 'items' aggregation, since sap.ui.model.Sorter
|
|
97
112
|
// does not support binding to a model property...
|
|
98
113
|
this._oList = Element.getElementById(`${this.getId()}--rta_addElementsDialogList`);
|
|
99
|
-
this.
|
|
114
|
+
this._openDialog();
|
|
100
115
|
}.bind(this));
|
|
101
116
|
};
|
|
102
117
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Open and set up Add Elements Dialog
|
|
120
|
+
*
|
|
121
|
+
* @private
|
|
122
|
+
*/
|
|
123
|
+
AddElementsDialog.prototype._openDialog = function() {
|
|
124
|
+
this._oDialog.attachAfterOpen(function() {
|
|
125
|
+
this.fireOpened();
|
|
126
|
+
}.bind(this));
|
|
107
127
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
128
|
+
this._oDialog.attachAfterClose(function() {
|
|
129
|
+
this._oDialog.destroy();
|
|
130
|
+
this._oDialog = null;
|
|
131
|
+
// The resolve/reject is handled by the specific dialog close methods (_submitDialog/_cancelDialog)
|
|
132
|
+
}.bind(this));
|
|
133
|
+
|
|
134
|
+
this._oDialog.open();
|
|
111
135
|
};
|
|
112
136
|
|
|
113
137
|
AddElementsDialog.prototype.setCustomFieldButtonVisible = function(bVisible) {
|
|
@@ -120,26 +144,22 @@ sap.ui.define([
|
|
|
120
144
|
|
|
121
145
|
/**
|
|
122
146
|
* Close the dialog.
|
|
123
|
-
* @returns {Promise} a Promise that resolves (to nothing) once the dialog is loaded and closed
|
|
124
147
|
*/
|
|
125
|
-
AddElementsDialog.prototype._submitDialog =
|
|
126
|
-
|
|
127
|
-
oDialog.close();
|
|
148
|
+
AddElementsDialog.prototype._submitDialog = function() {
|
|
149
|
+
this._oDialog.close();
|
|
128
150
|
this._fnResolveOnDialogConfirm();
|
|
129
151
|
// indicate that the dialog has been closed and the selected fields (if any) are to be added to the UI
|
|
130
152
|
};
|
|
131
153
|
|
|
132
154
|
/**
|
|
133
|
-
* Close dialog.
|
|
155
|
+
* Close dialog. Dialog is destroyed.
|
|
134
156
|
*/
|
|
135
157
|
AddElementsDialog.prototype._cancelDialog = function() {
|
|
136
158
|
// clear all selections
|
|
137
159
|
this._oDialogModel.getObject("/elements").forEach(function(oElem) {
|
|
138
160
|
oElem.selected = false;
|
|
139
161
|
});
|
|
140
|
-
this.
|
|
141
|
-
oDialog.close();
|
|
142
|
-
});
|
|
162
|
+
this._oDialog.close();
|
|
143
163
|
// indicate that the dialog has been closed without choosing to add any fields (canceled)
|
|
144
164
|
this._fnRejectOnDialogCancel();
|
|
145
165
|
};
|
|
@@ -161,20 +181,14 @@ sap.ui.define([
|
|
|
161
181
|
/**
|
|
162
182
|
* Open the Field Repository Dialog
|
|
163
183
|
*
|
|
164
|
-
* @returns {Promise}
|
|
184
|
+
* @returns {Promise} Promise that resolves once the dialog is opened
|
|
165
185
|
* @public
|
|
166
186
|
*/
|
|
167
187
|
AddElementsDialog.prototype.open = function() {
|
|
168
188
|
return new Promise(function(resolve, reject) {
|
|
169
189
|
this._fnResolveOnDialogConfirm = resolve;
|
|
170
190
|
this._fnRejectOnDialogCancel = reject;
|
|
171
|
-
|
|
172
|
-
this._oDialogPromise.then(function(oDialog) {
|
|
173
|
-
oDialog.attachAfterOpen(function() {
|
|
174
|
-
this.fireOpened();
|
|
175
|
-
}.bind(this));
|
|
176
|
-
oDialog.open();
|
|
177
|
-
}.bind(this));
|
|
191
|
+
this._createDialog();
|
|
178
192
|
}.bind(this));
|
|
179
193
|
};
|
|
180
194
|
|
|
@@ -219,16 +233,15 @@ sap.ui.define([
|
|
|
219
233
|
* @private
|
|
220
234
|
*/
|
|
221
235
|
AddElementsDialog.prototype._redirectToExtensibilityAction = function(sActionKey) {
|
|
222
|
-
this.fireTriggerExtensibilityAction({actionKey: sActionKey});
|
|
223
|
-
this.
|
|
224
|
-
oDialog.close();
|
|
225
|
-
});
|
|
236
|
+
this.fireTriggerExtensibilityAction({ actionKey: sActionKey });
|
|
237
|
+
this._oDialog.close();
|
|
226
238
|
};
|
|
227
239
|
|
|
228
|
-
AddElementsDialog.prototype.setTitle =
|
|
240
|
+
AddElementsDialog.prototype.setTitle = function(sTitle) {
|
|
229
241
|
ManagedObject.prototype.setProperty.call(this, "title", sTitle, true);
|
|
230
|
-
|
|
231
|
-
|
|
242
|
+
if (this._oDialog) {
|
|
243
|
+
this._oDialog.setTitle(sTitle);
|
|
244
|
+
}
|
|
232
245
|
};
|
|
233
246
|
|
|
234
247
|
/**
|
|
@@ -293,7 +306,7 @@ sap.ui.define([
|
|
|
293
306
|
} else {
|
|
294
307
|
// Message "none" when no extension data is available
|
|
295
308
|
aBusinessContextTexts.push({
|
|
296
|
-
text: oRTAResourceModel.getProperty("MSG_NO_BUSINESS_CONTEXTS")
|
|
309
|
+
text: this.oRTAResourceModel.getProperty("MSG_NO_BUSINESS_CONTEXTS")
|
|
297
310
|
});
|
|
298
311
|
}
|
|
299
312
|
// set the container visible
|
|
@@ -119,14 +119,13 @@ sap.ui.define([
|
|
|
119
119
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
120
120
|
* @extends sap.ui.rta.plugin.Plugin
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.143.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
126
126
|
* @alias sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
127
127
|
*/
|
|
128
128
|
const AdditionalElementsPlugin = Plugin.extend("sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin", {
|
|
129
|
-
// eslint-disable-next-line object-shorthand
|
|
130
129
|
constructor: function(...aArgs) {
|
|
131
130
|
this._getMenuItemsPromise = Promise.resolve();
|
|
132
131
|
const [oPropertyBag] = aArgs;
|
|
@@ -244,7 +243,7 @@ sap.ui.define([
|
|
|
244
243
|
const oMetaModel = oModel.getMetaModel();
|
|
245
244
|
if (oMetaModel && oMetaModel.loaded) {
|
|
246
245
|
await oMetaModel.loaded();
|
|
247
|
-
this.evaluateEditable([oOverlay], {onRegistration: true});
|
|
246
|
+
this.evaluateEditable([oOverlay], { onRegistration: true });
|
|
248
247
|
}
|
|
249
248
|
}
|
|
250
249
|
Plugin.prototype.registerElementOverlay.apply(this, aArgs);
|
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
{
|
|
42
42
|
changeType: oAction.changeType,
|
|
43
43
|
serviceUrl: oChange.serviceUrl,
|
|
44
|
-
content: {...oChange.content, objectTemplateInfo: oAction.objectTemplateInfo},
|
|
44
|
+
content: { ...oChange.content, objectTemplateInfo: oAction.objectTemplateInfo },
|
|
45
45
|
// aLegacyRenameChanges is only passed for singleRename scenarios, where there is only one annotation change to be saved
|
|
46
46
|
// so we can simply add it in the loop
|
|
47
47
|
changesToDelete: aLegacyRenameChanges
|
|
@@ -105,7 +105,7 @@ sap.ui.define([
|
|
|
105
105
|
* @class
|
|
106
106
|
* @extends sap.ui.rta.plugin.Plugin
|
|
107
107
|
* @author SAP SE
|
|
108
|
-
* @version 1.
|
|
108
|
+
* @version 1.143.0
|
|
109
109
|
* @constructor
|
|
110
110
|
* @private
|
|
111
111
|
* @since 1.132
|
|
@@ -119,7 +119,7 @@ sap.ui.define([
|
|
|
119
119
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
120
120
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
121
121
|
* @author SAP SE
|
|
122
|
-
* @version 1.
|
|
122
|
+
* @version 1.143.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -280,6 +280,7 @@
|
|
|
280
280
|
width="auto"
|
|
281
281
|
maxWidth="400px"
|
|
282
282
|
change="onSizeUnitChange"
|
|
283
|
+
tooltip="{i18n>IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP}"
|
|
283
284
|
>
|
|
284
285
|
<core:ListItem key="{dialogInfo>unit}" text="{dialogInfo>unit}" additionalText="{dialogInfo>descriptionText}"/>
|
|
285
286
|
<layoutData>
|
|
@@ -322,7 +323,9 @@
|
|
|
322
323
|
columnRatio="1:5"
|
|
323
324
|
width="auto"
|
|
324
325
|
maxWidth="400px"
|
|
325
|
-
change="onSizeUnitChange"
|
|
326
|
+
change="onSizeUnitChange"
|
|
327
|
+
tooltip="{i18n>IFRAME_ADDIFRAME_DIALOG_UNIT_TOOLTIP}"
|
|
328
|
+
>
|
|
326
329
|
<core:ListItem key="{dialogInfo>unit}" text="{= ${dialogInfo>unit} === 'vh' ? '%' : ${dialogInfo>unit}}" additionalText="{dialogInfo>descriptionText}"/>
|
|
327
330
|
<layoutData>
|
|
328
331
|
<form:ColumnElementData cellsLarge="5" cellsSmall="5" />
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
"use strict";
|
|
32
32
|
|
|
33
33
|
// shortcut for sap.ui.core.ValueState
|
|
34
|
-
var {ValueState} = coreLibrary;
|
|
34
|
+
var { ValueState } = coreLibrary;
|
|
35
35
|
var _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
36
36
|
|
|
37
37
|
function createJSONModel(bSetUpdateTitle, bAsContainer, sFrameWidthValue, sFrameHeightValue, oAdvancedSettings) {
|
|
@@ -123,7 +123,7 @@ sap.ui.define([
|
|
|
123
123
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
124
124
|
* @extends sap.ui.base.ManagedObject
|
|
125
125
|
* @author SAP SE
|
|
126
|
-
* @version 1.
|
|
126
|
+
* @version 1.143.0
|
|
127
127
|
* @constructor
|
|
128
128
|
* @private
|
|
129
129
|
* @since 1.78
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
"use strict";
|
|
32
32
|
|
|
33
33
|
// shortcut for sap.ui.core.ValueState
|
|
34
|
-
var {ValueState} = coreLibrary;
|
|
34
|
+
var { ValueState } = coreLibrary;
|
|
35
35
|
|
|
36
36
|
const _oTextResources = Lib.getResourceBundleFor("sap.ui.rta");
|
|
37
37
|
|
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
|
|
55
55
|
function multiInputValidator(oValue) {
|
|
56
56
|
const sText = oValue.text;
|
|
57
|
-
return new Token({key: sText, text: sText});
|
|
57
|
+
return new Token({ key: sText, text: sText });
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
function setNewPreviewSize(sPropertyName) {
|
|
@@ -66,7 +66,6 @@ sap.ui.define([
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
|
|
69
|
-
// eslint-disable-next-line object-shorthand
|
|
70
69
|
constructor: function(oJSONModel, mSettings) {
|
|
71
70
|
this._oJSONModel = oJSONModel;
|
|
72
71
|
this._importSettings(mSettings);
|
|
@@ -159,7 +158,7 @@ sap.ui.define([
|
|
|
159
158
|
this._oJSONModel.setProperty("/previousFrameUrl/value", sReturnedURL);
|
|
160
159
|
this._oJSONModel.setProperty("/settingsUpdate/value", false);
|
|
161
160
|
|
|
162
|
-
oIFrame.applySettings({ url: sURL, advancedSettings: {...this._oJSONModel.getProperty("/advancedSettings/value")} });
|
|
161
|
+
oIFrame.applySettings({ url: sURL, advancedSettings: { ...this._oJSONModel.getProperty("/advancedSettings/value") } });
|
|
163
162
|
// Use the URL from the IFrame to ensure that the complete path is shown
|
|
164
163
|
this._oJSONModel.setProperty("/previewUrl/value", oIFrame.getUrl());
|
|
165
164
|
// Prevent the URL preview link (next element in the DOM) from getting the focus because it looks bad
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @name sap.ui.rta.service.ControllerExtension
|
|
31
31
|
* @author SAP SE
|
|
32
32
|
* @since 1.58
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.143.0
|
|
34
34
|
* @private
|
|
35
35
|
* @ui5-restricted
|
|
36
36
|
*/
|
|
@@ -56,10 +56,11 @@ sap.ui.define([
|
|
|
56
56
|
* @param {string} sCodeRef - Name of the file, without path, with the extension <code>.js</code>. Must comply to UI5 module naming convention.
|
|
57
57
|
* Has to be unique and must not conflict with other already defined modules.
|
|
58
58
|
* @param {string} sViewId - ID of the view whose controller should be extended
|
|
59
|
+
* @param {boolean} bIncludeViewId - Whether the change should include the view ID in the selector - for instance-specific controller extensions
|
|
59
60
|
* @return {object} Definition of the newly created change
|
|
60
61
|
* @public
|
|
61
62
|
*/
|
|
62
|
-
add(sCodeRef, sViewId) {
|
|
63
|
+
add(sCodeRef, sViewId, bIncludeViewId) {
|
|
63
64
|
var oFlexSettings = oRta.getFlexSettings();
|
|
64
65
|
if (!oFlexSettings.developerMode) {
|
|
65
66
|
throw DtUtil.createError(
|
|
@@ -83,7 +84,7 @@ sap.ui.define([
|
|
|
83
84
|
var oAppComponent = FlexUtils.getAppComponentForControl(oView);
|
|
84
85
|
var sControllerName = oView.getControllerModuleName() ? `module:${oView.getControllerModuleName()}` : oView.getController()?.getMetadata().getName();
|
|
85
86
|
// Calculate moduleName for code extension
|
|
86
|
-
var sReference = FlexRuntimeInfoAPI.getFlexReference({element: oAppComponent});
|
|
87
|
+
var sReference = FlexRuntimeInfoAPI.getFlexReference({ element: oAppComponent });
|
|
87
88
|
var sModuleName = sReference.replace(/\.Component/g, "").replace(/\./g, "/");
|
|
88
89
|
sModuleName += "/changes/";
|
|
89
90
|
sModuleName += sCodeRef.replace(/\.js/g, "");
|
|
@@ -98,8 +99,12 @@ sap.ui.define([
|
|
|
98
99
|
generator: "rta.service.ControllerExtension"
|
|
99
100
|
};
|
|
100
101
|
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
if (bIncludeViewId) {
|
|
103
|
+
oChangeSpecificData.viewId = sViewId;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
var oPreparedChange = ChangesWriteAPI.create({ changeSpecificData: oChangeSpecificData, selector: oAppComponent });
|
|
107
|
+
PersistenceWriteAPI.add({ change: oPreparedChange, selector: oAppComponent });
|
|
103
108
|
return oPreparedChange.convertToFileContent();
|
|
104
109
|
},
|
|
105
110
|
|
|
@@ -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.143.0
|
|
47
47
|
* @private
|
|
48
48
|
* @ui5-restricted
|
|
49
49
|
*/
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
*/
|
|
84
84
|
|
|
85
85
|
function getExtensionPointsForView(sViewId, aConsideredExtensionPointNames) {
|
|
86
|
-
var mExtensionPoints = ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({viewId: sViewId});
|
|
86
|
+
var mExtensionPoints = ExtensionPointRegistryAPI.getExtensionPointInfoByViewId({ viewId: sViewId });
|
|
87
87
|
return _omit(mExtensionPoints, aConsideredExtensionPointNames);
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -162,7 +162,7 @@ sap.ui.define([
|
|
|
162
162
|
oOutline._getExtensionPoints = function(oData) {
|
|
163
163
|
var sParentId = oData.id;
|
|
164
164
|
var sAggregationName = oData.technicalName;
|
|
165
|
-
return ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({parentId: sParentId})
|
|
165
|
+
return ExtensionPointRegistryAPI.getExtensionPointInfoByParentId({ parentId: sParentId })
|
|
166
166
|
.filter(function(mExtensionPoint) {
|
|
167
167
|
return mExtensionPoint.aggregationName === sAggregationName;
|
|
168
168
|
});
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @name sap.ui.rta.service.Property
|
|
28
28
|
* @author SAP SE
|
|
29
29
|
* @since 1.58
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.143.0
|
|
31
31
|
* @private
|
|
32
32
|
* @ui5-restricted
|
|
33
33
|
*/
|
|
@@ -118,11 +118,11 @@ sap.ui.define([
|
|
|
118
118
|
)
|
|
119
119
|
.then(function(aPromiseResults) {
|
|
120
120
|
return {
|
|
121
|
-
...(aPromiseResults[0] && !isEmptyObject(aPromiseResults[0]) && {annotations: aPromiseResults[0]}),
|
|
122
|
-
...(aPromiseResults[1] && {properties: aPromiseResults[1]}),
|
|
123
|
-
...(aPromiseResults[2] && {label: validate(aPromiseResults[2])}),
|
|
124
|
-
...(oDesignTimeMetadataData.name && {name: oDesignTimeMetadata.getName(oElement)}),
|
|
125
|
-
...(!isEmptyObject(aPromiseResults[3]) && {links: aPromiseResults[3]})
|
|
121
|
+
...(aPromiseResults[0] && !isEmptyObject(aPromiseResults[0]) && { annotations: aPromiseResults[0] }),
|
|
122
|
+
...(aPromiseResults[1] && { properties: aPromiseResults[1] }),
|
|
123
|
+
...(aPromiseResults[2] && { label: validate(aPromiseResults[2]) }),
|
|
124
|
+
...(oDesignTimeMetadataData.name && { name: oDesignTimeMetadata.getName(oElement) }),
|
|
125
|
+
...(!isEmptyObject(aPromiseResults[3]) && { links: aPromiseResults[3] })
|
|
126
126
|
};
|
|
127
127
|
});
|
|
128
128
|
};
|
|
@@ -155,7 +155,7 @@ sap.ui.define([
|
|
|
155
155
|
var mBindingInfo = oProperty._getBindingInfo(sKey, oElement);
|
|
156
156
|
Object.assign(
|
|
157
157
|
mFiltered[sKey],
|
|
158
|
-
mBindingInfo && {binding: mBindingInfo}
|
|
158
|
+
mBindingInfo && { binding: mBindingInfo }
|
|
159
159
|
);
|
|
160
160
|
return mFiltered;
|
|
161
161
|
}, {});
|
|
@@ -238,9 +238,9 @@ sap.ui.define([
|
|
|
238
238
|
.then(function(vPossibleValues) {
|
|
239
239
|
Object.assign(
|
|
240
240
|
mEvaluatedProperty[sPropertyName],
|
|
241
|
-
mBindingInfo && {binding: mBindingInfo},
|
|
242
|
-
vPossibleValues && {possibleValues: validate(vPossibleValues)},
|
|
243
|
-
typeof mDtObj[sPropertyName].nullable === "boolean" && {nullable: mDtObj[sPropertyName].nullable} // nullable property
|
|
241
|
+
mBindingInfo && { binding: mBindingInfo },
|
|
242
|
+
vPossibleValues && { possibleValues: validate(vPossibleValues) },
|
|
243
|
+
typeof mDtObj[sPropertyName].nullable === "boolean" && { nullable: mDtObj[sPropertyName].nullable } // nullable property
|
|
244
244
|
);
|
|
245
245
|
|
|
246
246
|
return mEvaluatedProperty;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
content: " ";
|
|
41
41
|
transition: box-shadow .25s;
|
|
42
42
|
box-shadow: @_sap_ui_rta_ChangeVisualization_OverlayBoxShadow;
|
|
43
|
-
outline: 0.0625rem solid @_sap_ui_rta_ChangeVisualization_OverlayOutlineColor
|
|
43
|
+
outline: 0.0625rem solid @_sap_ui_rta_ChangeVisualization_OverlayOutlineColor; //1px
|
|
44
44
|
outline-offset: -0.0625rem; //1px
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -165,6 +165,7 @@
|
|
|
165
165
|
</Button>
|
|
166
166
|
<MenuButton
|
|
167
167
|
id="sapUiRta_contextBasedAdaptationMenu"
|
|
168
|
+
class="sapUiRtaCBAButton"
|
|
168
169
|
tooltip="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
|
|
169
170
|
text="{parts: [{path: 'contextBasedAdaptations>/count'}, {path: 'contextBasedAdaptations>/displayedAdaptation/title'}], formatter: '.formatAdaptationsMenuText'}"
|
|
170
171
|
visible="{= (${controls>/contextBasedAdaptation/visible} && ${controls>/modeSwitcher} === 'adaptation')}">
|
|
@@ -67,7 +67,7 @@ sap.ui.define([
|
|
|
67
67
|
* @extends sap.ui.rta.toolbar.Base
|
|
68
68
|
*
|
|
69
69
|
* @author SAP SE
|
|
70
|
-
* @version 1.
|
|
70
|
+
* @version 1.143.0
|
|
71
71
|
*
|
|
72
72
|
* @constructor
|
|
73
73
|
* @private
|
|
@@ -405,7 +405,7 @@ sap.ui.define([
|
|
|
405
405
|
if (sAction !== MessageBox.Action.CANCEL) {
|
|
406
406
|
if (bDirty) {
|
|
407
407
|
return new Promise(function(resolve) {
|
|
408
|
-
this.fireEvent("save", {callback: resolve});
|
|
408
|
+
this.fireEvent("save", { callback: resolve });
|
|
409
409
|
}.bind(this))
|
|
410
410
|
.then(function() {
|
|
411
411
|
return performMigration.call(this, oRtaInformation);
|
|
@@ -433,7 +433,7 @@ sap.ui.define([
|
|
|
433
433
|
}))
|
|
434
434
|
.then(function() {
|
|
435
435
|
return new Promise(function(resolve) {
|
|
436
|
-
this.fireEvent("switchAdaptation", {adaptationId: "DEFAULT", callback: resolve});
|
|
436
|
+
this.fireEvent("switchAdaptation", { adaptationId: "DEFAULT", callback: resolve });
|
|
437
437
|
}.bind(this));
|
|
438
438
|
}.bind(this))
|
|
439
439
|
.catch(function(oError) {
|
|
@@ -474,7 +474,7 @@ sap.ui.define([
|
|
|
474
474
|
|
|
475
475
|
function handleError(oError) {
|
|
476
476
|
if (oError !== "cancel") {
|
|
477
|
-
Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", {error: oError});
|
|
477
|
+
Utils.showMessageBox("error", "MSG_LREP_TRANSFER_ERROR", { error: oError });
|
|
478
478
|
Log.error(`sap.ui.rta: ${oError.stack || oError.message || oError}`);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
@@ -492,7 +492,7 @@ sap.ui.define([
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
function onSwitchAdaptations(sAdaptationId) {
|
|
495
|
-
this.fireEvent("switchAdaptation", {adaptationId: sAdaptationId});
|
|
495
|
+
this.fireEvent("switchAdaptation", { adaptationId: sAdaptationId });
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
function formatAdaptationsMenuText(iCount, sTitle) {
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @extends sap.m.HBox
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.143.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -71,7 +71,6 @@ sap.ui.define([
|
|
|
71
71
|
textResources: "object"
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
// eslint-disable-next-line object-shorthand
|
|
75
74
|
constructor: function(...aArgs) {
|
|
76
75
|
// call parent constructor
|
|
77
76
|
HBox.apply(this, aArgs);
|
|
@@ -133,7 +132,7 @@ sap.ui.define([
|
|
|
133
132
|
*/
|
|
134
133
|
Base.prototype.getExtension = function(sName, Extension) {
|
|
135
134
|
if (!Object.keys(this._oExtensions).includes(sName)) {
|
|
136
|
-
this._oExtensions[sName] = new Extension({toolbar: this});
|
|
135
|
+
this._oExtensions[sName] = new Extension({ toolbar: this });
|
|
137
136
|
}
|
|
138
137
|
return this._oExtensions[sName];
|
|
139
138
|
};
|