@openui5/sap.tnt 1.114.2 → 1.114.3
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 +1 -1
- 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 +104 -19
- package/src/sap/tnt/themes/base/SideNavigation.less +28 -20
- package/src/sap/tnt/themes/base/ToolHeader.less +5 -0
- package/src/sap/tnt/themes/base/ToolPage.less +58 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.tnt",
|
|
3
|
-
"version": "1.114.
|
|
3
|
+
"version": "1.114.3",
|
|
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.3",
|
|
18
|
+
"@openui5/sap.ui.core": "1.114.3"
|
|
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.3</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with responsive controls.</documentation>
|
|
12
12
|
|
package/src/sap/tnt/InfoLabel.js
CHANGED
|
@@ -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.3
|
|
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.3
|
|
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.3
|
|
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.3
|
|
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.3
|
|
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.3",
|
|
27
27
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
28
28
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
29
29
|
types: [
|
|
@@ -8,18 +8,32 @@
|
|
|
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_ItemBorderRadius: 0;
|
|
12
|
+
@_sap_tnt_NavigationList_ItemBottomMargin: 0;
|
|
13
|
+
@_sap_tnt_NavigationList_ItemBottomMarginCompact: 0;
|
|
11
14
|
@_sap_tnt_NavigationList_NoIconsGroupPadding: 1rem;
|
|
12
15
|
@_sap_tnt_NavigationList_NoIconsNestedItemPadding: 1rem;
|
|
13
|
-
@
|
|
16
|
+
@_sap_tnt_NavigationList_ItemFocusBorderOffset: 1px;
|
|
14
17
|
@_sap_tnt_NavigationList_SelectedItemBorderColor: @sapUiListSelectionBorderColor;
|
|
18
|
+
@_sap_tnt_NavigationList_SelectedItemBorder: 1px solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
19
|
+
@_sap_tnt_NavigationList_Collapsed_SelectedItemBorder: 1px solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
15
20
|
@_sap_tnt_NavigationList_Collapsed_SelectedGroupBorderColor: @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
16
21
|
@_sap_tnt_NavigationList_Collapsed_GroupBorderColor: @sapUiListBorderColor;
|
|
22
|
+
@_sap_tnt_NavigationList_GroupIconWidth: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
23
|
+
@_sap_tnt_NavigationList_GroupBorder: 1px solid @sapUiListBorderColor;
|
|
17
24
|
@_sap_tnt_NavigationList_GroupBottomBorderColor: @sapUiListBorderColor;
|
|
25
|
+
@_sap_tnt_NavigationList_GroupTextWeight: unset;
|
|
26
|
+
@_sap_tnt_NavigationList_GroupBottomMarginInPopup: 0;
|
|
27
|
+
@_sap_tnt_NavigationList_Padding: 0;
|
|
28
|
+
@_sap_tnt_NavigationList_PaddingCompact: 0;
|
|
29
|
+
@_sap_tnt_NavigationList_PopupPadding: 0;
|
|
30
|
+
@_sap_tnt_NavigationList_SelectionIndicatorDisplay: none;
|
|
18
31
|
|
|
19
32
|
.sapTntNavLI {
|
|
20
33
|
margin: 0;
|
|
21
|
-
padding:
|
|
34
|
+
padding: @_sap_tnt_NavigationList_Padding;
|
|
22
35
|
list-style: none;
|
|
36
|
+
box-sizing: border-box;
|
|
23
37
|
}
|
|
24
38
|
|
|
25
39
|
.sapTntNavLI ul {
|
|
@@ -31,10 +45,10 @@
|
|
|
31
45
|
.sapTntNavLIItem {
|
|
32
46
|
width : 100%;
|
|
33
47
|
height: @_sap_tnt_NavigationList_ItemHeight;
|
|
34
|
-
|
|
35
48
|
box-sizing: border-box;
|
|
36
49
|
cursor: pointer;
|
|
37
50
|
background-color: @sapUiListBackground;
|
|
51
|
+
border-radius: @_sap_tnt_NavigationList_ItemBorderRadius;
|
|
38
52
|
|
|
39
53
|
span {
|
|
40
54
|
cursor: pointer;
|
|
@@ -78,6 +92,14 @@
|
|
|
78
92
|
min-width: 0;
|
|
79
93
|
}
|
|
80
94
|
|
|
95
|
+
.sapTntNavLIPopup {
|
|
96
|
+
padding: @_sap_tnt_NavigationList_PopupPadding;
|
|
97
|
+
|
|
98
|
+
.sapTntNavLIItem.sapTntNavLIGroup {
|
|
99
|
+
margin-bottom: @_sap_tnt_NavigationList_GroupBottomMarginInPopup;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
81
103
|
.sapTntNavLIPopup .sapTntNavLIGroupItem .sapMText {
|
|
82
104
|
padding: 0 1rem;
|
|
83
105
|
}
|
|
@@ -118,7 +140,7 @@
|
|
|
118
140
|
|
|
119
141
|
.sapTntNavLI .sapTntNavLIExpandIcon {
|
|
120
142
|
min-width: 2rem;
|
|
121
|
-
padding: 0.75rem 0;
|
|
143
|
+
// padding: 0.75rem 0;
|
|
122
144
|
font-size: 0.875rem;
|
|
123
145
|
|
|
124
146
|
pointer-events: all;
|
|
@@ -143,7 +165,11 @@
|
|
|
143
165
|
}
|
|
144
166
|
|
|
145
167
|
.sapTntNavLIGroup {
|
|
146
|
-
border-bottom:
|
|
168
|
+
border-bottom: @_sap_tnt_NavigationList_GroupBorder;
|
|
169
|
+
|
|
170
|
+
.sapTntNavLIText {
|
|
171
|
+
font-weight: @_sap_tnt_NavigationList_GroupTextWeight;
|
|
172
|
+
}
|
|
147
173
|
}
|
|
148
174
|
|
|
149
175
|
.sapTntNavLI:not(.sapTntNavLIPopup) .sapTntNavLIGroup[aria-expanded="true"] {
|
|
@@ -172,11 +198,38 @@
|
|
|
172
198
|
}
|
|
173
199
|
|
|
174
200
|
|
|
201
|
+
.sapTntNavLISelectionIndicator {
|
|
202
|
+
display: @_sap_tnt_NavigationList_SelectionIndicatorDisplay;
|
|
203
|
+
opacity: 0;
|
|
204
|
+
font-size: 0.5rem;
|
|
205
|
+
color: @sapUiListSelectionBorderColor;
|
|
206
|
+
}
|
|
207
|
+
|
|
175
208
|
.sapTntNavLIItemSelected.sapTntNavLIItem,
|
|
176
209
|
.sapTntNavLIItemSelected .sapTntNavLIGroup,
|
|
177
210
|
.sapTntNavLIItemSelected.sapTntNavLIGroupItem,
|
|
178
211
|
.sapTntNavLIItemSelected.sapTntNavLIGroupItem.sapTntNavLIItem {
|
|
179
212
|
background-color: @sapUiListSelectionBackgroundColor;
|
|
213
|
+
|
|
214
|
+
.sapTntNavLISelectionIndicator {
|
|
215
|
+
opacity: 1;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.sapTntNavLIGroup.sapTntNavLIItemWithExpander {
|
|
220
|
+
.sapTntNavLISelectionIndicator {
|
|
221
|
+
margin: 0 0 0 0.5rem;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.sapTntNavLIGroup:not(.sapTntNavLIItemWithExpander) {
|
|
226
|
+
.sapTntNavLISelectionIndicator {
|
|
227
|
+
margin: 0 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.sapTntNavLIGroupItem .sapTntNavLISelectionIndicator {
|
|
232
|
+
margin: 0 0.5rem;
|
|
180
233
|
}
|
|
181
234
|
|
|
182
235
|
.sapTntNavLIItemSelected .sapTntNavLIItem:hover,
|
|
@@ -185,16 +238,37 @@
|
|
|
185
238
|
background-color: @sapUiListSelectionHoverBackground;
|
|
186
239
|
}
|
|
187
240
|
|
|
188
|
-
.sapTntNavLI:not(.sapTntNavLIPopup)
|
|
189
|
-
|
|
241
|
+
.sapTntNavLI:not(.sapTntNavLIPopup) {
|
|
242
|
+
.sapTntNavLIGroupItem.sapTntNavLIItem:last-child {
|
|
243
|
+
border-bottom: @_sap_tnt_NavigationList_GroupBorder;
|
|
244
|
+
|
|
245
|
+
&.sapTntNavLIItemSelected {
|
|
246
|
+
border-color: @sapUiListSelectionBorderColor;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
190
249
|
|
|
191
|
-
|
|
192
|
-
|
|
250
|
+
li:not(:last-of-type) .sapTntNavLIItem {
|
|
251
|
+
margin-bottom: @_sap_tnt_NavigationList_ItemBottomMargin;
|
|
193
252
|
}
|
|
194
253
|
}
|
|
195
254
|
|
|
196
|
-
.sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
197
|
-
border-bottom:
|
|
255
|
+
.sapTntNavLI:not(.sapTntNavLICollapsed) .sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
256
|
+
border-bottom: @_sap_tnt_NavigationList_SelectedItemBorder;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.sapTntNavLICollapsed .sapTntNavLIItemSelected:not(.sapTntNavLIItemDisabled) {
|
|
260
|
+
overflow: hidden;
|
|
261
|
+
border-bottom: none;
|
|
262
|
+
|
|
263
|
+
// create the selection indicator with pseudo element, in order to avoid it having border-radius
|
|
264
|
+
&::after {
|
|
265
|
+
content: "";
|
|
266
|
+
position: absolute;
|
|
267
|
+
bottom: 0;
|
|
268
|
+
left: 0;
|
|
269
|
+
right: 0;
|
|
270
|
+
border-bottom: @_sap_tnt_NavigationList_Collapsed_SelectedItemBorder;
|
|
271
|
+
}
|
|
198
272
|
}
|
|
199
273
|
|
|
200
274
|
.sapTntNavLICollapsed,
|
|
@@ -211,26 +285,27 @@
|
|
|
211
285
|
|
|
212
286
|
.sapTntNavLI li:focus .sapTntNavLIItem::before,
|
|
213
287
|
.sapTntNavLIItem:focus::before {
|
|
214
|
-
border: @
|
|
288
|
+
border: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
|
|
215
289
|
position: absolute;
|
|
216
290
|
content: " ";
|
|
217
|
-
top:
|
|
218
|
-
right:
|
|
219
|
-
bottom:
|
|
220
|
-
left:
|
|
291
|
+
top: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
292
|
+
right: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
293
|
+
bottom: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
294
|
+
left: @_sap_tnt_NavigationList_ItemFocusBorderOffset;
|
|
221
295
|
z-index: 2;
|
|
222
296
|
pointer-events: none;
|
|
297
|
+
border-radius: @_sap_tnt_NavigationList_ItemBorderRadius;
|
|
223
298
|
}
|
|
224
299
|
|
|
225
300
|
// NavigationList with icons
|
|
226
301
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
227
302
|
|
|
228
303
|
span.sapTntNavLIGroupIcon {
|
|
229
|
-
width: @
|
|
304
|
+
width: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
230
305
|
}
|
|
231
306
|
|
|
232
307
|
.sapTntNavLIGroupItem .sapMText {
|
|
233
|
-
padding-left: @
|
|
308
|
+
padding-left: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
234
309
|
}
|
|
235
310
|
}
|
|
236
311
|
|
|
@@ -250,6 +325,10 @@
|
|
|
250
325
|
/* Compact size */
|
|
251
326
|
.sapUiSizeCompact {
|
|
252
327
|
|
|
328
|
+
.sapTntNavLI {
|
|
329
|
+
padding: @_sap_tnt_NavigationList_PaddingCompact;
|
|
330
|
+
}
|
|
331
|
+
|
|
253
332
|
.sapTntNavLIItem {
|
|
254
333
|
height: 2rem;
|
|
255
334
|
}
|
|
@@ -279,7 +358,13 @@
|
|
|
279
358
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
280
359
|
|
|
281
360
|
span.sapTntNavLIGroupIcon {
|
|
282
|
-
width: @
|
|
361
|
+
width: @_sap_tnt_NavigationList_GroupIconWidth;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.sapTntNavLI:not(.sapTntNavLIPopup) {
|
|
366
|
+
li:not(:last-of-type) .sapTntNavLIItem {
|
|
367
|
+
margin-bottom: @_sap_tnt_NavigationList_ItemBottomMarginCompact;
|
|
283
368
|
}
|
|
284
369
|
}
|
|
285
370
|
}
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
@_sap_tnt_SideNavigation_Width: 15rem;
|
|
7
7
|
@_sap_tnt_SideNavigation_CollapsedWidth: 3rem;
|
|
8
|
+
@_sap_tnt_SideNavigation_NavigationSeparatorMargin: 0.25rem 0.875rem 0.25rem 0.875rem;
|
|
9
|
+
@_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed: 0.25rem 0.5rem 0.25rem 0.5rem;
|
|
8
10
|
@_sap_tnt_SideNavigation_NavigationSeparatorBackgroundColor: @sapUiGroupContentBorderColor;
|
|
11
|
+
@_sap_tnt_SideNavigation_NavigationSeparatorRadius: unset;
|
|
9
12
|
@_sap_tnt_SideNavigation_NavigationSeparatorHeight: 1px;
|
|
10
13
|
@_sap_tnt_SideNavigation_TriangleColor: @sapUiContentIconColor;
|
|
14
|
+
@_sap_tnt_SideNavigation_BorderRadius: 0;
|
|
15
|
+
@_sap_tnt_SideNavigation_PhoneBorderRadius: 0;
|
|
16
|
+
@_sap_tnt_SideNavigation_BoxShadow: none;
|
|
11
17
|
|
|
12
18
|
.sapTntSideNavigation {
|
|
13
19
|
display: flex;
|
|
@@ -17,10 +23,16 @@
|
|
|
17
23
|
overflow: hidden;
|
|
18
24
|
background: @sapUiListBackground;
|
|
19
25
|
border-right: 1px solid @sapUiGroupContentBorderColor;
|
|
26
|
+
box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
|
|
27
|
+
border-radius: @_sap_tnt_SideNavigation_BorderRadius;
|
|
28
|
+
width: @_sap_tnt_SideNavigation_Width;
|
|
20
29
|
}
|
|
21
30
|
|
|
22
|
-
.
|
|
23
|
-
|
|
31
|
+
html.sap-phone,
|
|
32
|
+
html.sap-tablet:not(html.sap-combi) {
|
|
33
|
+
.sapTntSideNavigation {
|
|
34
|
+
border-radius: @_sap_tnt_SideNavigation_PhoneBorderRadius;
|
|
35
|
+
}
|
|
24
36
|
}
|
|
25
37
|
|
|
26
38
|
.sapTntSideNavigation.sapTntSideNavigationNotExpandedWidth {
|
|
@@ -33,12 +45,7 @@
|
|
|
33
45
|
display: none;
|
|
34
46
|
}
|
|
35
47
|
.sapTntSideNavigationSeparator {
|
|
36
|
-
margin:
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sapTntSideNavigationFlexible {
|
|
40
|
-
padding-right: @_sap_tnt_SideNavigation_CollapsedWidth;
|
|
41
|
-
width: 6rem;
|
|
48
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
.sapTnTNavLINotExpandedTriangle:not(.sapTntNavLIItemDisabled):after {
|
|
@@ -66,10 +73,11 @@
|
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
.sapTntSideNavigationSeparator {
|
|
69
|
-
margin:
|
|
76
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMargin;
|
|
70
77
|
height: @_sap_tnt_SideNavigation_NavigationSeparatorHeight;
|
|
71
78
|
min-height: @_sap_tnt_SideNavigation_NavigationSeparatorHeight;
|
|
72
79
|
background-color: @_sap_tnt_SideNavigation_NavigationSeparatorBackgroundColor;
|
|
80
|
+
border-radius: @_sap_tnt_SideNavigation_NavigationSeparatorRadius;
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
.sapTntSideNavigationFixed {
|
|
@@ -125,18 +133,18 @@
|
|
|
125
133
|
|
|
126
134
|
.sapUiSizeCompact {
|
|
127
135
|
|
|
128
|
-
|
|
136
|
+
.sapTntSideNavigationNotExpanded {
|
|
129
137
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
.sapTntSideNavigationSeparator {
|
|
139
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
134
142
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
143
|
+
.sapTntSideNavigationSeparator {
|
|
144
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
145
|
+
}
|
|
138
146
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
147
|
+
.sapTntSideNavigationScrollIcon {
|
|
148
|
+
padding: 0.5rem 0;
|
|
149
|
+
}
|
|
142
150
|
}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
/* CSS for control sap.tnt/ToolHeader */
|
|
3
3
|
/* Base theme */
|
|
4
4
|
/* =================================== */
|
|
5
|
+
|
|
5
6
|
@_sap_tnt_ToolHeader_Height: 3rem;
|
|
7
|
+
@_sap_tnt_ToolHeader_BorderRadius: 0;
|
|
8
|
+
@_sap_tnt_ToolHeader_BoxShadow: none;
|
|
6
9
|
@_sap_tnt_ToolHeader_AvatarBackground: lighten(saturate(spin(@sapUiAccent6, 348), 36), 28);
|
|
7
10
|
@_sap_tnt_ToolHeader_AvatarColor: @sapUiBaseText;
|
|
8
11
|
@_sap_tnt_ToolHeader_BorderColor: contrast(@sapShellColor, @sapUiContentFocusColor, @sapUiContentContrastFocusColor, @sapContent_ContrastTextThreshold);
|
|
@@ -19,6 +22,8 @@
|
|
|
19
22
|
|
|
20
23
|
.sapTntToolHeader.sapMTB {
|
|
21
24
|
height: @_sap_tnt_ToolHeader_Height;
|
|
25
|
+
border-radius: @_sap_tnt_ToolHeader_BorderRadius;
|
|
26
|
+
box-shadow: @_sap_tnt_ToolHeader_BoxShadow;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
// ==========================================================================
|
|
@@ -6,12 +6,24 @@
|
|
|
6
6
|
/* ==========================================================================
|
|
7
7
|
Variables
|
|
8
8
|
========================================================================== */
|
|
9
|
-
|
|
10
|
-
@_sap_tnt_ToolPage_AsideWidth : 15rem;
|
|
11
|
-
@_sap_tnt_ToolPage_AsideWidthOnTablet : 3rem;
|
|
12
|
-
@_sap_tnt_ToolPage_HeaderHeight : 3rem;
|
|
13
9
|
@_sap_tnt_ToolPage_AnimationDuration : 0.3s;
|
|
14
|
-
@
|
|
10
|
+
@_sap_tnt_ToolPage_Paddings: 0;
|
|
11
|
+
@_sap_tnt_ToolPage_PaddingsTablet: 0;
|
|
12
|
+
@_sap_tnt_ToolPage_PaddingsPhone: 0;
|
|
13
|
+
@_sap_tnt_ToolPage_Background: darken(@sapUiBaseBG, 4);
|
|
14
|
+
@_sap_tnt_ToolPage_AsideMargins: 0;
|
|
15
|
+
@_sap_tnt_ToolPage_AsideMarginsPhone: 0;
|
|
16
|
+
@_sap_tnt_ToolPage_ContentMargins: 0;
|
|
17
|
+
@_sap_tnt_ToolPage_ContentMarginsPhone: 0;
|
|
18
|
+
@_sap_tnt_ToolPage_ContentShadow: none;
|
|
19
|
+
@_sap_tnt_ToolPage_ContentBackgroundStandard: none;
|
|
20
|
+
@_sap_tnt_ToolPage_ContentBackgroundSolid: none;
|
|
21
|
+
@_sap_tnt_ToolPage_ContentBackgroundTransparent: none;
|
|
22
|
+
@_sap_tnt_ToolPage_ContentBackgroundList: none;
|
|
23
|
+
@_sap_tnt_ToolPage_ContentBorderRadius: 0;
|
|
24
|
+
@_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone: 0;
|
|
25
|
+
@_sap_tnt_ToolPage_AsideCollapsedPhoneTransform: -100%;
|
|
26
|
+
@_sap_tnt_ToolPage_AsideCollapsedPhoneTransformRtl: 100%;
|
|
15
27
|
|
|
16
28
|
/* ==========================================================================
|
|
17
29
|
Root element
|
|
@@ -28,37 +40,24 @@
|
|
|
28
40
|
|
|
29
41
|
box-sizing: border-box;
|
|
30
42
|
overflow: hidden;
|
|
43
|
+
padding: @_sap_tnt_ToolPage_Paddings;
|
|
44
|
+
background: @_sap_tnt_ToolPage_Background;
|
|
31
45
|
}
|
|
32
46
|
|
|
33
47
|
/* ==========================================================================
|
|
34
48
|
Header
|
|
35
49
|
========================================================================== */
|
|
36
|
-
.sapTntToolPageHeader {
|
|
37
|
-
height: @_sap_tnt_ToolPage_HeaderHeight;
|
|
38
|
-
}
|
|
39
50
|
|
|
40
51
|
.sapTntToolPageHeaderWrapper {
|
|
41
|
-
box-shadow: @_sap_tnt_ToolPage_HeaderShadow;
|
|
42
52
|
z-index: 2; // bring header above content wrapper to draw drop shadow over the content
|
|
43
53
|
}
|
|
44
54
|
|
|
45
|
-
/* ==========================================================================
|
|
46
|
-
Subheader
|
|
47
|
-
========================================================================== */
|
|
48
|
-
.sapTntToolPage .sapTntToolPageHeader + .sapTntToolPageHeader {
|
|
49
|
-
height: auto;
|
|
50
|
-
|
|
51
|
-
.sapTntToolHeader {
|
|
52
|
-
height: auto;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
55
|
/* ==========================================================================
|
|
57
56
|
Content wrapper
|
|
58
57
|
========================================================================== */
|
|
59
58
|
.sapTntToolPageContentWrapper {
|
|
60
59
|
display: flex;
|
|
61
|
-
flex
|
|
60
|
+
flex: 1;
|
|
62
61
|
min-height: 0; // fixes flex chrome issue
|
|
63
62
|
position: relative;
|
|
64
63
|
}
|
|
@@ -71,6 +70,8 @@
|
|
|
71
70
|
flex-direction: column;
|
|
72
71
|
|
|
73
72
|
will-change: transform;
|
|
73
|
+
margin: @_sap_tnt_ToolPage_AsideMargins;
|
|
74
|
+
z-index: 2;
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
.sapTntToolPageAsideContent {
|
|
@@ -80,65 +81,45 @@
|
|
|
80
81
|
height: 100%;
|
|
81
82
|
}
|
|
82
83
|
|
|
83
|
-
html:not([data-sap-ui-animation='off']) .sapTntToolPageMain {
|
|
84
|
-
transition: padding-left @_sap_tnt_ToolPage_AnimationDuration, transform @_sap_tnt_ToolPage_AnimationDuration;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
84
|
html:not([data-sap-ui-animation='off']) .sapTntToolPageAside {
|
|
88
85
|
transition: transform @_sap_tnt_ToolPage_AnimationDuration;
|
|
89
86
|
}
|
|
90
87
|
|
|
91
|
-
.sap-
|
|
92
|
-
.
|
|
93
|
-
|
|
94
|
-
width: @_sap_tnt_ToolPage_AsideWidth;
|
|
95
|
-
position: absolute;
|
|
96
|
-
left: 0;
|
|
97
|
-
bottom: 0;
|
|
98
|
-
top: 0;
|
|
99
|
-
z-index: 1;
|
|
88
|
+
html.sap-tablet:not(html.sap-combi) {
|
|
89
|
+
.sapTntToolPage {
|
|
90
|
+
padding: @_sap_tnt_ToolPage_PaddingsTablet;
|
|
100
91
|
}
|
|
101
92
|
|
|
102
|
-
.
|
|
103
|
-
|
|
93
|
+
.sapTntToolPageMain {
|
|
94
|
+
border-radius: @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone;
|
|
104
95
|
}
|
|
105
96
|
}
|
|
106
97
|
|
|
107
|
-
.sap-
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
& > .sapTntToolPageAside {
|
|
111
|
-
width: @_sap_tnt_ToolPage_AsideWidthOnTablet;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
& > .sapTntToolPageAside + .sapTntToolPageMain {
|
|
115
|
-
padding-left: @_sap_tnt_ToolPage_AsideWidthOnTablet;
|
|
116
|
-
}
|
|
98
|
+
html.sap-phone {
|
|
99
|
+
.sapTntToolPage {
|
|
100
|
+
padding: @_sap_tnt_ToolPage_PaddingsPhone;
|
|
117
101
|
}
|
|
118
|
-
}
|
|
119
102
|
|
|
120
|
-
.sap-phone {
|
|
121
103
|
.sapTntToolPageAside {
|
|
122
|
-
width: @_sap_tnt_ToolPage_AsideWidth;
|
|
123
104
|
position: absolute;
|
|
124
105
|
left: 0;
|
|
125
106
|
bottom: 0;
|
|
126
107
|
top: 0;
|
|
127
|
-
z-index:
|
|
128
|
-
}
|
|
108
|
+
z-index: 4;
|
|
129
109
|
|
|
130
|
-
|
|
131
|
-
transform: translateX(@_sap_tnt_ToolPage_AsideWidth);
|
|
110
|
+
margin: @_sap_tnt_ToolPage_AsideMarginsPhone;
|
|
132
111
|
}
|
|
133
112
|
|
|
134
113
|
.sapTntToolPageAsideCollapsed {
|
|
135
114
|
.sapTntToolPageAside {
|
|
136
|
-
transform: translateX(
|
|
137
|
-
}
|
|
138
|
-
.sapTntToolPageMain {
|
|
139
|
-
transform: translateX(0);
|
|
115
|
+
transform: translateX(@_sap_tnt_ToolPage_AsideCollapsedPhoneTransform);
|
|
140
116
|
}
|
|
141
117
|
}
|
|
118
|
+
|
|
119
|
+
.sapTntToolPageMain {
|
|
120
|
+
border-radius: @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone;
|
|
121
|
+
margin: @_sap_tnt_ToolPage_ContentMarginsPhone;
|
|
122
|
+
}
|
|
142
123
|
}
|
|
143
124
|
|
|
144
125
|
/* Main container
|
|
@@ -149,8 +130,27 @@ html:not([data-sap-ui-animation='off']) .sapTntToolPageAside {
|
|
|
149
130
|
flex-direction: column;
|
|
150
131
|
flex: 1;
|
|
151
132
|
min-width: 0; // fixes flex chrome issue
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
z-index: 3;
|
|
152
135
|
|
|
153
136
|
will-change: transform;
|
|
137
|
+
margin: @_sap_tnt_ToolPage_ContentMargins;
|
|
138
|
+
box-shadow: @_sap_tnt_ToolPage_ContentShadow;
|
|
139
|
+
border-radius: @_sap_tnt_ToolPage_ContentBorderRadius;
|
|
140
|
+
background: @_sap_tnt_ToolPage_ContentBackgroundStandard;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.sapTntToolPageMain.sapTntToolPageMainBackground-Solid {
|
|
144
|
+
background: @_sap_tnt_ToolPage_ContentBackgroundSolid;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.sapTntToolPageMain.sapTntToolPageMainBackground-Transparent {
|
|
148
|
+
background: @_sap_tnt_ToolPage_ContentBackgroundTransparent;
|
|
149
|
+
box-shadow: none;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.sapTntToolPageMain.sapTntToolPageMainBackground-List {
|
|
153
|
+
background: @_sap_tnt_ToolPage_ContentBackgroundList;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.sapTntToolPageMainContent {
|
|
@@ -170,16 +170,9 @@ html:not([data-sap-ui-animation='off']) .sapTntToolPageAside {
|
|
|
170
170
|
|
|
171
171
|
html[dir=rtl] {
|
|
172
172
|
&.sap-phone {
|
|
173
|
-
.sapTntToolPageMain {
|
|
174
|
-
transform: translateX(-@_sap_tnt_ToolPage_AsideWidth);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
173
|
.sapTntToolPageAsideCollapsed {
|
|
178
174
|
.sapTntToolPageAside {
|
|
179
|
-
transform: translateX(@
|
|
180
|
-
}
|
|
181
|
-
.sapTntToolPageMain {
|
|
182
|
-
transform: translateX(0);
|
|
175
|
+
transform: translateX(@_sap_tnt_ToolPage_AsideCollapsedPhoneTransformRtl);
|
|
183
176
|
}
|
|
184
177
|
}
|
|
185
178
|
}
|