@openui5/sap.tnt 1.99.1 → 1.102.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/.eslintrc.json +18 -0
- package/THIRDPARTY.txt +5 -5
- 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 +5 -3
- package/src/sap/tnt/SideNavigation.js +34 -7
- 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 +6 -8
- package/src/sap/tnt/themes/base/InfoLabel.less +6 -3
- package/src/sap/tnt/themes/base/NavigationList.less +18 -16
- package/src/sap/tnt/themes/base/SideNavigation.less +7 -11
- package/src/sap/tnt/themes/base/ToolHeader.less +8 -3
- package/src/sap/tnt/themes/base/ToolPage.less +0 -92
- package/src/sap/tnt/themes/base/illustrations/metadata.json +19 -1
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartArea.svg +14 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartArea2.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBPMNFlow.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBar.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBullet.svg +14 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartDoughnut.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartFlow.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartGantt.svg +17 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartOrg.svg +15 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartPie.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-CodePlaceholder.svg +5 -5
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Company.svg +12 -12
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Components.svg +9 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ExternalLink.svg +10 -10
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-FaceID.svg +16 -16
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Fingerprint.svg +15 -15
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Lock.svg +11 -11
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Mission.svg +17 -17
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Radar.svg +14 -14
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Secrets.svg +11 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Services.svg +15 -15
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SessionExpired.svg +10 -10
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SessionExpiring.svg +9 -9
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Success.svg +9 -9
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SuccessfulAuth.svg +9 -9
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Systems.svg +11 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Teams.svg +17 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Tools.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-UnableToLoad.svg +9 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Unlock.svg +11 -11
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-UnsuccessfulAuth.svg +10 -10
- package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-User2.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartArea.svg +22 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartArea2.svg +19 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBPMNFlow.svg +21 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBar.svg +19 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBullet.svg +20 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartDoughnut.svg +19 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartFlow.svg +20 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartGantt.svg +26 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartOrg.svg +26 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartPie.svg +18 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-CodePlaceholder.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Company.svg +29 -29
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Components.svg +16 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ExternalLink.svg +13 -13
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-FaceID.svg +20 -20
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Fingerprint.svg +34 -34
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Lock.svg +21 -21
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Mission.svg +18 -18
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Radar.svg +19 -19
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Secrets.svg +14 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Services.svg +16 -16
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SessionExpired.svg +17 -17
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SessionExpiring.svg +16 -16
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Success.svg +17 -17
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SuccessfulAuth.svg +19 -19
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Systems.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Teams.svg +20 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Tools.svg +18 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-UnableToLoad.svg +20 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Unlock.svg +14 -14
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-UnsuccessfulAuth.svg +21 -21
- package/src/sap/tnt/themes/base/illustrations/tnt-Scene-User2.svg +22 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartArea.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartArea2.svg +7 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBPMNFlow.svg +9 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBar.svg +8 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBullet.svg +10 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartDoughnut.svg +9 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartFlow.svg +8 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartGantt.svg +12 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartOrg.svg +6 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartPie.svg +8 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-CodePlaceholder.svg +5 -5
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Company.svg +12 -12
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Components.svg +5 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ExternalLink.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-FaceID.svg +15 -15
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Fingerprint.svg +9 -9
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Lock.svg +12 -12
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Mission.svg +16 -16
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Radar.svg +13 -13
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Secrets.svg +9 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Services.svg +13 -14
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SessionExpired.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SessionExpiring.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Success.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SuccessfulAuth.svg +8 -8
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Systems.svg +10 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Teams.svg +13 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Tools.svg +7 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-UnableToLoad.svg +8 -0
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Unlock.svg +10 -10
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-UnsuccessfulAuth.svg +9 -9
- package/src/sap/tnt/themes/base/illustrations/tnt-Spot-User2.svg +10 -0
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
/*
|
|
4
|
+
* Productive code, sample and unit test code of sap.tnt has been cleaned up.
|
|
5
|
+
* No more references to the global jQuery allowed
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"src/**/*.js",
|
|
10
|
+
"test/sap/tnt/demokit/**/*.js",
|
|
11
|
+
"test/sap/tnt/qunit/**/*.js"
|
|
12
|
+
],
|
|
13
|
+
"globals": {
|
|
14
|
+
"jQuery": "off"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/THIRDPARTY.txt
CHANGED
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.39
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
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.102.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.102.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.102.0"
|
|
19
19
|
}
|
|
20
20
|
}
|
package/src/sap/tnt/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 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.102.0</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.
|
|
35
|
+
* @version 1.102.0
|
|
36
36
|
*
|
|
37
37
|
* @constructor
|
|
38
38
|
* @public
|
|
@@ -394,8 +394,9 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
394
394
|
expandIconControl.setTooltip(this._getExpandIconTooltip(false));
|
|
395
395
|
|
|
396
396
|
var $container = this.$().find('.sapTntNavLIGroupItems');
|
|
397
|
+
var oDomRef = this.getDomRef();
|
|
397
398
|
$container.stop(true, true).slideDown(duration || 'fast', function () {
|
|
398
|
-
|
|
399
|
+
oDomRef.querySelector(".sapTntNavLIGroupItems").classList.toggle('sapTntNavLIHiddenGroupItems');
|
|
399
400
|
});
|
|
400
401
|
|
|
401
402
|
this.getNavigationList()._updateNavItems();
|
|
@@ -420,8 +421,9 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
|
|
|
420
421
|
expandIconControl.setTooltip(this._getExpandIconTooltip(true));
|
|
421
422
|
|
|
422
423
|
var $container = this.$().find('.sapTntNavLIGroupItems');
|
|
424
|
+
var oDomRef = this.getDomRef();
|
|
423
425
|
$container.stop(true, true).slideUp(duration || 'fast', function () {
|
|
424
|
-
|
|
426
|
+
oDomRef.querySelector(".sapTntNavLIGroupItems").classList.toggle('sapTntNavLIHiddenGroupItems');
|
|
425
427
|
});
|
|
426
428
|
|
|
427
429
|
this.getNavigationList()._updateNavItems();
|
|
@@ -9,6 +9,7 @@ sap.ui.define([
|
|
|
9
9
|
'./library',
|
|
10
10
|
'sap/ui/core/Control',
|
|
11
11
|
'sap/ui/core/ResizeHandler',
|
|
12
|
+
"sap/ui/core/theming/Parameters",
|
|
12
13
|
'sap/ui/core/Icon',
|
|
13
14
|
'sap/ui/core/delegate/ScrollEnablement',
|
|
14
15
|
"./SideNavigationRenderer"
|
|
@@ -17,6 +18,7 @@ sap.ui.define([
|
|
|
17
18
|
library,
|
|
18
19
|
Control,
|
|
19
20
|
ResizeHandler,
|
|
21
|
+
Parameters,
|
|
20
22
|
Icon,
|
|
21
23
|
ScrollEnablement,
|
|
22
24
|
SideNavigationRenderer
|
|
@@ -40,7 +42,7 @@ sap.ui.define([
|
|
|
40
42
|
* @extends sap.ui.core.Control
|
|
41
43
|
*
|
|
42
44
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
45
|
+
* @version 1.102.0
|
|
44
46
|
*
|
|
45
47
|
* @constructor
|
|
46
48
|
* @public
|
|
@@ -117,7 +119,6 @@ sap.ui.define([
|
|
|
117
119
|
});
|
|
118
120
|
|
|
119
121
|
SideNavigation.prototype.init = function () {
|
|
120
|
-
|
|
121
122
|
this._scroller = new ScrollEnablement(this, this.getId() + "-Flexible-Content", {
|
|
122
123
|
horizontal: false,
|
|
123
124
|
vertical: true
|
|
@@ -127,6 +128,12 @@ sap.ui.define([
|
|
|
127
128
|
this.data('sap-ui-fastnavgroup', 'true', true);
|
|
128
129
|
};
|
|
129
130
|
|
|
131
|
+
// event listener for theme changed
|
|
132
|
+
SideNavigation.prototype.onThemeChanged = function() {
|
|
133
|
+
this._mThemeParams = null;
|
|
134
|
+
this._initThemeParams();
|
|
135
|
+
};
|
|
136
|
+
|
|
130
137
|
SideNavigation.prototype.setAggregation = function (aggregationName, object) {
|
|
131
138
|
if (object && object.attachItemSelect) {
|
|
132
139
|
object.attachItemSelect(this._itemSelectionHandler.bind(this));
|
|
@@ -152,6 +159,9 @@ sap.ui.define([
|
|
|
152
159
|
$this = this.$(),
|
|
153
160
|
itemAggregation = that.getAggregation('item'),
|
|
154
161
|
fixedItemAggregation = that.getAggregation('fixedItem'),
|
|
162
|
+
themeParams,
|
|
163
|
+
expandedWidth,
|
|
164
|
+
collapsedWidth,
|
|
155
165
|
width;
|
|
156
166
|
|
|
157
167
|
if (!this.getDomRef()) {
|
|
@@ -176,7 +186,7 @@ sap.ui.define([
|
|
|
176
186
|
}
|
|
177
187
|
|
|
178
188
|
if (isExpanded) {
|
|
179
|
-
|
|
189
|
+
this.getDomRef().classList.toggle('sapTntSideNavigationNotExpanded', !isExpanded);
|
|
180
190
|
|
|
181
191
|
if (itemAggregation) {
|
|
182
192
|
itemAggregation.setExpanded(isExpanded);
|
|
@@ -191,7 +201,11 @@ sap.ui.define([
|
|
|
191
201
|
}
|
|
192
202
|
|
|
193
203
|
that._hasActiveAnimation = true;
|
|
194
|
-
|
|
204
|
+
|
|
205
|
+
themeParams = this._mThemeParams || {};
|
|
206
|
+
expandedWidth = themeParams['_sap_tnt_SideNavigation_Width'] || "15rem";
|
|
207
|
+
collapsedWidth = themeParams['_sap_tnt_SideNavigation_CollapsedWidth'] || "3rem";
|
|
208
|
+
width = isExpanded ? expandedWidth : collapsedWidth;
|
|
195
209
|
|
|
196
210
|
$this.animate({
|
|
197
211
|
width: width
|
|
@@ -215,10 +229,10 @@ sap.ui.define([
|
|
|
215
229
|
return;
|
|
216
230
|
}
|
|
217
231
|
|
|
218
|
-
this
|
|
232
|
+
this.getDomRef().classList.toggle('sapTntSideNavigationNotExpandedWidth', !isExpanded);
|
|
219
233
|
|
|
220
234
|
if (!isExpanded) {
|
|
221
|
-
this
|
|
235
|
+
this.getDomRef().classList.toggle('sapTntSideNavigationNotExpanded', !isExpanded);
|
|
222
236
|
|
|
223
237
|
if (this.getAggregation('item')) {
|
|
224
238
|
this.getAggregation('item').setExpanded(isExpanded);
|
|
@@ -239,6 +253,15 @@ sap.ui.define([
|
|
|
239
253
|
setTimeout(this._toggleArrows.bind(this), 0);
|
|
240
254
|
};
|
|
241
255
|
|
|
256
|
+
SideNavigation.prototype._initThemeParams = function() {
|
|
257
|
+
this._mThemeParams = Parameters.get({
|
|
258
|
+
name: ["_sap_tnt_SideNavigation_Width", "_sap_tnt_SideNavigation_CollapsedWidth"],
|
|
259
|
+
callback: function (mParams) {
|
|
260
|
+
this._mThemeParams = mParams;
|
|
261
|
+
}.bind(this)
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
|
|
242
265
|
/**
|
|
243
266
|
* @private
|
|
244
267
|
*/
|
|
@@ -253,6 +276,10 @@ sap.ui.define([
|
|
|
253
276
|
}
|
|
254
277
|
|
|
255
278
|
this._deregisterControl();
|
|
279
|
+
|
|
280
|
+
if (!this._mThemeParams) {
|
|
281
|
+
this._initThemeParams();
|
|
282
|
+
}
|
|
256
283
|
};
|
|
257
284
|
|
|
258
285
|
/**
|
|
@@ -346,12 +373,12 @@ sap.ui.define([
|
|
|
346
373
|
* @private
|
|
347
374
|
*/
|
|
348
375
|
SideNavigation.prototype.exit = function () {
|
|
349
|
-
|
|
350
376
|
if (this._scroller) {
|
|
351
377
|
this._scroller.destroy();
|
|
352
378
|
this._scroller = null;
|
|
353
379
|
}
|
|
354
380
|
|
|
381
|
+
this._mThemeParams = null;
|
|
355
382
|
this._deregisterControl();
|
|
356
383
|
};
|
|
357
384
|
|
package/src/sap/tnt/ToolPage.js
CHANGED
package/src/sap/tnt/library.js
CHANGED
|
@@ -15,17 +15,15 @@ sap.ui.define(["sap/ui/core/library", "sap/m/library"],
|
|
|
15
15
|
* SAPUI5 library with controls specialized for administrative applications.
|
|
16
16
|
*
|
|
17
17
|
* @namespace
|
|
18
|
-
* @
|
|
18
|
+
* @alias sap.tnt
|
|
19
19
|
* @author SAP SE
|
|
20
|
-
* @version 1.
|
|
20
|
+
* @version 1.102.0
|
|
21
21
|
* @since 1.36
|
|
22
22
|
* @public
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
// delegate further initialization of this library to the Core
|
|
26
|
-
sap.ui.getCore().initLibrary({
|
|
24
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
27
25
|
name : "sap.tnt",
|
|
28
|
-
version: "1.
|
|
26
|
+
version: "1.102.0",
|
|
29
27
|
dependencies : ["sap.ui.core", "sap.m"],
|
|
30
28
|
designtime: "sap/tnt/designtime/library.designtime",
|
|
31
29
|
types: [
|
|
@@ -59,7 +57,7 @@ sap.ui.define(["sap/ui/core/library", "sap/m/library"],
|
|
|
59
57
|
* @public
|
|
60
58
|
* @ui5-metamodel This enumeration also will be described in the UI5 (legacy) designtime metamodel
|
|
61
59
|
*/
|
|
62
|
-
|
|
60
|
+
thisLib.RenderMode = {
|
|
63
61
|
/**
|
|
64
62
|
* When type of the content of <code>InfoLabel</code> is numeric paddings are narrow
|
|
65
63
|
* @public
|
|
@@ -83,6 +81,6 @@ sap.ui.define(["sap/ui/core/library", "sap/m/library"],
|
|
|
83
81
|
* @ui5-metamodel This interface also will be described in the UI5 (legacy) designtime metamodel
|
|
84
82
|
*/
|
|
85
83
|
|
|
86
|
-
return
|
|
84
|
+
return thisLib;
|
|
87
85
|
|
|
88
86
|
});
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
@_sap_tnt_InfoLabel_LineHeightDisplayOnly: 1rem;
|
|
9
9
|
@_sap_tnt_InfoLabel_HeightWithoutBorders: 0.875rem;
|
|
10
10
|
@_sap_tnt_InfoLabel_PaddingWhenEmpty: 0 @_sap_tnt_InfoLabel_HeightWithoutBorders/2;
|
|
11
|
+
@_sap_tnt_InfoLabel_DisplayModeBorder: none;
|
|
12
|
+
@_sap_tnt_InfoLabel_DisplayModeBackground: @sapTextColor;
|
|
13
|
+
@_sap_tnt_InfoLabel_DisplayModeColor: @sapContent_ContrastTextColor;
|
|
11
14
|
|
|
12
15
|
/* ==========================================================================
|
|
13
16
|
Root element
|
|
@@ -44,11 +47,11 @@
|
|
|
44
47
|
InfoLabel Display Only
|
|
45
48
|
========================================================================== */
|
|
46
49
|
.sapTntInfoLabel.sapTntInfoLabelDisplayOnly {
|
|
47
|
-
border:
|
|
48
|
-
background: @
|
|
50
|
+
border: @_sap_tnt_InfoLabel_DisplayModeBorder;
|
|
51
|
+
background: @_sap_tnt_InfoLabel_DisplayModeBackground;
|
|
49
52
|
|
|
50
53
|
.sapTntInfoLabelInner {
|
|
51
|
-
color: @
|
|
54
|
+
color: @_sap_tnt_InfoLabel_DisplayModeColor;
|
|
52
55
|
line-height: @_sap_tnt_InfoLabel_LineHeightDisplayOnly;
|
|
53
56
|
}
|
|
54
57
|
}
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
/* Base theme */
|
|
4
4
|
/* ======================================= */
|
|
5
5
|
|
|
6
|
+
@_sap_tnt_NavigationList_CollapsedWidth: 3rem;
|
|
7
|
+
@_sap_tnt_NavigationList_IconColor: @sapUiContentIconColor;
|
|
8
|
+
@_sap_tnt_NavigationList_IconFontSize: 1rem;
|
|
9
|
+
@_sap_tnt_NavigationList_ExpandIconColor: @sapUiContentIconColor;
|
|
6
10
|
@_sap_tnt_NavigationList_ItemHeight: 3rem;
|
|
7
11
|
@_sap_tnt_NavigationList_NoIconsGroupPadding: 1rem;
|
|
8
12
|
@_sap_tnt_NavigationList_NoIconsNestedItemPadding: 1rem;
|
|
@@ -49,8 +53,13 @@
|
|
|
49
53
|
color: @sapUiListTextColor;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
|
-
.
|
|
53
|
-
color: @
|
|
56
|
+
.sapTntNavLIGroupIcon {
|
|
57
|
+
color: @_sap_tnt_NavigationList_IconColor;
|
|
58
|
+
font-size: @_sap_tnt_NavigationList_IconFontSize;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sapTntNavLIExpandIcon {
|
|
62
|
+
color: @_sap_tnt_NavigationList_ExpandIconColor;
|
|
54
63
|
}
|
|
55
64
|
|
|
56
65
|
a {
|
|
@@ -58,20 +67,15 @@
|
|
|
58
67
|
height: 100%;
|
|
59
68
|
text-decoration: none;
|
|
60
69
|
outline: none;
|
|
61
|
-
|
|
62
|
-
display: -webkit-box;
|
|
63
|
-
display: -webkit-flex;
|
|
64
70
|
display: flex;
|
|
65
|
-
|
|
66
|
-
-webkit-box-align: center;
|
|
67
|
-
-webkit-align-items: center;
|
|
68
71
|
align-items: center;
|
|
72
|
+
justify-content: center;
|
|
69
73
|
}
|
|
70
74
|
}
|
|
71
75
|
|
|
72
76
|
.sapTntNavLIText {
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
flex: 1;
|
|
78
|
+
min-width: 0;
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
.sapTntNavLIPopup .sapTntNavLIGroupItem .sapMText {
|
|
@@ -130,7 +134,7 @@
|
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
.sapTntNavLICollapsed {
|
|
133
|
-
width:
|
|
137
|
+
width: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
.sapTntNavLI li,
|
|
@@ -221,12 +225,11 @@
|
|
|
221
225
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
222
226
|
|
|
223
227
|
span.sapTntNavLIGroupIcon {
|
|
224
|
-
|
|
225
|
-
padding: 0.6875rem 0;
|
|
228
|
+
width: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
226
229
|
}
|
|
227
230
|
|
|
228
231
|
.sapTntNavLIGroupItem .sapMText {
|
|
229
|
-
padding-left:
|
|
232
|
+
padding-left: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
230
233
|
}
|
|
231
234
|
}
|
|
232
235
|
|
|
@@ -275,8 +278,7 @@
|
|
|
275
278
|
.sapTntNavLI:not(.sapTntNavLINoIcons) {
|
|
276
279
|
|
|
277
280
|
span.sapTntNavLIGroupIcon {
|
|
278
|
-
|
|
279
|
-
padding: 0.5rem 0;
|
|
281
|
+
width: @_sap_tnt_NavigationList_CollapsedWidth;
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
284
|
}
|
|
@@ -3,19 +3,15 @@
|
|
|
3
3
|
/* Base theme */
|
|
4
4
|
/* ======================================= */
|
|
5
5
|
|
|
6
|
+
@_sap_tnt_SideNavigation_Width: 15rem;
|
|
7
|
+
@_sap_tnt_SideNavigation_CollapsedWidth: 3rem;
|
|
6
8
|
@_sap_tnt_SideNavigation_NavigationSeparatorBackgroundColor: @sapUiGroupContentBorderColor;
|
|
7
9
|
@_sap_tnt_SideNavigation_NavigationSeparatorHeight: 1px;
|
|
10
|
+
@_sap_tnt_SideNavigation_TriangleColor: @sapUiContentIconColor;
|
|
8
11
|
|
|
9
12
|
.sapTntSideNavigation {
|
|
10
|
-
display: -webkit-box;
|
|
11
|
-
display: -webkit-flex;
|
|
12
13
|
display: flex;
|
|
13
|
-
-webkit-box-direction: normal;
|
|
14
|
-
-webkit-box-orient: vertical;
|
|
15
|
-
-webkit-flex-direction: column;
|
|
16
14
|
flex-direction: column;
|
|
17
|
-
-webkit-box-flex: 1;
|
|
18
|
-
-webkit-flex-grow: 1;
|
|
19
15
|
flex-grow: 1;
|
|
20
16
|
box-sizing: border-box;
|
|
21
17
|
overflow: hidden;
|
|
@@ -24,11 +20,11 @@
|
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
.sapTntSideNavigation {
|
|
27
|
-
width:
|
|
23
|
+
width: @_sap_tnt_SideNavigation_Width;
|
|
28
24
|
}
|
|
29
25
|
|
|
30
26
|
.sapTntSideNavigation.sapTntSideNavigationNotExpandedWidth {
|
|
31
|
-
width:
|
|
27
|
+
width: @_sap_tnt_SideNavigation_CollapsedWidth;
|
|
32
28
|
}
|
|
33
29
|
|
|
34
30
|
.sapTntSideNavigationNotExpanded {
|
|
@@ -41,7 +37,7 @@
|
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
.sapTntSideNavigationFlexible {
|
|
44
|
-
padding-right:
|
|
40
|
+
padding-right: @_sap_tnt_SideNavigation_CollapsedWidth;
|
|
45
41
|
width: 6rem;
|
|
46
42
|
}
|
|
47
43
|
|
|
@@ -50,7 +46,7 @@
|
|
|
50
46
|
width: 0;
|
|
51
47
|
height: 0;
|
|
52
48
|
border-left: 0.375rem solid transparent;
|
|
53
|
-
border-bottom: 0.375rem solid @
|
|
49
|
+
border-bottom: 0.375rem solid @_sap_tnt_SideNavigation_TriangleColor;
|
|
54
50
|
position:absolute;
|
|
55
51
|
right: 0.1875rem;
|
|
56
52
|
bottom:0.125rem;
|
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
@_sap_tnt_ToolHeader_AvatarBackground: lighten(saturate(spin(@sapUiAccent6, 348), 36), 28);
|
|
7
7
|
@_sap_tnt_ToolHeader_AvatarColor: @sapUiBaseText;
|
|
8
8
|
@_sap_tnt_ToolHeader_BorderColor: contrast(@sapShellColor, @sapUiContentFocusColor, @sapUiContentContrastFocusColor, @sapContent_ContrastTextThreshold);
|
|
9
|
+
@_sap_tnt_ToolHeader_ArrowHeight: 0.1875rem;
|
|
10
|
+
@_sap_tnt_ToolHeader_ArrowMargin: 0;
|
|
11
|
+
@_sap_tnt_ToolHeader_Padding: 0 0.5rem;
|
|
12
|
+
@_sap_tnt_ToolHeader_ArrowMarginBottom: 0.188rem;
|
|
9
13
|
|
|
10
14
|
.sapTntToolHeaderPopover.sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll,
|
|
11
15
|
.sapTntToolHeaderPopover.sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll .sapMBtn {
|
|
@@ -23,7 +27,7 @@
|
|
|
23
27
|
.sapMIBar.sapTntToolHeader .sapMBarChild.sapMITH {
|
|
24
28
|
height: @_sap_tnt_ToolHeader_Height;
|
|
25
29
|
box-shadow: none;
|
|
26
|
-
padding:
|
|
30
|
+
padding: @_sap_tnt_ToolHeader_Padding;
|
|
27
31
|
flex: 1;
|
|
28
32
|
min-width: 0; // fixes Chrome flex issue
|
|
29
33
|
|
|
@@ -35,7 +39,8 @@
|
|
|
35
39
|
&:after {
|
|
36
40
|
border-radius: 0.125rem;
|
|
37
41
|
box-shadow: none;
|
|
38
|
-
margin-bottom:
|
|
42
|
+
margin-bottom: @_sap_tnt_ToolHeader_ArrowMarginBottom;
|
|
43
|
+
height: @_sap_tnt_ToolHeader_ArrowHeight;
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
}
|
|
@@ -48,7 +53,7 @@
|
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
.sapTntToolHeader .sapMITH .sapMITBContentArrow {
|
|
51
|
-
margin:
|
|
56
|
+
margin: @_sap_tnt_ToolHeader_ArrowMargin;
|
|
52
57
|
}
|
|
53
58
|
|
|
54
59
|
// ==========================================================================
|
|
@@ -10,13 +10,6 @@
|
|
|
10
10
|
@_sap_tnt_ToolPage_AsideWidth : 15rem;
|
|
11
11
|
@_sap_tnt_ToolPage_AsideWidthOnTablet : 3rem;
|
|
12
12
|
@_sap_tnt_ToolPage_HeaderHeight : 3rem;
|
|
13
|
-
@_sap_tnt_ToolPage_FooterHeight : 3rem;
|
|
14
|
-
|
|
15
|
-
@_sap_tnt_ToolPage_CompactAsideWidth : 15rem;
|
|
16
|
-
@_sap_tnt_ToolPage_CompactAsideWidthOnTablet : 3rem;
|
|
17
|
-
@_sap_tnt_ToolPage_CompactHeaderHeight : 3rem;
|
|
18
|
-
@_sap_tnt_ToolPage_CompactFooterHeight : 2rem;
|
|
19
|
-
|
|
20
13
|
@_sap_tnt_ToolPage_AnimationDuration : 0.3s;
|
|
21
14
|
|
|
22
15
|
/* ==========================================================================
|
|
@@ -70,11 +63,6 @@
|
|
|
70
63
|
height: 100%;
|
|
71
64
|
}
|
|
72
65
|
|
|
73
|
-
.sapTntToolPageAsideFooter {
|
|
74
|
-
height: @_sap_tnt_ToolPage_FooterHeight;
|
|
75
|
-
overflow: hidden;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
66
|
html:not([data-sap-ui-animation='off']) .sapTntToolPageMain {
|
|
79
67
|
transition: padding-left @_sap_tnt_ToolPage_AnimationDuration, transform @_sap_tnt_ToolPage_AnimationDuration;
|
|
80
68
|
}
|
|
@@ -159,71 +147,6 @@ html:not([data-sap-ui-animation='off']) .sapTntToolPageAside {
|
|
|
159
147
|
height: 100%;
|
|
160
148
|
}
|
|
161
149
|
|
|
162
|
-
.sapTntToolPageMainFooter {
|
|
163
|
-
height: @_sap_tnt_ToolPage_FooterHeight;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/* Compact size */
|
|
168
|
-
.sapUiSizeCompact {
|
|
169
|
-
|
|
170
|
-
.sapTntToolPageHeader {
|
|
171
|
-
height: @_sap_tnt_ToolPage_CompactHeaderHeight;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.sapTntToolPageAsideFooter {
|
|
175
|
-
height: @_sap_tnt_ToolPage_CompactFooterHeight;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.sapTntToolPageMainFooter {
|
|
179
|
-
height: @_sap_tnt_ToolPage_CompactFooterHeight;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.sap-desktop .sapUiSizeCompact,
|
|
184
|
-
.sap-tablet .sapUiSizeCompact {
|
|
185
|
-
.sapTntToolPageAside {
|
|
186
|
-
width: @_sap_tnt_ToolPage_CompactAsideWidth;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.sapTntToolPageAside + .sapTntToolPageMain {
|
|
190
|
-
padding-left: @_sap_tnt_ToolPage_CompactAsideWidth;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.sap-desktop .sapUiSizeCompact,
|
|
195
|
-
.sap-tablet .sapUiSizeCompact {
|
|
196
|
-
.sapTntToolPageAsideCollapsed {
|
|
197
|
-
.sapTntToolPageAside {
|
|
198
|
-
width: @_sap_tnt_ToolPage_CompactAsideWidthOnTablet;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.sapTntToolPageAside + .sapTntToolPageMain {
|
|
202
|
-
padding-left: @_sap_tnt_ToolPage_CompactAsideWidthOnTablet;
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.sap-phone .sapUiSizeCompact {
|
|
208
|
-
|
|
209
|
-
.sapTntToolPageAside {
|
|
210
|
-
width: @_sap_tnt_ToolPage_CompactAsideWidth;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.sapTntToolPageMain {
|
|
214
|
-
transform: translateX(@_sap_tnt_ToolPage_CompactAsideWidth);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
.sapTntToolPageAsideCollapsed {
|
|
218
|
-
.sapTntToolPageAside {
|
|
219
|
-
transform: translateX(-@_sap_tnt_ToolPage_CompactAsideWidth);
|
|
220
|
-
}
|
|
221
|
-
.sapTntToolPageMain {
|
|
222
|
-
transform: translateX(0);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
150
|
/* ==========================================================================
|
|
228
151
|
RTL
|
|
229
152
|
========================================================================== */
|
|
@@ -243,19 +166,4 @@ html[dir=rtl] {
|
|
|
243
166
|
}
|
|
244
167
|
}
|
|
245
168
|
}
|
|
246
|
-
|
|
247
|
-
&.sap-phone .sapUiSizeCompact {
|
|
248
|
-
.sapTntToolPageMain {
|
|
249
|
-
transform: translateX(-@_sap_tnt_ToolPage_CompactAsideWidth);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.sapTntToolPageAsideCollapsed {
|
|
253
|
-
.sapTntToolPageAside {
|
|
254
|
-
transform: translateX(@_sap_tnt_ToolPage_CompactAsideWidth);
|
|
255
|
-
}
|
|
256
|
-
.sapTntToolPageMain {
|
|
257
|
-
transform: translateX(0);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
169
|
}
|