@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 +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/BlockBase.js +21 -2
- package/src/sap/uxap/BlockBaseMetadata.js +1 -1
- package/src/sap/uxap/ObjectPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderContent.js +1 -1
- package/src/sap/uxap/ObjectPageDynamicHeaderTitle.js +1 -1
- package/src/sap/uxap/ObjectPageLazyLoader.js +1 -1
- package/src/sap/uxap/changeHandler/AddIFrameObjectPageLayout.js +1 -1
- package/src/sap/uxap/changeHandler/MoveObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/RenameObjectPageSection.js +1 -1
- package/src/sap/uxap/changeHandler/UnstashObjectPageSection.js +1 -1
- package/src/sap/uxap/designtime/ObjectPageSection.designtime.js +2 -1
- package/src/sap/uxap/designtime/ObjectPageSubSection.designtime.js +2 -1
- package/src/sap/uxap/library.js +7 -4
- package/src/sap/uxap/messagebundle_sh.properties +10 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.uxap",
|
|
3
|
-
"version": "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.
|
|
18
|
-
"@openui5/sap.m": "1.
|
|
19
|
-
"@openui5/sap.ui.core": "1.
|
|
20
|
-
"@openui5/sap.ui.layout": "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
|
}
|
package/src/sap/uxap/.library
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<name>sap.uxap</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
|
-
<version>1.
|
|
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
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @namespace
|
|
31
31
|
* @alias sap.uxap
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 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.
|
|
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
|
|
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
|
|
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=
|
|
34
|
+
TOOLTIP_OP_SCROLL_LEFT_ARROW=Pomeri ulevo
|
|
35
35
|
|
|
36
|
-
TOOLTIP_OP_SCROLL_RIGHT_ARROW=
|
|
36
|
+
TOOLTIP_OP_SCROLL_RIGHT_ARROW=Pomeri udesno
|
|
37
37
|
|
|
38
|
-
TOOLTIP_OP_CHANGES_MARK_VALUE=Nesa\u010Duvane
|
|
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=
|
|
62
|
+
SECTION_CONTROL_NAME=Odeljak
|
|
63
63
|
|
|
64
|
-
SECTION_CONTROL_NAME_PLURAL=
|
|
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=
|
|
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
|
|
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
|
|
82
|
+
ADD_IFRAME_AS_SECTION=kao odeljak
|