@openui5/sap.ui.rta 1.71.41 → 1.71.44
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/LICENSE.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 +1 -1
- package/src/sap/ui/rta/Utils.js +1 -1
- package/src/sap/ui/rta/appVariant/AppVariantManager.js +1 -1
- package/src/sap/ui/rta/command/AddODataProperty.js +1 -1
- package/src/sap/ui/rta/command/AddXML.js +1 -1
- package/src/sap/ui/rta/command/AppDescriptorCommand.js +1 -1
- package/src/sap/ui/rta/command/BaseCommand.js +1 -1
- package/src/sap/ui/rta/command/BindProperty.js +1 -1
- package/src/sap/ui/rta/command/Combine.js +1 -1
- package/src/sap/ui/rta/command/CommandFactory.js +1 -1
- package/src/sap/ui/rta/command/CompositeCommand.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantConfigure.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantDuplicate.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSetTitle.js +1 -1
- package/src/sap/ui/rta/command/ControlVariantSwitch.js +1 -1
- package/src/sap/ui/rta/command/CreateContainer.js +1 -1
- package/src/sap/ui/rta/command/CustomAdd.js +1 -1
- package/src/sap/ui/rta/command/FlexCommand.js +1 -1
- package/src/sap/ui/rta/command/LREPSerializer.js +1 -1
- package/src/sap/ui/rta/command/Move.js +1 -1
- package/src/sap/ui/rta/command/Property.js +1 -1
- package/src/sap/ui/rta/command/Remove.js +1 -1
- package/src/sap/ui/rta/command/Rename.js +1 -1
- package/src/sap/ui/rta/command/Reveal.js +1 -1
- package/src/sap/ui/rta/command/Settings.js +1 -1
- package/src/sap/ui/rta/command/Split.js +1 -1
- package/src/sap/ui/rta/command/Stack.js +39 -28
- package/src/sap/ui/rta/command/appDescriptor/AddLibrary.js +1 -1
- package/src/sap/ui/rta/enablement/elementActionTest.js +1 -1
- package/src/sap/ui/rta/library.js +2 -2
- package/src/sap/ui/rta/plugin/Combine.js +1 -1
- package/src/sap/ui/rta/plugin/ControlVariant.js +1 -1
- package/src/sap/ui/rta/plugin/CreateContainer.js +1 -1
- package/src/sap/ui/rta/plugin/CutPaste.js +1 -1
- package/src/sap/ui/rta/plugin/DragDrop.js +1 -1
- package/src/sap/ui/rta/plugin/EasyAdd.js +1 -1
- package/src/sap/ui/rta/plugin/EasyRemove.js +1 -1
- package/src/sap/ui/rta/plugin/Plugin.js +1 -1
- package/src/sap/ui/rta/plugin/RTAElementMover.js +1 -1
- package/src/sap/ui/rta/plugin/Remove.js +1 -1
- package/src/sap/ui/rta/plugin/Rename.js +1 -1
- package/src/sap/ui/rta/plugin/RenameHandler.js +1 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +1 -1
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AddElementsDialog.js +1 -1
- package/src/sap/ui/rta/plugin/additionalElements/AdditionalElementsPlugin.js +1 -1
- package/src/sap/ui/rta/service/Action.js +1 -1
- package/src/sap/ui/rta/service/ControllerExtension.js +1 -1
- package/src/sap/ui/rta/service/Outline.js +1 -1
- package/src/sap/ui/rta/service/Property.js +1 -1
- package/src/sap/ui/rta/service/Selection.js +1 -1
- package/src/sap/ui/rta/toolbar/Adaptation.js +1 -1
- package/src/sap/ui/rta/toolbar/Base.js +1 -1
- package/src/sap/ui/rta/toolbar/Fiori.js +1 -1
- package/src/sap/ui/rta/toolbar/Personalization.js +1 -1
- package/src/sap/ui/rta/toolbar/Standalone.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.js +1 -1
package/LICENSE.txt
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.71.
|
|
3
|
+
"version": "1.71.44",
|
|
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.71.
|
|
18
|
-
"@openui5/sap.ui.core": "1.71.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.71.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.71.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.71.
|
|
17
|
+
"@openui5/sap.m": "1.71.44",
|
|
18
|
+
"@openui5/sap.ui.core": "1.71.44",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.71.44",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.71.44",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.71.44"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.71.
|
|
9
|
+
<version>1.71.44</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -129,7 +129,7 @@ function(
|
|
|
129
129
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
130
130
|
* @extends sap.ui.base.ManagedObject
|
|
131
131
|
* @author SAP SE
|
|
132
|
-
* @version 1.71.
|
|
132
|
+
* @version 1.71.44
|
|
133
133
|
* @constructor
|
|
134
134
|
* @private
|
|
135
135
|
* @since 1.30
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -20,13 +20,46 @@ sap.ui.define([
|
|
|
20
20
|
) {
|
|
21
21
|
"use strict";
|
|
22
22
|
|
|
23
|
+
function _toAvailableChanges(mChanges, aChanges, sFileName) {
|
|
24
|
+
var oChange = mChanges[sFileName];
|
|
25
|
+
if (oChange) {
|
|
26
|
+
aChanges.push(oChange);
|
|
27
|
+
}
|
|
28
|
+
return aChanges;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function _pushToStack(oComponent, mComposite, oStack, oChange) {
|
|
32
|
+
var oSelector = oChange.getSelector();
|
|
33
|
+
var oCommand = new Settings({
|
|
34
|
+
selector : oSelector,
|
|
35
|
+
changeType : oChange.getDefinition().changeType,
|
|
36
|
+
element : JsControlTreeModifier.bySelector(oSelector, oComponent)
|
|
37
|
+
});
|
|
38
|
+
oCommand._oPreparedChange = oChange;
|
|
39
|
+
if (oChange.getUndoOperations()) {
|
|
40
|
+
oCommand._aRecordedUndo = oChange.getUndoOperations();
|
|
41
|
+
oChange.resetUndoOperations();
|
|
42
|
+
}
|
|
43
|
+
// check if change belongs to a composite command
|
|
44
|
+
var sCompositeId = oChange.getDefinition().support.compositeCommand;
|
|
45
|
+
if (sCompositeId) {
|
|
46
|
+
if (!mComposite[sCompositeId]) {
|
|
47
|
+
mComposite[sCompositeId] = new CompositeCommand();
|
|
48
|
+
oStack.pushExecutedCommand(mComposite[sCompositeId]);
|
|
49
|
+
}
|
|
50
|
+
mComposite[sCompositeId].addCommand(oCommand);
|
|
51
|
+
} else {
|
|
52
|
+
oStack.pushExecutedCommand(oCommand);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
23
56
|
/**
|
|
24
57
|
* Basic implementation for the command stack pattern.
|
|
25
58
|
*
|
|
26
59
|
* @class
|
|
27
60
|
* @extends sap.ui.base.ManagedObject
|
|
28
61
|
* @author SAP SE
|
|
29
|
-
* @version 1.71.
|
|
62
|
+
* @version 1.71.44
|
|
30
63
|
* @constructor
|
|
31
64
|
* @private
|
|
32
65
|
* @since 1.34
|
|
@@ -66,10 +99,9 @@ sap.ui.define([
|
|
|
66
99
|
Stack.initializeWithChanges = function(oControl, aFileNames) {
|
|
67
100
|
var oStack = new Stack();
|
|
68
101
|
oStack._aPersistedChanges = aFileNames;
|
|
69
|
-
var mComposite = {};
|
|
70
102
|
if (aFileNames && aFileNames.length > 0) {
|
|
71
103
|
var oComponent = FlUtils.getComponentForControl(oControl);
|
|
72
|
-
var sAppName =
|
|
104
|
+
var sAppName = FlUtils.getAppDescriptor(oComponent)["sap.app"].id;
|
|
73
105
|
var mPropertyBag = {
|
|
74
106
|
oComponent : oComponent,
|
|
75
107
|
appName : sAppName,
|
|
@@ -78,35 +110,14 @@ sap.ui.define([
|
|
|
78
110
|
};
|
|
79
111
|
return PersistenceWriteAPI._getUIChanges(mPropertyBag)
|
|
80
112
|
.then(function(aChanges) {
|
|
113
|
+
var mComposite = {};
|
|
81
114
|
var mChanges = {};
|
|
82
115
|
aChanges.forEach(function(oChange) {
|
|
83
116
|
mChanges[oChange.getDefinition().fileName] = oChange;
|
|
84
117
|
});
|
|
85
|
-
aFileNames
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
var oCommand = new Settings({
|
|
89
|
-
selector : oSelector,
|
|
90
|
-
changeType : oChange.getDefinition().changeType,
|
|
91
|
-
element : JsControlTreeModifier.bySelector(oSelector, oComponent)
|
|
92
|
-
});
|
|
93
|
-
oCommand._oPreparedChange = oChange;
|
|
94
|
-
if (oChange.getUndoOperations()) {
|
|
95
|
-
oCommand._aRecordedUndo = oChange.getUndoOperations();
|
|
96
|
-
oChange.resetUndoOperations();
|
|
97
|
-
}
|
|
98
|
-
// check if change belongs to a composite command
|
|
99
|
-
var sCompositeId = oChange.getDefinition().support.compositeCommand;
|
|
100
|
-
if (sCompositeId) {
|
|
101
|
-
if (!mComposite[sCompositeId]) {
|
|
102
|
-
mComposite[sCompositeId] = new CompositeCommand();
|
|
103
|
-
oStack.pushExecutedCommand(mComposite[sCompositeId]);
|
|
104
|
-
}
|
|
105
|
-
mComposite[sCompositeId].addCommand(oCommand);
|
|
106
|
-
} else {
|
|
107
|
-
oStack.pushExecutedCommand(oCommand);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
118
|
+
aFileNames
|
|
119
|
+
.reduce(_toAvailableChanges.bind(null, mChanges), [])
|
|
120
|
+
.forEach(_pushToStack.bind(null, oComponent, mComposite, oStack));
|
|
110
121
|
return oStack;
|
|
111
122
|
});
|
|
112
123
|
}
|
|
@@ -23,7 +23,7 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.71.
|
|
26
|
+
* @version 1.71.44
|
|
27
27
|
* @private
|
|
28
28
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
29
29
|
*/
|
|
@@ -32,7 +32,7 @@ function() {
|
|
|
32
32
|
// delegate further initialization of this library to the Core
|
|
33
33
|
sap.ui.getCore().initLibrary({
|
|
34
34
|
name : "sap.ui.rta",
|
|
35
|
-
version: "1.71.
|
|
35
|
+
version: "1.71.44",
|
|
36
36
|
dependencies : ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
37
37
|
types: [
|
|
38
38
|
],
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The EasyAdd Plugin adds an Icon to an Overlay, which allows to trigger add operations directly
|
|
26
26
|
* @extends sap.ui.rta.plugin.additionalElements.AdditionalElementsPlugin
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.71.
|
|
28
|
+
* @version 1.71.44
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.48
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class The EasyRemove Plugin adds an Icon to an Overlay, which allows to trigger remove operations directly
|
|
24
24
|
* @extends sap.ui.rta.plugin.Remove
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.71.
|
|
26
|
+
* @version 1.71.44
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.48
|
|
@@ -32,7 +32,7 @@ function (
|
|
|
32
32
|
* @class The Selection plugin allows you to select or focus overlays with mouse or keyboard and navigate to others.
|
|
33
33
|
* @extends sap.ui.rta.plugin.Plugin
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.71.
|
|
35
|
+
* @version 1.71.44
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.34
|
|
@@ -186,7 +186,7 @@ sap.ui.define([
|
|
|
186
186
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
187
187
|
* @extends sap.ui.rta.plugin.Plugin
|
|
188
188
|
* @author SAP SE
|
|
189
|
-
* @version 1.71.
|
|
189
|
+
* @version 1.71.44
|
|
190
190
|
* @constructor
|
|
191
191
|
* @private
|
|
192
192
|
* @since 1.44
|