@openui5/sap.ui.rta 1.84.16 → 1.84.20
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/AddIFrame.js +1 -1
- package/src/sap/ui/rta/command/AddProperty.js +1 -1
- 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/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 +1 -1
- 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/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 +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/plugin/iframe/AddIFrame.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialog.js +1 -1
- package/src/sap/ui/rta/plugin/iframe/AddIFrameDialogController.js +22 -5
- 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/FioriLike.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.84.
|
|
3
|
+
"version": "1.84.20",
|
|
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.84.
|
|
18
|
-
"@openui5/sap.ui.core": "1.84.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.84.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.84.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.84.
|
|
17
|
+
"@openui5/sap.m": "1.84.20",
|
|
18
|
+
"@openui5/sap.ui.core": "1.84.20",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.84.20",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.84.20",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.84.20"
|
|
22
22
|
}
|
|
23
23
|
}
|
package/src/sap/ui/rta/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.84.
|
|
9
|
+
<version>1.84.20</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -145,7 +145,7 @@ function(
|
|
|
145
145
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
146
146
|
* @extends sap.ui.base.ManagedObject
|
|
147
147
|
* @author SAP SE
|
|
148
|
-
* @version 1.84.
|
|
148
|
+
* @version 1.84.20
|
|
149
149
|
* @constructor
|
|
150
150
|
* @private
|
|
151
151
|
* @since 1.30
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -23,7 +23,7 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.84.
|
|
26
|
+
* @version 1.84.20
|
|
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.84.
|
|
35
|
+
version: "1.84.20",
|
|
36
36
|
dependencies : ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
37
37
|
types: [
|
|
38
38
|
],
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @class The CreateContainer allows trigger CreateContainer operations on the overlay
|
|
28
28
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.84.
|
|
30
|
+
* @version 1.84.20
|
|
31
31
|
* @constructor
|
|
32
32
|
* @private
|
|
33
33
|
* @since 1.34
|
|
@@ -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.84.
|
|
28
|
+
* @version 1.84.20
|
|
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.84.
|
|
26
|
+
* @version 1.84.20
|
|
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.84.
|
|
35
|
+
* @version 1.84.20
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.34
|
|
@@ -259,7 +259,7 @@ sap.ui.define([
|
|
|
259
259
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
260
260
|
* @extends sap.ui.rta.plugin.Plugin
|
|
261
261
|
* @author SAP SE
|
|
262
|
-
* @version 1.84.
|
|
262
|
+
* @version 1.84.20
|
|
263
263
|
* @constructor
|
|
264
264
|
* @private
|
|
265
265
|
* @since 1.44
|
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
113
113
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
114
114
|
* @author SAP SE
|
|
115
|
-
* @version 1.84.
|
|
115
|
+
* @version 1.84.20
|
|
116
116
|
* @constructor
|
|
117
117
|
* @private
|
|
118
118
|
* @since 1.75
|
|
@@ -8,6 +8,7 @@ sap.ui.define([
|
|
|
8
8
|
"sap/ui/core/mvc/Controller",
|
|
9
9
|
"sap/ui/core/library",
|
|
10
10
|
"sap/ui/rta/Utils",
|
|
11
|
+
"sap/ui/fl/util/IFrame",
|
|
11
12
|
"sap/ui/model/Filter",
|
|
12
13
|
"sap/ui/model/FilterOperator",
|
|
13
14
|
"sap/ui/rta/plugin/iframe/urlCleaner"
|
|
@@ -16,6 +17,7 @@ sap.ui.define([
|
|
|
16
17
|
Controller,
|
|
17
18
|
coreLibrary,
|
|
18
19
|
Utils,
|
|
20
|
+
IFrame,
|
|
19
21
|
Filter,
|
|
20
22
|
FilterOperator,
|
|
21
23
|
urlCleaner
|
|
@@ -29,6 +31,11 @@ sap.ui.define([
|
|
|
29
31
|
var _aNumericInputFields = ["frameWidth", "frameHeight"];
|
|
30
32
|
var _aSelectInputFields = ["asNewSection", "frameWidthUnit", "frameHeightUnit"];
|
|
31
33
|
|
|
34
|
+
|
|
35
|
+
function isValidUrl(sUrl) {
|
|
36
|
+
return IFrame.isValidUrl(encodeURI(sUrl));
|
|
37
|
+
}
|
|
38
|
+
|
|
32
39
|
return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
|
|
33
40
|
constructor: function(oJSONModel, mSettings) {
|
|
34
41
|
this._oJSONModel = oJSONModel;
|
|
@@ -79,10 +86,16 @@ sap.ui.define([
|
|
|
79
86
|
var sPreviewUrl = this._oJSONModel.getProperty("/previewUrl/value");
|
|
80
87
|
var sFrameUrl = this._oJSONModel.getProperty("/frameUrl/value");
|
|
81
88
|
var oPreviewButton = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewButton");
|
|
89
|
+
var oUrlInput = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_EditUrlTA");
|
|
90
|
+
if (isValidUrl(this._buildPreviewURL(this._buildReturnedURL()))) {
|
|
91
|
+
oUrlInput.setValueState("None");
|
|
92
|
+
} else {
|
|
93
|
+
oUrlInput.setValueState("Error");
|
|
94
|
+
}
|
|
82
95
|
if (sFrameUrl === "" && sPreviewUrl !== "") {
|
|
83
96
|
//Clears the preview frame, collapses the panel, clears the preview URL
|
|
84
97
|
var oIFrame = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
85
|
-
oIFrame.setUrl("
|
|
98
|
+
oIFrame.setUrl(""); // Resets the preview first
|
|
86
99
|
this._oJSONModel.setProperty("/previewUrl/value", sFrameUrl);
|
|
87
100
|
var oPanel = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewLinkPanel");
|
|
88
101
|
var oPanelButton = oPanel.getDependents()[0];
|
|
@@ -106,7 +119,8 @@ sap.ui.define([
|
|
|
106
119
|
* Event handler for save button
|
|
107
120
|
*/
|
|
108
121
|
onSavePress: function() {
|
|
109
|
-
|
|
122
|
+
var sUrl = this._buildPreviewURL(this._buildReturnedURL());
|
|
123
|
+
if (isValidUrl(sUrl) && this._areAllTextFieldsValid() && this._areAllValueStateNones()) {
|
|
110
124
|
this._close(this._buildReturnedSettings());
|
|
111
125
|
} else {
|
|
112
126
|
this._setFocusOnInvalidInput();
|
|
@@ -118,9 +132,12 @@ sap.ui.define([
|
|
|
118
132
|
* @param {sap.ui.base.Event} oEvent - Event
|
|
119
133
|
*/
|
|
120
134
|
onShowPreview: function(oEvent) {
|
|
121
|
-
var sURL =
|
|
135
|
+
var sURL = this._buildPreviewURL(this._buildReturnedURL());
|
|
136
|
+
if (!isValidUrl(sURL)) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
122
139
|
var oIFrame = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
123
|
-
oIFrame.setUrl("
|
|
140
|
+
oIFrame.setUrl(""); // Resets the preview first
|
|
124
141
|
//enable/disable expanding the Panel
|
|
125
142
|
var oPanel = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewLinkPanel");
|
|
126
143
|
var oPanelButton = oPanel.getDependents()[0];
|
|
@@ -147,6 +164,7 @@ sap.ui.define([
|
|
|
147
164
|
onParameterPress: function(oEvent) {
|
|
148
165
|
var sKey = oEvent.getSource().getBindingContext().getObject().key;
|
|
149
166
|
this._oJSONModel.setProperty("/frameUrl/value", this._addURLParameter(sKey));
|
|
167
|
+
this.onURLChange();
|
|
150
168
|
},
|
|
151
169
|
|
|
152
170
|
/**
|
|
@@ -254,7 +272,6 @@ sap.ui.define([
|
|
|
254
272
|
* @private
|
|
255
273
|
*/
|
|
256
274
|
_areAllTextFieldsValid: function() {
|
|
257
|
-
//TODO: Validate URL
|
|
258
275
|
var oJSONModel = this._oJSONModel;
|
|
259
276
|
return _aTextInputFields.reduce(function(bAllValid, sFieldName) {
|
|
260
277
|
var sValuePath = "/" + sFieldName + "/value";
|