@openui5/sap.ui.dt 1.131.1 → 1.132.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/.eslintrc.json +1 -2
- package/THIRDPARTY.txt +1 -1
- package/package.json +2 -2
- package/src/sap/ui/dt/.library +2 -2
- package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +2 -2
- package/src/sap/ui/dt/AggregationOverlay.js +4 -4
- package/src/sap/ui/dt/ControlObserver.js +2 -2
- package/src/sap/ui/dt/DOMUtil.js +2 -2
- package/src/sap/ui/dt/DesignTime.js +10 -7
- package/src/sap/ui/dt/DesignTimeMetadata.js +17 -10
- package/src/sap/ui/dt/DesignTimeStatus.js +1 -1
- package/src/sap/ui/dt/ElementDesignTimeMetadata.js +2 -2
- package/src/sap/ui/dt/ElementOverlay.js +41 -42
- package/src/sap/ui/dt/ElementUtil.js +2 -2
- package/src/sap/ui/dt/ManagedObjectObserver.js +2 -2
- package/src/sap/ui/dt/MetadataPropagationUtil.js +2 -2
- package/src/sap/ui/dt/MutationObserver.js +2 -2
- package/src/sap/ui/dt/Overlay.js +97 -81
- package/src/sap/ui/dt/OverlayRegistry.js +2 -2
- package/src/sap/ui/dt/OverlayUtil.js +2 -2
- package/src/sap/ui/dt/Plugin.js +2 -2
- package/src/sap/ui/dt/ScrollbarSynchronizer.js +2 -2
- package/src/sap/ui/dt/SelectionManager.js +2 -2
- package/src/sap/ui/dt/SelectionMode.js +2 -2
- package/src/sap/ui/dt/TaskManager.js +2 -2
- package/src/sap/ui/dt/TaskRunner.js +2 -2
- package/src/sap/ui/dt/Util.js +2 -2
- package/src/sap/ui/dt/designtime/notAdaptable.designtime.js +1 -1
- package/src/sap/ui/dt/designtime/notAdaptableTree.designtime.js +1 -1
- package/src/sap/ui/dt/designtime/notAdaptableVisibility.designtime.js +1 -1
- package/src/sap/ui/dt/enablement/ElementEnablementTest.js +6 -6
- package/src/sap/ui/dt/enablement/Test.js +2 -2
- package/src/sap/ui/dt/enablement/Util.js +5 -5
- package/src/sap/ui/dt/enablement/elementDesigntimeTest.js +1 -1
- package/src/sap/ui/dt/enablement/libraryTest.js +1 -1
- package/src/sap/ui/dt/enablement/report/LibraryReport.js +2 -2
- package/src/sap/ui/dt/enablement/report/QUnitReport.js +2 -2
- package/src/sap/ui/dt/enablement/report/Statistic.js +2 -2
- package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +2 -2
- package/src/sap/ui/dt/enablement/report/Table.js +2 -2
- package/src/sap/ui/dt/enablement/report/TableRenderer.js +2 -2
- package/src/sap/ui/dt/library.js +3 -3
- package/src/sap/ui/dt/plugin/ContextMenu.js +2 -2
- package/src/sap/ui/dt/plugin/ControlDragDrop.js +2 -2
- package/src/sap/ui/dt/plugin/CutPaste.js +2 -2
- package/src/sap/ui/dt/plugin/DragDrop.js +2 -2
- package/src/sap/ui/dt/plugin/ElementMover.js +2 -2
- package/src/sap/ui/dt/plugin/MouseSelection.js +2 -2
- package/src/sap/ui/dt/plugin/ToolHooks.js +2 -2
- package/src/sap/ui/dt/themes/base/Overlay.less +1 -1
- package/src/sap/ui/dt/themes/base/library.source.less +1 -1
- package/src/sap/ui/dt/themes/sap_hcb/library.source.less +1 -1
- package/src/sap/ui/dt/util/ZIndexManager.js +2 -2
- package/src/sap/ui/dt/util/_createPromise.js +1 -1
package/.eslintrc.json
CHANGED
|
@@ -49,8 +49,7 @@
|
|
|
49
49
|
}],
|
|
50
50
|
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
51
51
|
"quotes": ["error", "double", {
|
|
52
|
-
"avoidEscape": true
|
|
53
|
-
"allowTemplateLiterals": true
|
|
52
|
+
"avoidEscape": true
|
|
54
53
|
}],
|
|
55
54
|
"no-unsafe-optional-chaining": "error",
|
|
56
55
|
"prefer-const": ["error", { "ignoreReadBeforeAssign": true }],
|
package/THIRDPARTY.txt
CHANGED
|
@@ -468,7 +468,7 @@ License: Apache-2.0
|
|
|
468
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
469
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
470
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
471
|
+
Component: SAP Theming Base Content, version: 11.24.0
|
|
472
472
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
473
|
License: Apache-2.0
|
|
474
474
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.dt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.132.0",
|
|
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.
|
|
17
|
+
"@openui5/sap.ui.core": "1.132.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/sap/ui/dt/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.ui.dt</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
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.
|
|
9
|
+
<version>1.132.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
|
|
12
12
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ function(
|
|
|
23
23
|
* @extends sap.ui.dt.DesignTimeMetadata
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.132.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ function(
|
|
|
33
33
|
* @extends sap.ui.dt.Overlay
|
|
34
34
|
*
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.132.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -218,14 +218,14 @@ function(
|
|
|
218
218
|
Overlay.prototype._setPosition.apply(this, aArgs);
|
|
219
219
|
|
|
220
220
|
if (oGeometry.domRef && !Util.isInteger(this.getScrollContainerId())) {
|
|
221
|
-
this._handleOverflowScroll(oGeometry, this
|
|
221
|
+
this._handleOverflowScroll(oGeometry, this.getDomRef(), this.getParent(), bForceScrollbarSync);
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
|
|
225
225
|
/**
|
|
226
226
|
* Returns a DOM representation for an aggregation, associated with this AggregationOverlay, if it can be found or undefined
|
|
227
227
|
* Representation is searched in DOM based on DesignTimeMetadata defined for the parent Overlay
|
|
228
|
-
* @return {
|
|
228
|
+
* @return {HTMLElement} Associated with this AggregationOverlay DOM Element or undefined, if it can't be found
|
|
229
229
|
* @public
|
|
230
230
|
*/
|
|
231
231
|
AggregationOverlay.prototype.getAssociatedDomRef = function() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ function(ManagedObjectObserver) {
|
|
|
22
22
|
* @extends sap.ui.dt.ManagedObjectObserver
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.132.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
package/src/sap/ui/dt/DOMUtil.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -25,7 +25,7 @@ sap.ui.define([
|
|
|
25
25
|
*
|
|
26
26
|
* @namespace
|
|
27
27
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
28
|
+
* @version 1.132.0
|
|
29
29
|
*
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.30
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -28,7 +28,8 @@ sap.ui.define([
|
|
|
28
28
|
"sap/ui/dt/TaskManager",
|
|
29
29
|
"sap/ui/dt/TaskRunner",
|
|
30
30
|
"sap/ui/dt/util/ZIndexManager",
|
|
31
|
-
"sap/ui/dt/Util"
|
|
31
|
+
"sap/ui/dt/Util",
|
|
32
|
+
"sap/ui/thirdparty/jquery"
|
|
32
33
|
], function(
|
|
33
34
|
_curry,
|
|
34
35
|
_difference,
|
|
@@ -53,7 +54,8 @@ sap.ui.define([
|
|
|
53
54
|
TaskManager,
|
|
54
55
|
TaskRunner,
|
|
55
56
|
ZIndexManager,
|
|
56
|
-
Util
|
|
57
|
+
Util,
|
|
58
|
+
jQuery
|
|
57
59
|
) {
|
|
58
60
|
"use strict";
|
|
59
61
|
|
|
@@ -69,7 +71,7 @@ sap.ui.define([
|
|
|
69
71
|
* @extends sap.ui.base.ManagedObject
|
|
70
72
|
*
|
|
71
73
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
74
|
+
* @version 1.132.0
|
|
73
75
|
*
|
|
74
76
|
* @constructor
|
|
75
77
|
* @private
|
|
@@ -320,8 +322,8 @@ sap.ui.define([
|
|
|
320
322
|
// Toggle root overlays visibility when property "enabled" is changed
|
|
321
323
|
this.attachEvent("enabledChanged", function(oEvent) {
|
|
322
324
|
var bValue = oEvent.getParameter("value");
|
|
323
|
-
var
|
|
324
|
-
|
|
325
|
+
var oOverlayContainer = Overlay.getOverlayContainer();
|
|
326
|
+
oOverlayContainer.style.display = bValue ? "block" : "none";
|
|
325
327
|
|
|
326
328
|
// Ensure that the overlays are correct when the mode is enabled
|
|
327
329
|
this.getRootElements().forEach(function(oRootElement) {
|
|
@@ -632,7 +634,8 @@ sap.ui.define([
|
|
|
632
634
|
})
|
|
633
635
|
.then(
|
|
634
636
|
function(oElementOverlay) {
|
|
635
|
-
Overlay.
|
|
637
|
+
// TODO remove jQuery when Overlay.render() returns DOM Element
|
|
638
|
+
jQuery(Overlay.getOverlayContainer()).append(oElementOverlay.render());
|
|
636
639
|
this._oTaskManager.add({
|
|
637
640
|
type: "applyStyles",
|
|
638
641
|
callbackFn: oElementOverlay.applyStyles.bind(oElementOverlay),
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
+
"sap/base/i18n/ResourceBundle",
|
|
8
9
|
"sap/base/util/merge",
|
|
9
10
|
"sap/base/util/ObjectPath",
|
|
10
11
|
"sap/ui/base/ManagedObject",
|
|
11
12
|
"sap/ui/core/Lib",
|
|
12
|
-
"sap/ui/dt/ElementUtil",
|
|
13
13
|
"sap/ui/dt/DOMUtil",
|
|
14
|
-
"sap/ui/
|
|
14
|
+
"sap/ui/dt/ElementUtil"
|
|
15
15
|
], function(
|
|
16
|
+
ResourceBundle,
|
|
16
17
|
merge,
|
|
17
18
|
ObjectPath,
|
|
18
19
|
ManagedObject,
|
|
19
20
|
Lib,
|
|
20
|
-
ElementUtil,
|
|
21
21
|
DOMUtil,
|
|
22
|
-
|
|
22
|
+
ElementUtil
|
|
23
23
|
) {
|
|
24
24
|
"use strict";
|
|
25
25
|
|
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @extends sap.ui.base.ManagedObject
|
|
46
46
|
*
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.132.0
|
|
49
49
|
*
|
|
50
50
|
* @constructor
|
|
51
51
|
* @private
|
|
@@ -128,7 +128,7 @@ sap.ui.define([
|
|
|
128
128
|
* @param {sap.ui.core.Element} oElement Element we need DomRef for
|
|
129
129
|
* @param {string|function} vDomRef Selector or Function for fetchting DomRef
|
|
130
130
|
* @param {string} [sAggregationName] Aggregation Name
|
|
131
|
-
* @return {
|
|
131
|
+
* @return {HTMLElement|HTMLElement[]} Returns one or multiple associated DOM references
|
|
132
132
|
* @public
|
|
133
133
|
*/
|
|
134
134
|
DesignTimeMetadata.prototype.getAssociatedDomRef = function(...aArgs) {
|
|
@@ -143,13 +143,20 @@ sap.ui.define([
|
|
|
143
143
|
|
|
144
144
|
if (typeof (vDomRef) === "function") {
|
|
145
145
|
try {
|
|
146
|
+
// TODO: replace jQuery when we know that vDomRef will always return a DOM Element
|
|
146
147
|
var vRes = vDomRef(...aArgs);
|
|
147
|
-
|
|
148
|
+
// convert Nodelist and jQuery-Selection to an Array
|
|
149
|
+
if ((vRes.jquery && vRes.length > 1) || vRes instanceof NodeList) {
|
|
150
|
+
vRes = Array.from(vRes);
|
|
151
|
+
}
|
|
152
|
+
// we return an Array or a Node
|
|
153
|
+
return vRes.jquery ? vRes.get(0) : vRes;
|
|
148
154
|
} catch (error) {
|
|
149
155
|
return undefined;
|
|
150
156
|
}
|
|
151
157
|
} else if (oElementDomRef && typeof (vDomRef) === "string") {
|
|
152
|
-
|
|
158
|
+
// TODO: replace jQuery when we know that getDomRefForCSSSelector will always return a DOM Element
|
|
159
|
+
return DOMUtil.getDomRefForCSSSelector(oElementDomRef, vDomRef).get(0);
|
|
153
160
|
}
|
|
154
161
|
}
|
|
155
162
|
return undefined;
|
|
@@ -262,7 +269,7 @@ sap.ui.define([
|
|
|
262
269
|
};
|
|
263
270
|
|
|
264
271
|
DesignTimeMetadata.prototype._getTextFromLibrary = function(sLibraryName, sKey, aArgs) {
|
|
265
|
-
|
|
272
|
+
let oLibResourceBundle = ResourceBundle.create({ bundleName: `${sLibraryName}/designtime/messagebundle` });
|
|
266
273
|
if (oLibResourceBundle && oLibResourceBundle.hasText(sKey)) {
|
|
267
274
|
return oLibResourceBundle.getText(sKey, aArgs);
|
|
268
275
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.dt.DesignTimeMetadata
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.132.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.ui.dt.Overlay
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.132.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @private
|
|
@@ -232,10 +232,10 @@ sap.ui.define([
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
var iIndex = mProperties.index;
|
|
235
|
-
var
|
|
235
|
+
var oScrollContainer = this.getScrollContainerById(iIndex);
|
|
236
236
|
var oNewScrollContainer = this.getScrollContainers(true)[iIndex];
|
|
237
237
|
var aAggregationsCopy = [].concat(oNewScrollContainer.aggregations);
|
|
238
|
-
var aCurrentScrollContainerChildren =
|
|
238
|
+
var aCurrentScrollContainerChildren = Array.from(oScrollContainer.querySelectorAll(":scope >:not(.sapUiDtDummyScrollContainer)"));
|
|
239
239
|
|
|
240
240
|
// first check if the current scroll container content is correct, and if not move it to the children div
|
|
241
241
|
aCurrentScrollContainerChildren.forEach(function(oAggregationNode) {
|
|
@@ -243,7 +243,9 @@ sap.ui.define([
|
|
|
243
243
|
if (oNewScrollContainer.aggregations.includes(sAggregationName)) {
|
|
244
244
|
aAggregationsCopy.splice(aAggregationsCopy.indexOf(sAggregationName), 1);
|
|
245
245
|
} else {
|
|
246
|
-
|
|
246
|
+
oScrollContainer.removeChild(oAggregationNode);
|
|
247
|
+
const oChildOverlay = OverlayRegistry.getOverlay(oAggregationNode.getAttribute("id"));
|
|
248
|
+
oChildOverlay.setScrollContainerId(undefined);
|
|
247
249
|
DOMUtil.appendChild(this.getChildrenDomRef(), oAggregationNode);
|
|
248
250
|
}
|
|
249
251
|
}.bind(this));
|
|
@@ -252,7 +254,7 @@ sap.ui.define([
|
|
|
252
254
|
aAggregationsCopy.forEach(function(sAggregationName) {
|
|
253
255
|
var oAggregationNode = this.getAggregationOverlay(sAggregationName).getDomRef();
|
|
254
256
|
this.getChildrenDomRef().removeChild(oAggregationNode);
|
|
255
|
-
DOMUtil.appendChild(
|
|
257
|
+
DOMUtil.appendChild(oScrollContainer, oAggregationNode);
|
|
256
258
|
}.bind(this));
|
|
257
259
|
};
|
|
258
260
|
|
|
@@ -268,8 +270,8 @@ sap.ui.define([
|
|
|
268
270
|
|
|
269
271
|
ElementOverlay.prototype._subscribeToMutationObserver = function(bIsRoot) {
|
|
270
272
|
var oMutationObserver = Overlay.getMutationObserver();
|
|
271
|
-
var
|
|
272
|
-
this._sObservableNodeId =
|
|
273
|
+
var oDomRef = this.getAssociatedDomRef();
|
|
274
|
+
this._sObservableNodeId = oDomRef?.id;
|
|
273
275
|
|
|
274
276
|
if (this._sObservableNodeId) {
|
|
275
277
|
oMutationObserver.registerHandler(this._sObservableNodeId, this._domChangedCallback.bind(this), bIsRoot);
|
|
@@ -382,23 +384,19 @@ sap.ui.define([
|
|
|
382
384
|
|
|
383
385
|
this.getScrollContainers().forEach(function(mScrollContainer, iIndex) {
|
|
384
386
|
// TODO: write Unit test for the case when getAssociatedDomRef() returns undefined (domRef func returns undefined)
|
|
385
|
-
var
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
var $ScrollContainerOverlayDomRef = this.getScrollContainerById(iIndex);
|
|
390
|
-
|
|
391
|
-
if ($ScrollContainerDomRef.length) {
|
|
392
|
-
var oScrollContainerDomRef = $ScrollContainerDomRef.get(0);
|
|
387
|
+
var oScrollContainerDomRef = this.getDesignTimeMetadata().getAssociatedDomRef(this.getElement(), mScrollContainer.domRef) || undefined;
|
|
388
|
+
var oScrollContainerOverlayDomRef = this.getScrollContainerById(iIndex);
|
|
389
|
+
|
|
390
|
+
if (oScrollContainerDomRef) {
|
|
393
391
|
var mScrollContainerGeometry = DOMUtil.getGeometry(oScrollContainerDomRef);
|
|
394
|
-
this._ensureVisibility(
|
|
395
|
-
this._setSize(
|
|
396
|
-
Overlay.prototype._setPosition.call(this,
|
|
397
|
-
this._handleOverflowScroll(mScrollContainerGeometry,
|
|
398
|
-
this._setZIndex(mScrollContainerGeometry,
|
|
399
|
-
this._setClipPath(
|
|
392
|
+
this._ensureVisibility(oScrollContainerOverlayDomRef);
|
|
393
|
+
this._setSize(oScrollContainerOverlayDomRef, mScrollContainerGeometry);
|
|
394
|
+
Overlay.prototype._setPosition.call(this, oScrollContainerOverlayDomRef, mScrollContainerGeometry, this.getDomRef());
|
|
395
|
+
this._handleOverflowScroll(mScrollContainerGeometry, oScrollContainerOverlayDomRef, this, bForceScrollbarSync);
|
|
396
|
+
this._setZIndex(mScrollContainerGeometry, oScrollContainerOverlayDomRef);
|
|
397
|
+
this._setClipPath(oScrollContainerOverlayDomRef, oScrollContainerDomRef);
|
|
400
398
|
} else {
|
|
401
|
-
|
|
399
|
+
oScrollContainerOverlayDomRef.style.display = "none";
|
|
402
400
|
}
|
|
403
401
|
}, this);
|
|
404
402
|
};
|
|
@@ -409,11 +407,11 @@ sap.ui.define([
|
|
|
409
407
|
this._sortChildren(this.getChildrenDomRef());
|
|
410
408
|
if (!this.bIsDestroyed) {
|
|
411
409
|
this.getScrollContainers().forEach(function(mScrollContainer, iIndex) {
|
|
412
|
-
var
|
|
413
|
-
var
|
|
410
|
+
var oScrollContainerDomRef = this.getDesignTimeMetadata().getAssociatedDomRef(this.getElement(), mScrollContainer.domRef);
|
|
411
|
+
var oScrollContainerOverlayDomRef = this.getScrollContainerById(iIndex);
|
|
414
412
|
|
|
415
|
-
if (
|
|
416
|
-
this._sortChildren(
|
|
413
|
+
if (oScrollContainerDomRef) {
|
|
414
|
+
this._sortChildren(oScrollContainerOverlayDomRef);
|
|
417
415
|
}
|
|
418
416
|
}, this);
|
|
419
417
|
}
|
|
@@ -495,7 +493,7 @@ sap.ui.define([
|
|
|
495
493
|
// drops into in different event loops (JS execution cycles) which leads to invalid intermediate position
|
|
496
494
|
// on the screen with following sorting. That said, sorting happens for intermediate state and then for real
|
|
497
495
|
// state of the elements in viewport once again. Thus, excluding these elements allow us to avoid 2 extra sortings.
|
|
498
|
-
var aChildren =
|
|
496
|
+
var aChildren = Array.from(oContainer.querySelectorAll(":scope >:not(.sapUiDtDummyScrollContainer)"));
|
|
499
497
|
var aSorted = aChildren.slice().sort(compareChildren);
|
|
500
498
|
|
|
501
499
|
var bOrderChanged = aChildren.some(function(oChild, iIndex) {
|
|
@@ -518,7 +516,8 @@ sap.ui.define([
|
|
|
518
516
|
if (this._bInit) {
|
|
519
517
|
if (this.isRoot()) {
|
|
520
518
|
if (!this.isRendered()) {
|
|
521
|
-
Overlay.
|
|
519
|
+
// TODO remove jQuery when Overlay.render() returns DOM Element
|
|
520
|
+
jQuery(Overlay.getOverlayContainer()).append(this.render());
|
|
522
521
|
this.applyStyles();
|
|
523
522
|
} else {
|
|
524
523
|
Log.error("sap.ui.dt.ElementOverlay: overlay is already rendered and can\'t be placed in overlay container. Isn\'t it already there?");
|
|
@@ -591,10 +590,9 @@ sap.ui.define([
|
|
|
591
590
|
var a$Children = Overlay.prototype._renderChildren.apply(this, aArgs);
|
|
592
591
|
|
|
593
592
|
this.getScrollContainers().forEach(function(mScrollContainer, iIndex) {
|
|
594
|
-
var
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
});
|
|
593
|
+
var oScrollContainer = document.createElement("div");
|
|
594
|
+
oScrollContainer.classList.add(S_SCROLLCONTAINER_CLASSNAME);
|
|
595
|
+
oScrollContainer.setAttribute("data-sap-ui-dt-scrollContainerIndex", iIndex);
|
|
598
596
|
|
|
599
597
|
if (mScrollContainer.aggregations) {
|
|
600
598
|
_intersection( // filters ignored aggregations
|
|
@@ -604,12 +602,13 @@ sap.ui.define([
|
|
|
604
602
|
var oAggregationOverlay = this.getAggregationOverlay(sAggregationName);
|
|
605
603
|
var iAggregationOverlayIndex = a$Children.indexOf(oAggregationOverlay.$());
|
|
606
604
|
oAggregationOverlay.setScrollContainerId(iIndex);
|
|
607
|
-
|
|
605
|
+
oScrollContainer.append(a$Children[iAggregationOverlayIndex].get(0));
|
|
608
606
|
a$Children.splice(iAggregationOverlayIndex, 1);
|
|
609
607
|
}, this);
|
|
610
608
|
}
|
|
611
609
|
|
|
612
|
-
|
|
610
|
+
// TODO remove jQuery when Overlay._renderChildren / .render() returns DOM Element
|
|
611
|
+
a$Children.push(jQuery(oScrollContainer));
|
|
613
612
|
}, this);
|
|
614
613
|
|
|
615
614
|
return a$Children;
|
|
@@ -618,15 +617,15 @@ sap.ui.define([
|
|
|
618
617
|
/**
|
|
619
618
|
* Gets DOM Node of the scroll container by its ID
|
|
620
619
|
* @param {number} iIndex - index of the scroll container
|
|
621
|
-
* @return {
|
|
620
|
+
* @return {HTMLElement} - returns DOM Node of scroll container by its index
|
|
622
621
|
*/
|
|
623
622
|
ElementOverlay.prototype.getScrollContainerById = function(iIndex) {
|
|
624
|
-
return
|
|
623
|
+
return this.getChildrenDomRef().querySelectorAll(`:scope > .${S_SCROLLCONTAINER_CLASSNAME}[data-sap-ui-dt-scrollcontainerindex="${iIndex}"]`)[0];
|
|
625
624
|
};
|
|
626
625
|
|
|
627
626
|
/**
|
|
628
|
-
* Returns a
|
|
629
|
-
* @return {
|
|
627
|
+
* Returns a Object reference for the associated Element or undefined, if it can't be found
|
|
628
|
+
* @return {HTMLElement} object or undefined
|
|
630
629
|
* @public
|
|
631
630
|
*/
|
|
632
631
|
ElementOverlay.prototype.getAssociatedDomRef = function() {
|
|
@@ -636,7 +635,7 @@ sap.ui.define([
|
|
|
636
635
|
oDomRef ||= ElementUtil.getDomRef(this.getElement());
|
|
637
636
|
|
|
638
637
|
if (oDomRef) {
|
|
639
|
-
return
|
|
638
|
+
return oDomRef;
|
|
640
639
|
}
|
|
641
640
|
return undefined;
|
|
642
641
|
};
|
|
@@ -726,7 +725,7 @@ sap.ui.define([
|
|
|
726
725
|
this.setProperty("movable", bMovable);
|
|
727
726
|
this.fireMovableChange({movable: bMovable});
|
|
728
727
|
|
|
729
|
-
this
|
|
728
|
+
this.getDomRef()?.[bMovable ? "setAttribute" : "removeAttribute"]("draggable", bMovable);
|
|
730
729
|
}
|
|
731
730
|
|
|
732
731
|
return this;
|
|
@@ -1009,7 +1008,7 @@ sap.ui.define([
|
|
|
1009
1008
|
if (aScrollContainers.length) {
|
|
1010
1009
|
iSize = _max(
|
|
1011
1010
|
aScrollContainers.map(function(mScrollContainer, iIndex) {
|
|
1012
|
-
var mGeometry = DOMUtil.getGeometry(this.getScrollContainerById(iIndex)
|
|
1011
|
+
var mGeometry = DOMUtil.getGeometry(this.getScrollContainerById(iIndex));
|
|
1013
1012
|
return mGeometry.size[sType];
|
|
1014
1013
|
}, this)
|
|
1015
1014
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
*
|
|
30
30
|
* @namespace
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.132.0
|
|
33
33
|
*
|
|
34
34
|
* @private
|
|
35
35
|
* @since 1.30
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
* @class The ManagedObjectObserver observes changes of a ManagedObject and propagates them via events.
|
|
24
24
|
* @extends sap.ui.base.ManagedObject
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.132.0
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.30
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
*
|
|
22
22
|
* @namespace
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.132.0
|
|
25
25
|
* @private
|
|
26
26
|
* @since 1.54
|
|
27
27
|
* @alias sap.ui.dt.MetadataPropagationUtil
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class The MutationObserver observes changes of a ManagedObject and propagates them via events.
|
|
33
33
|
* @extends sap.ui.base.ManagedObject
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.132.0
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.30
|