@openui5/sap.f 1.120.38 → 1.120.40
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/.reuse/dep5 +1 -1
- package/THIRDPARTY.txt +2 -2
- package/package.json +4 -4
- package/src/sap/f/.library +2 -2
- package/src/sap/f/Avatar.js +2 -2
- package/src/sap/f/AvatarGroup.js +2 -2
- package/src/sap/f/AvatarGroupItem.js +2 -2
- package/src/sap/f/AvatarGroupItemRenderer.js +1 -1
- package/src/sap/f/AvatarGroupRenderer.js +1 -1
- package/src/sap/f/CalendarAppointmentInCard.js +2 -2
- package/src/sap/f/CalendarInCard.js +2 -2
- package/src/sap/f/CalendarInCardRenderer.js +1 -1
- package/src/sap/f/Card.js +2 -2
- package/src/sap/f/CardBase.js +2 -2
- package/src/sap/f/CardRenderer.js +1 -1
- package/src/sap/f/DynamicPage.js +24 -9
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +2 -2
- package/src/sap/f/DynamicPageHeader.js +2 -2
- package/src/sap/f/DynamicPageHeaderRenderer.js +1 -1
- package/src/sap/f/DynamicPageRenderer.js +1 -1
- package/src/sap/f/DynamicPageTitle.js +2 -2
- package/src/sap/f/DynamicPageTitleRenderer.js +1 -1
- package/src/sap/f/FlexibleColumnLayout.js +72 -10
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +2 -2
- package/src/sap/f/FlexibleColumnLayoutRenderer.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +2 -2
- package/src/sap/f/GridContainer.js +2 -2
- package/src/sap/f/GridContainerItemLayoutData.js +2 -2
- package/src/sap/f/GridContainerRenderer.js +1 -1
- package/src/sap/f/GridContainerSettings.js +3 -3
- package/src/sap/f/GridContainerUtils.js +1 -1
- package/src/sap/f/GridList.js +2 -2
- package/src/sap/f/GridListItem.js +2 -2
- package/src/sap/f/GridListItemRenderer.js +1 -1
- package/src/sap/f/GridListRenderer.js +1 -1
- package/src/sap/f/GridNavigationMatrix.js +1 -1
- package/src/sap/f/IllustratedMessage.js +2 -2
- package/src/sap/f/Illustration.js +2 -2
- package/src/sap/f/IllustrationPool.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +2 -2
- package/src/sap/f/PlanningCalendarInCardLegendRenderer.js +1 -1
- package/src/sap/f/ProductSwitch.js +2 -2
- package/src/sap/f/ProductSwitchItem.js +2 -2
- package/src/sap/f/ProductSwitchItemRenderer.js +1 -1
- package/src/sap/f/ProductSwitchRenderer.js +1 -1
- package/src/sap/f/SearchManager.js +2 -2
- package/src/sap/f/ShellBar.js +2 -2
- package/src/sap/f/ShellBarRenderer.js +1 -1
- package/src/sap/f/SidePanel.js +2 -2
- package/src/sap/f/SidePanelItem.js +2 -2
- package/src/sap/f/SidePanelRenderer.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +2 -2
- package/src/sap/f/cards/BaseHeaderRenderer.js +1 -1
- package/src/sap/f/cards/Header.js +2 -2
- package/src/sap/f/cards/HeaderRenderer.js +1 -1
- package/src/sap/f/cards/NumericHeader.js +2 -2
- package/src/sap/f/cards/NumericHeaderRenderer.js +1 -1
- package/src/sap/f/cards/NumericIndicators.js +2 -2
- package/src/sap/f/cards/NumericIndicatorsRenderer.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +2 -2
- package/src/sap/f/cards/NumericSideIndicatorRenderer.js +1 -1
- package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +2 -2
- package/src/sap/f/cards/loading/AnalyticalPlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +2 -2
- package/src/sap/f/cards/loading/CalendarPlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/GenericPlaceholder.js +2 -2
- package/src/sap/f/cards/loading/GenericPlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +2 -2
- package/src/sap/f/cards/loading/ListPlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +2 -2
- package/src/sap/f/cards/loading/ObjectPlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/PlaceholderBase.js +2 -2
- package/src/sap/f/cards/loading/PlaceholderBaseRenderer.js +1 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +2 -2
- package/src/sap/f/cards/loading/TablePlaceholderRenderer.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +2 -2
- package/src/sap/f/cards/loading/TimelinePlaceholderRenderer.js +1 -1
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +2 -2
- package/src/sap/f/delegate/GridContainerItemNavigation.js +2 -2
- package/src/sap/f/delegate/GridItemNavigation.js +2 -2
- package/src/sap/f/designtime/Avatar.designtime.js +1 -1
- package/src/sap/f/designtime/DynamicPage.designtime.js +1 -1
- package/src/sap/f/designtime/DynamicPageHeader.designtime.js +1 -1
- package/src/sap/f/designtime/DynamicPageTitle.designtime.js +1 -1
- package/src/sap/f/designtime/SemanticPage.designtime.js +1 -1
- package/src/sap/f/designtime/library.designtime.js +1 -1
- package/src/sap/f/dnd/GridDragOver.js +2 -2
- package/src/sap/f/dnd/GridDropInfo.js +2 -2
- package/src/sap/f/dnd/GridKeyboardDragAndDrop.js +1 -1
- package/src/sap/f/flexibility/Avatar.flexibility.js +1 -1
- package/src/sap/f/flexibility/DynamicPageTitle.flexibility.js +1 -1
- package/src/sap/f/library.js +3 -3
- package/src/sap/f/library.support.js +1 -1
- package/src/sap/f/routing/Router.js +1 -1
- package/src/sap/f/routing/Target.js +1 -1
- package/src/sap/f/routing/TargetHandler.js +1 -1
- package/src/sap/f/routing/Targets.js +1 -1
- package/src/sap/f/routing/async/Target.js +1 -1
- package/src/sap/f/routing/async/Targets.js +1 -1
- package/src/sap/f/rules/Avatar.support.js +1 -1
- package/src/sap/f/rules/DynamicPage.support.js +1 -1
- package/src/sap/f/semantic/AddAction.js +2 -2
- package/src/sap/f/semantic/CloseAction.js +2 -2
- package/src/sap/f/semantic/CopyAction.js +2 -2
- package/src/sap/f/semantic/DeleteAction.js +2 -2
- package/src/sap/f/semantic/DiscussInJamAction.js +2 -2
- package/src/sap/f/semantic/EditAction.js +2 -2
- package/src/sap/f/semantic/ExitFullScreenAction.js +2 -2
- package/src/sap/f/semantic/FavoriteAction.js +2 -2
- package/src/sap/f/semantic/FlagAction.js +2 -2
- package/src/sap/f/semantic/FooterMainAction.js +2 -2
- package/src/sap/f/semantic/FullScreenAction.js +2 -2
- package/src/sap/f/semantic/MainAction.js +2 -2
- package/src/sap/f/semantic/MessagesIndicator.js +2 -2
- package/src/sap/f/semantic/NegativeAction.js +2 -2
- package/src/sap/f/semantic/PositiveAction.js +2 -2
- package/src/sap/f/semantic/PrintAction.js +2 -2
- package/src/sap/f/semantic/SemanticButton.js +2 -2
- package/src/sap/f/semantic/SemanticConfiguration.js +2 -2
- package/src/sap/f/semantic/SemanticContainer.js +1 -1
- package/src/sap/f/semantic/SemanticControl.js +2 -2
- package/src/sap/f/semantic/SemanticFooter.js +1 -1
- package/src/sap/f/semantic/SemanticPage.js +2 -2
- package/src/sap/f/semantic/SemanticPageRenderer.js +1 -1
- package/src/sap/f/semantic/SemanticShareMenu.js +1 -1
- package/src/sap/f/semantic/SemanticTitle.js +1 -1
- package/src/sap/f/semantic/SemanticToggleButton.js +2 -2
- package/src/sap/f/semantic/SendEmailAction.js +2 -2
- package/src/sap/f/semantic/SendMessageAction.js +2 -2
- package/src/sap/f/semantic/ShareInJamAction.js +2 -2
- package/src/sap/f/semantic/TitleMainAction.js +2 -2
- package/src/sap/f/shellBar/Accessibility.js +1 -1
- package/src/sap/f/shellBar/AdditionalContentSupport.js +2 -2
- package/src/sap/f/shellBar/CoPilot.js +2 -2
- package/src/sap/f/shellBar/CoPilotRenderer.js +1 -1
- package/src/sap/f/shellBar/ControlSpacer.js +2 -2
- package/src/sap/f/shellBar/ControlSpacerRenderer.js +1 -1
- package/src/sap/f/shellBar/Factory.js +1 -1
- package/src/sap/f/shellBar/ResponsiveHandler.js +1 -1
- package/src/sap/f/shellBar/Search.js +2 -2
- package/src/sap/f/shellBar/SearchRenderer.js +1 -1
- package/src/sap/f/themes/base/library.source.less +1 -1
- package/src/sap/f/themes/sap_hcb/library.source.less +1 -1
package/.reuse/dep5
CHANGED
|
@@ -268,7 +268,7 @@ License: MIT
|
|
|
268
268
|
Comment: these files belong to: handlebars
|
|
269
269
|
|
|
270
270
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
|
271
|
-
Copyright: 2010-
|
|
271
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
272
272
|
License: MIT
|
|
273
273
|
Comment: these files belong to: requireJS
|
|
274
274
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -237,8 +237,8 @@ License: MIT
|
|
|
237
237
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
238
238
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/handlebars.js
|
|
239
239
|
|
|
240
|
-
Component: requireJS, version: 2.
|
|
241
|
-
Copyright: 2010-
|
|
240
|
+
Component: requireJS, version: 2.3.7
|
|
241
|
+
Copyright: 2010-2024, jQuery Foundation and other contributors
|
|
242
242
|
License: MIT
|
|
243
243
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
244
244
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/require.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.f",
|
|
3
|
-
"version": "1.120.
|
|
3
|
+
"version": "1.120.40",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.f",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.120.
|
|
18
|
-
"@openui5/sap.ui.core": "1.120.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.120.
|
|
17
|
+
"@openui5/sap.m": "1.120.40",
|
|
18
|
+
"@openui5/sap.ui.core": "1.120.40",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.120.40"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/f/.library
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
<name>sap.f</name>
|
|
5
5
|
<vendor>SAP SE</vendor>
|
|
6
6
|
<copyright>OpenUI5
|
|
7
|
-
* (c) Copyright 2009-
|
|
7
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.120.
|
|
9
|
+
<version>1.120.40</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with Fiori controls.</documentation>
|
|
12
12
|
|
package/src/sap/f/Avatar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -40,7 +40,7 @@ sap.ui.define([
|
|
|
40
40
|
* @extends sap.m.Avatar
|
|
41
41
|
*
|
|
42
42
|
* @author SAP SE
|
|
43
|
-
* @version 1.120.
|
|
43
|
+
* @version 1.120.40
|
|
44
44
|
*
|
|
45
45
|
* @constructor
|
|
46
46
|
* @public
|
package/src/sap/f/AvatarGroup.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -98,7 +98,7 @@ sap.ui.define([
|
|
|
98
98
|
* @extends sap.ui.core.Control
|
|
99
99
|
*
|
|
100
100
|
* @author SAP SE
|
|
101
|
-
* @version 1.120.
|
|
101
|
+
* @version 1.120.40
|
|
102
102
|
*
|
|
103
103
|
* @constructor
|
|
104
104
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define([
|
|
|
32
32
|
* @extends sap.ui.core.Control
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.120.
|
|
35
|
+
* @version 1.120.40
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
//Provides control sap.f.CalendarInCard.
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* This calendar appointment is used in card content of type Calendar.
|
|
22
22
|
*
|
|
23
23
|
* @extends sap.ui.unified.CalendarAppointment
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.40
|
|
25
25
|
*
|
|
26
26
|
* @constructor
|
|
27
27
|
* @private
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
//Provides control sap.f.CalendarInCard.
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* <code>sap.m.Toolbar</code> with <code>sap.m.Buttons</code>.
|
|
44
44
|
*
|
|
45
45
|
* @extends sap.ui.unified.Calendar
|
|
46
|
-
* @version 1.120.
|
|
46
|
+
* @version 1.120.40
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
package/src/sap/f/Card.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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([
|
|
@@ -71,7 +71,7 @@ sap.ui.define([
|
|
|
71
71
|
* @extends sap.f.CardBase
|
|
72
72
|
*
|
|
73
73
|
* @author SAP SE
|
|
74
|
-
* @version 1.120.
|
|
74
|
+
* @version 1.120.40
|
|
75
75
|
*
|
|
76
76
|
* @constructor
|
|
77
77
|
* @public
|
package/src/sap/f/CardBase.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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([
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.core.Control
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.120.
|
|
40
|
+
* @version 1.120.40
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -112,7 +112,7 @@ sap.ui.define([
|
|
|
112
112
|
* @extends sap.ui.core.Control
|
|
113
113
|
*
|
|
114
114
|
* @author SAP SE
|
|
115
|
-
* @version 1.120.
|
|
115
|
+
* @version 1.120.40
|
|
116
116
|
*
|
|
117
117
|
* @constructor
|
|
118
118
|
* @public
|
|
@@ -658,16 +658,31 @@ sap.ui.define([
|
|
|
658
658
|
this._headerBiggerThanAllowedHeight = this._headerBiggerThanAllowedToBeFixed();
|
|
659
659
|
bChange = bOldValue !== this._headerBiggerThanAllowedHeight;
|
|
660
660
|
|
|
661
|
-
if (!
|
|
661
|
+
if (!bChange) {
|
|
662
662
|
return;
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
|
|
665
|
+
this._repositionHeaderBasedOnHeight();
|
|
666
|
+
|
|
667
|
+
this._adjustStickyContent();
|
|
668
|
+
this._updateTitlePositioning();
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
DynamicPage.prototype._repositionHeaderBasedOnHeight = function () {
|
|
672
|
+
var bMoveHeaderToContent = this._headerBiggerThanAllowedHeight;
|
|
665
673
|
if (this.getHeaderExpanded()) {
|
|
674
|
+
this._repositionExpandedHeader(bMoveHeaderToContent);
|
|
675
|
+
} else {
|
|
676
|
+
this._repositionSnappedHeader(); // will automatically move to content if possible
|
|
677
|
+
}
|
|
678
|
+
};
|
|
679
|
+
|
|
680
|
+
DynamicPage.prototype._repositionExpandedHeader = function (bMoveHeaderToContent) {
|
|
681
|
+
if (bMoveHeaderToContent) {
|
|
666
682
|
this._moveHeaderToContentArea();
|
|
667
683
|
} else {
|
|
668
|
-
this.
|
|
684
|
+
this._moveHeaderToTitleArea();
|
|
669
685
|
}
|
|
670
|
-
this._updateTitlePositioning();
|
|
671
686
|
};
|
|
672
687
|
|
|
673
688
|
/**
|
|
@@ -1756,7 +1771,7 @@ sap.ui.define([
|
|
|
1756
1771
|
* (2) snapping with hiding the header - when not enough content is available to allow snap header on scroll
|
|
1757
1772
|
* @private
|
|
1758
1773
|
*/
|
|
1759
|
-
DynamicPage.prototype.
|
|
1774
|
+
DynamicPage.prototype._repositionSnappedHeader = function () {
|
|
1760
1775
|
var oDynamicPageHeader,
|
|
1761
1776
|
bIsSnapped,
|
|
1762
1777
|
bCanSnapWithScroll,
|
|
@@ -1865,7 +1880,7 @@ sap.ui.define([
|
|
|
1865
1880
|
this._toggleScrollingStyles(bNeedsVerticalScrollBar);
|
|
1866
1881
|
}
|
|
1867
1882
|
|
|
1868
|
-
this.
|
|
1883
|
+
this._repositionSnappedHeader();
|
|
1869
1884
|
|
|
1870
1885
|
if (!this._bExpandingWithAClick) {
|
|
1871
1886
|
this._updateTitlePositioning();
|
|
@@ -1905,7 +1920,7 @@ sap.ui.define([
|
|
|
1905
1920
|
|
|
1906
1921
|
this._expandHeaderIfNeeded(oEvent);
|
|
1907
1922
|
|
|
1908
|
-
this.
|
|
1923
|
+
this._repositionSnappedHeader();
|
|
1909
1924
|
this._updateTitlePositioning();
|
|
1910
1925
|
this._updateMedia(iCurrentWidth);
|
|
1911
1926
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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(['sap/ui/core/Element', './library'],
|
|
|
23
23
|
* @extends sap.ui.core.Element
|
|
24
24
|
*
|
|
25
25
|
* @author SAP SE
|
|
26
|
-
* @version 1.120.
|
|
26
|
+
* @version 1.120.40
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -62,7 +62,7 @@ sap.ui.define([
|
|
|
62
62
|
* @extends sap.ui.core.Control
|
|
63
63
|
*
|
|
64
64
|
* @author SAP SE
|
|
65
|
-
* @version 1.120.
|
|
65
|
+
* @version 1.120.40
|
|
66
66
|
*
|
|
67
67
|
* @constructor
|
|
68
68
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
* @extends sap.ui.core.Control
|
|
94
94
|
*
|
|
95
95
|
* @author SAP SE
|
|
96
|
-
* @version 1.120.
|
|
96
|
+
* @version 1.120.40
|
|
97
97
|
*
|
|
98
98
|
* @constructor
|
|
99
99
|
* @public
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -97,7 +97,7 @@ sap.ui.define([
|
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.ui.core.Control
|
|
99
99
|
* @author SAP SE
|
|
100
|
-
* @version 1.120.
|
|
100
|
+
* @version 1.120.40
|
|
101
101
|
*
|
|
102
102
|
* @constructor
|
|
103
103
|
* @public
|
|
@@ -1165,7 +1165,8 @@ sap.ui.define([
|
|
|
1165
1165
|
*/
|
|
1166
1166
|
FlexibleColumnLayout.prototype._getVisibleColumnsForLayout = function (sLayout) {
|
|
1167
1167
|
return FlexibleColumnLayout.COLUMN_ORDER.filter(function (sColumn) {
|
|
1168
|
-
|
|
1168
|
+
// Different than 0, as when we are storing the begin column size, it may happen that it's too big, leading to a negative size of the mid column
|
|
1169
|
+
return this._getColumnSizeForLayout(sColumn, sLayout) !== 0;
|
|
1169
1170
|
}, this);
|
|
1170
1171
|
};
|
|
1171
1172
|
|
|
@@ -2009,6 +2010,7 @@ sap.ui.define([
|
|
|
2009
2010
|
|
|
2010
2011
|
if (this._isValidWidthDistributionForLayout(sNewWidthsDistribution, sNewLayout)) {
|
|
2011
2012
|
this._getLocalStorage().put(sNewLayout, sNewWidthsDistribution);
|
|
2013
|
+
this._getLocalStorage().put("begin", oColumnPercentWidths.begin);
|
|
2012
2014
|
}
|
|
2013
2015
|
};
|
|
2014
2016
|
|
|
@@ -2248,6 +2250,10 @@ sap.ui.define([
|
|
|
2248
2250
|
bIsLastColumn;
|
|
2249
2251
|
};
|
|
2250
2252
|
|
|
2253
|
+
FlexibleColumnLayout.prototype._isFullScreenLayout = function (sLayout) {
|
|
2254
|
+
return sLayout === LT.OneColumn || sLayout === LT.MidColumnFullScreen || sLayout === LT.EndColumnFullScreen;
|
|
2255
|
+
};
|
|
2256
|
+
|
|
2251
2257
|
FlexibleColumnLayout.prototype._isInteractivelyResizedColumn = function (sColumn) {
|
|
2252
2258
|
return this._oMoveInfo && this._isColumnAdjacentToDraggedSeparator(sColumn);
|
|
2253
2259
|
};
|
|
@@ -2968,16 +2974,18 @@ sap.ui.define([
|
|
|
2968
2974
|
/**
|
|
2969
2975
|
* Returns a string, representing the relative percentage sizes of the columns for the given layout in the format "begin/mid/end" (f.e. "33/67/0")
|
|
2970
2976
|
* @param {string} sLayout - the layout
|
|
2971
|
-
* @param {boolean}
|
|
2977
|
+
* @param {boolean} bAsIntArray - return an array in the format [33, 67, 0] instead of a string "33/67/0"
|
|
2972
2978
|
* @param {number} [iMaxColumnsCount] the maximun number of columns. If not provided, the result of
|
|
2973
2979
|
* <code>getMaxColumnsCount</code> will be taken
|
|
2974
2980
|
* @returns {string|array}
|
|
2975
2981
|
* @private
|
|
2976
2982
|
* @ui5-restricted sap.f.FlexibleColumnLayoutSemanticHelper
|
|
2977
2983
|
*/
|
|
2978
|
-
FlexibleColumnLayout.prototype._getColumnWidthDistributionForLayout = function (sLayout,
|
|
2984
|
+
FlexibleColumnLayout.prototype._getColumnWidthDistributionForLayout = function (sLayout, bAsIntArray, iMaxColumnsCount) {
|
|
2979
2985
|
var sColumnWidthDistribution = this._getLocalStorage(iMaxColumnsCount).get(sLayout),
|
|
2980
|
-
|
|
2986
|
+
iBeginWidth = this._getLocalStorage(iMaxColumnsCount).get("begin"),
|
|
2987
|
+
vResult,
|
|
2988
|
+
vResultAsArray;
|
|
2981
2989
|
|
|
2982
2990
|
iMaxColumnsCount || (iMaxColumnsCount = this.getMaxColumnsCount());
|
|
2983
2991
|
|
|
@@ -2992,13 +3000,31 @@ sap.ui.define([
|
|
|
2992
3000
|
vResult = this._getDefaultColumnWidthDistributionForLayout(sLayout, iMaxColumnsCount);
|
|
2993
3001
|
}
|
|
2994
3002
|
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
3003
|
+
vResultAsArray = vResult.split("/");
|
|
3004
|
+
|
|
3005
|
+
iBeginWidth = normalizeBeginColumnWidth(iBeginWidth, sLayout);
|
|
3006
|
+
|
|
3007
|
+
// Used stored begin column width, if not fullscreen layout and the begin column should be shown
|
|
3008
|
+
if (iBeginWidth && !this._isFullScreenLayout(sLayout) && parseInt(vResultAsArray[0]) !== 0) {
|
|
3009
|
+
vResultAsArray[0] = iBeginWidth;
|
|
3010
|
+
vResultAsArray = vResultAsArray.map(function (sColumnWidth) {
|
|
3011
|
+
return parseFloat(sColumnWidth);
|
|
2998
3012
|
});
|
|
3013
|
+
normalizeColumnPercentWidths(vResultAsArray);
|
|
2999
3014
|
}
|
|
3000
3015
|
|
|
3001
|
-
|
|
3016
|
+
if (bAsIntArray) {
|
|
3017
|
+
vResult = vResultAsArray.map(function (sColumnWidth) {
|
|
3018
|
+
return Math.round(parseFloat(sColumnWidth));
|
|
3019
|
+
});
|
|
3020
|
+
normalizeColumnPercentWidths(vResult);
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3023
|
+
if (bAsIntArray) {
|
|
3024
|
+
return vResult;
|
|
3025
|
+
} else {
|
|
3026
|
+
return vResultAsArray.join("/");
|
|
3027
|
+
}
|
|
3002
3028
|
};
|
|
3003
3029
|
|
|
3004
3030
|
/**
|
|
@@ -3383,6 +3409,42 @@ sap.ui.define([
|
|
|
3383
3409
|
return oConfig.pageX;
|
|
3384
3410
|
}
|
|
3385
3411
|
|
|
3412
|
+
/**
|
|
3413
|
+
* Ensures the sum of all column percent widths is 100.
|
|
3414
|
+
* (Used after converting all the column widths from floats to integers,
|
|
3415
|
+
* to avoid inconsistency of the final sum due to rounding.)
|
|
3416
|
+
*
|
|
3417
|
+
* @param {object} aColumnPercentWidths the percent widths of all three columns
|
|
3418
|
+
*/
|
|
3419
|
+
function normalizeColumnPercentWidths(aColumnPercentWidths) {
|
|
3420
|
+
var oColumnIndex = {
|
|
3421
|
+
begin: 0,
|
|
3422
|
+
mid: 1,
|
|
3423
|
+
end: 2
|
|
3424
|
+
},
|
|
3425
|
+
iSum = aColumnPercentWidths.reduce((a, b) => a + b, 0);
|
|
3426
|
+
if (iSum !== 100) {
|
|
3427
|
+
// the CSS of the mid column always causes it take the space that remained
|
|
3428
|
+
// after sizing the begin and end columns
|
|
3429
|
+
aColumnPercentWidths[oColumnIndex.mid] = 100 -
|
|
3430
|
+
(aColumnPercentWidths[oColumnIndex.begin] + aColumnPercentWidths[oColumnIndex.end]);
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
|
|
3434
|
+
/**
|
|
3435
|
+
* Ensures width of begin column is correct for specific layouts
|
|
3436
|
+
*
|
|
3437
|
+
* @param {number} iBeginWidth
|
|
3438
|
+
* @param {string} sLayout
|
|
3439
|
+
*/
|
|
3440
|
+
function normalizeBeginColumnWidth(iBeginWidth, sLayout) {
|
|
3441
|
+
if ((sLayout === LT.ThreeColumnsMidExpanded || sLayout == LT.ThreeColumnsEndExpanded) && Math.floor(iBeginWidth) >= 33) {
|
|
3442
|
+
return 32;
|
|
3443
|
+
}
|
|
3444
|
+
|
|
3445
|
+
return iBeginWidth;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3386
3448
|
return FlexibleColumnLayout;
|
|
3387
3449
|
|
|
3388
3450
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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 @@ 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.120.
|
|
25
|
+
* @version 1.120.40
|
|
26
26
|
* @since 1.95
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
*
|
|
50
50
|
* For more information, see {@link sap.f.FlexibleColumnLayoutSemanticHelper#getCurrentUIState} and {@link sap.f.FlexibleColumnLayoutSemanticHelper#getNextUIState}
|
|
51
51
|
*
|
|
52
|
-
* @version 1.120.
|
|
52
|
+
* @version 1.120.40
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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([
|
|
@@ -171,7 +171,7 @@ sap.ui.define([
|
|
|
171
171
|
* @see {@link sap.f.dnd.GridDropInfo}
|
|
172
172
|
*
|
|
173
173
|
* @author SAP SE
|
|
174
|
-
* @version 1.120.
|
|
174
|
+
* @version 1.120.40
|
|
175
175
|
*
|
|
176
176
|
* @extends sap.ui.core.Control
|
|
177
177
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define(['sap/ui/core/LayoutData'],
|
|
|
21
21
|
* @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
|
|
22
22
|
*
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.120.
|
|
24
|
+
* @version 1.120.40
|
|
25
25
|
*
|
|
26
26
|
* @extends sap.ui.core.LayoutData
|
|
27
27
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -58,14 +58,14 @@ sap.ui.define([
|
|
|
58
58
|
* Can be used to define the sizes of columns and rows for different screen sizes, by using the <code>layout</code> aggregations of <code>sap.f.GridContainer</code>.
|
|
59
59
|
*
|
|
60
60
|
* @author SAP SE
|
|
61
|
-
* @version 1.120.
|
|
61
|
+
* @version 1.120.40
|
|
62
62
|
*
|
|
63
63
|
* @extends sap.ui.base.ManagedObject
|
|
64
64
|
*
|
|
65
65
|
* @see {@link topic:32d4b9c2b981425dbc374d3e9d5d0c2e Grid Controls}
|
|
66
66
|
*
|
|
67
67
|
* @author SAP SE
|
|
68
|
-
* @version 1.120.
|
|
68
|
+
* @version 1.120.40
|
|
69
69
|
*
|
|
70
70
|
* @experimental Since 1.65 This class is experimental. The API may change.
|
|
71
71
|
* @since 1.65
|
package/src/sap/f/GridList.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* OpenUI5
|
|
3
|
-
* (c) Copyright 2009-
|
|
3
|
+
* (c) Copyright 2009-2026 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([
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout MDN web docs: CSS Grid Layout}
|
|
94
94
|
*
|
|
95
95
|
* @author SAP SE
|
|
96
|
-
* @version 1.120.
|
|
96
|
+
* @version 1.120.40
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.m.ListBase
|
|
99
99
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|