@openui5/sap.tnt 1.118.0 → 1.119.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/THIRDPARTY.txt +2 -2
- package/package.json +3 -3
- package/src/sap/tnt/.library +1 -1
- package/src/sap/tnt/InfoLabel.js +5 -4
- package/src/sap/tnt/NavigationList.js +11 -5
- package/src/sap/tnt/NavigationListItem.js +13 -4
- package/src/sap/tnt/SideNavigation.js +1 -1
- 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_fi.properties +1 -1
- package/src/sap/tnt/themes/base/InfoLabel.less +32 -11
- package/src/sap/tnt/themes/base/NavigationList.less +112 -57
- package/src/sap/tnt/themes/base/SideNavigation.less +11 -12
- package/src/sap/tnt/themes/base/ToolPage.less +8 -10
- package/src/sap/tnt/themes/base/library.source.less +1 -1
package/THIRDPARTY.txt
CHANGED
|
@@ -401,7 +401,7 @@ License: MIT
|
|
|
401
401
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
402
402
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/adaptive-expressions.js
|
|
403
403
|
|
|
404
|
-
Component: Markdown-it, version: 12.2
|
|
404
|
+
Component: Markdown-it, version: 12.3.2
|
|
405
405
|
Copyright: 2014 Vitaly Puzrin, Alex Kocharin
|
|
406
406
|
License: MIT
|
|
407
407
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
@@ -466,7 +466,7 @@ License: Apache-2.0
|
|
|
466
466
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
467
467
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
468
468
|
|
|
469
|
-
Component: SAP Theming Base Content, version: 11.
|
|
469
|
+
Component: SAP Theming Base Content, version: 11.6.8
|
|
470
470
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
471
471
|
License: Apache-2.0
|
|
472
472
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.tnt",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.119.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.119.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.119.0"
|
|
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.
|
|
9
|
+
<version>1.119.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with responsive controls.</documentation>
|
|
12
12
|
|
package/src/sap/tnt/InfoLabel.js
CHANGED
|
@@ -31,7 +31,7 @@ sap.ui.define([
|
|
|
31
31
|
*
|
|
32
32
|
* <h3>Overview</h3>
|
|
33
33
|
*
|
|
34
|
-
* The control visualizes text information without user interaction.
|
|
34
|
+
* The control visualizes text information without user interaction.
|
|
35
35
|
* The text-background color pair can be changed by setting a number between 1 and 10 that corresponds to the 10 predefined color combinations of the <code>colorScheme</code> property.
|
|
36
36
|
* The control is designed to be vertically aligned with UI5 Input and Button control families.
|
|
37
37
|
* When using <code>InfoLabel</code> in non-editable <code>Forms</code>, <code>Tables</code>, etc., set <code>displayOnly=true</code> for best visual results.
|
|
@@ -40,14 +40,14 @@ sap.ui.define([
|
|
|
40
40
|
* <ul>
|
|
41
41
|
* <li>If the text is longer than the width of the control, it doesn’t wrap. Instead, it’s represented as ellipsis. </li>
|
|
42
42
|
* <li>When truncated, the full text in the control is not visible. Therefore, it’s recommended to make more space for longer items to be fully displayed.</li>
|
|
43
|
-
* <li>Colors are not semantic and have no visual representation in sap_belize_hcb and
|
|
43
|
+
* <li>Colors are not semantic and have no visual representation in sap_belize_hcb, sap_belize_hcw, sap_fiori_3_hcb and sap_fiori_3_hcw themes.</li>
|
|
44
44
|
* <li>The control shows plain text only, formatting is not visualized.</li>
|
|
45
45
|
* </ul>
|
|
46
46
|
*
|
|
47
47
|
* @extends sap.ui.core.Control
|
|
48
48
|
*
|
|
49
49
|
* @author SAP SE
|
|
50
|
-
* @version 1.
|
|
50
|
+
* @version 1.119.0
|
|
51
51
|
*
|
|
52
52
|
* @constructor
|
|
53
53
|
* @public
|
|
@@ -68,13 +68,14 @@ sap.ui.define([
|
|
|
68
68
|
/**
|
|
69
69
|
* Specifies the type of the <code>InfoLabel</code> paddings - loose or narrow.
|
|
70
70
|
* <b>Note:</b> By default the padding is loose. It is recommended to use narrow (smaller) paddings for numeric texts.
|
|
71
|
+
* <b>Note:</b> In Horizon theme there is only one mode and setting this property will not have effect.
|
|
71
72
|
*/
|
|
72
73
|
renderMode: { type: "sap.tnt.RenderMode", defaultValue: RenderMode.Loose, group: "Appearance" },
|
|
73
74
|
/**
|
|
74
75
|
* Specifies the fill and text color of the control. Accepts a number between 1 and 10 as a value.
|
|
75
76
|
* You can choose from 10 predefined background and text color combinations.
|
|
76
77
|
* The color schemes are non-semantic, you can select them according to your own preferences.
|
|
77
|
-
* <b>Note:</b> ColorScheme 10 is available only in Fiori 3
|
|
78
|
+
* <b>Note:</b> ColorScheme 10 is available only in Fiori 3 and Horizon themes.
|
|
78
79
|
* The default <code>colorScheme</code> is 7.
|
|
79
80
|
*/
|
|
80
81
|
colorScheme: { type: "int", group: "Misc", defaultValue: 7 },
|
|
@@ -53,7 +53,7 @@ sap.ui.define([
|
|
|
53
53
|
* @extends sap.ui.core.Control
|
|
54
54
|
*
|
|
55
55
|
* @author SAP SE
|
|
56
|
-
* @version 1.
|
|
56
|
+
* @version 1.119.0
|
|
57
57
|
*
|
|
58
58
|
* @constructor
|
|
59
59
|
* @public
|
|
@@ -273,11 +273,14 @@ sap.ui.define([
|
|
|
273
273
|
};
|
|
274
274
|
|
|
275
275
|
NavigationList.prototype._overflowPress = function (event) {
|
|
276
|
-
var
|
|
277
|
-
|
|
276
|
+
var opener = event.getSource();
|
|
277
|
+
opener.getDomRef().querySelector(".sapTntNavLIItem").classList.add("sapTntNavLIActive");
|
|
278
|
+
|
|
279
|
+
var menu = this._createOverflowMenu(opener);
|
|
280
|
+
menu.openBy(opener, false, Popup.Dock.EndCenter);
|
|
278
281
|
};
|
|
279
282
|
|
|
280
|
-
NavigationList.prototype._createOverflowMenu = function () {
|
|
283
|
+
NavigationList.prototype._createOverflowMenu = function (opener) {
|
|
281
284
|
var menu = new Menu({
|
|
282
285
|
items: this._createNavigationMenuItems(),
|
|
283
286
|
itemSelected: function (event) {
|
|
@@ -296,7 +299,10 @@ sap.ui.define([
|
|
|
296
299
|
|
|
297
300
|
menu.close();
|
|
298
301
|
menu.destroy();
|
|
299
|
-
}.bind(this)
|
|
302
|
+
}.bind(this),
|
|
303
|
+
closed: function () {
|
|
304
|
+
opener.getDomRef().querySelector(".sapTntNavLIItem").classList.remove("sapTntNavLIActive");
|
|
305
|
+
}
|
|
300
306
|
});
|
|
301
307
|
|
|
302
308
|
menu.addStyleClass("sapTntNavLIMenu");
|
|
@@ -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.
|
|
35
|
+
* @version 1.119.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -630,12 +630,13 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
630
630
|
|
|
631
631
|
this._renderIcon(rm);
|
|
632
632
|
|
|
633
|
+
this._renderText(rm);
|
|
634
|
+
|
|
633
635
|
if (control.getExpanded()) {
|
|
634
636
|
var expandIconControl = this._getExpandIconControl();
|
|
635
637
|
expandIconControl.setVisible(expanderVisible);
|
|
636
638
|
expandIconControl.setSrc(this.getExpanded() ? NavigationListItem.collapseIcon : NavigationListItem.expandIcon);
|
|
637
639
|
expandIconControl.setTooltip(this._getExpandIconTooltip(!this.getExpanded()));
|
|
638
|
-
this._renderText(rm);
|
|
639
640
|
rm.icon(NavigationListItem.selectionIndicatorIcon, ["sapTntNavLISelectionIndicator"]);
|
|
640
641
|
rm.renderControl(expandIconControl);
|
|
641
642
|
}
|
|
@@ -912,13 +913,12 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
912
913
|
|
|
913
914
|
$this.attr('aria-selected', true);
|
|
914
915
|
} else {
|
|
915
|
-
|
|
916
916
|
$this.attr('aria-checked', true);
|
|
917
917
|
|
|
918
918
|
$this = $this.find('.sapTntNavLIGroup');
|
|
919
919
|
|
|
920
920
|
if (this.getParent().isA("sap.tnt.NavigationListItem")) {
|
|
921
|
-
this.getParent().$().find('.sapTntNavLIGroup').addClass('sapTntNavLIItemSelected');
|
|
921
|
+
this.getParent().$().find('.sapTntNavLIGroup').addClass('sapTntNavLIItemSelected sapTntNavLIItemNoHoverEffect');
|
|
922
922
|
}
|
|
923
923
|
navList._closePopover();
|
|
924
924
|
}
|
|
@@ -980,6 +980,15 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
980
980
|
}
|
|
981
981
|
};
|
|
982
982
|
|
|
983
|
+
NavigationListItem.prototype.onfocusout = function() {
|
|
984
|
+
var groupItem = this.getDomRef() && this.getDomRef().querySelector(".sapTntNavLIGroup");
|
|
985
|
+
if (groupItem) {
|
|
986
|
+
groupItem.classList.remove("sapTntNavLIItemNoHoverEffect");
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
NavigationListItem.prototype.onmouseover = NavigationListItem.prototype.onfocusout;
|
|
991
|
+
|
|
983
992
|
NavigationListItem.prototype.onmousedown = function(event) {
|
|
984
993
|
// prevent focusin event to be fired on <a> element
|
|
985
994
|
// ItemNavigation will take care for focusing the <li> element
|
package/src/sap/tnt/ToolPage.js
CHANGED
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.
|
|
20
|
+
* @version 1.119.0
|
|
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.
|
|
26
|
+
version: "1.119.0",
|
|
27
27
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
28
28
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
29
29
|
types: [
|
|
@@ -14,7 +14,7 @@ NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_MENUBAR=Navigointiluettelon valikkopalkki
|
|
|
14
14
|
|
|
15
15
|
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE=Navigointiluettelopuu
|
|
16
16
|
|
|
17
|
-
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE_ITEM=Navigointiluettelopuun elementti
|
|
17
|
+
NAVIGATION_LIST_ITEM_ROLE_DESCRIPTION_TREE_ITEM=Navigointiluettelopuun elementti\u00DF
|
|
18
18
|
|
|
19
19
|
NAVIGATION_LIST_DIALOG_TITLE=Navigointi
|
|
20
20
|
|
|
@@ -6,31 +6,45 @@
|
|
|
6
6
|
@_sap_tnt_InfoLabel_NarrowPadding: 0 0.1875rem;
|
|
7
7
|
@_sap_tnt_InfoLabel_LineHeight: normal;
|
|
8
8
|
@_sap_tnt_InfoLabel_LineHeightDisplayOnly: 1rem;
|
|
9
|
+
@_sap_tnt_InfoLabel_Height: 1rem;
|
|
9
10
|
@_sap_tnt_InfoLabel_HeightWithoutBorders: 0.875rem;
|
|
11
|
+
@_sap_tnt_InfoLabel_FontFamily: @sapUiFontFamily;
|
|
12
|
+
@_sap_tnt_InfoLabel_FontSize: @sapFontSmallSize;
|
|
13
|
+
@_sap_tnt_InfoLabel_DisplayFontSize: @_sap_tnt_InfoLabel_FontSize;
|
|
14
|
+
@_sap_tnt_InfoLabel_DisplayFontSizeIcon: @_sap_tnt_InfoLabel_FontSize;
|
|
15
|
+
@_sap_tnt_InfoLabel_Padding: 0 0.3125rem;
|
|
16
|
+
@_sap_tnt_InfoLabel_DisplayPadding: @_sap_tnt_InfoLabel_Padding;
|
|
17
|
+
@_sap_tnt_InfoLabel_IconMargin: 0.125rem;
|
|
18
|
+
@_sap_tnt_InfoLabel_DisplayIconMargin: 0.1875rem;
|
|
10
19
|
@_sap_tnt_InfoLabel_PaddingWhenEmpty: 0 @_sap_tnt_InfoLabel_HeightWithoutBorders/2;
|
|
11
20
|
@_sap_tnt_InfoLabel_DisplayModeBorder: none;
|
|
12
21
|
@_sap_tnt_InfoLabel_DisplayModeBackground: @sapTextColor;
|
|
13
22
|
@_sap_tnt_InfoLabel_DisplayModeColor: @sapContent_ContrastTextColor;
|
|
23
|
+
@_sap_tnt_InfoLabel_BorderRadius: 0.5rem;
|
|
24
|
+
@_sap_tnt_InfoLabel_DisplayBorderRadius: @_sap_tnt_InfoLabel_BorderRadius;
|
|
25
|
+
@_sap_tnt_InfoLabel_Text: uppercase;
|
|
26
|
+
@_sap_tnt_InfoLabel_LetterSpacing: 0.0125rem;
|
|
14
27
|
|
|
15
28
|
/* ==========================================================================
|
|
16
29
|
Root element
|
|
17
30
|
========================================================================== */
|
|
18
31
|
.sapTntInfoLabel {
|
|
19
32
|
box-sizing: border-box;
|
|
20
|
-
padding:
|
|
33
|
+
padding: @_sap_tnt_InfoLabel_Padding;
|
|
21
34
|
text-align: center;
|
|
22
|
-
border-radius:
|
|
23
|
-
height:
|
|
35
|
+
border-radius: @_sap_tnt_InfoLabel_BorderRadius;
|
|
36
|
+
height: @_sap_tnt_InfoLabel_Height;
|
|
24
37
|
display: inline-block;
|
|
25
38
|
max-width: 100%;
|
|
26
39
|
line-height: @_sap_tnt_InfoLabel_LineHeight;
|
|
27
40
|
|
|
28
41
|
.sapTntInfoLabelInner {
|
|
29
|
-
font-size: @
|
|
42
|
+
font-size: @_sap_tnt_InfoLabel_FontSize;
|
|
30
43
|
font-weight: bold;
|
|
44
|
+
font-family: @_sap_tnt_InfoLabel_FontFamily;
|
|
31
45
|
vertical-align: top;
|
|
32
|
-
letter-spacing:
|
|
33
|
-
text-transform:
|
|
46
|
+
letter-spacing: @_sap_tnt_InfoLabel_LetterSpacing;
|
|
47
|
+
text-transform: @_sap_tnt_InfoLabel_Text;
|
|
34
48
|
display: inline-block;
|
|
35
49
|
text-overflow: ellipsis;
|
|
36
50
|
white-space: nowrap;
|
|
@@ -49,10 +63,14 @@
|
|
|
49
63
|
.sapTntInfoLabel.sapTntInfoLabelDisplayOnly {
|
|
50
64
|
border: @_sap_tnt_InfoLabel_DisplayModeBorder;
|
|
51
65
|
background: @_sap_tnt_InfoLabel_DisplayModeBackground;
|
|
66
|
+
height: 1rem;
|
|
67
|
+
border-radius: @_sap_tnt_InfoLabel_DisplayBorderRadius;
|
|
68
|
+
padding: @_sap_tnt_InfoLabel_DisplayPadding;
|
|
52
69
|
|
|
53
70
|
.sapTntInfoLabelInner {
|
|
54
71
|
color: @_sap_tnt_InfoLabel_DisplayModeColor;
|
|
55
72
|
line-height: @_sap_tnt_InfoLabel_LineHeightDisplayOnly;
|
|
73
|
+
font-size: @_sap_tnt_InfoLabel_DisplayFontSize;
|
|
56
74
|
}
|
|
57
75
|
}
|
|
58
76
|
|
|
@@ -74,22 +92,25 @@
|
|
|
74
92
|
}
|
|
75
93
|
|
|
76
94
|
.sapUiIcon {
|
|
77
|
-
padding-right:
|
|
95
|
+
padding-right: @_sap_tnt_InfoLabel_IconMargin;
|
|
78
96
|
line-height: @_sap_tnt_InfoLabel_HeightWithoutBorders;
|
|
79
97
|
vertical-align: top;
|
|
98
|
+
font-size: @_sap_tnt_InfoLabel_FontSize;
|
|
80
99
|
}
|
|
81
100
|
|
|
82
101
|
&.sapTntInfoLabelNoText {
|
|
83
102
|
padding: @_sap_tnt_InfoLabel_NarrowPadding;
|
|
84
103
|
|
|
85
|
-
.sapUiIcon {
|
|
86
|
-
padding-right: 0;
|
|
104
|
+
.sapTntInfoLabelInner .sapUiIcon {
|
|
105
|
+
padding-right: 0 !important;
|
|
87
106
|
}
|
|
88
107
|
}
|
|
89
108
|
|
|
90
|
-
&.sapTntInfoLabelDisplayOnly {
|
|
91
|
-
.sapUiIcon {
|
|
109
|
+
&.sapTntInfoLabelDisplayOnly .sapTntInfoLabelInner {
|
|
110
|
+
.sapUiIcon:not(.sapMBtnIcon) { // needs this to override Form styles
|
|
92
111
|
line-height: @_sap_tnt_InfoLabel_LineHeightDisplayOnly;
|
|
112
|
+
padding-right: @_sap_tnt_InfoLabel_DisplayIconMargin;
|
|
113
|
+
font-size: @_sap_tnt_InfoLabel_DisplayFontSizeIcon;
|
|
93
114
|
}
|
|
94
115
|
}
|
|
95
116
|
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
@_sap_tnt_NavigationList_ItemBorderStyleColor: none;
|
|
15
15
|
@_sap_tnt_NavigationList_ItemBorderWidth: 0;
|
|
16
16
|
@_sap_tnt_NavigationList_ItemHeight: 3rem;
|
|
17
|
+
@_sap_tnt_NavigationList_ItemHeightCompact: 2rem;
|
|
17
18
|
@_sap_tnt_NavigationList_LastItemBorderStyleColor: none;
|
|
18
19
|
@_sap_tnt_NavigationList_ItemBorderRadius: 0;
|
|
19
20
|
@_sap_tnt_NavigationList_ItemBottomMargin: 0;
|
|
@@ -27,12 +28,12 @@
|
|
|
27
28
|
@_sap_tnt_NavigationList_SelectedItemBorderColor: @sapUiListSelectionBorderColor;
|
|
28
29
|
@_sap_tnt_NavigationList_SelectedBorderStyleColor: solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
29
30
|
@_sap_tnt_NavigationList_SelectedBorderWidth: 0 0 0.0625rem 0;
|
|
31
|
+
@_sap_tnt_NavigationList_SelectedAndFocusedBorderStyleColor: @_sap_tnt_NavigationList_SelectedBorderStyleColor;
|
|
30
32
|
@_sap_tnt_NavigationList_Collapsed_SelectedItemBorderStyleColor: solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
31
33
|
@_sap_tnt_NavigationList_Collapsed_SelectedGroupBorderColor: @_sap_tnt_NavigationList_SelectedItemBorderColor;
|
|
32
34
|
@_sap_tnt_NavigationList_Collapsed_GroupBorderWidth: @sapUiListBorderColor;
|
|
33
35
|
@_sap_tnt_NavigationList_GroupExpandedBorderWidth: @_sap_tnt_NavigationList_GroupBorderWidth;
|
|
34
36
|
@_sap_tnt_NavigationList_GroupIconWidth: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
35
|
-
@_sap_tnt_NavigationList_GroupBottomBorderColor: @sapUiListBorderColor;
|
|
36
37
|
@_sap_tnt_NavigationList_GroupTextWeight: unset;
|
|
37
38
|
@_sap_tnt_NavigationList_GroupBottomMarginInPopup: 0;
|
|
38
39
|
@_sap_tnt_NavigationList_Padding: 0;
|
|
@@ -46,6 +47,12 @@
|
|
|
46
47
|
@_sap_tnt_NavigationList_PopupTitleTextSize: @sapMFontMediumSize;
|
|
47
48
|
@_sap_tnt_NavigationList_PopupTitleLineHeight: normal;
|
|
48
49
|
@_sap_tnt_NavigationList_SelectionIndicatorDisplay: none;
|
|
50
|
+
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding: 0;
|
|
51
|
+
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPaddingCompact: 0;
|
|
52
|
+
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusTextDisplay: none;
|
|
53
|
+
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemZIndex: 0;
|
|
54
|
+
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPosition: relative;
|
|
55
|
+
@_sap_tnt_NavigationList_Collapsed_ItemHoverBoxShadow: @_sap_tnt_SideNavigation_BoxShadow;
|
|
49
56
|
|
|
50
57
|
.sapTntNavLI {
|
|
51
58
|
margin: 0;
|
|
@@ -56,7 +63,7 @@
|
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
.sapTntNavLI.sapTntNavLICollapsed {
|
|
59
|
-
overflow: visible
|
|
66
|
+
overflow: visible;
|
|
60
67
|
display: flex;
|
|
61
68
|
flex-direction: column;
|
|
62
69
|
height: 100%;
|
|
@@ -74,8 +81,11 @@
|
|
|
74
81
|
list-style: none;
|
|
75
82
|
}
|
|
76
83
|
|
|
84
|
+
.sapTntNavLI.sapTntNavLICollapsed li {
|
|
85
|
+
min-height: @_sap_tnt_NavigationList_ItemHeight + @_sap_tnt_NavigationList_ItemBottomMargin;
|
|
86
|
+
}
|
|
87
|
+
|
|
77
88
|
.sapTntNavLIItem {
|
|
78
|
-
width: 100%;
|
|
79
89
|
height: @_sap_tnt_NavigationList_ItemHeight;
|
|
80
90
|
box-sizing: border-box;
|
|
81
91
|
cursor: pointer;
|
|
@@ -147,6 +157,14 @@
|
|
|
147
157
|
}
|
|
148
158
|
}
|
|
149
159
|
|
|
160
|
+
.sapTntNavLI li:focus .sapTntNavLIItem:not(.sapTntNavLIItemDisabled).sapTntNavLIItemSelected,
|
|
161
|
+
.sapTntNavLI .sapTntNavLIItem:not(.sapTntNavLIItemDisabled).sapTntNavLIItemSelected:focus {
|
|
162
|
+
&::before {
|
|
163
|
+
border: @_sap_tnt_NavigationList_SelectedAndFocusedBorderStyleColor;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
150
168
|
.sapTntNavLIGroupItem {
|
|
151
169
|
&::before {
|
|
152
170
|
border: @_sap_tnt_NavigationList_ItemBorderStyleColor;
|
|
@@ -265,6 +283,32 @@
|
|
|
265
283
|
font-weight: @_sap_tnt_NavigationList_GroupTextWeight;
|
|
266
284
|
}
|
|
267
285
|
|
|
286
|
+
.sapTntNavLICollapsed {
|
|
287
|
+
|
|
288
|
+
.sapTntNavLIText {
|
|
289
|
+
display: none;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):not(.sapTntNavLIActive):hover,
|
|
293
|
+
&.sapTntNavLI li:focus .sapTntNavLIItem,
|
|
294
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):not(.sapTntNavLIActive):focus {
|
|
295
|
+
|
|
296
|
+
&:not(.sapTntNavLIItemNoHoverEffect) {
|
|
297
|
+
position: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPosition;
|
|
298
|
+
padding: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding;
|
|
299
|
+
z-index: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemZIndex;
|
|
300
|
+
|
|
301
|
+
.sapTntNavLIText {
|
|
302
|
+
display: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusTextDisplay;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):not(.sapTntNavLIActive):hover {
|
|
308
|
+
box-shadow: @_sap_tnt_NavigationList_Collapsed_ItemHoverBoxShadow;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
268
312
|
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):hover {
|
|
269
313
|
background-color: @sapUiListHoverBackground;
|
|
270
314
|
}
|
|
@@ -290,8 +334,7 @@
|
|
|
290
334
|
}
|
|
291
335
|
|
|
292
336
|
.sapTntNavLISelectionIndicator {
|
|
293
|
-
display:
|
|
294
|
-
opacity: 0;
|
|
337
|
+
display: none;
|
|
295
338
|
font-size: 0.5rem;
|
|
296
339
|
color: @sapUiListSelectionBorderColor;
|
|
297
340
|
}
|
|
@@ -303,7 +346,7 @@
|
|
|
303
346
|
background-color: @sapUiListSelectionBackgroundColor;
|
|
304
347
|
|
|
305
348
|
.sapTntNavLISelectionIndicator {
|
|
306
|
-
|
|
349
|
+
display: @_sap_tnt_NavigationList_SelectionIndicatorDisplay;
|
|
307
350
|
}
|
|
308
351
|
}
|
|
309
352
|
|
|
@@ -407,6 +450,55 @@
|
|
|
407
450
|
padding: 0.5rem;
|
|
408
451
|
}
|
|
409
452
|
|
|
453
|
+
// parent menu
|
|
454
|
+
&:not(.sapUiSubmenu) .sapUiMnuLst .sapUiMnuItm {
|
|
455
|
+
font-weight: @_sap_tnt_NavigationList_GroupTextWeight;
|
|
456
|
+
|
|
457
|
+
.sapUiMnuItmIco {
|
|
458
|
+
position: relative !important;
|
|
459
|
+
width: auto;
|
|
460
|
+
padding-inline: 0 0.5rem;
|
|
461
|
+
|
|
462
|
+
.sapUiIcon {
|
|
463
|
+
color: @_sap_tnt_NavigationList_IconColor;
|
|
464
|
+
display: block;
|
|
465
|
+
width: 1rem;
|
|
466
|
+
height: 1rem;
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
.sapUiMnuItmSbMnu {
|
|
471
|
+
position: relative;
|
|
472
|
+
display: flex;
|
|
473
|
+
align-items: center;
|
|
474
|
+
justify-content: center;
|
|
475
|
+
width: 0.75rem;
|
|
476
|
+
height: 100%;
|
|
477
|
+
padding-inline-start: 0.5rem;
|
|
478
|
+
|
|
479
|
+
.sapUiIconMirrorInRTL::after {
|
|
480
|
+
content: "\e1ed";
|
|
481
|
+
font-size: 0.75rem;
|
|
482
|
+
color: @_sap_tnt_NavigationList_IconColor;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.sapUiMnuItmR {
|
|
487
|
+
display: none;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
&.sapUiMnuItmSubMnuOpen,
|
|
491
|
+
&.sapUiMnuItmSubMnuOpen.sapUiMnuItmHov {
|
|
492
|
+
&::before {
|
|
493
|
+
position: absolute;
|
|
494
|
+
content: "";
|
|
495
|
+
inset: 0;
|
|
496
|
+
border: @_sap_tnt_NavigationList_SelectedBorderStyleColor;
|
|
497
|
+
border-width: @_sap_tnt_NavigationList_SelectedBorderWidth;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
410
502
|
.sapUiMnuLst {
|
|
411
503
|
li.sapUiMnuItm {
|
|
412
504
|
display: flex;
|
|
@@ -442,55 +534,6 @@
|
|
|
442
534
|
border-width: @_sap_tnt_NavigationList_ItemBorderWidth;
|
|
443
535
|
}
|
|
444
536
|
}
|
|
445
|
-
|
|
446
|
-
// parent menu
|
|
447
|
-
&:not(.sapUiMnuNoSbMnu) .sapUiMnuItm {
|
|
448
|
-
font-weight: @_sap_tnt_NavigationList_GroupTextWeight;
|
|
449
|
-
|
|
450
|
-
.sapUiMnuItmIco {
|
|
451
|
-
position: relative;
|
|
452
|
-
width: auto;
|
|
453
|
-
padding-inline: 0 0.5rem;
|
|
454
|
-
|
|
455
|
-
.sapUiIcon {
|
|
456
|
-
color: @_sap_tnt_NavigationList_IconColor;
|
|
457
|
-
display: block;
|
|
458
|
-
width: 1rem;
|
|
459
|
-
height: 1rem;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.sapUiMnuItmSbMnu {
|
|
464
|
-
position: relative;
|
|
465
|
-
display: flex;
|
|
466
|
-
align-items: center;
|
|
467
|
-
justify-content: center;
|
|
468
|
-
width: 0.75rem;
|
|
469
|
-
height: 100%;
|
|
470
|
-
padding-inline-start: 0.5rem;
|
|
471
|
-
|
|
472
|
-
.sapUiIconMirrorInRTL::after {
|
|
473
|
-
content: "\e1ed";
|
|
474
|
-
font-size: 0.75rem;
|
|
475
|
-
color: @_sap_tnt_NavigationList_IconColor;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.sapUiMnuItmR {
|
|
480
|
-
display: none;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
&.sapUiMnuItmSubMnuOpen,
|
|
484
|
-
&.sapUiMnuItmSubMnuOpen.sapUiMnuItmHov {
|
|
485
|
-
&::before {
|
|
486
|
-
position: absolute;
|
|
487
|
-
content: "";
|
|
488
|
-
inset: 0;
|
|
489
|
-
border: @_sap_tnt_NavigationList_SelectedBorderStyleColor;
|
|
490
|
-
border-width: @_sap_tnt_NavigationList_SelectedBorderWidth;
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
537
|
}
|
|
495
538
|
}
|
|
496
539
|
|
|
@@ -501,9 +544,13 @@
|
|
|
501
544
|
padding: @_sap_tnt_NavigationList_PaddingCompact;
|
|
502
545
|
}
|
|
503
546
|
|
|
547
|
+
.sapTntNavLI.sapTntNavLICollapsed li {
|
|
548
|
+
min-height: @_sap_tnt_NavigationList_ItemHeightCompact + @_sap_tnt_NavigationList_ItemBottomMarginCompact;
|
|
549
|
+
}
|
|
550
|
+
|
|
504
551
|
.sapTntNavLIMenu.sapUiMnu li.sapUiMnuItm,
|
|
505
552
|
.sapTntNavLIItem {
|
|
506
|
-
height:
|
|
553
|
+
height: @_sap_tnt_NavigationList_ItemHeightCompact;
|
|
507
554
|
}
|
|
508
555
|
|
|
509
556
|
.sapTntNavLIPopup .sapTntNavLIGroupItem .sapMText {
|
|
@@ -524,7 +571,7 @@
|
|
|
524
571
|
|
|
525
572
|
.sapTntNavLIPopup span.sapTntNavLIGroupIcon {
|
|
526
573
|
width: 0.5rem;
|
|
527
|
-
|
|
574
|
+
min-width: 0.5rem;
|
|
528
575
|
}
|
|
529
576
|
|
|
530
577
|
// NavigationList with icons
|
|
@@ -540,4 +587,12 @@
|
|
|
540
587
|
margin-bottom: @_sap_tnt_NavigationList_ItemBottomMarginCompact;
|
|
541
588
|
}
|
|
542
589
|
}
|
|
590
|
+
|
|
591
|
+
.sapTntNavLICollapsed {
|
|
592
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):not(.sapTntNavLIActive):hover,
|
|
593
|
+
&.sapTntNavLI li:focus .sapTntNavLIItem,
|
|
594
|
+
.sapTntNavLIItem:not(.sapTntNavLIItemDisabled):not(.sapTntNavLIActive):focus {
|
|
595
|
+
padding: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPaddingCompact;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
543
598
|
}
|
|
@@ -18,13 +18,11 @@
|
|
|
18
18
|
@_sap_tnt_SideNavigation_TriangleDisplay: block;
|
|
19
19
|
|
|
20
20
|
.sapTntSideNavigation {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
background: @sapUiListBackground;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
flex: 1;
|
|
24
|
+
min-height: 0;
|
|
25
|
+
background: @sapUiListBackground;
|
|
28
26
|
border-right: @_sap_tnt_SideNavigation_BorderRight;
|
|
29
27
|
box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
|
|
30
28
|
border-radius: @_sap_tnt_SideNavigation_BorderRadius;
|
|
@@ -43,9 +41,7 @@ html.sap-tablet:not(html.sap-combi) {
|
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
.sapTntSideNavigationNotExpanded {
|
|
46
|
-
|
|
47
|
-
display: none;
|
|
48
|
-
}
|
|
44
|
+
|
|
49
45
|
.sapTntSideNavigationSeparator {
|
|
50
46
|
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
51
47
|
}
|
|
@@ -69,7 +65,6 @@ html.sap-tablet:not(html.sap-combi) {
|
|
|
69
65
|
flex: 1;
|
|
70
66
|
min-height: 0;
|
|
71
67
|
position: relative;
|
|
72
|
-
overflow: hidden;
|
|
73
68
|
box-sizing: border-box;
|
|
74
69
|
outline: none;
|
|
75
70
|
}
|
|
@@ -90,7 +85,11 @@ html.sap-tablet:not(html.sap-combi) {
|
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
.sapTntSideNavigationFixed {
|
|
93
|
-
|
|
88
|
+
position: relative;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
html.sap-desktop:not(.sapUiNativeScrollbars) .sapTntSideNavigation ::-webkit-scrollbar {
|
|
92
|
+
border-radius: @_sap_tnt_SideNavigation_BorderRadius;
|
|
94
93
|
}
|
|
95
94
|
|
|
96
95
|
/* Compact size
|
|
@@ -44,14 +44,6 @@
|
|
|
44
44
|
background: @_sap_tnt_ToolPage_Background;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/* ==========================================================================
|
|
48
|
-
Header
|
|
49
|
-
========================================================================== */
|
|
50
|
-
|
|
51
|
-
.sapTntToolPageHeaderWrapper {
|
|
52
|
-
z-index: 2; // bring header above content wrapper to draw drop shadow over the content
|
|
53
|
-
}
|
|
54
|
-
|
|
55
47
|
/* ==========================================================================
|
|
56
48
|
Content wrapper
|
|
57
49
|
========================================================================== */
|
|
@@ -71,6 +63,9 @@
|
|
|
71
63
|
|
|
72
64
|
will-change: transform;
|
|
73
65
|
margin: @_sap_tnt_ToolPage_AsideMargins;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sapTntToolPageAsideCollapsed .sapTntToolPageAside {
|
|
74
69
|
z-index: 2;
|
|
75
70
|
}
|
|
76
71
|
|
|
@@ -101,11 +96,11 @@ html.sap-phone {
|
|
|
101
96
|
}
|
|
102
97
|
|
|
103
98
|
.sapTntToolPageAside {
|
|
99
|
+
z-index: 2;
|
|
104
100
|
position: absolute;
|
|
105
101
|
left: 0;
|
|
106
102
|
bottom: 0;
|
|
107
103
|
top: 0;
|
|
108
|
-
z-index: 4;
|
|
109
104
|
|
|
110
105
|
margin: @_sap_tnt_ToolPage_AsideMarginsPhone;
|
|
111
106
|
}
|
|
@@ -131,7 +126,6 @@ html.sap-phone {
|
|
|
131
126
|
flex: 1;
|
|
132
127
|
min-width: 0; // fixes flex chrome issue
|
|
133
128
|
overflow: hidden;
|
|
134
|
-
z-index: 3;
|
|
135
129
|
|
|
136
130
|
will-change: transform;
|
|
137
131
|
margin: @_sap_tnt_ToolPage_ContentMargins;
|
|
@@ -140,6 +134,10 @@ html.sap-phone {
|
|
|
140
134
|
background: @_sap_tnt_ToolPage_ContentBackgroundStandard;
|
|
141
135
|
}
|
|
142
136
|
|
|
137
|
+
.sapTntToolPageAsideCollapsed .sapTntToolPageMain {
|
|
138
|
+
z-index: 1;
|
|
139
|
+
}
|
|
140
|
+
|
|
143
141
|
.sapTntToolPageMain.sapTntToolPageMainBackground-Solid {
|
|
144
142
|
background: @_sap_tnt_ToolPage_ContentBackgroundSolid;
|
|
145
143
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
@import "../../../../sap/ui/core/themes/base/base.less";
|
|
8
8
|
@import "../../../../sap/ui/core/themes/base/global.less";
|
|
9
9
|
|
|
10
|
-
@import "NavigationList.less";
|
|
11
10
|
@import "ToolHeader.less";
|
|
12
11
|
@import "SideNavigation.less";
|
|
12
|
+
@import "NavigationList.less"; // keep this order, it reuses variable @_sap_tnt_SideNavigation_BoxShadow defined in SideNavigation.less
|
|
13
13
|
@import "ToolPage.less";
|
|
14
14
|
@import "InfoLabel.less";
|