@openui5/sap.ui.dt 1.115.1 → 1.116.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 +33 -2
- package/.reuse/dep5 +0 -5
- package/THIRDPARTY.txt +1 -7
- package/package.json +2 -2
- package/src/sap/ui/dt/.library +1 -1
- package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +2 -2
- package/src/sap/ui/dt/AggregationOverlay.js +13 -13
- package/src/sap/ui/dt/ControlObserver.js +1 -1
- package/src/sap/ui/dt/DOMUtil.js +3 -4
- package/src/sap/ui/dt/DesignTime.js +238 -230
- package/src/sap/ui/dt/DesignTimeMetadata.js +26 -23
- package/src/sap/ui/dt/DesignTimeStatus.js +2 -2
- package/src/sap/ui/dt/ElementDesignTimeMetadata.js +2 -2
- package/src/sap/ui/dt/ElementOverlay.js +74 -74
- package/src/sap/ui/dt/ElementUtil.js +10 -10
- package/src/sap/ui/dt/ManagedObjectObserver.js +3 -3
- package/src/sap/ui/dt/MetadataPropagationUtil.js +10 -10
- package/src/sap/ui/dt/MutationObserver.js +54 -46
- package/src/sap/ui/dt/Overlay.js +47 -48
- package/src/sap/ui/dt/OverlayRegistry.js +10 -10
- package/src/sap/ui/dt/OverlayUtil.js +2 -2
- package/src/sap/ui/dt/Plugin.js +10 -10
- package/src/sap/ui/dt/ScrollbarSynchronizer.js +30 -30
- package/src/sap/ui/dt/SelectionManager.js +55 -38
- package/src/sap/ui/dt/SelectionMode.js +1 -1
- package/src/sap/ui/dt/TaskManager.js +22 -22
- package/src/sap/ui/dt/TaskRunner.js +16 -16
- package/src/sap/ui/dt/Util.js +15 -15
- package/src/sap/ui/dt/enablement/ElementEnablementTest.js +2 -9
- package/src/sap/ui/dt/enablement/Test.js +1 -11
- package/src/sap/ui/dt/enablement/Util.js +1 -3
- package/src/sap/ui/dt/enablement/elementDesigntimeTest.js +3 -3
- package/src/sap/ui/dt/enablement/libraryTest.js +27 -27
- package/src/sap/ui/dt/enablement/report/LibraryReport.js +3 -5
- package/src/sap/ui/dt/enablement/report/QUnitReport.js +2 -2
- package/src/sap/ui/dt/enablement/report/Statistic.js +2 -4
- package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +1 -1
- package/src/sap/ui/dt/enablement/report/Table.js +2 -15
- package/src/sap/ui/dt/enablement/report/TableRenderer.js +1 -1
- package/src/sap/ui/dt/library.js +3 -3
- package/src/sap/ui/dt/plugin/ContextMenu.js +76 -77
- package/src/sap/ui/dt/plugin/ControlDragDrop.js +12 -12
- package/src/sap/ui/dt/plugin/CutPaste.js +23 -23
- package/src/sap/ui/dt/plugin/DragDrop.js +7 -13
- package/src/sap/ui/dt/plugin/ElementMover.js +21 -21
- package/src/sap/ui/dt/plugin/MouseSelection.js +3 -3
- package/src/sap/ui/dt/plugin/TabHandling.js +1 -1
- package/src/sap/ui/dt/plugin/ToolHooks.js +2 -2
- package/src/sap/ui/dt/util/ZIndexManager.js +15 -15
- package/src/sap/ui/dt/util/_createPromise.js +7 -7
package/.eslintrc.json
CHANGED
|
@@ -15,10 +15,41 @@
|
|
|
15
15
|
"no-multi-spaces": "error",
|
|
16
16
|
"indent": ["error", "tab", {
|
|
17
17
|
"SwitchCase": 1,
|
|
18
|
-
"MemberExpression":
|
|
18
|
+
"MemberExpression": 0
|
|
19
19
|
}],
|
|
20
20
|
"one-var": ["error", "never"],
|
|
21
21
|
"no-useless-call": "error",
|
|
22
|
-
"key-spacing": ["error", { "beforeColon": false }]
|
|
22
|
+
"key-spacing": ["error", { "beforeColon": false }],
|
|
23
|
+
"default-case": ["error", { "commentPattern": "^skip\\sdefault" }],
|
|
24
|
+
|
|
25
|
+
"comma-dangle": ["error", "never"],
|
|
26
|
+
"max-len": ["warn", {
|
|
27
|
+
"code": 140,
|
|
28
|
+
"ignorePattern": "@param|@returns|@description|<|QUnit.test",
|
|
29
|
+
"ignoreUrls": true
|
|
30
|
+
}],
|
|
31
|
+
"space-before-function-paren": ["error", {
|
|
32
|
+
"anonymous": "never",
|
|
33
|
+
"named": "never",
|
|
34
|
+
"asyncArrow": "always"
|
|
35
|
+
}],
|
|
36
|
+
"no-multi-assign": ["error", { "ignoreNonDeclaration": true }],
|
|
37
|
+
"dot-notation": ["error", { "allowKeywords": true }],
|
|
38
|
+
"spaced-comment": ["error", "always", {
|
|
39
|
+
"line": {
|
|
40
|
+
"exceptions": ["-"]
|
|
41
|
+
},
|
|
42
|
+
"block": {
|
|
43
|
+
"markers": ["!"],
|
|
44
|
+
"exceptions": ["*"],
|
|
45
|
+
"balanced": true
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
}],
|
|
49
|
+
"no-multiple-empty-lines": ["error", {"max": 1}],
|
|
50
|
+
"quotes": ["error", "double", {
|
|
51
|
+
"avoidEscape": true,
|
|
52
|
+
"allowTemplateLiterals": true
|
|
53
|
+
}]
|
|
23
54
|
}
|
|
24
55
|
}
|
package/.reuse/dep5
CHANGED
|
@@ -457,11 +457,6 @@ Comment: these files belong to: UI5 Web Components
|
|
|
457
457
|
|
|
458
458
|
# Outside of Libraries:
|
|
459
459
|
|
|
460
|
-
Files: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
461
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
462
|
-
License: Apache-2.0
|
|
463
|
-
Comment: these files belong to: LESS
|
|
464
|
-
|
|
465
460
|
Files: lib/jsdoc/ui5/plugin.js
|
|
466
461
|
Copyright:
|
|
467
462
|
2009-2023 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
package/THIRDPARTY.txt
CHANGED
|
@@ -460,19 +460,13 @@ Contained in: src/sap.ui.webc.main/src/sap/ui/webc/main/thirdparty/*.*
|
|
|
460
460
|
|
|
461
461
|
Outside of Libraries:
|
|
462
462
|
|
|
463
|
-
Component: LESS, version: 1.6.3
|
|
464
|
-
Copyright: 2009-2014, Alexis Sellier <self@cloudhead.net>
|
|
465
|
-
License: Apache-2.0
|
|
466
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
|
-
Contained in: src/testsuite-utils/src/main/resources/META-INF/less/less.js
|
|
468
|
-
|
|
469
463
|
Component: JSDoc 3, version: 3.6.7
|
|
470
464
|
Copyright: 2011-present Michael Mathews micmath@gmail.com and the contributors to JSDoc
|
|
471
465
|
License: Apache-2.0
|
|
472
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
473
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
474
468
|
|
|
475
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.4.2
|
|
476
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
477
471
|
License: Apache-2.0
|
|
478
472
|
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.116.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.116.0"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/sap/ui/dt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 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.116.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/ui/dt/DesignTimeMetadata"
|
|
9
9
|
],
|
|
10
|
-
function
|
|
10
|
+
function(
|
|
11
11
|
DesignTimeMetadata
|
|
12
12
|
) {
|
|
13
13
|
"use strict";
|
|
@@ -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.116.0
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @private
|
|
@@ -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.116.0
|
|
37
37
|
*
|
|
38
38
|
* @constructor
|
|
39
39
|
* @private
|
|
@@ -78,7 +78,7 @@ function(
|
|
|
78
78
|
/**
|
|
79
79
|
* @override
|
|
80
80
|
*/
|
|
81
|
-
AggregationOverlay.prototype._getAttributes = function
|
|
81
|
+
AggregationOverlay.prototype._getAttributes = function() {
|
|
82
82
|
return merge(
|
|
83
83
|
{},
|
|
84
84
|
Overlay.prototype._getAttributes.apply(this, arguments),
|
|
@@ -93,7 +93,7 @@ function(
|
|
|
93
93
|
* @param {sap.ui.dt.ElementOverlay} oChild - Lookup ElementOverlay
|
|
94
94
|
* @return {number} - position index in DOM
|
|
95
95
|
*/
|
|
96
|
-
AggregationOverlay.prototype._getChildIndex = function
|
|
96
|
+
AggregationOverlay.prototype._getChildIndex = function(oChild) {
|
|
97
97
|
var aChildren = this.getChildren();
|
|
98
98
|
|
|
99
99
|
var oPreviousSibling;
|
|
@@ -115,7 +115,7 @@ function(
|
|
|
115
115
|
/**
|
|
116
116
|
* @override
|
|
117
117
|
*/
|
|
118
|
-
AggregationOverlay.prototype.insertChild = function
|
|
118
|
+
AggregationOverlay.prototype.insertChild = function(iPosition, oChild) {
|
|
119
119
|
/**
|
|
120
120
|
* Legend:
|
|
121
121
|
* iPosition - position in aggregation/association
|
|
@@ -131,14 +131,14 @@ function(
|
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
var iPreviousPosition = this.indexOfAggregation(
|
|
134
|
+
var iPreviousPosition = this.indexOfAggregation("children", oChild);
|
|
135
135
|
|
|
136
136
|
if (iPreviousPosition !== iPosition) {
|
|
137
137
|
// when child is already inside the aggregation but on different position, we need to remove it first
|
|
138
138
|
if (iPreviousPosition > -1) {
|
|
139
|
-
this.removeAggregation(
|
|
139
|
+
this.removeAggregation("children", oChild);
|
|
140
140
|
}
|
|
141
|
-
this.insertAggregation(
|
|
141
|
+
this.insertAggregation("children", oChild, iPosition);
|
|
142
142
|
|
|
143
143
|
if (this.isRendered()) {
|
|
144
144
|
var iPositionInDom = this._getChildIndex(oChild);
|
|
@@ -146,7 +146,7 @@ function(
|
|
|
146
146
|
|
|
147
147
|
if (!bChildRendered) {
|
|
148
148
|
var oRenderResult = oChild.render(true);
|
|
149
|
-
//TODO: change when renderer does not return jquery object any more!
|
|
149
|
+
// TODO: change when renderer does not return jquery object any more!
|
|
150
150
|
oRenderResult = oRenderResult.jquery ? oRenderResult.get(0) : oRenderResult;
|
|
151
151
|
}
|
|
152
152
|
|
|
@@ -181,7 +181,7 @@ function(
|
|
|
181
181
|
/**
|
|
182
182
|
* @override
|
|
183
183
|
*/
|
|
184
|
-
AggregationOverlay.prototype.addChild = function
|
|
184
|
+
AggregationOverlay.prototype.addChild = function(oChild, bSuppressedEvent) {
|
|
185
185
|
this.insertChild(this.getChildren().length, oChild);
|
|
186
186
|
|
|
187
187
|
if (!bSuppressedEvent) {
|
|
@@ -192,9 +192,9 @@ function(
|
|
|
192
192
|
/**
|
|
193
193
|
* @override
|
|
194
194
|
*/
|
|
195
|
-
AggregationOverlay.prototype.render = function
|
|
195
|
+
AggregationOverlay.prototype.render = function() {
|
|
196
196
|
if (this.getChildren().length > 0 || this.getDesignTimeMetadata().getDomRef()) {
|
|
197
|
-
this.addStyleClass(
|
|
197
|
+
this.addStyleClass("sapUiDtAggregationOverlay");
|
|
198
198
|
return Overlay.prototype.render.apply(this, arguments);
|
|
199
199
|
}
|
|
200
200
|
return undefined;
|
|
@@ -203,7 +203,7 @@ function(
|
|
|
203
203
|
/**
|
|
204
204
|
* @override
|
|
205
205
|
*/
|
|
206
|
-
AggregationOverlay.prototype._getRenderingParent = function
|
|
206
|
+
AggregationOverlay.prototype._getRenderingParent = function() {
|
|
207
207
|
if (Util.isInteger(this.getScrollContainerId())) {
|
|
208
208
|
return this.getParent().getScrollContainerById(this.getScrollContainerId());
|
|
209
209
|
}
|
|
@@ -213,7 +213,7 @@ function(
|
|
|
213
213
|
/**
|
|
214
214
|
* @override
|
|
215
215
|
*/
|
|
216
|
-
AggregationOverlay.prototype._setPosition = function
|
|
216
|
+
AggregationOverlay.prototype._setPosition = function($Target, oGeometry, $Parent, bForceScrollbarSync) {
|
|
217
217
|
// Apply Overlay position first, then extra logic based on this new position
|
|
218
218
|
Overlay.prototype._setPosition.apply(this, arguments);
|
|
219
219
|
|
package/src/sap/ui/dt/DOMUtil.js
CHANGED
|
@@ -23,7 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
*
|
|
24
24
|
* @namespace
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.116.0
|
|
27
27
|
*
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.30
|
|
@@ -107,7 +107,7 @@ sap.ui.define([
|
|
|
107
107
|
|
|
108
108
|
if (Configuration.getRTL()) {
|
|
109
109
|
var iParentWidth = oParent ? oParent.offsetWidth : window.innerWidth;
|
|
110
|
-
//TODO: Workaround - remove when bug in Safari (issue 336512063) is solved
|
|
110
|
+
// TODO: Workaround - remove when bug in Safari (issue 336512063) is solved
|
|
111
111
|
if (Device.browser.safari && !Device.browser.mobile && DOMUtil.hasVerticalScrollBar(oParent)) {
|
|
112
112
|
mOffset.left -= DOMUtil.getScrollbarWidth();
|
|
113
113
|
}
|
|
@@ -211,7 +211,7 @@ sap.ui.define([
|
|
|
211
211
|
* @returns {number} returns width in pixels
|
|
212
212
|
*/
|
|
213
213
|
DOMUtil.getScrollbarWidth = function() {
|
|
214
|
-
if (typeof DOMUtil.getScrollbarWidth._cache ===
|
|
214
|
+
if (typeof DOMUtil.getScrollbarWidth._cache === "undefined") {
|
|
215
215
|
// add outer div
|
|
216
216
|
var oOuter = document.createElement("div");
|
|
217
217
|
oOuter.style.position = "absolute";
|
|
@@ -239,7 +239,6 @@ sap.ui.define([
|
|
|
239
239
|
return DOMUtil.getScrollbarWidth._cache;
|
|
240
240
|
};
|
|
241
241
|
|
|
242
|
-
|
|
243
242
|
/**
|
|
244
243
|
* @param {HTMLElement} oDomRef - DOM element
|
|
245
244
|
* @returns {object} Object with overflowX and overflowY
|