@openui5/sap.uxap 1.123.1 → 1.124.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.123.1",
3
+ "version": "1.124.0",
4
4
  "description": "OpenUI5 UI Library sap.uxap",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,9 +14,9 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.f": "1.123.1",
18
- "@openui5/sap.m": "1.123.1",
19
- "@openui5/sap.ui.core": "1.123.1",
20
- "@openui5/sap.ui.layout": "1.123.1"
17
+ "@openui5/sap.f": "1.124.0",
18
+ "@openui5/sap.m": "1.124.0",
19
+ "@openui5/sap.ui.core": "1.124.0",
20
+ "@openui5/sap.ui.layout": "1.124.0"
21
21
  }
22
22
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  <name>sap.uxap</name>
5
5
  <vendor>SAP SE</vendor>
6
- <version>1.123.1</version>
6
+ <version>1.124.0</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -250,6 +250,7 @@ sap.ui.define([
250
250
  Control.prototype.setParent.call(this, oParent, sAggregationName, bSuppressInvalidate);
251
251
 
252
252
  if (oParent?.isA("sap.uxap.ObjectPageSubSection")) {
253
+ this._bLazyLoading = true;
253
254
  this._oParentObjectPageSubSection = oParent;
254
255
  }
255
256
  };
@@ -363,6 +364,14 @@ sap.ui.define([
363
364
 
364
365
  if (this.getMode() !== sMode) {
365
366
  this.setProperty("mode", sMode, false);
367
+
368
+ // Update the this._bLazyLoading here: setMode is called by ObjectPageSubSection in onBeforeRendering,
369
+ // as at this point enableLazyLoading property of OPL is already set.
370
+ // onBeforeRendering of BlockBase is still not called! That's why this._bLazyLoading may not be in a valid state
371
+ // (previously set as true in setParent function, as it is placed in ObjectPageSubSection).
372
+ // If this._bLazyLoading is not updated at this point and enableLazyLoading=false, view will never be selected, binding will never be updated.
373
+ this._updateLazyLoad();
374
+
366
375
  //if Lazy loading is enabled, and if the block is not connected
367
376
  //delay the view creation (will be done in connectToModels function)
368
377
  if (!this._shouldLazyLoad()) {
@@ -726,11 +735,12 @@ sap.ui.define([
726
735
 
727
736
  /**
728
737
  * Getter for the parent object page layout.
738
+ * @param {sap.ui.core.Control} oParent (optional) - the parent ObjectPageSubSection
729
739
  * @returns {*} OP layout
730
740
  * @private
731
741
  */
732
- BlockBase.prototype._getObjectPageLayout = function () {
733
- return library.Utilities.getClosestOPL(this);
742
+ BlockBase.prototype._getObjectPageLayout = function (oParent) {
743
+ return library.Utilities.getClosestOPL(this, oParent);
734
744
  };
735
745
 
736
746
  /*
@@ -841,6 +851,15 @@ sap.ui.define([
841
851
  return !!this._oParentObjectPageSubSection && this._bLazyLoading && !this._bConnected;
842
852
  };
843
853
 
854
+ /**
855
+ * Updates this._bLazyLoading property.
856
+ * @private
857
+ */
858
+ BlockBase.prototype._updateLazyLoad = function () {
859
+ var oParentObjectPageLayout = this._getObjectPageLayout(this._oParentObjectPageSubSection);
860
+ this._bLazyLoading = oParentObjectPageLayout && (oParentObjectPageLayout.getEnableLazyLoading() || oParentObjectPageLayout.getUseIconTabBar());
861
+ };
862
+
844
863
  /**
845
864
  * Called when a view is destroyed.
846
865
  * @param {object} oEvent
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.123.1
24
+ * @version 1.124.0
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.123.1
25
+ * @version 1.124.0
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @implements sap.uxap.IHeaderContent
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.123.1
43
+ * @version 1.124.0
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.123.1
45
+ * @version 1.124.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.core.Element
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.123.1
41
+ * @version 1.124.0
42
42
  *
43
43
  * @constructor
44
44
  * @public
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @constructor
26
26
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
27
27
  * @author SAP SE
28
- * @version 1.123.1
28
+ * @version 1.124.0
29
29
  * @since 1.75
30
30
  * @experimental Since 1.75
31
31
  */
@@ -23,7 +23,7 @@ sap.ui.define([
23
23
  * @constructor
24
24
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
25
25
  * @author SAP SE
26
- * @version 1.123.1
26
+ * @version 1.124.0
27
27
  * @experimental Since 1.54
28
28
  */
29
29
 
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
23
23
  * @author SAP SE
24
- * @version 1.123.1
24
+ * @version 1.124.0
25
25
  * @experimental Since 1.50
26
26
  */
27
27
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @constructor
20
20
  * @alias sap.uxap.changeHandler.UnstashObjectPageSection
21
21
  * @author SAP SE
22
- * @version 1.123.1
22
+ * @version 1.124.0
23
23
  * @experimental Since 1.115
24
24
  */
25
25
 
@@ -46,7 +46,8 @@ sap.ui.define(["sap/ui/core/Lib", "sap/uxap/library", "sap/ui/fl/designtime/util
46
46
  },
47
47
  reveal : {
48
48
  changeType : "unstashControl",
49
- getLabel: fnGetLabel
49
+ getLabel: fnGetLabel,
50
+ depthOfRelevantBindings: 2
50
51
  },
51
52
  rename: function () {
52
53
  return {
@@ -35,7 +35,8 @@ sap.ui.define([],
35
35
  }
36
36
  },
37
37
  reveal: {
38
- changeType: "unhideControl"
38
+ changeType: "unhideControl",
39
+ depthOfRelevantBindings: 1
39
40
  },
40
41
  rename: function () {
41
42
  return {
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @namespace
31
31
  * @alias sap.uxap
32
32
  * @author SAP SE
33
- * @version 1.123.1
33
+ * @version 1.124.0
34
34
  * @since 1.36
35
35
  * @public
36
36
  */
@@ -74,7 +74,7 @@ sap.ui.define([
74
74
  "sap.uxap.ObjectPageHeaderLayoutData",
75
75
  "sap.uxap.ObjectPageLazyLoader"
76
76
  ],
77
- version: "1.123.1",
77
+ version: "1.124.0",
78
78
  extensions: {
79
79
  flChangeHandlers: {
80
80
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
@@ -318,13 +318,16 @@ sap.ui.define([
318
318
  * Returns the reference to the <code>ObjectPageLayout</code> for a given control.
319
319
  * @static
320
320
  * @param {sap.ui.core.Control} oControl - the control to find ObjectPageLayout for
321
+ * @param {sap.ui.core.Control} oParentSubSection (optional) - the parent ObjectPageSubSection
321
322
  * @private
322
323
  * @returns {*} Object Page layout referance
323
324
  */
324
- getClosestOPL: function (oControl) {
325
+ getClosestOPL: function (oControl, oParentSubSection) {
325
326
 
326
327
  while (oControl && !(BaseObject.isObjectA(oControl, "sap.uxap.ObjectPageLayout"))) {
327
- oControl = oControl.getParent();
328
+ oControl = oControl.getParent() || oParentSubSection;
329
+ // using oParentSubSection (if any) only the first time, otherwise if no OPL is found up the tree, loop will be infinite
330
+ oParentSubSection = null;
328
331
  }
329
332
 
330
333
  return oControl;
@@ -5,11 +5,11 @@ SHOW_LESS=Poka\u017Ei manje
5
5
 
6
6
  ANCHOR_BAR_ARIA_LABEL=Sidra
7
7
 
8
- ANCHOR_BAR_ARIA_LABEL_DESC=Aktiviraj stavku za prelazak na odjeljak na stranici
8
+ ANCHOR_BAR_ARIA_LABEL_DESC=Aktiviraj stavku za prelazak na odeljak na stranici
9
9
 
10
10
  ANCHOR_BAR_OVERFLOW=Vi\u0161e
11
11
 
12
- BREADCRUMB_TRAIL_LABEL=Put usmjeravanja
12
+ BREADCRUMB_TRAIL_LABEL=Put usmeravanja
13
13
 
14
14
  SHOW_ALL=Poka\u017Ei sve
15
15
 
@@ -31,11 +31,11 @@ TOOLTIP_OP_LOCK_MARK_VALUE=Zaklju\u010Dano
31
31
 
32
32
  TOOLTIP_OP_OVERFLOW_BTN=Vi\u0161e
33
33
 
34
- TOOLTIP_OP_SCROLL_LEFT_ARROW=Pomjeri ulijevo
34
+ TOOLTIP_OP_SCROLL_LEFT_ARROW=Pomeri ulevo
35
35
 
36
- TOOLTIP_OP_SCROLL_RIGHT_ARROW=Pomjeri udesno
36
+ TOOLTIP_OP_SCROLL_RIGHT_ARROW=Pomeri udesno
37
37
 
38
- TOOLTIP_OP_CHANGES_MARK_VALUE=Nesa\u010Duvane promjene
38
+ TOOLTIP_OP_CHANGES_MARK_VALUE=Nesa\u010Duvane promene
39
39
 
40
40
  TOOLTIP_OP_EXPAND_HEADER_BTN=Pro\u0161iri sadr\u017Eaj zaglavlja
41
41
 
@@ -59,24 +59,24 @@ LAYOUT_CONTROL_NAME=Izgled stranice objekta
59
59
 
60
60
  LAYOUT_CONTROL_NAME_PLURAL=Izgledi stranice objekta
61
61
 
62
- SECTION_CONTROL_NAME=Odjeljak
62
+ SECTION_CONTROL_NAME=Odeljak
63
63
 
64
- SECTION_CONTROL_NAME_PLURAL=Odjeljci
64
+ SECTION_CONTROL_NAME_PLURAL=Odeljci
65
65
 
66
66
  SECTION_TITLE_FOR_IFRAME=Ugra\u0111eni sadr\u017Eaj
67
67
 
68
68
  HEADER_CONTROL_NAME=Zaglavlje
69
69
 
70
- SUBSECTION_CONTROL_NAME=Pododjeljak
70
+ SUBSECTION_CONTROL_NAME=Pododeljak
71
71
 
72
72
  ROOT_ROLE_DESCRIPTION=Stranica objekta
73
73
 
74
74
  HEADER_ROLE_DESCRIPTION=Zaglavlje stranice objekta
75
75
 
76
- NAVIGATION_ROLE_DESCRIPTION=Traka usmjeravanja odjeljka
76
+ NAVIGATION_ROLE_DESCRIPTION=Traka usmeravanja odeljka
77
77
 
78
78
  FOOTER_ROLE_DESCRIPTION=Op\u0161te radnje za stranicu objekta
79
79
 
80
80
  ADD_IFRAME_IN_HEADER=u zaglavlju
81
81
 
82
- ADD_IFRAME_AS_SECTION=kao odjeljak
82
+ ADD_IFRAME_AS_SECTION=kao odeljak