@openui5/sap.ui.dt 1.96.39 → 1.96.41
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/package.json +2 -2
- package/src/sap/ui/dt/.library +1 -1
- package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +1 -1
- package/src/sap/ui/dt/AggregationOverlay.js +1 -1
- package/src/sap/ui/dt/ControlObserver.js +1 -1
- package/src/sap/ui/dt/DOMUtil.js +1 -1
- package/src/sap/ui/dt/DesignTime.js +46 -15
- package/src/sap/ui/dt/DesignTimeMetadata.js +1 -1
- package/src/sap/ui/dt/ElementDesignTimeMetadata.js +1 -1
- package/src/sap/ui/dt/ElementOverlay.js +1 -1
- package/src/sap/ui/dt/ElementUtil.js +1 -1
- package/src/sap/ui/dt/ManagedObjectObserver.js +1 -1
- package/src/sap/ui/dt/MetadataPropagationUtil.js +1 -1
- package/src/sap/ui/dt/MutationObserver.js +1 -1
- package/src/sap/ui/dt/Overlay.js +9 -1
- package/src/sap/ui/dt/OverlayRegistry.js +1 -1
- package/src/sap/ui/dt/OverlayUtil.js +4 -4
- package/src/sap/ui/dt/Plugin.js +1 -1
- package/src/sap/ui/dt/ScrollbarSynchronizer.js +1 -1
- package/src/sap/ui/dt/SelectionManager.js +1 -1
- package/src/sap/ui/dt/SelectionMode.js +1 -1
- package/src/sap/ui/dt/TaskManager.js +1 -1
- package/src/sap/ui/dt/TaskRunner.js +1 -1
- package/src/sap/ui/dt/Util.js +1 -1
- package/src/sap/ui/dt/enablement/ElementEnablementTest.js +1 -1
- package/src/sap/ui/dt/enablement/Test.js +1 -1
- package/src/sap/ui/dt/enablement/Util.js +1 -1
- package/src/sap/ui/dt/enablement/report/LibraryReport.js +1 -1
- package/src/sap/ui/dt/enablement/report/QUnitReport.js +1 -1
- package/src/sap/ui/dt/enablement/report/Statistic.js +1 -1
- package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +1 -1
- package/src/sap/ui/dt/enablement/report/Table.js +1 -1
- package/src/sap/ui/dt/enablement/report/TableRenderer.js +1 -1
- package/src/sap/ui/dt/library.js +2 -2
- package/src/sap/ui/dt/plugin/ContextMenu.js +1 -1
- package/src/sap/ui/dt/plugin/ControlDragDrop.js +1 -1
- package/src/sap/ui/dt/plugin/CutPaste.js +1 -1
- package/src/sap/ui/dt/plugin/DragDrop.js +1 -1
- package/src/sap/ui/dt/plugin/ElementMover.js +1 -1
- package/src/sap/ui/dt/plugin/MouseSelection.js +1 -1
- package/src/sap/ui/dt/plugin/TabHandling.js +1 -1
- package/src/sap/ui/dt/plugin/ToolHooks.js +1 -1
- package/src/sap/ui/dt/util/ZIndexManager.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.dt",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.41",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.dt",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.96.
|
|
17
|
+
"@openui5/sap.ui.core": "1.96.41"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/sap/ui/dt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.96.
|
|
9
|
+
<version>1.96.41</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
|
|
12
12
|
|
package/src/sap/ui/dt/DOMUtil.js
CHANGED
|
@@ -25,7 +25,9 @@ sap.ui.define([
|
|
|
25
25
|
"sap/ui/dt/SelectionMode",
|
|
26
26
|
"sap/base/util/includes",
|
|
27
27
|
"sap/ui/dt/DesignTimeStatus",
|
|
28
|
-
"sap/base/util/restricted/_curry"
|
|
28
|
+
"sap/base/util/restricted/_curry",
|
|
29
|
+
"sap/base/util/restricted/_difference",
|
|
30
|
+
"sap/base/util/isEmptyObject"
|
|
29
31
|
],
|
|
30
32
|
function (
|
|
31
33
|
ManagedObject,
|
|
@@ -48,7 +50,9 @@ function (
|
|
|
48
50
|
SelectionMode,
|
|
49
51
|
includes,
|
|
50
52
|
DesignTimeStatus,
|
|
51
|
-
_curry
|
|
53
|
+
_curry,
|
|
54
|
+
_difference,
|
|
55
|
+
isEmptyObject
|
|
52
56
|
) {
|
|
53
57
|
"use strict";
|
|
54
58
|
|
|
@@ -64,7 +68,7 @@ function (
|
|
|
64
68
|
* @extends sap.ui.base.ManagedObject
|
|
65
69
|
*
|
|
66
70
|
* @author SAP SE
|
|
67
|
-
* @version 1.96.
|
|
71
|
+
* @version 1.96.41
|
|
68
72
|
*
|
|
69
73
|
* @constructor
|
|
70
74
|
* @private
|
|
@@ -702,6 +706,7 @@ function (
|
|
|
702
706
|
* @property {boolean} [root="true"] - Proxy for "isRoot" property of sap.ui.dt.ElementOverlay constructor
|
|
703
707
|
* @property {object} [parentMetadata] - Map with metadata from the parent
|
|
704
708
|
* @property {boolean} [visible] - Proxy for "visible" property of sap.ui.dt.ElementOverlay constructor
|
|
709
|
+
* @property {boolean} [isPartOfTemplate] - Marker that overlay is part of template
|
|
705
710
|
* @private
|
|
706
711
|
*/
|
|
707
712
|
|
|
@@ -747,7 +752,7 @@ function (
|
|
|
747
752
|
.then(
|
|
748
753
|
// Fulfilled
|
|
749
754
|
function (oElementOverlay) {
|
|
750
|
-
return this._createChildren(oElementOverlay, mParams
|
|
755
|
+
return this._createChildren(oElementOverlay, mParams)
|
|
751
756
|
.then(function () {
|
|
752
757
|
// Remove overlay promise from the map only when it is "officially" available
|
|
753
758
|
// and registered everywhere (OverlayRegistry, Plugins, etc)
|
|
@@ -831,6 +836,7 @@ function (
|
|
|
831
836
|
aggregationName: sAggregationName,
|
|
832
837
|
element: oElement,
|
|
833
838
|
visible: !bIsTemplateAggregation,
|
|
839
|
+
isPartOfTemplate: bIsTemplateAggregation,
|
|
834
840
|
designTimeMetadata: new AggregationDesignTimeMetadata({
|
|
835
841
|
data: mAggregationMetadata
|
|
836
842
|
}),
|
|
@@ -853,6 +859,7 @@ function (
|
|
|
853
859
|
* @param {sap.ui.core.Element} mParams.element - Element for which ElementOverlay should be created
|
|
854
860
|
* @param {boolean} [mParams.root] - Proxy for "isRoot" property of sap.ui.dt.ElementOverlay constructor
|
|
855
861
|
* @param {boolean} [mParams.visible] - Proxy for "visible" property of sap.ui.dt.ElementOverlay constructor
|
|
862
|
+
* @param {boolean} [mParams.isPartOfTemplate] - Proxy for "isPartOfTemplate" property of sap.ui.dt.ElementOverlay constructor
|
|
856
863
|
* @param {object} [mParams.parentMetadata] - Map with metadata from the parent
|
|
857
864
|
* @return {Promise} returns Promise which is resolved when ElementOverlay is created and ready for use
|
|
858
865
|
* @private
|
|
@@ -869,6 +876,7 @@ function (
|
|
|
869
876
|
element: oElement,
|
|
870
877
|
isRoot: mParams.root,
|
|
871
878
|
visible: typeof mParams.visible !== "boolean" || mParams.visible, // TODO: check why defaultValue doesn't work if "undefined" specified
|
|
879
|
+
isPartOfTemplate: mParams.isPartOfTemplate,
|
|
872
880
|
metadataScope: this.getScope(),
|
|
873
881
|
designTimeMetadata: (
|
|
874
882
|
// If DesignTimeMetadata is an object of ElementDesignTimeMetadata, then it will be set
|
|
@@ -929,24 +937,45 @@ function (
|
|
|
929
937
|
}
|
|
930
938
|
|
|
931
939
|
/**
|
|
932
|
-
* Create children for specified ElementOverlay
|
|
940
|
+
* Create children for specified ElementOverlay.
|
|
933
941
|
* @param {sap.ui.dt.ElementOverlay} oElementOverlay - ElementOverlay to create children for
|
|
934
|
-
* @param {object}
|
|
935
|
-
* @
|
|
942
|
+
* @param {object} mParams - Property bag
|
|
943
|
+
* @param {object} [mParams.parentMetadata] - Parent aggregation metadata
|
|
944
|
+
* @param {boolean} [mParams.isPartOfTemplate] - Whether the overlay is part of an aggregation binding template
|
|
945
|
+
* @returns {Promise} Resolves when whole hierarchy of children for specified ElementOverlay is created
|
|
936
946
|
* @private
|
|
937
947
|
*/
|
|
938
|
-
DesignTime.prototype._createChildren = function (oElementOverlay,
|
|
948
|
+
DesignTime.prototype._createChildren = function (oElementOverlay, mParams) {
|
|
939
949
|
var aAggregationNames = oElementOverlay.getAggregationNames();
|
|
950
|
+
var mParentAggregationMetadata = mParams.parentMetadata;
|
|
940
951
|
var mAggregationBindingTemplates = getAggregationBindingTemplates(oElementOverlay, aAggregationNames);
|
|
941
952
|
var aTemplateAggregationNames = Object.keys(mAggregationBindingTemplates);
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
953
|
+
|
|
954
|
+
// Consider each aggregation binding template which is not nested inside an existing template structure as a root template
|
|
955
|
+
// Separate root templates and their children from the instances of the root template as well as all nested template instances
|
|
956
|
+
var bEncounteredTemplate = mParams.isPartOfTemplate !== undefined;
|
|
957
|
+
var bHasTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
|
|
958
|
+
var bIsRootTemplate = bHasTemplateAggregation && !bEncounteredTemplate;
|
|
959
|
+
var bIsPartOfTemplate = bIsRootTemplate ? true : mParams.isPartOfTemplate;
|
|
960
|
+
// Whether cloned instances are nested deeply in the root template structure
|
|
961
|
+
var bIsCloneInsideTemplate = bIsRootTemplate ? false : mParams.isPartOfTemplate;
|
|
962
|
+
|
|
963
|
+
// Avoid creating aggregation overlays for cloned template instances inside the template structure
|
|
964
|
+
if (bHasTemplateAggregation && bIsPartOfTemplate && !bIsRootTemplate) {
|
|
965
|
+
aAggregationNames = _difference(aAggregationNames, aTemplateAggregationNames);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
return this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, bIsPartOfTemplate, mAggregationBindingTemplates)
|
|
969
|
+
.then(this._createChildrenOverlays.bind(this, oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsCloneInsideTemplate));
|
|
946
970
|
};
|
|
947
971
|
|
|
948
|
-
DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, mAggregationBindingTemplates) {
|
|
949
|
-
var bIsTemplateAggregation =
|
|
972
|
+
DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsPartOfTemplate, mAggregationBindingTemplates) {
|
|
973
|
+
var bIsTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
|
|
974
|
+
// Nested template inside a clone of another template
|
|
975
|
+
if (bIsTemplateAggregation && !bIsPartOfTemplate) {
|
|
976
|
+
return Promise.resolve();
|
|
977
|
+
}
|
|
978
|
+
|
|
950
979
|
return Promise.all(
|
|
951
980
|
aAggregationNames.map(function (sAggregationName) {
|
|
952
981
|
var oElement = oElementOverlay.getElement();
|
|
@@ -975,7 +1004,8 @@ function (
|
|
|
975
1004
|
return this.createOverlay({
|
|
976
1005
|
element: oElement,
|
|
977
1006
|
root: false,
|
|
978
|
-
parentMetadata: mAggregationMetadata
|
|
1007
|
+
parentMetadata: mAggregationMetadata,
|
|
1008
|
+
isPartOfTemplate: bIsPartOfTemplate
|
|
979
1009
|
})
|
|
980
1010
|
// If creation of one of the children is aborted, we still continue our execution
|
|
981
1011
|
.catch(function (oError) {
|
|
@@ -989,6 +1019,7 @@ function (
|
|
|
989
1019
|
if (
|
|
990
1020
|
oChildElementOverlay instanceof ElementOverlay
|
|
991
1021
|
&& !oChildElementOverlay.bIsDestroyed
|
|
1022
|
+
&& !oChildElementOverlay.getParent()
|
|
992
1023
|
) {
|
|
993
1024
|
oAggregationOverlay.addChild(oChildElementOverlay, true);
|
|
994
1025
|
}
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
* @class The ManagedObjectObserver observes changes of a ManagedObject and propagates them via events.
|
|
26
26
|
* @extends sap.ui.base.ManagedObject
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.96.
|
|
28
|
+
* @version 1.96.41
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.30
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class The MutationObserver observes changes of a ManagedObject and propagates them via events.
|
|
31
31
|
* @extends sap.ui.base.ManagedObject
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.96.
|
|
33
|
+
* @version 1.96.41
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.30
|
package/src/sap/ui/dt/Overlay.js
CHANGED
|
@@ -46,7 +46,7 @@ function (
|
|
|
46
46
|
* @extends sap.ui.core.Element
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.96.
|
|
49
|
+
* @version 1.96.41
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
@@ -81,6 +81,14 @@ function (
|
|
|
81
81
|
isRoot: {
|
|
82
82
|
type: "boolean",
|
|
83
83
|
defaultValue: false
|
|
84
|
+
},
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Whether overlay is part of an aggregation binding template
|
|
88
|
+
*/
|
|
89
|
+
isPartOfTemplate: {
|
|
90
|
+
type: "boolean",
|
|
91
|
+
defaultValue: false
|
|
84
92
|
}
|
|
85
93
|
},
|
|
86
94
|
associations: {
|
|
@@ -22,7 +22,7 @@ function(
|
|
|
22
22
|
*
|
|
23
23
|
* @class Utility functionality to work with overlays
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.96.
|
|
25
|
+
* @version 1.96.41
|
|
26
26
|
* @private
|
|
27
27
|
* @static
|
|
28
28
|
* @since 1.30
|
|
@@ -420,9 +420,9 @@ function(
|
|
|
420
420
|
return aFlattenedArray.concat(oCurrentValue);
|
|
421
421
|
}, []);
|
|
422
422
|
} else {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
423
|
+
var sAggregationName = oOverlay.getParentAggregationOverlay().getAggregationName();
|
|
424
|
+
var oAggregationOverlay = oParentOverlay.getAggregationOverlay(sAggregationName);
|
|
425
|
+
aRelevantOverlays = (oAggregationOverlay && oAggregationOverlay.getChildren()) || [];
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
428
|
|
package/src/sap/ui/dt/Plugin.js
CHANGED
|
@@ -16,7 +16,7 @@ sap.ui.define(function() {
|
|
|
16
16
|
* @namespace
|
|
17
17
|
* @name sap.ui.dt.SelectionMode
|
|
18
18
|
* @author SAP SE
|
|
19
|
-
* @version 1.96.
|
|
19
|
+
* @version 1.96.41
|
|
20
20
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
21
21
|
* @private
|
|
22
22
|
*/
|
package/src/sap/ui/dt/Util.js
CHANGED
package/src/sap/ui/dt/library.js
CHANGED
|
@@ -23,7 +23,7 @@ function (
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @name sap.ui.dt
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.96.
|
|
26
|
+
* @version 1.96.41
|
|
27
27
|
* @since 1.30
|
|
28
28
|
* @experimental This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
29
29
|
* @private
|
|
@@ -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.dt",
|
|
35
|
-
version: "1.96.
|
|
35
|
+
version: "1.96.41",
|
|
36
36
|
dependencies: ["sap.ui.core"],
|
|
37
37
|
types: [
|
|
38
38
|
"sap.ui.dt.SelectionMode"
|
|
@@ -34,7 +34,7 @@ sap.ui.define([
|
|
|
34
34
|
* @class The ContextMenu registers event handler to open the context menu. Menu entries can dynamically be added
|
|
35
35
|
* @extends sap.ui.dt.Plugin
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.96.
|
|
37
|
+
* @version 1.96.41
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
40
40
|
* @since 1.53
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @class The ControlDragDrop enables D&D functionality for the overlays based on aggregation types
|
|
27
27
|
* @extends sap.ui.dt.plugin.DragDrop
|
|
28
28
|
* @author SAP SE
|
|
29
|
-
* @version 1.96.
|
|
29
|
+
* @version 1.96.41
|
|
30
30
|
* @constructor
|
|
31
31
|
* @private
|
|
32
32
|
* @since 1.30
|
|
@@ -33,7 +33,7 @@ sap.ui.define([
|
|
|
33
33
|
* @class The CutPaste enables Cut & Paste functionality for the overlays based on aggregation types
|
|
34
34
|
* @extends sap.ui.dt.Plugin
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.96.
|
|
36
|
+
* @version 1.96.41
|
|
37
37
|
* @constructor
|
|
38
38
|
* @private
|
|
39
39
|
* @since 1.34
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class The ElementMover enables movement of UI5 elements based on aggregation types, which can be used by drag and
|
|
31
31
|
* drop or cut and paste behavior.
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.96.
|
|
33
|
+
* @version 1.96.41
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|