@openui5/sap.ui.rta 1.114.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/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 +68 -42
- package/src/sap/ui/rta/Utils.js +35 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -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/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 +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/messagebundle.properties +19 -1
- 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 +10 -3
- 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.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 +1 -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.js +78 -11
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- 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 +61 -24
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptationsDialog.fragment.xml +2 -8
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +4 -4
- 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 +30 -22
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +1 -1
|
@@ -23,14 +23,14 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @alias sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.114.
|
|
26
|
+
* @version 1.114.1
|
|
27
27
|
* @since 1.50
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
30
30
|
*/
|
|
31
31
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
32
32
|
name: "sap.ui.rta",
|
|
33
|
-
version: "1.114.
|
|
33
|
+
version: "1.114.1",
|
|
34
34
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
35
35
|
types: [],
|
|
36
36
|
interfaces: [],
|
|
@@ -119,6 +119,10 @@ TIT_VERSION_HISTORY_UNPUBLISHED=Unpublished
|
|
|
119
119
|
MSG_DRAFT_ACTIVATION_SUCCESS=New version activated
|
|
120
120
|
#XMSG: message toast text when activated failed
|
|
121
121
|
MSG_DRAFT_ACTIVATION_FAILED=Sorry, the draft cannot be activated at this time. Please try again later.
|
|
122
|
+
#XMSG: message box text when version switch failed
|
|
123
|
+
MSG_SWITCH_VERSION_FAILED=Failed to switch version. Please reload.
|
|
124
|
+
#XMSG: message box text when adaptation switch failed
|
|
125
|
+
MSG_SWITCH_ADAPTATION_FAILED=Failed to switch adaptation. Please reload.
|
|
122
126
|
#TIT: Title of a published version
|
|
123
127
|
TIT_VERSION_TITLE=Title
|
|
124
128
|
#XTIT: Title for the dialog to state a title for a version the key user is about to activate
|
|
@@ -251,6 +255,10 @@ MSG_RELOAD_WITH_VIEWS_PERSONALIZATION_AND_WITHOUT_DRAFT=The app will now reload
|
|
|
251
255
|
MSG_RELOAD_WITH_PERSONALIZATION_AND_RESTRICTED_CONTEXT=The app will now reload with your personalization changes. Your public or role-specific views will be applied again.
|
|
252
256
|
#XMSG: Dialog message for reload without restricted contexts
|
|
253
257
|
MSG_RELOAD_WITHOUT_ALL_CONTEXT=The app will now reload with your public or role-specific views.
|
|
258
|
+
#XMSG: Dialog message for reload without context-based adaptation and personalization changes
|
|
259
|
+
MSG_RELOAD_WITH_PERSONALIZATION_AND_CONTEXT_BASED_ADAPTATION=The app will now reload with your personal changes and with the adaptation that has the highest priority matching your user roles.
|
|
260
|
+
#XMSG: Dialog message for reload if key user adaptation is not the highest ranked context-based adaptation for end user
|
|
261
|
+
MSG_RELOAD_OTHER_CONTEXT_BASED_ADAPTATION=The app will now reload with the adaptation that has the highest priority matching your user roles.
|
|
254
262
|
#XMSG: Dialog message before a reload when personalization changes will be applied again
|
|
255
263
|
MSG_RELOAD_WITH_ALL_CHANGES=The app will reload with all changes.
|
|
256
264
|
#XMSG: Dialog message before a reload when changes need server-side processing and new cache tokens to be fetched (rare case for use to see this message)
|
|
@@ -560,8 +568,18 @@ SAC_DIALOG_HEADER=Save as New Adaptation
|
|
|
560
568
|
DAC_DIALOG_HEADER=Delete Adaptation
|
|
561
569
|
#XTIT: Context-Based Adaptation Delete Dialog description
|
|
562
570
|
DAC_DIALOG_DESCRIPTION=Do you really want to delete this adaptation?
|
|
563
|
-
#
|
|
571
|
+
#XMSG: Context-Based Adaptation dialog to delete but unsaved changes exist description
|
|
564
572
|
DAC_DATA_LOSS_DIALOG_DESCRIPTION=You have unsaved UI changes. Deleting this adaptation will also delete the UI changes. Do you really want to delete this adaptation?
|
|
573
|
+
#XTIT: Context-Based Adaptation Migration Dialog title
|
|
574
|
+
DAC_DIALOG_MIGRATION_HEADER=Migrate Views
|
|
575
|
+
#XMSG: Context-Based Adaptation Migration Dialog description
|
|
576
|
+
DAC_DIALOG_MIGRATION_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.
|
|
577
|
+
#XMSG: Context-Based Adaptation Migration Dialog description
|
|
578
|
+
DAC_DIALOG_MIGRATION_DIRTY_DESCRIPTION=We noticed that you've already assigned roles to views in this application. If you want to create an adaptation, you need to migrate these views to adaptations.\n After the migration, every view that was assigned to a role will be included in an adaptation.\n\n You have unsaved UI changes. These will be discarded before the migration.
|
|
579
|
+
#XMSG: Context-Based Adaptation Migration Successful Dialog description
|
|
580
|
+
DAC_DIALOG_MIGRATION_SUCCESSFULL_DESCRIPTION=Views have been successfully migrated.\n You can now switch to the created adaptations and verify them.
|
|
581
|
+
#XMSG: Context-Based Adaptation Migration Error Dialog description
|
|
582
|
+
DAC_DIALOG_MIGRATION_ERROR_DESCRIPTION=An Error occurred during the migration. Please try again later or contact your administrator.
|
|
565
583
|
#XTITT: Context-Based Adaptation Manage Dialog title
|
|
566
584
|
MANAGE_ADAPTATIONS_DIALOG_HEADER=Manage Adaptations
|
|
567
585
|
#XTIT: Text for Manage Adaptations Button in RTA toolbar
|
|
@@ -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.114.
|
|
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.114.
|
|
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.114.
|
|
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.114.
|
|
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.114.
|
|
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.114.
|
|
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
|
};
|
|
@@ -151,7 +152,13 @@ sap.ui.define([
|
|
|
151
152
|
supportsDefault: mAction.supportsDefaultDelegate
|
|
152
153
|
})
|
|
153
154
|
.then(function(mDelegateInfo) {
|
|
154
|
-
|
|
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
|
+
) {
|
|
155
162
|
var aRequiredLibraries = DelegateMediatorAPI.getRequiredLibrariesForDefaultDelegate({
|
|
156
163
|
delegateName: mDelegateInfo.names,
|
|
157
164
|
control: mParents.relevantContainer
|
|
@@ -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.114.
|
|
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.114.
|
|
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.114.
|
|
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.114.
|
|
120
|
+
* @version 1.114.1
|
|
121
121
|
* @constructor
|
|
122
122
|
* @private
|
|
123
123
|
* @since 1.75
|