@openui5/sap.ui.dt 1.96.7 → 1.96.8

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.
Files changed (43) hide show
  1. package/package.json +2 -2
  2. package/src/sap/ui/dt/.library +1 -1
  3. package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +1 -1
  4. package/src/sap/ui/dt/AggregationOverlay.js +1 -1
  5. package/src/sap/ui/dt/ControlObserver.js +1 -1
  6. package/src/sap/ui/dt/DOMUtil.js +1 -1
  7. package/src/sap/ui/dt/DesignTime.js +2 -2
  8. package/src/sap/ui/dt/DesignTimeMetadata.js +1 -1
  9. package/src/sap/ui/dt/ElementDesignTimeMetadata.js +1 -1
  10. package/src/sap/ui/dt/ElementOverlay.js +5 -2
  11. package/src/sap/ui/dt/ElementUtil.js +1 -1
  12. package/src/sap/ui/dt/ManagedObjectObserver.js +1 -1
  13. package/src/sap/ui/dt/MetadataPropagationUtil.js +1 -1
  14. package/src/sap/ui/dt/MutationObserver.js +1 -1
  15. package/src/sap/ui/dt/Overlay.js +9 -4
  16. package/src/sap/ui/dt/OverlayRegistry.js +1 -1
  17. package/src/sap/ui/dt/OverlayUtil.js +1 -1
  18. package/src/sap/ui/dt/Plugin.js +1 -1
  19. package/src/sap/ui/dt/ScrollbarSynchronizer.js +1 -1
  20. package/src/sap/ui/dt/SelectionManager.js +1 -1
  21. package/src/sap/ui/dt/SelectionMode.js +1 -1
  22. package/src/sap/ui/dt/TaskManager.js +1 -1
  23. package/src/sap/ui/dt/TaskRunner.js +1 -1
  24. package/src/sap/ui/dt/Util.js +1 -1
  25. package/src/sap/ui/dt/enablement/ElementEnablementTest.js +1 -1
  26. package/src/sap/ui/dt/enablement/Test.js +1 -1
  27. package/src/sap/ui/dt/enablement/Util.js +1 -1
  28. package/src/sap/ui/dt/enablement/report/LibraryReport.js +1 -1
  29. package/src/sap/ui/dt/enablement/report/QUnitReport.js +1 -1
  30. package/src/sap/ui/dt/enablement/report/Statistic.js +1 -1
  31. package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +1 -1
  32. package/src/sap/ui/dt/enablement/report/Table.js +1 -1
  33. package/src/sap/ui/dt/enablement/report/TableRenderer.js +1 -1
  34. package/src/sap/ui/dt/library.js +2 -2
  35. package/src/sap/ui/dt/plugin/ContextMenu.js +1 -1
  36. package/src/sap/ui/dt/plugin/ControlDragDrop.js +1 -1
  37. package/src/sap/ui/dt/plugin/CutPaste.js +1 -1
  38. package/src/sap/ui/dt/plugin/DragDrop.js +1 -1
  39. package/src/sap/ui/dt/plugin/ElementMover.js +1 -1
  40. package/src/sap/ui/dt/plugin/MouseSelection.js +1 -1
  41. package/src/sap/ui/dt/plugin/TabHandling.js +1 -1
  42. package/src/sap/ui/dt/plugin/ToolHooks.js +1 -1
  43. 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.96.7",
3
+ "version": "1.96.8",
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.96.7"
17
+ "@openui5/sap.ui.core": "1.96.8"
18
18
  }
19
19
  }
@@ -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.96.7</version>
9
+ <version>1.96.8</version>
10
10
 
11
11
  <documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
12
12
 
@@ -23,7 +23,7 @@ function (
23
23
  * @extends sap.ui.dt.DesignTimeMetadata
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.7
26
+ * @version 1.96.8
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -35,7 +35,7 @@ function(
35
35
  * @extends sap.ui.dt.Overlay
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.96.7
38
+ * @version 1.96.8
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -22,7 +22,7 @@ function(ManagedObjectObserver) {
22
22
  * @extends sap.ui.dt.ManagedObjectObserver
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.96.7
25
+ * @version 1.96.8
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * Utility functionality for DOM
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.7
26
+ * @version 1.96.8
27
27
  *
28
28
  * @private
29
29
  * @static
@@ -64,7 +64,7 @@ function (
64
64
  * @extends sap.ui.base.ManagedObject
65
65
  *
66
66
  * @author SAP SE
67
- * @version 1.96.7
67
+ * @version 1.96.8
68
68
  *
69
69
  * @constructor
70
70
  * @private
@@ -355,7 +355,7 @@ function (
355
355
  var oElementOverlay = oEvent.getSource();
356
356
  this._oTaskManager.add({
357
357
  type: "applyStyles",
358
- callbackFn: oElementOverlay.applyStyles.bind(oElementOverlay, mParameters.bForceScrollbarSync),
358
+ callbackFn: oElementOverlay.applyStyles.bind(oElementOverlay, mParameters.bForceScrollbarSync, mParameters.bSkipForceCalculation),
359
359
  overlayId: oElementOverlay.getId()
360
360
  }, "overlayId");
361
361
  };
@@ -46,7 +46,7 @@ function(
46
46
  * @extends sap.ui.base.ManagedObject
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.96.7
49
+ * @version 1.96.8
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -28,7 +28,7 @@ function(
28
28
  * @extends sap.ui.dt.DesignTimeMetadata
29
29
  *
30
30
  * @author SAP SE
31
- * @version 1.96.7
31
+ * @version 1.96.8
32
32
  *
33
33
  * @constructor
34
34
  * @private
@@ -55,7 +55,7 @@ sap.ui.define([
55
55
  * @extends sap.ui.dt.Overlay
56
56
  *
57
57
  * @author SAP SE
58
- * @version 1.96.7
58
+ * @version 1.96.8
59
59
  *
60
60
  * @constructor
61
61
  * @private
@@ -823,6 +823,9 @@ sap.ui.define([
823
823
  window.cancelAnimationFrame(this._iApplyStylesRequest);
824
824
  }
825
825
  this._iApplyStylesRequest = window.requestAnimationFrame(function () {
826
+ //Cache the geometry values
827
+ this.getGeometry(true);
828
+ mParameters.bSkipForceCalculation = true;
826
829
  this.fireApplyStylesRequired(mParameters);
827
830
  delete this._iApplyStylesRequest;
828
831
  }.bind(this));
@@ -968,7 +971,7 @@ sap.ui.define([
968
971
  } else if (typeof oDTData.isVisible === "function") {
969
972
  bVisible = oDTData.isVisible(oElement);
970
973
  } else {
971
- var oGeometry = this.getGeometry(true);
974
+ var oGeometry = this.getGeometry();
972
975
  if (oGeometry) {
973
976
  bVisible = oGeometry.visible;
974
977
  } else if (oElement instanceof Control) {
@@ -33,7 +33,7 @@ function(
33
33
  * @class Utility functionality to work with elements, e.g. iterate through aggregations, find parents, ...
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.96.7
36
+ * @version 1.96.8
37
37
  *
38
38
  * @private
39
39
  * @static
@@ -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.96.7
28
+ * @version 1.96.8
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.30
@@ -22,7 +22,7 @@ function(
22
22
  *
23
23
  * @class Functionality to propagate DesignTime and RelevantContainer
24
24
  * @author SAP SE
25
- * @version 1.96.7
25
+ * @version 1.96.8
26
26
  * @private
27
27
  * @static
28
28
  * @since 1.54
@@ -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.96.7
33
+ * @version 1.96.8
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.30
@@ -46,7 +46,7 @@ function (
46
46
  * @extends sap.ui.core.Element
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.96.7
49
+ * @version 1.96.8
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -574,19 +574,24 @@ function (
574
574
  * The calculation is based on original associated DOM state and parent overlays
575
575
  * This method also calls "applyStyles" method for every child Overlay of this Overlay (cascade)
576
576
  * @param {boolean} bForceScrollbarSync - `true` to force a scrollbars synchronisation if there are any
577
+ * @param {boolean} bSkipForceCalculation - `true` to skip the geometry calculation (geometry was already cached)
577
578
  * @public
578
579
  */
579
- Overlay.prototype.applyStyles = function (bForceScrollbarSync) {
580
+ Overlay.prototype.applyStyles = function (bForceScrollbarSync, bSkipForceCalculation) {
581
+ var oGeometry;
580
582
  this.fireBeforeGeometryChanged();
581
583
 
582
584
  if (!this.isRendered() || this._bIsBeingDestroyed || this.getShouldBeDestroyed()) {
583
585
  return Promise.resolve();
584
586
  }
585
587
 
588
+ // If not done before, re-calculate the Geometry to cache the values for the isVisible() check
589
+ if (this.getVisible()) {
590
+ oGeometry = this.getGeometry(!bSkipForceCalculation);
591
+ }
592
+
586
593
  var oGeometryChangedPromise = Promise.resolve();
587
594
  if (this.isVisible()) {
588
- var oGeometry = this.getGeometry(true);
589
-
590
595
  if (oGeometry && oGeometry.visible) {
591
596
  this._setSize(this.$(), oGeometry);
592
597
  var $RenderingParent = this._getRenderingParent();
@@ -25,7 +25,7 @@ function(
25
25
  * Static registry for Overlays
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.7
28
+ * @version 1.96.8
29
29
  *
30
30
  * @private
31
31
  * @static
@@ -22,7 +22,7 @@ function(
22
22
  *
23
23
  * @class Utility functionality to work with overlays
24
24
  * @author SAP SE
25
- * @version 1.96.7
25
+ * @version 1.96.8
26
26
  * @private
27
27
  * @static
28
28
  * @since 1.30
@@ -26,7 +26,7 @@ function(
26
26
  * @extends sap.ui.base.ManagedObject
27
27
  *
28
28
  * @author SAP SE
29
- * @version 1.96.7
29
+ * @version 1.96.8
30
30
  *
31
31
  * @constructor
32
32
  * @private
@@ -24,7 +24,7 @@ function(
24
24
  * @extends sap.ui.base.ManagedObject
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.96.7
27
+ * @version 1.96.8
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -34,7 +34,7 @@ function (
34
34
  * @extends sap.ui.base.ManagedObject
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.96.7
37
+ * @version 1.96.8
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -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.96.7
19
+ * @version 1.96.8
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
  */
@@ -21,7 +21,7 @@ function(
21
21
  * The TaskManager keeps list of task and allows to manage them via simple API.
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.96.7
24
+ * @version 1.96.8
25
25
  *
26
26
  * @constructor
27
27
  * @private
@@ -24,7 +24,7 @@ function(
24
24
  * TaskRunner run tasks defined in sap.ui.dt.TaskManager.
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.96.7
27
+ * @version 1.96.8
28
28
  *
29
29
  * @constructor
30
30
  * @private
@@ -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.96.7
27
+ * @version 1.96.8
28
28
  *
29
29
  * @private
30
30
  * @static
@@ -38,7 +38,7 @@ function(
38
38
  * @extends sap.ui.dt.test.Test
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.96.7
41
+ * @version 1.96.8
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -23,7 +23,7 @@ function(ManagedObject) {
23
23
  * @extends sap.ui.base.ManagedObject
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.7
26
+ * @version 1.96.8
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -23,7 +23,7 @@ function(
23
23
  * @namespace
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.7
26
+ * @version 1.96.8
27
27
  *
28
28
  * @private
29
29
  * @static
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @extends sap.ui.dt.enablement.Test
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.7
28
+ * @version 1.96.8
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -25,7 +25,7 @@ function(
25
25
  * @extends sap.ui.base.ManagedObject
26
26
  *
27
27
  * @author SAP SE
28
- * @version 1.96.7
28
+ * @version 1.96.8
29
29
  *
30
30
  * @constructor
31
31
  * @private
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.7
35
+ * @version 1.96.8
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -10,7 +10,7 @@ sap.ui.define(function() {
10
10
 
11
11
  /**
12
12
  * @author SAP SE
13
- * @version 1.96.7
13
+ * @version 1.96.8
14
14
  * @namespace
15
15
  */
16
16
  var StatisticRenderer = {};
@@ -43,7 +43,7 @@ function(
43
43
  * @extends sap.ui.core.Control
44
44
  *
45
45
  * @author SAP SE
46
- * @version 1.96.7
46
+ * @version 1.96.8
47
47
  *
48
48
  * @constructor
49
49
  * @private
@@ -10,7 +10,7 @@ sap.ui.define(function() {
10
10
 
11
11
  /**
12
12
  * @author SAP SE
13
- * @version 1.96.7
13
+ * @version 1.96.8
14
14
  * @namespace
15
15
  */
16
16
  var TableRenderer = {};
@@ -23,7 +23,7 @@ function (
23
23
  * @namespace
24
24
  * @name sap.ui.dt
25
25
  * @author SAP SE
26
- * @version 1.96.7
26
+ * @version 1.96.8
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.96.7",
35
+ version: "1.96.8",
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.96.7
37
+ * @version 1.96.8
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.96.7
29
+ * @version 1.96.8
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.96.7
36
+ * @version 1.96.8
37
37
  * @constructor
38
38
  * @private
39
39
  * @since 1.34
@@ -37,7 +37,7 @@ function(
37
37
  * @extends sap.ui.dt.Plugin
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.96.7
40
+ * @version 1.96.8
41
41
  *
42
42
  * @constructor
43
43
  * @private
@@ -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.96.7
33
+ * @version 1.96.8
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.34
@@ -22,7 +22,7 @@ function(Plugin) {
22
22
  * @extends sap.ui.dt.Plugin
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.96.7
25
+ * @version 1.96.8
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -27,7 +27,7 @@ sap.ui.define([
27
27
  * @class The TabHandling plugin adjusts the tabindex for the elements.
28
28
  * @extends sap.ui.dt.Plugin
29
29
  * @author SAP SE
30
- * @version 1.96.7
30
+ * @version 1.96.8
31
31
  * @constructor
32
32
  * @private
33
33
  * @since 1.38
@@ -16,7 +16,7 @@ sap.ui.define([
16
16
  *
17
17
  * @extends sap.ui.dt.Plugin
18
18
  * @author SAP SE
19
- * @version 1.96.7
19
+ * @version 1.96.8
20
20
  * @constructor
21
21
  * @private
22
22
  * @since 1.61
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  *
31
31
  * @class
32
32
  * @author SAP SE
33
- * @version 1.96.7
33
+ * @version 1.96.8
34
34
  *
35
35
  * @private
36
36
  * @static