@openui5/sap.ui.rta 1.130.0 → 1.131.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/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/rta/.library +1 -1
- package/src/sap/ui/rta/Client.js +1 -1
- package/src/sap/ui/rta/RuntimeAuthoring.js +8 -21
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddIFrame.js +2 -2
- package/src/sap/ui/rta/command/AddProperty.js +38 -26
- 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/Annotation.js +2 -3
- 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 +5 -3
- package/src/sap/ui/rta/command/Combine.js +12 -7
- 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 +2 -2
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +6 -4
- 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 +13 -8
- package/src/sap/ui/rta/command/Property.js +7 -4
- package/src/sap/ui/rta/command/Remove.js +3 -2
- package/src/sap/ui/rta/command/Rename.js +11 -7
- package/src/sap/ui/rta/command/Resize.js +2 -3
- package/src/sap/ui/rta/command/Reveal.js +6 -4
- package/src/sap/ui/rta/command/Settings.js +2 -3
- package/src/sap/ui/rta/command/Split.js +12 -7
- package/src/sap/ui/rta/command/Stack.js +53 -44
- 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 +135 -27
- package/src/sap/ui/rta/library.js +2 -2
- 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 +5 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +5 -1
- package/src/sap/ui/rta/plugin/LocalReset.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +10 -2
- 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 -6
- 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 +13 -28
- 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/ActionsMenu.fragment.xml +1 -2
- 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 +14 -14
- 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 +10 -9
- 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/src/sap/ui/rta/util/whatsNew/WhatsNew.js +1 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverview.js +3 -1
- package/src/sap/ui/rta/util/whatsNew/WhatsNewOverviewDialog.fragment.xml +6 -6
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.dt.plugin.CutPaste
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.131.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
@@ -46,6 +46,10 @@ sap.ui.define([
|
|
|
46
46
|
commandFactory: {
|
|
47
47
|
type: "object",
|
|
48
48
|
multiple: false
|
|
49
|
+
},
|
|
50
|
+
commandStack: {
|
|
51
|
+
type: "object",
|
|
52
|
+
multiple: false
|
|
49
53
|
}
|
|
50
54
|
},
|
|
51
55
|
events: {
|
|
@@ -33,7 +33,7 @@ function(
|
|
|
33
33
|
* @extends sap.ui.dt.plugin.ControlDragDrop
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.131.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -47,6 +47,10 @@ function(
|
|
|
47
47
|
commandFactory: {
|
|
48
48
|
type: "object",
|
|
49
49
|
multiple: false
|
|
50
|
+
},
|
|
51
|
+
commandStack: {
|
|
52
|
+
type: "object",
|
|
53
|
+
multiple: false
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
events: {
|
|
@@ -103,7 +103,7 @@ sap.ui.define([
|
|
|
103
103
|
* @extends sap.ui.dt.Plugin
|
|
104
104
|
*
|
|
105
105
|
* @author SAP SE
|
|
106
|
-
* @version 1.
|
|
106
|
+
* @version 1.131.0
|
|
107
107
|
*
|
|
108
108
|
* @constructor
|
|
109
109
|
* @private
|
|
@@ -119,6 +119,10 @@ sap.ui.define([
|
|
|
119
119
|
commandFactory: {
|
|
120
120
|
type: "object",
|
|
121
121
|
multiple: false
|
|
122
|
+
},
|
|
123
|
+
commandStack: {
|
|
124
|
+
type: "object",
|
|
125
|
+
multiple: false
|
|
122
126
|
}
|
|
123
127
|
},
|
|
124
128
|
events: {
|
|
@@ -169,7 +173,11 @@ sap.ui.define([
|
|
|
169
173
|
mDebounceFunctions[sOverlayId][sName]();
|
|
170
174
|
}
|
|
171
175
|
|
|
172
|
-
var _onElementModified = function(oEvent) {
|
|
176
|
+
var _onElementModified = async function(oEvent) {
|
|
177
|
+
// Wait for all commands to be executed before evaluating the results of the element modified event
|
|
178
|
+
if (this.getCommandStack()) {
|
|
179
|
+
await this.getCommandStack().getLastCommandExecuted();
|
|
180
|
+
}
|
|
173
181
|
// Initialize here because plugins may not extend the rta.Plugin and
|
|
174
182
|
// instead inherit the method via rta.Utils.extendWith
|
|
175
183
|
// Therefore the constructor/init might not be properly called
|
|
@@ -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.131.0
|
|
35
35
|
* @constructor
|
|
36
36
|
* @private
|
|
37
37
|
* @since 1.34
|
|
@@ -28,7 +28,7 @@ sap.ui.define([
|
|
|
28
28
|
* @class The Settings allows trigger change of settings operations on the overlay
|
|
29
29
|
* @extends sap.ui.rta.plugin.Plugin
|
|
30
30
|
* @author SAP SE
|
|
31
|
-
* @version 1.
|
|
31
|
+
* @version 1.131.0
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
34
34
|
* @since 1.44
|
|
@@ -37,11 +37,6 @@ sap.ui.define([
|
|
|
37
37
|
var Settings = Plugin.extend("sap.ui.rta.plugin.Settings", /** @lends sap.ui.rta.plugin.Settings.prototype */ {
|
|
38
38
|
metadata: {
|
|
39
39
|
library: "sap.ui.rta",
|
|
40
|
-
properties: {
|
|
41
|
-
commandStack: {
|
|
42
|
-
type: "any"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
40
|
associations: {},
|
|
46
41
|
events: {}
|
|
47
42
|
}
|
|
@@ -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.
|
|
122
|
+
* @version 1.131.0
|
|
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.
|
|
122
|
+
* @version 1.131.0
|
|
123
123
|
* @constructor
|
|
124
124
|
* @private
|
|
125
125
|
* @since 1.75
|
|
@@ -6,22 +6,20 @@
|
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/core/Element",
|
|
9
|
-
"sap/ui/dt/Util",
|
|
10
9
|
"sap/ui/dt/OverlayRegistry",
|
|
11
|
-
"sap/ui/
|
|
10
|
+
"sap/ui/dt/Util",
|
|
12
11
|
"sap/ui/fl/apply/api/FlexRuntimeInfoAPI",
|
|
13
12
|
"sap/ui/fl/write/api/ChangesWriteAPI",
|
|
14
13
|
"sap/ui/fl/write/api/PersistenceWriteAPI",
|
|
15
|
-
"sap/ui/
|
|
14
|
+
"sap/ui/fl/Utils"
|
|
16
15
|
], function(
|
|
17
16
|
Element,
|
|
18
|
-
DtUtil,
|
|
19
17
|
OverlayRegistry,
|
|
20
|
-
|
|
18
|
+
DtUtil,
|
|
21
19
|
FlexRuntimeInfoAPI,
|
|
22
20
|
ChangesWriteAPI,
|
|
23
21
|
PersistenceWriteAPI,
|
|
24
|
-
|
|
22
|
+
FlexUtils
|
|
25
23
|
) {
|
|
26
24
|
"use strict";
|
|
27
25
|
|
|
@@ -32,31 +30,18 @@ sap.ui.define([
|
|
|
32
30
|
* @name sap.ui.rta.service.ControllerExtension
|
|
33
31
|
* @author SAP SE
|
|
34
32
|
* @since 1.58
|
|
35
|
-
* @version 1.
|
|
33
|
+
* @version 1.131.0
|
|
36
34
|
* @private
|
|
37
35
|
* @ui5-restricted
|
|
38
36
|
*/
|
|
39
37
|
|
|
40
38
|
return function(oRta) {
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
success(data) {
|
|
48
|
-
resolve(data);
|
|
49
|
-
},
|
|
50
|
-
error(xhr, textStatus, error) {
|
|
51
|
-
var oError = new Error(`resource ${sPath} could not be loaded from ${sUrl}. Check for 'file not found' or parse errors. Reason: ${error}`);
|
|
52
|
-
oError.status = textStatus;
|
|
53
|
-
oError.error = error;
|
|
54
|
-
oError.statusCode = xhr.status;
|
|
55
|
-
reject(error);
|
|
56
|
-
},
|
|
57
|
-
dataType: "text"
|
|
58
|
-
});
|
|
59
|
-
});
|
|
39
|
+
async function fetchTemplate(sPath) {
|
|
40
|
+
const oResponse = await fetch(`${sap.ui.require.toUrl(sPath)}.js`);
|
|
41
|
+
if (!oResponse.ok) {
|
|
42
|
+
throw new Error(`resource ${sPath} could not be loaded from ${sPath}. Check for 'file not found' or parse errors. Reason: ${oResponse.statusText}`);
|
|
43
|
+
}
|
|
44
|
+
return oResponse.text();
|
|
60
45
|
}
|
|
61
46
|
|
|
62
47
|
return {
|
|
@@ -128,9 +113,9 @@ sap.ui.define([
|
|
|
128
113
|
}
|
|
129
114
|
|
|
130
115
|
var sControllerExtensionTemplatePath = oViewOverlay.getDesignTimeMetadata().getControllerExtensionTemplate();
|
|
131
|
-
return
|
|
116
|
+
return fetchTemplate(`${sControllerExtensionTemplatePath}-dbg`)
|
|
132
117
|
.catch(function() {
|
|
133
|
-
return
|
|
118
|
+
return fetchTemplate(sControllerExtensionTemplatePath);
|
|
134
119
|
});
|
|
135
120
|
}
|
|
136
121
|
}
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
enabled="{controls>/newFeaturesOverview/enabled}"
|
|
79
79
|
visible="{controls>/newFeaturesOverview/visible}"
|
|
80
80
|
text="{i18n>BTN_WHATS_NEW_DIALOG_OVERVIEW}"
|
|
81
|
-
press=".openWhatsNewOverviewDialog"
|
|
82
|
-
ariaHasPopup="Dialog"/>
|
|
81
|
+
press=".openWhatsNewOverviewDialog"/>
|
|
83
82
|
</Menu>
|
|
84
83
|
</core:FragmentDefinition>
|
|
@@ -22,7 +22,7 @@ function(
|
|
|
22
22
|
* This class is being assigned to the original Fiori Header Toolbar when RTA Toolbar shows
|
|
23
23
|
* @type {string}
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
const FIORI_HIDDEN_CLASS = "sapUiRtaFioriHeaderInvisible";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Constructor for a new sap.ui.rta.toolbar.Fiori control
|
|
@@ -32,14 +32,14 @@ function(
|
|
|
32
32
|
* @extends sap.ui.rta.toolbar.Adaptation
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.131.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
39
|
* @since 1.48
|
|
40
40
|
* @alias sap.ui.rta.toolbar.Fiori
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
const Fiori = Adaptation.extend("sap.ui.rta.toolbar.Fiori", {
|
|
43
43
|
metadata: {
|
|
44
44
|
library: "sap.ui.rta"
|
|
45
45
|
},
|
|
@@ -60,14 +60,14 @@ function(
|
|
|
60
60
|
|
|
61
61
|
Fiori.prototype.buildControls = function(...aArgs) {
|
|
62
62
|
return Adaptation.prototype.buildControls.apply(this, aArgs).then(function(aControls) {
|
|
63
|
-
|
|
63
|
+
const sLogoPath = this._oFioriHeader.getLogo();
|
|
64
64
|
|
|
65
65
|
if (this._oFioriHeader.getShowLogo() && sLogoPath) {
|
|
66
66
|
// Unstable: if FLP changes ID of <img> element, logo could be not found
|
|
67
67
|
// $() is still needed because this._oFioriHeader does not offer a getDomRef method
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
const oLogo = this._oFioriHeader.$().find("#shell-header-icon").get(0);
|
|
69
|
+
let iWidth;
|
|
70
|
+
let iHeight;
|
|
71
71
|
|
|
72
72
|
if (oLogo) {
|
|
73
73
|
iWidth = oLogo.getBoundingClientRect().width;
|
|
@@ -102,10 +102,10 @@ function(
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
Fiori.prototype._checkLogoSize = function(oLogo, iWidth, iHeight) {
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
const iNaturalWidth = oLogo.naturalWidth;
|
|
106
|
+
const iNaturalHeight = oLogo.naturalHeight;
|
|
107
107
|
|
|
108
|
-
if (iWidth !== iNaturalWidth || iHeight !== iNaturalHeight) {
|
|
108
|
+
if (Math.round(iWidth) !== iNaturalWidth || Math.round(iHeight) !== iNaturalHeight) {
|
|
109
109
|
Log.error([
|
|
110
110
|
"sap.ui.rta: please check Fiori Launchpad logo, expected size is",
|
|
111
111
|
`${iWidth}x${iHeight},`,
|
|
@@ -124,7 +124,7 @@ function(
|
|
|
124
124
|
|
|
125
125
|
Fiori.prototype._hideElementsOnIntersection = function(...aArgs) {
|
|
126
126
|
const [sSectionName, aEntries] = aArgs;
|
|
127
|
-
|
|
127
|
+
let bWiderThanLogo;
|
|
128
128
|
|
|
129
129
|
if (aEntries[0].intersectionRatio === 0) {
|
|
130
130
|
this.adjustToolbarSectionWidths();
|
|
@@ -136,7 +136,7 @@ function(
|
|
|
136
136
|
!this._iLogoVisibilityLimit
|
|
137
137
|
&& sSectionName === Adaptation.LEFT_SECTION
|
|
138
138
|
) {
|
|
139
|
-
|
|
139
|
+
const iHiddenWidth = aEntries[0].boundingClientRect.width - aEntries[0].intersectionRect.width;
|
|
140
140
|
bWiderThanLogo = iHiddenWidth > this._iLogoWidth;
|
|
141
141
|
this._iLogoVisibilityLimit = this._calculateWindowWidth(aEntries);
|
|
142
142
|
this._setLogoVisibility(false);
|
|
@@ -150,8 +150,8 @@ function(
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
Fiori.prototype._setLogoVisibility = function(bVisible) {
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
const oIconBox = this.getControl("iconBox");
|
|
154
|
+
const oIconSpacer = this.getControl("iconSpacer");
|
|
155
155
|
oIconBox.setVisible(bVisible);
|
|
156
156
|
oIconSpacer.setVisible(bVisible);
|
|
157
157
|
};
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
* Constructor for a new sap.ui.rta.util.PluginManager
|
|
63
63
|
* @extends sap.ui.base.ManagedObject
|
|
64
64
|
* @author SAP SE
|
|
65
|
-
* @version 1.
|
|
65
|
+
* @version 1.131.0
|
|
66
66
|
* @constructor
|
|
67
67
|
* @private
|
|
68
68
|
* @since 1.86
|
|
@@ -230,13 +230,13 @@ sap.ui.define([
|
|
|
230
230
|
this._destroyDefaultPlugins(this.getPlugins());
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
Object.keys(this.getPlugins()).forEach(
|
|
233
|
+
Object.keys(this.getPlugins()).forEach((sPluginName) => {
|
|
234
234
|
if (this.getPlugin(sPluginName).attachElementModified) {
|
|
235
235
|
this.getPlugin(sPluginName).attachElementModified(fnHandleElementModified);
|
|
236
236
|
}
|
|
237
|
-
}
|
|
237
|
+
});
|
|
238
238
|
|
|
239
|
-
this.provideCommandStack(
|
|
239
|
+
this.provideCommandStack(oCommandStack);
|
|
240
240
|
};
|
|
241
241
|
|
|
242
242
|
/**
|
|
@@ -258,13 +258,14 @@ sap.ui.define([
|
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
260
|
* Provides command stack to plugins.
|
|
261
|
-
* @param {string} sPluginName - Plugin name
|
|
262
261
|
* @param {sap.ui.rta.command.Stack} oCommandStack - Command stack required in plugins
|
|
263
262
|
*/
|
|
264
|
-
PluginManager.prototype.provideCommandStack = function(
|
|
265
|
-
|
|
266
|
-
this.getPlugin(sPluginName).
|
|
267
|
-
|
|
263
|
+
PluginManager.prototype.provideCommandStack = function(oCommandStack) {
|
|
264
|
+
Object.keys(this.getPlugins()).forEach((sPluginName) => {
|
|
265
|
+
if (this.getPlugin(sPluginName) && this.getPlugin(sPluginName).setCommandStack) {
|
|
266
|
+
this.getPlugin(sPluginName).setCommandStack(oCommandStack);
|
|
267
|
+
}
|
|
268
|
+
});
|
|
268
269
|
};
|
|
269
270
|
|
|
270
271
|
/**
|
|
@@ -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.
|
|
49
|
+
* @version 1.131.0
|
|
50
50
|
* @private
|
|
51
51
|
*/
|
|
52
52
|
const ChangeIndicator = Control.extend("sap.ui.rta.util.changeVisualization.ChangeIndicator", {
|