@openui5/sap.f 1.120.11 → 1.120.13
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 +4 -4
- 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 +20 -8
- package/src/sap/f/DynamicPageTitle.js +1 -1
- package/src/sap/f/FlexibleColumnLayout.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.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 +70 -9
- package/src/sap/f/ShellBarRenderer.js +3 -3
- package/src/sap/f/SidePanel.js +1 -1
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +1 -1
- 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/messagebundle.properties +1 -1
- package/src/sap/f/messagebundle_ar.properties +1 -1
- package/src/sap/f/messagebundle_bg.properties +1 -1
- package/src/sap/f/messagebundle_ca.properties +1 -1
- package/src/sap/f/messagebundle_cnr.properties +1 -1
- package/src/sap/f/messagebundle_cs.properties +1 -1
- package/src/sap/f/messagebundle_cy.properties +1 -1
- package/src/sap/f/messagebundle_da.properties +1 -1
- package/src/sap/f/messagebundle_de.properties +1 -1
- package/src/sap/f/messagebundle_el.properties +1 -1
- package/src/sap/f/messagebundle_en.properties +1 -1
- package/src/sap/f/messagebundle_en_GB.properties +1 -1
- package/src/sap/f/messagebundle_en_US_saprigi.properties +1 -1
- package/src/sap/f/messagebundle_es.properties +1 -1
- package/src/sap/f/messagebundle_es_MX.properties +1 -1
- package/src/sap/f/messagebundle_et.properties +1 -1
- package/src/sap/f/messagebundle_fi.properties +1 -1
- package/src/sap/f/messagebundle_fr.properties +1 -1
- package/src/sap/f/messagebundle_fr_CA.properties +1 -1
- package/src/sap/f/messagebundle_hi.properties +1 -1
- package/src/sap/f/messagebundle_hr.properties +1 -1
- package/src/sap/f/messagebundle_hu.properties +1 -1
- package/src/sap/f/messagebundle_id.properties +1 -1
- package/src/sap/f/messagebundle_it.properties +1 -1
- package/src/sap/f/messagebundle_iw.properties +1 -1
- package/src/sap/f/messagebundle_ja.properties +1 -1
- package/src/sap/f/messagebundle_kk.properties +1 -1
- package/src/sap/f/messagebundle_ko.properties +1 -1
- package/src/sap/f/messagebundle_lt.properties +1 -1
- package/src/sap/f/messagebundle_lv.properties +1 -1
- package/src/sap/f/messagebundle_mk.properties +1 -1
- package/src/sap/f/messagebundle_ms.properties +1 -1
- package/src/sap/f/messagebundle_nl.properties +1 -1
- package/src/sap/f/messagebundle_no.properties +1 -1
- package/src/sap/f/messagebundle_pl.properties +1 -1
- package/src/sap/f/messagebundle_pt.properties +1 -1
- package/src/sap/f/messagebundle_pt_PT.properties +1 -1
- package/src/sap/f/messagebundle_ro.properties +1 -1
- package/src/sap/f/messagebundle_ru.properties +1 -1
- package/src/sap/f/messagebundle_sh.properties +1 -1
- package/src/sap/f/messagebundle_sk.properties +1 -1
- package/src/sap/f/messagebundle_sl.properties +1 -1
- package/src/sap/f/messagebundle_sr.properties +1 -1
- package/src/sap/f/messagebundle_sv.properties +1 -1
- package/src/sap/f/messagebundle_th.properties +1 -1
- package/src/sap/f/messagebundle_tr.properties +1 -1
- package/src/sap/f/messagebundle_uk.properties +1 -1
- package/src/sap/f/messagebundle_vi.properties +1 -1
- package/src/sap/f/messagebundle_zh_CN.properties +1 -1
- package/src/sap/f/messagebundle_zh_TW.properties +1 -1
- 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/Factory.js +14 -8
- package/src/sap/f/shellBar/ResponsiveHandler.js +23 -6
- package/src/sap/f/shellBar/Search.js +20 -4
- package/src/sap/f/themes/base/ShellBar.less +32 -13
|
@@ -12,7 +12,6 @@ sap.ui.define([
|
|
|
12
12
|
"sap/m/ToolbarSpacer",
|
|
13
13
|
"sap/m/OverflowToolbarLayoutData",
|
|
14
14
|
"sap/m/FlexItemData",
|
|
15
|
-
"./CoPilot",
|
|
16
15
|
"./Accessibility",
|
|
17
16
|
"sap/m/library",
|
|
18
17
|
"sap/ui/core/library",
|
|
@@ -26,7 +25,6 @@ sap.ui.define([
|
|
|
26
25
|
ToolbarSpacer,
|
|
27
26
|
OverflowToolbarLayoutData,
|
|
28
27
|
FlexItemData,
|
|
29
|
-
CoPilot,
|
|
30
28
|
Accessibility,
|
|
31
29
|
library,
|
|
32
30
|
coreLibrary,
|
|
@@ -165,12 +163,20 @@ sap.ui.define([
|
|
|
165
163
|
|
|
166
164
|
Factory.prototype.getCopilot = function () {
|
|
167
165
|
if (!this._oControls.oCopilot) {
|
|
168
|
-
this._oControls.oCopilot = new
|
|
166
|
+
this._oControls.oCopilot = new OverflowToolbarButton({
|
|
169
167
|
tooltip: this._oAcc.getEntityTooltip("COPILOT"),
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
text: this._oAcc.getEntityTooltip("COPILOT"),
|
|
169
|
+
icon: "sap-icon://da",
|
|
170
|
+
type: ButtonType.Transparent,
|
|
171
|
+
press: function (oEvent) {
|
|
172
|
+
var oSource = oEvent.getSource();
|
|
173
|
+
oSource.getIcon() === "sap-icon://da" ? oSource.setIcon("sap-icon://da-2") : oSource.setIcon("sap-icon://da");
|
|
174
|
+
this._oContext.fireEvent("copilotPressed", {image: null, button: this._oControls.oCopilot});
|
|
172
175
|
}.bind(this)
|
|
173
|
-
})
|
|
176
|
+
})
|
|
177
|
+
.setLayoutData(new OverflowToolbarLayoutData({
|
|
178
|
+
priority: OverflowToolbarPriority.Low
|
|
179
|
+
}));
|
|
174
180
|
}
|
|
175
181
|
return this._oControls.oCopilot;
|
|
176
182
|
};
|
|
@@ -178,7 +184,7 @@ sap.ui.define([
|
|
|
178
184
|
Factory.prototype.getSearch = function () {
|
|
179
185
|
if (!this._oControls.oSearch) {
|
|
180
186
|
this._oControls.oSearch = new OverflowToolbarButton({
|
|
181
|
-
text: "
|
|
187
|
+
text: this._oAcc.getEntityTooltip("SEARCH"),
|
|
182
188
|
icon: "sap-icon://search",
|
|
183
189
|
type: ButtonType.Transparent,
|
|
184
190
|
tooltip: this._oAcc.getEntityTooltip("SEARCH"),
|
|
@@ -234,7 +240,7 @@ sap.ui.define([
|
|
|
234
240
|
if (!this._oControls.oNotifications) {
|
|
235
241
|
this._oControls.oNotifications = new OverflowToolbarButton({
|
|
236
242
|
ariaHasPopup: Accessibility.AriaHasPopup.NOTIFICATIONS,
|
|
237
|
-
text: "
|
|
243
|
+
text: oAcc.getEntityTooltip("NOTIFICATIONS"),
|
|
238
244
|
icon: "sap-icon://bell",
|
|
239
245
|
type: ButtonType.Transparent,
|
|
240
246
|
tooltip: oAcc.getEntityTooltip("NOTIFICATIONS"),
|
|
@@ -61,7 +61,7 @@ sap.ui.define([
|
|
|
61
61
|
*/
|
|
62
62
|
ResponsiveHandler.prototype.onAfterRendering = function () {
|
|
63
63
|
|
|
64
|
-
var bPhoneRange = Device.media.getCurrentRange(
|
|
64
|
+
var bPhoneRange = Device.media.getCurrentRange(this._oControl._sRangeSet, this._oControl.$().outerWidth(true)).name === "Phone";
|
|
65
65
|
this._oButton = this._oControl._oMegaMenu && this._oControl._oMegaMenu.getAggregation("_button");
|
|
66
66
|
this._oDomRef = this._oControl.getDomRef(); // Cache DOM Reference
|
|
67
67
|
this.bIsMegaMenuConfigured = this._oControl._oTitleControl &&
|
|
@@ -103,14 +103,19 @@ sap.ui.define([
|
|
|
103
103
|
|
|
104
104
|
var $Control = this._oControl.$(),
|
|
105
105
|
iWidth = $Control.outerWidth(),
|
|
106
|
-
oCurrentRange = Device.media.getCurrentRange(
|
|
106
|
+
oCurrentRange = Device.media.getCurrentRange(this._oControl._sRangeSet, iWidth),
|
|
107
107
|
bPhoneRange;
|
|
108
108
|
|
|
109
|
-
this.sCurrentRange
|
|
109
|
+
if (this.sCurrentRange !== oCurrentRange.name) {
|
|
110
|
+
this._oControl._bOTBUpdateNeeded = true;
|
|
111
|
+
this.sCurrentRange = oCurrentRange.name;
|
|
112
|
+
this._oControl._oManagedSearch && this._oControl._oManagedSearch._setMedia(this.sCurrentRange);
|
|
113
|
+
}
|
|
110
114
|
// Adapt control padding's outside the managed area
|
|
111
115
|
if (oCurrentRange) {
|
|
112
116
|
bPhoneRange = this.sCurrentRange === "Phone";
|
|
113
117
|
|
|
118
|
+
$Control.toggleClass("sapFShellBarSizeExtraLargeDesktop", this.sCurrentRange === "ExtraLargeDesktop");
|
|
114
119
|
$Control.toggleClass("sapFShellBarSizeLargeDesktop", this.sCurrentRange === "LargeDesktop");
|
|
115
120
|
$Control.toggleClass("sapFShellBarSizeDesktop", this.sCurrentRange === "Desktop");
|
|
116
121
|
$Control.toggleClass("sapFShellBarSizeTablet", this.sCurrentRange === "Tablet");
|
|
@@ -120,12 +125,24 @@ sap.ui.define([
|
|
|
120
125
|
/**
|
|
121
126
|
* Resize adaptation for the Search Bar UX requirements
|
|
122
127
|
*/
|
|
123
|
-
if (this._oControl._oManagedSearch && this._oControl._oManagedSearch.getIsOpen()) {
|
|
124
|
-
setTimeout(this._adaptSearch.bind(this), 100);
|
|
125
|
-
} else {
|
|
128
|
+
if (this._oControl._oManagedSearch && !this._oControl._oManagedSearch.getIsOpen()) {
|
|
126
129
|
this._oControl._bSearchPlaceHolder = false;
|
|
127
130
|
}
|
|
128
131
|
|
|
132
|
+
if (this.sCurrentRange === "ExtraLargeDesktop") {
|
|
133
|
+
this._oControl._oManagedSearch && this._oControl._oManagedSearch.setIsOpen(true);
|
|
134
|
+
setTimeout(this._adaptSearch.bind(this), 100);
|
|
135
|
+
}
|
|
136
|
+
if (this.sCurrentRange !== "ExtraLargeDesktop" && this._oControl._oManagedSearch && this._oControl._oManagedSearch.getIsOpen()) {
|
|
137
|
+
if (!this._oControl._oManagedSearch._bUserOpened) {
|
|
138
|
+
this._oControl._oManagedSearch.setIsOpen(false);
|
|
139
|
+
} else {
|
|
140
|
+
setTimeout(this._adaptSearch.bind(this), 100);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
this._oControl._bOTBUpdateNeeded && this._oControl.invalidate();
|
|
145
|
+
|
|
129
146
|
if (this._iPreviousWidth === iWidth) {
|
|
130
147
|
return; // We have nothing to update
|
|
131
148
|
}
|
|
@@ -36,7 +36,7 @@ sap.ui.define(['sap/ui/core/Control',
|
|
|
36
36
|
* @extends sap.ui.core.Control
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.120.
|
|
39
|
+
* @version 1.120.13
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|
|
@@ -90,7 +90,11 @@ sap.ui.define(['sap/ui/core/Control',
|
|
|
90
90
|
this._layoutDataWhenClosed = new OverflowToolbarLayoutData({
|
|
91
91
|
priority: OverflowToolbarPriority.Low
|
|
92
92
|
});
|
|
93
|
+
this._layoutDataPhoneWhenClosed = new OverflowToolbarLayoutData({
|
|
94
|
+
priority: OverflowToolbarPriority.AlwaysOverflow
|
|
95
|
+
});
|
|
93
96
|
this._oAcc = new Accessibility();
|
|
97
|
+
this._bUserOpened = false;
|
|
94
98
|
};
|
|
95
99
|
|
|
96
100
|
Search.prototype.onBeforeRendering = function () {
|
|
@@ -191,8 +195,10 @@ sap.ui.define(['sap/ui/core/Control',
|
|
|
191
195
|
|
|
192
196
|
if (this.getIsOpen()) {
|
|
193
197
|
oLayoutData = this._layoutDataWhenOpen;
|
|
194
|
-
} else if (!this._bInOverflow) {
|
|
198
|
+
} else if (!this._bInOverflow && !this.getPhoneMode()) {
|
|
195
199
|
oLayoutData = this._layoutDataWhenClosed;
|
|
200
|
+
} else if (this.getPhoneMode()) {
|
|
201
|
+
oLayoutData = this._layoutDataPhoneWhenClosed;
|
|
196
202
|
}
|
|
197
203
|
|
|
198
204
|
if (!oLayoutData || this.getLayoutData() === oLayoutData) {
|
|
@@ -215,12 +221,22 @@ sap.ui.define(['sap/ui/core/Control',
|
|
|
215
221
|
query: oSearch.getValue(),
|
|
216
222
|
clearButtonPressed: false
|
|
217
223
|
});
|
|
218
|
-
} else {
|
|
219
|
-
this.toggleVisibilityOfSearchField();
|
|
220
224
|
}
|
|
225
|
+
|
|
226
|
+
if (this.sCurrentRange === "ExtraLargeDesktop") {
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
this.toggleVisibilityOfSearchField();
|
|
231
|
+
this._bUserOpened = !this._bUserOpened;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
Search.prototype._setMedia = function (sMediaRange) {
|
|
235
|
+
this.sCurrentRange = sMediaRange;
|
|
221
236
|
};
|
|
222
237
|
|
|
223
238
|
Search.prototype._onPressCancelButtonHandler = function () {
|
|
239
|
+
this._bUserOpened = false;
|
|
224
240
|
this.toggleVisibilityOfSearchField();
|
|
225
241
|
};
|
|
226
242
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@_sap_f_ShellBar_PaddingPhone: 1rem;
|
|
4
4
|
@_sap_f_ShellBar_CoPilotWidth: 3rem;
|
|
5
5
|
@_sap_f_ShellBar_CoPilotHalfWidth: 1.5rem;
|
|
6
|
+
@_sap_f_ShellBar_SearchHalfMaxWidth: 17.5rem;
|
|
6
7
|
|
|
7
8
|
@_sap_f_ShellBar_PrimaryTitle_FontSize: @sapMFontMediumSize;
|
|
8
9
|
@_sap_f_ShellBar_SecondTitle_FontSize: @sapMFontSmallSize;
|
|
@@ -16,18 +17,6 @@
|
|
|
16
17
|
padding: 0 @_sap_f_ShellBar_PaddingDesktop;
|
|
17
18
|
display: flex;
|
|
18
19
|
align-items: center;
|
|
19
|
-
.sapFShellBarCopilot& {
|
|
20
|
-
.sapFShellBarORHB {
|
|
21
|
-
width: 50%;
|
|
22
|
-
padding-left: ~"calc(@{_sap_f_ShellBar_CoPilotHalfWidth} + 0.5rem)";
|
|
23
|
-
}
|
|
24
|
-
.sapFShellBarOLHB {
|
|
25
|
-
width: 50%;
|
|
26
|
-
padding-right: ~"calc(@{_sap_f_ShellBar_CoPilotHalfWidth} + 0.5rem)";
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
31
20
|
|
|
32
21
|
.sapFShellBarOLHB,
|
|
33
22
|
.sapFShellBarORHB {
|
|
@@ -385,11 +374,13 @@
|
|
|
385
374
|
}
|
|
386
375
|
.sapFShellBarSearchWrap {
|
|
387
376
|
box-sizing: border-box;
|
|
388
|
-
width: 100%;
|
|
389
377
|
padding: 0 1.25rem;
|
|
390
378
|
position: absolute;
|
|
379
|
+
align-items: center;
|
|
380
|
+
right: 0;
|
|
391
381
|
left: 0;
|
|
392
382
|
top: 0;
|
|
383
|
+
bottom: 0;
|
|
393
384
|
}
|
|
394
385
|
.sapMSF,
|
|
395
386
|
.sapFShellBarSearch {
|
|
@@ -405,6 +396,34 @@
|
|
|
405
396
|
}
|
|
406
397
|
}
|
|
407
398
|
|
|
399
|
+
.sapFShellBar.sapFShellBarSizeExtraLargeDesktop {
|
|
400
|
+
.sapFShellBarSearch {
|
|
401
|
+
max-width: 35rem; // max width of searchField + button width
|
|
402
|
+
width: 100%;
|
|
403
|
+
flex-grow: 1;
|
|
404
|
+
flex-shrink: 1;
|
|
405
|
+
box-sizing: border-box;
|
|
406
|
+
position: absolute;
|
|
407
|
+
left: ~"calc(50% - @{_sap_f_ShellBar_SearchHalfMaxWidth})";
|
|
408
|
+
|
|
409
|
+
.sapMSF {
|
|
410
|
+
max-width: 35rem;
|
|
411
|
+
min-width: auto;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
&.sapFShellBarWithSearch {
|
|
416
|
+
.sapFShellBarORHB {
|
|
417
|
+
width: 50%;
|
|
418
|
+
padding-left: ~"calc(@{_sap_f_ShellBar_SearchHalfMaxWidth} + 0.5rem)";
|
|
419
|
+
}
|
|
420
|
+
.sapFShellBarOLHB {
|
|
421
|
+
width: 50%;
|
|
422
|
+
padding-right: ~"calc(@{_sap_f_ShellBar_SearchHalfMaxWidth} + 0.5rem)";
|
|
423
|
+
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
408
427
|
.sapFButtonNotifications[data-notifications],
|
|
409
428
|
.sapFShellBarOverflowButton[data-notifications] {
|
|
410
429
|
overflow: visible;
|