@openui5/sap.uxap 1.113.0 → 1.114.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 +1 -1
- package/package.json +5 -5
- package/src/sap/uxap/.library +1 -1
- package/src/sap/uxap/BlockBase.js +2 -2
- package/src/sap/uxap/BlockBaseMetadata.js +1 -1
- package/src/sap/uxap/HierarchicalSelect.js +2 -4
- 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/ObjectPageLayout.js +17 -5
- package/src/sap/uxap/ObjectPageLazyLoader.js +5 -4
- package/src/sap/uxap/ObjectPageSubSection.js +15 -14
- 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/designtime/ObjectPageSection.designtime.js +13 -10
- package/src/sap/uxap/library.js +13 -8
- package/src/sap/uxap/rules/ObjectPageLayout.support.js +3 -3
package/THIRDPARTY.txt
CHANGED
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.3.0
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.uxap",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.114.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.114.0",
|
|
18
|
+
"@openui5/sap.m": "1.114.0",
|
|
19
|
+
"@openui5/sap.ui.core": "1.114.0",
|
|
20
|
+
"@openui5/sap.ui.layout": "1.114.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.114.0</version>
|
|
7
7
|
<copyright>OpenUI5
|
|
8
8
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
9
9
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
@@ -245,11 +245,11 @@ sap.ui.define([
|
|
|
245
245
|
* @param {*} bSuppressInvalidate invalidate
|
|
246
246
|
*/
|
|
247
247
|
BlockBase.prototype.setParent = function (oParent, sAggregationName, bSuppressInvalidate) {
|
|
248
|
+
Control.prototype.setParent.call(this, oParent, sAggregationName, bSuppressInvalidate);
|
|
249
|
+
|
|
248
250
|
if (oParent instanceof library.ObjectPageSubSection) {
|
|
249
251
|
this._bLazyLoading = true; //we activate the block lazy loading since we are within an objectPageLayout
|
|
250
252
|
this._oParentObjectPageSubSection = oParent;
|
|
251
|
-
} else {
|
|
252
|
-
Control.prototype.setParent.call(this, oParent, sAggregationName, bSuppressInvalidate);
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
255
|
|
|
@@ -9,10 +9,8 @@ sap.ui.define([
|
|
|
9
9
|
"sap/m/Select",
|
|
10
10
|
"sap/ui/Device",
|
|
11
11
|
"sap/ui/thirdparty/jquery",
|
|
12
|
-
"./
|
|
13
|
-
|
|
14
|
-
"sap/ui/thirdparty/jqueryui/jquery-ui-position"
|
|
15
|
-
], function(Select, Device, jQuery, library, HierarchicalSelectRenderer /*jqueryUiPosition,*/) {
|
|
12
|
+
"./HierarchicalSelectRenderer"
|
|
13
|
+
], function(Select, Device, jQuery, HierarchicalSelectRenderer) {
|
|
16
14
|
"use strict";
|
|
17
15
|
|
|
18
16
|
/**
|
|
@@ -33,7 +33,8 @@ sap.ui.define([
|
|
|
33
33
|
"sap/base/util/merge",
|
|
34
34
|
"sap/ui/events/KeyCodes",
|
|
35
35
|
"sap/ui/dom/getFirstEditableInput",
|
|
36
|
-
'sap/ui/dom/units/Rem'
|
|
36
|
+
'sap/ui/dom/units/Rem',
|
|
37
|
+
"sap/ui/base/Object"
|
|
37
38
|
], function(
|
|
38
39
|
jQuery,
|
|
39
40
|
ManagedObjectObserver,
|
|
@@ -62,7 +63,8 @@ sap.ui.define([
|
|
|
62
63
|
merge,
|
|
63
64
|
KeyCodes,
|
|
64
65
|
getFirstEditableInput,
|
|
65
|
-
DomUnitsRem
|
|
66
|
+
DomUnitsRem,
|
|
67
|
+
BaseObject
|
|
66
68
|
) {
|
|
67
69
|
"use strict";
|
|
68
70
|
|
|
@@ -1193,6 +1195,7 @@ sap.ui.define([
|
|
|
1193
1195
|
clearTimeout(this._iAfterRenderingDomReadyTimeout);
|
|
1194
1196
|
}
|
|
1195
1197
|
this._iAfterRenderingDomReadyTimeout = setTimeout(this._onAfterRenderingDomReady.bind(this), this._getDOMCalculationDelay());
|
|
1198
|
+
this._adjustTitlePositioning(); // adjust early to prevent visual offset/flickering of content
|
|
1196
1199
|
}
|
|
1197
1200
|
|
|
1198
1201
|
if (oHeaderContent && oHeaderContent.supportsPinUnpin()) {
|
|
@@ -1834,7 +1837,7 @@ sap.ui.define([
|
|
|
1834
1837
|
|
|
1835
1838
|
var oSubsection;
|
|
1836
1839
|
|
|
1837
|
-
if (oSection
|
|
1840
|
+
if (BaseObject.isA(oSection, "sap.uxap.ObjectPageSubSection")) {
|
|
1838
1841
|
oSubsection = oSection;
|
|
1839
1842
|
oSection = oSection.getParent();
|
|
1840
1843
|
} else {
|
|
@@ -3045,7 +3048,9 @@ sap.ui.define([
|
|
|
3045
3048
|
var oWrapperElement = this._$opWrapper.get(0),
|
|
3046
3049
|
oTitleElement = this._$titleArea.get(0),
|
|
3047
3050
|
iTitleHeight = oTitleElement.getBoundingClientRect().height,
|
|
3048
|
-
iTitleWidth = oTitleElement.getBoundingClientRect().width
|
|
3051
|
+
iTitleWidth = oTitleElement.getBoundingClientRect().width,
|
|
3052
|
+
iScrollbarWidth = getScrollbarSize().width,
|
|
3053
|
+
sClipPath;
|
|
3049
3054
|
|
|
3050
3055
|
// the top area of the scroll container is reserved for showing the title element,
|
|
3051
3056
|
// (where the title element is positioned absolutely on top of the scroll container),
|
|
@@ -3062,10 +3067,17 @@ sap.ui.define([
|
|
|
3062
3067
|
// (2) also make the area underneath the title invisible (using clip-path)
|
|
3063
3068
|
// to allow usage of *transparent background* of the title element
|
|
3064
3069
|
// (otherwise content from the scroll *overflow* will show underneath the transparent title element)
|
|
3065
|
-
|
|
3070
|
+
sClipPath = 'polygon(0px ' + iTitleHeight + 'px, '
|
|
3066
3071
|
+ Math.floor(iTitleWidth) + 'px ' + iTitleHeight + 'px, '
|
|
3067
3072
|
+ Math.floor(iTitleWidth) + 'px 0, 100% 0, 100% 100%, 0 100%)';
|
|
3068
3073
|
|
|
3074
|
+
if (this.oCore.getConfiguration().getRTL()) {
|
|
3075
|
+
sClipPath = 'polygon(0px 0px, ' + iScrollbarWidth + 'px 0px, '
|
|
3076
|
+
+ iScrollbarWidth + 'px ' + iTitleHeight + 'px, 100% '
|
|
3077
|
+
+ iTitleHeight + 'px, 100% 100%, 0 100%)';
|
|
3078
|
+
}
|
|
3079
|
+
oWrapperElement.style.clipPath = sClipPath;
|
|
3080
|
+
|
|
3069
3081
|
this.getHeaderTitle() && this._shiftHeaderTitle();
|
|
3070
3082
|
};
|
|
3071
3083
|
|
|
@@ -9,8 +9,9 @@ sap.ui.define([
|
|
|
9
9
|
'./library',
|
|
10
10
|
'sap/ui/core/Element',
|
|
11
11
|
'sap/ui/core/StashedControlSupport',
|
|
12
|
-
"sap/base/assert"
|
|
13
|
-
|
|
12
|
+
"sap/base/assert",
|
|
13
|
+
"sap/ui/base/Object"
|
|
14
|
+
], function (library, Element, StashedControlSupport, assert, BaseObject) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -37,7 +38,7 @@ sap.ui.define([
|
|
|
37
38
|
* @extends sap.ui.core.Element
|
|
38
39
|
*
|
|
39
40
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
41
|
+
* @version 1.114.0
|
|
41
42
|
*
|
|
42
43
|
* @constructor
|
|
43
44
|
* @public
|
|
@@ -61,7 +62,7 @@ sap.ui.define([
|
|
|
61
62
|
StashedControlSupport.mixInto(LazyLoader);
|
|
62
63
|
|
|
63
64
|
LazyLoader.prototype.setParent = function (oParent) {
|
|
64
|
-
if (!(oParent === null || oParent
|
|
65
|
+
if (!(oParent === null || BaseObject.isA(oParent, "sap.uxap.ObjectPageSubSection"))) {
|
|
65
66
|
assert(false, "setParent(): oParent must be an instance of sap.uxap.ObjectPageSubSection or null");
|
|
66
67
|
}
|
|
67
68
|
|
|
@@ -886,7 +886,7 @@ sap.ui.define([
|
|
|
886
886
|
this._setAggregation(sAggregationName, aAggregation, bSuppressInvalidate);
|
|
887
887
|
|
|
888
888
|
if (oObject instanceof BlockBase || oObject instanceof ObjectPageLazyLoader) {
|
|
889
|
-
oObject.setParent(this); //let the block know of its parent subsection
|
|
889
|
+
oObject.setParent(this, "blocks"); //let the block know of its parent subsection
|
|
890
890
|
}
|
|
891
891
|
|
|
892
892
|
} else {
|
|
@@ -953,22 +953,23 @@ sap.ui.define([
|
|
|
953
953
|
return ObjectPageSectionBase.prototype.removeAllAggregation.apply(this, arguments);
|
|
954
954
|
};
|
|
955
955
|
|
|
956
|
-
ObjectPageSubSection.prototype.removeAggregation = function (sAggregationName,
|
|
957
|
-
var bRemoved = false,
|
|
956
|
+
ObjectPageSubSection.prototype.removeAggregation = function (sAggregationName, vObject) {
|
|
957
|
+
var bRemoved = false,
|
|
958
|
+
aInternalAggregation;
|
|
958
959
|
|
|
959
|
-
if (this.hasProxy(sAggregationName)) {
|
|
960
|
+
if (this.hasProxy(sAggregationName) && typeof vObject === "object") {
|
|
960
961
|
aInternalAggregation = this._getAggregation(sAggregationName);
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
962
|
+
aInternalAggregation.forEach(function (oObjectCandidate, iIndex) {
|
|
963
|
+
if (oObjectCandidate.getId() === vObject.getId()) {
|
|
964
|
+
aInternalAggregation.splice(iIndex, 1);
|
|
965
|
+
this._onRemoveBlock(vObject);
|
|
966
|
+
this._setAggregation(sAggregationName, aInternalAggregation);
|
|
967
|
+
bRemoved = true;
|
|
968
|
+
}
|
|
969
|
+
return !bRemoved;
|
|
970
|
+
}, this);
|
|
970
971
|
|
|
971
|
-
return (bRemoved ?
|
|
972
|
+
return (bRemoved ? vObject : null);
|
|
972
973
|
}
|
|
973
974
|
|
|
974
975
|
return ObjectPageSectionBase.prototype.removeAggregation.apply(this, arguments);
|
|
@@ -9,6 +9,17 @@ sap.ui.define(["sap/uxap/library"],
|
|
|
9
9
|
function(library) {
|
|
10
10
|
"use strict";
|
|
11
11
|
|
|
12
|
+
function fnGetLabel(oObjectPageSection) {
|
|
13
|
+
var sTitle = oObjectPageSection.getTitle();
|
|
14
|
+
var aSubSection = oObjectPageSection.getSubSections();
|
|
15
|
+
// If there is only one SubSection, its title is shown,
|
|
16
|
+
// instead of the title of the Section (if it is available).
|
|
17
|
+
if (aSubSection.length === 1 && aSubSection[0].getTitle().trim() !== "") {
|
|
18
|
+
sTitle = aSubSection[0].getTitle();
|
|
19
|
+
}
|
|
20
|
+
return sTitle || oObjectPageSection.getId();
|
|
21
|
+
}
|
|
22
|
+
|
|
12
23
|
return {
|
|
13
24
|
name : {
|
|
14
25
|
singular : function(){
|
|
@@ -28,22 +39,14 @@ sap.ui.define(["sap/uxap/library"],
|
|
|
28
39
|
svg: "sap/uxap/designtime/ObjectPageSection.icon.svg"
|
|
29
40
|
}
|
|
30
41
|
},
|
|
42
|
+
getLabel: fnGetLabel,
|
|
31
43
|
actions : {
|
|
32
44
|
remove : {
|
|
33
45
|
changeType : "stashControl"
|
|
34
46
|
},
|
|
35
47
|
reveal : {
|
|
36
48
|
changeType : "unstashControl",
|
|
37
|
-
getLabel:
|
|
38
|
-
var sTitle = oControl.getTitle();
|
|
39
|
-
var aSubSection = oControl.getSubSections();
|
|
40
|
-
// If there is only one SubSection, its title is shown in the AnchorBar,
|
|
41
|
-
// instead of the title of the Section (if it is available).
|
|
42
|
-
if (aSubSection.length === 1 && aSubSection[0].getTitle().trim() !== "") {
|
|
43
|
-
sTitle = aSubSection[0].getTitle();
|
|
44
|
-
}
|
|
45
|
-
return sTitle || oControl.getId();
|
|
46
|
-
}
|
|
49
|
+
getLabel: fnGetLabel
|
|
47
50
|
},
|
|
48
51
|
rename: function () {
|
|
49
52
|
return {
|
package/src/sap/uxap/library.js
CHANGED
|
@@ -12,11 +12,16 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/base/DataType",
|
|
13
13
|
"sap/ui/Device",
|
|
14
14
|
"sap/ui/thirdparty/jquery",
|
|
15
|
-
"sap/ui/
|
|
16
|
-
|
|
17
|
-
"sap/
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
"sap/ui/base/Object",
|
|
16
|
+
// library dependency
|
|
17
|
+
"sap/ui/core/library",
|
|
18
|
+
// library dependency
|
|
19
|
+
"sap/f/library",
|
|
20
|
+
// library dependency
|
|
21
|
+
"sap/m/library",
|
|
22
|
+
// library dependency
|
|
23
|
+
"sap/ui/layout/library"
|
|
24
|
+
], function(Core, DataType, Device, jQuery, BaseObject) {
|
|
20
25
|
"use strict";
|
|
21
26
|
|
|
22
27
|
/**
|
|
@@ -25,7 +30,7 @@ sap.ui.define([
|
|
|
25
30
|
* @namespace
|
|
26
31
|
* @alias sap.uxap
|
|
27
32
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
33
|
+
* @version 1.114.0
|
|
29
34
|
* @since 1.36
|
|
30
35
|
* @public
|
|
31
36
|
*/
|
|
@@ -68,7 +73,7 @@ sap.ui.define([
|
|
|
68
73
|
"sap.uxap.ObjectPageHeaderLayoutData",
|
|
69
74
|
"sap.uxap.ObjectPageLazyLoader"
|
|
70
75
|
],
|
|
71
|
-
version: "1.
|
|
76
|
+
version: "1.114.0",
|
|
72
77
|
extensions: {
|
|
73
78
|
flChangeHandlers: {
|
|
74
79
|
"sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",
|
|
@@ -299,7 +304,7 @@ sap.ui.define([
|
|
|
299
304
|
*/
|
|
300
305
|
getClosestOPL: function (oControl) {
|
|
301
306
|
|
|
302
|
-
while (oControl && !(oControl
|
|
307
|
+
while (oControl && !(BaseObject.isA(oControl, "sap.uxap.ObjectPageLayout"))) {
|
|
303
308
|
oControl = oControl.getParent();
|
|
304
309
|
}
|
|
305
310
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* Defines support rules of the ObjectPageHeader control of sap.uxap library.
|
|
8
8
|
*/
|
|
9
|
-
sap.ui.define(["sap/ui/support/library"],
|
|
10
|
-
function (SupportLib) {
|
|
9
|
+
sap.ui.define(["sap/ui/support/library", "sap/ui/base/Object"],
|
|
10
|
+
function (SupportLib, BaseObject) {
|
|
11
11
|
"use strict";
|
|
12
12
|
|
|
13
13
|
// shortcuts
|
|
@@ -44,7 +44,7 @@ sap.ui.define(["sap/ui/support/library"],
|
|
|
44
44
|
|
|
45
45
|
var parent = oControl.getParent();
|
|
46
46
|
while (parent) {
|
|
47
|
-
if (parent
|
|
47
|
+
if (BaseObject.isA(parent, "sap.ui.core.Component")) {
|
|
48
48
|
return parent;
|
|
49
49
|
} else {
|
|
50
50
|
parent = parent.getParent();
|