@openui5/sap.tnt 1.130.0 → 1.131.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 CHANGED
@@ -468,7 +468,7 @@ License: Apache-2.0
468
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
469
469
  Contained in: lib/jsdoc/ui5/plugin.js
470
470
 
471
- Component: SAP Theming Base Content, version: 11.18.0
471
+ Component: SAP Theming Base Content, version: 11.22.0
472
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
473
473
  License: Apache-2.0
474
474
  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.130.0",
3
+ "version": "1.131.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.130.0",
18
- "@openui5/sap.ui.core": "1.130.0"
17
+ "@openui5/sap.m": "1.131.0",
18
+ "@openui5/sap.ui.core": "1.131.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2009-2024 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.130.0</version>
9
+ <version>1.131.0</version>
10
10
 
11
11
  <documentation>SAPUI5 library with responsive controls.</documentation>
12
12
 
@@ -48,7 +48,7 @@ sap.ui.define([
48
48
  * @extends sap.ui.core.Control
49
49
  *
50
50
  * @author SAP SE
51
- * @version 1.130.0
51
+ * @version 1.131.0
52
52
  *
53
53
  * @constructor
54
54
  * @public
@@ -54,7 +54,7 @@ sap.ui.define([
54
54
  * @extends sap.ui.core.Control
55
55
  *
56
56
  * @author SAP SE
57
- * @version 1.130.0
57
+ * @version 1.131.0
58
58
  *
59
59
  * @constructor
60
60
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @extends sap.tnt.NavigationListItemBase
22
22
  *
23
23
  * @author SAP SE
24
- * @version 1.130.0
24
+ * @version 1.131.0
25
25
  *
26
26
  * @constructor
27
27
  * @public
@@ -12,6 +12,7 @@ sap.ui.define([
12
12
  "sap/ui/core/Renderer",
13
13
  "sap/ui/core/IconPool",
14
14
  "sap/ui/core/library",
15
+ "sap/ui/events/KeyCodes",
15
16
  "sap/ui/util/openWindow",
16
17
  "sap/ui/util/defaultLinkTypes",
17
18
  "./NavigationListItemBase"
@@ -22,6 +23,7 @@ sap.ui.define([
22
23
  Renderer,
23
24
  IconPool,
24
25
  coreLibrary,
26
+ KeyCodes,
25
27
  openWindow,
26
28
  defaultLinkTypes,
27
29
  NavigationListItemBase
@@ -50,7 +52,7 @@ sap.ui.define([
50
52
  * @extends sap.tnt.NavigationListItemBase
51
53
  *
52
54
  * @author SAP SE
53
- * @version 1.130.0
55
+ * @version 1.131.0
54
56
  *
55
57
  * @constructor
56
58
  * @public
@@ -281,8 +283,44 @@ sap.ui.define([
281
283
  }
282
284
  };
283
285
 
284
- NavigationListItem.prototype.onsapenter = NavigationListItem.prototype.ontap;
285
- NavigationListItem.prototype.onsapspace = NavigationListItem.prototype.ontap;
286
+ NavigationListItem.prototype.onkeydown = function (oEvent) {
287
+ if (oEvent.isMarked("subItem")) {
288
+ return;
289
+ }
290
+
291
+ const bHasModifierKey = this._hasModifierKey(oEvent);
292
+
293
+ if ((oEvent.key ? oEvent.key === "Enter" : oEvent.keyCode === KeyCodes.ENTER) && !bHasModifierKey) {
294
+ this.getDomRef().classList.add("sapTntNLIActive");
295
+ this.ontap(oEvent);
296
+ } else if ((oEvent.key ? oEvent.key === " " : oEvent.keyCode === KeyCodes.SPACE) && !bHasModifierKey) {
297
+ this.getDomRef().classList.add("sapTntNLIActive");
298
+ }
299
+
300
+ NavigationListItemBase.prototype.onkeydown.apply(this, arguments);
301
+ };
302
+
303
+ NavigationListItemBase.prototype.onkeyup = function (oEvent) {
304
+ if (oEvent.isMarked("subItem")) {
305
+ return;
306
+ }
307
+
308
+ const bHasModifierKey = this._hasModifierKey(oEvent);
309
+
310
+ if ((oEvent.key ? oEvent.key === "Enter" : oEvent.keyCode === KeyCodes.ENTER) && !bHasModifierKey) {
311
+ this.getDomRef().classList.remove("sapTntNLIActive");
312
+ } else if ((oEvent.key ? oEvent.key === " " : oEvent.keyCode === KeyCodes.SPACE)) {
313
+ this.getDomRef().classList.remove("sapTntNLIActive");
314
+
315
+ if (!bHasModifierKey) {
316
+ this.ontap(oEvent);
317
+ }
318
+ }
319
+
320
+ if (oEvent.srcControl.getLevel() === 1) {
321
+ oEvent.setMarked("subItem");
322
+ }
323
+ };
286
324
 
287
325
  /**
288
326
  * Renders the item.
@@ -763,5 +801,9 @@ sap.ui.define([
763
801
 
764
802
  NavigationListItem.prototype.onmouseover = NavigationListItem.prototype.onfocusout;
765
803
 
804
+ NavigationListItem.prototype._hasModifierKey = function hasModifierKeys(oEvent) {
805
+ return oEvent.shiftKey || oEvent.altKey || oEvent.ctrlKey || oEvent.metaKey;
806
+ };
807
+
766
808
  return NavigationListItem;
767
809
  });
@@ -29,7 +29,7 @@ sap.ui.define([
29
29
  * @extends sap.ui.core.Item
30
30
  *
31
31
  * @author SAP SE
32
- * @version 1.130.0
32
+ * @version 1.131.0
33
33
  *
34
34
  * @constructor
35
35
  * @public
@@ -266,6 +266,10 @@ sap.ui.define([
266
266
  * @private
267
267
  */
268
268
  NavigationListItemBase.prototype.onkeydown = function (oEvent) {
269
+ if (oEvent.key ? oEvent.key === " " : oEvent.keyCode === KeyCodes.SPACE) {
270
+ oEvent.preventDefault();
271
+ }
272
+
269
273
  if (!this._isListExpanded()) {
270
274
  return;
271
275
  }
@@ -274,7 +278,9 @@ sap.ui.define([
274
278
  return;
275
279
  }
276
280
 
277
- oEvent.setMarked("subItem");
281
+ if (oEvent.srcControl.getLevel() === 1) {
282
+ oEvent.setMarked("subItem");
283
+ }
278
284
 
279
285
  if (this.getLevel() !== 0) {
280
286
  return;
@@ -35,10 +35,10 @@ sap.ui.define([
35
35
  *
36
36
  * @class
37
37
  * Represents a navigation list menu item.
38
- * @extends sap.ui.unified.MenuItemBase
38
+ * @extends sap.ui.unified.MenuItem
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.130.0
41
+ * @version 1.131.0
42
42
  *
43
43
  * @constructor
44
44
  * @private
@@ -33,7 +33,7 @@ sap.ui.define([
33
33
  * @extends sap.ui.core.Control
34
34
  *
35
35
  * @author SAP SE
36
- * @version 1.130.0
36
+ * @version 1.131.0
37
37
  *
38
38
  * @constructor
39
39
  * @public
@@ -123,7 +123,7 @@ sap.ui.define([
123
123
  * @implements sap.tnt.IToolHeader
124
124
  *
125
125
  * @author SAP SE
126
- * @version 1.130.0
126
+ * @version 1.131.0
127
127
  *
128
128
  * @constructor
129
129
  * @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.130.0
27
+ * @version 1.131.0
28
28
  *
29
29
  * @constructor
30
30
  * @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.130.0
44
+ * @version 1.131.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -22,14 +22,14 @@ sap.ui.define([
22
22
  * @namespace
23
23
  * @alias sap.tnt
24
24
  * @author SAP SE
25
- * @version 1.130.0
25
+ * @version 1.131.0
26
26
  * @since 1.36
27
27
  * @public
28
28
  */
29
29
  var thisLib = Library.init({
30
30
  apiVersion: 2,
31
31
  name : "sap.tnt",
32
- version: "1.130.0",
32
+ version: "1.131.0",
33
33
  dependencies : ["sap.ui.core", "sap.m"],
34
34
  designtime: "sap/tnt/designtime/library.designtime",
35
35
  types: [
@@ -329,10 +329,12 @@
329
329
  }
330
330
 
331
331
  .sapTntNLI:not(.sapTntNLIDisabled).sapTntNLIActive,
332
+ .sapTntNLIActive .sapTntNLIFirstLevel.sapTntNLI:not(.sapTntNLIDisabled),
332
333
  .sapTntNLCollapsed.sapTntNLIFirstLevel.sapTntNLISelected,
333
334
  .sapTntNL .sapTntNLGroup.sapTntNLI:not(.sapTntNLIDisabled):active,
334
335
  .sapTntNL .sapTntNLIFirstLevel.sapTntNLI:not(.sapTntNLIDisabled):active,
335
- .sapTntNL .sapTntNLISecondLevel.sapTntNLI:not(.sapTntNLIDisabled):active {
336
+ .sapTntNL .sapTntNLISecondLevel.sapTntNLI:not(.sapTntNLIDisabled):active,
337
+ .sapTntNL .sapTntNLISecondLevel.sapTntNLI:not(.sapTntNLIDisabled).sapTntNLIActive {
336
338
  background: @sapUiListActiveBackground;
337
339
 
338
340
  &::before {
@@ -12,7 +12,6 @@
12
12
  @_sap_tnt_SideNavigation_NavigationSeparatorHeight: 1px;
13
13
  @_sap_tnt_SideNavigation_TriangleColor: @sapUiContentIconColor;
14
14
  @_sap_tnt_SideNavigation_BorderRight: 1px solid @sapUiGroupContentBorderColor;
15
- @_sap_tnt_SideNavigation_BorderRadius: 0;
16
15
  @_sap_tnt_SideNavigation_PhoneBorderRadius: 0;
17
16
  @_sap_tnt_SideNavigation_BoxShadow: none;
18
17
  @_sap_tnt_SideNavigation_TriangleDisplay: block;
@@ -25,9 +24,8 @@
25
24
  min-height: 0;
26
25
  background: @sapUiListBackground;
27
26
  border-right: @_sap_tnt_SideNavigation_BorderRight;
28
- box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
29
- border-radius: @_sap_tnt_SideNavigation_BorderRadius;
30
27
  min-width: @_sap_tnt_SideNavigation_Width;
28
+ box-shadow: @_sap_tnt_SideNavigation_BoxShadow;
31
29
  max-width: 100%;
32
30
  width: @_sap_tnt_SideNavigation_Width;
33
31
  transition: width 0.3s, min-width 0.3s;
@@ -103,10 +101,6 @@ html.sap-phone {
103
101
  position: relative;
104
102
  }
105
103
 
106
- html.sap-desktop:not(.sapUiNativeScrollbars) .sapTntSideNavigation ::-webkit-scrollbar {
107
- border-radius: @_sap_tnt_SideNavigation_BorderRadius;
108
- }
109
-
110
104
  /* Compact size
111
105
  ========================================================================== */
112
106
 
@@ -4,8 +4,6 @@
4
4
  /* =================================== */
5
5
 
6
6
  @_sap_tnt_ToolHeader_Height: 3rem;
7
- @_sap_tnt_ToolHeader_BorderRadius: 0;
8
- @_sap_tnt_ToolHeader_BoxShadow: none;
9
7
  @_sap_tnt_ToolHeader_AvatarBackground: lighten(saturate(spin(@sapUiAccent6, 348), 36), 28);
10
8
  @_sap_tnt_ToolHeader_AvatarColor: @sapUiBaseText;
11
9
  @_sap_tnt_ToolHeader_BorderColor: contrast(@sapUiShellColor, @sapUiContentFocusColor, @sapUiContentContrastFocusColor, @sapUiContentContrastTextThreshold);
@@ -17,8 +15,6 @@
17
15
 
18
16
  .sapTntToolHeader.sapMTB {
19
17
  height: @_sap_tnt_ToolHeader_Height;
20
- border-radius: @_sap_tnt_ToolHeader_BorderRadius;
21
- box-shadow: @_sap_tnt_ToolHeader_BoxShadow;
22
18
  }
23
19
 
24
20
  // ==========================================================================
@@ -32,6 +28,7 @@
32
28
 
33
29
  .sapMIBar.sapTntToolHeader:not(.sapUshellShellToolHeader) .sapMBarChild.sapMITH {
34
30
  box-shadow: none;
31
+ border-bottom: none;
35
32
  height: @_sap_tnt_ToolHeader_IconTabHeader_Height;
36
33
  padding: @_sap_tnt_ToolHeader_Padding;
37
34
 
@@ -7,25 +7,16 @@
7
7
  Variables
8
8
  ========================================================================== */
9
9
  @_sap_tnt_ToolPage_AnimationDuration : 0.3s;
10
- @_sap_tnt_ToolPage_Paddings: 0;
11
- @_sap_tnt_ToolPage_PaddingsTablet: 0;
12
- @_sap_tnt_ToolPage_PaddingsPhone: 0;
13
10
  @_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
11
  @_sap_tnt_ToolPage_ContentBackgroundStandard: none;
20
12
  @_sap_tnt_ToolPage_ContentBackgroundSolid: none;
21
13
  @_sap_tnt_ToolPage_ContentBackgroundTransparent: none;
22
14
  @_sap_tnt_ToolPage_ContentBackgroundList: none;
23
- @_sap_tnt_ToolPage_ContentBorderRadius: 0;
24
- @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone: 0;
25
15
  @_sap_tnt_ToolPage_AsideCollapsedPhoneTransform: -100%;
26
16
  @_sap_tnt_ToolPage_AsideCollapsedPhoneTransformRtl: 100%;
27
17
  @_sap_tnt_ToolPage_AsidePhoneTop: 0;
28
18
  @_sap_tnt_ToolPage_AsidePhoneWidth: auto;
19
+ @_sap_tnt_ToolHeader_Shadow: none;
29
20
 
30
21
  /* ==========================================================================
31
22
  Root element
@@ -36,16 +27,21 @@
36
27
  right: 0;
37
28
  bottom: 0;
38
29
  left: 0;
39
-
40
30
  display: flex;
41
31
  flex-direction: column;
42
-
43
32
  box-sizing: border-box;
44
33
  overflow: hidden;
45
- padding: @_sap_tnt_ToolPage_Paddings;
46
34
  background: @_sap_tnt_ToolPage_Background;
47
35
  }
48
36
 
37
+ /* ==========================================================================
38
+ Header wrapper
39
+ ========================================================================== */
40
+ .sapTntToolPageHeaderWrapper {
41
+ z-index: 3;
42
+ box-shadow: @_sap_tnt_ToolHeader_Shadow;
43
+ }
44
+
49
45
  /* ==========================================================================
50
46
  Content wrapper
51
47
  ========================================================================== */
@@ -63,9 +59,8 @@
63
59
  max-width: 100%;
64
60
  display: flex;
65
61
  flex-direction: column;
66
-
67
62
  will-change: transform;
68
- margin: @_sap_tnt_ToolPage_AsideMargins;
63
+ z-index: 2;
69
64
  }
70
65
 
71
66
  .sapTntToolPageAsideContent {
@@ -79,20 +74,7 @@ html:not([data-sap-ui-animation='off']) .sapTntToolPageAside {
79
74
  transition: transform @_sap_tnt_ToolPage_AnimationDuration;
80
75
  }
81
76
 
82
- html.sap-tablet:not(html.sap-combi) {
83
- .sapTntToolPage {
84
- padding: @_sap_tnt_ToolPage_PaddingsTablet;
85
- }
86
-
87
- .sapTntToolPageMain {
88
- border-radius: @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone;
89
- }
90
- }
91
-
92
77
  html.sap-phone {
93
- .sapTntToolPage {
94
- padding: @_sap_tnt_ToolPage_PaddingsPhone;
95
- }
96
78
 
97
79
  .sapTntToolPageAside {
98
80
  z-index: 2;
@@ -101,8 +83,6 @@ html.sap-phone {
101
83
  bottom: 0;
102
84
  top: @_sap_tnt_ToolPage_AsidePhoneTop;
103
85
  width: @_sap_tnt_ToolPage_AsidePhoneWidth;
104
-
105
- margin: @_sap_tnt_ToolPage_AsideMarginsPhone;
106
86
  }
107
87
 
108
88
  .sapTntToolPageAsideCollapsed {
@@ -110,11 +90,6 @@ html.sap-phone {
110
90
  transform: translateX(@_sap_tnt_ToolPage_AsideCollapsedPhoneTransform);
111
91
  }
112
92
  }
113
-
114
- .sapTntToolPageMain {
115
- border-radius: @_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone;
116
- margin: @_sap_tnt_ToolPage_ContentMarginsPhone;
117
- }
118
93
  }
119
94
 
120
95
  /* Main container
@@ -126,11 +101,7 @@ html.sap-phone {
126
101
  flex: 1;
127
102
  min-width: 0; // fixes flex chrome issue
128
103
  overflow: hidden;
129
-
130
104
  will-change: transform;
131
- margin: @_sap_tnt_ToolPage_ContentMargins;
132
- box-shadow: @_sap_tnt_ToolPage_ContentShadow;
133
- border-radius: @_sap_tnt_ToolPage_ContentBorderRadius;
134
105
  background: @_sap_tnt_ToolPage_ContentBackgroundStandard;
135
106
  }
136
107