@openui5/sap.tnt 1.136.1 → 1.138.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.toml +0 -28
- package/THIRDPARTY.txt +1 -25
- package/package.json +3 -3
- package/src/sap/tnt/.library +1 -1
- package/src/sap/tnt/InfoLabel.js +1 -1
- package/src/sap/tnt/NavigationList.js +90 -80
- package/src/sap/tnt/NavigationListGroup.js +15 -22
- package/src/sap/tnt/NavigationListItem.js +36 -45
- package/src/sap/tnt/NavigationListItemBase.js +109 -65
- package/src/sap/tnt/NavigationListMenuItem.js +52 -157
- package/src/sap/tnt/NavigationListMenuItemRenderer.js +121 -0
- package/src/sap/tnt/NavigationListRenderer.js +7 -1
- package/src/sap/tnt/SideNavigation.js +32 -6
- package/src/sap/tnt/ToolHeader.js +1 -1
- package/src/sap/tnt/ToolHeaderUtilitySeparator.js +1 -1
- package/src/sap/tnt/ToolPage.js +1 -1
- package/src/sap/tnt/library.js +2 -2
- package/src/sap/tnt/messagebundle.properties +14 -2
- package/src/sap/tnt/messagebundle_ar.properties +8 -0
- package/src/sap/tnt/messagebundle_bg.properties +8 -0
- package/src/sap/tnt/messagebundle_ca.properties +8 -0
- package/src/sap/tnt/messagebundle_cnr.properties +8 -0
- package/src/sap/tnt/messagebundle_cs.properties +8 -0
- package/src/sap/tnt/messagebundle_cy.properties +8 -0
- package/src/sap/tnt/messagebundle_da.properties +8 -0
- package/src/sap/tnt/messagebundle_de.properties +8 -0
- package/src/sap/tnt/messagebundle_el.properties +8 -0
- package/src/sap/tnt/messagebundle_en.properties +8 -0
- package/src/sap/tnt/messagebundle_en_GB.properties +8 -0
- package/src/sap/tnt/messagebundle_en_US_saprigi.properties +8 -0
- package/src/sap/tnt/messagebundle_es.properties +8 -0
- package/src/sap/tnt/messagebundle_es_MX.properties +8 -0
- package/src/sap/tnt/messagebundle_et.properties +8 -0
- package/src/sap/tnt/messagebundle_fi.properties +8 -0
- package/src/sap/tnt/messagebundle_fr.properties +8 -0
- package/src/sap/tnt/messagebundle_fr_CA.properties +8 -0
- package/src/sap/tnt/messagebundle_hi.properties +8 -0
- package/src/sap/tnt/messagebundle_hr.properties +8 -0
- package/src/sap/tnt/messagebundle_hu.properties +8 -0
- package/src/sap/tnt/messagebundle_id.properties +8 -0
- package/src/sap/tnt/messagebundle_it.properties +8 -0
- package/src/sap/tnt/messagebundle_iw.properties +8 -0
- package/src/sap/tnt/messagebundle_ja.properties +8 -0
- package/src/sap/tnt/messagebundle_kk.properties +8 -0
- package/src/sap/tnt/messagebundle_ko.properties +8 -0
- package/src/sap/tnt/messagebundle_lt.properties +8 -0
- package/src/sap/tnt/messagebundle_lv.properties +8 -0
- package/src/sap/tnt/messagebundle_mk.properties +10 -2
- package/src/sap/tnt/messagebundle_ms.properties +8 -0
- package/src/sap/tnt/messagebundle_nl.properties +8 -0
- package/src/sap/tnt/messagebundle_no.properties +8 -0
- package/src/sap/tnt/messagebundle_pl.properties +8 -0
- package/src/sap/tnt/messagebundle_pt.properties +8 -0
- package/src/sap/tnt/messagebundle_pt_PT.properties +8 -0
- package/src/sap/tnt/messagebundle_ro.properties +8 -0
- package/src/sap/tnt/messagebundle_ru.properties +8 -0
- package/src/sap/tnt/messagebundle_sh.properties +8 -0
- package/src/sap/tnt/messagebundle_sk.properties +8 -0
- package/src/sap/tnt/messagebundle_sl.properties +8 -0
- package/src/sap/tnt/messagebundle_sr.properties +8 -0
- package/src/sap/tnt/messagebundle_sv.properties +8 -0
- package/src/sap/tnt/messagebundle_th.properties +8 -0
- package/src/sap/tnt/messagebundle_tr.properties +8 -0
- package/src/sap/tnt/messagebundle_uk.properties +8 -0
- package/src/sap/tnt/messagebundle_vi.properties +8 -0
- package/src/sap/tnt/messagebundle_zh_CN.properties +8 -0
- package/src/sap/tnt/messagebundle_zh_TW.properties +8 -0
- package/src/sap/tnt/themes/base/NavigationList.less +51 -48
- package/src/sap/tnt/themes/base/fonts/SAP-icons-TNT.json +9 -1
- package/src/sap/tnt/themes/base/fonts/SAP-icons-TNT.woff2 +0 -0
- package/src/sap/tnt/themes/base/fonts/horizon/SAP-icons-TNT.woff2 +0 -0
- package/src/sap/tnt/themes/sap_hcb/base_NavigationList.less +52 -87
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
// Provides control sap.ui.unified.MenuItem.
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
'sap/ui/core/IconPool',
|
|
10
|
-
'sap/
|
|
11
|
-
'sap/ui/unified/library',
|
|
10
|
+
'sap/m/MenuItem',
|
|
12
11
|
'sap/ui/core/library',
|
|
13
12
|
'sap/ui/core/Icon',
|
|
14
13
|
"sap/ui/util/defaultLinkTypes",
|
|
15
14
|
"sap/ui/util/openWindow",
|
|
16
|
-
"sap/ui/events/KeyCodes"
|
|
15
|
+
"sap/ui/events/KeyCodes",
|
|
16
|
+
"./NavigationListMenuItemRenderer"
|
|
17
|
+
],
|
|
17
18
|
function (
|
|
18
19
|
IconPool,
|
|
19
20
|
MenuItem,
|
|
20
|
-
library,
|
|
21
21
|
coreLibrary,
|
|
22
22
|
Icon,
|
|
23
23
|
defaultLinkTypes,
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @extends sap.ui.unified.MenuItem
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.138.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
@@ -85,140 +85,53 @@ sap.ui.define([
|
|
|
85
85
|
|
|
86
86
|
IconPool.insertFontFaceStyle(); //Ensure Icon Font is loaded
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (this.getHref()) {
|
|
98
|
-
rm.class("sapUiMnuItmExternalLink");
|
|
88
|
+
/**
|
|
89
|
+
* Handles click event.
|
|
90
|
+
*
|
|
91
|
+
* @param {sap.ui.base.Event} oEvent click event
|
|
92
|
+
* @private
|
|
93
|
+
*/
|
|
94
|
+
NavigationListMenuItem.prototype.onclick = function (oEvent) {
|
|
95
|
+
if (!this.getEnabled()) {
|
|
96
|
+
return;
|
|
99
97
|
}
|
|
100
98
|
|
|
101
|
-
if (
|
|
102
|
-
|
|
99
|
+
if (!this._navItem._firePress(oEvent, this._navItem)) {
|
|
100
|
+
return;
|
|
103
101
|
}
|
|
104
102
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
rm.class("sapUiMnuItmFirst");
|
|
108
|
-
} else if (oInfo.iItemNo == oInfo.iTotalItems) {
|
|
109
|
-
rm.class("sapUiMnuItmLast");
|
|
110
|
-
}
|
|
111
|
-
if (!oMenu.checkEnabled(oItem)) {
|
|
112
|
-
rm.class("sapUiMnuItmDsbl");
|
|
113
|
-
}
|
|
114
|
-
if (oItem.getStartsSection()) {
|
|
115
|
-
rm.class("sapUiMnuItmSepBefore");
|
|
116
|
-
}
|
|
103
|
+
oEvent.preventDefault();
|
|
104
|
+
this._openUrl();
|
|
117
105
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
106
|
+
const oNavigationItem = this._navItem;
|
|
107
|
+
const oNavigationList = oNavigationItem.getNavigationList();
|
|
121
108
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
role: "menuitem",
|
|
126
|
-
disabled: !bIsEnabled,
|
|
127
|
-
posinset: oInfo.iItemNo,
|
|
128
|
-
setsize: oInfo.iTotalItems,
|
|
129
|
-
labelledby: { value: this.getId() + "-txt", append: true }
|
|
109
|
+
if (oNavigationItem.getSelectable()) {
|
|
110
|
+
oNavigationList._selectItem({
|
|
111
|
+
item: oNavigationItem
|
|
130
112
|
});
|
|
131
|
-
if (oSubMenu) {
|
|
132
|
-
rm.attr("aria-haspopup", coreLibrary.aria.HasPopup.Menu.toLowerCase());
|
|
133
|
-
rm.attr("aria-owns", oSubMenu.getId());
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
113
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
// External link "a" tag
|
|
141
|
-
if (this.getHref()) {
|
|
142
|
-
this._renderLinkTag(rm);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
if (oItem.getIcon() && oItem._getIcon) {
|
|
146
|
-
// icon/check column
|
|
147
|
-
rm.openStart("div");
|
|
148
|
-
rm.class("sapUiMnuItmIco");
|
|
149
|
-
rm.openEnd();
|
|
150
|
-
|
|
151
|
-
oIcon = oItem._getIcon(oItem);
|
|
152
|
-
rm.renderControl(oIcon);
|
|
153
|
-
|
|
154
|
-
rm.close("div");
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// Text column
|
|
158
|
-
rm.openStart("div", this.getId() + "-txt");
|
|
159
|
-
rm.class("sapUiMnuItmTxt");
|
|
160
|
-
rm.openEnd();
|
|
161
|
-
rm.text(oItem.getText());
|
|
162
|
-
rm.close("div");
|
|
163
|
-
|
|
164
|
-
// Shortcut column
|
|
165
|
-
rm.openStart("div", this.getId() + "-scuttxt");
|
|
166
|
-
rm.class("sapUiMnuItmSCut");
|
|
167
|
-
rm.openEnd();
|
|
168
|
-
rm.close("div");
|
|
169
|
-
|
|
170
|
-
// Submenu column
|
|
171
|
-
rm.openStart("div");
|
|
172
|
-
rm.class("sapUiMnuItmSbMnu");
|
|
173
|
-
|
|
174
|
-
if (oSubMenu) {
|
|
175
|
-
rm.class("sapTntNLIExpandIcon");
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
rm.openEnd();
|
|
179
|
-
if (oSubMenu) {
|
|
180
|
-
rm.openStart("div");
|
|
181
|
-
rm.class("sapUiIconMirrorInRTL");
|
|
182
|
-
rm.openEnd();
|
|
183
|
-
rm.close("div");
|
|
184
|
-
}
|
|
185
|
-
rm.close("div");
|
|
186
|
-
|
|
187
|
-
// External link icon
|
|
188
|
-
if (bIsExternalLink) {
|
|
189
|
-
const oIcon = this._getExternalLinkIcon();
|
|
190
|
-
rm.renderControl(oIcon);
|
|
191
|
-
}
|
|
114
|
+
const oMenu = this._oMenu;
|
|
115
|
+
oMenu.close();
|
|
116
|
+
oMenu.destroy();
|
|
192
117
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
rm.close("a");
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
rm.close("li");
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
NavigationListMenuItem.prototype.hover = function(bHovered, oMenu){
|
|
202
|
-
this.$().toggleClass("sapUiMnuItmHov", bHovered);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
NavigationListMenuItem.prototype.focus = function(oMenu){
|
|
206
|
-
if (this.getVisible()) {
|
|
207
|
-
this.$().trigger("focus");
|
|
208
|
-
} else {
|
|
209
|
-
oMenu.focus();
|
|
118
|
+
const oSelectedItemDomRef = oNavigationList.getDomRef().querySelector(".sapTntNLISelected [tabindex]");
|
|
119
|
+
oSelectedItemDomRef?.focus();
|
|
210
120
|
}
|
|
211
121
|
};
|
|
212
122
|
|
|
213
123
|
/**
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* @param {sap.ui.base.Event} oEvent click event
|
|
124
|
+
* Handle the key up event for SPACE and ENTER.
|
|
125
|
+
* @param {jQuery.Event} oEvent - the keyboard event.
|
|
217
126
|
* @private
|
|
218
127
|
*/
|
|
219
|
-
NavigationListMenuItem.prototype.
|
|
220
|
-
oEvent.
|
|
221
|
-
|
|
128
|
+
NavigationListMenuItem.prototype.onkeyup = function (oEvent) {
|
|
129
|
+
if (oEvent.which === KeyCodes.SPACE && this._bSpacePressed && !this._bPressedEscapeOrShift) {
|
|
130
|
+
this.onclick(oEvent);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
this._bSpacePressed = false;
|
|
134
|
+
this._bPressedEscapeOrShift = false;
|
|
222
135
|
};
|
|
223
136
|
|
|
224
137
|
/**
|
|
@@ -226,10 +139,15 @@ sap.ui.define([
|
|
|
226
139
|
* @param {jQuery.Event} oEvent - the keyboard event.
|
|
227
140
|
* @private
|
|
228
141
|
*/
|
|
229
|
-
NavigationListMenuItem.prototype.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
142
|
+
NavigationListMenuItem.prototype.onkeydown = function (oEvent) {
|
|
143
|
+
if (oEvent.which === KeyCodes.ENTER) {
|
|
144
|
+
this.onclick(oEvent);
|
|
145
|
+
} else if (oEvent.which === KeyCodes.SPACE) {
|
|
146
|
+
// To prevent the browser scrolling.
|
|
147
|
+
this._bSpacePressed = true;
|
|
148
|
+
oEvent.preventDefault();
|
|
149
|
+
} else if (oEvent.which === KeyCodes.SHIFT || oEvent.which === KeyCodes.ESCAPE) {
|
|
150
|
+
this._bPressedEscapeOrShift = true;
|
|
233
151
|
}
|
|
234
152
|
};
|
|
235
153
|
|
|
@@ -265,37 +183,14 @@ sap.ui.define([
|
|
|
265
183
|
};
|
|
266
184
|
|
|
267
185
|
/**
|
|
268
|
-
*
|
|
269
|
-
*
|
|
270
|
-
* @param {sap.ui.core.RenderManager} oRM renderer instance
|
|
271
|
-
* @private
|
|
186
|
+
* @override
|
|
272
187
|
*/
|
|
273
|
-
NavigationListMenuItem.prototype.
|
|
274
|
-
const
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
oRM.openStart("a", `${this.getId()}-a`);
|
|
279
|
-
|
|
280
|
-
const sTooltip = this.getTooltip_AsString() || this.getText();
|
|
281
|
-
if (sTooltip) {
|
|
282
|
-
oRM.attr("title", sTooltip);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
if (!bDisabled) {
|
|
286
|
-
oRM.attr("tabindex", "-1");
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
if (sHref) {
|
|
290
|
-
oRM.attr("href", sHref);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
if (sTarget) {
|
|
294
|
-
oRM.attr("target", sTarget)
|
|
295
|
-
.attr("rel", defaultLinkTypes("", sTarget));
|
|
296
|
-
}
|
|
188
|
+
NavigationListMenuItem.prototype._createPopover = function () {
|
|
189
|
+
const oPopover = MenuItem.prototype._createPopover.apply(this, arguments);
|
|
190
|
+
oPopover.addStyleClass("sapMSubmenu");
|
|
191
|
+
oPopover.addStyleClass("sapTntNLMenu");
|
|
297
192
|
|
|
298
|
-
|
|
193
|
+
return oPopover;
|
|
299
194
|
};
|
|
300
195
|
|
|
301
196
|
return NavigationListMenuItem;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
'sap/ui/core/Renderer',
|
|
9
|
+
"sap/ui/util/defaultLinkTypes",
|
|
10
|
+
'sap/m/MenuItemRenderer',
|
|
11
|
+
'sap/tnt/NavigationListItem'
|
|
12
|
+
], function(
|
|
13
|
+
Renderer,
|
|
14
|
+
defaultLinkTypes,
|
|
15
|
+
MenuItemRenderer,
|
|
16
|
+
NavigationListItem
|
|
17
|
+
) {
|
|
18
|
+
"use strict";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* NavigationListMenuItemRenderer renderer.
|
|
22
|
+
* @namespace
|
|
23
|
+
*/
|
|
24
|
+
const NavigationListMenuItemRenderer = Renderer.extend(MenuItemRenderer);
|
|
25
|
+
NavigationListMenuItemRenderer.apiVersion = 2;
|
|
26
|
+
|
|
27
|
+
NavigationListMenuItemRenderer.render = function(oRm, oItem) {
|
|
28
|
+
const bHasSubmenu = !!oItem._getVisibleItems().length;
|
|
29
|
+
const bIsExternalLink = oItem.getHref() && oItem.getTarget() === "_blank";
|
|
30
|
+
|
|
31
|
+
oRm.openStart("li", oItem);
|
|
32
|
+
|
|
33
|
+
if (oItem.getHref()) {
|
|
34
|
+
oRm.class("sapTntNavMenuItemExternalLink");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// HTML attributes
|
|
38
|
+
this.renderAttributes(oRm, oItem);
|
|
39
|
+
// CSS classes
|
|
40
|
+
this.renderStyleClasses(oRm, oItem);
|
|
41
|
+
// Inline styles
|
|
42
|
+
this.renderInlineStyles(oRm, oItem);
|
|
43
|
+
// Add ARIA attributes
|
|
44
|
+
this.setAccessibilityAttributes(oRm, oItem);
|
|
45
|
+
|
|
46
|
+
oRm.openEnd();
|
|
47
|
+
|
|
48
|
+
// External link "a" tag
|
|
49
|
+
if (oItem.getHref()) {
|
|
50
|
+
this._renderLinkTag(oRm, oItem);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Icon column
|
|
54
|
+
this.renderIcon(oRm, oItem);
|
|
55
|
+
// Text column
|
|
56
|
+
this.renderText(oRm, oItem);
|
|
57
|
+
|
|
58
|
+
if (bHasSubmenu) {
|
|
59
|
+
// Submenu arrow column
|
|
60
|
+
this.renderSubmenuArrow(oRm, oItem);
|
|
61
|
+
} else {
|
|
62
|
+
// Shortcut column
|
|
63
|
+
this.renderShortcut(oRm, oItem);
|
|
64
|
+
// End content column
|
|
65
|
+
this.renderEndContent(oRm, oItem);
|
|
66
|
+
// Selection mark column
|
|
67
|
+
this.renderSelectionMark(oRm, oItem);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// External link icon
|
|
71
|
+
if (bIsExternalLink) {
|
|
72
|
+
const oIcon = oItem._getExternalLinkIcon();
|
|
73
|
+
oRm.renderControl(oIcon);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// End of external link "a" tag
|
|
77
|
+
if (oItem.getHref()) {
|
|
78
|
+
oRm.close("a");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
oRm.close("li");
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Renders opening tag of anchor element.
|
|
87
|
+
*
|
|
88
|
+
* @param {sap.ui.core.RenderManager} oRm renderer instance
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
NavigationListMenuItemRenderer._renderLinkTag = function (oRm, oItem) {
|
|
92
|
+
const sHref = oItem.getHref(),
|
|
93
|
+
sTarget = oItem.getTarget();
|
|
94
|
+
|
|
95
|
+
oRm.openStart("a", `${oItem.getId()}-a`);
|
|
96
|
+
|
|
97
|
+
const sTooltip = oItem.getTooltip_AsString() || oItem.getText();
|
|
98
|
+
|
|
99
|
+
if (sTooltip) {
|
|
100
|
+
oRm.attr("title", sTooltip);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (sHref) {
|
|
104
|
+
oRm.attr("href", sHref);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (sTarget) {
|
|
108
|
+
oRm.attr("target", sTarget)
|
|
109
|
+
.attr("rel", defaultLinkTypes("", sTarget));
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
if (sHref && sTarget === "_blank") {
|
|
113
|
+
const oInvisibleText = NavigationListItem._getInvisibleText();
|
|
114
|
+
oRm.attr("aria-describedby", oInvisibleText.getId());
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
oRm.openEnd();
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
return NavigationListMenuItemRenderer;
|
|
121
|
+
}, /* bExport= */ true);
|
|
@@ -49,13 +49,19 @@ sap.ui.define([
|
|
|
49
49
|
|
|
50
50
|
// ARIA
|
|
51
51
|
const sRole = !bExpanded && !oControl.hasStyleClass("sapTntNLPopup") ? "menubar" : "tree";
|
|
52
|
+
const oParent = oControl.getParent();
|
|
53
|
+
const bIsFixed = oParent.getAggregation("fixedItem") && oParent.getAggregation("fixedItem") === oControl;
|
|
52
54
|
oRM.accessibilityState(oControl, {
|
|
53
55
|
role: sRole,
|
|
54
56
|
orientation: sRole === "menubar" ? "vertical" : undefined,
|
|
55
57
|
roledescription: Lib.getResourceBundleFor("sap.tnt").getText(
|
|
56
58
|
sRole === "menubar" ?
|
|
57
59
|
"NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR" :
|
|
58
|
-
"NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE")
|
|
60
|
+
"NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE"),
|
|
61
|
+
label: Lib.getResourceBundleFor("sap.tnt").getText(
|
|
62
|
+
bIsFixed ?
|
|
63
|
+
"SIDE_NAVIGATION_FIXED_LIST_LABEL" :
|
|
64
|
+
"SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL")
|
|
59
65
|
});
|
|
60
66
|
|
|
61
67
|
oRM.openEnd();
|
|
@@ -37,7 +37,7 @@ sap.ui.define([
|
|
|
37
37
|
* @extends sap.ui.core.Control
|
|
38
38
|
*
|
|
39
39
|
* @author SAP SE
|
|
40
|
-
* @version 1.
|
|
40
|
+
* @version 1.138.0
|
|
41
41
|
*
|
|
42
42
|
* @constructor
|
|
43
43
|
* @public
|
|
@@ -119,11 +119,36 @@ sap.ui.define([
|
|
|
119
119
|
* Fired when an item is pressed.
|
|
120
120
|
*/
|
|
121
121
|
itemPress: {
|
|
122
|
+
allowPreventDefault : true,
|
|
122
123
|
parameters: {
|
|
123
124
|
/**
|
|
124
125
|
* The pressed item.
|
|
125
126
|
*/
|
|
126
|
-
item: { type: "sap.ui.core.Item" }
|
|
127
|
+
item: { type: "sap.ui.core.Item" },
|
|
128
|
+
/**
|
|
129
|
+
* Indicates whether the CTRL key was pressed when the link was selected.
|
|
130
|
+
* @since 1.136
|
|
131
|
+
*/
|
|
132
|
+
ctrlKey: { type: "boolean" },
|
|
133
|
+
/**
|
|
134
|
+
* Indicates whether the Shift key was pressed when the link was selected.
|
|
135
|
+
* @since 1.136
|
|
136
|
+
*/
|
|
137
|
+
shiftKey: { type: "boolean" },
|
|
138
|
+
/**
|
|
139
|
+
* Indicates whether the Alt key was pressed when the link was selected.
|
|
140
|
+
* @since 1.136
|
|
141
|
+
*/
|
|
142
|
+
altKey: { type: "boolean" },
|
|
143
|
+
/**
|
|
144
|
+
* Indicates whether the "meta" key was pressed when the link was selected.
|
|
145
|
+
*
|
|
146
|
+
* On Macintosh keyboards, this is the command key (⌘).
|
|
147
|
+
* On Windows keyboards, this is the windows key (⊞).
|
|
148
|
+
*
|
|
149
|
+
* @since 1.136
|
|
150
|
+
*/
|
|
151
|
+
metaKey: { type: "boolean" }
|
|
127
152
|
}
|
|
128
153
|
}
|
|
129
154
|
}
|
|
@@ -283,11 +308,12 @@ sap.ui.define([
|
|
|
283
308
|
};
|
|
284
309
|
|
|
285
310
|
SideNavigation.prototype._itemPressHandler = function (oEvent) {
|
|
286
|
-
const
|
|
311
|
+
const oParams = oEvent.getParameters();
|
|
287
312
|
|
|
288
|
-
this.fireItemPress({
|
|
289
|
-
|
|
290
|
-
|
|
313
|
+
if (!this.fireItemPress(oParams)) {
|
|
314
|
+
oEvent.preventDefault();
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
291
317
|
};
|
|
292
318
|
|
|
293
319
|
return SideNavigation;
|
package/src/sap/tnt/ToolPage.js
CHANGED
package/src/sap/tnt/library.js
CHANGED
|
@@ -22,14 +22,14 @@ sap.ui.define([
|
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.tnt
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.138.0
|
|
26
26
|
* @since 1.36
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
29
|
var thisLib = Library.init({
|
|
30
30
|
apiVersion: 2,
|
|
31
31
|
name : "sap.tnt",
|
|
32
|
-
version: "1.
|
|
32
|
+
version: "1.138.0",
|
|
33
33
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
34
34
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
35
35
|
types: [
|
|
@@ -23,8 +23,20 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Navigation list menu bar
|
|
|
23
23
|
#XACT: ARIA announcement for the NavigationListItem`s roledescription attribute tree
|
|
24
24
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Navigation list tree
|
|
25
25
|
|
|
26
|
+
#XACT: ARIA announcement for the Side Navigation Primary Navigation list
|
|
27
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Primary Navigation Menu
|
|
28
|
+
|
|
29
|
+
#XACT: ARIA announcement for the Side Navigation Footer Navigation list
|
|
30
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Footer Navigation Menu
|
|
31
|
+
|
|
26
32
|
#XACT: ARIA announcement for the NavigationList Dialog Title
|
|
27
33
|
NAVIGATION_LIST_DIALOG_TITLE=Navigation
|
|
28
34
|
|
|
29
|
-
#XACT: ARIA
|
|
30
|
-
NAVIGATION_LIST_NAVIGATION_OVERFLOW=More items
|
|
35
|
+
#XACT: ARIA text for the NavigationList Overflow Item
|
|
36
|
+
NAVIGATION_LIST_NAVIGATION_OVERFLOW=More items
|
|
37
|
+
|
|
38
|
+
#XACT: ARIA announcement for the NavigationList Overflow Item label
|
|
39
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Displays remaining navigation items
|
|
40
|
+
|
|
41
|
+
#XACT: ARIA announcement for the NavigationListItem with href and target _blank
|
|
42
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=Opens a link in a new window
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=\u0634\u0631\u064A\u0637 \u0642\u0
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=\u0634\u062C\u0631\u0629 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0646\u0642\u0644
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0646\u0642\u0644 \u0627\u0644\u0623\u0633\u0627\u0633\u064A\u0629
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062A\u0646\u0642\u0644 \u0641\u064A \u0627\u0644\u062A\u0630\u064A\u064A\u0644
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=\u062A\u0646\u0642\u0644
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=\u0645\u0632\u064A\u062F \u0645\u0646 \u0627\u0644\u0628\u0646\u0648\u062F
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=\u0639\u0631\u0636 \u0628\u0646\u0648\u062F \u0627\u0644\u062A\u0646\u0642\u0644 \u0627\u0644\u0645\u062A\u0628\u0642\u064A\u0629
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=\u0641\u062A\u062D \u0627\u0631\u062A\u0628\u0627\u0637 \u0641\u064A \u0646\u0627\u0641\u0630\u0629 \u062C\u062F\u064A\u062F\u0629
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=\u041B\u0435\u043D\u0442\u0430 \u0
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=\u0414\u044A\u0440\u0432\u043E \u043D\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043E\u043D\u0435\u043D \u0441\u043F\u0438\u0441\u044A\u043A
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=\u041E\u0441\u043D\u043E\u0432\u043D\u043E \u043C\u0435\u043D\u044E \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=\u041C\u0435\u043D\u044E \u0437\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F \u0432 \u0434\u043E\u043B\u043D\u0438\u044F \u043A\u043E\u043B\u043E\u043D\u0442\u0438\u0442\u0443\u043B
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=\u041D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=\u041E\u0449\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=\u041F\u043E\u043A\u0430\u0437\u0432\u0430 \u043E\u0441\u0442\u0430\u0432\u0430\u0449\u0438\u0442\u0435 \u043F\u043E\u0437\u0438\u0446\u0438\u0438 \u043D\u0430 \u043D\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044F
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=\u041E\u0442\u0432\u0430\u0440\u044F \u0432\u0440\u044A\u0437\u043A\u0430 \u0432 \u043D\u043E\u0432 \u043F\u0440\u043E\u0437\u043E\u0440\u0435\u0446
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Barra de men\u00FA de llista de na
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Arbre de llista de navegaci\u00F3
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Men\u00FA de navegaci\u00F3 principal
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Men\u00FA de navegaci\u00F3 de peu de p\u00E0gina
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Navegaci\u00F3
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=M\u00E9s elements
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Visualitza els elements de navegaci\u00F3 restants
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=S\u2019obre un enlla\u00E7 a una finestra nova
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Traka menija liste usmjeravanja
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Stablo liste usmjeravanja
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Primarni meni usmjeravanja
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Meni usmjeravanja podno\u017Eja
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Usmjeravanje
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Vi\u0161e stavki
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Prikazuje preostale stavke usmjeravanja
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=Otvara vezu u novom prozoru
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Li\u0161ta menu naviga\u010Dn\u00E
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Strom naviga\u010Dn\u00EDho seznamu
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Prim\u00E1rn\u00ED naviga\u010Dn\u00ED menu
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Naviga\u010Dn\u00ED menu pati\u010Dky
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Navigace
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Dal\u0161\u00ED polo\u017Eky
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Zobrazuje zb\u00FDvaj\u00EDc\u00ED naviga\u010Dn\u00ED polo\u017Eky
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=Otev\u0159e odkaz v nov\u00E9m okn\u011B
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Bar Dewislen Rhestr Llywio
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Coeden Rhestr Llywio
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Prif Ddewislen Llywio
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Dewislen Llywio - Troedyn
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Llywio
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Rhagor o eitemau
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Mae'n dangos yr eitemau llywio sy'n weddill
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=Yn agor dolen mewn ffenestr newydd
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Menulinje for navigationsliste
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Navigationslistetr\u00E6
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Prim\u00E6r navigationsmenu
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Navigationsmenu for sidefod
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Navigation
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Flere elementer
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Viser resterende navigationselementer
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=\u00C5bner et link i et nyt vindue
|
|
@@ -14,6 +14,14 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Navigationslistenmen\u00FCleiste
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Navigationslistenbaum
|
|
16
16
|
|
|
17
|
+
SIDE_NAVIGATION_FLEXIBLE_LIST_LABEL=Prim\u00E4res Navigationsmen\u00FC
|
|
18
|
+
|
|
19
|
+
SIDE_NAVIGATION_FIXED_LIST_LABEL=Fu\u00DFzeilen-Navigationsmen\u00FC
|
|
20
|
+
|
|
17
21
|
NAVIGATION_LIST_DIALOG_TITLE=Navigation
|
|
18
22
|
|
|
19
23
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Weitere Elemente
|
|
24
|
+
|
|
25
|
+
NAVIGATION_LIST_OVERFLOW_ITEM_LABEL=Zeigt verbleibende Navigationselemente
|
|
26
|
+
|
|
27
|
+
NAVIGATION_LIST_EXTERNAL_LINK_DESCRIPTION=\u00D6ffnet einen Link in einem neuen Fenster
|