@openui5/sap.ui.rta 1.131.1 → 1.132.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/.eslintrc.json +1 -2
- package/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +2 -2
- package/src/sap/ui/rta/Client.js +2 -2
- package/src/sap/ui/rta/RuntimeAuthoring.js +26 -10
- package/src/sap/ui/rta/Utils.js +2 -2
- package/src/sap/ui/rta/api/startAdaptation.js +1 -1
- package/src/sap/ui/rta/api/startKeyUserAdaptation.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +2 -2
- package/src/sap/ui/rta/appVariant/AppVariantOverviewDialog.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantUtils.js +1 -1
- package/src/sap/ui/rta/appVariant/Feature.js +1 -1
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +1 -1
- package/src/sap/ui/rta/appVariant/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/Component.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/controller/ManageApps.controller.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/i18n/i18n_en_US_saptrc.properties +27 -27
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.html +3 -3
- package/src/sap/ui/rta/appVariant/manageApps/webapp/index.js +1 -1
- package/src/sap/ui/rta/appVariant/manageApps/webapp/model/models.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +2 -2
- package/src/sap/ui/rta/command/AddXML.js +2 -2
- package/src/sap/ui/rta/command/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/command/AnnotationCommand.js +79 -0
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +2 -2
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +6 -8
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +3 -3
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +9 -5
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +8 -6
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +14 -11
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +6 -4
- package/src/sap/ui/rta/command/CreateContainer.js +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +2 -2
- package/src/sap/ui/rta/command/FlexCommand.js +2 -2
- package/src/sap/ui/rta/command/LREPSerializer.js +2 -2
- package/src/sap/ui/rta/command/LocalReset.js +2 -2
- package/src/sap/ui/rta/command/Move.js +2 -2
- package/src/sap/ui/rta/command/Property.js +2 -2
- package/src/sap/ui/rta/command/Remove.js +2 -2
- package/src/sap/ui/rta/command/Rename.js +2 -2
- package/src/sap/ui/rta/command/Resize.js +2 -2
- package/src/sap/ui/rta/command/Reveal.js +2 -2
- package/src/sap/ui/rta/command/Settings.js +2 -2
- package/src/sap/ui/rta/command/Split.js +2 -2
- package/src/sap/ui/rta/command/Stack.js +2 -2
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantContent.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantSwitch.js +2 -2
- package/src/sap/ui/rta/command/compVariant/CompVariantUpdate.js +14 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +15 -16
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +18 -0
- package/src/sap/ui/rta/messagebundle_ar.properties +10 -0
- package/src/sap/ui/rta/messagebundle_bg.properties +13 -3
- package/src/sap/ui/rta/messagebundle_ca.properties +10 -0
- package/src/sap/ui/rta/messagebundle_cnr.properties +10 -0
- package/src/sap/ui/rta/messagebundle_cs.properties +10 -0
- package/src/sap/ui/rta/messagebundle_cy.properties +10 -0
- package/src/sap/ui/rta/messagebundle_da.properties +10 -0
- package/src/sap/ui/rta/messagebundle_de.properties +10 -0
- package/src/sap/ui/rta/messagebundle_el.properties +10 -0
- package/src/sap/ui/rta/messagebundle_en.properties +10 -0
- package/src/sap/ui/rta/messagebundle_en_GB.properties +10 -0
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +10 -0
- package/src/sap/ui/rta/messagebundle_en_US_saptrc.properties +347 -325
- package/src/sap/ui/rta/messagebundle_es.properties +10 -0
- package/src/sap/ui/rta/messagebundle_es_MX.properties +18 -8
- package/src/sap/ui/rta/messagebundle_et.properties +10 -0
- package/src/sap/ui/rta/messagebundle_fi.properties +10 -0
- package/src/sap/ui/rta/messagebundle_fr.properties +10 -0
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +10 -0
- package/src/sap/ui/rta/messagebundle_hi.properties +10 -0
- package/src/sap/ui/rta/messagebundle_hr.properties +10 -0
- package/src/sap/ui/rta/messagebundle_hu.properties +10 -0
- package/src/sap/ui/rta/messagebundle_id.properties +10 -0
- package/src/sap/ui/rta/messagebundle_it.properties +10 -0
- package/src/sap/ui/rta/messagebundle_iw.properties +10 -0
- package/src/sap/ui/rta/messagebundle_ja.properties +10 -0
- package/src/sap/ui/rta/messagebundle_kk.properties +10 -0
- package/src/sap/ui/rta/messagebundle_ko.properties +10 -0
- package/src/sap/ui/rta/messagebundle_lt.properties +10 -0
- package/src/sap/ui/rta/messagebundle_lv.properties +10 -0
- package/src/sap/ui/rta/messagebundle_mk.properties +10 -0
- package/src/sap/ui/rta/messagebundle_ms.properties +14 -4
- package/src/sap/ui/rta/messagebundle_nl.properties +10 -0
- package/src/sap/ui/rta/messagebundle_no.properties +10 -0
- package/src/sap/ui/rta/messagebundle_pl.properties +10 -0
- package/src/sap/ui/rta/messagebundle_pt.properties +10 -0
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +10 -0
- package/src/sap/ui/rta/messagebundle_ro.properties +10 -0
- package/src/sap/ui/rta/messagebundle_ru.properties +10 -0
- package/src/sap/ui/rta/messagebundle_sh.properties +10 -0
- package/src/sap/ui/rta/messagebundle_sk.properties +10 -0
- package/src/sap/ui/rta/messagebundle_sl.properties +10 -0
- package/src/sap/ui/rta/messagebundle_sr.properties +10 -0
- package/src/sap/ui/rta/messagebundle_sv.properties +10 -0
- package/src/sap/ui/rta/messagebundle_th.properties +10 -0
- package/src/sap/ui/rta/messagebundle_tr.properties +10 -0
- package/src/sap/ui/rta/messagebundle_uk.properties +11 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +10 -0
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +10 -0
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +10 -0
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +2 -2
- package/src/sap/ui/rta/plugin/BaseCreate.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +2 -2
- package/src/sap/ui/rta/plugin/CompVariant.js +4 -2
- package/src/sap/ui/rta/plugin/ControlVariant.js +5 -23
- package/src/sap/ui/rta/plugin/CreateContainer.js +2 -2
- package/src/sap/ui/rta/plugin/CutPaste.js +2 -2
- package/src/sap/ui/rta/plugin/DragDrop.js +2 -2
- package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
- package/src/sap/ui/rta/plugin/Plugin.js +15 -13
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +2 -2
- package/src/sap/ui/rta/plugin/Rename.js +3 -3
- package/src/sap/ui/rta/plugin/RenameHandler.js +5 -9
- package/src/sap/ui/rta/plugin/Resize.js +3 -3
- package/src/sap/ui/rta/plugin/Selection.js +2 -2
- package/src/sap/ui/rta/plugin/Settings.js +2 -21
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +7 -5
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +94 -126
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +28 -31
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +141 -172
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +108 -137
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +96 -141
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +112 -0
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +183 -0
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +109 -0
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +239 -0
- package/src/sap/ui/rta/plugin/annotations/AnnotationTypes.js +15 -0
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +2 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +3 -3
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/service/Action.js +2 -2
- package/src/sap/ui/rta/service/ControllerExtension.js +2 -2
- package/src/sap/ui/rta/service/Outline.js +2 -2
- package/src/sap/ui/rta/service/Property.js +2 -2
- package/src/sap/ui/rta/service/Receiver.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +2 -2
- package/src/sap/ui/rta/service/SupportTools.js +2 -2
- package/src/sap/ui/rta/service/index.js +1 -1
- package/src/sap/ui/rta/themes/base/WhatsNew.less +5 -0
- package/src/sap/ui/rta/themes/base/library.source.less +1 -1
- package/src/sap/ui/rta/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +2 -2
- package/src/sap/ui/rta/toolbar/AdaptationRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +2 -2
- package/src/sap/ui/rta/toolbar/BaseRenderer.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +3 -4
- package/src/sap/ui/rta/toolbar/FioriLike.js +2 -2
- package/src/sap/ui/rta/toolbar/OverflowToolbarButton.js +2 -2
- package/src/sap/ui/rta/toolbar/Standalone.js +2 -2
- package/src/sap/ui/rta/toolbar/contextBased/ManageAdaptations.js +1 -1
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -2
- package/src/sap/ui/rta/toolbar/translation/Translation.js +3 -3
- package/src/sap/ui/rta/toolbar/versioning/Versioning.js +2 -2
- package/src/sap/ui/rta/util/Animation.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +1 -1
- package/src/sap/ui/rta/util/PluginManager.js +16 -10
- package/src/sap/ui/rta/util/PopupManager.js +3 -3
- package/src/sap/ui/rta/util/ReloadManager.js +9 -9
- package/src/sap/ui/rta/util/ServiceEventBus.js +2 -2
- package/src/sap/ui/rta/util/ServiceManager.js +2 -2
- package/src/sap/ui/rta/util/adaptationStarter.js +17 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeCategories.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicator.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeIndicatorRegistry.js +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeStates.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualization.js +5 -3
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CreateContainerVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/MoveVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/RenameVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/SplitVisualization.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/getCommandVisualization.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/showMessageBox.js +1 -1
- package/src/sap/ui/rta/util/validateFlexEnabled.js +1 -1
- package/src/sap/ui/rta/util/validateStableIds.js +1 -1
- package/src/sap/ui/rta/util/validateText.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNew.js +2 -2
- package/src/sap/ui/rta/util/whatsNew/WhatsNewDialog.fragment.xml +5 -4
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +8 -2
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +1 -1
- package/src/sap/ui/rta/command/Annotation.js +0 -45
package/.eslintrc.json
CHANGED
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
}],
|
|
50
50
|
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
51
51
|
"quotes": ["error", "double", {
|
|
52
|
-
"avoidEscape": true
|
|
53
|
-
"allowTemplateLiterals": true
|
|
52
|
+
"avoidEscape": true
|
|
54
53
|
}],
|
|
55
54
|
"no-unsafe-optional-chaining": "error",
|
|
56
55
|
"prefer-const": ["error", { "ignoreReadBeforeAssign": true }],
|
package/THIRDPARTY.txt
CHANGED
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.24.0
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.132.1",
|
|
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.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.132.1",
|
|
18
|
+
"@openui5/sap.ui.core": "1.132.1",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.132.1",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.132.1",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.132.1"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.rta</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
7
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.132.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -59,7 +59,7 @@ sap.ui.define([
|
|
|
59
59
|
* @alias sap.ui.rta.Client
|
|
60
60
|
* @author SAP SE
|
|
61
61
|
* @since 1.56.0
|
|
62
|
-
* @version 1.
|
|
62
|
+
* @version 1.132.1
|
|
63
63
|
* @private
|
|
64
64
|
* @ui5-restricted
|
|
65
65
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
114
|
+
* @version 1.132.1
|
|
115
115
|
* @constructor
|
|
116
116
|
* @private
|
|
117
117
|
* @since 1.30
|
|
@@ -450,11 +450,11 @@ sap.ui.define([
|
|
|
450
450
|
await onStackModified.call(this);
|
|
451
451
|
|
|
452
452
|
// Resolve the CSS variable set in themes/base/OverlayWithScrollbar.css
|
|
453
|
-
Overlay.getOverlayContainer().
|
|
453
|
+
Overlay.getOverlayContainer().style.setProperty(
|
|
454
454
|
"--sap-ui-rta-scrollbar-scrollWidth",
|
|
455
455
|
`${DOMUtil.getScrollbarWidth()}px`
|
|
456
456
|
);
|
|
457
|
-
Overlay.getOverlayContainer().
|
|
457
|
+
Overlay.getOverlayContainer().style.setProperty(
|
|
458
458
|
"--sap-ui-rta-scrollbar-scrollWidthPlusTwo",
|
|
459
459
|
`${DOMUtil.getScrollbarWidth() + 2}px`
|
|
460
460
|
);
|
|
@@ -521,7 +521,7 @@ sap.ui.define([
|
|
|
521
521
|
// add root control is triggering overlay creation, so we need to wait for the scope to be set.
|
|
522
522
|
this._oDesignTime.addRootElement(this._oRootControl);
|
|
523
523
|
|
|
524
|
-
Overlay.getOverlayContainer().
|
|
524
|
+
Overlay.getOverlayContainer().classList.add("sapUiRta");
|
|
525
525
|
// RTA Visual Improvements
|
|
526
526
|
document.body.classList.add("sapUiRtaMode");
|
|
527
527
|
this._oDesignTime.getSelectionManager().attachChange(function(oEvent) {
|
|
@@ -560,14 +560,16 @@ sap.ui.define([
|
|
|
560
560
|
* @public
|
|
561
561
|
* @param {boolean} bSkipSave - Stop RTA with or w/o saving changes
|
|
562
562
|
* @param {boolean} bSkipRestart - Stop RTA with or w/o checking if a reload is needed to apply e.g. personalization/app descriptor changes
|
|
563
|
+
* @param {boolean} bSkipUnsavedChangesPrompt - Stop RTA without showing the "save changes" prompt to the user (e.g. closing of annotation dialog)
|
|
563
564
|
* @returns {Promise} Resolves with undefined
|
|
564
565
|
*/
|
|
565
|
-
RuntimeAuthoring.prototype.stop = async function(bSkipSave, bSkipRestart) {
|
|
566
|
+
RuntimeAuthoring.prototype.stop = async function(bSkipSave, bSkipRestart, bSkipUnsavedChangesPrompt) {
|
|
566
567
|
let bUserCancelled;
|
|
567
568
|
checkToolbarAndExecuteFunction.call(this, "setBusy", true);
|
|
568
569
|
try {
|
|
570
|
+
bSkipSave ||= !PersistenceWriteAPI.hasDirtyChanges({selector: this.getRootControlInstance()});
|
|
569
571
|
await waitForPendingActions.call(this);
|
|
570
|
-
if (!bSkipSave && this.canSave()) {
|
|
572
|
+
if (!bSkipSave && this.canSave() && !bSkipUnsavedChangesPrompt) {
|
|
571
573
|
const sAction = await showSaveConfirmation.call(this);
|
|
572
574
|
if (sAction === MessageBox.Action.CANCEL) {
|
|
573
575
|
bUserCancelled = true;
|
|
@@ -681,7 +683,13 @@ sap.ui.define([
|
|
|
681
683
|
|
|
682
684
|
oSelectionPlugin.setIsActive(!(sNewMode === "visualization"));
|
|
683
685
|
|
|
684
|
-
Overlay.getOverlayContainer()
|
|
686
|
+
const oOverlayContainer = Overlay.getOverlayContainer();
|
|
687
|
+
if (sNewMode === "visualization") {
|
|
688
|
+
oOverlayContainer.classList.add("sapUiRtaVisualizationMode");
|
|
689
|
+
} else {
|
|
690
|
+
oOverlayContainer.classList.remove("sapUiRtaVisualizationMode");
|
|
691
|
+
}
|
|
692
|
+
|
|
685
693
|
if (sNewMode === "visualization") {
|
|
686
694
|
document.querySelectorAll(".sapUiDtOverlayMovable").forEach(function(oNode) {
|
|
687
695
|
oNode.style.cursor = "default";
|
|
@@ -1071,7 +1079,7 @@ sap.ui.define([
|
|
|
1071
1079
|
function onKeyDown(oEvent) {
|
|
1072
1080
|
// if for example the addField Dialog/reset Popup is open, we don't want the user to be able to undo/redo
|
|
1073
1081
|
const bMacintosh = Device.os.macintosh;
|
|
1074
|
-
const bFocusInsideOverlayContainer = Overlay.getOverlayContainer().
|
|
1082
|
+
const bFocusInsideOverlayContainer = Overlay.getOverlayContainer().contains(document.activeElement);
|
|
1075
1083
|
const bFocusInsideRtaToolbar = this.getShowToolbars() && this.getToolbar().getDomRef().contains(document.activeElement);
|
|
1076
1084
|
let bFocusOnContextMenu = false;
|
|
1077
1085
|
// there might be two divs with that style-class (compact and expanded context menu)
|
|
@@ -1438,7 +1446,7 @@ sap.ui.define([
|
|
|
1438
1446
|
},
|
|
1439
1447
|
textResources: this._getTextResources(),
|
|
1440
1448
|
restore: this.restore.bind(this),
|
|
1441
|
-
exit: this.stop.bind(this, false, false)
|
|
1449
|
+
exit: this.stop.bind(this, false, false, false)
|
|
1442
1450
|
};
|
|
1443
1451
|
|
|
1444
1452
|
oProperties.publishVersion = onPublishVersion.bind(this);
|
|
@@ -1694,6 +1702,14 @@ sap.ui.define([
|
|
|
1694
1702
|
this._pElementModified = this._pElementModified.then(function() {
|
|
1695
1703
|
this.getPluginManager().handleStopCutPaste();
|
|
1696
1704
|
|
|
1705
|
+
// Executed annotation commands will stop RTA and trigger a save + reload in RTA mode
|
|
1706
|
+
if (oEvent.getParameter("hasAnnotationCommand")) {
|
|
1707
|
+
this._pElementModified = Promise.resolve();
|
|
1708
|
+
RuntimeAuthoring.enableRestart(this.getLayer(), this.getRootControlInstance());
|
|
1709
|
+
return this.getCommandStack().pushAndExecute(oCommand)
|
|
1710
|
+
.then(this.stop.bind(this, false, false, /* bSkipUnsavedChangesPrompt = */true));
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1697
1713
|
if (oCommand instanceof BaseCommand) {
|
|
1698
1714
|
if (sNewControlID) {
|
|
1699
1715
|
scheduleOnCreated.call(this, sNewControlID, function(oElementOverlay) {
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
*
|
|
45
45
|
* @namespace
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.132.1
|
|
48
48
|
*
|
|
49
49
|
* @private
|
|
50
50
|
* @since 1.30
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.base.ManagedObject
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.132.1
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.53
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
MAA_DIALOG_ICON=
|
|
3
|
-
MAA_DIALOG_DESCRIPTION=
|
|
4
|
-
MAA_DIALOG_COPY_ID_ACTION=
|
|
5
|
-
MAA_DIALOG_ADAPT_UI_ACTION=
|
|
6
|
-
MAA_DIALOG_SAVE_AS_ACTION=
|
|
7
|
-
MAA_DIALOG_ACTIONS=
|
|
8
|
-
MAA_DIALOG_DELETE_APPVAR=
|
|
9
|
-
MAA_DIALOG_ADAPT_UI=
|
|
10
|
-
MAA_CURRENTLY_ADAPTING=
|
|
11
|
-
MAA_OPERATION_IN_PROGRESS=
|
|
12
|
-
MAA_NEW_APP_VARIANT=
|
|
13
|
-
MAA_ORIGINAL_TYPE=
|
|
14
|
-
MAA_APP_VARIANT_TYPE=
|
|
15
|
-
MAA_CURRENT_APP_STATUS=
|
|
16
|
-
TOOLTIP_MAA_DIALOG_COPY_ID=
|
|
17
|
-
MAA_DIALOG_COPY_ID=
|
|
18
|
-
MAA_DIALOG_APP_TYPE=
|
|
19
|
-
MAA_DIALOG_TITLE=
|
|
20
|
-
MAA_DIALOG_SUBTITLE=
|
|
21
|
-
TOOLTIP_DELETE_APP_VAR=
|
|
22
|
-
MSG_APP_VARIANT_DELETE_CONFIRMATION=
|
|
23
|
-
TOOLTIP_ADAPTUI_STATUS_RUNNING=
|
|
24
|
-
TOOLTIP_ADAPTUI_STATUS_PUBLISHED
|
|
25
|
-
TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR=
|
|
26
|
-
TOOLTIP_ADAPTUI_ON_PREMISE=
|
|
27
|
-
MAA_COPY_ID_SUCCESS=
|
|
28
|
-
MAA_DIALOG_ACTIONS_HEADER=
|
|
2
|
+
MAA_DIALOG_ICON=bcrd28QfoMOSX2Ozi74Wkw_Icon
|
|
3
|
+
MAA_DIALOG_DESCRIPTION=qLozP79lxFVptrjMxbeQdg_Description
|
|
4
|
+
MAA_DIALOG_COPY_ID_ACTION=gWSUVXdw4HwHk6wN+DKlVQ_Copy ID Action
|
|
5
|
+
MAA_DIALOG_ADAPT_UI_ACTION=zerdqFfFluwlab+ilj0mHQ_Adapt UI Action
|
|
6
|
+
MAA_DIALOG_SAVE_AS_ACTION=Y0ckDIAag7l95vLG5RCp/g_Save As Action
|
|
7
|
+
MAA_DIALOG_ACTIONS=0tJOYZ/Zf6Cz3MWCkLsR5g_Actions
|
|
8
|
+
MAA_DIALOG_DELETE_APPVAR=EYzU0lb6ylWvXAcjVECO4g_Delete App Variant
|
|
9
|
+
MAA_DIALOG_ADAPT_UI=Zteo+301a1ULRXb3muKa1A_Adapt UI
|
|
10
|
+
MAA_CURRENTLY_ADAPTING=JyFSSknZqP2mW77h1UT/iw_Currently Adapting
|
|
11
|
+
MAA_OPERATION_IN_PROGRESS=FwweepAJCp7qJxsUdNgvIg_Operation in Progress
|
|
12
|
+
MAA_NEW_APP_VARIANT=ClbjJZeoIOS9uHap80z/uA_Just Created
|
|
13
|
+
MAA_ORIGINAL_TYPE=ZGKPjKyjSfToc2jz7arGBQ_Original App
|
|
14
|
+
MAA_APP_VARIANT_TYPE=aMQdAiuR6R5LFO00waoGuQ_App Variant
|
|
15
|
+
MAA_CURRENT_APP_STATUS=9OxRdwXEzpR0puPWgDecGQ_Current Status
|
|
16
|
+
TOOLTIP_MAA_DIALOG_COPY_ID=pTHvrvs46BVqAACp0S8S4A_Copy the ID of the app variant to the clipboard
|
|
17
|
+
MAA_DIALOG_COPY_ID=hBa893qSPKoDpNcge/SeLA_Copy ID
|
|
18
|
+
MAA_DIALOG_APP_TYPE=M3jfhSUyU2H4PIdLV4vIuQ_App Type
|
|
19
|
+
MAA_DIALOG_TITLE=ZPrsOWCDa7/sjVuDNuGceg_Title
|
|
20
|
+
MAA_DIALOG_SUBTITLE=anaXBWEXCGHsdaEVDfVjtg_Subtitle
|
|
21
|
+
TOOLTIP_DELETE_APP_VAR=buCKIHMbZm6viz12uAugmQ_Please ask your content administrator to delete the target mappings for this app variant. Then you can delete the app variant.
|
|
22
|
+
MSG_APP_VARIANT_DELETE_CONFIRMATION=gSAQz3v7KJ/mhpsUjsP1Og_Do you really want to delete this app variant?\nPlease keep in mind that this will delete the app variant for all users.
|
|
23
|
+
TOOLTIP_ADAPTUI_STATUS_RUNNING=4OU6xE9QdvAAzCfKGykOoQ_Operation is running in the background.
|
|
24
|
+
TOOLTIP_ADAPTUI_STATUS_PUBLISHED=/KNRAd+iBTwfwGZAWimY2g_Refresh your browser to activate this option.
|
|
25
|
+
TOOLTIP_ADAPTUI_STATUS_UNPBLSHD_ERROR=sZ+OSdF8m+vasWCeG9QC0Q_Please check why the catalog assignment failed.
|
|
26
|
+
TOOLTIP_ADAPTUI_ON_PREMISE=mMxaz0bj3dIcQJ6+UdIkVw_Please ask your content administrator to create the target mappings for the app variant.
|
|
27
|
+
MAA_COPY_ID_SUCCESS=qQ57d3JCdqgEbE+XOzSXxg_ID was copied successfully.
|
|
28
|
+
MAA_DIALOG_ACTIONS_HEADER=lZ5R4P7nqulWfx63G7oN4w_Available Actions
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
<script id="sap-ui-bootstrap"
|
|
8
8
|
src="resources/sap-ui-core.js"
|
|
9
|
+
data-sap-ui-async="true"
|
|
9
10
|
data-sap-ui-libs="sap.m"
|
|
10
|
-
data-sap-ui-
|
|
11
|
-
data-sap-ui-
|
|
12
|
-
data-sap-ui-resourceroots='{"sap.ui.rta.appVariant.manageApps": ""}'>
|
|
11
|
+
data-sap-ui-compat-version="edge"
|
|
12
|
+
data-sap-ui-resource-roots='{"sap.ui.rta.appVariant.manageApps": ""}'>
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<script src="index.js"></script>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.132.1
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.75
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -14,7 +14,7 @@ sap.ui.define([
|
|
|
14
14
|
* @class
|
|
15
15
|
* @extends sap.ui.rta.command.FlexCommand
|
|
16
16
|
* @author SAP SE
|
|
17
|
-
* @version 1.
|
|
17
|
+
* @version 1.132.1
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.78
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.132.1
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.54
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* @class
|
|
25
25
|
* @extends sap.ui.rta.command.FlexCommand
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.132.1
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
30
30
|
* @since 1.76
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
8
|
+
"sap/ui/rta/command/FlexCommand",
|
|
9
|
+
"sap/ui/rta/library"
|
|
10
|
+
], function(
|
|
11
|
+
ChangesWriteAPI,
|
|
12
|
+
FlexCommand,
|
|
13
|
+
rtaLibrary
|
|
14
|
+
) {
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Annotation Command
|
|
19
|
+
*
|
|
20
|
+
* @class
|
|
21
|
+
* @extends sap.ui.rta.command.FlexCommand
|
|
22
|
+
*
|
|
23
|
+
* @author SAP SE
|
|
24
|
+
* @version 1.132.1
|
|
25
|
+
*
|
|
26
|
+
* @constructor
|
|
27
|
+
* @private
|
|
28
|
+
* @since 1.132
|
|
29
|
+
* @alias sap.ui.rta.command.AnnotationCommand
|
|
30
|
+
*/
|
|
31
|
+
const AnnotationCommand = FlexCommand.extend("sap.ui.rta.command.AnnotationCommand", {
|
|
32
|
+
metadata: {
|
|
33
|
+
library: "sap.ui.rta",
|
|
34
|
+
properties: {
|
|
35
|
+
changeType: {
|
|
36
|
+
type: "string"
|
|
37
|
+
},
|
|
38
|
+
serviceUrl: {
|
|
39
|
+
type: "string"
|
|
40
|
+
},
|
|
41
|
+
content: {
|
|
42
|
+
type: "any"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
events: {}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
AnnotationCommand.prototype._createChange = function(mFlexSettings, sVariantManagementReference, sCommand) {
|
|
50
|
+
const mChangeSpecificData = {
|
|
51
|
+
...this._getChangeSpecificData(),
|
|
52
|
+
...mFlexSettings,
|
|
53
|
+
serviceUrl: this.getServiceUrl(),
|
|
54
|
+
command: sCommand,
|
|
55
|
+
jsOnly: this.getJsOnly(),
|
|
56
|
+
generator: mFlexSettings.generator || rtaLibrary.GENERATOR_NAME
|
|
57
|
+
};
|
|
58
|
+
return ChangesWriteAPI.create({
|
|
59
|
+
changeSpecificData: mChangeSpecificData,
|
|
60
|
+
annotationChange: true,
|
|
61
|
+
selector: this.getAppComponent()
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
AnnotationCommand.prototype.execute = function() {
|
|
66
|
+
return Promise.resolve();
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
AnnotationCommand.prototype.undo = function() {
|
|
70
|
+
return Promise.resolve();
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* For annotation commands to take effect the app needs to be restarted as the models need to be reloaded.
|
|
75
|
+
*/
|
|
76
|
+
AnnotationCommand.prototype.needsReload = true;
|
|
77
|
+
|
|
78
|
+
return AnnotationCommand;
|
|
79
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @extends sap.ui.rta.command.BaseCommand
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.132.1
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @extends sap.ui.base.ManagedObject
|
|
17
17
|
*
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.132.1
|
|
20
20
|
*
|
|
21
21
|
* @constructor
|
|
22
22
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class
|
|
27
27
|
* @extends sap.ui.rta.command.FlexCommand
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.
|
|
29
|
+
* @version 1.132.1
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.38
|
|
@@ -58,12 +58,10 @@ sap.ui.define([
|
|
|
58
58
|
* Overridden to suppress the binding strings to be used as binding.
|
|
59
59
|
* @override
|
|
60
60
|
*/
|
|
61
|
-
BindProperty.prototype.
|
|
62
|
-
const [
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
return FlexCommand.prototype.bindProperty.apply(this, aArgs);
|
|
61
|
+
BindProperty.prototype.applySettings = function(...aArgs) {
|
|
62
|
+
const [mSettings] = aArgs;
|
|
63
|
+
FlexCommand.prototype.applySettings.apply(this, aArgs);
|
|
64
|
+
this.setNewBinding(mSettings.newBinding);
|
|
67
65
|
};
|
|
68
66
|
|
|
69
67
|
BindProperty.prototype._getChangeSpecificData = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
@@ -16,7 +16,7 @@ sap.ui.define([
|
|
|
16
16
|
* @class
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.
|
|
19
|
+
* @version 1.132.1
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.46
|