@openui5/sap.ui.rta 1.143.1 → 1.145.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +7 -1
- package/REUSE.toml +40 -16
- package/THIRDPARTY.txt +22 -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 -13
- package/src/sap/ui/rta/Utils.js +27 -3
- 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 +3 -3
- 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 +7 -5
- package/src/sap/ui/rta/appVariant/S4HanaCloudBackend.js +7 -4
- package/src/sap/ui/rta/appVariant/Utils.js +3 -3
- 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/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 +2 -2
- package/src/sap/ui/rta/command/BaseCommand.js +2 -2
- package/src/sap/ui/rta/command/BindProperty.js +2 -2
- package/src/sap/ui/rta/command/Combine.js +2 -2
- package/src/sap/ui/rta/command/CommandFactory.js +2 -2
- package/src/sap/ui/rta/command/CompositeCommand.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +3 -2
- package/src/sap/ui/rta/command/ControlVariantSave.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSaveAs.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +2 -2
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +2 -2
- 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/ExtendControllerCommand.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/ManifestCommand.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 +23 -18
- 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 +2 -2
- package/src/sap/ui/rta/command/manifest/AddLibrary.js +2 -2
- package/src/sap/ui/rta/enablement/TestDelegate.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +92 -96
- package/src/sap/ui/rta/library.js +3 -3
- package/src/sap/ui/rta/messagebundle.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ar.properties +1 -1
- package/src/sap/ui/rta/messagebundle_bg.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ca.properties +1 -1
- package/src/sap/ui/rta/messagebundle_cnr.properties +1 -1
- package/src/sap/ui/rta/messagebundle_cs.properties +1 -1
- package/src/sap/ui/rta/messagebundle_cy.properties +1 -1
- package/src/sap/ui/rta/messagebundle_da.properties +1 -1
- package/src/sap/ui/rta/messagebundle_de.properties +1 -1
- package/src/sap/ui/rta/messagebundle_el.properties +1 -1
- package/src/sap/ui/rta/messagebundle_en.properties +1 -1
- package/src/sap/ui/rta/messagebundle_en_GB.properties +1 -1
- package/src/sap/ui/rta/messagebundle_en_US_saprigi.properties +3 -3
- package/src/sap/ui/rta/messagebundle_es.properties +1 -1
- package/src/sap/ui/rta/messagebundle_es_MX.properties +1 -1
- package/src/sap/ui/rta/messagebundle_et.properties +1 -1
- package/src/sap/ui/rta/messagebundle_fi.properties +1 -1
- package/src/sap/ui/rta/messagebundle_fr.properties +1 -1
- package/src/sap/ui/rta/messagebundle_fr_CA.properties +2 -2
- package/src/sap/ui/rta/messagebundle_hi.properties +1 -1
- package/src/sap/ui/rta/messagebundle_hr.properties +1 -1
- package/src/sap/ui/rta/messagebundle_hu.properties +1 -1
- package/src/sap/ui/rta/messagebundle_id.properties +1 -1
- package/src/sap/ui/rta/messagebundle_it.properties +1 -1
- package/src/sap/ui/rta/messagebundle_iw.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ja.properties +1 -1
- package/src/sap/ui/rta/messagebundle_kk.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ko.properties +1 -1
- package/src/sap/ui/rta/messagebundle_lt.properties +1 -1
- package/src/sap/ui/rta/messagebundle_lv.properties +1 -1
- package/src/sap/ui/rta/messagebundle_mk.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ms.properties +1 -1
- package/src/sap/ui/rta/messagebundle_nl.properties +1 -1
- package/src/sap/ui/rta/messagebundle_no.properties +1 -1
- package/src/sap/ui/rta/messagebundle_pl.properties +1 -1
- package/src/sap/ui/rta/messagebundle_pt.properties +1 -1
- package/src/sap/ui/rta/messagebundle_pt_PT.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ro.properties +1 -1
- package/src/sap/ui/rta/messagebundle_ru.properties +1 -1
- package/src/sap/ui/rta/messagebundle_sh.properties +1 -1
- package/src/sap/ui/rta/messagebundle_sk.properties +1 -1
- package/src/sap/ui/rta/messagebundle_sl.properties +1 -1
- package/src/sap/ui/rta/messagebundle_sr.properties +1 -1
- package/src/sap/ui/rta/messagebundle_sv.properties +1 -1
- package/src/sap/ui/rta/messagebundle_th.properties +1 -1
- package/src/sap/ui/rta/messagebundle_tr.properties +1 -1
- package/src/sap/ui/rta/messagebundle_uk.properties +1 -1
- package/src/sap/ui/rta/messagebundle_vi.properties +1 -1
- package/src/sap/ui/rta/messagebundle_zh_CN.properties +1 -1
- package/src/sap/ui/rta/messagebundle_zh_TW.properties +1 -1
- package/src/sap/ui/rta/plugin/AddXMLAtExtensionPoint.js +5 -5
- package/src/sap/ui/rta/plugin/AddXMLPlugin.js +8 -6
- 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 +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +2 -3
- 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/ExtendControllerPlugin.js +13 -4
- package/src/sap/ui/rta/plugin/LocalReset.js +2 -2
- package/src/sap/ui/rta/plugin/Plugin.js +3 -3
- package/src/sap/ui/rta/plugin/RTAElementMover.js +2 -2
- package/src/sap/ui/rta/plugin/Remove.js +14 -12
- package/src/sap/ui/rta/plugin/Resize.js +2 -2
- package/src/sap/ui/rta/plugin/Selection.js +2 -2
- package/src/sap/ui/rta/plugin/Settings.js +2 -2
- package/src/sap/ui/rta/plugin/Split.js +2 -2
- package/src/sap/ui/rta/plugin/Stretch.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.fragment.xml +4 -20
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +281 -31
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsAnalyzer.js +41 -12
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +5 -4
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsUtils.js +2 -2
- package/src/sap/ui/rta/plugin/additionalElements/CommandBuilder.js +2 -2
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.fragment.xml +1 -1
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialog.js +30 -5
- package/src/sap/ui/rta/plugin/annotations/AnnotationChangeDialogController.js +10 -4
- package/src/sap/ui/rta/plugin/annotations/AnnotationPlugin.js +9 -7
- package/src/sap/ui/rta/plugin/annotations/AnnotationTypes.js +1 -1
- package/src/sap/ui/rta/plugin/annotations/DocumentedAnnotationChanges.js +14 -0
- package/src/sap/ui/rta/plugin/iframe/AddIFrame.js +15 -13
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.fragment.xml +14 -10
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +18 -2
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +43 -19
- package/src/sap/ui/rta/plugin/iframe/urlCleaner.js +1 -1
- package/src/sap/ui/rta/plugin/rename/Rename.js +2 -2
- package/src/sap/ui/rta/plugin/rename/RenameDialog.js +2 -2
- 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 +15 -7
- 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/AddIFrame.less +40 -70
- package/src/sap/ui/rta/themes/base/ChangeVisualization.less +23 -20
- package/src/sap/ui/rta/themes/base/ContextMenu.less +10 -13
- package/src/sap/ui/rta/themes/base/Dialogs.less +26 -40
- package/src/sap/ui/rta/themes/base/FieldRepository.less +10 -17
- package/src/sap/ui/rta/themes/base/FlexSupportExtension.less +15 -13
- package/src/sap/ui/rta/themes/base/MessageBox.less +5 -3
- package/src/sap/ui/rta/themes/base/Overlay.less +32 -25
- package/src/sap/ui/rta/themes/base/OverlayWithScrollbar.less +25 -11
- package/src/sap/ui/rta/themes/base/Toolbar.adaptation.less +53 -40
- package/src/sap/ui/rta/themes/base/Toolbar.base.less +14 -18
- package/src/sap/ui/rta/themes/base/Toolbar.fiori.less +6 -1
- package/src/sap/ui/rta/themes/base/Toolbar.standalone.less +7 -5
- package/src/sap/ui/rta/themes/base/WhatsNew.less +6 -5
- 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.fragment.xml +2 -2
- package/src/sap/ui/rta/toolbar/Adaptation.js +8 -5
- 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 +2 -2
- 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 +14 -12
- package/src/sap/ui/rta/toolbar/contextBased/SaveAsAdaptation.js +2 -2
- package/src/sap/ui/rta/toolbar/translation/Translation.js +2 -2
- 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 +2 -2
- package/src/sap/ui/rta/util/PopupManager.js +2 -2
- package/src/sap/ui/rta/util/ReloadManager.js +2 -2
- 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 +1 -1
- 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 +2 -2
- package/src/sap/ui/rta/util/changeVisualization/ChangeVisualizationUtils.js +1 -1
- package/src/sap/ui/rta/util/changeVisualization/commands/CombineVisualization.js +2 -2
- 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/changeVisualization/resolveBinding.js +2 -2
- package/src/sap/ui/rta/util/guidedTour/GuidedTour.js +2 -2
- package/src/sap/ui/rta/util/guidedTour/content/GeneralTour.js +1 -1
- package/src/sap/ui/rta/util/hasStableId.js +1 -1
- package/src/sap/ui/rta/util/isReuseComponent.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 +31 -6
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewUtils.js +3 -11
- package/src/sap/ui/rta/util/whatsNew/whatsNewContent/WhatsNewFeatures.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -35,7 +35,7 @@ function(
|
|
|
35
35
|
* The RTAElementMover is responsible for the RTA specific adaptation of element movements.
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.145.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/
|
|
9
|
-
"sap/ui/rta/Utils",
|
|
10
|
-
"sap/ui/rta/command/CompositeCommand",
|
|
8
|
+
"sap/base/Log",
|
|
11
9
|
"sap/ui/dt/OverlayRegistry",
|
|
12
10
|
"sap/ui/events/KeyCodes",
|
|
13
|
-
"sap/
|
|
11
|
+
"sap/ui/fl/util/CancelError",
|
|
12
|
+
"sap/ui/rta/command/CompositeCommand",
|
|
13
|
+
"sap/ui/rta/plugin/Plugin",
|
|
14
|
+
"sap/ui/rta/Utils"
|
|
14
15
|
], function(
|
|
15
|
-
|
|
16
|
-
Utils,
|
|
17
|
-
CompositeCommand,
|
|
16
|
+
Log,
|
|
18
17
|
OverlayRegistry,
|
|
19
18
|
KeyCodes,
|
|
20
|
-
|
|
19
|
+
CancelError,
|
|
20
|
+
CompositeCommand,
|
|
21
|
+
Plugin,
|
|
22
|
+
Utils
|
|
21
23
|
) {
|
|
22
24
|
"use strict";
|
|
23
25
|
|
|
@@ -29,7 +31,7 @@ sap.ui.define([
|
|
|
29
31
|
* @class The Remove allows trigger remove operations on the overlay
|
|
30
32
|
* @extends sap.ui.rta.plugin.Plugin
|
|
31
33
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
34
|
+
* @version 1.145.0
|
|
33
35
|
* @constructor
|
|
34
36
|
* @private
|
|
35
37
|
* @since 1.34
|
|
@@ -241,7 +243,7 @@ sap.ui.define([
|
|
|
241
243
|
})
|
|
242
244
|
.then(function(bConfirmed) {
|
|
243
245
|
if (!bConfirmed) {
|
|
244
|
-
throw
|
|
246
|
+
throw new CancelError();
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
return this._getRemoveCommand(oRemovedElement, oDesignTimeMetadata, sVariantManagementReference);
|
|
@@ -250,7 +252,7 @@ sap.ui.define([
|
|
|
250
252
|
oCompositeCommand.addCommand(oCommand);
|
|
251
253
|
})
|
|
252
254
|
.catch(function(oError) {
|
|
253
|
-
if (oError && oError
|
|
255
|
+
if (oError && oError instanceof CancelError) {
|
|
254
256
|
if (aElementOverlays.length === 1) {
|
|
255
257
|
oNextOverlaySelection = oOverlay;
|
|
256
258
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class
|
|
28
28
|
* @extends sap.ui.rta.plugin.Plugin
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.145.0
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.101
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.
|
|
34
|
+
* @version 1.145.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class The Settings allows trigger change of settings operations on the overlay
|
|
31
31
|
* @extends sap.ui.rta.plugin.Plugin
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.145.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.44
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class
|
|
24
24
|
* @extends sap.ui.rta.plugin.Plugin
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.145.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.46
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.rta.plugin.Plugin
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.145.0
|
|
33
33
|
*
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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.145.0
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.94
|
|
38
38
|
*/
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<Dialog
|
|
7
7
|
class="sapUIRtaFieldRepositoryDialog sapUiNoContentPadding"
|
|
8
|
+
title="{/dialogTitle}"
|
|
8
9
|
horizontalScrolling="false">
|
|
9
10
|
<buttons>
|
|
10
11
|
<Button
|
|
@@ -63,26 +64,9 @@
|
|
|
63
64
|
id="rta_addElementsDialogList"
|
|
64
65
|
mode="MultiSelect"
|
|
65
66
|
includeItemInSelection="true"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
items="{ path: '/elements', sorter: { path: 'label', descending: false}, templateShareable: false }"
|
|
69
|
-
noDataText="{i18n>MSG_NO_FIELDS}">
|
|
70
|
-
<CustomListItem
|
|
71
|
-
class="sapUIRtaListItem"
|
|
72
|
-
type="Active"
|
|
73
|
-
selected="{selected}"
|
|
74
|
-
tooltip="{tooltip}">
|
|
75
|
-
<VBox>
|
|
76
|
-
<Label
|
|
77
|
-
design="Standard"
|
|
78
|
-
text="{= ${parentPropertyName} && ${duplicateName} ? ${label} + ' (' + ${parentPropertyName} + ')' : ${label} }"/>
|
|
79
|
-
<Label
|
|
80
|
-
text="{= ${originalLabel} ? ${i18n>LBL_FREP}.replace('{0}', ${originalLabel}) : ''}"
|
|
81
|
-
visible="{= !!${originalLabel} }"/>
|
|
82
|
-
</VBox>
|
|
83
|
-
</CustomListItem>
|
|
84
|
-
</List>
|
|
67
|
+
items="{ path: '/elementsFlat', factory: '._createListItem' }"
|
|
68
|
+
noDataText="{i18n>MSG_NO_FIELDS}"/>
|
|
85
69
|
</ScrollContainer>
|
|
86
70
|
</content>
|
|
87
71
|
</Dialog>
|
|
88
|
-
</core:FragmentDefinition>
|
|
72
|
+
</core:FragmentDefinition>
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright
|
|
3
|
+
* (c) Copyright 2026 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([
|
|
7
|
+
"sap/m/CustomListItem",
|
|
8
|
+
"sap/m/FormattedText",
|
|
9
|
+
"sap/m/GroupHeaderListItem",
|
|
10
|
+
"sap/m/VBox",
|
|
7
11
|
"sap/ui/base/ManagedObject",
|
|
8
12
|
"sap/ui/core/Element",
|
|
9
13
|
"sap/ui/core/Fragment",
|
|
14
|
+
"sap/ui/fl/util/CancelError",
|
|
10
15
|
"sap/ui/model/json/JSONModel",
|
|
11
|
-
"sap/ui/model/Filter",
|
|
12
|
-
"sap/ui/model/FilterOperator",
|
|
13
16
|
"sap/ui/model/resource/ResourceModel",
|
|
14
|
-
"sap/ui/model/Sorter",
|
|
15
17
|
"sap/ui/rta/Utils"
|
|
16
18
|
], function(
|
|
19
|
+
CustomListItem,
|
|
20
|
+
FormattedText,
|
|
21
|
+
GroupHeaderListItem,
|
|
22
|
+
VBox,
|
|
17
23
|
ManagedObject,
|
|
18
24
|
Element,
|
|
19
25
|
Fragment,
|
|
26
|
+
CancelError,
|
|
20
27
|
JSONModel,
|
|
21
|
-
Filter,
|
|
22
|
-
FilterOperator,
|
|
23
28
|
ResourceModel,
|
|
24
|
-
Sorter,
|
|
25
29
|
Utils
|
|
26
30
|
) {
|
|
27
31
|
"use strict";
|
|
@@ -32,7 +36,7 @@ sap.ui.define([
|
|
|
32
36
|
* @class Context - Dialog for available Fields in Runtime Authoring
|
|
33
37
|
* @extends sap.ui.base.ManagedObject
|
|
34
38
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
39
|
+
* @version 1.145.0
|
|
36
40
|
* @constructor
|
|
37
41
|
* @private
|
|
38
42
|
* @since 1.44
|
|
@@ -57,6 +61,154 @@ sap.ui.define([
|
|
|
57
61
|
}
|
|
58
62
|
});
|
|
59
63
|
|
|
64
|
+
/**
|
|
65
|
+
* Highlights matching text by wrapping it in <strong> tags.
|
|
66
|
+
* Escapes HTML in the text to prevent XSS.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} sText - The text to process
|
|
69
|
+
* @param {string} sSearchValue - The search value to highlight
|
|
70
|
+
* @returns {string} The text with matching parts wrapped in <strong> tags
|
|
71
|
+
* @private
|
|
72
|
+
*/
|
|
73
|
+
function highlightText(sText, sSearchValue) {
|
|
74
|
+
if (!sText) {
|
|
75
|
+
return "";
|
|
76
|
+
}
|
|
77
|
+
if (!sSearchValue) {
|
|
78
|
+
return encodeXML(sText);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const sLowerText = sText.toLowerCase();
|
|
82
|
+
const sLowerSearch = sSearchValue.toLowerCase();
|
|
83
|
+
const iIndex = sLowerText.indexOf(sLowerSearch);
|
|
84
|
+
|
|
85
|
+
if (iIndex === -1) {
|
|
86
|
+
return encodeXML(sText);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Split the text into parts: before match, match, after match
|
|
90
|
+
const sBefore = sText.substring(0, iIndex);
|
|
91
|
+
const sMatch = sText.substring(iIndex, iIndex + sSearchValue.length);
|
|
92
|
+
const sAfter = sText.substring(iIndex + sSearchValue.length);
|
|
93
|
+
|
|
94
|
+
// Recursively highlight the rest of the text (for multiple occurrences)
|
|
95
|
+
return `${encodeXML(sBefore)}<strong>${encodeXML(sMatch)}</strong>${highlightText(sAfter, sSearchValue)}`;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Encodes special XML/HTML characters to prevent XSS.
|
|
100
|
+
*
|
|
101
|
+
* @param {string} sText - The text to encode
|
|
102
|
+
* @returns {string} The encoded text
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
function encodeXML(sText) {
|
|
106
|
+
if (!sText) {
|
|
107
|
+
return "";
|
|
108
|
+
}
|
|
109
|
+
return sText
|
|
110
|
+
.replace(/&/g, "&")
|
|
111
|
+
.replace(/</g, "<")
|
|
112
|
+
.replace(/>/g, ">")
|
|
113
|
+
.replace(/"/g, """)
|
|
114
|
+
.replace(/'/g, "'");
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Transforms flat elements array into a flat list with group headers.
|
|
119
|
+
* Elements without entityTypeDisplayName are placed at the root level (top).
|
|
120
|
+
* Elements with entityTypeDisplayName are grouped under their entity name with a group header.
|
|
121
|
+
*
|
|
122
|
+
* @param {object[]} aElements - Flat array of elements
|
|
123
|
+
* @param {string} [sFilterValue] - Optional filter value to filter elements
|
|
124
|
+
* @private
|
|
125
|
+
*/
|
|
126
|
+
function buildElementsList(aElements, sFilterValue) {
|
|
127
|
+
const aRootElements = [];
|
|
128
|
+
const mGroups = {};
|
|
129
|
+
|
|
130
|
+
// Filter elements if filter value is provided
|
|
131
|
+
const aFilteredElements = sFilterValue
|
|
132
|
+
? aElements.filter((oElement) => this._elementMatchesFilter(oElement, sFilterValue))
|
|
133
|
+
: aElements;
|
|
134
|
+
|
|
135
|
+
// Separate elements into root elements and grouped elements
|
|
136
|
+
aFilteredElements.forEach(function(oElement) {
|
|
137
|
+
if (oElement.entityTypeDisplayName) {
|
|
138
|
+
// Element belongs to an entity group
|
|
139
|
+
mGroups[oElement.entityTypeDisplayName] ||= [];
|
|
140
|
+
mGroups[oElement.entityTypeDisplayName].push(oElement);
|
|
141
|
+
} else {
|
|
142
|
+
// Element has no entity - place at root level
|
|
143
|
+
aRootElements.push(oElement);
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
// Sort root elements
|
|
148
|
+
const bDescending = this._bDescendingSortOrder;
|
|
149
|
+
aRootElements.sort(function(a, b) {
|
|
150
|
+
const sLabelA = (a.label || "").toLowerCase();
|
|
151
|
+
const sLabelB = (b.label || "").toLowerCase();
|
|
152
|
+
if (sLabelA < sLabelB) {
|
|
153
|
+
return bDescending ? 1 : -1;
|
|
154
|
+
}
|
|
155
|
+
if (sLabelA > sLabelB) {
|
|
156
|
+
return bDescending ? -1 : 1;
|
|
157
|
+
}
|
|
158
|
+
return 0;
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// Build flat list: root elements first, then group headers with their elements
|
|
162
|
+
const aFlatList = [];
|
|
163
|
+
|
|
164
|
+
// Add root elements (without entityTypeDisplayName) first
|
|
165
|
+
aRootElements.forEach(function(oElement) {
|
|
166
|
+
aFlatList.push(oElement);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
// Add groups with their elements (groups sorted alphabetically, elements sorted by label)
|
|
170
|
+
const aGroupNames = Object.keys(mGroups);
|
|
171
|
+
aGroupNames.sort(function(a, b) {
|
|
172
|
+
const sNameA = a.toLowerCase();
|
|
173
|
+
const sNameB = b.toLowerCase();
|
|
174
|
+
if (sNameA < sNameB) {
|
|
175
|
+
return bDescending ? 1 : -1;
|
|
176
|
+
}
|
|
177
|
+
if (sNameA > sNameB) {
|
|
178
|
+
return bDescending ? -1 : 1;
|
|
179
|
+
}
|
|
180
|
+
return 0;
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
aGroupNames.forEach(function(sEntityName) {
|
|
184
|
+
// Add group header
|
|
185
|
+
aFlatList.push({
|
|
186
|
+
label: sEntityName,
|
|
187
|
+
isGroupHeader: true
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// Sort and add elements within this group
|
|
191
|
+
const aGroupElements = mGroups[sEntityName];
|
|
192
|
+
aGroupElements.sort(function(a, b) {
|
|
193
|
+
const sLabelA = (a.label || "").toLowerCase();
|
|
194
|
+
const sLabelB = (b.label || "").toLowerCase();
|
|
195
|
+
if (sLabelA < sLabelB) {
|
|
196
|
+
return bDescending ? 1 : -1;
|
|
197
|
+
}
|
|
198
|
+
if (sLabelA > sLabelB) {
|
|
199
|
+
return bDescending ? -1 : 1;
|
|
200
|
+
}
|
|
201
|
+
return 0;
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
aGroupElements.forEach(function(oElement) {
|
|
205
|
+
aFlatList.push(oElement);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
this._oDialogModel.setProperty("/elementsFlat", aFlatList);
|
|
210
|
+
}
|
|
211
|
+
|
|
60
212
|
/**
|
|
61
213
|
* Initialize the Dialog
|
|
62
214
|
*
|
|
@@ -69,12 +221,15 @@ sap.ui.define([
|
|
|
69
221
|
customFieldButtonVisible: false,
|
|
70
222
|
businessContextVisible: false,
|
|
71
223
|
customFieldButtonTooltip: "",
|
|
72
|
-
|
|
224
|
+
// empty element in first place to be replaced by the headerText (see: addExtensibilityInfo)
|
|
225
|
+
businessContextTexts: [{ text: "" }],
|
|
73
226
|
extensibilityMenuButtonActive: false,
|
|
74
227
|
extensibilityMenuButtonText: "",
|
|
75
228
|
extensibilityMenuButtonTooltip: "",
|
|
76
229
|
extensibilityOptions: []
|
|
77
230
|
});
|
|
231
|
+
// Increase the default size limit (100) to allow for large numbers of elements. More than 1000 causes performance issues.
|
|
232
|
+
this._oDialogModel.setSizeLimit(1000);
|
|
78
233
|
|
|
79
234
|
this._bDescendingSortOrder = false;
|
|
80
235
|
this.oRTAResourceModel = new ResourceModel({ bundleName: "sap.ui.rta.messagebundle" });
|
|
@@ -111,6 +266,7 @@ sap.ui.define([
|
|
|
111
266
|
// retrieve List to set the sorting for the 'items' aggregation, since sap.ui.model.Sorter
|
|
112
267
|
// does not support binding to a model property...
|
|
113
268
|
this._oList = Element.getElementById(`${this.getId()}--rta_addElementsDialogList`);
|
|
269
|
+
|
|
114
270
|
this._openDialog();
|
|
115
271
|
}.bind(this));
|
|
116
272
|
};
|
|
@@ -161,11 +317,17 @@ sap.ui.define([
|
|
|
161
317
|
});
|
|
162
318
|
this._oDialog.close();
|
|
163
319
|
// indicate that the dialog has been closed without choosing to add any fields (canceled)
|
|
164
|
-
this._fnRejectOnDialogCancel();
|
|
320
|
+
this._fnRejectOnDialogCancel(new CancelError());
|
|
165
321
|
};
|
|
166
322
|
|
|
167
323
|
AddElementsDialog.prototype.setElements = function(aElements) {
|
|
324
|
+
if (aElements.length > 1000) {
|
|
325
|
+
throw new Error("AddElementsDialog: displaying more than 1000 elements is not supported.");
|
|
326
|
+
}
|
|
168
327
|
this._oDialogModel.setProperty("/elements", aElements);
|
|
328
|
+
// Reset filter when new elements are set (e.g., when dialog is reopened)
|
|
329
|
+
this._sCurrentFilterValue = "";
|
|
330
|
+
buildElementsList.call(this, aElements);
|
|
169
331
|
};
|
|
170
332
|
|
|
171
333
|
AddElementsDialog.prototype.getElements = function() {
|
|
@@ -193,40 +355,130 @@ sap.ui.define([
|
|
|
193
355
|
};
|
|
194
356
|
|
|
195
357
|
/**
|
|
196
|
-
*
|
|
358
|
+
* Factory function to create list items.
|
|
359
|
+
* Creates GroupHeaderListItem for group headers and CustomListItem for regular elements.
|
|
360
|
+
*
|
|
361
|
+
* @param {string} sId - The ID for the new item
|
|
362
|
+
* @param {sap.ui.model.Context} oContext - The binding context
|
|
363
|
+
* @returns {sap.m.ListItemBase} The created list item
|
|
364
|
+
* @private
|
|
365
|
+
*/
|
|
366
|
+
AddElementsDialog.prototype._createListItem = function(sId, oContext) {
|
|
367
|
+
const oData = oContext.getObject();
|
|
368
|
+
|
|
369
|
+
if (oData.isGroupHeader) {
|
|
370
|
+
// Create a group header item (no checkbox, acts as a divider)
|
|
371
|
+
return new GroupHeaderListItem(sId, {
|
|
372
|
+
title: "{label}"
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// Get the current filter value for highlighting
|
|
377
|
+
const sFilterValue = this._sCurrentFilterValue;
|
|
378
|
+
|
|
379
|
+
// Build the label text with optional parent property name
|
|
380
|
+
let sLabelText = oData.label || "";
|
|
381
|
+
if (oData.parentPropertyName && oData.duplicateName) {
|
|
382
|
+
sLabelText = `${sLabelText} (${oData.parentPropertyName})`;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
// Create label with highlighted text if filter is active
|
|
386
|
+
const sHighlightedLabel = highlightText(sLabelText, sFilterValue);
|
|
387
|
+
const oLabelText = new FormattedText({
|
|
388
|
+
htmlText: sHighlightedLabel
|
|
389
|
+
});
|
|
390
|
+
|
|
391
|
+
// Build the original label text with highlighting
|
|
392
|
+
let oOriginalLabel;
|
|
393
|
+
if (oData.originalLabel) {
|
|
394
|
+
const sOriginalLabelText = this.oRTAResourceModel.getProperty("LBL_FREP").replace("{0}", oData.originalLabel);
|
|
395
|
+
const sHighlightedOriginal = highlightText(sOriginalLabelText, sFilterValue);
|
|
396
|
+
oOriginalLabel = new FormattedText({
|
|
397
|
+
htmlText: sHighlightedOriginal
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
const aVBoxItems = [oLabelText];
|
|
402
|
+
if (oOriginalLabel) {
|
|
403
|
+
aVBoxItems.push(oOriginalLabel);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
const oVBox = new VBox({
|
|
407
|
+
items: aVBoxItems
|
|
408
|
+
});
|
|
409
|
+
|
|
410
|
+
return new CustomListItem(sId, {
|
|
411
|
+
content: [oVBox],
|
|
412
|
+
type: "Active",
|
|
413
|
+
selected: "{selected}",
|
|
414
|
+
tooltip: "{tooltip}"
|
|
415
|
+
}).addStyleClass("sapUIRtaListItem");
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
/**
|
|
419
|
+
* Resort the list by rebuilding it with sorted elements
|
|
197
420
|
*
|
|
198
421
|
* @private
|
|
199
422
|
*/
|
|
200
423
|
AddElementsDialog.prototype._resortList = function() {
|
|
201
424
|
this._bDescendingSortOrder = !this._bDescendingSortOrder;
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
aSorter.push(new Sorter("label", this._bDescendingSortOrder));
|
|
205
|
-
oBinding.sort(aSorter);
|
|
425
|
+
buildElementsList.call(this, this._oDialogModel.getProperty("/elements"), this._sCurrentFilterValue);
|
|
426
|
+
this._rebindList();
|
|
206
427
|
};
|
|
207
428
|
|
|
208
429
|
/**
|
|
209
|
-
* Updates the model on filter events
|
|
430
|
+
* Updates the model on filter events by rebuilding the list with filtered elements
|
|
210
431
|
*
|
|
211
432
|
* @param {sap.ui.base.Event} oEvent event object
|
|
212
433
|
* @private
|
|
213
434
|
*/
|
|
214
435
|
AddElementsDialog.prototype._updateModelFilter = function(oEvent) {
|
|
215
436
|
const sValue = oEvent.getParameter("newValue");
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
437
|
+
this._sCurrentFilterValue = sValue;
|
|
438
|
+
buildElementsList.call(this, this._oDialogModel.getProperty("/elements"), sValue);
|
|
439
|
+
this._rebindList();
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Rebinds the list items to force recreation with updated highlighting
|
|
444
|
+
*
|
|
445
|
+
* @private
|
|
446
|
+
*/
|
|
447
|
+
AddElementsDialog.prototype._rebindList = function() {
|
|
448
|
+
if (this._oList) {
|
|
449
|
+
// Unbind and rebind to force factory function to be called again
|
|
450
|
+
this._oList.bindItems({
|
|
451
|
+
path: "/elementsFlat",
|
|
452
|
+
factory: this._createListItem.bind(this)
|
|
453
|
+
});
|
|
227
454
|
}
|
|
228
455
|
};
|
|
229
456
|
|
|
457
|
+
/**
|
|
458
|
+
* Checks if an element matches the filter criteria
|
|
459
|
+
*
|
|
460
|
+
* @param {object} oElement - The element to check
|
|
461
|
+
* @param {string} sFilterValue - The filter value to match
|
|
462
|
+
* @returns {boolean} True if the element matches the filter
|
|
463
|
+
* @private
|
|
464
|
+
*/
|
|
465
|
+
AddElementsDialog.prototype._elementMatchesFilter = function(oElement, sFilterValue) {
|
|
466
|
+
const sLowerFilterValue = sFilterValue.toLowerCase();
|
|
467
|
+
// Check label
|
|
468
|
+
if (oElement.label?.toLowerCase().includes(sLowerFilterValue)) {
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
// Check originalLabel
|
|
472
|
+
if (oElement.originalLabel?.toLowerCase().includes(sLowerFilterValue)) {
|
|
473
|
+
return true;
|
|
474
|
+
}
|
|
475
|
+
// Check parentPropertyName (only for duplicates)
|
|
476
|
+
if (oElement.duplicateName && oElement.parentPropertyName?.toLowerCase().includes(sLowerFilterValue)) {
|
|
477
|
+
return true;
|
|
478
|
+
}
|
|
479
|
+
return false;
|
|
480
|
+
};
|
|
481
|
+
|
|
230
482
|
/**
|
|
231
483
|
* Fire an event to redirect to the extensibility action
|
|
232
484
|
* @param {string} sActionKey - Key for the mapping of specific actions (e.g. which URI to open for given extension data)
|
|
@@ -238,10 +490,8 @@ sap.ui.define([
|
|
|
238
490
|
};
|
|
239
491
|
|
|
240
492
|
AddElementsDialog.prototype.setTitle = function(sTitle) {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
this._oDialog.setTitle(sTitle);
|
|
244
|
-
}
|
|
493
|
+
this.setProperty("title", sTitle, true);
|
|
494
|
+
this._oDialogModel.setProperty("/dialogTitle", sTitle);
|
|
245
495
|
};
|
|
246
496
|
|
|
247
497
|
/**
|