@openui5/sap.ui.dt 1.98.0 → 1.99.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/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 +8 -11
- package/src/sap/ui/dt/DesignTimeMetadata.js +5 -6
- package/src/sap/ui/dt/ElementDesignTimeMetadata.js +3 -3
- package/src/sap/ui/dt/ElementOverlay.js +1 -1
- package/src/sap/ui/dt/ElementUtil.js +4 -4
- 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 +1 -1
- package/src/sap/ui/dt/OverlayRegistry.js +1 -1
- package/src/sap/ui/dt/OverlayUtil.js +2 -2
- package/src/sap/ui/dt/Plugin.js +1 -1
- package/src/sap/ui/dt/ScrollbarSynchronizer.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/src/sap/ui/dt/enablement/report/Table.js +1 -1
- package/src/sap/ui/dt/enablement/report/TableRenderer.js +2 -2
- 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.
|
|
3
|
+
"version": "1.99.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.99.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-2022 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.99.0</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
|
@@ -68,7 +68,7 @@ function (
|
|
|
68
68
|
* @extends sap.ui.base.ManagedObject
|
|
69
69
|
*
|
|
70
70
|
* @author SAP SE
|
|
71
|
-
* @version 1.
|
|
71
|
+
* @version 1.99.0
|
|
72
72
|
*
|
|
73
73
|
* @constructor
|
|
74
74
|
* @private
|
|
@@ -711,6 +711,12 @@ function (
|
|
|
711
711
|
return aElementOverlays;
|
|
712
712
|
};
|
|
713
713
|
|
|
714
|
+
function ensureRoot(bIsRoot, oElementOverlay) {
|
|
715
|
+
if (bIsRoot) {
|
|
716
|
+
oElementOverlay.setIsRoot(true);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
|
|
714
720
|
/**
|
|
715
721
|
* @typedef {object} sap.ui.dt.DesignTime.CreateOverlayParameters
|
|
716
722
|
* @property {sap.ui.base.ManagedObject} element - Control instance for which overlay is being created
|
|
@@ -747,6 +753,7 @@ function (
|
|
|
747
753
|
|
|
748
754
|
// 2. ElementOverlay is already created
|
|
749
755
|
if (oElementOverlay) {
|
|
756
|
+
ensureRoot(mParams.root, oElementOverlay);
|
|
750
757
|
this._oTaskManager.complete(iTaskId);
|
|
751
758
|
return Promise.resolve(oElementOverlay);
|
|
752
759
|
// 3. ElementOverlay is in creation phase
|
|
@@ -1270,25 +1277,15 @@ function (
|
|
|
1270
1277
|
var oParentOverlay = OverlayRegistry.getOverlay(oParent);
|
|
1271
1278
|
var oParentAggregationOverlay = oParentOverlay && oParentOverlay.getAggregationOverlay(sAggregationName);
|
|
1272
1279
|
if (!oParentAggregationOverlay) {
|
|
1273
|
-
var onSynced;
|
|
1274
1280
|
var onElementOverlayCreated = function (oEvent) {
|
|
1275
1281
|
var oElementOverlay = oEvent.getParameter("elementOverlay");
|
|
1276
1282
|
if (oElementOverlay.getElement().getId() === oParent.getId()) {
|
|
1277
1283
|
var oParentAggregationOverlay = oElementOverlay.getAggregationOverlay(sAggregationName);
|
|
1278
|
-
this.detachSynced(onSynced, this);
|
|
1279
1284
|
this.detachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1280
1285
|
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1281
1286
|
}
|
|
1282
1287
|
};
|
|
1283
|
-
onSynced = function () {
|
|
1284
|
-
var oParentOverlay = OverlayRegistry.getOverlay(oParent);
|
|
1285
|
-
var oParentAggregationOverlay = oParentOverlay && oParentOverlay.getAggregationOverlay(sAggregationName);
|
|
1286
|
-
this.detachSynced(onSynced, this);
|
|
1287
|
-
this.detachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1288
|
-
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1289
|
-
};
|
|
1290
1288
|
this.attachElementOverlayCreated(onElementOverlayCreated, this);
|
|
1291
|
-
this.attachSynced(onSynced, this);
|
|
1292
1289
|
} else {
|
|
1293
1290
|
this._addAggregation(oElement, oParentAggregationOverlay);
|
|
1294
1291
|
}
|
|
@@ -46,7 +46,7 @@ function(
|
|
|
46
46
|
* @extends sap.ui.base.ManagedObject
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.99.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
@@ -108,7 +108,6 @@ function(
|
|
|
108
108
|
|
|
109
109
|
/**
|
|
110
110
|
* Returns 'not-adaptable' flag as boolean
|
|
111
|
-
* @param {Object} oElement Element instance
|
|
112
111
|
* @return {boolean} Returns 'true' if not adaptable
|
|
113
112
|
* @public
|
|
114
113
|
*/
|
|
@@ -127,10 +126,10 @@ function(
|
|
|
127
126
|
};
|
|
128
127
|
|
|
129
128
|
/**
|
|
130
|
-
* Returns a DOM representation for an Element or aggregation, if it can be found or undefined
|
|
131
|
-
* @param {
|
|
132
|
-
* @param {
|
|
133
|
-
* @param {
|
|
129
|
+
* Returns a DOM representation for an Element or aggregation, if it can be found or undefined.
|
|
130
|
+
* @param {sap.ui.core.Element} oElement Element we need DomRef for
|
|
131
|
+
* @param {string|function} vDomRef Selector or Function for fetchting DomRef
|
|
132
|
+
* @param {string} [sAggregationName] Aggregation Name
|
|
134
133
|
* @return {jQuery} Returns associated DOM references wrapped by jQuery object
|
|
135
134
|
* @public
|
|
136
135
|
*/
|
|
@@ -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.99.0
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
@@ -233,8 +233,8 @@ sap.ui.define([
|
|
|
233
233
|
|
|
234
234
|
/**
|
|
235
235
|
* Returns property "ignore" of aggregation DT metadata
|
|
236
|
-
* @param {
|
|
237
|
-
* @param {
|
|
236
|
+
* @param {sap.ui.core.Element} oElement Element whose aggregation has to be checked
|
|
237
|
+
* @param {string} sAggregationName Name of the Aggregation
|
|
238
238
|
* @return {boolean} if ignored
|
|
239
239
|
* @public
|
|
240
240
|
*/
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @class Utility functionality to work with elements, e.g. iterate through aggregations, find parents, ...
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
35
|
+
* @version 1.99.0
|
|
36
36
|
*
|
|
37
37
|
* @private
|
|
38
38
|
* @static
|
|
@@ -371,8 +371,8 @@ sap.ui.define([
|
|
|
371
371
|
* Extract potential label part from the passed managed object instance
|
|
372
372
|
*
|
|
373
373
|
* @param {sap.ui.base.ManagedObject} oElement - managed object class instance for which label has to be extracted
|
|
374
|
-
* @param {
|
|
375
|
-
* @return {
|
|
374
|
+
* @param {function} [fnFunction] - custom function for retrieving label
|
|
375
|
+
* @return {string|undefined} label string or undefined when no label can be extracted
|
|
376
376
|
*/
|
|
377
377
|
ElementUtil.getLabelForElement = function(oElement, fnFunction) {
|
|
378
378
|
if (!ElementUtil.isElementValid(oElement)) {
|
|
@@ -437,7 +437,7 @@ sap.ui.define([
|
|
|
437
437
|
/**
|
|
438
438
|
* The AggregationBindingStack contains element id and aggregation name of the bound control together with a stack containing
|
|
439
439
|
* information about the traversed elements for an Overlay which is part of an aggregation binding.
|
|
440
|
-
* @typedef {
|
|
440
|
+
* @typedef {object} sap.ui.dt.ElementUtil.AggregationBindingStack
|
|
441
441
|
* @property {string} elementId - id of the bound control.
|
|
442
442
|
* @property {string} aggregation - name of the bound aggregation.
|
|
443
443
|
* @property {string} templateId - id of the binding template.
|
|
@@ -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.
|
|
28
|
+
* @version 1.99.0
|
|
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.
|
|
33
|
+
* @version 1.99.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.30
|
package/src/sap/ui/dt/Overlay.js
CHANGED
|
@@ -22,7 +22,7 @@ function(
|
|
|
22
22
|
*
|
|
23
23
|
* @class Utility functionality to work with overlays
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.99.0
|
|
26
26
|
* @private
|
|
27
27
|
* @static
|
|
28
28
|
* @since 1.30
|
|
@@ -644,7 +644,7 @@ function(
|
|
|
644
644
|
/**
|
|
645
645
|
* The AggregationBindingInfo contains the overlay ID and the aggregation name of the bound control together with stack containing
|
|
646
646
|
* information about the traversed elements for an overlay which is part of an aggregation binding.
|
|
647
|
-
* @typedef {
|
|
647
|
+
* @typedef {object} sap.ui.dt.OverlayUtil.AggregationBindingInfo
|
|
648
648
|
* @property {string} overlayId - ID of the bound overlay that contains binding aggregation template overlays
|
|
649
649
|
* @property {string} aggregation - Name of the bound aggregation
|
|
650
650
|
* @property {Object[]} stack - Array of objects containing element, element type, aggregation name, and index of the element in
|
package/src/sap/ui/dt/Plugin.js
CHANGED
|
@@ -24,7 +24,7 @@ function(
|
|
|
24
24
|
* @extends sap.ui.base.ManagedObject
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.99.0
|
|
28
28
|
*
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
@@ -116,7 +116,7 @@ function(
|
|
|
116
116
|
/**
|
|
117
117
|
* Check if a Dom Node is a target for this Scrollbar Synchronizer
|
|
118
118
|
* @param {Element} oDomNode Element to be checked
|
|
119
|
-
* @return {
|
|
119
|
+
* @return {boolean} Returns true if the node is a target
|
|
120
120
|
*/
|
|
121
121
|
ScrollbarSynchronizer.prototype.hasTarget = function (oDomNode) {
|
|
122
122
|
return this.getTargets().indexOf(oDomNode) > -1;
|
|
@@ -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.
|
|
19
|
+
* @version 1.99.0
|
|
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
|
@@ -24,7 +24,7 @@ sap.ui.define([
|
|
|
24
24
|
* Utilities for sap.ui.dt library
|
|
25
25
|
*
|
|
26
26
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
27
|
+
* @version 1.99.0
|
|
28
28
|
*
|
|
29
29
|
* @private
|
|
30
30
|
* @static
|
|
@@ -239,7 +239,7 @@ sap.ui.define([
|
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Webkit can be safari or chrome mobile
|
|
242
|
-
* @return {
|
|
242
|
+
* @return {boolean} Returns true if the device browser uses webkit
|
|
243
243
|
*/
|
|
244
244
|
Util.isWebkit = function() {
|
|
245
245
|
return Device.browser.webkit && (Device.browser.safari || Device.browser.chrome && Device.browser.mobile);
|
|
@@ -10,7 +10,7 @@ sap.ui.define(function() {
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @author SAP SE
|
|
13
|
-
* @version 1.
|
|
13
|
+
* @version 1.99.0
|
|
14
14
|
* @namespace
|
|
15
15
|
*/
|
|
16
16
|
var StatisticRenderer = {};
|
|
@@ -19,7 +19,7 @@ sap.ui.define(function() {
|
|
|
19
19
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
20
20
|
*
|
|
21
21
|
* @param {sap.ui.core.RenderManager} rm The RenderManager that can be used for writing to the render output buffer.
|
|
22
|
-
* @param {sap.ui.
|
|
22
|
+
* @param {sap.ui.dt.enablement.report.Statistic} oStatistic An object representation of the control that should be rendered.
|
|
23
23
|
*/
|
|
24
24
|
StatisticRenderer.render = function(rm, oStatistic) {
|
|
25
25
|
rm.addClass("sapUiDtStatisticReport");
|
|
@@ -10,7 +10,7 @@ sap.ui.define(function() {
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @author SAP SE
|
|
13
|
-
* @version 1.
|
|
13
|
+
* @version 1.99.0
|
|
14
14
|
* @namespace
|
|
15
15
|
*/
|
|
16
16
|
var TableRenderer = {};
|
|
@@ -19,7 +19,7 @@ sap.ui.define(function() {
|
|
|
19
19
|
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
20
20
|
*
|
|
21
21
|
* @param {sap.ui.core.RenderManager} rm The RenderManager that can be used for writing to the render output buffer.
|
|
22
|
-
* @param {sap.ui.
|
|
22
|
+
* @param {sap.ui.dt.enablement.report.Table} oTable An object representation of the control that should be rendered.
|
|
23
23
|
*/
|
|
24
24
|
TableRenderer.render = function(rm, oTable) {
|
|
25
25
|
rm.addClass("sapUiDtTableReport");
|
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.
|
|
26
|
+
* @version 1.99.0
|
|
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.
|
|
35
|
+
version: "1.99.0",
|
|
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.
|
|
37
|
+
* @version 1.99.0
|
|
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.
|
|
29
|
+
* @version 1.99.0
|
|
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.
|
|
36
|
+
* @version 1.99.0
|
|
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.
|
|
33
|
+
* @version 1.99.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|