@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
|
@@ -5,9 +5,16 @@
|
|
|
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;
|
|
17
|
+
@_sap_tnt_SideNavigation_TriangleDisplay: block;
|
|
11
18
|
|
|
12
19
|
.sapTntSideNavigation {
|
|
13
20
|
display: flex;
|
|
@@ -17,10 +24,16 @@
|
|
|
17
24
|
overflow: hidden;
|
|
18
25
|
background: @sapUiListBackground;
|
|
19
26
|
border-right: 1px solid @sapUiGroupContentBorderColor;
|
|
27
|
+
box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
|
|
28
|
+
border-radius: @_sap_tnt_SideNavigation_BorderRadius;
|
|
29
|
+
width: @_sap_tnt_SideNavigation_Width;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
|
-
.
|
|
23
|
-
|
|
32
|
+
html.sap-phone,
|
|
33
|
+
html.sap-tablet:not(html.sap-combi) {
|
|
34
|
+
.sapTntSideNavigation {
|
|
35
|
+
border-radius: @_sap_tnt_SideNavigation_PhoneBorderRadius;
|
|
36
|
+
}
|
|
24
37
|
}
|
|
25
38
|
|
|
26
39
|
.sapTntSideNavigation.sapTntSideNavigationNotExpandedWidth {
|
|
@@ -33,15 +46,11 @@
|
|
|
33
46
|
display: none;
|
|
34
47
|
}
|
|
35
48
|
.sapTntSideNavigationSeparator {
|
|
36
|
-
margin:
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sapTntSideNavigationFlexible {
|
|
40
|
-
padding-right: @_sap_tnt_SideNavigation_CollapsedWidth;
|
|
41
|
-
width: 6rem;
|
|
49
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
.sapTnTNavLINotExpandedTriangle:not(.sapTntNavLIItemDisabled):after {
|
|
53
|
+
display: @_sap_tnt_SideNavigation_TriangleDisplay;
|
|
45
54
|
content: "";
|
|
46
55
|
width: 0;
|
|
47
56
|
height: 0;
|
|
@@ -66,10 +75,11 @@
|
|
|
66
75
|
}
|
|
67
76
|
|
|
68
77
|
.sapTntSideNavigationSeparator {
|
|
69
|
-
margin:
|
|
78
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMargin;
|
|
70
79
|
height: @_sap_tnt_SideNavigation_NavigationSeparatorHeight;
|
|
71
80
|
min-height: @_sap_tnt_SideNavigation_NavigationSeparatorHeight;
|
|
72
81
|
background-color: @_sap_tnt_SideNavigation_NavigationSeparatorBackgroundColor;
|
|
82
|
+
border-radius: @_sap_tnt_SideNavigation_NavigationSeparatorRadius;
|
|
73
83
|
}
|
|
74
84
|
|
|
75
85
|
.sapTntSideNavigationFixed {
|
|
@@ -125,18 +135,18 @@
|
|
|
125
135
|
|
|
126
136
|
.sapUiSizeCompact {
|
|
127
137
|
|
|
128
|
-
|
|
138
|
+
.sapTntSideNavigationNotExpanded {
|
|
129
139
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
140
|
+
.sapTntSideNavigationSeparator {
|
|
141
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
134
144
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
145
|
+
.sapTntSideNavigationSeparator {
|
|
146
|
+
margin: @_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed;
|
|
147
|
+
}
|
|
138
148
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
149
|
+
.sapTntSideNavigationScrollIcon {
|
|
150
|
+
padding: 0.5rem 0;
|
|
151
|
+
}
|
|
142
152
|
}
|
|
@@ -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
|
}
|