@openui5/sap.tnt 1.133.1 → 1.135.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 +0 -7
- package/THIRDPARTY.txt +2 -23
- 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 +21 -6
- package/src/sap/tnt/NavigationListGroup.js +1 -1
- package/src/sap/tnt/NavigationListItem.js +46 -4
- package/src/sap/tnt/NavigationListItemBase.js +10 -1
- package/src/sap/tnt/NavigationListMenuItem.js +8 -3
- package/src/sap/tnt/SideNavigation.js +37 -3
- package/src/sap/tnt/SideNavigationRenderer.js +12 -3
- package/src/sap/tnt/ToolHeader.js +1 -3
- package/src/sap/tnt/ToolHeaderUtilitySeparator.js +1 -1
- package/src/sap/tnt/ToolPage.js +3 -3
- package/src/sap/tnt/library.js +28 -3
- package/src/sap/tnt/messagebundle_sl.properties +6 -6
- package/src/sap/tnt/themes/base/NavigationList.less +158 -112
- package/src/sap/tnt/themes/base/SideNavigation.less +6 -0
- package/src/sap/tnt/themes/base/illustrations/metadata.json +190 -8
- package/src/sap/tnt/themes/sap_hcb/base_NavigationList.less +3 -3
- package/LICENSES/LicenseRef-tzdata-PublicDomain.txt +0 -5
- package/src/sap/tnt/themes/base/illustrations/tnt-Dot-UnableToLoad.svg +0 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Dot-UnsuccessfulAuth.svg +0 -10
- package/src/sap/tnt/themes/base/illustrations/tnt-Dot-User2.svg +0 -10
package/.reuse/dep5
CHANGED
|
@@ -364,13 +364,6 @@ Copyright:
|
|
|
364
364
|
License: Apache-2.0 and ISC
|
|
365
365
|
Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
|
|
366
366
|
|
|
367
|
-
Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
368
|
-
Copyright:
|
|
369
|
-
2009-2024 SAP SE or an SAP affiliate company and OpenUI5 contributors
|
|
370
|
-
Arthur David Olson, Paul Eggert and other contributors
|
|
371
|
-
License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
|
|
372
|
-
Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
|
|
373
|
-
|
|
374
367
|
|
|
375
368
|
# Library: sap.ui.documentation:
|
|
376
369
|
|
package/THIRDPARTY.txt
CHANGED
|
@@ -22,7 +22,7 @@ Contained in: src/sap.m/test/sap/m/qunit/_thirdparty/qunit-composite.css
|
|
|
22
22
|
|
|
23
23
|
Library: sap.ui.codeeditor:
|
|
24
24
|
|
|
25
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.
|
|
25
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.36.5
|
|
26
26
|
Copyright: 2010, Ajax.org B.V.
|
|
27
27
|
License: BSD-3-Clause
|
|
28
28
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -342,12 +342,6 @@ License: ISC
|
|
|
342
342
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
|
|
343
343
|
Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
|
|
344
344
|
|
|
345
|
-
Component: Time Zone Database, version: 2024b
|
|
346
|
-
Copyright: Arthur David Olson, Paul Eggert and other contributors
|
|
347
|
-
License: LicenseRef-tzdata-PublicDomain
|
|
348
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
|
|
349
|
-
Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
|
|
350
|
-
|
|
351
345
|
|
|
352
346
|
Library: sap.ui.documentation:
|
|
353
347
|
|
|
@@ -468,7 +462,7 @@ License: Apache-2.0
|
|
|
468
462
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
469
463
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
470
464
|
|
|
471
|
-
Component: SAP Theming Base Content, version: 11.
|
|
465
|
+
Component: SAP Theming Base Content, version: 11.28.2
|
|
472
466
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
473
467
|
License: Apache-2.0
|
|
474
468
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -1015,21 +1009,6 @@ END of license: LicenseRef-Unicode-3.0
|
|
|
1015
1009
|
=================================
|
|
1016
1010
|
|
|
1017
1011
|
|
|
1018
|
-
=================================
|
|
1019
|
-
BEGIN of license: LicenseRef-tzdata-PublicDomain
|
|
1020
|
-
=================================
|
|
1021
|
-
|
|
1022
|
-
Unless specified below, all files in the tz code and data (including
|
|
1023
|
-
this LICENSE file) are in the public domain.
|
|
1024
|
-
|
|
1025
|
-
If the files date.c, newstrftime.3, and strftime.c are present, they
|
|
1026
|
-
contain material derived from BSD and use the BSD 3-clause license.
|
|
1027
|
-
|
|
1028
|
-
=================================
|
|
1029
|
-
END of license: LicenseRef-tzdata-PublicDomain
|
|
1030
|
-
=================================
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
1012
|
=================================
|
|
1034
1013
|
BEGIN of license: MIT
|
|
1035
1014
|
=================================
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.tnt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.135.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.tnt",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
17
|
+
"@openui5/sap.m": "1.135.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.135.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/tnt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.135.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with responsive controls.</documentation>
|
|
12
12
|
|
package/src/sap/tnt/InfoLabel.js
CHANGED
|
@@ -54,7 +54,7 @@ sap.ui.define([
|
|
|
54
54
|
* @extends sap.ui.core.Control
|
|
55
55
|
*
|
|
56
56
|
* @author SAP SE
|
|
57
|
-
* @version 1.
|
|
57
|
+
* @version 1.135.0
|
|
58
58
|
*
|
|
59
59
|
* @constructor
|
|
60
60
|
* @public
|
|
@@ -122,6 +122,17 @@ sap.ui.define([
|
|
|
122
122
|
*/
|
|
123
123
|
item: { type: "sap.ui.core.Item" }
|
|
124
124
|
}
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Fired when an item is pressed.
|
|
128
|
+
*/
|
|
129
|
+
itemPress: {
|
|
130
|
+
parameters: {
|
|
131
|
+
/**
|
|
132
|
+
* The pressed item.
|
|
133
|
+
*/
|
|
134
|
+
item: { type: "sap.ui.core.Item" }
|
|
135
|
+
}
|
|
125
136
|
}
|
|
126
137
|
}
|
|
127
138
|
},
|
|
@@ -298,19 +309,23 @@ sap.ui.define([
|
|
|
298
309
|
const oMenuItem = oEvent.getParameter("item");
|
|
299
310
|
const oNavigationItem = oMenuItem._navItem;
|
|
300
311
|
|
|
312
|
+
oNavigationItem._firePress({
|
|
313
|
+
item: oNavigationItem
|
|
314
|
+
});
|
|
315
|
+
|
|
301
316
|
if (oNavigationItem.getSelectable()) {
|
|
302
317
|
this._selectItem({
|
|
303
318
|
item: oNavigationItem
|
|
304
319
|
});
|
|
305
|
-
|
|
306
|
-
item: oNavigationItem
|
|
307
|
-
});
|
|
320
|
+
|
|
308
321
|
const oSelectedItemDomRef = this.getDomRef().querySelector(".sapTntNLISelected [tabindex]");
|
|
309
322
|
oSelectedItemDomRef?.focus();
|
|
310
323
|
}
|
|
311
324
|
|
|
312
|
-
|
|
313
|
-
|
|
325
|
+
if (oNavigationItem.getSelectable() || !oMenuItem.getItems().length) {
|
|
326
|
+
oMenu.close();
|
|
327
|
+
oMenu.destroy();
|
|
328
|
+
}
|
|
314
329
|
},
|
|
315
330
|
closed: function () {
|
|
316
331
|
opener.getDomRef().querySelector(".sapTntNLI").classList.remove("sapTntNLIActive");
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @extends sap.tnt.NavigationListItemBase
|
|
58
58
|
*
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.135.0
|
|
61
61
|
*
|
|
62
62
|
* @constructor
|
|
63
63
|
* @public
|
|
@@ -81,8 +81,18 @@ sap.ui.define([
|
|
|
81
81
|
visible: { type: "boolean", group: "Appearance", defaultValue: true },
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Specifies if the item can be selected.
|
|
85
|
-
*
|
|
84
|
+
* Specifies if the item can be selected. By default all items are selectable.
|
|
85
|
+
*
|
|
86
|
+
* When a parent item's <code>selectable</code> property is set to <code>false</code>,
|
|
87
|
+
* selecting it will only expand or collapse its sub-items.
|
|
88
|
+
*
|
|
89
|
+
* To improve user experience do not mix selectable parent items with not selectable parent items within a single side navigation.
|
|
90
|
+
*
|
|
91
|
+
* <b>Guidelines:</b>
|
|
92
|
+
* <ul>
|
|
93
|
+
* <li>External links should not be selectable.</li>
|
|
94
|
+
* <li>Items that trigger actions (with design "Action") should not be selectable.</li>
|
|
95
|
+
* </ul>
|
|
86
96
|
*
|
|
87
97
|
* @since 1.116
|
|
88
98
|
* @experimental Since 1.116. Disclaimer: this property is in a beta state
|
|
@@ -202,6 +212,7 @@ sap.ui.define([
|
|
|
202
212
|
const NavigationListClass = oList.getMetadata().getClass().prototype.constructor;
|
|
203
213
|
const oListForPopup = new NavigationListClass({
|
|
204
214
|
itemSelect: this.onPopupItemSelect.bind(this),
|
|
215
|
+
itemPress: this.onPopupItemPress.bind(this),
|
|
205
216
|
items: oItemForList
|
|
206
217
|
}).addStyleClass("sapTntNLPopup");
|
|
207
218
|
|
|
@@ -228,6 +239,19 @@ sap.ui.define([
|
|
|
228
239
|
oRealItem._selectItem();
|
|
229
240
|
};
|
|
230
241
|
|
|
242
|
+
/**
|
|
243
|
+
* Handles popup item press.
|
|
244
|
+
*
|
|
245
|
+
* @param {sap.ui.base.Event} oEvent itemPress event
|
|
246
|
+
* @private
|
|
247
|
+
*/
|
|
248
|
+
NavigationListItem.prototype.onPopupItemPress = function (oEvent) {
|
|
249
|
+
const oItemInPopup = oEvent.getParameter("item"),
|
|
250
|
+
oRealItem = Element.getElementById(oItemInPopup.getKey());
|
|
251
|
+
|
|
252
|
+
oRealItem._firePress({ item: oRealItem });
|
|
253
|
+
};
|
|
254
|
+
|
|
231
255
|
/**
|
|
232
256
|
* Selects this item.
|
|
233
257
|
*
|
|
@@ -471,6 +495,10 @@ sap.ui.define([
|
|
|
471
495
|
oRM.class("sapTntNLIWithExpander");
|
|
472
496
|
}
|
|
473
497
|
|
|
498
|
+
if (bSelectable && aItems.length) {
|
|
499
|
+
oRM.class("sapTntNLITwoClickAreas");
|
|
500
|
+
}
|
|
501
|
+
|
|
474
502
|
const oLinkAriaProps = {};
|
|
475
503
|
|
|
476
504
|
if (this.getAriaHasPopup() !== AriaHasPopup.None) {
|
|
@@ -481,6 +509,14 @@ sap.ui.define([
|
|
|
481
509
|
oRM.class("sapTntNLIAction");
|
|
482
510
|
}
|
|
483
511
|
|
|
512
|
+
if (!bSelectable) {
|
|
513
|
+
oRM.class("sapTntNLIUnselectable");
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
if (this._isInsidePopover()) {
|
|
517
|
+
oRM.class("sapTntNLIInPopover");
|
|
518
|
+
}
|
|
519
|
+
|
|
484
520
|
if (!bListExpanded) {
|
|
485
521
|
oLinkAriaProps.role = bSelectable ? "menuitemradio" : "menuitem";
|
|
486
522
|
|
|
@@ -573,6 +609,10 @@ sap.ui.define([
|
|
|
573
609
|
oRM.class("sapTntNLIDisabled");
|
|
574
610
|
}
|
|
575
611
|
|
|
612
|
+
if (this._isInsidePopover()) {
|
|
613
|
+
oRM.class("sapTntNLIInPopover");
|
|
614
|
+
}
|
|
615
|
+
|
|
576
616
|
oRM.openEnd();
|
|
577
617
|
|
|
578
618
|
const oLinkAriaProps = {
|
|
@@ -770,7 +810,9 @@ sap.ui.define([
|
|
|
770
810
|
return aDomRefs;
|
|
771
811
|
}
|
|
772
812
|
|
|
773
|
-
|
|
813
|
+
if (!this._isInsidePopover() || this.getSelectable() && this.getLevel() === 0) {
|
|
814
|
+
aDomRefs.push(this.getDomRef("a"));
|
|
815
|
+
}
|
|
774
816
|
|
|
775
817
|
if (this._isListExpanded() && this.getExpanded()) {
|
|
776
818
|
aDomRefs.push(...this.getDomRef().querySelectorAll(".sapTntNLISecondLevel:not(.sapTntNLIDisabled) a"));
|
|
@@ -29,7 +29,7 @@ sap.ui.define([
|
|
|
29
29
|
* @extends sap.ui.core.Item
|
|
30
30
|
*
|
|
31
31
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
32
|
+
* @version 1.135.0
|
|
33
33
|
*
|
|
34
34
|
* @constructor
|
|
35
35
|
* @public
|
|
@@ -338,6 +338,8 @@ sap.ui.define([
|
|
|
338
338
|
|
|
339
339
|
if (this.getEnabled() && !(oEvent.srcControl.isA("sap.ui.core.Icon")) && !this._isOverflow && !(!this.getNavigationList().getExpanded() && this.getItems().length)) {
|
|
340
340
|
this._firePress(oParams);
|
|
341
|
+
|
|
342
|
+
oEvent.stopPropagation();
|
|
341
343
|
}
|
|
342
344
|
|
|
343
345
|
if (oEvent.isMarked("subItem")) {
|
|
@@ -363,6 +365,9 @@ sap.ui.define([
|
|
|
363
365
|
* @private
|
|
364
366
|
*/
|
|
365
367
|
NavigationListItemBase.prototype._firePress = function(oParams) {
|
|
368
|
+
const oNavList = this.getNavigationList();
|
|
369
|
+
|
|
370
|
+
oNavList?.fireItemPress({ item: this });
|
|
366
371
|
this.firePress(oParams);
|
|
367
372
|
};
|
|
368
373
|
|
|
@@ -459,5 +464,9 @@ sap.ui.define([
|
|
|
459
464
|
return true;
|
|
460
465
|
};
|
|
461
466
|
|
|
467
|
+
NavigationListItemBase.prototype._isInsidePopover = function () {
|
|
468
|
+
return !!this.getNavigationList()?.hasStyleClass("sapTntNLPopup");
|
|
469
|
+
};
|
|
470
|
+
|
|
462
471
|
return NavigationListItemBase;
|
|
463
472
|
});
|
|
@@ -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.135.0
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
*/
|
|
47
47
|
var NavigationListMenuItem = MenuItem.extend("sap.tnt.NavigationListMenuItem", /** @lends sap.ui.unified.MenuItem.prototype */ { metadata : {
|
|
48
48
|
|
|
49
|
-
library : "sap.
|
|
49
|
+
library : "sap.tnt",
|
|
50
50
|
properties : {
|
|
51
51
|
/**
|
|
52
52
|
* Defines the text which should be displayed on the item.
|
|
@@ -85,7 +85,7 @@ sap.ui.define([
|
|
|
85
85
|
|
|
86
86
|
IconPool.insertFontFaceStyle(); //Ensure Icon Font is loaded
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
NavigationListMenuItem.prototype.render = function(oRenderManager, oItem, oMenu, oInfo) {
|
|
89
89
|
var rm = oRenderManager,
|
|
90
90
|
oSubMenu = oItem.getSubmenu(),
|
|
91
91
|
bIsEnabled = oItem.getEnabled(),
|
|
@@ -170,6 +170,11 @@ sap.ui.define([
|
|
|
170
170
|
// Submenu column
|
|
171
171
|
rm.openStart("div");
|
|
172
172
|
rm.class("sapUiMnuItmSbMnu");
|
|
173
|
+
|
|
174
|
+
if (oSubMenu) {
|
|
175
|
+
rm.class("sapTntNLIExpandIcon");
|
|
176
|
+
}
|
|
177
|
+
|
|
173
178
|
rm.openEnd();
|
|
174
179
|
if (oSubMenu) {
|
|
175
180
|
rm.openStart("div");
|
|
@@ -16,6 +16,9 @@ sap.ui.define([
|
|
|
16
16
|
) {
|
|
17
17
|
"use strict";
|
|
18
18
|
|
|
19
|
+
// shortcut for SideNavigationDesign in sap.tnt library
|
|
20
|
+
const SideNavigationDesign = library.SideNavigationDesign;
|
|
21
|
+
|
|
19
22
|
/**
|
|
20
23
|
* Constructor for a new <code>SideNavigation</code>.
|
|
21
24
|
*
|
|
@@ -29,11 +32,12 @@ sap.ui.define([
|
|
|
29
32
|
* <li>The flexible part adapts its size to the fixed one.</li>
|
|
30
33
|
* <li>The flexible part has a scrollbar when the content is larger than the available space.</li>
|
|
31
34
|
* </ul>
|
|
32
|
-
|
|
35
|
+
* <b>Note:</b> In order for the <code>SideNavigation</code> to stretch properly, its parent layout control should only be the <code>sap.tnt.ToolPage</code>.
|
|
36
|
+
* <b>Note:</b> If used outside the intended parent layout <code>sap.tnt.ToolPage</code>, for example inside a <code>sap.m.ResponsivePopover</code> to achieve a Side Navigation Overlay Mode, the application developer should set the <code>design</code> property to <code>Plain</code>.
|
|
33
37
|
* @extends sap.ui.core.Control
|
|
34
38
|
*
|
|
35
39
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
40
|
+
* @version 1.135.0
|
|
37
41
|
*
|
|
38
42
|
* @constructor
|
|
39
43
|
* @public
|
|
@@ -66,7 +70,14 @@ sap.ui.define([
|
|
|
66
70
|
* Specifies an optional <code>aria-label</code> that can be used by the screen readers.
|
|
67
71
|
* @since 1.98
|
|
68
72
|
*/
|
|
69
|
-
ariaLabel: { type: "string", group: "Accessibility", defaultValue: null }
|
|
73
|
+
ariaLabel: { type: "string", group: "Accessibility", defaultValue: null },
|
|
74
|
+
/**
|
|
75
|
+
* Specifies whether the control should have own container styling, such as a box-shadow and border, or not.
|
|
76
|
+
* <b>Note:</b> This property has to be set to <code>Plain</code> when the control is used inside a <code>sap.m.ResponsivePopover</code> to achieve a Side Navigation Overlay Mode.
|
|
77
|
+
* @since 1.134
|
|
78
|
+
* @experimental Since 1.134
|
|
79
|
+
*/
|
|
80
|
+
design: { type: "sap.tnt.SideNavigationDesign", group: "Appearance", defaultValue: SideNavigationDesign.Decorated }
|
|
70
81
|
},
|
|
71
82
|
defaultAggregation: "item",
|
|
72
83
|
aggregations: {
|
|
@@ -103,6 +114,17 @@ sap.ui.define([
|
|
|
103
114
|
*/
|
|
104
115
|
item: { type: "sap.ui.core.Item" }
|
|
105
116
|
}
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Fired when an item is pressed.
|
|
120
|
+
*/
|
|
121
|
+
itemPress: {
|
|
122
|
+
parameters: {
|
|
123
|
+
/**
|
|
124
|
+
* The pressed item.
|
|
125
|
+
*/
|
|
126
|
+
item: { type: "sap.ui.core.Item" }
|
|
127
|
+
}
|
|
106
128
|
}
|
|
107
129
|
}
|
|
108
130
|
},
|
|
@@ -115,6 +137,10 @@ sap.ui.define([
|
|
|
115
137
|
oObject.attachItemSelect(this._itemSelectionHandler.bind(this));
|
|
116
138
|
}
|
|
117
139
|
|
|
140
|
+
if (oObject && oObject.attachItemPress) {
|
|
141
|
+
oObject.attachItemPress(this._itemPressHandler.bind(this));
|
|
142
|
+
}
|
|
143
|
+
|
|
118
144
|
return Control.prototype.setAggregation.apply(this, arguments);
|
|
119
145
|
};
|
|
120
146
|
|
|
@@ -256,5 +282,13 @@ sap.ui.define([
|
|
|
256
282
|
});
|
|
257
283
|
};
|
|
258
284
|
|
|
285
|
+
SideNavigation.prototype._itemPressHandler = function (oEvent) {
|
|
286
|
+
const oItem = oEvent.getParameter("item");
|
|
287
|
+
|
|
288
|
+
this.fireItemPress({
|
|
289
|
+
item: oItem
|
|
290
|
+
});
|
|
291
|
+
};
|
|
292
|
+
|
|
259
293
|
return SideNavigation;
|
|
260
294
|
});
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
sap.ui.define([
|
|
8
|
-
"sap/ui/core/Lib"
|
|
9
|
-
|
|
8
|
+
"sap/ui/core/Lib",
|
|
9
|
+
"sap/tnt/library"
|
|
10
|
+
], function (Lib, library) {
|
|
10
11
|
"use strict";
|
|
11
12
|
|
|
13
|
+
// shortcut for SideNavigationDesign in sap.tnt library
|
|
14
|
+
const SideNavigationDesign = library.SideNavigationDesign;
|
|
15
|
+
|
|
12
16
|
/**
|
|
13
17
|
* SideNavigation renderer.
|
|
14
18
|
* @namespace
|
|
@@ -39,7 +43,8 @@ sap.ui.define([
|
|
|
39
43
|
|
|
40
44
|
SideNavigationRenderer.startSideNavigation = function (oRM, oControl) {
|
|
41
45
|
const bExpanded = oControl.getExpanded(),
|
|
42
|
-
sAriaLabel = oControl.getAriaLabel()
|
|
46
|
+
sAriaLabel = oControl.getAriaLabel(),
|
|
47
|
+
sDesign = oControl.getDesign();
|
|
43
48
|
|
|
44
49
|
oRM.openStart("nav", oControl)
|
|
45
50
|
.class("sapTntSideNavigation")
|
|
@@ -61,6 +66,10 @@ sap.ui.define([
|
|
|
61
66
|
.class("sapTntSideNavigationNotExpandedWidth");
|
|
62
67
|
}
|
|
63
68
|
|
|
69
|
+
if (sDesign !== SideNavigationDesign.Decorated) {
|
|
70
|
+
oRM.class("sapTntSideNavigationDesignPlain");
|
|
71
|
+
}
|
|
72
|
+
|
|
64
73
|
const sWidth = oControl.getWidth();
|
|
65
74
|
if (sWidth && bExpanded) {
|
|
66
75
|
oRM.style("width", sWidth);
|
|
@@ -120,10 +120,9 @@ sap.ui.define([
|
|
|
120
120
|
</div>
|
|
121
121
|
*
|
|
122
122
|
* @extends sap.m.OverflowToolbar
|
|
123
|
-
* @implements sap.tnt.IToolHeader
|
|
124
123
|
*
|
|
125
124
|
* @author SAP SE
|
|
126
|
-
* @version 1.
|
|
125
|
+
* @version 1.135.0
|
|
127
126
|
*
|
|
128
127
|
* @constructor
|
|
129
128
|
* @public
|
|
@@ -132,7 +131,6 @@ sap.ui.define([
|
|
|
132
131
|
*/
|
|
133
132
|
var ToolHeader = OverflowToolbar.extend("sap.tnt.ToolHeader", /** @lends sap.tnt.ToolHeader.prototype */ {
|
|
134
133
|
metadata: {
|
|
135
|
-
interfaces: ["sap.tnt.IToolHeader"],
|
|
136
134
|
library: "sap.tnt",
|
|
137
135
|
properties: {
|
|
138
136
|
},
|
package/src/sap/tnt/ToolPage.js
CHANGED
|
@@ -41,7 +41,7 @@ sap.ui.define([
|
|
|
41
41
|
* @extends sap.ui.core.Control
|
|
42
42
|
*
|
|
43
43
|
* @author SAP SE
|
|
44
|
-
* @version 1.
|
|
44
|
+
* @version 1.135.0
|
|
45
45
|
*
|
|
46
46
|
* @constructor
|
|
47
47
|
* @public
|
|
@@ -73,13 +73,13 @@ sap.ui.define([
|
|
|
73
73
|
/**
|
|
74
74
|
* The control to appear in the header area.
|
|
75
75
|
*/
|
|
76
|
-
header: {type: "sap.
|
|
76
|
+
header: {type: "sap.ui.core.Control", multiple: false},
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* The control to appear in the subheader area.
|
|
80
80
|
* @since 1.93
|
|
81
81
|
*/
|
|
82
|
-
subHeader: {type: "sap.
|
|
82
|
+
subHeader: {type: "sap.ui.core.Control", multiple: false },
|
|
83
83
|
/**
|
|
84
84
|
* The side menu of the layout.
|
|
85
85
|
*/
|
package/src/sap/tnt/library.js
CHANGED
|
@@ -22,20 +22,21 @@ sap.ui.define([
|
|
|
22
22
|
* @namespace
|
|
23
23
|
* @alias sap.tnt
|
|
24
24
|
* @author SAP SE
|
|
25
|
-
* @version 1.
|
|
25
|
+
* @version 1.135.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.135.0",
|
|
33
33
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
34
34
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
35
35
|
types: [
|
|
36
36
|
"sap.tnt.IllustratedMessageType",
|
|
37
37
|
"sap.tnt.RenderMode",
|
|
38
|
-
"sap.tnt.NavigationListItemDesign"
|
|
38
|
+
"sap.tnt.NavigationListItemDesign",
|
|
39
|
+
"sap.tnt.SideNavigationDesign"
|
|
39
40
|
],
|
|
40
41
|
interfaces: [
|
|
41
42
|
"sap.tnt.IToolHeader"
|
|
@@ -105,9 +106,32 @@ sap.ui.define([
|
|
|
105
106
|
Action: "Action"
|
|
106
107
|
};
|
|
107
108
|
|
|
109
|
+
/**
|
|
110
|
+
* Available options for the Side Navigation design.
|
|
111
|
+
* @public
|
|
112
|
+
* @enum {string}
|
|
113
|
+
* @since 1.134.0
|
|
114
|
+
* @experimental Behavior might change.
|
|
115
|
+
*/
|
|
116
|
+
thisLib.SideNavigationDesign = {
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Side Navigation has a shadow and border.
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
Decorated: "Decorated",
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Side Navigation without any shadow or border.
|
|
126
|
+
* @public
|
|
127
|
+
*/
|
|
128
|
+
Plain: "Plain"
|
|
129
|
+
};
|
|
130
|
+
|
|
108
131
|
// Register all above defined enums.
|
|
109
132
|
DataType.registerEnum("sap.tnt.RenderMode", thisLib.RenderMode);
|
|
110
133
|
DataType.registerEnum("sap.tnt.NavigationListItemDesign", thisLib.NavigationListItemDesign);
|
|
134
|
+
DataType.registerEnum("sap.tnt.SideNavigationDesign", thisLib.SideNavigationDesign);
|
|
111
135
|
|
|
112
136
|
|
|
113
137
|
/**
|
|
@@ -115,6 +139,7 @@ sap.ui.define([
|
|
|
115
139
|
*
|
|
116
140
|
* @since 1.68
|
|
117
141
|
* @name sap.tnt.IToolHeader
|
|
142
|
+
* @deprecated Since version 1.135. This interface is not needed anymore. The <code>ToolPage</code> now accepts any control as a header or subheader.
|
|
118
143
|
* @public
|
|
119
144
|
* @interface
|
|
120
145
|
*/
|
|
@@ -4,16 +4,16 @@ INFOLABEL_DEFAULT=Infooznaka
|
|
|
4
4
|
|
|
5
5
|
INFOLABEL_EMPTY=Prazna infooznaka
|
|
6
6
|
|
|
7
|
-
SIDENAVIGATION_ROLE_DESCRIPTION=
|
|
7
|
+
SIDENAVIGATION_ROLE_DESCRIPTION=Stranski pomik
|
|
8
8
|
|
|
9
|
-
SIDENAVIGATION_ROLE_DESCRIPTION_SEPARATOR=Lo\u010Dilo
|
|
9
|
+
SIDENAVIGATION_ROLE_DESCRIPTION_SEPARATOR=Lo\u010Dilo stranskega pomika
|
|
10
10
|
|
|
11
|
-
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUITEM=Element menija seznama
|
|
11
|
+
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUITEM=Element menija seznama pomika
|
|
12
12
|
|
|
13
|
-
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Vrstica menija seznama
|
|
13
|
+
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Vrstica menija seznama pomika
|
|
14
14
|
|
|
15
|
-
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Drevo seznama
|
|
15
|
+
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Drevo seznama pomika
|
|
16
16
|
|
|
17
|
-
NAVIGATION_LIST_DIALOG_TITLE=
|
|
17
|
+
NAVIGATION_LIST_DIALOG_TITLE=Pomik
|
|
18
18
|
|
|
19
19
|
NAVIGATION_LIST_NAVIGATION_OVERFLOW=Ve\u010D elementov
|