@openui5/sap.f 1.120.7 → 1.121.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/.reuse/dep5 +23 -21
- package/THIRDPARTY.txt +6 -43
- package/package.json +4 -4
- package/src/sap/f/.library +1 -1
- package/src/sap/f/Avatar.js +5 -4
- package/src/sap/f/AvatarGroup.js +4 -4
- package/src/sap/f/AvatarGroupItem.js +1 -1
- package/src/sap/f/CalendarAppointmentInCard.js +1 -1
- package/src/sap/f/CalendarInCard.js +7 -5
- package/src/sap/f/CalendarInCardRenderer.js +6 -11
- package/src/sap/f/Card.js +1 -1
- package/src/sap/f/CardBase.js +6 -6
- package/src/sap/f/DynamicPage.js +35 -15
- package/src/sap/f/DynamicPageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/DynamicPageHeader.js +30 -16
- package/src/sap/f/DynamicPageTitle.js +10 -8
- package/src/sap/f/FlexibleColumnLayout.js +220 -90
- package/src/sap/f/FlexibleColumnLayoutAccessibleLandmarkInfo.js +1 -1
- package/src/sap/f/FlexibleColumnLayoutRenderer.js +7 -3
- package/src/sap/f/FlexibleColumnLayoutSemanticHelper.js +1 -1
- package/src/sap/f/GridContainer.js +45 -46
- package/src/sap/f/GridContainerItemLayoutData.js +1 -1
- package/src/sap/f/GridContainerRenderer.js +19 -11
- package/src/sap/f/GridContainerSettings.js +2 -2
- package/src/sap/f/GridList.js +15 -4
- package/src/sap/f/GridListItem.js +1 -1
- package/src/sap/f/GridNavigationMatrix.js +3 -3
- package/src/sap/f/IllustratedMessage.js +1 -1
- package/src/sap/f/Illustration.js +1 -1
- package/src/sap/f/PlanningCalendarInCardLegend.js +4 -5
- package/src/sap/f/PlanningCalendarInCardLegendRenderer.js +4 -4
- package/src/sap/f/ProductSwitch.js +7 -7
- package/src/sap/f/ProductSwitchItem.js +1 -1
- package/src/sap/f/ProductSwitchRenderer.js +3 -3
- package/src/sap/f/SearchManager.js +4 -4
- package/src/sap/f/ShellBar.js +71 -10
- package/src/sap/f/ShellBarRenderer.js +3 -3
- package/src/sap/f/SidePanel.js +22 -11
- package/src/sap/f/SidePanelItem.js +1 -1
- package/src/sap/f/cards/BaseHeader.js +21 -9
- 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/PlaceholderBaseRenderer.js +2 -2
- 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/designtime/messagebundle_en_US_saprigi.properties +4 -4
- package/src/sap/f/dnd/GridDragOver.js +5 -5
- package/src/sap/f/dnd/GridDropInfo.js +1 -1
- package/src/sap/f/library.js +23 -19
- package/src/sap/f/messagebundle.properties +4 -1
- package/src/sap/f/messagebundle_ar.properties +2 -0
- package/src/sap/f/messagebundle_bg.properties +2 -0
- package/src/sap/f/messagebundle_ca.properties +2 -0
- package/src/sap/f/messagebundle_cnr.properties +2 -0
- package/src/sap/f/messagebundle_cs.properties +2 -0
- package/src/sap/f/messagebundle_cy.properties +2 -0
- package/src/sap/f/messagebundle_da.properties +2 -0
- package/src/sap/f/messagebundle_de.properties +2 -0
- package/src/sap/f/messagebundle_el.properties +2 -0
- package/src/sap/f/messagebundle_en.properties +86 -1
- package/src/sap/f/messagebundle_en_GB.properties +2 -0
- package/src/sap/f/messagebundle_en_US_saprigi.properties +82 -80
- package/src/sap/f/messagebundle_es.properties +2 -0
- package/src/sap/f/messagebundle_es_MX.properties +2 -0
- package/src/sap/f/messagebundle_et.properties +2 -0
- package/src/sap/f/messagebundle_fi.properties +2 -0
- package/src/sap/f/messagebundle_fr.properties +2 -0
- package/src/sap/f/messagebundle_fr_CA.properties +2 -0
- package/src/sap/f/messagebundle_hi.properties +2 -0
- package/src/sap/f/messagebundle_hr.properties +2 -0
- package/src/sap/f/messagebundle_hu.properties +2 -0
- package/src/sap/f/messagebundle_id.properties +2 -0
- package/src/sap/f/messagebundle_it.properties +2 -0
- package/src/sap/f/messagebundle_iw.properties +2 -0
- package/src/sap/f/messagebundle_ja.properties +2 -0
- package/src/sap/f/messagebundle_kk.properties +2 -0
- package/src/sap/f/messagebundle_ko.properties +2 -0
- package/src/sap/f/messagebundle_lt.properties +2 -0
- package/src/sap/f/messagebundle_lv.properties +2 -0
- package/src/sap/f/messagebundle_mk.properties +2 -0
- package/src/sap/f/messagebundle_ms.properties +2 -0
- package/src/sap/f/messagebundle_nl.properties +2 -0
- package/src/sap/f/messagebundle_no.properties +2 -0
- package/src/sap/f/messagebundle_pl.properties +2 -0
- package/src/sap/f/messagebundle_pt.properties +2 -0
- package/src/sap/f/messagebundle_pt_PT.properties +2 -0
- package/src/sap/f/messagebundle_ro.properties +2 -0
- package/src/sap/f/messagebundle_ru.properties +2 -0
- package/src/sap/f/messagebundle_sh.properties +2 -0
- package/src/sap/f/messagebundle_sk.properties +2 -0
- package/src/sap/f/messagebundle_sl.properties +2 -0
- package/src/sap/f/messagebundle_sr.properties +2 -0
- package/src/sap/f/messagebundle_sv.properties +2 -0
- package/src/sap/f/messagebundle_th.properties +2 -0
- package/src/sap/f/messagebundle_tr.properties +2 -0
- package/src/sap/f/messagebundle_uk.properties +3 -1
- package/src/sap/f/messagebundle_vi.properties +2 -0
- package/src/sap/f/messagebundle_zh_CN.properties +2 -0
- package/src/sap/f/messagebundle_zh_TW.properties +2 -0
- 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 +7 -8
- package/src/sap/f/semantic/SemanticControl.js +1 -1
- package/src/sap/f/semantic/SemanticFooter.js +2 -2
- package/src/sap/f/semantic/SemanticPage.js +19 -17
- package/src/sap/f/semantic/SemanticShareMenu.js +5 -2
- 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/Accessibility.js +5 -5
- package/src/sap/f/shellBar/AdditionalContentSupport.js +1 -1
- package/src/sap/f/shellBar/CoPilot.js +8 -7
- 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/Card.less +2 -2
- package/src/sap/f/themes/base/CardLoading.less +94 -5
- package/src/sap/f/themes/base/DynamicPage.less +1 -1
- package/src/sap/f/themes/base/DynamicPageHeader.less +1 -1
- package/src/sap/f/themes/base/DynamicPageTitle.less +1 -1
- package/src/sap/f/themes/base/GridContainer.less +6 -4
- package/src/sap/f/themes/base/ShellBar.less +32 -13
- package/LICENSES/BSD-2-Clause.txt +0 -22
|
@@ -6,20 +6,22 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.f.DynamicPageHeader.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
"./library",
|
|
10
|
+
"sap/ui/Device",
|
|
11
|
+
"sap/ui/core/Control",
|
|
12
|
+
"sap/ui/core/Lib",
|
|
12
13
|
"sap/ui/core/library",
|
|
13
14
|
"sap/ui/core/IconPool",
|
|
14
15
|
"sap/ui/core/theming/Parameters",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
"sap/m/ToggleButton",
|
|
17
|
+
"sap/m/Button",
|
|
18
|
+
"./DynamicPageHeaderRenderer",
|
|
18
19
|
"sap/ui/core/InvisibleMessage"
|
|
19
20
|
], function(
|
|
20
|
-
|
|
21
|
+
library,
|
|
21
22
|
Device,
|
|
22
23
|
Control,
|
|
24
|
+
Library,
|
|
23
25
|
CoreLibrary,
|
|
24
26
|
IconPool,
|
|
25
27
|
ThemeParameters,
|
|
@@ -62,7 +64,7 @@ sap.ui.define([
|
|
|
62
64
|
* @extends sap.ui.core.Control
|
|
63
65
|
*
|
|
64
66
|
* @author SAP SE
|
|
65
|
-
* @version 1.
|
|
67
|
+
* @version 1.121.0
|
|
66
68
|
*
|
|
67
69
|
* @constructor
|
|
68
70
|
* @public
|
|
@@ -119,9 +121,11 @@ sap.ui.define([
|
|
|
119
121
|
* @returns {Object} the resource bundle object
|
|
120
122
|
*/
|
|
121
123
|
DynamicPageHeader._getResourceBundle = function () {
|
|
122
|
-
return
|
|
124
|
+
return Library.getResourceBundleFor("sap.f");
|
|
123
125
|
};
|
|
124
126
|
|
|
127
|
+
DynamicPageHeader.UNPRESSED_PIN_ICON = "sap-icon://pushpin-off";
|
|
128
|
+
|
|
125
129
|
DynamicPageHeader.ARIA = {
|
|
126
130
|
ARIA_CONTROLS: "aria-controls",
|
|
127
131
|
ARIA_LABEL: "aria-label",
|
|
@@ -146,6 +150,11 @@ sap.ui.define([
|
|
|
146
150
|
if (!this._oInvisibleMessage) {
|
|
147
151
|
this._oInvisibleMessage = InvisibleMessage.getInstance();
|
|
148
152
|
}
|
|
153
|
+
// Required if the parent has "headerPinned" set to "true" initially.
|
|
154
|
+
// Without the explicit "_setPressedStatePinIcon" an empty button is rendered.
|
|
155
|
+
if (this.getPinnable()) {
|
|
156
|
+
this._setPressedStatePinIcon();
|
|
157
|
+
}
|
|
149
158
|
};
|
|
150
159
|
|
|
151
160
|
/*************************************** Private members ******************************************/
|
|
@@ -157,6 +166,7 @@ sap.ui.define([
|
|
|
157
166
|
*/
|
|
158
167
|
DynamicPageHeader.prototype._togglePinButton = function (bValue) {
|
|
159
168
|
this._getPinButton().setPressed(bValue);
|
|
169
|
+
this._getPinButton().setIcon(bValue ? this._sPressedStatePinIconURI : DynamicPageHeader.UNPRESSED_PIN_ICON);
|
|
160
170
|
};
|
|
161
171
|
|
|
162
172
|
/**
|
|
@@ -172,8 +182,9 @@ sap.ui.define([
|
|
|
172
182
|
* Fires the pin/unpin press event.
|
|
173
183
|
* @private
|
|
174
184
|
*/
|
|
175
|
-
DynamicPageHeader.prototype._pinUnpinFireEvent = function () {
|
|
185
|
+
DynamicPageHeader.prototype._pinUnpinFireEvent = function (oEvent) {
|
|
176
186
|
this.fireEvent("_pinUnpinPress");
|
|
187
|
+
this._togglePinButton(oEvent.getSource().getPressed());
|
|
177
188
|
};
|
|
178
189
|
|
|
179
190
|
/**
|
|
@@ -247,7 +258,7 @@ sap.ui.define([
|
|
|
247
258
|
if (!this.getAggregation("_pinButton")) {
|
|
248
259
|
var oPinButton = new ToggleButton({
|
|
249
260
|
id: this.getId() + "-pinBtn",
|
|
250
|
-
icon:
|
|
261
|
+
icon: DynamicPageHeader.UNPRESSED_PIN_ICON,
|
|
251
262
|
tooltip: DynamicPageHeader.ARIA.LABEL_PINNED,
|
|
252
263
|
press: this._pinUnpinFireEvent.bind(this)
|
|
253
264
|
}).addStyleClass("sapFDynamicPageHeaderPinButton");
|
|
@@ -359,15 +370,18 @@ sap.ui.define([
|
|
|
359
370
|
};
|
|
360
371
|
};
|
|
361
372
|
|
|
373
|
+
DynamicPageHeader.prototype.onThemeChanged = function () {
|
|
374
|
+
this._setPressedStatePinIcon();
|
|
375
|
+
};
|
|
376
|
+
|
|
362
377
|
/**
|
|
363
|
-
* Sets the icon
|
|
378
|
+
* Sets the icon URI for the pressed state of the pin button
|
|
379
|
+
* @private
|
|
364
380
|
*/
|
|
365
|
-
DynamicPageHeader.prototype.
|
|
366
|
-
|
|
381
|
+
DynamicPageHeader.prototype._setPressedStatePinIcon = function () {
|
|
382
|
+
this._sPressedStatePinIconURI = IconPool.getIconURI(ThemeParameters.get({
|
|
367
383
|
name: "_sap_f_DynamicPageHeader_PinButton_Icon"
|
|
368
384
|
}));
|
|
369
|
-
|
|
370
|
-
this._getPinButton().setIcon(sIcon);
|
|
371
385
|
};
|
|
372
386
|
|
|
373
387
|
return DynamicPageHeader;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
// Provides control sap.f.DynamicPageTitle.
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./library",
|
|
10
|
+
"sap/ui/core/Lib",
|
|
10
11
|
"sap/ui/core/library",
|
|
11
12
|
"sap/ui/core/Control",
|
|
12
13
|
"sap/ui/base/ManagedObjectObserver",
|
|
@@ -20,11 +21,12 @@ sap.ui.define([
|
|
|
20
21
|
"sap/base/Log",
|
|
21
22
|
"sap/ui/core/Icon",
|
|
22
23
|
"sap/ui/Device",
|
|
23
|
-
|
|
24
|
-
"sap/ui/
|
|
25
|
-
"sap/ui/core/
|
|
24
|
+
"sap/ui/core/RenderManager",
|
|
25
|
+
"sap/ui/events/KeyCodes",
|
|
26
|
+
"sap/ui/core/InvisibleMessage"
|
|
26
27
|
], function(
|
|
27
28
|
library,
|
|
29
|
+
Library,
|
|
28
30
|
CoreLibrary,
|
|
29
31
|
Control,
|
|
30
32
|
ManagedObjectObserver,
|
|
@@ -38,9 +40,9 @@ sap.ui.define([
|
|
|
38
40
|
Log,
|
|
39
41
|
Icon,
|
|
40
42
|
Device,
|
|
43
|
+
RenderManager,
|
|
41
44
|
KeyCodes,
|
|
42
|
-
InvisibleMessage
|
|
43
|
-
oCore
|
|
45
|
+
InvisibleMessage
|
|
44
46
|
) {
|
|
45
47
|
"use strict";
|
|
46
48
|
|
|
@@ -93,7 +95,7 @@ sap.ui.define([
|
|
|
93
95
|
* @extends sap.ui.core.Control
|
|
94
96
|
*
|
|
95
97
|
* @author SAP SE
|
|
96
|
-
* @version 1.
|
|
98
|
+
* @version 1.121.0
|
|
97
99
|
*
|
|
98
100
|
* @constructor
|
|
99
101
|
* @public
|
|
@@ -382,7 +384,7 @@ sap.ui.define([
|
|
|
382
384
|
* @private
|
|
383
385
|
*/
|
|
384
386
|
DynamicPageTitle._getResourceBundle = function () {
|
|
385
|
-
return
|
|
387
|
+
return Library.getResourceBundleFor("sap.f");
|
|
386
388
|
};
|
|
387
389
|
|
|
388
390
|
DynamicPageTitle.ARIA = {
|
|
@@ -402,7 +404,7 @@ sap.ui.define([
|
|
|
402
404
|
return;
|
|
403
405
|
}
|
|
404
406
|
|
|
405
|
-
oRenderManager =
|
|
407
|
+
oRenderManager = new RenderManager().getInterface();
|
|
406
408
|
oRenderManager.renderControl(oControlToRender);
|
|
407
409
|
oRenderManager.flush(oContainerDOM);
|
|
408
410
|
oRenderManager.destroy();
|