@ui5/webcomponents-base 2.9.0-rc.0 → 2.9.0-rc.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.9.0-rc.2](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.1...v2.9.0-rc.2) (2025-03-27)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **framework:** .d.ts errors that require skipLibCheck ([#11189](https://github.com/SAP/ui5-webcomponents/issues/11189)) ([92f0e68](https://github.com/SAP/ui5-webcomponents/commit/92f0e68c3b3b71ff27f707621b8b3da2248a2719))
12
+ * **framework:** fix find first focusable element ([#10984](https://github.com/SAP/ui5-webcomponents/issues/10984)) ([40303d5](https://github.com/SAP/ui5-webcomponents/commit/40303d54ce3fcc06ad980e12224be9f13ce8a983))
13
+
14
+
15
+
16
+
17
+
18
+ # [2.9.0-rc.1](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.0...v2.9.0-rc.1) (2025-03-20)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * keep export paths in base in sync ([#11082](https://github.com/SAP/ui5-webcomponents/issues/11082)) ([8620ac8](https://github.com/SAP/ui5-webcomponents/commit/8620ac8823256ecf34ba70b4c06210253a3e5d14))
24
+
25
+
26
+
27
+
28
+
6
29
  # [2.9.0-rc.0](https://github.com/SAP/ui5-webcomponents/compare/v2.8.1-rc.0...v2.9.0-rc.0) (2025-03-13)
7
30
 
8
31
 
@@ -0,0 +1,48 @@
1
+ import { getFirstFocusableElement } from "@ui5/webcomponents-base/dist/util/FocusableElements.js";
2
+ import SideNavigation from "@ui5/webcomponents-fiori/dist/SideNavigation.js";
3
+ import SideNavigationItem from "@ui5/webcomponents-fiori/dist/SideNavigationItem.js";
4
+ import SideNavigationSubItem from "@ui5/webcomponents-fiori/dist/SideNavigationSubItem.js";
5
+ import Button from "@ui5/webcomponents/dist/Button.js";
6
+ import Input from "@ui5/webcomponents/dist/Input.js";
7
+
8
+ describe("FocusableElements", () => {
9
+ it("Tests first focusable element", () => {
10
+ cy.mount(
11
+ <>
12
+ <div id="container">
13
+ <Input tabindex="-1"></Input>
14
+ <br/>
15
+ <SideNavigation>
16
+ <SideNavigationItem
17
+ text="Home"
18
+ icon="home"
19
+ href="#home"
20
+ title="Home tooltip"></SideNavigationItem>
21
+ <SideNavigationItem text="People" href="#people" expanded icon="group">
22
+ <SideNavigationSubItem
23
+ id="subItem1"
24
+ selected
25
+ text="Should be Focused When Open"></SideNavigationSubItem>
26
+ <SideNavigationSubItem text="Sub Item 2"></SideNavigationSubItem>
27
+ </SideNavigationItem>
28
+ </SideNavigation>
29
+ <br/>
30
+ <Button id="buttonId">Close</Button>
31
+ </div>
32
+ </>
33
+ );
34
+
35
+ cy.get("#subItem1")
36
+ .shadow()
37
+ .find(".ui5-sn-item")
38
+ .should("have.attr", "tabindex", "0");
39
+
40
+ cy.get("#container").then( async ($container) => {
41
+ const firstFocusable = await getFirstFocusableElement($container.get(0));
42
+ await firstFocusable?.focus();
43
+ });
44
+
45
+ cy.get("#subItem1")
46
+ .should("have.focus");
47
+ });
48
+ });