@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.
Files changed (114) hide show
  1. package/.eslintrc.json +18 -0
  2. package/THIRDPARTY.txt +5 -5
  3. package/package.json +3 -3
  4. package/src/sap/tnt/.library +1 -1
  5. package/src/sap/tnt/InfoLabel.js +1 -1
  6. package/src/sap/tnt/NavigationList.js +1 -1
  7. package/src/sap/tnt/NavigationListItem.js +5 -3
  8. package/src/sap/tnt/SideNavigation.js +34 -7
  9. package/src/sap/tnt/ToolHeader.js +1 -1
  10. package/src/sap/tnt/ToolHeaderUtilitySeparator.js +1 -1
  11. package/src/sap/tnt/ToolPage.js +1 -1
  12. package/src/sap/tnt/library.js +6 -8
  13. package/src/sap/tnt/themes/base/InfoLabel.less +6 -3
  14. package/src/sap/tnt/themes/base/NavigationList.less +18 -16
  15. package/src/sap/tnt/themes/base/SideNavigation.less +7 -11
  16. package/src/sap/tnt/themes/base/ToolHeader.less +8 -3
  17. package/src/sap/tnt/themes/base/ToolPage.less +0 -92
  18. package/src/sap/tnt/themes/base/illustrations/metadata.json +19 -1
  19. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartArea.svg +14 -0
  20. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartArea2.svg +12 -0
  21. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBPMNFlow.svg +13 -0
  22. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBar.svg +12 -0
  23. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartBullet.svg +14 -0
  24. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartDoughnut.svg +13 -0
  25. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartFlow.svg +13 -0
  26. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartGantt.svg +17 -0
  27. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartOrg.svg +15 -0
  28. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ChartPie.svg +12 -0
  29. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-CodePlaceholder.svg +5 -5
  30. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Company.svg +12 -12
  31. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Components.svg +9 -0
  32. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-ExternalLink.svg +10 -10
  33. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-FaceID.svg +16 -16
  34. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Fingerprint.svg +15 -15
  35. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Lock.svg +11 -11
  36. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Mission.svg +17 -17
  37. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Radar.svg +14 -14
  38. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Secrets.svg +11 -0
  39. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Services.svg +15 -15
  40. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SessionExpired.svg +10 -10
  41. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SessionExpiring.svg +9 -9
  42. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Success.svg +9 -9
  43. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-SuccessfulAuth.svg +9 -9
  44. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Systems.svg +11 -0
  45. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Teams.svg +17 -0
  46. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Tools.svg +12 -0
  47. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-UnableToLoad.svg +9 -0
  48. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-Unlock.svg +11 -11
  49. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-UnsuccessfulAuth.svg +10 -10
  50. package/src/sap/tnt/themes/base/illustrations/tnt-Dialog-User2.svg +13 -0
  51. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartArea.svg +22 -0
  52. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartArea2.svg +19 -0
  53. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBPMNFlow.svg +21 -0
  54. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBar.svg +19 -0
  55. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartBullet.svg +20 -0
  56. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartDoughnut.svg +19 -0
  57. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartFlow.svg +20 -0
  58. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartGantt.svg +26 -0
  59. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartOrg.svg +26 -0
  60. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ChartPie.svg +18 -0
  61. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-CodePlaceholder.svg +8 -8
  62. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Company.svg +29 -29
  63. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Components.svg +16 -0
  64. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-ExternalLink.svg +13 -13
  65. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-FaceID.svg +20 -20
  66. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Fingerprint.svg +34 -34
  67. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Lock.svg +21 -21
  68. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Mission.svg +18 -18
  69. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Radar.svg +19 -19
  70. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Secrets.svg +14 -0
  71. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Services.svg +16 -16
  72. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SessionExpired.svg +17 -17
  73. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SessionExpiring.svg +16 -16
  74. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Success.svg +17 -17
  75. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-SuccessfulAuth.svg +19 -19
  76. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Systems.svg +12 -0
  77. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Teams.svg +20 -0
  78. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Tools.svg +18 -0
  79. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-UnableToLoad.svg +20 -0
  80. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-Unlock.svg +14 -14
  81. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-UnsuccessfulAuth.svg +21 -21
  82. package/src/sap/tnt/themes/base/illustrations/tnt-Scene-User2.svg +22 -0
  83. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartArea.svg +13 -0
  84. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartArea2.svg +7 -0
  85. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBPMNFlow.svg +9 -0
  86. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBar.svg +8 -0
  87. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartBullet.svg +10 -0
  88. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartDoughnut.svg +9 -0
  89. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartFlow.svg +8 -0
  90. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartGantt.svg +12 -0
  91. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartOrg.svg +6 -0
  92. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ChartPie.svg +8 -0
  93. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-CodePlaceholder.svg +5 -5
  94. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Company.svg +12 -12
  95. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Components.svg +5 -0
  96. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-ExternalLink.svg +8 -8
  97. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-FaceID.svg +15 -15
  98. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Fingerprint.svg +9 -9
  99. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Lock.svg +12 -12
  100. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Mission.svg +16 -16
  101. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Radar.svg +13 -13
  102. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Secrets.svg +9 -0
  103. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Services.svg +13 -14
  104. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SessionExpired.svg +8 -8
  105. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SessionExpiring.svg +8 -8
  106. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Success.svg +8 -8
  107. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-SuccessfulAuth.svg +8 -8
  108. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Systems.svg +10 -0
  109. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Teams.svg +13 -0
  110. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Tools.svg +7 -0
  111. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-UnableToLoad.svg +8 -0
  112. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-Unlock.svg +10 -10
  113. package/src/sap/tnt/themes/base/illustrations/tnt-Spot-UnsuccessfulAuth.svg +9 -9
  114. 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.0.0-rc.12
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: 1.4.1
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.0.0-rc.12
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.0.0-rc.12
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.34
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.99.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.99.1",
18
- "@openui5/sap.ui.core": "1.99.1"
17
+ "@openui5/sap.m": "1.102.0",
18
+ "@openui5/sap.ui.core": "1.102.0"
19
19
  }
20
20
  }
@@ -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.99.1</version>
9
+ <version>1.102.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with responsive controls.</documentation>
12
12
 
@@ -47,7 +47,7 @@ sap.ui.define([
47
47
  * @extends sap.ui.core.Control
48
48
  *
49
49
  * @author SAP SE
50
- * @version 1.99.1
50
+ * @version 1.102.0
51
51
  *
52
52
  * @constructor
53
53
  * @public
@@ -41,7 +41,7 @@ sap.ui.define([
41
41
  * @extends sap.ui.core.Control
42
42
  *
43
43
  * @author SAP SE
44
- * @version 1.99.1
44
+ * @version 1.102.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -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.99.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
- $container.toggleClass('sapTntNavLIHiddenGroupItems');
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
- $container.toggleClass('sapTntNavLIHiddenGroupItems');
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.99.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
- $this.toggleClass('sapTntSideNavigationNotExpanded', !isExpanded);
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
- width = isExpanded ? '15rem' : '3rem';
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.$().toggleClass('sapTntSideNavigationNotExpandedWidth', !isExpanded);
232
+ this.getDomRef().classList.toggle('sapTntSideNavigationNotExpandedWidth', !isExpanded);
219
233
 
220
234
  if (!isExpanded) {
221
- this.$().toggleClass('sapTntSideNavigationNotExpanded', !isExpanded);
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
 
@@ -120,7 +120,7 @@ sap.ui.define([
120
120
  * @implements sap.tnt.IToolHeader
121
121
  *
122
122
  * @author SAP SE
123
- * @version 1.99.1
123
+ * @version 1.102.0
124
124
  *
125
125
  * @constructor
126
126
  * @public
@@ -24,7 +24,7 @@ sap.ui.define([
24
24
  * @extends sap.ui.core.Control
25
25
  *
26
26
  * @author SAP SE
27
- * @version 1.99.1
27
+ * @version 1.102.0
28
28
  *
29
29
  * @constructor
30
30
  * @public
@@ -36,7 +36,7 @@ sap.ui.define([
36
36
  * @extends sap.ui.core.Control
37
37
  *
38
38
  * @author SAP SE
39
- * @version 1.99.1
39
+ * @version 1.102.0
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -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
- * @name sap.tnt
18
+ * @alias sap.tnt
19
19
  * @author SAP SE
20
- * @version 1.99.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.99.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
- sap.tnt.RenderMode = {
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 sap.tnt;
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: none;
48
- background: @sapTextColor;
50
+ border: @_sap_tnt_InfoLabel_DisplayModeBorder;
51
+ background: @_sap_tnt_InfoLabel_DisplayModeBackground;
49
52
 
50
53
  .sapTntInfoLabelInner {
51
- color: @sapContent_ContrastTextColor;
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
- .sapUiIcon {
53
- color: @sapUiContentIconColor;
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
- width: 100%;
74
- display: block;
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: 3rem;
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
- min-width: 2.75rem;
225
- padding: 0.6875rem 0;
228
+ width: @_sap_tnt_NavigationList_CollapsedWidth;
226
229
  }
227
230
 
228
231
  .sapTntNavLIGroupItem .sapMText {
229
- padding-left: 2.75rem;
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
- min-width: 2.75rem;
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: 15rem;
23
+ width: @_sap_tnt_SideNavigation_Width;
28
24
  }
29
25
 
30
26
  .sapTntSideNavigation.sapTntSideNavigationNotExpandedWidth {
31
- width: 3rem;
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: 3rem;
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 @sapUiContentIconColor;
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: 0 0.5rem;
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: 0.188rem;
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: 0;
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
  }