@openui5/sap.ui.rta 1.130.1 → 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
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.22.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.131.0",
|
|
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.131.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.131.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.131.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.131.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.131.0"
|
|
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.
|
|
9
|
+
<version>1.131.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -10,7 +10,6 @@ sap.ui.define([
|
|
|
10
10
|
"sap/base/Log",
|
|
11
11
|
"sap/m/MessageBox",
|
|
12
12
|
"sap/m/MessageToast",
|
|
13
|
-
"sap/ui/thirdparty/jquery",
|
|
14
13
|
"sap/ui/base/ManagedObject",
|
|
15
14
|
"sap/ui/core/BusyIndicator",
|
|
16
15
|
"sap/ui/core/Lib",
|
|
@@ -57,7 +56,6 @@ sap.ui.define([
|
|
|
57
56
|
Log,
|
|
58
57
|
MessageBox,
|
|
59
58
|
MessageToast,
|
|
60
|
-
jQuery,
|
|
61
59
|
ManagedObject,
|
|
62
60
|
BusyIndicator,
|
|
63
61
|
Lib,
|
|
@@ -113,7 +111,7 @@ sap.ui.define([
|
|
|
113
111
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
114
112
|
* @extends sap.ui.base.ManagedObject
|
|
115
113
|
* @author SAP SE
|
|
116
|
-
* @version 1.
|
|
114
|
+
* @version 1.131.0
|
|
117
115
|
* @constructor
|
|
118
116
|
* @private
|
|
119
117
|
* @since 1.30
|
|
@@ -482,13 +480,8 @@ sap.ui.define([
|
|
|
482
480
|
await this.getToolbar().show();
|
|
483
481
|
}
|
|
484
482
|
|
|
485
|
-
if (Device.browser.name === "ff") {
|
|
486
|
-
// in FF shift+f10 also opens a browser context menu.
|
|
487
|
-
// It seems that the only way to get rid of it is to completely turn off context menu in ff..
|
|
488
|
-
jQuery(document).on("contextmenu", ffContextMenuHandler);
|
|
489
|
-
}
|
|
490
483
|
this.fnKeyDown = onKeyDown.bind(this);
|
|
491
|
-
|
|
484
|
+
document.addEventListener("keydown", this.fnKeyDown);
|
|
492
485
|
this.fnOnPersonalizationChangeCreation = onPersonalizationChangeCreation.bind(this);
|
|
493
486
|
ControlPersonalizationWriteAPI.attachChangeCreation(
|
|
494
487
|
oRootControl,
|
|
@@ -640,7 +633,7 @@ sap.ui.define([
|
|
|
640
633
|
}
|
|
641
634
|
|
|
642
635
|
if (this.getPluginManager && this.getPluginManager()) {
|
|
643
|
-
this.getPluginManager().provideCommandStack(
|
|
636
|
+
this.getPluginManager().provideCommandStack(oCommandStack);
|
|
644
637
|
}
|
|
645
638
|
|
|
646
639
|
return oResult;
|
|
@@ -738,7 +731,7 @@ sap.ui.define([
|
|
|
738
731
|
this._oDesignTime = null;
|
|
739
732
|
|
|
740
733
|
// detach browser events
|
|
741
|
-
|
|
734
|
+
document.removeEventListener("keydown", this.fnKeyDown);
|
|
742
735
|
|
|
743
736
|
if (this.fnOnPersonalizationChangeCreation) {
|
|
744
737
|
ControlPersonalizationWriteAPI.detachChangeCreation(
|
|
@@ -754,10 +747,6 @@ sap.ui.define([
|
|
|
754
747
|
|
|
755
748
|
this.setCommandStack(null);
|
|
756
749
|
|
|
757
|
-
if (Device.browser.name === "ff") {
|
|
758
|
-
jQuery(document).off("contextmenu", ffContextMenuHandler);
|
|
759
|
-
}
|
|
760
|
-
|
|
761
750
|
window.onbeforeunload = this._oldUnloadHandler;
|
|
762
751
|
|
|
763
752
|
ManagedObject.prototype.destroy.apply(this, aArgs);
|
|
@@ -982,10 +971,6 @@ sap.ui.define([
|
|
|
982
971
|
}
|
|
983
972
|
}
|
|
984
973
|
|
|
985
|
-
function ffContextMenuHandler() {
|
|
986
|
-
return false;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
974
|
/**
|
|
990
975
|
* Checks the publish button, draft buttons(activate and delete) and app variant support (i.e.
|
|
991
976
|
* Save As and Overview of App Variants) availability. The publish button shall not be available
|
|
@@ -1155,14 +1140,15 @@ sap.ui.define([
|
|
|
1155
1140
|
};
|
|
1156
1141
|
|
|
1157
1142
|
if (this._oVersionsModel.getProperty("/versioningEnabled")) {
|
|
1158
|
-
|
|
1143
|
+
const sDisplayedVersion = this._oVersionsModel.getProperty("/displayedVersion");
|
|
1144
|
+
let sVersion = bActivateVersion ? sDisplayedVersion : undefined;
|
|
1159
1145
|
|
|
1160
1146
|
// If a draft is being processed, saving without exiting must retrieve the updated state of the draft version
|
|
1161
1147
|
sVersion ||= bIsExit ? undefined : Version.Number.Draft;
|
|
1162
1148
|
mPropertyBag.version = sVersion;
|
|
1163
1149
|
|
|
1164
1150
|
// Save changes on the current layer and discard dirty changes on other layers
|
|
1165
|
-
mPropertyBag.saveAsDraft = this.getLayer() === Layer.CUSTOMER;
|
|
1151
|
+
mPropertyBag.saveAsDraft = this.getLayer() === Layer.CUSTOMER && sDisplayedVersion === Version.Number.Draft;
|
|
1166
1152
|
}
|
|
1167
1153
|
if (this._oContextBasedAdaptationsModel.getProperty("/contextBasedAdaptationsEnabled")) {
|
|
1168
1154
|
// If an adaptation is being processed, saving without exiting must retrieve the updated state of the adaptation
|
|
@@ -1206,6 +1192,7 @@ sap.ui.define([
|
|
|
1206
1192
|
displayedVersion: sDisplayedVersion
|
|
1207
1193
|
});
|
|
1208
1194
|
showMessageToast.call(this, "MSG_DRAFT_ACTIVATION_SUCCESS");
|
|
1195
|
+
this.getPluginManager().getPlugin("toolHooks").setVersionWasActivated(true);
|
|
1209
1196
|
this.bInitialResetEnabled = true;
|
|
1210
1197
|
this._oToolbarControlsModel.setProperty("/restore/enabled", true);
|
|
1211
1198
|
this.getCommandStack().removeAllCommands();
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -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.131.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.75
|
|
@@ -91,7 +91,7 @@ sap.ui.define([
|
|
|
91
91
|
delete mChangeSpecificData.changeType;
|
|
92
92
|
return {
|
|
93
93
|
changeType: sChangeType,
|
|
94
|
-
content: mChangeSpecificData
|
|
94
|
+
content: mChangeSpecificData.content
|
|
95
95
|
};
|
|
96
96
|
};
|
|
97
97
|
|
|
@@ -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.131.0
|
|
18
18
|
* @constructor
|
|
19
19
|
* @private
|
|
20
20
|
* @since 1.78
|
|
@@ -25,35 +25,45 @@ sap.ui.define([
|
|
|
25
25
|
library: "sap.ui.rta",
|
|
26
26
|
properties: {
|
|
27
27
|
index: {
|
|
28
|
-
type: "int"
|
|
28
|
+
type: "int",
|
|
29
|
+
group: "content"
|
|
29
30
|
},
|
|
30
31
|
newControlId: {
|
|
31
|
-
type: "string"
|
|
32
|
+
type: "string",
|
|
33
|
+
group: "content"
|
|
32
34
|
},
|
|
33
35
|
// the name "bindingPath" conflicts with getBindingPath() method from ManagedObject
|
|
34
36
|
bindingString: {
|
|
35
|
-
type: "string"
|
|
37
|
+
type: "string",
|
|
38
|
+
group: "content"
|
|
36
39
|
},
|
|
37
|
-
|
|
38
|
-
type: "string"
|
|
40
|
+
modelType: {
|
|
41
|
+
type: "string",
|
|
42
|
+
group: "content"
|
|
43
|
+
},
|
|
44
|
+
relevantContainerId: {
|
|
45
|
+
type: "string",
|
|
46
|
+
group: "content"
|
|
39
47
|
},
|
|
40
48
|
parentId: {
|
|
41
|
-
type: "string"
|
|
49
|
+
type: "string",
|
|
50
|
+
group: "content"
|
|
42
51
|
},
|
|
43
52
|
oDataServiceVersion: {
|
|
44
|
-
type: "string"
|
|
53
|
+
type: "string",
|
|
54
|
+
group: "content"
|
|
45
55
|
},
|
|
46
56
|
oDataServiceUri: {
|
|
47
|
-
type: "string"
|
|
48
|
-
|
|
49
|
-
modelType: {
|
|
50
|
-
type: "string"
|
|
51
|
-
},
|
|
52
|
-
relevantContainerId: {
|
|
53
|
-
type: "string"
|
|
57
|
+
type: "string",
|
|
58
|
+
group: "oDataInformation"
|
|
54
59
|
},
|
|
55
60
|
propertyName: {
|
|
56
|
-
type: "string"
|
|
61
|
+
type: "string",
|
|
62
|
+
group: "oDataInformation"
|
|
63
|
+
},
|
|
64
|
+
entityType: {
|
|
65
|
+
type: "string",
|
|
66
|
+
group: "oDataInformation"
|
|
57
67
|
}
|
|
58
68
|
}
|
|
59
69
|
}
|
|
@@ -63,16 +73,18 @@ sap.ui.define([
|
|
|
63
73
|
// general format
|
|
64
74
|
return {
|
|
65
75
|
changeType: this.getChangeType(),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
content: {
|
|
77
|
+
index: this.getIndex(),
|
|
78
|
+
newControlId: this.getNewControlId(),
|
|
79
|
+
bindingPath: this.getBindingString(),
|
|
80
|
+
parentId: this.getParentId(),
|
|
81
|
+
// used to connect to default delegate
|
|
82
|
+
modelType: this.getModelType(),
|
|
83
|
+
// allow change handlers to access delegates if the change is not done on the relevant container
|
|
84
|
+
relevantContainerId: this.getRelevantContainerId(),
|
|
85
|
+
// used to connect to change handler mediator
|
|
86
|
+
oDataServiceVersion: this.getODataServiceVersion()
|
|
87
|
+
},
|
|
76
88
|
// necessary for custom fields support tools
|
|
77
89
|
oDataInformation: {
|
|
78
90
|
oDataServiceUri: this.getODataServiceUri(),
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @extends sap.ui.rta.command.FlexCommand
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.131.0
|
|
21
21
|
*
|
|
22
22
|
* @constructor
|
|
23
23
|
* @private
|
|
@@ -29,8 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
library: "sap.ui.rta",
|
|
30
30
|
properties: {
|
|
31
31
|
content: {
|
|
32
|
-
type: "any"
|
|
33
|
-
group: "content"
|
|
32
|
+
type: "any"
|
|
34
33
|
}
|
|
35
34
|
},
|
|
36
35
|
events: {}
|
|
@@ -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.131.0
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.38
|
|
@@ -37,10 +37,12 @@ sap.ui.define([
|
|
|
37
37
|
library: "sap.ui.rta",
|
|
38
38
|
properties: {
|
|
39
39
|
propertyName: {
|
|
40
|
-
type: "string"
|
|
40
|
+
type: "string",
|
|
41
|
+
group: "content"
|
|
41
42
|
},
|
|
42
43
|
newBinding: {
|
|
43
|
-
type: "string"
|
|
44
|
+
type: "string",
|
|
45
|
+
group: "content"
|
|
44
46
|
},
|
|
45
47
|
changeType: {
|
|
46
48
|
type: "string",
|
|
@@ -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.131.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.46
|
|
@@ -27,13 +27,16 @@ sap.ui.define([
|
|
|
27
27
|
library: "sap.ui.rta",
|
|
28
28
|
properties: {
|
|
29
29
|
newElementId: {
|
|
30
|
-
type: "string"
|
|
30
|
+
type: "string",
|
|
31
|
+
group: "content"
|
|
31
32
|
},
|
|
32
33
|
source: {
|
|
33
|
-
type: "any"
|
|
34
|
+
type: "any",
|
|
35
|
+
group: "content"
|
|
34
36
|
},
|
|
35
37
|
combineElements: {
|
|
36
|
-
type: "any[]"
|
|
38
|
+
type: "any[]",
|
|
39
|
+
group: "content"
|
|
37
40
|
}
|
|
38
41
|
},
|
|
39
42
|
associations: {},
|
|
@@ -50,10 +53,12 @@ sap.ui.define([
|
|
|
50
53
|
aFieldIds.push(oField.getId());
|
|
51
54
|
});
|
|
52
55
|
var mSpecificInfo = {
|
|
53
|
-
newElementId: this.getNewElementId(),
|
|
54
56
|
changeType: this.getChangeType(),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
content: {
|
|
58
|
+
newElementId: this.getNewElementId(),
|
|
59
|
+
sourceControlId: this.getSource().getId(),
|
|
60
|
+
combineElementIds: aFieldIds
|
|
61
|
+
}
|
|
57
62
|
};
|
|
58
63
|
return mSpecificInfo;
|
|
59
64
|
};
|
|
@@ -12,7 +12,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
|
|
|
12
12
|
* @class
|
|
13
13
|
* @extends sap.ui.rta.command.FlexCommand
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.131.0
|
|
16
16
|
* @constructor
|
|
17
17
|
* @private
|
|
18
18
|
* @since 1.34
|
|
@@ -46,7 +46,7 @@ sap.ui.define(["sap/ui/rta/command/FlexCommand"], function(FlexCommand) {
|
|
|
46
46
|
CreateContainer.prototype._getChangeSpecificData = function() {
|
|
47
47
|
var mSpecificInfo = FlexCommand.prototype._getChangeSpecificData.apply(this);
|
|
48
48
|
|
|
49
|
-
mSpecificInfo.newLabel = this.getLabel();
|
|
49
|
+
mSpecificInfo.content.newLabel = this.getLabel();
|
|
50
50
|
|
|
51
51
|
return mSpecificInfo;
|
|
52
52
|
};
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.ui.rta.command.BaseCommand
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.131.0
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -150,21 +150,23 @@ sap.ui.define([
|
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
|
-
* This method converts all command constructor parameters that are flagged with group 'content' into
|
|
153
|
+
* This method converts all command constructor parameters that are flagged with group 'content' into the corresponding object.
|
|
154
154
|
* @return {object} Returns the <code>ChangeSpecificInfo</code> for change handler
|
|
155
155
|
* @protected
|
|
156
156
|
*/
|
|
157
157
|
FlexCommand.prototype._getChangeSpecificData = function() {
|
|
158
158
|
var mProperties = this.getMetadata().getProperties();
|
|
159
159
|
var mChangeSpecificData = {
|
|
160
|
-
changeType: this.getChangeType()
|
|
160
|
+
changeType: this.getChangeType(),
|
|
161
|
+
content: mProperties.content?.get(this)
|
|
161
162
|
};
|
|
162
163
|
objectValues(mProperties)
|
|
163
164
|
.filter(function(oProperty) {
|
|
164
165
|
return oProperty.group === "content";
|
|
165
166
|
})
|
|
166
167
|
.forEach(function(oProperty) {
|
|
167
|
-
mChangeSpecificData
|
|
168
|
+
mChangeSpecificData.content ||= {};
|
|
169
|
+
mChangeSpecificData.content[oProperty.name] = oProperty.get(this);
|
|
168
170
|
}, this);
|
|
169
171
|
return mChangeSpecificData;
|
|
170
172
|
};
|
|
@@ -17,7 +17,7 @@ function(
|
|
|
17
17
|
* @class
|
|
18
18
|
* @extends sap.ui.rta.command.FlexCommand
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.131.0
|
|
21
21
|
* @constructor
|
|
22
22
|
* @private
|
|
23
23
|
* @since 1.34
|
|
@@ -28,13 +28,16 @@ function(
|
|
|
28
28
|
library: "sap.ui.rta",
|
|
29
29
|
properties: {
|
|
30
30
|
movedElements: {
|
|
31
|
-
type: "any[]"
|
|
31
|
+
type: "any[]",
|
|
32
|
+
group: "content"
|
|
32
33
|
},
|
|
33
34
|
target: {
|
|
34
|
-
type: "any"
|
|
35
|
+
type: "any",
|
|
36
|
+
group: "content"
|
|
35
37
|
},
|
|
36
38
|
source: {
|
|
37
|
-
type: "any"
|
|
39
|
+
type: "any",
|
|
40
|
+
group: "content"
|
|
38
41
|
}
|
|
39
42
|
},
|
|
40
43
|
associations: {},
|
|
@@ -60,13 +63,15 @@ function(
|
|
|
60
63
|
}
|
|
61
64
|
var mSpecificInfo = {
|
|
62
65
|
changeType: this.getChangeType(),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
content: {
|
|
67
|
+
source: mSource,
|
|
68
|
+
target: mTarget,
|
|
69
|
+
movedElements: []
|
|
70
|
+
}
|
|
66
71
|
};
|
|
67
72
|
|
|
68
73
|
this.getMovedElements().forEach(function(mMovedElement) {
|
|
69
|
-
mSpecificInfo.movedElements.push({
|
|
74
|
+
mSpecificInfo.content.movedElements.push({
|
|
70
75
|
id: mMovedElement.id || (mMovedElement.element && mMovedElement.element.getId()),
|
|
71
76
|
sourceIndex: mMovedElement.sourceIndex,
|
|
72
77
|
targetIndex: mMovedElement.targetIndex
|
|
@@ -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.131.0
|
|
20
20
|
* @constructor
|
|
21
21
|
* @private
|
|
22
22
|
* @since 1.34
|
|
@@ -27,13 +27,16 @@ sap.ui.define([
|
|
|
27
27
|
library: "sap.ui.rta",
|
|
28
28
|
properties: {
|
|
29
29
|
propertyName: {
|
|
30
|
-
type: "string"
|
|
30
|
+
type: "string",
|
|
31
|
+
group: "content"
|
|
31
32
|
},
|
|
32
33
|
newValue: {
|
|
33
|
-
type: "any"
|
|
34
|
+
type: "any",
|
|
35
|
+
group: "content"
|
|
34
36
|
},
|
|
35
37
|
semanticMeaning: {
|
|
36
|
-
type: "string"
|
|
38
|
+
type: "string",
|
|
39
|
+
group: "content"
|
|
37
40
|
},
|
|
38
41
|
changeType: {
|
|
39
42
|
type: "string",
|