@openui5/sap.ui.dt 1.96.1 → 1.97.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.
Files changed (54) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  3. package/package.json +2 -2
  4. package/src/sap/ui/dt/.library +2 -2
  5. package/src/sap/ui/dt/AggregationDesignTimeMetadata.js +2 -2
  6. package/src/sap/ui/dt/AggregationOverlay.js +2 -2
  7. package/src/sap/ui/dt/ControlObserver.js +2 -2
  8. package/src/sap/ui/dt/DOMUtil.js +8 -7
  9. package/src/sap/ui/dt/DesignTime.js +44 -16
  10. package/src/sap/ui/dt/DesignTimeMetadata.js +2 -2
  11. package/src/sap/ui/dt/DesignTimeStatus.js +1 -1
  12. package/src/sap/ui/dt/ElementDesignTimeMetadata.js +6 -4
  13. package/src/sap/ui/dt/ElementOverlay.js +5 -3
  14. package/src/sap/ui/dt/ElementUtil.js +3 -40
  15. package/src/sap/ui/dt/ManagedObjectObserver.js +3 -2
  16. package/src/sap/ui/dt/MetadataPropagationUtil.js +7 -7
  17. package/src/sap/ui/dt/MutationObserver.js +2 -2
  18. package/src/sap/ui/dt/Overlay.js +17 -18
  19. package/src/sap/ui/dt/OverlayRegistry.js +3 -4
  20. package/src/sap/ui/dt/OverlayUtil.js +5 -5
  21. package/src/sap/ui/dt/Plugin.js +2 -2
  22. package/src/sap/ui/dt/ScrollbarSynchronizer.js +2 -2
  23. package/src/sap/ui/dt/SelectionManager.js +2 -2
  24. package/src/sap/ui/dt/SelectionMode.js +2 -2
  25. package/src/sap/ui/dt/TaskManager.js +2 -2
  26. package/src/sap/ui/dt/TaskRunner.js +2 -2
  27. package/src/sap/ui/dt/Util.js +2 -2
  28. package/src/sap/ui/dt/designtime/notAdaptable.designtime.js +1 -1
  29. package/src/sap/ui/dt/designtime/notAdaptableTree.designtime.js +1 -1
  30. package/src/sap/ui/dt/designtime/notAdaptableVisibility.designtime.js +1 -1
  31. package/src/sap/ui/dt/enablement/ElementEnablementTest.js +3 -4
  32. package/src/sap/ui/dt/enablement/Test.js +26 -25
  33. package/src/sap/ui/dt/enablement/Util.js +10 -10
  34. package/src/sap/ui/dt/enablement/elementDesigntimeTest.js +1 -1
  35. package/src/sap/ui/dt/enablement/libraryTest.js +2 -2
  36. package/src/sap/ui/dt/enablement/report/LibraryReport.js +2 -2
  37. package/src/sap/ui/dt/enablement/report/QUnitReport.js +3 -4
  38. package/src/sap/ui/dt/enablement/report/Statistic.js +2 -2
  39. package/src/sap/ui/dt/enablement/report/StatisticRenderer.js +2 -2
  40. package/src/sap/ui/dt/enablement/report/Table.js +3 -4
  41. package/src/sap/ui/dt/enablement/report/TableRenderer.js +2 -2
  42. package/src/sap/ui/dt/library.js +3 -3
  43. package/src/sap/ui/dt/plugin/ContextMenu.js +22 -10
  44. package/src/sap/ui/dt/plugin/ControlDragDrop.js +2 -2
  45. package/src/sap/ui/dt/plugin/CutPaste.js +2 -2
  46. package/src/sap/ui/dt/plugin/DragDrop.js +20 -19
  47. package/src/sap/ui/dt/plugin/ElementMover.js +4 -3
  48. package/src/sap/ui/dt/plugin/MouseSelection.js +2 -2
  49. package/src/sap/ui/dt/plugin/TabHandling.js +2 -2
  50. package/src/sap/ui/dt/plugin/ToolHooks.js +2 -2
  51. package/src/sap/ui/dt/themes/base/library.source.less +1 -1
  52. package/src/sap/ui/dt/themes/sap_hcb/library.source.less +1 -1
  53. package/src/sap/ui/dt/util/ZIndexManager.js +2 -2
  54. package/src/sap/ui/dt/util/_createPromise.js +7 -5
package/.reuse/dep5 CHANGED
@@ -418,7 +418,7 @@ Comment: these files contain content from SAP and BooleanExpressionEvaluator: Bo
418
418
 
419
419
  # Library: sap.ui.webc.common:
420
420
 
421
- Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
421
+ Files: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.* src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
422
422
  Copyright: SAP
423
423
  License: Apache-2.0
424
424
  Comment: these files belong to: UI5 Web Components
package/THIRDPARTY.txt CHANGED
@@ -412,10 +412,11 @@ Copyright: SAP
412
412
  License: Apache-2.0
413
413
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
414
414
  Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
415
- src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theme-base/*.*
415
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/theming/*.*
416
416
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/localization/*.*
417
417
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons/*.*
418
418
  src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
419
+ src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
419
420
 
420
421
  Component: lit-html, version: 1.4.1
421
422
  Copyright: Google LLC
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.ui.dt",
3
- "version": "1.96.1",
3
+ "version": "1.97.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.96.1"
17
+ "@openui5/sap.ui.core": "1.97.1"
18
18
  }
19
19
  }
@@ -4,9 +4,9 @@
4
4
  <name>sap.ui.dt</name>
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>OpenUI5
7
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
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.1</version>
9
+ <version>1.97.1</version>
10
10
 
11
11
  <documentation>SAP UI library: sap.ui.dt (by SAP, Author)</documentation>
12
12
 
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,7 +23,7 @@ function (
23
23
  * @extends sap.ui.dt.DesignTimeMetadata
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.1
26
+ * @version 1.97.1
27
27
  *
28
28
  * @constructor
29
29
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -35,7 +35,7 @@ function(
35
35
  * @extends sap.ui.dt.Overlay
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.96.1
38
+ * @version 1.97.1
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -22,7 +22,7 @@ function(ManagedObjectObserver) {
22
22
  * @extends sap.ui.dt.ManagedObjectObserver
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.96.1
25
+ * @version 1.97.1
26
26
  *
27
27
  * @constructor
28
28
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * Utility functionality for DOM
24
24
  *
25
25
  * @author SAP SE
26
- * @version 1.96.1
26
+ * @version 1.97.1
27
27
  *
28
28
  * @private
29
29
  * @static
@@ -173,8 +173,8 @@ sap.ui.define([
173
173
 
174
174
  /**
175
175
  * Checks whether DOM Element has vertical or horizontal scrollbar
176
- * @param oDomRef {HTMLElement} - DOM Element
177
- * @returns {boolean}
176
+ * @param {HTMLElement} oDomRef - DOM element
177
+ * @returns {boolean} <code>true</code> if the DOM element has a scrollbar
178
178
  */
179
179
  DOMUtil.hasScrollBar = function(oDomRef) {
180
180
  return DOMUtil.hasVerticalScrollBar(oDomRef) || DOMUtil.hasHorizontalScrollBar(oDomRef);
@@ -217,7 +217,8 @@ sap.ui.define([
217
217
 
218
218
 
219
219
  /**
220
- * @param {HTMLElement} oDomRef
220
+ * @param {HTMLElement} oDomRef - DOM element
221
+ * @returns {object} Object with overflowX and overflowY
221
222
  */
222
223
  DOMUtil.getOverflows = function(oDomRef) {
223
224
  var $DomRef = jQuery(oDomRef);
@@ -438,8 +439,8 @@ sap.ui.define([
438
439
  /**
439
440
  * Check whether the target node is a descendant of a node referenced by id
440
441
  * @param {string} sId - ID of a potential parent node
441
- * @param oTargetNode - Node to look for in a potential parent node
442
- * @returns {boolean} - true if a potential parent contains the target node
442
+ * @param {HTMLElement} oTargetNode - Node to look for in a potential parent node
443
+ * @returns {boolean} <code>true</code> if a potential parent contains the target node
443
444
  */
444
445
  DOMUtil.contains = function (sId, oTargetNode) {
445
446
  var oNode = document.getElementById(sId);
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -25,7 +25,9 @@ sap.ui.define([
25
25
  "sap/ui/dt/SelectionMode",
26
26
  "sap/base/util/includes",
27
27
  "sap/ui/dt/DesignTimeStatus",
28
- "sap/base/util/restricted/_curry"
28
+ "sap/base/util/restricted/_curry",
29
+ "sap/base/util/restricted/_difference",
30
+ "sap/base/util/isEmptyObject"
29
31
  ],
30
32
  function (
31
33
  ManagedObject,
@@ -48,7 +50,9 @@ function (
48
50
  SelectionMode,
49
51
  includes,
50
52
  DesignTimeStatus,
51
- _curry
53
+ _curry,
54
+ _difference,
55
+ isEmptyObject
52
56
  ) {
53
57
  "use strict";
54
58
 
@@ -64,7 +68,7 @@ function (
64
68
  * @extends sap.ui.base.ManagedObject
65
69
  *
66
70
  * @author SAP SE
67
- * @version 1.96.1
71
+ * @version 1.97.1
68
72
  *
69
73
  * @constructor
70
74
  * @private
@@ -702,6 +706,7 @@ function (
702
706
  * @property {boolean} [root="true"] - Proxy for "isRoot" property of sap.ui.dt.ElementOverlay constructor
703
707
  * @property {object} [parentMetadata] - Map with metadata from the parent
704
708
  * @property {boolean} [visible] - Proxy for "visible" property of sap.ui.dt.ElementOverlay constructor
709
+ * @property {boolean} [isTemplate] - Marker that overlay is part of template
705
710
  * @private
706
711
  */
707
712
 
@@ -747,7 +752,7 @@ function (
747
752
  .then(
748
753
  // Fulfilled
749
754
  function (oElementOverlay) {
750
- return this._createChildren(oElementOverlay, mParams.parentMetadata)
755
+ return this._createChildren(oElementOverlay, mParams)
751
756
  .then(function () {
752
757
  // Remove overlay promise from the map only when it is "officially" available
753
758
  // and registered everywhere (OverlayRegistry, Plugins, etc)
@@ -929,24 +934,45 @@ function (
929
934
  }
930
935
 
931
936
  /**
932
- * Create children for specified ElementOverlay
937
+ * Creates children for specified ElementOverlay.
933
938
  * @param {sap.ui.dt.ElementOverlay} oElementOverlay - ElementOverlay to create children for
934
- * @param {object} [mParentAggregationMetadata] - Since children are being created for certain aggregation, this is an aggregation metadata.
935
- * @returns {Promise} - resolves when whole hierarchy of children for specified ElementOverlay is created
939
+ * @param {object} mParams - Property bag
940
+ * @param {object} [mParams.parentMetadata] - Parent aggregation metadata
941
+ * @param {boolean} [mParams.isTemplate] - Whether the overlay is part of an aggregation binding template
942
+ * @returns {Promise} Resolves when whole hierarchy of children for specified ElementOverlay is created
936
943
  * @private
937
944
  */
938
- DesignTime.prototype._createChildren = function (oElementOverlay, mParentAggregationMetadata) {
945
+ DesignTime.prototype._createChildren = function (oElementOverlay, mParams) {
939
946
  var aAggregationNames = oElementOverlay.getAggregationNames();
947
+ var mParentAggregationMetadata = mParams.parentMetadata;
940
948
  var mAggregationBindingTemplates = getAggregationBindingTemplates(oElementOverlay, aAggregationNames);
941
949
  var aTemplateAggregationNames = Object.keys(mAggregationBindingTemplates);
942
- return Promise.all([
943
- this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, mAggregationBindingTemplates),
944
- this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aAggregationNames)
945
- ]);
950
+
951
+ // Consider each aggregation binding template which is not nested inside an existing template structure as a root template
952
+ // Separate root templates and their children from the instances of the root template as well as all nested template instances
953
+ var bEncounteredTemplate = mParams.isTemplate !== undefined;
954
+ var bHasTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
955
+ var bIsRootTemplate = bHasTemplateAggregation && !bEncounteredTemplate;
956
+ var bIsTemplate = bIsRootTemplate ? true : mParams.isTemplate;
957
+ // Whether cloned instances are nested deeply in the root template structure
958
+ var bIsCloneInsideTemplate = bIsRootTemplate ? false : mParams.isTemplate;
959
+
960
+ // Avoid creating aggregation overlays for cloned template instances inside the template structure
961
+ if (bHasTemplateAggregation && bIsTemplate && !bIsRootTemplate) {
962
+ aAggregationNames = _difference(aAggregationNames, aTemplateAggregationNames);
963
+ }
964
+
965
+ return this._createChildrenOverlays(oElementOverlay, mParentAggregationMetadata, aTemplateAggregationNames, bIsTemplate, mAggregationBindingTemplates)
966
+ .then(this._createChildrenOverlays.bind(this, oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsCloneInsideTemplate));
946
967
  };
947
968
 
948
- DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, mAggregationBindingTemplates) {
949
- var bIsTemplateAggregation = !!mAggregationBindingTemplates;
969
+ DesignTime.prototype._createChildrenOverlays = function (oElementOverlay, mParentAggregationMetadata, aAggregationNames, bIsTemplate, mAggregationBindingTemplates) {
970
+ var bIsTemplateAggregation = !isEmptyObject(mAggregationBindingTemplates);
971
+ // Nested template inside a clone of another template
972
+ if (bIsTemplateAggregation && !bIsTemplate) {
973
+ return Promise.resolve();
974
+ }
975
+
950
976
  return Promise.all(
951
977
  aAggregationNames.map(function (sAggregationName) {
952
978
  var oElement = oElementOverlay.getElement();
@@ -975,7 +1001,8 @@ function (
975
1001
  return this.createOverlay({
976
1002
  element: oElement,
977
1003
  root: false,
978
- parentMetadata: mAggregationMetadata
1004
+ parentMetadata: mAggregationMetadata,
1005
+ isTemplate: bIsTemplate
979
1006
  })
980
1007
  // If creation of one of the children is aborted, we still continue our execution
981
1008
  .catch(function (oError) {
@@ -989,6 +1016,7 @@ function (
989
1016
  if (
990
1017
  oChildElementOverlay instanceof ElementOverlay
991
1018
  && !oChildElementOverlay.bIsDestroyed
1019
+ && !oChildElementOverlay.getParent()
992
1020
  ) {
993
1021
  oAggregationOverlay.addChild(oChildElementOverlay, true);
994
1022
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -46,7 +46,7 @@ function(
46
46
  * @extends sap.ui.base.ManagedObject
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.96.1
49
+ * @version 1.97.1
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
  sap.ui.define([], function() {
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -9,8 +9,7 @@ sap.ui.define([
9
9
  "sap/ui/dt/DesignTimeMetadata",
10
10
  "sap/ui/dt/AggregationDesignTimeMetadata",
11
11
  "sap/ui/dt/ElementUtil"
12
- ],
13
- function(
12
+ ], function(
14
13
  DesignTimeMetadata,
15
14
  AggregationDesignTimeMetadata,
16
15
  ElementUtil
@@ -28,7 +27,7 @@ function(
28
27
  * @extends sap.ui.dt.DesignTimeMetadata
29
28
  *
30
29
  * @author SAP SE
31
- * @version 1.96.1
30
+ * @version 1.97.1
32
31
  *
33
32
  * @constructor
34
33
  * @private
@@ -252,6 +251,9 @@ function(
252
251
  /**
253
252
  * Returns the scroll containers or an empty array
254
253
  *
254
+ * @param {object} oElement - Element
255
+ * @param {boolean} bInvalidate - Indicates if the scroll container should be invalidated first
256
+ * @param {function} fnUpdateFunction - Function to be called for update
255
257
  * @return {array} scrollContainers or empty array
256
258
  * @public
257
259
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.1
58
+ * @version 1.97.1
59
59
  *
60
60
  * @constructor
61
61
  * @private
@@ -421,6 +421,7 @@ sap.ui.define([
421
421
 
422
422
  /**
423
423
  * Sorts children DOM Nodes in their visual order
424
+ * @param {object} oContainer - Container object whose children should be sorted
424
425
  * @private
425
426
  */
426
427
  ElementOverlay.prototype._sortChildren = function(oContainer) {
@@ -573,7 +574,8 @@ sap.ui.define([
573
574
 
574
575
  /**
575
576
  * Gets information about scroll containers from DesignTime metadata
576
- * @returns {object[]} - returns an array with scroll containers description
577
+ * @param {boolean} bInvalidate - Indicates if the scroll container should be invalidated first
578
+ * @returns {object[]} Array with the scroll container's description
577
579
  */
578
580
  ElementOverlay.prototype.getScrollContainers = function (bInvalidate) {
579
581
  return this.getDesignTimeMetadata().getScrollContainers(this.getElement(), bInvalidate, this._updateScrollContainer.bind(this));
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -14,8 +14,7 @@ sap.ui.define([
14
14
  "sap/ui/core/Component",
15
15
  "sap/base/util/isPlainObject",
16
16
  "sap/ui/core/UIArea"
17
- ],
18
- function(
17
+ ], function(
19
18
  jQuery,
20
19
  BaseObject,
21
20
  Util,
@@ -33,7 +32,7 @@ function(
33
32
  * @class Utility functionality to work with elements, e.g. iterate through aggregations, find parents, ...
34
33
  *
35
34
  * @author SAP SE
36
- * @version 1.96.1
35
+ * @version 1.97.1
37
36
  *
38
37
  * @private
39
38
  * @static
@@ -57,9 +56,6 @@ function(
57
56
  }, this);
58
57
  };
59
58
 
60
- /**
61
- *
62
- */
63
59
  ElementUtil.getElementInstance = function(vElement) {
64
60
  if (typeof vElement === "string") {
65
61
  var oElement = sap.ui.getCore().byId(vElement);
@@ -68,9 +64,6 @@ function(
68
64
  return vElement;
69
65
  };
70
66
 
71
- /**
72
- *
73
- */
74
67
  ElementUtil.hasAncestor = function(oElement, oAncestor) {
75
68
  oAncestor = this.fixComponentContainerElement(oAncestor);
76
69
  var oFixedParent;
@@ -88,17 +81,11 @@ function(
88
81
  return !!oElement;
89
82
  };
90
83
 
91
- /**
92
- *
93
- */
94
84
  ElementUtil.getClosestElementForNode = function(oNode) {
95
85
  var $ClosestElement = jQuery(oNode).closest("[data-sap-ui]");
96
86
  return $ClosestElement.length ? sap.ui.getCore().byId($ClosestElement.attr("data-sap-ui")) : undefined;
97
87
  };
98
88
 
99
- /**
100
- *
101
- */
102
89
  ElementUtil.fixComponentParent = function(oElement) {
103
90
  if (BaseObject.isA(oElement, "sap.ui.core.UIComponent")) {
104
91
  var oComponentContainer = oElement.oContainer;
@@ -110,9 +97,6 @@ function(
110
97
  }
111
98
  };
112
99
 
113
- /**
114
- *
115
- */
116
100
  ElementUtil.fixComponentContainerElement = function(oElement) {
117
101
  if (BaseObject.isA(oElement, "sap.ui.core.ComponentContainer")) {
118
102
  // This happens when the compontentContainer has not been rendered yet
@@ -124,9 +108,6 @@ function(
124
108
  return oElement;
125
109
  };
126
110
 
127
- /**
128
- *
129
- */
130
111
  ElementUtil.getDomRef = function(oElement) {
131
112
  if (oElement) {
132
113
  var oDomRef;
@@ -140,9 +121,6 @@ function(
140
121
  }
141
122
  };
142
123
 
143
- /**
144
- *
145
- */
146
124
  ElementUtil.findAllSiblingsInContainer = function(oElement, oContainer) {
147
125
  var oParent = oElement && oElement.getParent();
148
126
  if (!oParent) {
@@ -211,9 +189,6 @@ function(
211
189
  return this.getAggregation(oParent, sAggregationName).indexOf(oElement);
212
190
  };
213
191
 
214
- /**
215
- *
216
- */
217
192
  ElementUtil.addAggregation = function(oParent, sAggregationName, oElement) {
218
193
  if (this.hasAncestor(oParent, oElement)) {
219
194
  throw new Error("Trying to add an element to itself or its successors");
@@ -226,9 +201,6 @@ function(
226
201
  }
227
202
  };
228
203
 
229
- /**
230
- *
231
- */
232
204
  ElementUtil.removeAggregation = function(oParent, sAggregationName, oElement, bSuppressInvalidate) {
233
205
  var sAggregationRemoveMutator = this.getAggregationAccessors(oParent, sAggregationName).remove;
234
206
  if (sAggregationRemoveMutator) {
@@ -238,9 +210,6 @@ function(
238
210
  }
239
211
  };
240
212
 
241
- /**
242
- *
243
- */
244
213
  ElementUtil.insertAggregation = function(oParent, sAggregationName, oElement, iIndex) {
245
214
  if (this.hasAncestor(oParent, oElement)) {
246
215
  throw new Error("Trying to add an element to itself or its successors");
@@ -265,9 +234,6 @@ function(
265
234
  }
266
235
  };
267
236
 
268
- /**
269
- *
270
- */
271
237
  ElementUtil.isValidForAggregation = function(oParent, sAggregationName, oElement) {
272
238
  var oAggregationMetadata = oParent.getMetadata().getAggregation(sAggregationName);
273
239
 
@@ -329,9 +295,6 @@ function(
329
295
  }, this);
330
296
  };
331
297
 
332
- /**
333
- *
334
- */
335
298
  ElementUtil.hasInterface = function(oElement, sInterface) {
336
299
  var aInterfaces = oElement.getMetadata().getInterfaces();
337
300
  return aInterfaces.indexOf(sInterface) !== -1;
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.1
28
+ * @version 1.97.1
29
29
  * @constructor
30
30
  * @private
31
31
  * @since 1.30
@@ -588,6 +588,7 @@ sap.ui.define([
588
588
  /**
589
589
  * Stops observing the target object. Override this method in classes which extend ManagedObjectObserver.
590
590
  *
591
+ * @param {object} oTarget - Target object
591
592
  * @protected
592
593
  */
593
594
  ManagedObjectObserver.prototype.unobserve = function(oTarget) {
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -9,8 +9,7 @@ sap.ui.define([
9
9
  "sap/ui/dt/Util",
10
10
  "sap/base/util/merge",
11
11
  "sap/base/util/isEmptyObject"
12
- ],
13
- function(
12
+ ], function(
14
13
  Util,
15
14
  merge,
16
15
  isEmptyObject
@@ -22,7 +21,7 @@ function(
22
21
  *
23
22
  * @class Functionality to propagate DesignTime and RelevantContainer
24
23
  * @author SAP SE
25
- * @version 1.96.1
24
+ * @version 1.97.1
26
25
  * @private
27
26
  * @static
28
27
  * @since 1.54
@@ -99,9 +98,10 @@ function(
99
98
  * Extend the passed aggregationOverlay metadata with propagated aggregationOverlay metadata from parent
100
99
  * and metadata to propagte from passed elementOverlay metadata.
101
100
  *
102
- * @param {object} mOriginalMetadata - aggregation designtime metadata data map to be extended with propagation data
103
- * @param {sap.ui.core.Element} oElement - element may be used as relevant container
104
- * @return {object} Returns extended data part of the element designtime metadata.
101
+ * @param {object} mOriginalMetadata - Aggregation design time metadata data map to be extended with propagation data
102
+ * @param {sap.ui.core.Element} oElement - Element may be used as relevant container
103
+ * @param {object} mParentAggregationMetadata - Aggregation design time metadata of the parent
104
+ * @return {object} Extended data part of the element design time metadata.
105
105
  */
106
106
  MetadataPropagationUtil.propagateMetadataToAggregationOverlay = function(mOriginalMetadata, oElement, mParentAggregationMetadata) {
107
107
  var mNewPropagationInfo;
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * ! OpenUI5
3
- * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
3
+ * (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
4
4
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
5
5
  */
6
6
 
@@ -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.1
33
+ * @version 1.97.1
34
34
  * @constructor
35
35
  * @private
36
36
  * @since 1.30