@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
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
CARD_HEADER_DATETIMESTAMP_NOW=\u0421\u0430\u0434\u0430
|
|
3
|
+
|
|
2
4
|
DYNAMIC_PAGE_ROLE_DESCRIPTION=\u0414\u0438\u043D\u0430\u043C\u0438\u0447\u043A\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0430
|
|
3
5
|
|
|
4
6
|
EXPANDED_HEADER=\u041F\u0440\u043E\u0448\u0438\u0440\u0435\u043D\u043E \u0437\u0430\u0433\u043B\u0430\u0432\u0459\u0435
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
CARD_HEADER_DATETIMESTAMP_NOW=\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49
|
|
3
|
+
|
|
2
4
|
DYNAMIC_PAGE_ROLE_DESCRIPTION=\u0E2B\u0E19\u0E49\u0E32\u0E41\u0E1A\u0E1A\u0E44\u0E14\u0E19\u0E32\u0E21\u0E34\u0E01
|
|
3
5
|
|
|
4
6
|
EXPANDED_HEADER=\u0E2A\u0E48\u0E27\u0E19\u0E2B\u0E31\u0E27\u0E17\u0E35\u0E48\u0E02\u0E22\u0E32\u0E22
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
|
|
2
|
+
CARD_HEADER_DATETIMESTAMP_NOW=\u0417\u0430\u0440\u0430\u0437
|
|
3
|
+
|
|
2
4
|
DYNAMIC_PAGE_ROLE_DESCRIPTION=\u0414\u0438\u043D\u0430\u043C\u0456\u0447\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430
|
|
3
5
|
|
|
4
6
|
EXPANDED_HEADER=\u0420\u043E\u0437\u0448\u0438\u0440\u0435\u043D\u0438\u0439 \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A
|
|
@@ -149,7 +151,7 @@ SIDEPANEL_CONTENT_ARIA_LABEL=\u0412\u043C\u0456\u0441\u0442 \u0431\u043E\u043A\u
|
|
|
149
151
|
|
|
150
152
|
SIDEPANEL_NAV_ITEM_SELECTED=\u0412\u0438\u0431\u0440\u0430\u043D\u0435
|
|
151
153
|
|
|
152
|
-
SIDEPANEL_DEFAULT_ARIA_LABEL=\u0411\
|
|
154
|
+
SIDEPANEL_DEFAULT_ARIA_LABEL=\u0411\u043E\u043A\u043E\u0432\u0430 \u043F\u0430\u043D\u0435\u043B\u044C
|
|
153
155
|
|
|
154
156
|
SIDEPANEL_CONTEXTMENU_MINIMUM_WIDTH=\u0417\u0433\u043E\u0440\u043D\u0443\u0442\u0438 \u0434\u043E \u043C\u0456\u043D\u0456\u043C\u0430\u043B\u044C\u043D\u043E\u0457 \u0448\u0438\u0440\u0438\u043D\u0438
|
|
155
157
|
|
|
@@ -11,11 +11,10 @@ sap.ui.define([
|
|
|
11
11
|
"sap/ui/base/Object",
|
|
12
12
|
"sap/ui/core/IconPool",
|
|
13
13
|
"sap/m/library",
|
|
14
|
-
"sap/m/OverflowToolbarLayoutData"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
OverflowToolbarLayoutData) {
|
|
14
|
+
"sap/m/OverflowToolbarLayoutData",
|
|
15
|
+
"sap/ui/core/Messaging",
|
|
16
|
+
"sap/ui/core/Lib"
|
|
17
|
+
], function(BaseObject, IconPool, mobileLibrary, OverflowToolbarLayoutData, Messaging, Library) {
|
|
19
18
|
"use strict";
|
|
20
19
|
|
|
21
20
|
// shortcut for sap.m.OverflowToolbarPriority
|
|
@@ -30,7 +29,7 @@ sap.ui.define([
|
|
|
30
29
|
* @class
|
|
31
30
|
* Defines the visual properties and placement for each supported semantic type.
|
|
32
31
|
*
|
|
33
|
-
* @version 1.
|
|
32
|
+
* @version 1.121.0
|
|
34
33
|
* @private
|
|
35
34
|
* @since 1.46.0
|
|
36
35
|
* @alias sap.f.semantic.SemanticConfiguration
|
|
@@ -177,7 +176,7 @@ sap.ui.define([
|
|
|
177
176
|
*/
|
|
178
177
|
SemanticConfiguration._oTypeConfigs = (function () {
|
|
179
178
|
var oTypeConfigs = {},
|
|
180
|
-
oBundle =
|
|
179
|
+
oBundle = Library.getResourceBundleFor("sap.f");
|
|
181
180
|
|
|
182
181
|
// Title Semantic Text Buttons
|
|
183
182
|
oTypeConfigs["sap.f.semantic.TitleMainAction"] = {
|
|
@@ -341,7 +340,7 @@ sap.ui.define([
|
|
|
341
340
|
return aMessages && aMessages.length > 0;
|
|
342
341
|
}
|
|
343
342
|
},
|
|
344
|
-
models: {message:
|
|
343
|
+
models: {message: Messaging.getMessageModel()},
|
|
345
344
|
layoutData: new OverflowToolbarLayoutData({
|
|
346
345
|
priority: OverflowToolbarPriority.NeverOverflow
|
|
347
346
|
})
|
|
@@ -274,7 +274,7 @@ sap.ui.define([
|
|
|
274
274
|
* which is the result after forwarding the control to the <code>SemanticPage</code> internally aggregated controls.
|
|
275
275
|
* This is achieved by overriding the control <code>getParent</code> method.
|
|
276
276
|
*
|
|
277
|
-
* @param oControl
|
|
277
|
+
* @param {sap.ui.core.Control} oControl
|
|
278
278
|
* @private
|
|
279
279
|
*/
|
|
280
280
|
SemanticFooter.prototype._preProcessControl = function (oControl) {
|
|
@@ -289,7 +289,7 @@ sap.ui.define([
|
|
|
289
289
|
* so it returns its real parent by restoring the core <code>getParent</code> method,
|
|
290
290
|
* allowing proper processing by the framework.
|
|
291
291
|
*
|
|
292
|
-
* @param {sap}oControl
|
|
292
|
+
* @param {sap.ui.core.Control} oControl
|
|
293
293
|
* @private
|
|
294
294
|
*/
|
|
295
295
|
SemanticFooter.prototype._postProcessControl = function (oControl) {
|
|
@@ -4,21 +4,23 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
"sap/ui/core/Control",
|
|
8
|
+
"sap/ui/core/Lib",
|
|
9
|
+
"sap/ui/core/Shortcut",
|
|
10
|
+
"sap/f/library",
|
|
11
|
+
"sap/f/DynamicPage",
|
|
12
|
+
"sap/f/DynamicPageTitle",
|
|
13
|
+
"sap/f/DynamicPageHeader",
|
|
14
|
+
"sap/m/OverflowToolbar",
|
|
15
|
+
"sap/m/ActionSheet",
|
|
16
|
+
"./SemanticTitle",
|
|
17
|
+
"./SemanticFooter",
|
|
18
|
+
"./SemanticShareMenu",
|
|
19
|
+
"./SemanticConfiguration",
|
|
20
|
+
"./SemanticPageRenderer"
|
|
20
21
|
], function(
|
|
21
|
-
|
|
22
|
+
Control,
|
|
23
|
+
Library,
|
|
22
24
|
Shortcut,
|
|
23
25
|
library,
|
|
24
26
|
DynamicPage,
|
|
@@ -99,7 +101,7 @@ sap.ui.define([
|
|
|
99
101
|
* @extends sap.ui.core.Control
|
|
100
102
|
*
|
|
101
103
|
* @author SAP SE
|
|
102
|
-
* @version 1.
|
|
104
|
+
* @version 1.121.0
|
|
103
105
|
*
|
|
104
106
|
* @constructor
|
|
105
107
|
* @public
|
|
@@ -1078,8 +1080,8 @@ sap.ui.define([
|
|
|
1078
1080
|
header: this._getHeader(),
|
|
1079
1081
|
footer: this._getFooter()
|
|
1080
1082
|
}),
|
|
1081
|
-
sAriaRoleDescription =
|
|
1082
|
-
.
|
|
1083
|
+
sAriaRoleDescription = Library
|
|
1084
|
+
.getResourceBundleFor("sap.f")
|
|
1083
1085
|
.getText(SemanticPage.ARIA_ROLE_DESCRIPTION);
|
|
1084
1086
|
|
|
1085
1087
|
oDynamicPage._setAriaRoleDescription(sAriaRoleDescription);
|
|
@@ -12,6 +12,7 @@ sap.ui.define([
|
|
|
12
12
|
"sap/ui/base/EventProvider",
|
|
13
13
|
"sap/ui/base/ManagedObjectObserver",
|
|
14
14
|
"sap/ui/Device",
|
|
15
|
+
"sap/ui/core/Lib",
|
|
15
16
|
"sap/ui/core/ShortcutHintsMixin",
|
|
16
17
|
"sap/ui/core/library",
|
|
17
18
|
"sap/m/library",
|
|
@@ -23,12 +24,14 @@ sap.ui.define([
|
|
|
23
24
|
EventProvider,
|
|
24
25
|
ManagedObjectObserver,
|
|
25
26
|
Device,
|
|
27
|
+
Library,
|
|
26
28
|
ShortcutHintsMixin,
|
|
27
29
|
coreLibrary,
|
|
28
30
|
mobileLibrary,
|
|
29
31
|
OverflowToolbarButton,
|
|
30
32
|
OverflowToolbarLayoutData,
|
|
31
|
-
SemanticContainer
|
|
33
|
+
SemanticContainer
|
|
34
|
+
) {
|
|
32
35
|
"use strict";
|
|
33
36
|
|
|
34
37
|
// shortcut for sap.m.ButtonType
|
|
@@ -302,7 +305,7 @@ sap.ui.define([
|
|
|
302
305
|
|
|
303
306
|
if (!this._oShareMenuBtn) {
|
|
304
307
|
oContainer = this._getContainer();
|
|
305
|
-
oResourceBundle =
|
|
308
|
+
oResourceBundle = Library.getResourceBundleFor("sap.f");
|
|
306
309
|
sShortcutKey = "SEMANTIC_CONTROL_ACTION_SHARE_SHORTCUT"; // Ctrl+Shift+S
|
|
307
310
|
|
|
308
311
|
if (Device.os.macintosh) {
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
"sap/ui/core/Lib",
|
|
8
|
+
'sap/ui/core/library'
|
|
9
9
|
], function(
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
Library,
|
|
11
|
+
coreLibrary
|
|
12
12
|
) {
|
|
13
13
|
"use strict";
|
|
14
14
|
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
this._oControl.addDelegate(this._controlDelegate, false, this);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
this.oRb =
|
|
30
|
+
this.oRb = Library.getResourceBundleFor("sap.f");
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
Accessibility.AriaHasPopup = {
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
// Provides control sap.f.shellBar.CoPilot.
|
|
8
8
|
sap.ui.define([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
"sap/ui/core/Control",
|
|
10
|
+
"sap/ui/core/Configuration",
|
|
11
|
+
"sap/f/shellBar/CoPilotRenderer",
|
|
12
|
+
"sap/ui/core/ControlBehavior"
|
|
13
|
+
],
|
|
14
|
+
function(Control, Configuration, CoPilotRenderer, ControlBehavior) {
|
|
14
15
|
"use strict";
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -25,7 +26,7 @@ sap.ui.define([
|
|
|
25
26
|
* @extends sap.ui.core.Control
|
|
26
27
|
*
|
|
27
28
|
* @author SAP SE
|
|
28
|
-
* @version 1.
|
|
29
|
+
* @version 1.121.0
|
|
29
30
|
*
|
|
30
31
|
* @constructor
|
|
31
32
|
* @private
|
|
@@ -52,7 +53,7 @@ sap.ui.define([
|
|
|
52
53
|
};
|
|
53
54
|
|
|
54
55
|
CoPilot.prototype.getAnimation = function () {
|
|
55
|
-
return
|
|
56
|
+
return ControlBehavior.getAnimationMode() !== Configuration.AnimationMode.none;
|
|
56
57
|
};
|
|
57
58
|
|
|
58
59
|
return CoPilot;
|
|
@@ -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"),
|