@openui5/sap.ui.rta 1.93.0 → 1.93.4
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/.reuse/dep5 +5 -0
- package/THIRDPARTY.txt +10 -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/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 +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/LocalReset.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/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 +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/LocalReset.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/AdditionalElementsAnalyzer.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 +14 -8
- 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/toolbar/translation/Translation.js +1 -1
- package/src/sap/ui/rta/util/BindingsExtractor.js +14 -7
- package/src/sap/ui/rta/util/PluginManager.js +1 -1
- package/src/sap/ui/rta/util/PopupManager.js +1 -1
- package/src/sap/ui/rta/util/ServiceEventBus.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/.reuse/dep5
CHANGED
|
@@ -464,3 +464,8 @@ Copyright:
|
|
|
464
464
|
License: Apache-2.0
|
|
465
465
|
Comment: these files contain content from SAP and JSDoc 3: plugin.js is overall written by SAP, but contains code taken from JSDoc 3.6.7 (see the respective comments)
|
|
466
466
|
|
|
467
|
+
Files: src/sap.ui.core/src/sap/ui/core/themes/base/base.less src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
468
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
469
|
+
License: Apache-2.0
|
|
470
|
+
Comment: these files belong to: SAP Theming Base Content
|
|
471
|
+
|
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.7
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -462,6 +462,15 @@ License: Apache-2.0
|
|
|
462
462
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
463
463
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
464
464
|
|
|
465
|
+
Component: SAP Theming Base Content, version: 11.1.34
|
|
466
|
+
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
467
|
+
License: Apache-2.0
|
|
468
|
+
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
|
+
Contained in: src/sap.ui.core/src/sap/ui/core/themes/base/base.less
|
|
470
|
+
src/themelib_sap_belize/src/sap/ui/core/themes/*/base.less
|
|
471
|
+
src/themelib_sap_fiori_3/src/sap/ui/core/themes/*/base.less
|
|
472
|
+
src/themelib_sap_horizon/src/sap/ui/core/themes/*/base.less
|
|
473
|
+
|
|
465
474
|
|
|
466
475
|
ALL LICENSE TEXTS:
|
|
467
476
|
==================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.93.
|
|
3
|
+
"version": "1.93.4",
|
|
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.93.
|
|
18
|
-
"@openui5/sap.ui.core": "1.93.
|
|
19
|
-
"@openui5/sap.ui.dt": "1.93.
|
|
20
|
-
"@openui5/sap.ui.fl": "1.93.
|
|
21
|
-
"@openui5/sap.ui.layout": "1.93.
|
|
17
|
+
"@openui5/sap.m": "1.93.4",
|
|
18
|
+
"@openui5/sap.ui.core": "1.93.4",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.93.4",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.93.4",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.93.4"
|
|
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.93.
|
|
9
|
+
<version>1.93.4</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -109,7 +109,7 @@ function(
|
|
|
109
109
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
110
110
|
* @extends sap.ui.base.ManagedObject
|
|
111
111
|
* @author SAP SE
|
|
112
|
-
* @version 1.93.
|
|
112
|
+
* @version 1.93.4
|
|
113
113
|
* @constructor
|
|
114
114
|
* @private
|
|
115
115
|
* @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.93.
|
|
26
|
+
* @version 1.93.4
|
|
27
27
|
* @since 1.50
|
|
28
28
|
* @private
|
|
29
29
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -33,7 +33,7 @@ function() {
|
|
|
33
33
|
// delegate further initialization of this library to the Core
|
|
34
34
|
sap.ui.getCore().initLibrary({
|
|
35
35
|
name: "sap.ui.rta",
|
|
36
|
-
version: "1.93.
|
|
36
|
+
version: "1.93.4",
|
|
37
37
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
38
38
|
types: [],
|
|
39
39
|
interfaces: [],
|
|
@@ -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.93.
|
|
28
|
+
* @version 1.93.4
|
|
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.93.
|
|
26
|
+
* @version 1.93.4
|
|
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.93.
|
|
35
|
+
* @version 1.93.4
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.34
|
|
@@ -381,7 +381,7 @@ sap.ui.define([
|
|
|
381
381
|
_enhanceInvisibleElement(oInvisibleElement, mModelProperty);
|
|
382
382
|
return true;
|
|
383
383
|
}
|
|
384
|
-
// if model property is not found,
|
|
384
|
+
// if model property is not found, it depends if the hidden field is a removed custom field (AddViaDelegate case) or a standard field.
|
|
385
385
|
return !bHasAddViaDelegate;
|
|
386
386
|
}
|
|
387
387
|
|
|
@@ -303,7 +303,7 @@ sap.ui.define([
|
|
|
303
303
|
* @class The plugin allows to add additional elements that exist either hidden in the UI or in the OData service
|
|
304
304
|
* @extends sap.ui.rta.plugin.Plugin
|
|
305
305
|
* @author SAP SE
|
|
306
|
-
* @version 1.93.
|
|
306
|
+
* @version 1.93.4
|
|
307
307
|
* @constructor
|
|
308
308
|
* @private
|
|
309
309
|
* @since 1.44
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
* @class The AddIFrame allows trigger AddIFrame operations on the overlay.
|
|
108
108
|
* @extends sap.ui.rta.plugin.BaseCreate
|
|
109
109
|
* @author SAP SE
|
|
110
|
-
* @version 1.93.
|
|
110
|
+
* @version 1.93.4
|
|
111
111
|
* @constructor
|
|
112
112
|
* @private
|
|
113
113
|
* @since 1.75
|
|
@@ -31,6 +31,11 @@ sap.ui.define([
|
|
|
31
31
|
var _aNumericInputFields = ["frameWidth", "frameHeight"];
|
|
32
32
|
var _aSelectInputFields = ["asNewSection", "frameWidthUnit", "frameHeightUnit"];
|
|
33
33
|
|
|
34
|
+
|
|
35
|
+
function isValidUrl(sUrl) {
|
|
36
|
+
return IFrame.isValidUrl(encodeURI(sUrl));
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
return Controller.extend("sap.ui.rta.plugin.iframe.AddIFrameDialogController", {
|
|
35
40
|
constructor: function(oJSONModel, mSettings) {
|
|
36
41
|
this._oJSONModel = oJSONModel;
|
|
@@ -77,8 +82,8 @@ sap.ui.define([
|
|
|
77
82
|
* Event handler for save button
|
|
78
83
|
*/
|
|
79
84
|
onSavePress: function() {
|
|
80
|
-
var sUrl =
|
|
81
|
-
if (
|
|
85
|
+
var sUrl = this._buildPreviewURL(this._buildReturnedURL());
|
|
86
|
+
if (isValidUrl(sUrl) && this._areAllTextFieldsValid() && this._areAllValueStateNones()) {
|
|
82
87
|
this._close(this._buildReturnedSettings());
|
|
83
88
|
} else {
|
|
84
89
|
this._setFocusOnInvalidInput();
|
|
@@ -90,8 +95,8 @@ sap.ui.define([
|
|
|
90
95
|
* @param {sap.ui.base.Event} oEvent - Event
|
|
91
96
|
*/
|
|
92
97
|
onShowPreview: function() {
|
|
93
|
-
var sURL =
|
|
94
|
-
if (!
|
|
98
|
+
var sURL = this._buildPreviewURL(this._buildReturnedURL());
|
|
99
|
+
if (!isValidUrl(sURL)) {
|
|
95
100
|
return;
|
|
96
101
|
}
|
|
97
102
|
var oIFrame = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_PreviewFrame");
|
|
@@ -120,6 +125,7 @@ sap.ui.define([
|
|
|
120
125
|
onParameterPress: function(oEvent) {
|
|
121
126
|
var sKey = oEvent.getSource().getBindingContext().getObject().key;
|
|
122
127
|
this._oJSONModel.setProperty("/frameUrl/value", this._addURLParameter(sKey));
|
|
128
|
+
this.onUrlChange();
|
|
123
129
|
},
|
|
124
130
|
|
|
125
131
|
/**
|
|
@@ -166,10 +172,10 @@ sap.ui.define([
|
|
|
166
172
|
return urlCleaner(this._oJSONModel.getProperty("/frameUrl/value"));
|
|
167
173
|
},
|
|
168
174
|
|
|
169
|
-
onUrlChange: function(
|
|
170
|
-
var sUrl =
|
|
171
|
-
var oUrlInput =
|
|
172
|
-
if (
|
|
175
|
+
onUrlChange: function() {
|
|
176
|
+
var sUrl = this._buildPreviewURL(this._buildReturnedURL());
|
|
177
|
+
var oUrlInput = sap.ui.getCore().byId("sapUiRtaAddIFrameDialog_EditUrlTA");
|
|
178
|
+
if (isValidUrl(sUrl)) {
|
|
173
179
|
oUrlInput.setValueState("None");
|
|
174
180
|
} else {
|
|
175
181
|
oUrlInput.setValueState("Error");
|
|
@@ -93,18 +93,18 @@ function(
|
|
|
93
93
|
*
|
|
94
94
|
* @param {sap.ui.core.Control} oElement - Starting point of the search
|
|
95
95
|
* @param {sap.ui.model.Model} oParentDefaultModel - Model for filtering irrelevant binding paths
|
|
96
|
-
* @param {boolean} [
|
|
96
|
+
* @param {boolean} [vTemplate] - Whether we should consider provided element as a template
|
|
97
97
|
* @param {string} [sAggregationName] - if aggregation name is given then only for this aggregation bindings are returned, if not then all aggregations are considered
|
|
98
98
|
* @param {sap.ui.core.Control} [oRelevantContainerElement] - if this element is given then only bindings from element related to the relevant container are considered
|
|
99
99
|
* @returns {Array} - returns array with all relevant bindings for all properties of the element
|
|
100
100
|
*
|
|
101
101
|
* @private
|
|
102
102
|
*/
|
|
103
|
-
function getBindings(oElement, oParentDefaultModel,
|
|
103
|
+
function getBindings(oElement, oParentDefaultModel, vTemplate, sAggregationName, oRelevantContainerElement) {
|
|
104
104
|
var aBindings = [];
|
|
105
105
|
if (isElementRelatedToRelevantContainer(oElement, oRelevantContainerElement)) {
|
|
106
106
|
aBindings = (
|
|
107
|
-
|
|
107
|
+
vTemplate
|
|
108
108
|
? getBindingsFromTemplateProperties(oElement)
|
|
109
109
|
: getBindingsFromProperties(oElement, oParentDefaultModel)
|
|
110
110
|
);
|
|
@@ -112,17 +112,22 @@ function(
|
|
|
112
112
|
var aAggregationNames = sAggregationName ? [sAggregationName] : Object.keys(oElement.getMetadata().getAllAggregations());
|
|
113
113
|
|
|
114
114
|
aAggregationNames.forEach(function (sAggregationNameInLoop) {
|
|
115
|
-
aBindings = aBindings.concat(getBindingsForAggregation(oElement, oParentDefaultModel,
|
|
115
|
+
aBindings = aBindings.concat(getBindingsForAggregation(oElement, oParentDefaultModel, vTemplate, sAggregationNameInLoop, oRelevantContainerElement));
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
return aBindings;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
function getBindingsForAggregation(oElement, oParentDefaultModel,
|
|
121
|
+
function getBindingsForAggregation(oElement, oParentDefaultModel, vTemplate, sAggregationName, oRelevantContainerElement) {
|
|
122
122
|
var aBindings = [];
|
|
123
|
+
var oTemplate;
|
|
124
|
+
var bTemplate;
|
|
123
125
|
// Getting children of the current aggregation and iterating through all of them
|
|
124
126
|
var oBinding = oElement.getBindingInfo(sAggregationName);
|
|
125
|
-
|
|
127
|
+
if (vTemplate !== false) {
|
|
128
|
+
oTemplate = oBinding && oBinding.template;
|
|
129
|
+
bTemplate = !!vTemplate;
|
|
130
|
+
}
|
|
126
131
|
var aElements = oTemplate ? [oTemplate] : ElementUtil.getAggregation(oElement, sAggregationName);
|
|
127
132
|
|
|
128
133
|
aElements.forEach(function (oChildElement) {
|
|
@@ -133,8 +138,10 @@ function(
|
|
|
133
138
|
? getBindingsFromTemplateProperties(oChildElement, oRelevantContainerElement)
|
|
134
139
|
: getBindingsFromProperties(oChildElement, oParentDefaultModel));
|
|
135
140
|
}
|
|
141
|
+
|
|
142
|
+
// For children, templates should not be evaluated (because the delegate also does not consider them)
|
|
136
143
|
aBindings = aBindings.concat(
|
|
137
|
-
getBindings(oChildElement, oParentDefaultModel,
|
|
144
|
+
getBindings(oChildElement, oParentDefaultModel, false, undefined, oRelevantContainerElement)
|
|
138
145
|
);
|
|
139
146
|
}
|
|
140
147
|
});
|