@openui5/sap.ui.dt 1.99.0 → 1.100.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/THIRDPARTY.txt +2 -2
- 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 +3 -6
- 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 +3 -5
- package/src/sap/ui/dt/ManagedObjectObserver.js +1 -1
- package/src/sap/ui/dt/MetadataPropagationUtil.js +3 -4
- package/src/sap/ui/dt/MutationObserver.js +1 -1
- package/src/sap/ui/dt/Overlay.js +39 -38
- package/src/sap/ui/dt/OverlayRegistry.js +3 -6
- package/src/sap/ui/dt/OverlayUtil.js +3 -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 +2 -2
- 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 +3 -6
- package/src/sap/ui/dt/enablement/ElementEnablementTest.js +1 -1
- package/src/sap/ui/dt/enablement/Test.js +5 -4
- 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 +2 -2
- 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 +2 -2
- 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/themes/base/ContextMenu.less +1 -0
- package/src/sap/ui/dt/util/ZIndexManager.js +2 -3
package/THIRDPARTY.txt
CHANGED
|
@@ -197,7 +197,7 @@ License: BSD-3-Clause
|
|
|
197
197
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
198
198
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
|
|
199
199
|
|
|
200
|
-
Component: URI.js, version: 1.19.
|
|
200
|
+
Component: URI.js, version: 1.19.10
|
|
201
201
|
Copyright: Rodney Rehm
|
|
202
202
|
License: MIT
|
|
203
203
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.36-SNAPSHOT
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.100.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.100.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.100.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
|
@@ -17,16 +17,13 @@ sap.ui.define([
|
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @class
|
|
23
|
-
* Utility functionality for DOM
|
|
20
|
+
* Utility functionality for DOM operations.
|
|
24
21
|
*
|
|
22
|
+
* @namespace
|
|
25
23
|
* @author SAP SE
|
|
26
|
-
* @version 1.
|
|
24
|
+
* @version 1.100.0
|
|
27
25
|
*
|
|
28
26
|
* @private
|
|
29
|
-
* @static
|
|
30
27
|
* @since 1.30
|
|
31
28
|
* @alias sap.ui.dt.DOMUtil
|
|
32
29
|
* @experimental Since 1.30. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -27,15 +27,13 @@ sap.ui.define([
|
|
|
27
27
|
"use strict";
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* @class Utility functionality to work with elements, e.g. iterate through aggregations, find parents, ...
|
|
30
|
+
* Utility functionality to work with UI5 elements, e.g. iterate through aggregations, find parents, ...
|
|
33
31
|
*
|
|
32
|
+
* @namespace
|
|
34
33
|
* @author SAP SE
|
|
35
|
-
* @version 1.
|
|
34
|
+
* @version 1.100.0
|
|
36
35
|
*
|
|
37
36
|
* @private
|
|
38
|
-
* @static
|
|
39
37
|
* @since 1.30
|
|
40
38
|
* @alias sap.ui.dt.ElementUtil
|
|
41
39
|
* @experimental Since 1.30. This class is experimental and provides only limited functionality. Also the API
|
|
@@ -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.100.0
|
|
29
29
|
* @constructor
|
|
30
30
|
* @private
|
|
31
31
|
* @since 1.30
|
|
@@ -17,13 +17,12 @@ sap.ui.define([
|
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Functionality to propagate DesignTime and RelevantContainer.
|
|
21
21
|
*
|
|
22
|
-
* @
|
|
22
|
+
* @namespace
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.100.0
|
|
25
25
|
* @private
|
|
26
|
-
* @static
|
|
27
26
|
* @since 1.54
|
|
28
27
|
* @alias sap.ui.dt.MetadataPropagationUtil
|
|
29
28
|
*/
|
|
@@ -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.100.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.30
|
package/src/sap/ui/dt/Overlay.js
CHANGED
|
@@ -15,7 +15,7 @@ sap.ui.define([
|
|
|
15
15
|
"sap/ui/dt/Util",
|
|
16
16
|
"sap/base/Log",
|
|
17
17
|
"sap/ui/dt/util/ZIndexManager"
|
|
18
|
-
], function
|
|
18
|
+
], function(
|
|
19
19
|
jQuery,
|
|
20
20
|
Element,
|
|
21
21
|
MutationObserver,
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @extends sap.ui.core.Element
|
|
45
45
|
*
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.100.0
|
|
48
48
|
*
|
|
49
49
|
* @constructor
|
|
50
50
|
* @private
|
|
@@ -189,7 +189,7 @@ sap.ui.define([
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
},
|
|
192
|
-
constructor: function
|
|
192
|
+
constructor: function() {
|
|
193
193
|
this._aStyleClasses = this._aStyleClasses.slice(0);
|
|
194
194
|
this._oScrollbarSynchronizers = new Map();
|
|
195
195
|
this._aBindParameters = [];
|
|
@@ -207,7 +207,7 @@ sap.ui.define([
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
this.asyncInit()
|
|
210
|
-
.then(function
|
|
210
|
+
.then(function() {
|
|
211
211
|
// Can happen that destroy() is called during asynchronous initialization
|
|
212
212
|
if (this._bShouldBeDestroyed) {
|
|
213
213
|
this.fireInitFailed({
|
|
@@ -238,9 +238,9 @@ sap.ui.define([
|
|
|
238
238
|
}.bind(this));
|
|
239
239
|
|
|
240
240
|
// Attach stored browser events
|
|
241
|
-
this.attachEventOnce("afterRendering", function
|
|
241
|
+
this.attachEventOnce("afterRendering", function(oEvent) {
|
|
242
242
|
var $DomRef = jQuery(oEvent.getParameter("domRef"));
|
|
243
|
-
this._aBindParameters.forEach(function
|
|
243
|
+
this._aBindParameters.forEach(function(mBrowserEvent) {
|
|
244
244
|
$DomRef.on(mBrowserEvent.sEventType, mBrowserEvent.fnProxy);
|
|
245
245
|
});
|
|
246
246
|
}, this);
|
|
@@ -335,7 +335,7 @@ sap.ui.define([
|
|
|
335
335
|
// Prototype methods
|
|
336
336
|
// ========================================================
|
|
337
337
|
|
|
338
|
-
Overlay.prototype.asyncInit = function
|
|
338
|
+
Overlay.prototype.asyncInit = function() {
|
|
339
339
|
return Promise.resolve();
|
|
340
340
|
};
|
|
341
341
|
|
|
@@ -344,7 +344,7 @@ sap.ui.define([
|
|
|
344
344
|
* @returns {{id: string, "data-sap-ui": string, class: string, tabindex: *}} Object with attributes
|
|
345
345
|
* @protected
|
|
346
346
|
*/
|
|
347
|
-
Overlay.prototype._getAttributes = function
|
|
347
|
+
Overlay.prototype._getAttributes = function() {
|
|
348
348
|
return {
|
|
349
349
|
id: this.getId(),
|
|
350
350
|
"data-sap-ui": this.getId(),
|
|
@@ -353,14 +353,14 @@ sap.ui.define([
|
|
|
353
353
|
};
|
|
354
354
|
};
|
|
355
355
|
|
|
356
|
-
Overlay.prototype._renderChildren = function
|
|
357
|
-
return this.getChildren().map(function
|
|
356
|
+
Overlay.prototype._renderChildren = function() {
|
|
357
|
+
return this.getChildren().map(function(oChild) {
|
|
358
358
|
// If a rendered element is being moved to a parent that was just created, it should not be rendered again
|
|
359
359
|
return oChild.isRendered() ? oChild.$() : oChild.render();
|
|
360
360
|
});
|
|
361
361
|
};
|
|
362
362
|
|
|
363
|
-
Overlay.prototype.render = function
|
|
363
|
+
Overlay.prototype.render = function(bSuppressEvent) {
|
|
364
364
|
if (this.isRendered()) {
|
|
365
365
|
return this.getDomRef();
|
|
366
366
|
}
|
|
@@ -384,20 +384,20 @@ sap.ui.define([
|
|
|
384
384
|
return this._$DomRef;
|
|
385
385
|
};
|
|
386
386
|
|
|
387
|
-
Overlay.prototype.isInit = function
|
|
387
|
+
Overlay.prototype.isInit = function() {
|
|
388
388
|
return this._bInit;
|
|
389
389
|
};
|
|
390
390
|
|
|
391
|
-
Overlay.prototype.isRendered = function
|
|
391
|
+
Overlay.prototype.isRendered = function() {
|
|
392
392
|
return this._bRendered;
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
Overlay.prototype.isReady = function
|
|
395
|
+
Overlay.prototype.isReady = function() {
|
|
396
396
|
return this.isInit() && this.isRendered();
|
|
397
397
|
};
|
|
398
398
|
|
|
399
399
|
|
|
400
|
-
Overlay.prototype.addStyleClass = function
|
|
400
|
+
Overlay.prototype.addStyleClass = function(sClassName) {
|
|
401
401
|
if (!this.hasStyleClass(sClassName)) {
|
|
402
402
|
this._aStyleClasses.push(sClassName);
|
|
403
403
|
if (this.isReady()) {
|
|
@@ -406,13 +406,13 @@ sap.ui.define([
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
|
|
409
|
-
Overlay.prototype.hasStyleClass = function
|
|
409
|
+
Overlay.prototype.hasStyleClass = function(sClassName) {
|
|
410
410
|
return this._aStyleClasses.indexOf(sClassName) !== -1;
|
|
411
411
|
};
|
|
412
412
|
|
|
413
|
-
Overlay.prototype.removeStyleClass = function
|
|
413
|
+
Overlay.prototype.removeStyleClass = function(sClassName) {
|
|
414
414
|
if (this.hasStyleClass(sClassName)) {
|
|
415
|
-
this._aStyleClasses = this._aStyleClasses.filter(function
|
|
415
|
+
this._aStyleClasses = this._aStyleClasses.filter(function(sItem) {
|
|
416
416
|
return sItem !== sClassName;
|
|
417
417
|
});
|
|
418
418
|
if (this.isReady()) {
|
|
@@ -421,11 +421,11 @@ sap.ui.define([
|
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
|
|
424
|
-
Overlay.prototype.toggleStyleClass = function
|
|
424
|
+
Overlay.prototype.toggleStyleClass = function(sClassName) {
|
|
425
425
|
this[(this.hasStyleClass(sClassName) ? "remove" : "add") + "StyleClass"](sClassName);
|
|
426
426
|
};
|
|
427
427
|
|
|
428
|
-
Overlay.prototype.setElement = function
|
|
428
|
+
Overlay.prototype.setElement = function(vElement) {
|
|
429
429
|
if (!this.getElement()) {
|
|
430
430
|
this.setAssociation("element", vElement);
|
|
431
431
|
if (this._designTimeMetadataCache) {
|
|
@@ -435,7 +435,7 @@ sap.ui.define([
|
|
|
435
435
|
}
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
-
Overlay.prototype.destroy = function
|
|
438
|
+
Overlay.prototype.destroy = function() {
|
|
439
439
|
if (this.bIsDestroyed) {
|
|
440
440
|
Log.error("FIXME: Do not destroy overlay twice (overlayId = " + this.getId() + ")!");
|
|
441
441
|
return;
|
|
@@ -451,7 +451,7 @@ sap.ui.define([
|
|
|
451
451
|
* @protected
|
|
452
452
|
*/
|
|
453
453
|
Overlay.prototype.exit = function() {
|
|
454
|
-
this._oScrollbarSynchronizers.forEach(function
|
|
454
|
+
this._oScrollbarSynchronizers.forEach(function(oScrollbarSynchronizer) {
|
|
455
455
|
oScrollbarSynchronizer.destroy();
|
|
456
456
|
});
|
|
457
457
|
this._oScrollbarSynchronizers.clear();
|
|
@@ -464,7 +464,7 @@ sap.ui.define([
|
|
|
464
464
|
this.fireDestroyed();
|
|
465
465
|
};
|
|
466
466
|
|
|
467
|
-
Overlay.prototype.setDesignTimeMetadata = function
|
|
467
|
+
Overlay.prototype.setDesignTimeMetadata = function(vMetadata) {
|
|
468
468
|
if (!this.getElement()) {
|
|
469
469
|
this._designTimeMetadataCache = vMetadata;
|
|
470
470
|
} else {
|
|
@@ -481,7 +481,7 @@ sap.ui.define([
|
|
|
481
481
|
return this.$().get(0);
|
|
482
482
|
};
|
|
483
483
|
|
|
484
|
-
Overlay.prototype.getChildrenDomRef = function
|
|
484
|
+
Overlay.prototype.getChildrenDomRef = function() {
|
|
485
485
|
return this._$Children.get(0);
|
|
486
486
|
};
|
|
487
487
|
|
|
@@ -490,7 +490,7 @@ sap.ui.define([
|
|
|
490
490
|
* @return {jQuery} - jQuery with DOM Element inside
|
|
491
491
|
* @public
|
|
492
492
|
*/
|
|
493
|
-
Overlay.prototype.$ = function
|
|
493
|
+
Overlay.prototype.$ = function() {
|
|
494
494
|
return this._$DomRef || jQuery();
|
|
495
495
|
};
|
|
496
496
|
|
|
@@ -518,7 +518,7 @@ sap.ui.define([
|
|
|
518
518
|
* @return {sap.ui.Element} associated Element
|
|
519
519
|
* @public
|
|
520
520
|
*/
|
|
521
|
-
Overlay.prototype.getElement = function
|
|
521
|
+
Overlay.prototype.getElement = function() {
|
|
522
522
|
return ElementUtil.getElementInstance(this.getAssociation("element"));
|
|
523
523
|
};
|
|
524
524
|
|
|
@@ -563,7 +563,7 @@ sap.ui.define([
|
|
|
563
563
|
* @returns {jQuery|null} Parent jQuery object or null, if there is none
|
|
564
564
|
* @protected
|
|
565
565
|
*/
|
|
566
|
-
Overlay.prototype._getRenderingParent = function
|
|
566
|
+
Overlay.prototype._getRenderingParent = function() {
|
|
567
567
|
return this.isRoot() ? null : this.getParent().$();
|
|
568
568
|
};
|
|
569
569
|
|
|
@@ -575,7 +575,7 @@ sap.ui.define([
|
|
|
575
575
|
* @returns {Promise} Resolves as soon as <code>applyStyles</code> is done
|
|
576
576
|
* @public
|
|
577
577
|
*/
|
|
578
|
-
Overlay.prototype.applyStyles = function
|
|
578
|
+
Overlay.prototype.applyStyles = function(bForceScrollbarSync) {
|
|
579
579
|
this.fireBeforeGeometryChanged();
|
|
580
580
|
|
|
581
581
|
if (!this.isRendered() || this._bIsBeingDestroyed || this.getShouldBeDestroyed()) {
|
|
@@ -595,7 +595,7 @@ sap.ui.define([
|
|
|
595
595
|
this.getParent()._oScrollbarSynchronizers.forEach(function(oScrollbarSynchronizer) {
|
|
596
596
|
if (oScrollbarSynchronizer.isSyncing()) {
|
|
597
597
|
aPromises.push(
|
|
598
|
-
new Promise(function
|
|
598
|
+
new Promise(function(fnResolve) {
|
|
599
599
|
oScrollbarSynchronizer.attachEventOnce("synced", fnResolve);
|
|
600
600
|
oScrollbarSynchronizer.attachEventOnce("destroyed", fnResolve);
|
|
601
601
|
})
|
|
@@ -603,7 +603,7 @@ sap.ui.define([
|
|
|
603
603
|
}
|
|
604
604
|
});
|
|
605
605
|
if (aPromises.length) {
|
|
606
|
-
oGeometryChangedPromise = Promise.all(aPromises).then(function
|
|
606
|
+
oGeometryChangedPromise = Promise.all(aPromises).then(function() {
|
|
607
607
|
return this._applySizes(oGeometry, $RenderingParent, bForceScrollbarSync);
|
|
608
608
|
}.bind(this));
|
|
609
609
|
} else {
|
|
@@ -621,31 +621,31 @@ sap.ui.define([
|
|
|
621
621
|
|
|
622
622
|
// TODO: refactor geometryChanged event
|
|
623
623
|
return oGeometryChangedPromise
|
|
624
|
-
.catch(function
|
|
624
|
+
.catch(function(vError) {
|
|
625
625
|
Log.error(Util.createError(
|
|
626
626
|
"Overlay#applyStyles",
|
|
627
627
|
"Error occured during applySizes calculation: " + vError
|
|
628
628
|
));
|
|
629
629
|
})
|
|
630
|
-
.then(function
|
|
630
|
+
.then(function() {
|
|
631
631
|
this.fireGeometryChanged();
|
|
632
632
|
}.bind(this));
|
|
633
633
|
};
|
|
634
634
|
|
|
635
|
-
Overlay.prototype._applySizes = function
|
|
635
|
+
Overlay.prototype._applySizes = function(oGeometry, $RenderingParent, bForceScrollbarSync) {
|
|
636
636
|
this._setPosition(this.$(), oGeometry, $RenderingParent, bForceScrollbarSync);
|
|
637
637
|
if (oGeometry.domRef) {
|
|
638
638
|
this._setZIndex(oGeometry, this.$());
|
|
639
639
|
}
|
|
640
640
|
// We need to know when all our children have correct positions
|
|
641
641
|
var aPromises = this.getChildren()
|
|
642
|
-
.filter(function
|
|
642
|
+
.filter(function(oChild) {
|
|
643
643
|
return oChild.isRendered();
|
|
644
644
|
})
|
|
645
645
|
.map(function(oChild) {
|
|
646
646
|
var mParameters = {};
|
|
647
647
|
mParameters.bForceScrollbarSync = bForceScrollbarSync;
|
|
648
|
-
return new Promise(function
|
|
648
|
+
return new Promise(function(fnResolve) {
|
|
649
649
|
oChild.attachEventOnce("geometryChanged", fnResolve);
|
|
650
650
|
oChild.fireApplyStylesRequired(mParameters);
|
|
651
651
|
});
|
|
@@ -661,7 +661,7 @@ sap.ui.define([
|
|
|
661
661
|
* @param {object} oGeometry - Geometry object to get reference z-index from
|
|
662
662
|
* @param {jQuery} $overlayDomRef - DOM element to receive the z-index
|
|
663
663
|
*/
|
|
664
|
-
Overlay.prototype._setZIndex = function
|
|
664
|
+
Overlay.prototype._setZIndex = function(oGeometry, $overlayDomRef) {
|
|
665
665
|
var oOriginalDomRef = oGeometry.domRef;
|
|
666
666
|
var iZIndex = DOMUtil.getZIndex(oOriginalDomRef);
|
|
667
667
|
if (Util.isInteger(iZIndex)) {
|
|
@@ -779,7 +779,7 @@ sap.ui.define([
|
|
|
779
779
|
this._oScrollbarSynchronizers.delete($TargetDomRef.get(0));
|
|
780
780
|
if (
|
|
781
781
|
oTargetOverlay._oScrollbarSynchronizers.size === 0
|
|
782
|
-
&& !oTargetOverlay.getChildren().some(function
|
|
782
|
+
&& !oTargetOverlay.getChildren().some(function(oAggregationOverlay) {
|
|
783
783
|
return oAggregationOverlay._oScrollbarSynchronizers.size > 0;
|
|
784
784
|
})
|
|
785
785
|
) {
|
|
@@ -906,6 +906,7 @@ sap.ui.define([
|
|
|
906
906
|
bVisible = !!bVisible;
|
|
907
907
|
if (this.getVisible() !== bVisible) {
|
|
908
908
|
this.setProperty("visible", bVisible);
|
|
909
|
+
this.$().css("visibility", bVisible ? "" : "hidden");
|
|
909
910
|
this.fireVisibleChanged({
|
|
910
911
|
visible: bVisible
|
|
911
912
|
});
|
|
@@ -924,7 +925,7 @@ sap.ui.define([
|
|
|
924
925
|
);
|
|
925
926
|
};
|
|
926
927
|
|
|
927
|
-
Overlay.prototype.setIsRoot = function
|
|
928
|
+
Overlay.prototype.setIsRoot = function(bValue) {
|
|
928
929
|
bValue = !!bValue;
|
|
929
930
|
|
|
930
931
|
if (this.getIsRoot() !== bValue) {
|
|
@@ -19,16 +19,13 @@ function(
|
|
|
19
19
|
"use strict";
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @class
|
|
25
|
-
* Static registry for Overlays
|
|
22
|
+
* Static registry for Overlays.
|
|
26
23
|
*
|
|
24
|
+
* @namespace
|
|
27
25
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
26
|
+
* @version 1.100.0
|
|
29
27
|
*
|
|
30
28
|
* @private
|
|
31
|
-
* @static
|
|
32
29
|
* @since 1.30
|
|
33
30
|
* @alias sap.ui.dt.OverlayRegistry
|
|
34
31
|
* @experimental Since 1.30. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -18,13 +18,12 @@ function(
|
|
|
18
18
|
"use strict";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Utility functionality to work with overlays.
|
|
22
22
|
*
|
|
23
|
-
* @
|
|
23
|
+
* @namespace
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.100.0
|
|
26
26
|
* @private
|
|
27
|
-
* @static
|
|
28
27
|
* @since 1.30
|
|
29
28
|
* @alias sap.ui.dt.OverlayUtil
|
|
30
29
|
* @experimental Since 1.30. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
package/src/sap/ui/dt/Plugin.js
CHANGED
|
@@ -34,7 +34,7 @@ function (
|
|
|
34
34
|
* @extends sap.ui.base.ManagedObject
|
|
35
35
|
*
|
|
36
36
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
37
|
+
* @version 1.100.0
|
|
38
38
|
*
|
|
39
39
|
* @constructor
|
|
40
40
|
* @private
|
|
@@ -118,7 +118,7 @@ function (
|
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* Replaces current selection with specified list of overlays/controls.
|
|
121
|
-
* @param {sap.ui.dt.ElementOverlay|sap.ui.dt.ElementOverlay[]|sap.ui.core.Control|sap.ui.core.Control[]}
|
|
121
|
+
* @param {sap.ui.dt.ElementOverlay|sap.ui.dt.ElementOverlay[]|sap.ui.core.Control|sap.ui.core.Control[]} vObjects
|
|
122
122
|
* Objects which should be selected can be:
|
|
123
123
|
* - a single overlay
|
|
124
124
|
* - an array of overlays
|
|
@@ -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.100.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
|
@@ -18,16 +18,13 @@ sap.ui.define([
|
|
|
18
18
|
"use strict";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* @class
|
|
24
|
-
* Utilities for sap.ui.dt library
|
|
21
|
+
* Utilities for sap.ui.dt library.
|
|
25
22
|
*
|
|
23
|
+
* @namespace
|
|
26
24
|
* @author SAP SE
|
|
27
|
-
* @version 1.
|
|
25
|
+
* @version 1.100.0
|
|
28
26
|
*
|
|
29
27
|
* @private
|
|
30
|
-
* @static
|
|
31
28
|
* @since 1.54
|
|
32
29
|
* @alias sap.ui.dt.DOMUtil
|
|
33
30
|
* @experimental Since 1.54. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|
|
@@ -22,7 +22,7 @@ sap.ui.define([
|
|
|
22
22
|
* @extends sap.ui.base.ManagedObject
|
|
23
23
|
*
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.100.0
|
|
26
26
|
*
|
|
27
27
|
* @constructor
|
|
28
28
|
* @private
|
|
@@ -37,8 +37,8 @@ sap.ui.define([
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
40
|
+
* Status Enum, provides all available status.
|
|
41
|
+
* @type {Object<string, {key: string, text: string, value: int}>}
|
|
42
42
|
*/
|
|
43
43
|
Test.STATUS = {
|
|
44
44
|
SUPPORTED: {
|
|
@@ -69,7 +69,8 @@ sap.ui.define([
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Type Enum, provides all available types.
|
|
73
|
+
* @type {Object<string, string>}
|
|
73
74
|
* @static
|
|
74
75
|
*/
|
|
75
76
|
Test.TYPE = {
|
|
@@ -42,7 +42,7 @@ sap.ui.define([
|
|
|
42
42
|
* @extends sap.ui.core.Control
|
|
43
43
|
*
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.
|
|
45
|
+
* @version 1.100.0
|
|
46
46
|
*
|
|
47
47
|
* @constructor
|
|
48
48
|
* @private
|
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
/**
|
|
113
113
|
* Filters the table.
|
|
114
114
|
*
|
|
115
|
-
* @param {
|
|
115
|
+
* @param {string} sFilter The filter string.
|
|
116
116
|
*
|
|
117
117
|
* @public
|
|
118
118
|
*/
|
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.100.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.100.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.100.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.100.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.100.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.100.0
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.34
|
|
@@ -78,7 +78,7 @@ sap.ui.define([
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* @param {sap.ui.dt.Overlay} oOverlay - overlay instance
|
|
81
|
-
* @return {
|
|
81
|
+
* @return {Promise} Resolved promise with true value
|
|
82
82
|
* @protected
|
|
83
83
|
*/
|
|
84
84
|
ElementMover.prototype.checkMovable = function() {
|
|
@@ -28,12 +28,11 @@ sap.ui.define([
|
|
|
28
28
|
/**
|
|
29
29
|
* Utility class to calculate the next available z-index.
|
|
30
30
|
*
|
|
31
|
-
* @
|
|
31
|
+
* @namespace
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.
|
|
33
|
+
* @version 1.100.0
|
|
34
34
|
*
|
|
35
35
|
* @private
|
|
36
|
-
* @static
|
|
37
36
|
* @since 1.64
|
|
38
37
|
* @alias sap.ui.dt.util.ZIndexManager
|
|
39
38
|
* @experimental Since 1.64. This class is experimental and provides only limited functionality. Also the API might be changed in future.
|