@ui5/webcomponents-base 2.9.0-rc.1 → 2.9.0-rc.3
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 +23 -0
- package/cypress/specs/util/FocusableElements.cy.tsx +48 -0
- package/dist/.tsbuildinfobuild +1 -1
- package/dist/custom-elements-internal.json +15 -0
- package/dist/custom-elements.json +15 -0
- package/dist/generated/AssetParameters.js +1 -1
- package/dist/generated/AssetParameters.js.map +1 -1
- package/dist/generated/VersionInfo.js +3 -3
- package/dist/generated/VersionInfo.js.map +1 -1
- package/dist/index.d.ts +42 -6
- package/dist/index.js +88 -0
- package/dist/index.js.map +1 -0
- package/dist/locale/nextFallbackLocale.js +6 -2
- package/dist/locale/nextFallbackLocale.js.map +1 -1
- package/dist/prod/generated/AssetParameters.js +1 -1
- package/dist/prod/generated/AssetParameters.js.map +1 -1
- package/dist/prod/generated/VersionInfo.js +1 -1
- package/dist/prod/generated/VersionInfo.js.map +1 -1
- package/dist/prod/index.js +2 -0
- package/dist/prod/index.js.map +7 -0
- package/dist/prod/locale/nextFallbackLocale.js +1 -1
- package/dist/prod/locale/nextFallbackLocale.js.map +3 -3
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js +1 -1
- package/dist/prod/thirdparty/preact/jsxRuntime.module.d.js.map +2 -2
- package/dist/prod/util/FocusableElements.js +1 -1
- package/dist/prod/util/FocusableElements.js.map +3 -3
- package/dist/prod/util/HTMLSanitizer.js.map +1 -1
- package/dist/thirdparty/preact/jsx.d.ts +1 -1
- package/dist/thirdparty/preact/jsxRuntime.module.d.ts +3 -3
- package/dist/util/FocusableElements.js +18 -2
- package/dist/util/FocusableElements.js.map +1 -1
- package/dist/util/HTMLSanitizer.d.ts +2 -0
- package/dist/util/HTMLSanitizer.js +2 -2
- package/dist/util/HTMLSanitizer.js.map +1 -1
- package/package-scripts.cjs +2 -2
- package/package.json +6 -6
- package/dist/prod/index.d.js +0 -2
- package/dist/prod/index.d.js.map +0 -7
- package/index.js +0 -208
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.3](https://github.com/SAP/ui5-webcomponents/compare/v2.9.0-rc.2...v2.9.0-rc.3) (2025-04-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **framework:** fix fetching "id" (indonesian) language ([#11251](https://github.com/SAP/ui5-webcomponents/issues/11251)) ([9a36df5](https://github.com/SAP/ui5-webcomponents/commit/9a36df5dc2191758abd665d6fb1014d645e322f7)), closes [#11233](https://github.com/SAP/ui5-webcomponents/issues/11233)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [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)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **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))
|
|
23
|
+
* **framework:** fix find first focusable element ([#10984](https://github.com/SAP/ui5-webcomponents/issues/10984)) ([40303d5](https://github.com/SAP/ui5-webcomponents/commit/40303d54ce3fcc06ad980e12224be9f13ce8a983))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
6
29
|
# [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)
|
|
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
|
+
});
|