@openui5/sap.ui.dt 1.121.1 → 1.122.1
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/THIRDPARTY.txt +1 -1
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/dt/OverlayRegistry.js +1 -1
- package/src/sap/ui/dt/OverlayUtil.js +1 -1
- package/src/sap/ui/dt/Plugin.js +10 -3
- 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/ToolHooks.js +1 -1
- package/src/sap/ui/dt/util/ZIndexManager.js +1 -1
- package/src/sap/ui/dt/plugin/TabHandling.js +0 -147
package/THIRDPARTY.txt
CHANGED
|
@@ -461,7 +461,7 @@ License: Apache-2.0
|
|
|
461
461
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
462
462
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
463
463
|
|
|
464
|
-
Component: SAP Theming Base Content, version: 11.
|
|
464
|
+
Component: SAP Theming Base Content, version: 11.12.0
|
|
465
465
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
466
466
|
License: Apache-2.0
|
|
467
467
|
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.122.1",
|
|
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.122.1"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/src/sap/ui/dt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2024 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.122.1</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
|
@@ -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.122.1
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
29
29
|
* @since 1.30
|
|
@@ -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.122.1
|
|
36
36
|
* @constructor
|
|
37
37
|
* @private
|
|
38
38
|
* @since 1.30
|
package/src/sap/ui/dt/Overlay.js
CHANGED
package/src/sap/ui/dt/Plugin.js
CHANGED
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.base.ManagedObject
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.
|
|
30
|
+
* @version 1.122.1
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @private
|
|
@@ -377,7 +377,7 @@ sap.ui.define([
|
|
|
377
377
|
* @param {string} mPropertyBag.group A group for buttons which should be grouped together in the MiniMenu
|
|
378
378
|
* @return {object[]} Returns an array with the object containing the required data for a context menu item
|
|
379
379
|
*/
|
|
380
|
-
Plugin.prototype._getMenuItems = function(aElementOverlays, mPropertyBag) {
|
|
380
|
+
Plugin.prototype._getMenuItems = async function(aElementOverlays, mPropertyBag) {
|
|
381
381
|
var oMenuItem = this.enhanceItemWithResponsibleElement({
|
|
382
382
|
id: mPropertyBag.pluginId,
|
|
383
383
|
handler: this.handler.bind(this),
|
|
@@ -390,8 +390,15 @@ sap.ui.define([
|
|
|
390
390
|
var aResponsibleElementOverlays = oMenuItem.responsible || aElementOverlays;
|
|
391
391
|
var oResponsibleElementOverlay = aResponsibleElementOverlays[0];
|
|
392
392
|
|
|
393
|
+
if (this._isEditableByPlugin(oResponsibleElementOverlay) === undefined) {
|
|
394
|
+
// The responsibleElement editableByPlugin state was not evaluated yet e.g. because it
|
|
395
|
+
// has no visible geometry, thus evaluateEditable now
|
|
396
|
+
await this.evaluateEditable(aResponsibleElementOverlays, { onRegistration: false });
|
|
397
|
+
}
|
|
393
398
|
var mAction = this.getAction(oResponsibleElementOverlay);
|
|
394
|
-
|
|
399
|
+
// For most plugins, the action must be available on the responsible element and the element overlay
|
|
400
|
+
// because the element overlay is where the action is executed, e.g. rename in anchor bar
|
|
401
|
+
if (!mAction || !this.isAvailable(aResponsibleElementOverlays) || !this.isAvailable(aElementOverlays)) {
|
|
395
402
|
return [];
|
|
396
403
|
}
|
|
397
404
|
|
package/src/sap/ui/dt/Util.js
CHANGED
package/src/sap/ui/dt/library.js
CHANGED
|
@@ -23,14 +23,14 @@ sap.ui.define([
|
|
|
23
23
|
* @namespace
|
|
24
24
|
* @alias sap.ui.dt
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
26
|
+
* @version 1.122.1
|
|
27
27
|
* @since 1.30
|
|
28
28
|
* @private
|
|
29
29
|
*/
|
|
30
30
|
var thisLib = Lib.init({
|
|
31
31
|
name: "sap.ui.dt",
|
|
32
32
|
apiVersion: 2,
|
|
33
|
-
version: "1.
|
|
33
|
+
version: "1.122.1",
|
|
34
34
|
dependencies: ["sap.ui.core"],
|
|
35
35
|
types: [],
|
|
36
36
|
interfaces: [],
|
|
@@ -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.122.1
|
|
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.122.1
|
|
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.122.1
|
|
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.122.1
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
sap.ui.define([
|
|
8
|
-
"sap/ui/dt/Plugin",
|
|
9
|
-
"sap/ui/dt/Overlay",
|
|
10
|
-
"sap/ui/dt/OverlayRegistry",
|
|
11
|
-
"sap/ui/dom/jquery/Selectors"
|
|
12
|
-
], function(
|
|
13
|
-
Plugin,
|
|
14
|
-
Overlay,
|
|
15
|
-
OverlayRegistry
|
|
16
|
-
) {
|
|
17
|
-
"use strict";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Constructor for a new TabHandling.
|
|
21
|
-
*
|
|
22
|
-
* @param {string} [sId] id for the new object, generated automatically if no id is given
|
|
23
|
-
* @param {object} [mSettings] initial settings for the new object
|
|
24
|
-
* @class The TabHandling plugin adjusts the tabindex for the elements.
|
|
25
|
-
* @extends sap.ui.dt.Plugin
|
|
26
|
-
* @author SAP SE
|
|
27
|
-
* @version 1.121.1
|
|
28
|
-
* @constructor
|
|
29
|
-
* @private
|
|
30
|
-
* @since 1.38
|
|
31
|
-
* @alias sap.ui.dt.plugin.TabHandling
|
|
32
|
-
*/
|
|
33
|
-
var TabHandling = Plugin.extend("sap.ui.dt.plugin.TabHandling", /** @lends sap.ui.dt.plugin.TabHandling.prototype */ {
|
|
34
|
-
metadata: {
|
|
35
|
-
library: "sap.ui.dt",
|
|
36
|
-
properties: {},
|
|
37
|
-
associations: {},
|
|
38
|
-
events: {}
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
TabHandling.prototype.registerElementOverlay = function(oOverlay) {
|
|
43
|
-
if (oOverlay.isRoot()) {
|
|
44
|
-
this.removeTabIndex();
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Deregister an overlay
|
|
50
|
-
*
|
|
51
|
-
* @param {sap.ui.dt.Overlay} oOverlay overlay object
|
|
52
|
-
* @override
|
|
53
|
-
*/
|
|
54
|
-
TabHandling.prototype.deregisterElementOverlay = function(oOverlay) {
|
|
55
|
-
if (oOverlay.isRoot()) {
|
|
56
|
-
this.restoreTabIndex();
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
TabHandling.prototype.setDesignTime = function(...aArgs) {
|
|
61
|
-
const [oDesignTime] = aArgs;
|
|
62
|
-
Plugin.prototype.setDesignTime.apply(this, aArgs);
|
|
63
|
-
if (oDesignTime) {
|
|
64
|
-
if (!this._oMutationObserver) {
|
|
65
|
-
this._oMutationObserver = Overlay.getMutationObserver();
|
|
66
|
-
this._oMutationObserver.attachDomChanged(this._onDomChanged, this);
|
|
67
|
-
}
|
|
68
|
-
} else {
|
|
69
|
-
if (this._oMutationObserver) {
|
|
70
|
-
this._oMutationObserver.detachDomChanged(this._onDomChanged, this);
|
|
71
|
-
delete this._oMutationObserver;
|
|
72
|
-
}
|
|
73
|
-
this.restoreTabIndex();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Traverse the whole DOM tree and set tab indices to -1 for all elements
|
|
79
|
-
*/
|
|
80
|
-
TabHandling.prototype.removeTabIndex = function() {
|
|
81
|
-
var aRootOverlays = this._getRootOverlays();
|
|
82
|
-
aRootOverlays.forEach(function(oRootOverlay) {
|
|
83
|
-
var $RootElement = oRootOverlay.getAssociatedDomRef();
|
|
84
|
-
if ($RootElement) {
|
|
85
|
-
$RootElement.find(":focusable:not([tabIndex=-1], #overlay-container *)").each(function(iIndex, oNode) {
|
|
86
|
-
oNode.setAttribute("data-sap-ui-dt-tabindex", oNode.tabIndex);
|
|
87
|
-
oNode.setAttribute("tabindex", -1);
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Traverse the whole DOM tree and set tab indices to -1 for all overlays
|
|
95
|
-
*/
|
|
96
|
-
TabHandling.prototype.removeOverlayTabIndex = function() {
|
|
97
|
-
var aRootOverlays = this._getRootOverlays();
|
|
98
|
-
aRootOverlays.forEach(function(oRootOverlay) {
|
|
99
|
-
var oRootDomRef = oRootOverlay.getDomRef();
|
|
100
|
-
if (oRootDomRef) {
|
|
101
|
-
oRootDomRef.querySelectorAll("[tabindex]:not([tabindex='-1'])").forEach(function(oNode) {
|
|
102
|
-
oNode.setAttribute("data-sap-ui-overlay-tabindex", oNode.tabIndex);
|
|
103
|
-
oNode.setAttribute("tabindex", -1);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
TabHandling.prototype._getRootOverlays = function() {
|
|
110
|
-
var oDesignTime = this.getDesignTime();
|
|
111
|
-
var aRootElements = oDesignTime.getRootElements();
|
|
112
|
-
return aRootElements.map(function(oRootElement) {
|
|
113
|
-
return OverlayRegistry.getOverlay(oRootElement);
|
|
114
|
-
});
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Restore the tab indices of all elements of the DOM tree
|
|
119
|
-
*/
|
|
120
|
-
TabHandling.prototype.restoreTabIndex = function() {
|
|
121
|
-
document.querySelectorAll("[data-sap-ui-dt-tabindex]").forEach(function(oNode) {
|
|
122
|
-
oNode.setAttribute("tabindex", oNode.getAttribute("data-sap-ui-dt-tabindex"));
|
|
123
|
-
oNode.removeAttribute("data-sap-ui-dt-tabindex");
|
|
124
|
-
});
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Restore the tab indices of all Overlays of the DOM tree
|
|
129
|
-
*/
|
|
130
|
-
TabHandling.prototype.restoreOverlayTabIndex = function() {
|
|
131
|
-
document.querySelectorAll("[data-sap-ui-overlay-tabindex]").forEach(function(oNode) {
|
|
132
|
-
oNode.setAttribute("tabindex", oNode.getAttribute("data-sap-ui-overlay-tabindex"));
|
|
133
|
-
oNode.removeAttribute("data-sap-ui-overlay-tabindex");
|
|
134
|
-
});
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @private
|
|
139
|
-
*/
|
|
140
|
-
TabHandling.prototype._onDomChanged = function() {
|
|
141
|
-
if (this.getDesignTime().getEnabled()) {
|
|
142
|
-
this.removeTabIndex();
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
return TabHandling;
|
|
147
|
-
});
|