@openui5/sap.ui.rta 1.113.0 → 1.114.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +157 -53
- package/src/sap/ui/rta/Utils.js +35 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +6 -5
- package/src/sap/ui/rta/command/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSave.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +4 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +4 -2
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +1 -1
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +93 -76
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +40 -2
- package/src/sap/ui/rta/messagebundle_ar.properties +12 -4
- package/src/sap/ui/rta/messagebundle_bg.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ca.properties +12 -4
- package/src/sap/ui/rta/messagebundle_cs.properties +12 -4
- package/src/sap/ui/rta/messagebundle_cy.properties +12 -4
- package/src/sap/ui/rta/messagebundle_da.properties +12 -4
- package/src/sap/ui/rta/messagebundle_de.properties +12 -4
- package/src/sap/ui/rta/messagebundle_el.properties +12 -4
- package/src/sap/ui/rta/messagebundle_en.properties +10 -2
- package/src/sap/ui/rta/messagebundle_en_GB.properties +10 -2
- package/src/sap/ui/rta/messagebundle_en_US_sappsd.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +7 -2
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +10 -2
- package/src/sap/ui/rta/messagebundle_es.properties +12 -4
- package/src/sap/ui/rta/messagebundle_es_MX.properties +12 -4
- package/src/sap/ui/rta/messagebundle_et.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_hu.properties +12 -4
- package/src/sap/ui/rta/messagebundle_id.properties +12 -4
- package/src/sap/ui/rta/messagebundle_it.properties +12 -4
- package/src/sap/ui/rta/messagebundle_iw.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ja.properties +16 -8
- package/src/sap/ui/rta/messagebundle_kk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ko.properties +16 -8
- package/src/sap/ui/rta/messagebundle_lt.properties +12 -4
- package/src/sap/ui/rta/messagebundle_lv.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ms.properties +16 -8
- package/src/sap/ui/rta/messagebundle_nl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_no.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pt.properties +12 -4
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ro.properties +12 -4
- package/src/sap/ui/rta/messagebundle_ru.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sh.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sl.properties +12 -4
- package/src/sap/ui/rta/messagebundle_sv.properties +12 -4
- package/src/sap/ui/rta/messagebundle_th.properties +12 -4
- package/src/sap/ui/rta/messagebundle_tr.properties +12 -4
- package/src/sap/ui/rta/messagebundle_uk.properties +12 -4
- package/src/sap/ui/rta/messagebundle_vi.properties +12 -4
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +12 -4
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +12 -4
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +1 -1
- package/src/sap/ui/rta/plugin/BaseCreate.js +1 -1
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/CompVariant.js +6 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +4 -2
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
- package/src/sap/ui/rta/plugin/Resize.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +11 -24
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +17 -13
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +4 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/service/SupportTools.js +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.fragment.xml +59 -20
- package/src/sap/ui/rta/toolbar/Adaptation.js +161 -12
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/FeedbackDialog.fragment.xml +24 -0
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/FioriLike.js +1 -1
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +68 -37
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +5 -23
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +121 -35
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptationDialog.fragment.xml +12 -10
- package/src/sap/ui/rta/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ReloadManager.js +32 -21
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorCategorySelection.fragment.xml +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +15 -6
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +16 -9
|
@@ -46,6 +46,9 @@ BTN_REDO=\u91CD\u505A
|
|
|
46
46
|
BTN_MENU=\u5176\u4ED6\u52D5\u4F5C
|
|
47
47
|
BTN_RESTORE=\u91CD\u8A2D
|
|
48
48
|
BTN_ADAPTATION=\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574
|
|
49
|
+
BTN_FEEDBACK=Feedback
|
|
50
|
+
BTN_CLOSE_FEEDBACK_DIALOG=Close
|
|
51
|
+
TIT_FEEDBACK=Give Feedback
|
|
49
52
|
TIT_DRAFT=\u8349\u7A3F
|
|
50
53
|
TIT_ORIGINAL_APP=\u539F\u59CB\u61C9\u7528\u7A0B\u5F0F
|
|
51
54
|
TIT_VERSION_1=\u7248\u672C 1
|
|
@@ -102,7 +105,7 @@ BTN_UNSAVED_CHANGES_ON_CLOSE_DONT_SAVE=\u6368\u68C4
|
|
|
102
105
|
MSG_UNSAVED_CHANGES=\u4E00\u4F46\u78BA\u8A8D\uFF0C\u60A8\u7684\u6240\u6709\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\u5C07\u6703\u907A\u5931\u3002\u82E5\u8981\u5132\u5B58\u66F4\u6539\u5167\u5BB9\uFF0C\u8ACB\u95DC\u9589\u6B64\u5C0D\u8A71\u65B9\u584A\uFF0C\u4E26\u8DF3\u51FA\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574\u3002
|
|
103
106
|
MSG_NO_FIELDS=\u6C92\u6709\u5176\u4ED6\u53EF\u7528\u5167\u5BB9
|
|
104
107
|
HEADER_PERSONALIZATION_EXISTS=\u8CC7\u8A0A
|
|
105
|
-
MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=\u60A8\u5DF2\u5C07\u61C9\u7528\u7A0B\u5F0F\u6216\u516C\u7528\u6AA2\u8996\u500B\u4EBA\u5316\
|
|
108
|
+
MSG_PERSONALIZATION_OR_PUBLIC_VIEWS_EXISTS=\u60A8\u5DF2\u5C07\u61C9\u7528\u7A0B\u5F0F\u6216\u516C\u7528\u6AA2\u8996\u500B\u4EBA\u5316\uFF0C\u8A72\u61C9\u7528\u7A0B\u5F0F\u73FE\u5728\u5C07\u6703\u91CD\u65B0\u8F09\u5165\uFF0C\u4F46\u4E0D\u5305\u542B\u9019\u4E9B\u66F4\u6539\u5167\u5BB9\u3002
|
|
106
109
|
MSG_NAVIGATION_MODE_CHANGES_WARNING=\u8DF3\u51FA\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574\u5F8C\uFF0C\u5728\u700F\u89BD\u6A21\u5F0F\u4E2D\u9032\u884C\u7684\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\u5C07\u6703\u6368\u68C4\u3002
|
|
107
110
|
MSG_DRAFT_EXISTS=\u6B64\u61C9\u7528\u7A0B\u5F0F\u6709\u8349\u7A3F\u66F4\u6539\uFF0C\u5728\u4F7F\u7528\u8005\u4ECB\u9762\u8ABF\u6574\u6A21\u5F0F\u4E2D\uFF0C\u61C9\u7528\u7A0B\u5F0F\u6703\u91CD\u65B0\u8F09\u5165\u8349\u7A3F\u66F4\u6539\u5167\u5BB9\u3002
|
|
108
111
|
MSG_DRAFT_DISCARD_DIALOG=\u60A8\u8981\u6368\u68C4\u8349\u7A3F\u66F4\u6539\u5167\u5BB9\u55CE\uFF1F\u61C9\u7528\u7A0B\u5F0F\u5C07\u6703\u91CD\u65B0\u8F09\u5165\u3002
|
|
@@ -273,10 +276,14 @@ MSG_NO_KEY_USER_RIGHTS_ERROR_MESSAGE=\u60A8\u6C92\u6709\u95DC\u9375\u4F7F\u7528\
|
|
|
273
276
|
|
|
274
277
|
BTN_TOOLTIP_MOVE_UP=\u4E0A\u79FB
|
|
275
278
|
BTN_TOOLTIP_MOVE_DOWN=\u4E0B\u79FB
|
|
276
|
-
BTN_ADAPTING_FOR
|
|
277
|
-
BTN_ADAPTING_FOR_ALL_USERS
|
|
279
|
+
BTN_ADAPTING_FOR=\u8ABF\u6574 ''{0}''
|
|
280
|
+
BTN_ADAPTING_FOR_ALL_USERS=\u8ABF\u6574\u300C\u6240\u6709\u4F7F\u7528\u8005\u300D
|
|
281
|
+
BTN_SWITCH_ADAPTATIONS=\u5207\u63DB\u8ABF\u6574
|
|
278
282
|
EAC_DIALOG_HEADER=\u7DE8\u8F2F\u8ABF\u6574
|
|
279
283
|
SAC_DIALOG_HEADER=\u5132\u5B58\u70BA\u65B0\u8ABF\u6574
|
|
284
|
+
DAC_DIALOG_HEADER=\u522A\u9664\u8ABF\u6574
|
|
285
|
+
DAC_DIALOG_DESCRIPTION=\u60A8\u78BA\u5B9A\u8981\u522A\u9664\u6B64\u8ABF\u6574\u55CE\uFF1F
|
|
286
|
+
DAC_DATA_LOSS_DIALOG_DESCRIPTION=\u60A8\u6709\u5C1A\u672A\u5132\u5B58\u7684\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\u5167\u5BB9\uFF0C\u522A\u9664\u6B64\u8ABF\u6574\u4E5F\u5C07\u6703\u522A\u9664\u4F7F\u7528\u8005\u4ECB\u9762\u66F4\u6539\u5167\u5BB9\uFF1B\u60A8\u78BA\u5B9A\u8981\u522A\u9664\u6B64\u8ABF\u6574\u55CE\uFF1F
|
|
280
287
|
MANAGE_ADAPTATIONS_DIALOG_HEADER=\u7BA1\u7406\u8ABF\u6574
|
|
281
288
|
BTN_MANAGE_APP_CTX=\u7BA1\u7406\u8ABF\u6574
|
|
282
289
|
TXT_MANAGE_APP_CTX=\u6AA2\u8996\u3001\u7DE8\u8F2F\u6216\u522A\u9664\u8ABF\u6574
|
|
@@ -299,9 +306,10 @@ TXT_SELECT_PRIO=\u5728 ''{0}'' (\u512A\u5148\u9806\u5E8F ''{1}'') \u5F8C\u63D2\u
|
|
|
299
306
|
SAVE_AS_DIALOG_PLACEHOLDER_DESCRIPTION_TEXT=\u8F38\u5165\u8AAA\u660E
|
|
300
307
|
TXT_TABLE_CONTEXT_CELL_ROLE=\u89D2\u8272
|
|
301
308
|
TXT_TABLE_CONTEXT_CELL_ROLES=\u89D2\u8272
|
|
302
|
-
TXT_DEFAULT_APP=\
|
|
309
|
+
TXT_DEFAULT_APP=\u7121\u5167\u5BB9\u8ABF\u6574
|
|
303
310
|
APP_CTX_DIALOG_SAVE=\u5132\u5B58
|
|
304
311
|
APP_CTX_DIALOG_CANCEL=\u53D6\u6D88
|
|
312
|
+
APP_CTX_DIALOG_CONFIRM=\u78BA\u8A8D
|
|
305
313
|
TOOLTIP_APP_CTX_DIALOG_SAVE=\u4EE5\u5167\u5BB9\u70BA\u57FA\u790E\u7684\u8ABF\u6574\u672A\u9032\u884C\u66F4\u6539\u3002
|
|
306
314
|
TXT_CTX_ERROR_DUPLICATE_TITLE=\u8ABF\u6574\u6A19\u984C\u5DF2\u5B58\u5728\uFF0C\u8ACB\u8F38\u5165\u4E0D\u540C\u7684\u6A19\u984C\u3002
|
|
307
315
|
TXT_CTX_ERROR_MAX_LEN=\u8ABF\u6574\u6A19\u984C\u5DF2\u9650\u5236\u70BA {0} \u500B\u5B57\u5143
|
|
@@ -116,9 +116,11 @@ sap.ui.define([
|
|
|
116
116
|
// ------ configure ------
|
|
117
117
|
function configureVariants(aOverlays) {
|
|
118
118
|
var oVariantManagementControl = aOverlays[0].getElement();
|
|
119
|
+
var mComponentPropertyBag = this.getCommandFactory().getFlexSettings();
|
|
120
|
+
mComponentPropertyBag.variantManagementControl = oVariantManagementControl;
|
|
119
121
|
var mPropertyBag = {
|
|
120
122
|
layer: this.getCommandFactory().getFlexSettings().layer,
|
|
121
|
-
contextSharingComponentContainer: ContextSharingAPI.createComponent(
|
|
123
|
+
contextSharingComponentContainer: ContextSharingAPI.createComponent(mComponentPropertyBag),
|
|
122
124
|
rtaStyleClass: Utils.getRtaStyleClassName()
|
|
123
125
|
};
|
|
124
126
|
oVariantManagementControl.openManageViewsDialogForKeyUser(mPropertyBag, function(oData) {
|
|
@@ -224,7 +226,9 @@ sap.ui.define([
|
|
|
224
226
|
// ------ save as ------
|
|
225
227
|
function saveAsNewVariant(aOverlays, bImplicitSaveAs) {
|
|
226
228
|
var oVariantManagementControl = aOverlays[0].getElement();
|
|
227
|
-
var
|
|
229
|
+
var mComponentPropertyBag = this.getCommandFactory().getFlexSettings();
|
|
230
|
+
mComponentPropertyBag.variantManagementControl = oVariantManagementControl;
|
|
231
|
+
var oContextSharingComponentContainer = ContextSharingAPI.createComponent(mComponentPropertyBag);
|
|
228
232
|
return new Promise(function(resolve) {
|
|
229
233
|
oVariantManagementControl.openSaveAsDialogForKeyUser(Utils.getRtaStyleClassName(), function(oReturn) {
|
|
230
234
|
if (oReturn) {
|
|
@@ -47,7 +47,7 @@ sap.ui.define([
|
|
|
47
47
|
* @class The ControlVariant allows propagation of variantManagement key
|
|
48
48
|
* @extends sap.ui.rta.plugin.Plugin
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.114.1
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
53
53
|
* @since 1.50
|
|
@@ -562,13 +562,15 @@ sap.ui.define([
|
|
|
562
562
|
var oModel = this._getVariantModel(oVariantManagementControl);
|
|
563
563
|
var oDesignTimeMetadata = oElementOverlay.getDesignTimeMetadata();
|
|
564
564
|
var mFlexSettings = this.getCommandFactory().getFlexSettings();
|
|
565
|
+
var mComponentPropertyBag = mFlexSettings;
|
|
566
|
+
mComponentPropertyBag.variantManagementControl = oVariantManagementControl;
|
|
565
567
|
|
|
566
568
|
return oModel.manageVariants(
|
|
567
569
|
oVariantManagementControl,
|
|
568
570
|
sVariantManagementReference,
|
|
569
571
|
mFlexSettings.layer,
|
|
570
572
|
Utils.getRtaStyleClassName(),
|
|
571
|
-
ContextSharingAPI.createComponent(
|
|
573
|
+
ContextSharingAPI.createComponent(mComponentPropertyBag)
|
|
572
574
|
)
|
|
573
575
|
.then(function(aConfiguredChanges) {
|
|
574
576
|
if (aConfiguredChanges.length > 0) {
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
26
26
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.114.1
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class The EasyAdd Plugin adds an Icon to an Overlay, which allows to trigger add operations directly
|
|
24
24
|
* @extends sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.114.1
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.48
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
|
|
22
22
|
* @extends sap.ui.rta.plugin.Remove
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.114.1
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
27
27
|
* @since 1.48
|
|
@@ -30,7 +30,7 @@ function (
|
|
|
30
30
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
31
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.114.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* handled by the AdditionalElements Plugin (Reveal, Add Via Delegate, Add Custom)
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.114.1
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -70,7 +70,8 @@ sap.ui.define([
|
|
|
70
70
|
payload: mAction.delegateInfo.payload || {},
|
|
71
71
|
delegate: mAction.delegateInfo.instance,
|
|
72
72
|
modelType: mAction.delegateInfo.modelType,
|
|
73
|
-
requiredLibraries: mAction.delegateInfo.requiredLibraries
|
|
73
|
+
requiredLibraries: mAction.delegateInfo.requiredLibraries,
|
|
74
|
+
delegateType: mAction.delegateInfo.delegateType
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
};
|
|
@@ -79,25 +80,6 @@ sap.ui.define([
|
|
|
79
80
|
});
|
|
80
81
|
}
|
|
81
82
|
|
|
82
|
-
function checkInvalidAddActions(bSibling, oSourceElementOverlay, oPlugin) {
|
|
83
|
-
var mParents = AdditionalElementsUtils.getParents(bSibling, oSourceElementOverlay, oPlugin);
|
|
84
|
-
var oDesignTimeMetadata = mParents.parentOverlay && mParents.parentOverlay.getDesignTimeMetadata();
|
|
85
|
-
var aAddODataPropertyActions = oDesignTimeMetadata ? oDesignTimeMetadata.getActionDataFromAggregations("addODataProperty", mParents.parent) : [];
|
|
86
|
-
if (aAddODataPropertyActions.length > 0) {
|
|
87
|
-
Log.error("Outdated addODataProperty action in designtime metadata in "
|
|
88
|
-
+ oDesignTimeMetadata.getData().designtimeModule
|
|
89
|
-
+ " or propagated or via instance specific designtime metadata.");
|
|
90
|
-
}
|
|
91
|
-
var aAddActions = oDesignTimeMetadata ? oDesignTimeMetadata.getActionDataFromAggregations("add", mParents.parent) : [];
|
|
92
|
-
aAddActions.forEach(function(mAddAction) {
|
|
93
|
-
if (mAddAction["custom"]) {
|
|
94
|
-
Log.error("Outdated custom add action in designtime metadata in "
|
|
95
|
-
+ oDesignTimeMetadata.getData().designtimeModule
|
|
96
|
-
+ " or propagated or via instance specific designtime metadata.");
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
83
|
function getInvisibleElements (oParentOverlay, sAggregationName, oPlugin) {
|
|
102
84
|
var oParentElement = oParentOverlay.getElement();
|
|
103
85
|
if (!oParentElement) {
|
|
@@ -170,7 +152,13 @@ sap.ui.define([
|
|
|
170
152
|
supportsDefault: mAction.supportsDefaultDelegate
|
|
171
153
|
})
|
|
172
154
|
.then(function(mDelegateInfo) {
|
|
173
|
-
|
|
155
|
+
// Only complete delegators can be used for additional elements
|
|
156
|
+
if (
|
|
157
|
+
mDelegateInfo &&
|
|
158
|
+
mDelegateInfo.names &&
|
|
159
|
+
mDelegateInfo.names.length &&
|
|
160
|
+
mDelegateInfo.delegateType === DelegateMediatorAPI.types.COMPLETE
|
|
161
|
+
) {
|
|
174
162
|
var aRequiredLibraries = DelegateMediatorAPI.getRequiredLibrariesForDefaultDelegate({
|
|
175
163
|
delegateName: mDelegateInfo.names,
|
|
176
164
|
control: mParents.relevantContainer
|
|
@@ -337,8 +325,7 @@ sap.ui.define([
|
|
|
337
325
|
|
|
338
326
|
return Promise.all([
|
|
339
327
|
oRevealActionsPromise,
|
|
340
|
-
oAddPropertyActionsPromise
|
|
341
|
-
checkInvalidAddActions(bSibling, oSourceElementOverlay, oPlugin)
|
|
328
|
+
oAddPropertyActionsPromise
|
|
342
329
|
]).then(function(aAllActions) {
|
|
343
330
|
//join and condense all action data
|
|
344
331
|
var mAllActions = merge(aAllActions[0], aAllActions[1]);
|
|
@@ -75,7 +75,7 @@ sap.ui.define([
|
|
|
75
75
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
76
76
|
* @extends sap.ui.rta.plugin.Plugin
|
|
77
77
|
* @author SAP SE
|
|
78
|
-
* @version 1.
|
|
78
|
+
* @version 1.114.1
|
|
79
79
|
* @constructor
|
|
80
80
|
* @private
|
|
81
81
|
* @since 1.44
|
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
* Helper object containing methods for the AdditionalElements plugin
|
|
16
16
|
*
|
|
17
17
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
18
|
+
* @version 1.114.1
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.94
|
|
21
21
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* Helper object to build the RTA commands resulting from the AdditionalElements Plugin
|
|
26
26
|
*
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.114.1
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.94
|
|
31
31
|
* @experimental Since 1.94. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -117,7 +117,7 @@ sap.ui.define([
|
|
|
117
117
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
118
118
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
119
119
|
* @author SAP SE
|
|
120
|
-
* @version 1.
|
|
120
|
+
* @version 1.114.1
|
|
121
121
|
* @constructor
|
|
122
122
|
* @private
|
|
123
123
|
* @since 1.75
|
|
@@ -4,17 +4,20 @@
|
|
|
4
4
|
xmlns:form="sap.ui.layout.form"
|
|
5
5
|
xmlns:util="sap.ui.fl.util"
|
|
6
6
|
xmlns:layout="sap.ui.layout">
|
|
7
|
-
<Dialog
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
<Dialog
|
|
8
|
+
id="sapUiRtaAddIFrameDialog"
|
|
9
|
+
title="{/text/dialogTitle}"
|
|
10
|
+
verticalScrolling="true"
|
|
11
|
+
resizable="false"
|
|
12
|
+
class="sapUiRtaAddIFrameDialog"
|
|
13
|
+
draggable="true"
|
|
14
|
+
validationSuccess="onValidationSuccess"
|
|
15
|
+
validationError="onValidationError"
|
|
16
|
+
parseError="onValidationError"
|
|
17
|
+
contentWidth="50rem"
|
|
18
|
+
contentHeight="44rem"
|
|
19
|
+
core:require="{ FloatType: 'sap/ui/model/type/Float' }"
|
|
20
|
+
>
|
|
18
21
|
<content>
|
|
19
22
|
|
|
20
23
|
<layout:VerticalLayout
|
|
@@ -61,7 +64,7 @@
|
|
|
61
64
|
text="{/text/widthLabel}">
|
|
62
65
|
</Label>
|
|
63
66
|
<Input id="sapUiRtaAddIFrameDialog_WidthInput" class="sapUiRtaAddIFrameDialogWidthInput"
|
|
64
|
-
value="{path: '/frameWidth/value', type: '
|
|
67
|
+
value="{path: '/frameWidth/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
65
68
|
valueState="{/frameWidth/valueState}"/>
|
|
66
69
|
<Select
|
|
67
70
|
id="sapUiRtaAddIFrameDialog_WidthUnit"
|
|
@@ -87,13 +90,14 @@
|
|
|
87
90
|
<Label id="sapUiRtaAddIFrameDialog_HeightLabel" class="sapUiRtaAddIFrameDialogHeightLabel" labelFor="sapUiRtaAddIFrameDialog_HeightInput"
|
|
88
91
|
text="{/text/heightLabel}"/>
|
|
89
92
|
<Input id="sapUiRtaAddIFrameDialog_HeightInput" class="sapUiRtaAddIFrameDialogHeightInput"
|
|
90
|
-
value="{path: '/frameHeight/value', type: '
|
|
93
|
+
value="{path: '/frameHeight/value', type: 'FloatType', constraints: {minimum: 1}}"
|
|
91
94
|
valueState="{/frameHeight/valueState}"/>
|
|
92
95
|
<Select
|
|
93
96
|
id="sapUiRtaAddIFrameDialog_HeightUnit"
|
|
94
97
|
class="sapUiRtaAddIFrameDialogHeightUnit"
|
|
95
98
|
ariaLabelledBy="sapUiRtaAddIFrameDialog_HeightUnitLabel"
|
|
96
99
|
selectedKey="{/frameHeightUnit/value}"
|
|
100
|
+
forceSelection="false"
|
|
97
101
|
items="{/unitsOfHeightMeasure}"
|
|
98
102
|
showSecondaryValues= "true"
|
|
99
103
|
columnRatio="1:5"
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
id: "sapUiRtaAddIFrameDialog_HeightInput"
|
|
94
94
|
},
|
|
95
95
|
frameHeightUnit: {
|
|
96
|
-
value: "
|
|
96
|
+
value: "vh"
|
|
97
97
|
},
|
|
98
98
|
frameUrl: {
|
|
99
99
|
value: "",
|
|
@@ -133,7 +133,7 @@ sap.ui.define([
|
|
|
133
133
|
* @class Context - Dialog for IFrame settings in Runtime Authoring
|
|
134
134
|
* @extends sap.ui.base.ManagedObject
|
|
135
135
|
* @author SAP SE
|
|
136
|
-
* @version 1.
|
|
136
|
+
* @version 1.114.1
|
|
137
137
|
* @constructor
|
|
138
138
|
* @private
|
|
139
139
|
* @since 1.78
|
|
@@ -301,7 +301,7 @@ sap.ui.define([
|
|
|
301
301
|
* @param {string} sSize - Size to import
|
|
302
302
|
*/
|
|
303
303
|
_importIFrameSize: function(sFieldName, sSize) {
|
|
304
|
-
var aResults = sSize.split(/(px|rem
|
|
304
|
+
var aResults = sSize.split(/(px|rem|%|vh)/);
|
|
305
305
|
if (aResults.length >= 2) {
|
|
306
306
|
this._oJSONModel.setProperty("/" + sFieldName + "/value", parseFloat(aResults[0]));
|
|
307
307
|
this._oJSONModel.setProperty("/" + sFieldName + "Unit/value", aResults[1]);
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @author SAP SE
|
|
45
45
|
* @experimental Since 1.56
|
|
46
46
|
* @since 1.56
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.114.1
|
|
48
48
|
* @private
|
|
49
49
|
* @ui5-restricted
|
|
50
50
|
*/
|
|
@@ -331,6 +331,9 @@ sap.ui.define([
|
|
|
331
331
|
editable: oOverlay.getEditable(),
|
|
332
332
|
bIsView: oOverlay.getElement() instanceof View
|
|
333
333
|
};
|
|
334
|
+
if (oElement.isA("sap.ui.core.Component")) {
|
|
335
|
+
oData.component = true;
|
|
336
|
+
}
|
|
334
337
|
if (typeof oOverlay.isVisible() === "boolean") {
|
|
335
338
|
oData.visible = oOverlay.isVisible();
|
|
336
339
|
}
|