@openui5/sap.tnt 1.114.2 → 1.114.4
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 +3 -3
- package/src/sap/tnt/.library +1 -1
- package/src/sap/tnt/InfoLabel.js +1 -1
- package/src/sap/tnt/NavigationList.js +4 -3
- package/src/sap/tnt/NavigationListItem.js +11 -5
- package/src/sap/tnt/SideNavigation.js +1 -2
- package/src/sap/tnt/ToolHeader.js +5 -3
- package/src/sap/tnt/ToolHeaderUtilitySeparator.js +1 -1
- package/src/sap/tnt/ToolPage.js +19 -3
- package/src/sap/tnt/ToolPageRenderer.js +10 -3
- package/src/sap/tnt/library.js +2 -2
- package/src/sap/tnt/themes/base/NavigationList.less +170 -24
- package/src/sap/tnt/themes/base/SideNavigation.less +30 -20
- package/src/sap/tnt/themes/base/ToolHeader.less +5 -0
- package/src/sap/tnt/themes/base/ToolPage.less +58 -65
- package/src/sap/tnt/themes/base/fonts/SAP-icons-TNT.json +255 -248
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.tnt",
|
|
3
|
-
"version": "1.114.
|
|
3
|
+
"version": "1.114.4",
|
|
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.114.
|
|
18
|
-
"@openui5/sap.ui.core": "1.114.
|
|
17
|
+
"@openui5/sap.m": "1.114.4",
|
|
18
|
+
"@openui5/sap.ui.core": "1.114.4"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/tnt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.114.
|
|
9
|
+
<version>1.114.4</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with responsive controls.</documentation>
|
|
12
12
|
|
package/src/sap/tnt/InfoLabel.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.114.
|
|
44
|
+
* @version 1.114.4
|
|
45
45
|
*
|
|
46
46
|
* @constructor
|
|
47
47
|
* @public
|
|
@@ -338,6 +338,7 @@ sap.ui.define([
|
|
|
338
338
|
NavigationList.prototype._openPopover = function (source, list) {
|
|
339
339
|
|
|
340
340
|
var that = this;
|
|
341
|
+
var $sourceItem = source.$().find(".sapTntNavLIItem").addClass("sapTntNavLIActive");
|
|
341
342
|
var selectedItem = list.getSelectedItem();
|
|
342
343
|
if (selectedItem && list.isGroupSelected) {
|
|
343
344
|
selectedItem = null;
|
|
@@ -352,14 +353,14 @@ sap.ui.define([
|
|
|
352
353
|
if (that._popover) {
|
|
353
354
|
that._popover.destroy();
|
|
354
355
|
that._popover = null;
|
|
356
|
+
$sourceItem.removeClass("sapTntNavLIActive");
|
|
355
357
|
}
|
|
356
358
|
},
|
|
357
359
|
content: list,
|
|
358
360
|
ariaLabelledBy: InvisibleText.getStaticId("sap.tnt", "NAVIGATION_LIST_DIALOG_TITLE")
|
|
359
|
-
}).addStyleClass('sapContrast sapContrastPlus');
|
|
361
|
+
}).addStyleClass('sapContrast sapContrastPlus sapTntNavLIPopover');
|
|
360
362
|
|
|
361
363
|
popover._adaptPositionParams = this._adaptPopoverPositionParams;
|
|
362
|
-
|
|
363
364
|
popover.openBy(source);
|
|
364
365
|
};
|
|
365
366
|
|
|
@@ -32,7 +32,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
32
32
|
* @extends sap.ui.core.Item
|
|
33
33
|
*
|
|
34
34
|
* @author SAP SE
|
|
35
|
-
* @version 1.114.
|
|
35
|
+
* @version 1.114.4
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -108,7 +108,7 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
108
108
|
|
|
109
109
|
NavigationListItem.expandIcon = 'sap-icon://navigation-right-arrow';
|
|
110
110
|
NavigationListItem.collapseIcon = 'sap-icon://navigation-down-arrow';
|
|
111
|
-
|
|
111
|
+
NavigationListItem.selectionIndicatorIcon = 'sap-icon://circle-task-2';
|
|
112
112
|
|
|
113
113
|
NavigationListItem._getInvisibleText = function() {
|
|
114
114
|
if (!this._invisibleText) {
|
|
@@ -523,7 +523,8 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
523
523
|
role: 'treeitem',
|
|
524
524
|
selected: false,
|
|
525
525
|
roledescription: this._resourceBundleTNTLib.getText("NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE_ITEM")
|
|
526
|
-
}
|
|
526
|
+
},
|
|
527
|
+
expanderVisible = this.getItems().length > 0 && this.getHasExpander();
|
|
527
528
|
|
|
528
529
|
rm.openStart("div");
|
|
529
530
|
|
|
@@ -544,6 +545,10 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
544
545
|
rm.class("sapTntNavLIItemSelected");
|
|
545
546
|
}
|
|
546
547
|
|
|
548
|
+
if (expanderVisible) {
|
|
549
|
+
rm.class("sapTntNavLIItemWithExpander");
|
|
550
|
+
}
|
|
551
|
+
|
|
547
552
|
// checking if there are items level 2 in the NavigationListItem
|
|
548
553
|
// if yes - there is need of aria-expanded property
|
|
549
554
|
if (isListExpanded) {
|
|
@@ -590,10 +595,11 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
590
595
|
|
|
591
596
|
if (control.getExpanded()) {
|
|
592
597
|
var expandIconControl = this._getExpandIconControl();
|
|
593
|
-
expandIconControl.setVisible(
|
|
598
|
+
expandIconControl.setVisible(expanderVisible);
|
|
594
599
|
expandIconControl.setSrc(this.getExpanded() ? NavigationListItem.collapseIcon : NavigationListItem.expandIcon);
|
|
595
600
|
expandIconControl.setTooltip(this._getExpandIconTooltip(!this.getExpanded()));
|
|
596
601
|
this._renderText(rm);
|
|
602
|
+
rm.icon(NavigationListItem.selectionIndicatorIcon, ["sapTntNavLISelectionIndicator"]);
|
|
597
603
|
rm.renderControl(expandIconControl);
|
|
598
604
|
}
|
|
599
605
|
|
|
@@ -738,8 +744,8 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
738
744
|
|
|
739
745
|
rm.openEnd();
|
|
740
746
|
|
|
741
|
-
|
|
742
747
|
this._renderText(rm);
|
|
748
|
+
rm.icon("sap-icon://circle-task-2", ["sapTntNavLISelectionIndicator"]);
|
|
743
749
|
|
|
744
750
|
rm.close('a');
|
|
745
751
|
|
|
@@ -42,13 +42,12 @@ sap.ui.define([
|
|
|
42
42
|
* @extends sap.ui.core.Control
|
|
43
43
|
*
|
|
44
44
|
* @author SAP SE
|
|
45
|
-
* @version 1.114.
|
|
45
|
+
* @version 1.114.4
|
|
46
46
|
*
|
|
47
47
|
* @constructor
|
|
48
48
|
* @public
|
|
49
49
|
* @since 1.34
|
|
50
50
|
* @alias sap.tnt.SideNavigation
|
|
51
|
-
* @see {@link fiori:https://experience.sap.com/fiori-design-web/side-navigation/ Side Navigation}
|
|
52
51
|
*/
|
|
53
52
|
var SideNavigation = Control.extend('sap.tnt.SideNavigation', /** @lends sap.t.SideNavigation.prototype */ {
|
|
54
53
|
metadata: {
|
|
@@ -34,14 +34,17 @@ sap.ui.define([
|
|
|
34
34
|
* @class
|
|
35
35
|
*
|
|
36
36
|
* The ToolHeader control is a horizontal container that is most
|
|
37
|
-
* commonly used to display buttons,
|
|
37
|
+
* commonly used to display buttons, texts, and other various input controls.
|
|
38
38
|
* <h3>Overview</h3>
|
|
39
39
|
* The ToolHeader control is based on {@link sap.m.OverflowToolbar}. It contains clearly structured menus of commands that are available across the various apps within the same tool layout.
|
|
40
40
|
* <h3>Usage</h3>
|
|
41
41
|
* <ul>
|
|
42
|
+
* <li>This control is specialized for administrative applications. For other types of applications use: {@link sap.m.Shell}</li>
|
|
42
43
|
* <li>If an app implements side navigation in addition to the tool header menu, the menu icon must be the first item on the left-hand side of the tool header.</li>
|
|
43
44
|
* <li>The app menu and the side navigation must not have any dependencies and must work independently.</li>
|
|
44
45
|
* </ul>
|
|
46
|
+
* <h4>Horizon theme specifics</h4>
|
|
47
|
+
* Only the following controls are supported: sap.m.Button, sap.m.Image, sap.m.Title, sap.m.Text, sap.m.SearchField, sap.m.Avatar.
|
|
45
48
|
* <h4>Fiori 3 theme specifics</h4>
|
|
46
49
|
* In Fiori 3 Default theme the ToolHeader is with dark design unlike most of the other controls. This defines the usage of limited controls inside it, which will result in good design combination.<br/>
|
|
47
50
|
* The ToolHeader stylizes the contained controls with the Shell color parameters, to match the dark design requirement. However, that's not a dark theme.<br/><br/>
|
|
@@ -120,13 +123,12 @@ sap.ui.define([
|
|
|
120
123
|
* @implements sap.tnt.IToolHeader
|
|
121
124
|
*
|
|
122
125
|
* @author SAP SE
|
|
123
|
-
* @version 1.114.
|
|
126
|
+
* @version 1.114.4
|
|
124
127
|
*
|
|
125
128
|
* @constructor
|
|
126
129
|
* @public
|
|
127
130
|
* @since 1.34
|
|
128
131
|
* @alias sap.tnt.ToolHeader
|
|
129
|
-
* @see {@link fiori:https://experience.sap.com/fiori-design-web/tool-header/ Tool Header}
|
|
130
132
|
*/
|
|
131
133
|
var ToolHeader = OverflowToolbar.extend("sap.tnt.ToolHeader", /** @lends sap.tnt.ToolHeader.prototype */ {
|
|
132
134
|
metadata: {
|
package/src/sap/tnt/ToolPage.js
CHANGED
|
@@ -7,12 +7,14 @@
|
|
|
7
7
|
// Provides control sap.t.ToolPage.
|
|
8
8
|
sap.ui.define([
|
|
9
9
|
"./library",
|
|
10
|
+
"sap/m/library",
|
|
10
11
|
"sap/ui/base/ManagedObjectObserver",
|
|
11
12
|
"sap/ui/core/Control",
|
|
12
13
|
"sap/ui/Device",
|
|
13
14
|
"sap/ui/core/ResizeHandler",
|
|
14
15
|
"./ToolPageRenderer"
|
|
15
16
|
], function (library,
|
|
17
|
+
mLibrary,
|
|
16
18
|
ManagedObjectObserver,
|
|
17
19
|
Control,
|
|
18
20
|
Device,
|
|
@@ -20,11 +22,14 @@ sap.ui.define([
|
|
|
20
22
|
ToolPageRenderer) {
|
|
21
23
|
"use strict";
|
|
22
24
|
|
|
25
|
+
// shortcut for sap.m.PageBackgroundDesign
|
|
26
|
+
var PageBackgroundDesign = mLibrary.PageBackgroundDesign;
|
|
27
|
+
|
|
23
28
|
/**
|
|
24
29
|
* Constructor for a new ToolPage.
|
|
25
30
|
*
|
|
26
31
|
* @param {string} [sId] ID for the new control, generated automatically if no id is given
|
|
27
|
-
|
|
32
|
+
* @param {object} [mSettings] Initial settings for the new control
|
|
28
33
|
*
|
|
29
34
|
* @class
|
|
30
35
|
* The ToolPage is a layout control, used to create a basic tools app that has a header, side navigation and contents area.
|
|
@@ -36,7 +41,7 @@ sap.ui.define([
|
|
|
36
41
|
* @extends sap.ui.core.Control
|
|
37
42
|
*
|
|
38
43
|
* @author SAP SE
|
|
39
|
-
* @version 1.114.
|
|
44
|
+
* @version 1.114.4
|
|
40
45
|
*
|
|
41
46
|
* @constructor
|
|
42
47
|
* @public
|
|
@@ -51,7 +56,18 @@ sap.ui.define([
|
|
|
51
56
|
* Indicates if the side menu is expanded.
|
|
52
57
|
* Overrides the <code>expanded</code> property of the <code>sideContent</code> aggregation.
|
|
53
58
|
*/
|
|
54
|
-
sideExpanded: {type: "boolean", group: "Misc", defaultValue: true}
|
|
59
|
+
sideExpanded: {type: "boolean", group: "Misc", defaultValue: true},
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Specifies the content background design.
|
|
63
|
+
* @public
|
|
64
|
+
* @since 1.115
|
|
65
|
+
*/
|
|
66
|
+
contentBackgroundDesign: {
|
|
67
|
+
type: "sap.m.PageBackgroundDesign",
|
|
68
|
+
group: "Appearance",
|
|
69
|
+
defaultValue: PageBackgroundDesign.Standard
|
|
70
|
+
}
|
|
55
71
|
},
|
|
56
72
|
aggregations: {
|
|
57
73
|
/**
|
|
@@ -41,9 +41,13 @@ sap.ui.define([
|
|
|
41
41
|
|
|
42
42
|
if (oHeader || oSubHeader) {
|
|
43
43
|
oRM.openStart("div")
|
|
44
|
-
.class("sapTntToolPageHeaderWrapper")
|
|
45
|
-
|
|
44
|
+
.class("sapTntToolPageHeaderWrapper");
|
|
45
|
+
|
|
46
|
+
if (oHeader && oSubHeader) {
|
|
47
|
+
oRM.class("sapTntToolPageHeaderWithSubHeaderWrapper");
|
|
48
|
+
}
|
|
46
49
|
|
|
50
|
+
oRM.openEnd();
|
|
47
51
|
oRM.openStart("header").openEnd();
|
|
48
52
|
}
|
|
49
53
|
|
|
@@ -123,7 +127,10 @@ sap.ui.define([
|
|
|
123
127
|
return;
|
|
124
128
|
}
|
|
125
129
|
|
|
126
|
-
oRM.openStart("div", oControl.getId() + "-main")
|
|
130
|
+
oRM.openStart("div", oControl.getId() + "-main")
|
|
131
|
+
.class("sapTntToolPageMain")
|
|
132
|
+
.class("sapTntToolPageMainBackground-" + oControl.getContentBackgroundDesign())
|
|
133
|
+
.openEnd();
|
|
127
134
|
|
|
128
135
|
oRM.openStart("div").class("sapTntToolPageMainContent").openEnd();
|
|
129
136
|
|
package/src/sap/tnt/library.js
CHANGED
|
@@ -17,13 +17,13 @@ sap.ui.define(["sap/ui/core/library", "sap/m/library"],
|
|
|
17
17
|
* @namespace
|
|
18
18
|
* @alias sap.tnt
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.114.
|
|
20
|
+
* @version 1.114.4
|
|
21
21
|
* @since 1.36
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
24
|
var thisLib = sap.ui.getCore().initLibrary({
|
|
25
25
|
name : "sap.tnt",
|
|
26
|
-
version: "1.114.
|
|
26
|
+
version: "1.114.4",
|
|
27
27
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
28
28
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
29
29
|
types: [
|
|
@@ -8,18 +8,57 @@
|
|
|
8
8
|
@_sap_tnt_NavigationList_IconFontSize: 1rem;
|
|
9
9
|
@_sap_tnt_NavigationList_ExpandIconColor: @sapUiContentIconColor;
|
|
10
10
|
@_sap_tnt_NavigationList_ItemHeight: 3rem;
|
|
11
|
+
@_sap_tnt_NavigationList_ItemBorder: none;
|
|
12
|
+
@_sap_tnt_NavigationList_LastItemBorder: none;
|
|
13
|
+
@_sap_tnt_NavigationList_HoverItemBorder: none;
|
|
14
|
+
@_sap_tnt_NavigationList_ItemBorderRadius: 0;
|
|
15
|
+
@_sap_tnt_NavigationList_ItemBottomMargin: 0;
|
|
16
|
+
@_sap_tnt_NavigationList_ItemBottomMarginCompact: 0;
|
|
17
|
+
@_sap_tnt_NavigationList_ItemTransition: none;
|
|
11
18
|
@_sap_tnt_NavigationList_NoIconsGroupPadding: 1rem;
|
|
12
19
|
@_sap_tnt_NavigationList_NoIconsNestedItemPadding: 1rem;
|
|
13
|
-
@
|
|
20
|
+
@_sap_tnt_NavigationList_ItemFocusBorderOffset: 1px;
|
|
14
21
|
@_sap_tnt_NavigationList_SelectedItemBorderColor: @sapUiListSelectionBorderColor;
|
|
22
|
+
@_sap_tnt_NavigationList_SelectedItemBorder: 1px solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
23
|
+
@_sap_tnt_NavigationList_Collapsed_SelectedItemBorder: 1px solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
15
24
|
@_sap_tnt_NavigationList_Collapsed_SelectedGroupBorderColor: @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
16
25
|
@_sap_tnt_NavigationList_Collapsed_GroupBorderColor: @sapUiListBorderColor;
|
|
26
|
+
@_sap_tnt_NavigationList_GroupIconWidth: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
27
|
+
@_sap_tnt_NavigationList_GroupBorder: 1px solid @sapUiListBorderColor;
|
|
17
28
|
@_sap_tnt_NavigationList_GroupBottomBorderColor: @sapUiListBorderColor;
|
|
29
|
+
@_sap_tnt_NavigationList_GroupTextWeight: unset;
|
|
30
|
+
@_sap_tnt_NavigationList_GroupBottomMarginInPopup: 0;
|
|
31
|
+
@_sap_tnt_NavigationList_Padding: 0;
|
|
32
|
+
@_sap_tnt_NavigationList_PaddingCompact: 0;
|
|
33
|
+
@_sap_tnt_NavigationList_ParentPopupPadding: 0;
|
|
34
|
+
@_sap_tnt_NavigationList_ParentPopupBorderRadius: @sapUiPopoverBorderCornerRadius;
|
|
35
|
+
@_sap_tnt_NavigationList_PopupItemPadding: 0 1rem;
|
|
36
|
+
@_sap_tnt_NavigationList_PopupIconWidth: 1rem;
|
|
37
|
+
@_sap_tnt_NavigationList_PopupBoxShadow: @sapUiContentShadow2;
|
|
38
|
+
@_sap_tnt_NavigationList_PopupArrowBoxShadow: @sapUiContentShadow2;
|
|
39
|
+
@_sap_tnt_NavigationList_PopupTitleTextSize: @sapMFontMediumSize;
|
|
40
|
+
@_sap_tnt_NavigationList_PopupTitleLineHeight: normal;
|
|
41
|
+
@_sap_tnt_NavigationList_SelectionIndicatorDisplay: none;
|
|
18
42
|
|
|
19
43
|
.sapTntNavLI {
|
|
20
44
|
margin: 0;
|
|
21
|
-
padding:
|
|
45
|
+
padding: @_sap_tnt_NavigationList_Padding;
|
|
22
46
|
list-style: none;
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
overflow: hidden auto;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.sapTntNavLI.sapTntNavLICollapsed {
|
|
52
|
+
overflow: visible hidden;
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
height: 100%;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.sapTnTNavLIOverflow {
|
|
59
|
+
flex: 1;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column-reverse;
|
|
23
62
|
}
|
|
24
63
|
|
|
25
64
|
.sapTntNavLI ul {
|
|
@@ -31,10 +70,11 @@
|
|
|
31
70
|
.sapTntNavLIItem {
|
|
32
71
|
width : 100%;
|
|
33
72
|
height: @_sap_tnt_NavigationList_ItemHeight;
|
|
34
|
-
|
|
35
73
|
box-sizing: border-box;
|
|
36
74
|
cursor: pointer;
|
|
37
75
|
background-color: @sapUiListBackground;
|
|
76
|
+
border-radius: @_sap_tnt_NavigationList_ItemBorderRadius;
|
|
77
|
+
transition: @_sap_tnt_NavigationList_ItemTransition;
|
|
38
78
|
|
|
39
79
|
span {
|
|
40
80
|
cursor: pointer;
|
|
@@ -73,17 +113,42 @@
|
|
|
73
113
|
}
|
|
74
114
|
}
|
|
75
115
|
|
|
116
|
+
.sapTntNavLIGroupItem {
|
|
117
|
+
border-bottom: @_sap_tnt_NavigationList_ItemBorder;
|
|
118
|
+
|
|
119
|
+
&:hover,
|
|
120
|
+
&:active,
|
|
121
|
+
.sapTntNavLIPopover &:last-child:hover,
|
|
122
|
+
.sapTntNavLIPopover &:last-child:active {
|
|
123
|
+
border-bottom: @_sap_tnt_NavigationList_HoverItemBorder;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.sapTntNavLIPopover .sapTntNavLIGroupItem:last-child {
|
|
128
|
+
border-bottom: @_sap_tnt_NavigationList_LastItemBorder;
|
|
129
|
+
}
|
|
130
|
+
|
|
76
131
|
.sapTntNavLIText {
|
|
77
132
|
flex: 1;
|
|
78
133
|
min-width: 0;
|
|
79
134
|
}
|
|
80
135
|
|
|
136
|
+
.sapTntNavLIPopover .sapTntNavLIPopup.sapTntNavLI {
|
|
137
|
+
padding: @_sap_tnt_NavigationList_ParentPopupPadding;
|
|
138
|
+
|
|
139
|
+
.sapTntNavLIItem.sapTntNavLIGroup {
|
|
140
|
+
margin-bottom: @_sap_tnt_NavigationList_GroupBottomMarginInPopup;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
81
144
|
.sapTntNavLIPopup .sapTntNavLIGroupItem .sapMText {
|
|
82
|
-
padding:
|
|
145
|
+
padding: @_sap_tnt_NavigationList_PopupItemPadding;
|
|
83
146
|
}
|
|
84
147
|
|
|
85
148
|
.sapTntNavLIPopup .sapTntNavLIGroup .sapMText {
|
|
86
149
|
margin: 0 1rem 0 0;
|
|
150
|
+
font-size: @_sap_tnt_NavigationList_PopupTitleTextSize;
|
|
151
|
+
line-height: @_sap_tnt_NavigationList_PopupTitleLineHeight;
|
|
87
152
|
}
|
|
88
153
|
|
|
89
154
|
.sapTntNavLI {
|
|
@@ -101,24 +166,28 @@
|
|
|
101
166
|
}
|
|
102
167
|
}
|
|
103
168
|
|
|
169
|
+
.sapTnTNavLIHiddenItem {
|
|
170
|
+
display: none;
|
|
171
|
+
}
|
|
172
|
+
|
|
104
173
|
.sapTntNavLIPopup {
|
|
105
174
|
span.sapTntNavLIGroupIcon {
|
|
106
|
-
width:
|
|
175
|
+
width: @_sap_tnt_NavigationList_PopupIconWidth;
|
|
176
|
+
min-width: @_sap_tnt_NavigationList_PopupIconWidth;
|
|
107
177
|
visibility: hidden;
|
|
108
|
-
min-width: 1rem;
|
|
109
178
|
}
|
|
110
179
|
|
|
111
180
|
img.sapTntNavLIGroupIcon {
|
|
112
|
-
width:
|
|
181
|
+
width: @_sap_tnt_NavigationList_PopupIconWidth;
|
|
182
|
+
min-width: @_sap_tnt_NavigationList_PopupIconWidth;
|
|
113
183
|
visibility: hidden;
|
|
114
|
-
min-width: 1rem;
|
|
115
184
|
padding: 0;
|
|
116
185
|
}
|
|
117
186
|
}
|
|
118
187
|
|
|
119
188
|
.sapTntNavLI .sapTntNavLIExpandIcon {
|
|
120
189
|
min-width: 2rem;
|
|
121
|
-
padding: 0.75rem 0;
|
|
190
|
+
// padding: 0.75rem 0;
|
|
122
191
|
font-size: 0.875rem;
|
|
123
192
|
|
|
124
193
|
pointer-events: all;
|
|
@@ -143,7 +212,11 @@
|
|
|
143
212
|
}
|
|
144
213
|
|
|
145
214
|
.sapTntNavLIGroup {
|
|
146
|
-
border-bottom:
|
|
215
|
+
border-bottom: @_sap_tnt_NavigationList_GroupBorder;
|
|
216
|
+
|
|
217
|
+
.sapTntNavLIText {
|
|
218
|
+
font-weight: @_sap_tnt_NavigationList_GroupTextWeight;
|
|
219
|
+
}
|
|
147
220
|
}
|
|
148
221
|
|
|
149
222
|
.sapTntNavLI:not(.sapTntNavLIPopup) .sapTntNavLIGroup[aria-expanded="true"] {
|
|
@@ -158,6 +231,7 @@
|
|
|
158
231
|
background-color: @sapUiListHoverBackground;
|
|
159
232
|
}
|
|
160
233
|
|
|
234
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled).sapTntNavLIActive,
|
|
161
235
|
.sapTntNavLI .sapTntNavLIGroup.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):active,
|
|
162
236
|
.sapTntNavLI .sapTntNavLIGroupItem.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):active{
|
|
163
237
|
background-color: @sapUiListActiveBackground;
|
|
@@ -171,12 +245,38 @@
|
|
|
171
245
|
}
|
|
172
246
|
}
|
|
173
247
|
|
|
248
|
+
.sapTntNavLISelectionIndicator {
|
|
249
|
+
display: @_sap_tnt_NavigationList_SelectionIndicatorDisplay;
|
|
250
|
+
opacity: 0;
|
|
251
|
+
font-size: 0.5rem;
|
|
252
|
+
color: @sapUiListSelectionBorderColor;
|
|
253
|
+
}
|
|
174
254
|
|
|
175
255
|
.sapTntNavLIItemSelected.sapTntNavLIItem,
|
|
176
256
|
.sapTntNavLIItemSelected .sapTntNavLIGroup,
|
|
177
257
|
.sapTntNavLIItemSelected.sapTntNavLIGroupItem,
|
|
178
258
|
.sapTntNavLIItemSelected.sapTntNavLIGroupItem.sapTntNavLIItem {
|
|
179
259
|
background-color: @sapUiListSelectionBackgroundColor;
|
|
260
|
+
|
|
261
|
+
.sapTntNavLISelectionIndicator {
|
|
262
|
+
opacity: 1;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.sapTntNavLIGroup.sapTntNavLIItemWithExpander {
|
|
267
|
+
.sapTntNavLISelectionIndicator {
|
|
268
|
+
margin: 0 0 0 0.5rem;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.sapTntNavLIGroup:not(.sapTntNavLIItemWithExpander) {
|
|
273
|
+
.sapTntNavLISelectionIndicator {
|
|
274
|
+
margin: 0 0.5rem;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.sapTntNavLIGroupItem .sapTntNavLISelectionIndicator {
|
|
279
|
+
margin: 0 0.5rem;
|
|
180
280
|
}
|
|
181
281
|
|
|
182
282
|
.sapTntNavLIItemSelected .sapTntNavLIItem:hover,
|
|
@@ -185,16 +285,36 @@
|
|
|
185
285
|
background-color: @sapUiListSelectionHoverBackground;
|
|
186
286
|
}
|
|
187
287
|
|
|
188
|
-
.sapTntNavLI:not(.sapTntNavLIPopup)
|
|
189
|
-
|
|
288
|
+
.sapTntNavLI:not(.sapTntNavLIPopup) {
|
|
289
|
+
.sapTntNavLIGroupItem.sapTntNavLIItem:last-child {
|
|
290
|
+
border-bottom: @_sap_tnt_NavigationList_GroupBorder;
|
|
291
|
+
|
|
292
|
+
&.sapTntNavLIItemSelected {
|
|
293
|
+
border-color: @sapUiListSelectionBorderColor;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
190
296
|
|
|
191
|
-
|
|
192
|
-
|
|
297
|
+
li:not(:last-of-type) .sapTntNavLIItem {
|
|
298
|
+
margin-bottom: @_sap_tnt_NavigationList_ItemBottomMargin;
|
|
193
299
|
}
|
|
194
300
|
}
|
|
195
301
|
|
|
196
|
-
.sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
197
|
-
border-bottom:
|
|
302
|
+
.sapTntNavLI:not(.sapTntNavLICollapsed) .sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
303
|
+
border-bottom: @_sap_tnt_NavigationList_SelectedItemBorder;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.sapTntNavLICollapsed .sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
307
|
+
border-bottom: none;
|
|
308
|
+
|
|
309
|
+
// create the selection indicator with pseudo element, in order to avoid it having border-radius
|
|
310
|
+
&::after {
|
|
311
|
+
content: "";
|
|
312
|
+
position: absolute;
|
|
313
|
+
bottom: 0;
|
|
314
|
+
left: 0;
|
|
315
|
+
right: 0;
|
|
316
|
+
border-bottom: @_sap_tnt_NavigationList_Collapsed_SelectedItemBorder;
|
|
317
|
+
}
|
|
198
318
|
}
|
|
199
319
|
|
|
200
320
|
.sapTntNavLICollapsed,
|
|
@@ -211,26 +331,27 @@
|
|
|
211
331
|
|
|
212
332
|
.sapTntNavLI li:focus .sapTntNavLIItem::before,
|
|
213
333
|
.sapTntNavLIItem:focus::before {
|
|
214
|
-
border: @
|
|
334
|
+
border: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
|
|
215
335
|
position: absolute;
|
|
216
336
|
content: " ";
|
|
217
|
-
top:
|
|
218
|
-
right:
|
|
219
|
-
bottom:
|
|
220
|
-
left:
|
|
337
|
+
top: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
338
|
+
right: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
339
|
+
bottom: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
340
|
+
left: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
221
341
|
z-index: 2;
|
|
222
342
|
pointer-events: none;
|
|
343
|
+
border-radius: @_sap_tnt_NavigationList_ItemBorderRadius;
|
|
223
344
|
}
|
|
224
345
|
|
|
225
346
|
// NavigationList with icons
|
|
226
347
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
227
348
|
|
|
228
349
|
span.sapTntNavLIGroupIcon {
|
|
229
|
-
width: @
|
|
350
|
+
width: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
230
351
|
}
|
|
231
352
|
|
|
232
353
|
.sapTntNavLIGroupItem .sapMText {
|
|
233
|
-
padding-left: @
|
|
354
|
+
padding-left: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
234
355
|
}
|
|
235
356
|
}
|
|
236
357
|
|
|
@@ -247,9 +368,28 @@
|
|
|
247
368
|
}
|
|
248
369
|
}
|
|
249
370
|
|
|
371
|
+
.sapTntNavLIPopover {
|
|
372
|
+
&.sapMPopover {
|
|
373
|
+
box-shadow: @_sap_tnt_NavigationList_PopupBoxShadow;
|
|
374
|
+
border-radius: @_sap_tnt_NavigationList_ParentPopupBorderRadius;
|
|
375
|
+
|
|
376
|
+
.sapMPopoverCont {
|
|
377
|
+
border-radius: @_sap_tnt_NavigationList_ParentPopupBorderRadius;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.sapMPopoverArr:after {
|
|
382
|
+
box-shadow: @_sap_tnt_NavigationList_PopupArrowBoxShadow;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
|
|
250
386
|
/* Compact size */
|
|
251
387
|
.sapUiSizeCompact {
|
|
252
388
|
|
|
389
|
+
.sapTntNavLI {
|
|
390
|
+
padding: @_sap_tnt_NavigationList_PaddingCompact;
|
|
391
|
+
}
|
|
392
|
+
|
|
253
393
|
.sapTntNavLIItem {
|
|
254
394
|
height: 2rem;
|
|
255
395
|
}
|
|
@@ -279,7 +419,13 @@
|
|
|
279
419
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
280
420
|
|
|
281
421
|
span.sapTntNavLIGroupIcon {
|
|
282
|
-
width: @
|
|
422
|
+
width: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.sapTntNavLI:not(.sapTntNavLIPopup) {
|
|
427
|
+
li:not(:last-of-type) .sapTntNavLIItem {
|
|
428
|
+
margin-bottom: @_sap_tnt_NavigationList_ItemBottomMarginCompact;
|
|
283
429
|
}
|
|
284
430
|
}
|
|
285
431
|
}
|