@openui5/sap.tnt 1.102.2 → 1.104.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 CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "overrides": [
3
3
  /*
4
- * Productive code, sample and unit test code of sap.tnt has been cleaned up.
4
+ * Productive code and test code of sap.tnt has been cleaned up.
5
5
  * No more references to the global jQuery allowed
6
6
  */
7
7
  {
8
8
  "files": [
9
9
  "src/**/*.js",
10
- "test/sap/tnt/demokit/**/*.js",
11
- "test/sap/tnt/qunit/**/*.js"
10
+ "test/**/*.js"
12
11
  ],
13
12
  "globals": {
14
13
  "jQuery": "off"
package/.reuse/dep5 CHANGED
@@ -137,6 +137,11 @@ Copyright: jQuery Foundation and other contributors
137
137
  License: MIT
138
138
  Comment: these files belong to: QUnit 2
139
139
 
140
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
141
+ Copyright: jQuery Foundation and other contributors
142
+ License: MIT
143
+ Comment: these files belong to: QUnit 2.18
144
+
140
145
  Files: src/sap.ui.core/src/sap/ui/thirdparty/jquery-compat.js
141
146
  Copyright: OpenJS Foundation and other contributors
142
147
  License: MIT
@@ -234,6 +239,11 @@ Copyright: 2010-2017, Christian Johansen, christian@cjohansen.no
234
239
  License: BSD-3-Clause
235
240
  Comment: these files belong to: SinonJS
236
241
 
242
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
243
+ Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
244
+ License: BSD-3-Clause
245
+ Comment: these files belong to: SinonJS 14
246
+
237
247
  Files: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
238
248
  Copyright: 2010-2011, Christian Johansen
239
249
  License: BSD-3-Clause
@@ -339,6 +349,13 @@ Copyright:
339
349
  License: Apache-2.0 and ISC
340
350
  Comment: these files contain content from SAP and node-lru-cache: LRUPersistentCache.js is overall written by SAP, but portions ('Least Recently Used' logic) are taken from the node-lru-cache project (see https://github.com/isaacs/node-lru-cache/blob/v2.7.3/README.md) and modified.
341
351
 
352
+ Files: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
353
+ Copyright:
354
+ 2009-2022 SAP SE or an SAP affiliate company and OpenUI5 contributors
355
+ Arthur David Olson, Paul Eggert and other contributors
356
+ License: Apache-2.0 and LicenseRef-tzdata-PublicDomain
357
+ Comment: these files contain content from SAP and Time Zone Database: _timezones.js is overall written by SAP, but the list of IANA timezone IDs is taken from the Timezone Database
358
+
342
359
 
343
360
  # Library: sap.ui.documentation:
344
361
 
@@ -0,0 +1,5 @@
1
+ Unless specified below, all files in the tz code and data (including
2
+ this LICENSE file) are in the public domain.
3
+
4
+ If the files date.c, newstrftime.3, and strftime.c are present, they
5
+ contain material derived from BSD and use the BSD 3-clause license.
package/THIRDPARTY.txt CHANGED
@@ -76,6 +76,12 @@ License: MIT
76
76
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
77
77
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-2.*
78
78
 
79
+ Component: QUnit 2.18, version: 2.18.0
80
+ Copyright: jQuery Foundation and other contributors
81
+ License: MIT
82
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
83
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/qunit-2.18.*
84
+
79
85
  Component: jQuery-Migrate, version: 3.3.1
80
86
  Copyright: OpenJS Foundation and other contributors
81
87
  License: MIT
@@ -191,13 +197,19 @@ License: BSD-3-Clause
191
197
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
192
198
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-4.js
193
199
 
200
+ Component: SinonJS 14, version: 14.0.0
201
+ Copyright: 2010-2022, Christian Johansen, christian@cjohansen.no
202
+ License: BSD-3-Clause
203
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
204
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/thirdparty/sinon-14.0.*
205
+
194
206
  Component: Sinon-qunit, version: 2.0.0
195
207
  Copyright: 2010-2011, Christian Johansen
196
208
  License: BSD-3-Clause
197
209
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
198
210
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/sinon-qunit.js
199
211
 
200
- Component: URI.js, version: 1.19.10
212
+ Component: URI.js, version: 1.19.11
201
213
  Copyright: Rodney Rehm
202
214
  License: MIT
203
215
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
@@ -315,6 +327,12 @@ License: ISC
315
327
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/ISC.txt
316
328
  Contained in: src/sap.ui.core/src/sap/ui/core/cache/LRUPersistentCache.js
317
329
 
330
+ Component: Time Zone Database, version: 2022a
331
+ Copyright: Arthur David Olson, Paul Eggert and other contributors
332
+ License: LicenseRef-tzdata-PublicDomain
333
+ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-tzdata-PublicDomain.txt
334
+ Contained in: src/sap.ui.core/test/sap/ui/core/qunit/i18n/helper/_timezones.js
335
+
318
336
 
319
337
  Library: sap.ui.documentation:
320
338
 
@@ -450,7 +468,7 @@ License: Apache-2.0
450
468
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
451
469
  Contained in: lib/jsdoc/ui5/plugin.js
452
470
 
453
- Component: SAP Theming Base Content, version: 11.1.39
471
+ Component: SAP Theming Base Content, version: 11.1.40
454
472
  Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
455
473
  License: Apache-2.0
456
474
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
@@ -980,6 +998,21 @@ END of license: LicenseRef-JSONinJSPublicDomain
980
998
  =================================
981
999
 
982
1000
 
1001
+ =================================
1002
+ BEGIN of license: LicenseRef-tzdata-PublicDomain
1003
+ =================================
1004
+
1005
+ Unless specified below, all files in the tz code and data (including
1006
+ this LICENSE file) are in the public domain.
1007
+
1008
+ If the files date.c, newstrftime.3, and strftime.c are present, they
1009
+ contain material derived from BSD and use the BSD 3-clause license.
1010
+
1011
+ =================================
1012
+ END of license: LicenseRef-tzdata-PublicDomain
1013
+ =================================
1014
+
1015
+
983
1016
  =================================
984
1017
  BEGIN of license: MIT
985
1018
  =================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.tnt",
3
- "version": "1.102.2",
3
+ "version": "1.104.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.102.2",
18
- "@openui5/sap.ui.core": "1.102.2"
17
+ "@openui5/sap.m": "1.104.0",
18
+ "@openui5/sap.ui.core": "1.104.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.102.2</version>
9
+ <version>1.104.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.102.2
50
+ * @version 1.104.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.102.2
44
+ * @version 1.104.0
45
45
  *
46
46
  * @constructor
47
47
  * @public
@@ -270,7 +270,7 @@ sap.ui.define([
270
270
  /**
271
271
  * Gets the currently selected <code>NavigationListItem</code>.
272
272
  * @public
273
- * @return {sap.tnt.NavigationListItem|null} The selected item or null if nothing is selected
273
+ * @return {sap.tnt.NavigationListItem|null} The selected item or <code>null</code> if nothing is selected
274
274
  */
275
275
  NavigationList.prototype.getSelectedItem = function () {
276
276
  var selectedItem = this.getAssociation('selectedItem');
@@ -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.102.2
35
+ * @version 1.104.0
36
36
  *
37
37
  * @constructor
38
38
  * @public
@@ -940,21 +940,26 @@ sap.ui.define(["sap/ui/thirdparty/jquery", "./library", 'sap/ui/core/Core', "sap
940
940
  this._updateAccessibilityText();
941
941
  };
942
942
 
943
-
944
943
  NavigationListItem.prototype._updateAccessibilityText = function() {
945
944
  var invisibleText = NavigationListItem._getInvisibleText(),
946
945
  navList = this.getNavigationList(),
947
946
  bundle = this._resourceBundleMLib,
948
- accType = navList.getExpanded() ? bundle.getText("ACC_CTR_TYPE_TREEITEM") : '',
949
947
  $focusedItem = this._getAccessibilityItem(),
950
- mPosition = this._getAccessibilityPosition(),
951
- itemPosition = bundle.getText("LIST_ITEM_POSITION", [mPosition.index, mPosition.size]),
952
948
  selected = navList._selectedItem === this ? bundle.getText("LIST_ITEM_SELECTED") : '',
953
- itemText = navList.getExpanded() ? this.getText() : "",
949
+ text = selected;
950
+
951
+ // for role "treeitem" we have to manually describe the role and position
952
+ if (navList.getExpanded()) {
953
+ var accType = bundle.getText("ACC_CTR_TYPE_TREEITEM"),
954
+ mPosition = this._getAccessibilityPosition(),
955
+ itemPosition = bundle.getText("LIST_ITEM_POSITION", [mPosition.index, mPosition.size]),
956
+ itemText = this.getText();
957
+
958
+ itemPosition = bundle.getText("LIST_ITEM_POSITION", [mPosition.index, mPosition.size]);
954
959
  text = accType + " " + selected + " " + itemText + " " + itemPosition;
960
+ }
955
961
 
956
962
  invisibleText.setText(text);
957
-
958
963
  $focusedItem.addAriaLabelledBy(invisibleText.getId());
959
964
  };
960
965
 
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @extends sap.ui.core.Control
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.102.2
45
+ * @version 1.104.0
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -120,7 +120,7 @@ sap.ui.define([
120
120
  * @implements sap.tnt.IToolHeader
121
121
  *
122
122
  * @author SAP SE
123
- * @version 1.102.2
123
+ * @version 1.104.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.102.2
27
+ * @version 1.104.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.102.2
39
+ * @version 1.104.0
40
40
  *
41
41
  * @constructor
42
42
  * @public
@@ -24,13 +24,27 @@ sap.ui.define([
24
24
  * @param {sap.tnt.ToolPage} oControl an object representation of the control that should be rendered
25
25
  */
26
26
  ToolPageRenderer.render = function (oRM, oControl) {
27
- var oHeader = oControl.getHeader(),
28
- oSubHeader = oControl.getSubHeader();
29
-
30
27
  oRM.openStart("div", oControl)
31
28
  .class("sapTntToolPage")
32
29
  .openEnd();
33
30
 
31
+ this.renderHeaderWrapper(oRM, oControl);
32
+
33
+ this.renderContentWrapper(oRM, oControl);
34
+
35
+ oRM.close("div");
36
+ };
37
+
38
+ ToolPageRenderer.renderHeaderWrapper = function (oRM, oControl) {
39
+ var oHeader = oControl.getHeader(),
40
+ oSubHeader = oControl.getSubHeader();
41
+
42
+ if (oHeader || oSubHeader) {
43
+ oRM.openStart("div")
44
+ .class("sapTntToolPageHeaderWrapper")
45
+ .openEnd();
46
+ }
47
+
34
48
  if (oHeader) {
35
49
  oRM.openStart("header").openEnd();
36
50
 
@@ -59,10 +73,10 @@ sap.ui.define([
59
73
  oRM.close("header");
60
74
  }
61
75
 
76
+ if (oHeader || oSubHeader) {
77
+ oRM.close("div");
78
+ }
62
79
 
63
- this.renderContentWrapper(oRM, oControl);
64
-
65
- oRM.close("div");
66
80
  };
67
81
 
68
82
  ToolPageRenderer.renderContentWrapper = function (oRM, oControl) {
@@ -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.102.2
20
+ * @version 1.104.0
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.102.2",
26
+ version: "1.104.0",
27
27
  dependencies : ["sap.ui.core", "sap.m"],
28
28
  designtime: "sap/tnt/designtime/library.designtime",
29
29
  types: [
@@ -10,6 +10,7 @@
10
10
  @_sap_tnt_ToolHeader_ArrowMargin: 0;
11
11
  @_sap_tnt_ToolHeader_Padding: 0 0.5rem;
12
12
  @_sap_tnt_ToolHeader_ArrowMarginBottom: 0.188rem;
13
+ @_sap_tnt_ToolHeader_IconTabHeader_Height: @_sap_tnt_ToolHeader_Height;
13
14
 
14
15
  .sapTntToolHeaderPopover.sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll,
15
16
  .sapTntToolHeaderPopover.sapMOTAPopover.sapMPopover .sapMPopoverCont .sapMPopoverScroll .sapMBtn {
@@ -25,7 +26,7 @@
25
26
  // ==========================================================================
26
27
 
27
28
  .sapMIBar.sapTntToolHeader .sapMBarChild.sapMITH {
28
- height: @_sap_tnt_ToolHeader_Height;
29
+ height: @_sap_tnt_ToolHeader_IconTabHeader_Height;
29
30
  box-shadow: none;
30
31
  padding: @_sap_tnt_ToolHeader_Padding;
31
32
  flex: 1;
@@ -56,18 +57,6 @@
56
57
  margin: @_sap_tnt_ToolHeader_ArrowMargin;
57
58
  }
58
59
 
59
- // ==========================================================================
60
- // sap.m.Avatar / sap.f.Avatar overriding
61
- // ==========================================================================
62
-
63
- .sapTntToolHeader .sapFAvatar {
64
- background-color: @_sap_tnt_ToolHeader_AvatarBackground;
65
- .sapFAvatarInitialsHolder,
66
- .sapUiIcon.sapFAvatarTypeIcon {
67
- color: @_sap_tnt_ToolHeader_AvatarColor;
68
- }
69
- }
70
-
71
60
  // ==========================================================================
72
61
  // sap.m.MenuButton overriding
73
62
  // ==========================================================================
@@ -11,6 +11,7 @@
11
11
  @_sap_tnt_ToolPage_AsideWidthOnTablet : 3rem;
12
12
  @_sap_tnt_ToolPage_HeaderHeight : 3rem;
13
13
  @_sap_tnt_ToolPage_AnimationDuration : 0.3s;
14
+ @_sap_tnt_ToolPage_HeaderShadow: none;
14
15
 
15
16
  /* ==========================================================================
16
17
  Root element
@@ -36,6 +37,22 @@
36
37
  height: @_sap_tnt_ToolPage_HeaderHeight;
37
38
  }
38
39
 
40
+ .sapTntToolPageHeaderWrapper {
41
+ box-shadow: @_sap_tnt_ToolPage_HeaderShadow;
42
+ z-index: 2; // bring header above content wrapper to draw drop shadow over the content
43
+ }
44
+
45
+ /* ==========================================================================
46
+ Subheader
47
+ ========================================================================== */
48
+ .sapTntToolPage header + header .sapTntToolPageHeader {
49
+ height: auto;
50
+
51
+ .sapTntToolHeader {
52
+ height: auto;
53
+ }
54
+ }
55
+
39
56
  /* ==========================================================================
40
57
  Content wrapper
41
58
  ========================================================================== */