@openui5/sap.ui.rta 1.94.0 → 1.95.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/.reuse/dep5 +1 -6
- package/THIRDPARTY.txt +3 -9
- 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 +73 -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/messagebundle_de.properties +5 -5
- 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 +52 -2
- 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 +14 -62
- 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 +4 -1
- package/src/sap/ui/rta/plugin/Selection.js +1 -1
- package/src/sap/ui/rta/plugin/Settings.js +15 -14
- package/src/sap/ui/rta/plugin/Split.js +1 -1
- package/src/sap/ui/rta/plugin/Stretch.js +133 -138
- package/src/sap/ui/rta/plugin/additionalElements/ActionExtractor.js +6 -6
- 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 +3 -3
- 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 +1 -1
- package/src/sap/ui/rta/service/Outline.js +109 -62
- 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/OverflowToolbarButton.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 +13 -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
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
Comment: these files belong to: lodash
|
|
310
310
|
|
|
311
311
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
312
|
-
Copyright:
|
|
312
|
+
Copyright: 2021 Mathias Nater
|
|
313
313
|
License: MIT
|
|
314
314
|
Comment: these files belong to: Hyphenopoly
|
|
315
315
|
|
|
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
|
|
|
347
347
|
License: BSD-2-Clause
|
|
348
348
|
Comment: these files belong to: Esprima
|
|
349
349
|
|
|
350
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
351
|
-
Copyright: 2006 Google Inc.
|
|
352
|
-
License: Apache-2.0
|
|
353
|
-
Comment: these files belong to: google-code-prettify
|
|
354
|
-
|
|
355
350
|
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
|
|
356
351
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
357
352
|
License: BSD-3-Clause
|
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.ui.codeeditor:
|
|
8
8
|
|
|
9
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
|
|
10
10
|
Copyright: 2010, Ajax.org B.V.
|
|
11
11
|
License: BSD-3-Clause
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -279,8 +279,8 @@ License: MIT
|
|
|
279
279
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
280
280
|
Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
|
|
281
281
|
|
|
282
|
-
Component: Hyphenopoly, version:
|
|
283
|
-
Copyright:
|
|
282
|
+
Component: Hyphenopoly, version: 3.4.0
|
|
283
|
+
Copyright: 2021 Mathias Nater
|
|
284
284
|
License: MIT
|
|
285
285
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
286
286
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
@@ -324,12 +324,6 @@ License: BSD-2-Clause
|
|
|
324
324
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
|
|
325
325
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
|
|
326
326
|
|
|
327
|
-
Component: google-code-prettify, version: 20130304
|
|
328
|
-
Copyright: 2006 Google Inc.
|
|
329
|
-
License: Apache-2.0
|
|
330
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
331
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
332
|
-
|
|
333
327
|
Component: highlight.js, version: 10.4.1
|
|
334
328
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
335
329
|
License: BSD-3-Clause
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.rta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.95.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.95.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.95.0",
|
|
19
|
+
"@openui5/sap.ui.dt": "1.95.0",
|
|
20
|
+
"@openui5/sap.ui.fl": "1.95.0",
|
|
21
|
+
"@openui5/sap.ui.layout": "1.95.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-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.
|
|
9
|
+
<version>1.95.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with RTA controls.</documentation>
|
|
12
12
|
|
package/src/sap/ui/rta/Client.js
CHANGED
|
@@ -107,7 +107,7 @@ function(
|
|
|
107
107
|
* @class The runtime authoring allows to adapt the fields of a running application.
|
|
108
108
|
* @extends sap.ui.base.ManagedObject
|
|
109
109
|
* @author SAP SE
|
|
110
|
-
* @version 1.
|
|
110
|
+
* @version 1.95.0
|
|
111
111
|
* @constructor
|
|
112
112
|
* @private
|
|
113
113
|
* @since 1.30
|
package/src/sap/ui/rta/Utils.js
CHANGED
|
@@ -12,6 +12,9 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/fl/LayerUtils",
|
|
13
13
|
"sap/ui/dt/OverlayUtil",
|
|
14
14
|
"sap/ui/dt/DOMUtil",
|
|
15
|
+
"sap/ui/dt/ElementUtil",
|
|
16
|
+
"sap/ui/dt/MetadataPropagationUtil",
|
|
17
|
+
"sap/ui/rta/util/hasStableId",
|
|
15
18
|
"sap/m/MessageBox",
|
|
16
19
|
"sap/ui/rta/util/BindingsExtractor",
|
|
17
20
|
"sap/base/util/restricted/_omit",
|
|
@@ -26,6 +29,9 @@ function(
|
|
|
26
29
|
FlexLayerUtils,
|
|
27
30
|
OverlayUtil,
|
|
28
31
|
DOMUtil,
|
|
32
|
+
ElementUtil,
|
|
33
|
+
MetadataPropagationUtil,
|
|
34
|
+
hasStableId,
|
|
29
35
|
MessageBox,
|
|
30
36
|
BindingsExtractor,
|
|
31
37
|
_omit,
|
|
@@ -40,7 +46,7 @@ function(
|
|
|
40
46
|
* @class Utility functionality to work with controls, e.g. iterate through aggregations, find parents, etc.
|
|
41
47
|
*
|
|
42
48
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
49
|
+
* @version 1.95.0
|
|
44
50
|
*
|
|
45
51
|
* @private
|
|
46
52
|
* @static
|
|
@@ -553,5 +559,71 @@ function(
|
|
|
553
559
|
}, {});
|
|
554
560
|
};
|
|
555
561
|
|
|
562
|
+
/**
|
|
563
|
+
* Checks drop ability for aggregation overlays
|
|
564
|
+
* @param {sap.ui.dt.Overlay} oAggregationOverlay Aggregation overlay object
|
|
565
|
+
* @param {sap.ui.dt.ElementOverlay} oMovedOverlay Overlay being moved/added
|
|
566
|
+
* @param {sap.ui.rta.Plugin} oPlugin RTA plugin calling this method
|
|
567
|
+
* @param {boolean} [bOverlayNotInDom] Flag defining if overlay is not in DOM
|
|
568
|
+
* @return {Promise.<boolean>} Promise with true value if overlay can be added to the aggregation overlay or false value if not.
|
|
569
|
+
* @override
|
|
570
|
+
*/
|
|
571
|
+
Utils.checkTargetZone = function(oAggregationOverlay, oMovedOverlay, oPlugin, bOverlayNotInDom) {
|
|
572
|
+
function fnHasMoveAction(oAggregationOverlay, oElement, oRelevantContainer, oPlugin) {
|
|
573
|
+
var oAggregationDTMetadata = oAggregationOverlay.getDesignTimeMetadata();
|
|
574
|
+
var oMoveAction = oAggregationDTMetadata.getAction("move", oElement);
|
|
575
|
+
if (!oMoveAction) {
|
|
576
|
+
return Promise.resolve(false);
|
|
577
|
+
}
|
|
578
|
+
// moveChangeHandler information is always located on the relevant container
|
|
579
|
+
return oPlugin.hasChangeHandler(oMoveAction.changeType, oRelevantContainer);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
return ElementUtil.checkTargetZone(oAggregationOverlay, oMovedOverlay, bOverlayNotInDom)
|
|
583
|
+
.then(function(bTargetZone) {
|
|
584
|
+
if (!bTargetZone) {
|
|
585
|
+
return false;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
var oMovedElement = oMovedOverlay.getElement();
|
|
589
|
+
var oTargetOverlay = oAggregationOverlay.getParent();
|
|
590
|
+
var oMovedRelevantContainer = oMovedOverlay.getRelevantContainer();
|
|
591
|
+
|
|
592
|
+
// the element or the parent overlay might be destroyed or not available
|
|
593
|
+
if (!oMovedElement || !oTargetOverlay) {
|
|
594
|
+
return false;
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
var oTargetElement = oTargetOverlay.getElement();
|
|
598
|
+
var oAggregationDtMetadata = oAggregationOverlay.getDesignTimeMetadata();
|
|
599
|
+
|
|
600
|
+
// determine target relevantContainer
|
|
601
|
+
var vTargetRelevantContainerAfterMove = MetadataPropagationUtil.getRelevantContainerForPropagation(oAggregationDtMetadata.getData(), oMovedElement);
|
|
602
|
+
vTargetRelevantContainerAfterMove = vTargetRelevantContainerAfterMove || oTargetElement;
|
|
603
|
+
|
|
604
|
+
// check for same relevantContainer
|
|
605
|
+
if (
|
|
606
|
+
!oMovedRelevantContainer
|
|
607
|
+
|| !vTargetRelevantContainerAfterMove
|
|
608
|
+
|| !hasStableId(oTargetOverlay)
|
|
609
|
+
|| oMovedRelevantContainer !== vTargetRelevantContainerAfterMove
|
|
610
|
+
) {
|
|
611
|
+
return false;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// check if binding context is the same
|
|
615
|
+
if (
|
|
616
|
+
// binding context is not relevant if the element is being moved inside its parent
|
|
617
|
+
oMovedOverlay.getParent().getElement() !== oTargetElement
|
|
618
|
+
&& !Utils.checkSourceTargetBindingCompatibility(oMovedElement, oTargetElement)
|
|
619
|
+
) {
|
|
620
|
+
return false;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
// check if movedOverlay is movable into the target aggregation
|
|
624
|
+
return fnHasMoveAction(oAggregationOverlay, oMovedElement, vTargetRelevantContainerAfterMove, oPlugin);
|
|
625
|
+
});
|
|
626
|
+
};
|
|
627
|
+
|
|
556
628
|
return Utils;
|
|
557
629
|
}, /* bExport= */true);
|
|
@@ -23,7 +23,7 @@ function() {
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.rta
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.95.0
|
|
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.
|
|
36
|
+
version: "1.95.0",
|
|
37
37
|
dependencies: ["sap.ui.core", "sap.m", "sap.ui.fl", "sap.ui.dt"],
|
|
38
38
|
types: [],
|
|
39
39
|
interfaces: [],
|
|
@@ -10,8 +10,8 @@ CTX_ADD_ELEMENTS_WITH_SUBMENU=Hinzuf\u00FCgen zu...
|
|
|
10
10
|
MULTIPLE_CONTROL_NAME=Inhalt
|
|
11
11
|
CTX_CUT=Ausschneiden
|
|
12
12
|
CTX_PASTE=Einf\u00FCgen
|
|
13
|
-
CTX_GROUP_FIELDS=
|
|
14
|
-
CTX_UNGROUP_FIELDS=
|
|
13
|
+
CTX_GROUP_FIELDS=Zusammenf\u00FCgen
|
|
14
|
+
CTX_UNGROUP_FIELDS=Aufteilen
|
|
15
15
|
CTX_CREATE_CONTAINER=Anlegen\: {0}
|
|
16
16
|
TITLE_CREATE_CONTAINER=Neu\: {0}
|
|
17
17
|
CTX_RENAME=Umbenennen
|
|
@@ -188,7 +188,7 @@ TXT_CHANGEVISUALIZATION_CHANGE_RENAME_FROM_TO=Name ge\u00E4ndert von ''{1}'' in
|
|
|
188
188
|
TXT_CHANGEVISUALIZATION_CHANGE_MOVE=Element {0} wurde an eine andere Position verschoben
|
|
189
189
|
TXT_CHANGEVISUALIZATION_CHANGE_REMOVE=Element {0} wurde entfernt
|
|
190
190
|
TXT_CHANGEVISUALIZATION_CHANGE_REVEAL=Element {0} wurde eingeblendet
|
|
191
|
-
TXT_CHANGEVISUALIZATION_CHANGE_COMBINE=Element {0} wurde
|
|
191
|
+
TXT_CHANGEVISUALIZATION_CHANGE_COMBINE=Element {0} wurde zusammengef\u00FCgt
|
|
192
192
|
TXT_CHANGEVISUALIZATION_CHANGE_SPLIT=Element {0} wurde aufgeteilt
|
|
193
193
|
TXT_CHANGEVISUALIZATION_CHANGE_CREATECONTAINER=Gruppe {0} wurde hinzugef\u00FCgt
|
|
194
194
|
TXT_CHANGEVISUALIZATION_CHANGE_ADDDELEGATEPROPERTY=Feld {0} wurde hinzugef\u00FCgt
|
|
@@ -211,8 +211,8 @@ TXT_CHANGEVISUALIZATION_OVERVIEW_RENAME=Umbenannte Elemente einblenden
|
|
|
211
211
|
BTN_CHANGEVISUALIZATION_OVERVIEW_RENAME=Umbenannte Elemente
|
|
212
212
|
TXT_CHANGEVISUALIZATION_OVERVIEW_ADD=Hinzugef\u00FCgte Elemente einblenden
|
|
213
213
|
BTN_CHANGEVISUALIZATION_OVERVIEW_ADD=Hinzugef\u00FCgte Elemente
|
|
214
|
-
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=
|
|
215
|
-
BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=
|
|
214
|
+
TXT_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Zusammengef\u00FCgte & aufgeteilte Elemente einblenden
|
|
215
|
+
BTN_CHANGEVISUALIZATION_OVERVIEW_COMBINESPLIT=Zusammengef\u00FCgte und aufgeteilte Elemente
|
|
216
216
|
TXT_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Entfernte Elemente einblenden
|
|
217
217
|
BTN_CHANGEVISUALIZATION_OVERVIEW_REMOVE=Entfernte Elemente
|
|
218
218
|
MSG_LOCAL_RESET_VARIANT_SAVE=Der Container wurde zur\u00FCckgesetzt und die Ansicht wurde automatisch gesichert.
|