@openui5/sap.tnt 1.136.2 → 1.138.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 (72) hide show
  1. package/REUSE.toml +0 -28
  2. package/THIRDPARTY.txt +0 -24
  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 +90 -80
  7. package/src/sap/tnt/NavigationListGroup.js +15 -22
  8. package/src/sap/tnt/NavigationListItem.js +36 -45
  9. package/src/sap/tnt/NavigationListItemBase.js +109 -65
  10. package/src/sap/tnt/NavigationListMenuItem.js +52 -157
  11. package/src/sap/tnt/NavigationListMenuItemRenderer.js +121 -0
  12. package/src/sap/tnt/NavigationListRenderer.js +7 -1
  13. package/src/sap/tnt/SideNavigation.js +32 -6
  14. package/src/sap/tnt/ToolHeader.js +1 -1
  15. package/src/sap/tnt/ToolHeaderUtilitySeparator.js +1 -1
  16. package/src/sap/tnt/ToolPage.js +1 -1
  17. package/src/sap/tnt/library.js +2 -2
  18. package/src/sap/tnt/messagebundle.properties +14 -2
  19. package/src/sap/tnt/messagebundle_ar.properties +8 -0
  20. package/src/sap/tnt/messagebundle_bg.properties +8 -0
  21. package/src/sap/tnt/messagebundle_ca.properties +8 -0
  22. package/src/sap/tnt/messagebundle_cnr.properties +8 -0
  23. package/src/sap/tnt/messagebundle_cs.properties +8 -0
  24. package/src/sap/tnt/messagebundle_cy.properties +8 -0
  25. package/src/sap/tnt/messagebundle_da.properties +8 -0
  26. package/src/sap/tnt/messagebundle_de.properties +8 -0
  27. package/src/sap/tnt/messagebundle_el.properties +8 -0
  28. package/src/sap/tnt/messagebundle_en.properties +8 -0
  29. package/src/sap/tnt/messagebundle_en_GB.properties +8 -0
  30. package/src/sap/tnt/messagebundle_en_US_saprigi.properties +8 -0
  31. package/src/sap/tnt/messagebundle_es.properties +8 -0
  32. package/src/sap/tnt/messagebundle_es_MX.properties +8 -0
  33. package/src/sap/tnt/messagebundle_et.properties +8 -0
  34. package/src/sap/tnt/messagebundle_fi.properties +8 -0
  35. package/src/sap/tnt/messagebundle_fr.properties +8 -0
  36. package/src/sap/tnt/messagebundle_fr_CA.properties +8 -0
  37. package/src/sap/tnt/messagebundle_hi.properties +8 -0
  38. package/src/sap/tnt/messagebundle_hr.properties +8 -0
  39. package/src/sap/tnt/messagebundle_hu.properties +8 -0
  40. package/src/sap/tnt/messagebundle_id.properties +8 -0
  41. package/src/sap/tnt/messagebundle_it.properties +8 -0
  42. package/src/sap/tnt/messagebundle_iw.properties +8 -0
  43. package/src/sap/tnt/messagebundle_ja.properties +8 -0
  44. package/src/sap/tnt/messagebundle_kk.properties +8 -0
  45. package/src/sap/tnt/messagebundle_ko.properties +8 -0
  46. package/src/sap/tnt/messagebundle_lt.properties +8 -0
  47. package/src/sap/tnt/messagebundle_lv.properties +8 -0
  48. package/src/sap/tnt/messagebundle_mk.properties +8 -0
  49. package/src/sap/tnt/messagebundle_ms.properties +8 -0
  50. package/src/sap/tnt/messagebundle_nl.properties +8 -0
  51. package/src/sap/tnt/messagebundle_no.properties +8 -0
  52. package/src/sap/tnt/messagebundle_pl.properties +8 -0
  53. package/src/sap/tnt/messagebundle_pt.properties +8 -0
  54. package/src/sap/tnt/messagebundle_pt_PT.properties +8 -0
  55. package/src/sap/tnt/messagebundle_ro.properties +8 -0
  56. package/src/sap/tnt/messagebundle_ru.properties +8 -0
  57. package/src/sap/tnt/messagebundle_sh.properties +8 -0
  58. package/src/sap/tnt/messagebundle_sk.properties +8 -0
  59. package/src/sap/tnt/messagebundle_sl.properties +8 -0
  60. package/src/sap/tnt/messagebundle_sr.properties +8 -0
  61. package/src/sap/tnt/messagebundle_sv.properties +8 -0
  62. package/src/sap/tnt/messagebundle_th.properties +8 -0
  63. package/src/sap/tnt/messagebundle_tr.properties +8 -0
  64. package/src/sap/tnt/messagebundle_uk.properties +8 -0
  65. package/src/sap/tnt/messagebundle_vi.properties +8 -0
  66. package/src/sap/tnt/messagebundle_zh_CN.properties +8 -0
  67. package/src/sap/tnt/messagebundle_zh_TW.properties +8 -0
  68. package/src/sap/tnt/themes/base/NavigationList.less +51 -48
  69. package/src/sap/tnt/themes/base/fonts/SAP-icons-TNT.json +9 -1
  70. package/src/sap/tnt/themes/base/fonts/SAP-icons-TNT.woff2 +0 -0
  71. package/src/sap/tnt/themes/base/fonts/horizon/SAP-icons-TNT.woff2 +0 -0
  72. package/src/sap/tnt/themes/sap_hcb/base_NavigationList.less +52 -87
package/REUSE.toml CHANGED
@@ -238,27 +238,6 @@ SPDX-FileCopyrightText = [
238
238
  SPDX-License-Identifier = "Apache-2.0 and MIT"
239
239
  SPDX-FileComment = "these files contain content from SAP and JUnit Reporter for QUnit: qunit-junit.js is overall written by SAP, but contains a modified copy of JUnit Reporter for QUnit (qunit-reporter-junit)"
240
240
 
241
- [[annotations]]
242
- path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js"
243
- precedence = "aggregate"
244
- SPDX-FileCopyrightText = "2012 Matteo Spinelli"
245
- SPDX-License-Identifier = "MIT"
246
- SPDX-FileComment = "these files belong to: cubiq.org - iScroll"
247
-
248
- [[annotations]]
249
- path = "src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js"
250
- precedence = "aggregate"
251
- SPDX-FileCopyrightText = "2011 Matteo Spinelli"
252
- SPDX-License-Identifier = "MIT"
253
- SPDX-FileComment = "these files belong to: cubiq.org - iScroll Lite"
254
-
255
- [[annotations]]
256
- path = "src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js"
257
- precedence = "aggregate"
258
- SPDX-FileCopyrightText = "2012 Matteo Spinelli"
259
- SPDX-License-Identifier = "MIT"
260
- SPDX-FileComment = "these files belong to: cubiq.org - swipeview"
261
-
262
241
  [[annotations]]
263
242
  path = "src/sap.ui.core/src/sap/ui/thirdparty/zyngascroll.js"
264
243
  precedence = "aggregate"
@@ -308,13 +287,6 @@ SPDX-FileCopyrightText = "1991-2024 Unicode, Inc."
308
287
  SPDX-License-Identifier = "LicenseRef-Unicode-3.0"
309
288
  SPDX-FileComment = "these files belong to: Unicode Common Locale Data Repository"
310
289
 
311
- [[annotations]]
312
- path = "src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**"
313
- precedence = "aggregate"
314
- SPDX-FileCopyrightText = "2010-2013, Acid Media"
315
- SPDX-License-Identifier = "MIT"
316
- SPDX-FileComment = "these files belong to: MobiScroll"
317
-
318
290
  [[annotations]]
319
291
  path = [
320
292
  "src/sap.ui.core/src/sap/ui/thirdparty/sinon.js",
package/THIRDPARTY.txt CHANGED
@@ -133,24 +133,6 @@ License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
133
133
  Contained in: src/sap.ui.core/src/sap/ui/thirdparty/qunit-reporter-junit.js
134
134
  src/sap.ui.core/src/sap/ui/qunit/qunit-junit.js
135
135
 
136
- Component: cubiq.org - iScroll, version: 4.2.5
137
- Copyright: 2012 Matteo Spinelli
138
- License: MIT
139
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
140
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll.js
141
-
142
- Component: cubiq.org - iScroll Lite, version: 4.1.6
143
- Copyright: 2011 Matteo Spinelli
144
- License: MIT
145
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
146
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/iscroll-lite.js
147
-
148
- Component: cubiq.org - swipeview, version: 1.0
149
- Copyright: 2012 Matteo Spinelli
150
- License: MIT
151
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
152
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/swipe-view.js
153
-
154
136
  Component: Zynga Scroller, version: 1.2.1-0-g5d43806
155
137
  Copyright: 2011 Zynga Inc.
156
138
  License: MIT
@@ -193,12 +175,6 @@ License: LicenseRef-Unicode-3.0
193
175
  License Text: https://github.com/SAP/openui5/blob/master/LICENSES/LicenseRef-Unicode-3.0.txt
194
176
  Contained in: src/sap.ui.core/src/sap/ui/core/cldr/**
195
177
 
196
- Component: MobiScroll, version: 2.9.0
197
- Copyright: 2010-2013, Acid Media
198
- License: MIT
199
- License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
200
- Contained in: src/sap.ui.core/src/sap/ui/thirdparty/mobiscroll/**
201
-
202
178
  Component: SinonJS, version: 1.14.1
203
179
  Copyright: 2010-2014, Christian Johansen, christian@cjohansen.no
204
180
  License: BSD-3-Clause
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.tnt",
3
- "version": "1.136.2",
3
+ "version": "1.138.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.136.2",
18
- "@openui5/sap.ui.core": "1.136.2"
17
+ "@openui5/sap.m": "1.138.0",
18
+ "@openui5/sap.ui.core": "1.138.0"
19
19
  }
20
20
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>OpenUI5
7
7
  * (c) Copyright 2025 SAP SE or an SAP affiliate company.
8
8
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
9
- <version>1.136.2</version>
9
+ <version>1.138.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.136.2
51
+ * @version 1.138.0
52
52
  *
53
53
  * @constructor
54
54
  * @public
@@ -13,6 +13,7 @@ sap.ui.define([
13
13
  "sap/ui/core/Control",
14
14
  "sap/ui/core/ResizeHandler",
15
15
  "sap/ui/core/Popup",
16
+ "sap/m/library",
16
17
  "sap/m/Popover",
17
18
  "sap/ui/core/delegate/ItemNavigation",
18
19
  "sap/ui/core/InvisibleText",
@@ -20,7 +21,6 @@ sap.ui.define([
20
21
  "./NavigationListMenuItem",
21
22
  "./NavigationListRenderer",
22
23
  "sap/m/Menu",
23
- "sap/m/MenuItem",
24
24
  "sap/base/Log"
25
25
  ], function (
26
26
  library,
@@ -30,6 +30,7 @@ sap.ui.define([
30
30
  Control,
31
31
  ResizeHandler,
32
32
  Popup,
33
+ mLibrary,
33
34
  Popover,
34
35
  ItemNavigation,
35
36
  InvisibleText,
@@ -37,11 +38,13 @@ sap.ui.define([
37
38
  NavigationListMenuItem,
38
39
  NavigationListRenderer,
39
40
  Menu,
40
- MenuItem,
41
41
  Log
42
42
  ) {
43
43
  "use strict";
44
44
 
45
+ // shortcut for sap.m.PlacementType
46
+ var PlacementType = mLibrary.PlacementType;
47
+
45
48
  /**
46
49
  * Constructor for a new <code>NavigationList</code>.
47
50
  *
@@ -54,7 +57,7 @@ sap.ui.define([
54
57
  * @extends sap.ui.core.Control
55
58
  *
56
59
  * @author SAP SE
57
- * @version 1.136.2
60
+ * @version 1.138.0
58
61
  *
59
62
  * @constructor
60
63
  * @public
@@ -127,11 +130,36 @@ sap.ui.define([
127
130
  * Fired when an item is pressed.
128
131
  */
129
132
  itemPress: {
133
+ allowPreventDefault: true,
130
134
  parameters: {
131
135
  /**
132
136
  * The pressed item.
133
137
  */
134
- item: { type: "sap.ui.core.Item" }
138
+ item: { type: "sap.ui.core.Item" },
139
+ /**
140
+ * Indicates whether the CTRL key was pressed when the link was selected.
141
+ * @since 1.137
142
+ */
143
+ ctrlKey: { type: "boolean" },
144
+ /**
145
+ * Indicates whether the Shift key was pressed when the link was selected.
146
+ * @since 1.137
147
+ */
148
+ shiftKey: { type: "boolean" },
149
+ /**
150
+ * Indicates whether the Alt key was pressed when the link was selected.
151
+ * @since 1.137
152
+ */
153
+ altKey: { type: "boolean" },
154
+ /**
155
+ * Indicates whether the "meta" key was pressed when the link was selected.
156
+ *
157
+ * On Macintosh keyboards, this is the command key (⌘).
158
+ * On Windows keyboards, this is the windows key (⊞).
159
+ *
160
+ * @since 1.137
161
+ */
162
+ metaKey: { type: "boolean" }
135
163
  }
136
164
  }
137
165
  }
@@ -195,6 +223,9 @@ sap.ui.define([
195
223
  */
196
224
  NavigationList.prototype.onAfterRendering = function () {
197
225
  this._oItemNavigation.setRootDomRef(this.getDomRef());
226
+
227
+ this._animateExpandCollapse();
228
+
198
229
  this._updateNavItems();
199
230
 
200
231
  if (this.getExpanded()) {
@@ -208,6 +239,35 @@ sap.ui.define([
208
239
  Theming.attachApplied(this._handleThemeAppliedBound);
209
240
  };
210
241
 
242
+ NavigationList.prototype._animateExpandCollapse = function () {
243
+ const aAllItems = this.getItems().flatMap((item) => [item, ...item.getItems()]);
244
+ const oAnimateExpandItem = aAllItems.find((oItem) => oItem._animateExpand);
245
+
246
+ if (oAnimateExpandItem) {
247
+ oAnimateExpandItem._animateExpand = false;
248
+ oAnimateExpandItem.$()
249
+ .find(".sapTntNLIItemsContainer")
250
+ .first()
251
+ .stop(true, true)
252
+ .slideDown("fast", () => {
253
+ oAnimateExpandItem.$().find(".sapTntNLIItemsContainer").first().removeClass("sapTntNLIItemsContainerHidden");
254
+ });
255
+ }
256
+
257
+ const oAnimateCollapseItem = aAllItems.find((oItem) => oItem._animateCollapse);
258
+
259
+ if (oAnimateCollapseItem) {
260
+ oAnimateCollapseItem._animateCollapse = false;
261
+ oAnimateCollapseItem.$()
262
+ .find(".sapTntNLIItemsContainer")
263
+ .first()
264
+ .stop(true, true)
265
+ .slideUp("fast", () => {
266
+ oAnimateCollapseItem.$().find(".sapTntNLIItemsContainer").first().addClass("sapTntNLIItemsContainerHidden");
267
+ });
268
+ }
269
+ };
270
+
211
271
  NavigationList.prototype._deregisterResizeHandler = function () {
212
272
  if (this._sResizeListenerId) {
213
273
  ResizeHandler.deregister(this._sResizeListenerId);
@@ -299,93 +359,30 @@ sap.ui.define([
299
359
  oOpener.getDomRef().querySelector(".sapTntNLI").classList.add("sapTntNLIActive");
300
360
 
301
361
  const oMenu = this._createOverflowMenu(oOpener);
362
+
363
+ const oPopover = oMenu._getPopover();
364
+ oPopover.setPlacement(PlacementType.Right);
365
+
302
366
  oMenu.openBy(oOpener, false, Popup.Dock.EndCenter);
303
367
  };
304
368
 
305
369
  NavigationList.prototype._createOverflowMenu = function (opener) {
306
370
  const oMenu = new Menu({
307
- items: this._createNavigationMenuItems(),
308
- itemSelected: (oEvent) => {
309
- const oMenuItem = oEvent.getParameter("item");
310
- const oNavigationItem = oMenuItem._navItem;
311
-
312
- oNavigationItem._firePress({
313
- item: oNavigationItem
314
- });
315
-
316
- if (oNavigationItem.getSelectable()) {
317
- this._selectItem({
318
- item: oNavigationItem
319
- });
320
-
321
- const oSelectedItemDomRef = this.getDomRef().querySelector(".sapTntNLISelected [tabindex]");
322
- oSelectedItemDomRef?.focus();
323
- }
324
-
325
- if (oNavigationItem.getSelectable() || !oMenuItem.getItems().length) {
326
- oMenu.close();
327
- oMenu.destroy();
328
- }
329
- },
330
371
  closed: function () {
331
372
  opener.getDomRef().querySelector(".sapTntNLI").classList.remove("sapTntNLIActive");
332
373
  }
333
374
  });
334
375
 
335
- oMenu.addStyleClass("sapTntNLMenu");
336
-
337
- // override this method, so we can have a selection
338
- // on a menu item with subitems
339
- oMenu._handleMenuItemSelect = function (oEvent) {
340
- const oUnfdItem = oEvent.getParameter("item");
341
- if (!oUnfdItem) {
342
- return;
343
- }
344
-
345
- const oMenuItem = this._findMenuItemByUnfdMenuItem(oUnfdItem);
346
- if (oMenuItem) {
347
- this.fireItemSelected({ item: oMenuItem });
348
- }
349
- }.bind(oMenu);
350
-
351
- oMenu._createVisualMenuItemFromItem = function(oItem) {
352
- var sUfMenuItemId = this._generateUnifiedMenuItemId(oItem.getId()),
353
- oUfMenuItem = Element.getElementById(sUfMenuItemId),
354
- aCustomData = oItem.getCustomData(), i;
355
-
356
- if (oUfMenuItem) {
357
- return oUfMenuItem;
358
- }
359
-
360
- oUfMenuItem = new NavigationListMenuItem({
361
- id: sUfMenuItemId,
362
- icon: oItem.getIcon(),
363
- text: oItem.getText(),
364
- startsSection: oItem.getStartsSection(),
365
- tooltip: oItem.getTooltip(),
366
- visible: oItem.getVisible(),
367
- enabled: oItem.getEnabled(),
368
- href: oItem._navItem.getHref(),
369
- target: oItem._navItem.getTarget()
370
- });
371
-
372
- for (i = 0; i < aCustomData.length; i++) {
373
- oItem._addCustomData(oUfMenuItem, aCustomData[i]);
374
- }
375
-
376
- oItem.aDelegates.forEach(function(oDelegateObject) {
377
- oUfMenuItem.addEventDelegate(oDelegateObject.oDelegate, oDelegateObject.vThis);
378
- });
379
-
380
- return oUfMenuItem;
381
- }.bind(oMenu);
376
+ oMenu.applySettings({
377
+ items: this._createNavigationMenuItems(oMenu)
378
+ });
382
379
 
380
+ oMenu.addStyleClass("sapTntNLMenu");
383
381
  this.addDependent(oMenu);
384
-
385
382
  return oMenu;
386
383
  };
387
384
 
388
- NavigationList.prototype._createNavigationMenuItems = function () {
385
+ NavigationList.prototype._createNavigationMenuItems = function (oMenu) {
389
386
  var items = [],
390
387
  menuItems = [];
391
388
 
@@ -402,22 +399,30 @@ sap.ui.define([
402
399
  return;
403
400
  }
404
401
 
405
- var menuItem = new MenuItem({
402
+ var menuItem = new NavigationListMenuItem({
406
403
  icon: item.getIcon(),
407
404
  text: item.getText(),
408
405
  tooltip: item.getTooltip_AsString() || item.getText(),
409
- enabled: item.getEnabled()
406
+ visible: item.getVisible(),
407
+ enabled: item.getEnabled(),
408
+ href: item.getHref(),
409
+ target: item.getTarget()
410
410
  });
411
411
  menuItem._navItem = item;
412
+ menuItem._oMenu = oMenu;
412
413
 
413
414
  item.getItems().forEach(function (subItem) {
414
- var subMenuItem = new MenuItem({
415
+ var subMenuItem = new NavigationListMenuItem({
415
416
  icon: subItem.getIcon(),
416
417
  text: subItem.getText(),
417
418
  tooltip: subItem.getTooltip_AsString() || subItem.getText(),
418
- enabled: subItem.getEnabled()
419
+ visible: subItem.getVisible(),
420
+ enabled: subItem.getEnabled(),
421
+ href: subItem.getHref(),
422
+ target: subItem.getTarget()
419
423
  });
420
424
  subMenuItem._navItem = subItem;
425
+ subMenuItem._oMenu = oMenu;
421
426
 
422
427
  menuItem.addItem(subMenuItem);
423
428
  });
@@ -568,6 +573,10 @@ sap.ui.define([
568
573
  oSelectedItem = null;
569
574
  }
570
575
 
576
+ if (this._oPopover) {
577
+ this._oPopover.destroy();
578
+ }
579
+
571
580
  this._oPopover = new Popover({
572
581
  showHeader: false,
573
582
  horizontalScrolling: false,
@@ -584,6 +593,7 @@ sap.ui.define([
584
593
  ariaLabelledBy: InvisibleText.getStaticId("sap.tnt", "NAVIGATION_LIST_DIALOG_TITLE")
585
594
  }).addStyleClass("sapContrast sapContrastPlus sapTntNLPopover");
586
595
 
596
+ this.addDependent(this._oPopover);
587
597
  this._oPopover._adaptPositionParams = this._adaptPopoverPositionParams;
588
598
  this._oPopover.openBy(oOpener.getDomRef("a"));
589
599
  };
@@ -10,6 +10,9 @@ sap.ui.define([
10
10
  ], function (library, NavigationListItemBase) {
11
11
  "use strict";
12
12
 
13
+ const EXPAND_ICON_SRC = "sap-icon://navigation-right-arrow";
14
+ const COLLAPSE_ICON_SRC = "sap-icon://navigation-down-arrow";
15
+
13
16
  /**
14
17
  * Constructor for a new NavigationListGroup.
15
18
  *
@@ -21,7 +24,7 @@ sap.ui.define([
21
24
  * @extends sap.tnt.NavigationListItemBase
22
25
  *
23
26
  * @author SAP SE
24
- * @version 1.136.2
27
+ * @version 1.138.0
25
28
  *
26
29
  * @constructor
27
30
  * @public
@@ -89,14 +92,12 @@ sap.ui.define([
89
92
  }
90
93
 
91
94
  const sSubtreeId = `${this.getId()}-subtree`;
92
- if (bEnabled) {
93
- oRM.attr("tabindex", "-1")
94
- .accessibilityState({
95
- role: "treeitem",
96
- owns: sSubtreeId,
97
- expanded: oNavigationList.getExpanded() && this.getExpanded() ? "true" : "false"
98
- });
99
- }
95
+ oRM.attr("tabindex", "-1")
96
+ .accessibilityState({
97
+ role: "treeitem",
98
+ owns: sSubtreeId,
99
+ expanded: oNavigationList.getExpanded() && this.getExpanded() ? "true" : "false"
100
+ });
100
101
 
101
102
  const sTooltip = this.getTooltip_AsString() || this.getText();
102
103
  if (sTooltip) {
@@ -111,7 +112,9 @@ sap.ui.define([
111
112
  .text(this.getText())
112
113
  .close("span");
113
114
 
114
- oRM.renderControl(this._getExpandIconControl());
115
+ const oIcon = this._getExpandIconControl();
116
+ oIcon.setSrc(this.getExpanded() ? COLLAPSE_ICON_SRC : EXPAND_ICON_SRC);
117
+ oRM.renderControl(oIcon);
115
118
 
116
119
  oRM.close("div");
117
120
 
@@ -122,7 +125,7 @@ sap.ui.define([
122
125
  label: this.getText()
123
126
  });
124
127
 
125
- if (!this.getExpanded()) {
128
+ if (!this.getExpanded() && !this._animateCollapse || this._animateExpand) {
126
129
  oRM.class("sapTntNLIItemsContainerHidden");
127
130
  }
128
131
 
@@ -164,7 +167,7 @@ sap.ui.define([
164
167
  const oFocusRef = this.getFocusDomRef(),
165
168
  aDomRefs = this.getItems().flatMap((item) => item._getFocusDomRefs());
166
169
 
167
- if (!this.getEnabled() || !this.getVisible()) {
170
+ if (!this.getVisible()) {
168
171
  return [];
169
172
  }
170
173
 
@@ -175,16 +178,6 @@ sap.ui.define([
175
178
  return aDomRefs;
176
179
  };
177
180
 
178
- /**
179
- * Gets DOM reference of the accessibility element.
180
- *
181
- * @private
182
- * @returns {HTMLElement} dom ref
183
- */
184
- NavigationListGroup.prototype._getAccessibilityRef = function () {
185
- return this.getDomRef().querySelector(".sapTntNLGroup");
186
- };
187
-
188
181
  NavigationListGroup.prototype._getExpandIconStyleClass = function () {
189
182
  return "sapTntNLGroupIcon";
190
183
  };