@openui5/sap.tnt 1.108.19 → 1.108.20
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 +1 -1
- 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 +1 -1
- package/src/sap/tnt/NavigationListItem.js +1 -1
- 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/themes/base/InfoLabel.less +32 -11
package/THIRDPARTY.txt
CHANGED
|
@@ -478,7 +478,7 @@ License: Apache-2.0
|
|
|
478
478
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
479
479
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
480
480
|
|
|
481
|
-
Component: SAP Theming Base Content, version: 11.
|
|
481
|
+
Component: SAP Theming Base Content, version: 11.6.8
|
|
482
482
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
483
483
|
License: Apache-2.0
|
|
484
484
|
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.108.
|
|
3
|
+
"version": "1.108.20",
|
|
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.108.
|
|
18
|
-
"@openui5/sap.ui.core": "1.108.
|
|
17
|
+
"@openui5/sap.m": "1.108.20",
|
|
18
|
+
"@openui5/sap.ui.core": "1.108.20"
|
|
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.108.
|
|
9
|
+
<version>1.108.20</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.108.
|
|
50
|
+
* @version 1.108.20
|
|
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 },
|
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.108.
|
|
20
|
+
* @version 1.108.20
|
|
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.108.
|
|
26
|
+
version: "1.108.20",
|
|
27
27
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
28
28
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
29
29
|
types: [
|
|
@@ -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
|
}
|