@openui5/sap.f 1.136.3 → 1.139.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/README.md +1 -1
- package/REUSE.toml +8 -29
- package/THIRDPARTY.txt +72 -90
- package/package.json +5 -5
- package/src/sap/f/.library +1 -1
- package/src/sap/f/Avatar.js +1 -1
- package/src/sap/f/AvatarGroup.js +1 -1
- package/src/sap/f/AvatarGroupItem.js +1 -1
- package/src/sap/f/CalendarAppointmentInCard.js +1 -1
- package/src/sap/f/CalendarInCard.js +1 -1
- package/src/sap/f/Card.js +1 -1
- package/src/sap/f/CardBase.js +1 -1
- package/src/sap/f/DynamicPage.js +1 -1
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +12 -12
- package/src/sap/f/DynamicPageTitle.js +4 -3
- package/src/sap/f/FlexibleColumnLayout.js +7 -3
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutData.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForDesktop.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutDataForTablet.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +1 -1
- package/src/sap/f/GridContainerItemLayoutData.js +1 -1
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridList.js +1 -1
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/IllustratedMessage.js +1 -1
- package/src/sap/f/Illustration.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +1 -1
- package/src/sap/f/ProductSwitch.js +1 -1
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/SearchManager.js +1 -1
- package/src/sap/f/ShellBar.js +1 -1
- package/src/sap/f/SidePanel.js +20 -5
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +1 -1
- package/src/sap/f/cards/BaseHeaderRenderer.js +2 -2
- package/src/sap/f/cards/Header.js +1 -1
- package/src/sap/f/cards/NumericHeader.js +1 -1
- package/src/sap/f/cards/NumericIndicators.js +1 -1
- package/src/sap/f/cards/NumericSideIndicator.js +1 -1
- package/src/sap/f/cards/loading/AnalyticalPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/CalendarPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/GenericPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ListPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/ObjectPlaceholder.js +1 -1
- package/src/sap/f/cards/loading/PlaceholderBase.js +1 -1
- package/src/sap/f/cards/loading/TablePlaceholder.js +1 -1
- package/src/sap/f/cards/loading/TimelinePlaceholder.js +1 -1
- package/src/sap/f/changeHandler/MoveDynamicPageTitleActions.js +1 -1
- package/src/sap/f/delegate/GridContainerItemNavigation.js +1 -1
- package/src/sap/f/delegate/GridItemNavigation.js +1 -1
- package/src/sap/f/dnd/GridDragOver.js +1 -1
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +2 -2
- package/src/sap/f/routing/Target.js +38 -11
- package/src/sap/f/routing/Targets.js +44 -11
- package/src/sap/f/semantic/AddAction.js +1 -1
- package/src/sap/f/semantic/CloseAction.js +1 -1
- package/src/sap/f/semantic/CopyAction.js +1 -1
- package/src/sap/f/semantic/DeleteAction.js +1 -1
- package/src/sap/f/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/f/semantic/EditAction.js +1 -1
- package/src/sap/f/semantic/ExitFullScreenAction.js +1 -1
- package/src/sap/f/semantic/FavoriteAction.js +1 -1
- package/src/sap/f/semantic/FlagAction.js +1 -1
- package/src/sap/f/semantic/FooterMainAction.js +1 -1
- package/src/sap/f/semantic/FullScreenAction.js +1 -1
- package/src/sap/f/semantic/MainAction.js +1 -1
- package/src/sap/f/semantic/MessagesIndicator.js +1 -1
- package/src/sap/f/semantic/NegativeAction.js +1 -1
- package/src/sap/f/semantic/PositiveAction.js +1 -1
- package/src/sap/f/semantic/PrintAction.js +1 -1
- package/src/sap/f/semantic/SemanticButton.js +1 -1
- package/src/sap/f/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/f/semantic/SemanticControl.js +1 -1
- package/src/sap/f/semantic/SemanticPage.js +1 -1
- package/src/sap/f/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/f/semantic/SendEmailAction.js +1 -1
- package/src/sap/f/semantic/SendMessageAction.js +1 -1
- package/src/sap/f/semantic/ShareInJamAction.js +1 -1
- package/src/sap/f/semantic/TitleMainAction.js +1 -1
- package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
- package/src/sap/f/shellBar/CoPilot.js +1 -1
- package/src/sap/f/shellBar/ControlSpacer.js +1 -1
- package/src/sap/f/shellBar/Search.js +1 -1
- package/src/sap/f/themes/base/Card.less +1 -1
- package/src/sap/f/themes/base/CardHeaders.less +8 -4
- package/src/sap/f/themes/base/CardNumericIndicators.less +6 -5
- package/src/sap/f/themes/base/DynamicPage.less +55 -76
- package/src/sap/f/themes/base/DynamicPageHeader.less +7 -4
- package/src/sap/f/themes/base/ListPlaceholder.less +1 -1
- package/src/sap/f/themes/base/ObjectPlaceholder.less +3 -2
- package/src/sap/f/themes/base/ProductSwitch.less +5 -0
- package/src/sap/f/themes/base/ProductSwitchItem.less +24 -24
- package/src/sap/f/themes/base/SemanticPage.less +4 -0
- package/src/sap/f/themes/base/ShellBar.less +75 -47
- package/src/sap/f/themes/base/SidePanel.less +5 -12
- package/src/sap/f/themes/base/TablePlaceholder.less +3 -3
- package/src/sap/f/themes/base/TimelinePlaceholder.less +3 -4
- package/src/sap/f/routing/async/Target.js +0 -53
- package/src/sap/f/routing/async/Targets.js +0 -59
package/src/sap/f/AvatarGroup.js
CHANGED
package/src/sap/f/Card.js
CHANGED
package/src/sap/f/CardBase.js
CHANGED
package/src/sap/f/DynamicPage.js
CHANGED
|
@@ -64,7 +64,7 @@ sap.ui.define([
|
|
|
64
64
|
* @extends sap.ui.core.Control
|
|
65
65
|
*
|
|
66
66
|
* @author SAP SE
|
|
67
|
-
* @version 1.
|
|
67
|
+
* @version 1.139.0
|
|
68
68
|
*
|
|
69
69
|
* @constructor
|
|
70
70
|
* @public
|
|
@@ -142,6 +142,7 @@ sap.ui.define([
|
|
|
142
142
|
this._bShowCollapseButton = true;
|
|
143
143
|
this._oInvisibleMessage = null;
|
|
144
144
|
this._oLandmarkInfo = null;
|
|
145
|
+
this._bExpanded = true; // Default state is expanded
|
|
145
146
|
};
|
|
146
147
|
|
|
147
148
|
DynamicPageHeader.prototype.onAfterRendering = function () {
|
|
@@ -221,11 +222,15 @@ sap.ui.define([
|
|
|
221
222
|
var $header = this.$(),
|
|
222
223
|
bHasHeaderContentLabel = this._oLandmarkInfo && this._oLandmarkInfo.getHeaderContentLabel();
|
|
223
224
|
|
|
224
|
-
if (
|
|
225
|
-
|
|
226
|
-
|
|
225
|
+
if (this._bExpanded) {
|
|
226
|
+
if (bHasHeaderContentLabel) {
|
|
227
|
+
var sHeaderContentLabel = this._oLandmarkInfo.getHeaderContentLabel();
|
|
228
|
+
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, sHeaderContentLabel);
|
|
229
|
+
} else {
|
|
230
|
+
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, DynamicPageHeader.ARIA.LABEL_EXPANDED);
|
|
231
|
+
}
|
|
227
232
|
} else {
|
|
228
|
-
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, DynamicPageHeader.ARIA.
|
|
233
|
+
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, DynamicPageHeader.ARIA.LABEL_COLLAPSED);
|
|
229
234
|
}
|
|
230
235
|
};
|
|
231
236
|
|
|
@@ -254,13 +259,8 @@ sap.ui.define([
|
|
|
254
259
|
* @private
|
|
255
260
|
*/
|
|
256
261
|
DynamicPageHeader.prototype._updateARIAState = function (bExpanded) {
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (bExpanded) {
|
|
260
|
-
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, DynamicPageHeader.ARIA.LABEL_EXPANDED);
|
|
261
|
-
} else {
|
|
262
|
-
$header.attr(DynamicPageHeader.ARIA.ARIA_LABEL, DynamicPageHeader.ARIA.LABEL_COLLAPSED);
|
|
263
|
-
}
|
|
262
|
+
this._bExpanded = bExpanded;
|
|
263
|
+
this._applyAriaAttributes();
|
|
264
264
|
};
|
|
265
265
|
|
|
266
266
|
/**
|
|
@@ -95,7 +95,7 @@ sap.ui.define([
|
|
|
95
95
|
* @extends sap.ui.core.Control
|
|
96
96
|
*
|
|
97
97
|
* @author SAP SE
|
|
98
|
-
* @version 1.
|
|
98
|
+
* @version 1.139.0
|
|
99
99
|
*
|
|
100
100
|
* @constructor
|
|
101
101
|
* @public
|
|
@@ -212,8 +212,9 @@ sap.ui.define([
|
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
214
|
* The <code>DynamicPageTitle</code> actions.
|
|
215
|
-
* <br><b>Note:</b> The <code>actions</code> aggregation accepts any UI5 control
|
|
216
|
-
*
|
|
215
|
+
* <br><b>Note:</b> The <code>actions</code> aggregation accepts any UI5 control.
|
|
216
|
+
* However, it is best to use buttons or controls that work well inside toolbars, such
|
|
217
|
+
* as those typically used with {@link sap.m.Toolbar} and {@link sap.m.OverflowToolbar}.
|
|
217
218
|
*
|
|
218
219
|
* <b>Note:</b> If the <code>snappedTitleOnMobile</code> aggregation is set, its
|
|
219
220
|
* content overrides this aggregation when the control is viewed on a phone mobile
|
|
@@ -108,7 +108,7 @@ sap.ui.define([
|
|
|
108
108
|
*
|
|
109
109
|
* @extends sap.ui.core.Control
|
|
110
110
|
* @author SAP SE
|
|
111
|
-
* @version 1.
|
|
111
|
+
* @version 1.139.0
|
|
112
112
|
*
|
|
113
113
|
* @constructor
|
|
114
114
|
* @public
|
|
@@ -753,9 +753,13 @@ sap.ui.define([
|
|
|
753
753
|
* Connects the keyboard event listeners so resizing via keyboard will be possible
|
|
754
754
|
*/
|
|
755
755
|
FlexibleColumnLayout.prototype._enableKeyboardListeners = function() {
|
|
756
|
-
this.onsaprightmodifiers = this._keyListeners.increase;
|
|
757
|
-
this.
|
|
756
|
+
this.onsaprightmodifiers = this._keyListeners.increase; //right or down key to increase column width
|
|
757
|
+
this.onsapdownmodifiers = this._keyListeners.increase;
|
|
758
|
+
this.onsapleftmodifiers = this._keyListeners.decrease; //left or up key to decrease column width
|
|
759
|
+
this.onsapupmodifiers = this._keyListeners.decrease;
|
|
758
760
|
this.onsapright = this._keyListeners.increaseMore;
|
|
761
|
+
this.onsapdown = this._keyListeners.increaseMore;
|
|
762
|
+
this.onsapup = this._keyListeners.decreaseMore;
|
|
759
763
|
this.onsapleft = this._keyListeners.decreaseMore;
|
|
760
764
|
this.onsapend = this._keyListeners.max;
|
|
761
765
|
this.onsaphome = this._keyListeners.min;
|
|
@@ -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.
|
|
52
|
+
* @version 1.139.0
|
|
53
53
|
* @param {sap.f.FlexibleColumnLayout} oFlexibleColumnLayout
|
|
54
54
|
* The <code>sap.f.FlexibleColumnLayout</code> object whose state will be manipulated.
|
|
55
55
|
*
|
|
@@ -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.
|
|
61
|
+
* @version 1.139.0
|
|
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.
|
|
68
|
+
* @version 1.139.0
|
|
69
69
|
*
|
|
70
70
|
* @since 1.65
|
|
71
71
|
* @public
|
package/src/sap/f/GridList.js
CHANGED
|
@@ -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.
|
|
96
|
+
* @version 1.139.0
|
|
97
97
|
*
|
|
98
98
|
* @extends sap.m.ListBase
|
|
99
99
|
* @implements sap.ui.layout.cssgrid.IGridConfigurable
|
package/src/sap/f/ShellBar.js
CHANGED
package/src/sap/f/SidePanel.js
CHANGED
|
@@ -26,6 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
"./library",
|
|
27
27
|
"sap/ui/core/library",
|
|
28
28
|
"sap/ui/events/F6Navigation",
|
|
29
|
+
"sap/base/i18n/Localization",
|
|
29
30
|
"sap/ui/thirdparty/jquery",
|
|
30
31
|
"sap/ui/events/KeyCodes"
|
|
31
32
|
], function(
|
|
@@ -49,6 +50,7 @@ sap.ui.define([
|
|
|
49
50
|
library,
|
|
50
51
|
coreLibrary,
|
|
51
52
|
F6Navigation,
|
|
53
|
+
Localization,
|
|
52
54
|
jQuery,
|
|
53
55
|
KeyCodes
|
|
54
56
|
) {
|
|
@@ -151,7 +153,7 @@ sap.ui.define([
|
|
|
151
153
|
* @extends sap.ui.core.Control
|
|
152
154
|
*
|
|
153
155
|
* @author SAP SE
|
|
154
|
-
* @version 1.
|
|
156
|
+
* @version 1.139.0
|
|
155
157
|
*
|
|
156
158
|
* @constructor
|
|
157
159
|
* @public
|
|
@@ -488,7 +490,7 @@ sap.ui.define([
|
|
|
488
490
|
if (bSplitterFocused){
|
|
489
491
|
this._bContextMenuFromSplitter = true;
|
|
490
492
|
}
|
|
491
|
-
this._showResizeContextMenu(oEvent);
|
|
493
|
+
this._showResizeContextMenu(oEvent, !bSplitterFocused);
|
|
492
494
|
}
|
|
493
495
|
};
|
|
494
496
|
|
|
@@ -501,6 +503,10 @@ sap.ui.define([
|
|
|
501
503
|
bSplitterFocused = document.activeElement === this.getDomRef().querySelector(".sapFSPSplitterBar"),
|
|
502
504
|
iDirectionModifier = this.getSidePanelPosition() === SidePanelPosition.Right ? 1 : -1;
|
|
503
505
|
|
|
506
|
+
if (Localization.getRTL()) {
|
|
507
|
+
iDirectionModifier = -iDirectionModifier;
|
|
508
|
+
}
|
|
509
|
+
|
|
504
510
|
if (bCtrlOrCmd && oEvent.which === KeyCodes.ARROW_LEFT) {
|
|
505
511
|
oEvent.preventDefault();
|
|
506
512
|
if (bSideContentExpanded) {
|
|
@@ -1343,6 +1349,10 @@ sap.ui.define([
|
|
|
1343
1349
|
iDeltaX = -iDeltaX;
|
|
1344
1350
|
}
|
|
1345
1351
|
|
|
1352
|
+
if (Localization.getRTL()) {
|
|
1353
|
+
iDeltaX = -iDeltaX;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1346
1356
|
oEvent.preventDefault();
|
|
1347
1357
|
|
|
1348
1358
|
if (iSidePanelWidth) {
|
|
@@ -1387,11 +1397,16 @@ sap.ui.define([
|
|
|
1387
1397
|
}
|
|
1388
1398
|
};
|
|
1389
1399
|
|
|
1390
|
-
SidePanel.prototype._showResizeContextMenu = function(oEvent) {
|
|
1391
|
-
|
|
1400
|
+
SidePanel.prototype._showResizeContextMenu = function(oEvent, bSkipOpener) {
|
|
1401
|
+
const oContextMenu = this._getContextMenu(),
|
|
1402
|
+
oOpener = !bSkipOpener ? this : null;
|
|
1392
1403
|
|
|
1393
1404
|
this._bResizeStarted = false;
|
|
1394
|
-
(this._bContextMenuFromSplitter
|
|
1405
|
+
if (this._bContextMenuFromSplitter) {
|
|
1406
|
+
oContextMenu.openBy(this.getDomRef().querySelector(".sapFSPSplitterBarGrip"));
|
|
1407
|
+
} else {
|
|
1408
|
+
oContextMenu.openAsContextMenu(oEvent, oOpener);
|
|
1409
|
+
}
|
|
1395
1410
|
};
|
|
1396
1411
|
|
|
1397
1412
|
return SidePanel;
|
|
@@ -34,7 +34,7 @@ sap.ui.define([], function () {
|
|
|
34
34
|
oRm.class("sapFCardHeaderHasToolbar");
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
if (!bHasNumericPart) {
|
|
37
|
+
if (!bHasNumericPart && !oHeader.getInfoSection().length) {
|
|
38
38
|
oRm.class("sapFCardHeaderMainPartOnly");
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -84,7 +84,7 @@ sap.ui.define([], function () {
|
|
|
84
84
|
oRm.class("sapFCardSectionClickable");
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
if (!this.hasNumericPart(oHeader)) {
|
|
87
|
+
if (!this.hasNumericPart(oHeader) && !oHeader.getInfoSection().length || oError) {
|
|
88
88
|
oRm.class("sapFCardHeaderLastPart");
|
|
89
89
|
}
|
|
90
90
|
|