@openui5/sap.ui.rta 1.124.1 → 1.124.2
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 +1 -1
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +25 -4
- package/src/sap/ui/rta/appVariant/Feature.js +8 -0
- 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 +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/LocalReset.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Resize.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +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 +2 -0
- 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/ControlVariant.js +1 -1
- 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/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 +1 -1
- 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 +1 -1
- 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/Standalone.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +1 -1
- 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 +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
- package/src/sap/ui/rta/util/ServiceManager.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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.124.
|
|
3
|
+
"version": "1.124.2",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.rta",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.124.
|
|
18
|
-
"@openui5/sap.ui.core": "1.124.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.124.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.124.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.124.
|
|
17
|
+
"@openui5/sap.m": "1.124.2",
|
|
18
|
+
"@openui5/sap.ui.core": "1.124.2",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.124.2",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.124.2",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.124.2"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.124.
|
|
9
|
+
<version>1.124.2</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -111,7 +111,7 @@ sap.ui.define([
|
|
|
111
111
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
112
112
|
* @extends sap.ui.base.ManagedObject
|
|
113
113
|
* @author SAP SE
|
|
114
|
-
* @version 1.124.
|
|
114
|
+
* @version 1.124.2
|
|
115
115
|
* @constructor
|
|
116
116
|
* @private
|
|
117
117
|
* @since 1.30
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -428,6 +428,20 @@ sap.ui.define([
|
|
|
428
428
|
return sErrorMessage;
|
|
429
429
|
};
|
|
430
430
|
|
|
431
|
+
AppVariantUtils.buildWarningInfo = function(sMessageKey, sAppVariantId) {
|
|
432
|
+
let sMessage = `${AppVariantUtils.getText(sMessageKey)}\n\n`;
|
|
433
|
+
|
|
434
|
+
if (sAppVariantId) {
|
|
435
|
+
sMessage += `${AppVariantUtils.getText("MSG_APP_VARIANT_ID", sAppVariantId)}\n`;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
return {
|
|
439
|
+
text: sMessage,
|
|
440
|
+
appVariantId: sAppVariantId,
|
|
441
|
+
warning: true
|
|
442
|
+
};
|
|
443
|
+
};
|
|
444
|
+
|
|
431
445
|
AppVariantUtils.buildErrorInfo = function(sMessageKey, oError, sAppVariantId) {
|
|
432
446
|
var sErrorMessage = this._getErrorMessageText(oError);
|
|
433
447
|
var sMessage = `${AppVariantUtils.getText(sMessageKey)}\n\n`;
|
|
@@ -522,16 +536,23 @@ sap.ui.define([
|
|
|
522
536
|
} else if (oInfo.deleteAppVariant && sAction === sRightButtonText) {
|
|
523
537
|
// Do you really want to delete this app? => Close
|
|
524
538
|
reject(oInfo.deleteAppVariant);
|
|
525
|
-
} else if (oInfo.error) {
|
|
539
|
+
} else if (oInfo.error || oInfo.warning) {
|
|
526
540
|
// Error: Deletion/Creation failed => Close or CopyID & Close
|
|
527
|
-
reject(oInfo.error);
|
|
541
|
+
reject(oInfo.error || oInfo.warning);
|
|
528
542
|
} else {
|
|
529
543
|
resolve();
|
|
530
544
|
}
|
|
531
545
|
};
|
|
532
|
-
|
|
546
|
+
let oIcon = MessageBox.Icon.NONE;
|
|
547
|
+
if (bSuccessful || oInfo.deleteAppVariant) {
|
|
548
|
+
oIcon = MessageBox.Icon.INFORMATION;
|
|
549
|
+
} else if (oInfo.warning) {
|
|
550
|
+
oIcon = MessageBox.Icon.WARNING;
|
|
551
|
+
} else {
|
|
552
|
+
oIcon = MessageBox.Icon.ERROR;
|
|
553
|
+
}
|
|
533
554
|
MessageBox.show(oInfo.text, {
|
|
534
|
-
icon:
|
|
555
|
+
icon: oIcon,
|
|
535
556
|
onClose: fnCallback,
|
|
536
557
|
title: sTitle,
|
|
537
558
|
actions: aActions,
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/fl/Utils",
|
|
9
9
|
"sap/ui/rta/appVariant/AppVariantUtils",
|
|
10
|
+
"sap/ui/rta/util/showMessageBox",
|
|
10
11
|
"sap/ui/core/BusyIndicator",
|
|
11
12
|
"sap/ui/core/EventBus",
|
|
12
13
|
"sap/ui/fl/registry/Settings",
|
|
@@ -16,6 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
], function(
|
|
17
18
|
FlexUtils,
|
|
18
19
|
AppVariantUtils,
|
|
20
|
+
showMessageBox,
|
|
19
21
|
BusyIndicator,
|
|
20
22
|
EventBus,
|
|
21
23
|
Settings,
|
|
@@ -77,6 +79,12 @@ sap.ui.define([
|
|
|
77
79
|
var fnTriggerPollingTileCreation = function(oResult, sAppVariantId) {
|
|
78
80
|
// In case of S/4HANA Cloud, oResult is filled from catalog assignment call
|
|
79
81
|
if (oResult && oResult.response && oResult.response.IAMId) {
|
|
82
|
+
if (!Array.isArray(oResult.response.CatalogIds) || oResult.response.CatalogIds.length === 0) {
|
|
83
|
+
const sMessage = AppVariantUtils.getText("MSG_BASE_APP_CATALOGS_NOT_FOUND", sAppVariantId);
|
|
84
|
+
const sTitle = AppVariantUtils.getText("HEADER_SAVE_APP_VARIANT_FAILED");
|
|
85
|
+
showMessageBox(sMessage, {title: sTitle}, "error");
|
|
86
|
+
return Promise.reject();
|
|
87
|
+
}
|
|
80
88
|
return oAppVariantManager.notifyKeyUserWhenPublishingIsReady(oResult.response.IAMId, sAppVariantId, true);
|
|
81
89
|
}
|
|
82
90
|
return Promise.resolve();
|
|
@@ -22,14 +22,14 @@ sap.ui.define([
|
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.ui.rta
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.124.
|
|
25
|
+
* @version 1.124.2
|
|
26
26
|
* @since 1.50
|
|
27
27
|
* @private
|
|
28
28
|
*/
|
|
29
29
|
var thisLib = Lib.init({
|
|
30
30
|
name: "sap.ui.rta",
|
|
31
31
|
apiVersion: 2,
|
|
32
|
-
version: "1.124.
|
|
32
|
+
version: "1.124.2",
|
|
33
33
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
34
34
|
types: [],
|
|
35
35
|
interfaces: [],
|
|
@@ -315,6 +315,8 @@ MSG_SAVE_APP_VARIANT_FAILED=Sorry, the app variant could not be saved. Please se
|
|
|
315
315
|
MSG_UPDATE_APP_VARIANT_FAILED=Sorry, the app variant could not be updated. Please send the following technical information to your administrator\:
|
|
316
316
|
#XMSG: Error message displayed if the catalog assignment fails
|
|
317
317
|
MSG_CATALOG_ASSIGNMENT_FAILED=The new app variant was saved, but could not be assigned to the catalog. Please send the following technical information to your content administrator\:
|
|
318
|
+
#XMSG: Error message displayed if no catalog could be determined from base app
|
|
319
|
+
MSG_BASE_APP_CATALOGS_NOT_FOUND=The new app variant was saved, but we could not automatically add it to a business catalog. Please assign the app variant "{0}" to a business catalog manually. For more information, see [How to Add Custom Catalog Extension](https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/832c83d429ef43c68691101bc8983f13.html).
|
|
318
320
|
#XMSG: Error message displayed if the FLP tile creation fails
|
|
319
321
|
MSG_TILE_CREATION_FAILED=Refresh the Fiori Launchpad homepage to check if the new tile has been created. If it is not available or not working properly, please contact your content administrator.
|
|
320
322
|
#XMSG: Error message displayed if saving copying the unsaved changes for an app variant fails
|
|
@@ -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.124.
|
|
28
|
+
* @version 1.124.2
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.34
|
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
32
32
|
* @extends sap.ui.rta.plugin.Plugin
|
|
33
33
|
* @author SAP SE
|
|
34
|
-
* @version 1.124.
|
|
34
|
+
* @version 1.124.2
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -119,7 +119,7 @@ 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.124.
|
|
122
|
+
* @version 1.124.2
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.44
|
|
@@ -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.124.
|
|
122
|
+
* @version 1.124.2
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicator
|
|
47
47
|
* @author SAP SE
|
|
48
48
|
* @since 1.84.0
|
|
49
|
-
* @version 1.124.
|
|
49
|
+
* @version 1.124.2
|
|
50
50
|
* @private
|
|
51
51
|
*/
|
|
52
52
|
const ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @alias sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry
|
|
38
38
|
* @author SAP SE
|
|
39
39
|
* @since 1.86.0
|
|
40
|
-
* @version 1.124.
|
|
40
|
+
* @version 1.124.2
|
|
41
41
|
* @private
|
|
42
42
|
*/
|
|
43
43
|
const ChangeIndicatorRegistry = ManagedObject.extend("sap.ui.rta.util.changeVisualization.ChangeIndicatorRegistry", {
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
* @alias sap.ui.rta.util.changeVisualization.ChangeVisualization
|
|
85
85
|
* @author SAP SE
|
|
86
86
|
* @since 1.84.0
|
|
87
|
-
* @version 1.124.
|
|
87
|
+
* @version 1.124.2
|
|
88
88
|
* @private
|
|
89
89
|
*/
|
|
90
90
|
const ChangeVisualization = Control.extend("sap.ui.rta.util.changeVisualization.ChangeVisualization", {
|