From e4baa19b2a2a82f129ad6ee5079f6c7b9c70015f Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Wed, 7 May 2025 10:45:34 +0200 Subject: [PATCH 01/17] update deps --- package.json | 12 +- packages/ai/package.json | 2 +- packages/base/package.json | 2 +- packages/charts/package.json | 4 +- packages/compat/package.json | 4 +- packages/cypress-commands/package.json | 4 +- packages/main/package.json | 8 +- yarn.lock | 170 ++++++++++++------------- 8 files changed, 103 insertions(+), 103 deletions(-) diff --git a/package.json b/package.json index 712cd0ccc60..99854c234e0 100644 --- a/package.json +++ b/package.json @@ -43,11 +43,11 @@ "@storybook/react": "8.6.12", "@storybook/react-vite": "8.6.12", "@storybook/theming": "8.6.12", - "@ui5/webcomponents": "2.9.0", - "@ui5/webcomponents-ai": "2.9.0", - "@ui5/webcomponents-compat": "2.9.0", - "@ui5/webcomponents-fiori": "2.9.0", - "@ui5/webcomponents-icons": "2.9.0", + "@ui5/webcomponents": "2.10.0", + "@ui5/webcomponents-ai": "2.10.0", + "@ui5/webcomponents-compat": "2.10.0", + "@ui5/webcomponents-fiori": "2.10.0", + "@ui5/webcomponents-icons": "2.10.0", "react": "^19.0.0", "react-dom": "^19.0.0", "remark-gfm": "^4.0.0", @@ -69,7 +69,7 @@ "@types/node": "^22.0.0", "@types/react": "^19.0.1", "@types/react-dom": "^19.0.1", - "@ui5/webcomponents-tools": "2.9.0", + "@ui5/webcomponents-tools": "2.10.0", "@vitejs/plugin-react": "^4.2.0", "chromatic": "^11.0.0", "cssnano": "^7.0.0", diff --git a/packages/ai/package.json b/packages/ai/package.json index bf1b06f15c3..c3c7d20dac1 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -33,7 +33,7 @@ "@ui5/webcomponents-react-base": "workspace:~" }, "peerDependencies": { - "@ui5/webcomponents-ai": "~2.9.0", + "@ui5/webcomponents-ai": "~2.10.0", "react": "^18 || ^19" }, "publishConfig": { diff --git a/packages/base/package.json b/packages/base/package.json index b507e70ff4b..78a100e3608 100644 --- a/packages/base/package.json +++ b/packages/base/package.json @@ -32,7 +32,7 @@ }, "peerDependencies": { "@types/react": "*", - "@ui5/webcomponents-base": "~2.9.0", + "@ui5/webcomponents-base": "~2.10.0", "react": "^18 || ^19" }, "peerDependenciesMeta": { diff --git a/packages/charts/package.json b/packages/charts/package.json index 20a73609b54..4f530097b29 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -39,8 +39,8 @@ "recharts": "2.15.3" }, "peerDependencies": { - "@ui5/webcomponents-react": "~2.9.0", - "@ui5/webcomponents-react-base": "~2.9.0", + "@ui5/webcomponents-react": "~2.10.0", + "@ui5/webcomponents-react-base": "~2.10.0", "react": "^18 || ^19" }, "publishConfig": { diff --git a/packages/compat/package.json b/packages/compat/package.json index 69820aa6df0..19c117fcdff 100644 --- a/packages/compat/package.json +++ b/packages/compat/package.json @@ -41,8 +41,8 @@ "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", - "@ui5/webcomponents-compat": "~2.9.0", - "@ui5/webcomponents-react": "~2.9.0", + "@ui5/webcomponents-compat": "~2.10.0", + "@ui5/webcomponents-react": "~2.10.0", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, diff --git a/packages/cypress-commands/package.json b/packages/cypress-commands/package.json index 14a987db05c..f02e3cac51b 100644 --- a/packages/cypress-commands/package.json +++ b/packages/cypress-commands/package.json @@ -23,8 +23,8 @@ "clean": "rimraf dist api-commands.json api-queries.json" }, "peerDependencies": { - "@ui5/webcomponents": "~2.9.0", - "@ui5/webcomponents-base": "~2.9.0", + "@ui5/webcomponents": "~2.10.0", + "@ui5/webcomponents-base": "~2.10.0", "cypress": "^12 || ^13 || ^14" }, "peerDependenciesMeta": { diff --git a/packages/main/package.json b/packages/main/package.json index 34ba9433b9e..5827d9b5d48 100644 --- a/packages/main/package.json +++ b/packages/main/package.json @@ -57,10 +57,10 @@ "peerDependencies": { "@types/react": "*", "@types/react-dom": "*", - "@ui5/webcomponents": "~2.9.0", - "@ui5/webcomponents-base": "~2.9.0", - "@ui5/webcomponents-fiori": "~2.9.0", - "@ui5/webcomponents-icons": "~2.9.0", + "@ui5/webcomponents": "~2.10.0", + "@ui5/webcomponents-base": "~2.10.0", + "@ui5/webcomponents-fiori": "~2.10.0", + "@ui5/webcomponents-icons": "~2.10.0", "react": "^18 || ^19", "react-dom": "^18 || ^19" }, diff --git a/yarn.lock b/yarn.lock index 450904dbdd3..6a297024c17 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6302,42 +6302,42 @@ __metadata: dependencies: "@ui5/webcomponents-react-base": "workspace:~" peerDependencies: - "@ui5/webcomponents-ai": ~2.9.0 + "@ui5/webcomponents-ai": ~2.10.0 react: ^18 || ^19 languageName: unknown linkType: soft -"@ui5/webcomponents-ai@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-ai@npm:2.9.0" +"@ui5/webcomponents-ai@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-ai@npm:2.10.0" dependencies: - "@ui5/webcomponents": "npm:2.9.0" - "@ui5/webcomponents-base": "npm:2.9.0" - "@ui5/webcomponents-icons": "npm:2.9.0" - "@ui5/webcomponents-theming": "npm:2.9.0" - checksum: 10c0/b65b86e3a38a50f71e6f6fb7e220259f0a197e7d1d24d34369a3b596669021c869abb12d12d9473efe272745f0ddac8b51e3db3f4682e21fd53c35eb4af85ad5 + "@ui5/webcomponents": "npm:2.10.0" + "@ui5/webcomponents-base": "npm:2.10.0" + "@ui5/webcomponents-icons": "npm:2.10.0" + "@ui5/webcomponents-theming": "npm:2.10.0" + checksum: 10c0/261b95f3c60b5b0917aa84569529c76c01c008fcb209479c0002f8cf9f535ca7cd967e0094534eb2129b8315519552eac4c865f0b634ff234fe0e3357d778000 languageName: node linkType: hard -"@ui5/webcomponents-base@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-base@npm:2.9.0" +"@ui5/webcomponents-base@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-base@npm:2.10.0" dependencies: "@lit-labs/ssr-dom-shim": "npm:^1.1.2" lit-html: "npm:^2.0.1" - checksum: 10c0/db9ff95ec67447d907a2b366c528d2625dbc4d38d2eb3af36a6c0e646a7cf873df5e155f3a4e5ad36f4e306f48de8016d35cfb793faca0d3241db8804aa47b06 + checksum: 10c0/82aa5ea3e312f084203e3a5625eae966cf524bcad08b365d0cd08b3fe46fca1fbcba02cca268ad5b38bfb0f6fc7ccc4ec0e162528ed11a315cf1c96c4f72b05e languageName: node linkType: hard -"@ui5/webcomponents-compat@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-compat@npm:2.9.0" +"@ui5/webcomponents-compat@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-compat@npm:2.10.0" dependencies: - "@ui5/webcomponents": "npm:2.9.0" - "@ui5/webcomponents-base": "npm:2.9.0" - "@ui5/webcomponents-icons": "npm:2.9.0" - "@ui5/webcomponents-theming": "npm:2.9.0" - checksum: 10c0/3535bdbdd5436f148d8f03e8fbb79e0d495c72abeb11315b69a6d51e369f5150a65dc3c90881a0c40bdfcbf4d9a6a3475feee0907c6367304e75b4056e4beccf + "@ui5/webcomponents": "npm:2.10.0" + "@ui5/webcomponents-base": "npm:2.10.0" + "@ui5/webcomponents-icons": "npm:2.10.0" + "@ui5/webcomponents-theming": "npm:2.10.0" + checksum: 10c0/8596e092d336b0d2a439a16f13adacde58f3e28617dcce0d202e739752993ec89e4c5c073cc0d7b406f3c1f76149b8ddc58574127af216a817c7d55f84799318 languageName: node linkType: hard @@ -6345,8 +6345,8 @@ __metadata: version: 0.0.0-use.local resolution: "@ui5/webcomponents-cypress-commands@workspace:packages/cypress-commands" peerDependencies: - "@ui5/webcomponents": ~2.9.0 - "@ui5/webcomponents-base": ~2.9.0 + "@ui5/webcomponents": ~2.10.0 + "@ui5/webcomponents-base": ~2.10.0 cypress: ^12 || ^13 || ^14 peerDependenciesMeta: "@ui5/webcomponents": @@ -6356,53 +6356,53 @@ __metadata: languageName: unknown linkType: soft -"@ui5/webcomponents-fiori@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-fiori@npm:2.9.0" +"@ui5/webcomponents-fiori@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-fiori@npm:2.10.0" dependencies: - "@ui5/webcomponents": "npm:2.9.0" - "@ui5/webcomponents-base": "npm:2.9.0" - "@ui5/webcomponents-icons": "npm:2.9.0" - "@ui5/webcomponents-theming": "npm:2.9.0" + "@ui5/webcomponents": "npm:2.10.0" + "@ui5/webcomponents-base": "npm:2.10.0" + "@ui5/webcomponents-icons": "npm:2.10.0" + "@ui5/webcomponents-theming": "npm:2.10.0" "@zxing/library": "npm:^0.21.3" - checksum: 10c0/d1855b4dc06cb78121a6d53ae3abdd0e20429d08ea0f3f526c801aa85dfcde7c54f0c5488750dbaa3aac0cc612c78ab50f789dec0a3748cd9ccba78e8ed63d64 + checksum: 10c0/c25d7a83c9de23623a617bb109dbfca3bdecac5d77d45a1a4c246223318d38ebb917d1a84fa0accdc0f8c540d2192102d943ac4c48dbb782d68454af50dc0b11 languageName: node linkType: hard -"@ui5/webcomponents-icons-business-suite@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-icons-business-suite@npm:2.9.0" +"@ui5/webcomponents-icons-business-suite@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-icons-business-suite@npm:2.10.0" dependencies: - "@ui5/webcomponents-base": "npm:2.9.0" - checksum: 10c0/b8103f0ab45945d5100c4e043fc6e8e0b7d99ae233f940b23b6fbc51bad5742a779edca630cbe0956370751ce27bfc4261063798dff4f384ac52a5f6157d4399 + "@ui5/webcomponents-base": "npm:2.10.0" + checksum: 10c0/c2933dfb1c662da2aca347ba5ee11fa7232dbedf81522ccca3d141494753c2ec0314c742efeefdd43bc81a05c25420ffae31e72dc73270162f18b3cb435bd983 languageName: node linkType: hard -"@ui5/webcomponents-icons-tnt@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-icons-tnt@npm:2.9.0" +"@ui5/webcomponents-icons-tnt@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-icons-tnt@npm:2.10.0" dependencies: - "@ui5/webcomponents-base": "npm:2.9.0" - checksum: 10c0/4cb892558293419cbb842833c87cc20a8711f7a940ec1043979a55b4e4c8e9dfc35a75fb1258e829711c668b22f12d9709c9ae4a1e21ce806d8bb3f5c36e45b6 + "@ui5/webcomponents-base": "npm:2.10.0" + checksum: 10c0/c75d2d834dfac78f5ef511ca1b9bb1f05a7c5222c12943085d2c5e52f0d1a9429e8cb460955ce3adfc8aa8ca9a2c8600520a4ea5e754c82e5746a1325bfa1b7a languageName: node linkType: hard -"@ui5/webcomponents-icons@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-icons@npm:2.9.0" +"@ui5/webcomponents-icons@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-icons@npm:2.10.0" dependencies: - "@ui5/webcomponents-base": "npm:2.9.0" - checksum: 10c0/d0931704c9ac6f8b1c8902ae6baf11e7c362ca82800ec60b531b5b143cbf04524ba2853a22890002e331f2466ab9592d9b209349c45619e1f10d35666353d063 + "@ui5/webcomponents-base": "npm:2.10.0" + checksum: 10c0/ca6ecd4e06208caeb8080187665481586d3f096deac7ec4e3fc7c443051d9b09fcf7e57446d21c3b0420ab3c0de6fb7525ee5f412e42a523d3dc0a4c8622beb4 languageName: node linkType: hard -"@ui5/webcomponents-localization@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-localization@npm:2.9.0" +"@ui5/webcomponents-localization@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-localization@npm:2.10.0" dependencies: "@types/openui5": "npm:^1.113.0" - "@ui5/webcomponents-base": "npm:2.9.0" - checksum: 10c0/7b332fb4fd55be704b769cce8b111b5e37725421da9cf0d46c35c4879d63a544096753d90d6cc4dfeeca1602e295c906d99dda1f0f8c11f9bde57b4433411c38 + "@ui5/webcomponents-base": "npm:2.10.0" + checksum: 10c0/c021d3fee3620303702902d9f0a679e16e51ee58416da5eceb32a4d6c5a6befb84ee5963faa0c095ec4c7d6f04de2e7b8a11fd52f12e42454f2d004ac17ac07b languageName: node linkType: hard @@ -6411,7 +6411,7 @@ __metadata: resolution: "@ui5/webcomponents-react-base@workspace:packages/base" peerDependencies: "@types/react": "*" - "@ui5/webcomponents-base": ~2.9.0 + "@ui5/webcomponents-base": ~2.10.0 react: ^18 || ^19 peerDependenciesMeta: "@types/react": @@ -6429,8 +6429,8 @@ __metadata: react-content-loader: "npm:7.0.2" recharts: "npm:2.15.3" peerDependencies: - "@ui5/webcomponents-react": ~2.9.0 - "@ui5/webcomponents-react-base": ~2.9.0 + "@ui5/webcomponents-react": ~2.10.0 + "@ui5/webcomponents-react-base": ~2.10.0 react: ^18 || ^19 languageName: unknown linkType: soft @@ -6453,8 +6453,8 @@ __metadata: peerDependencies: "@types/react": "*" "@types/react-dom": "*" - "@ui5/webcomponents-compat": ~2.9.0 - "@ui5/webcomponents-react": ~2.9.0 + "@ui5/webcomponents-compat": ~2.10.0 + "@ui5/webcomponents-react": ~2.10.0 react: ^18 || ^19 react-dom: ^18 || ^19 peerDependenciesMeta: @@ -6480,10 +6480,10 @@ __metadata: peerDependencies: "@types/react": "*" "@types/react-dom": "*" - "@ui5/webcomponents": ~2.9.0 - "@ui5/webcomponents-base": ~2.9.0 - "@ui5/webcomponents-fiori": ~2.9.0 - "@ui5/webcomponents-icons": ~2.9.0 + "@ui5/webcomponents": ~2.10.0 + "@ui5/webcomponents-base": ~2.10.0 + "@ui5/webcomponents-fiori": ~2.10.0 + "@ui5/webcomponents-icons": ~2.10.0 react: ^18 || ^19 react-dom: ^18 || ^19 peerDependenciesMeta: @@ -6498,19 +6498,19 @@ __metadata: languageName: unknown linkType: soft -"@ui5/webcomponents-theming@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-theming@npm:2.9.0" +"@ui5/webcomponents-theming@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-theming@npm:2.10.0" dependencies: "@sap-theming/theming-base-content": "npm:11.26.0" - "@ui5/webcomponents-base": "npm:2.9.0" - checksum: 10c0/528a9fbcc43dfa5069da80c34a9583ea091e59312451a494f66ac038b12632653fb3f0edcad38c1ae14cf79d81807c9c3516d01d84b43b4c10719f50fbe19c24 + "@ui5/webcomponents-base": "npm:2.10.0" + checksum: 10c0/4a82a6d7408d6e49e954d18c2c871d9820899b711c183cd94717ff8c7a38ab172cb2f458baf0e91480ebe1a2b59b1f8f9e05b488230b08b4bd1b0e68776730af languageName: node linkType: hard -"@ui5/webcomponents-tools@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents-tools@npm:2.9.0" +"@ui5/webcomponents-tools@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents-tools@npm:2.10.0" dependencies: "@custom-elements-manifest/analyzer": "npm:^0.10.4" "@typescript-eslint/eslint-plugin": "npm:^6.9.0" @@ -6568,21 +6568,21 @@ __metadata: bin: wc-create-ui5-element: bin/create-ui5-element.js wc-dev: bin/dev.js - checksum: 10c0/cf90d8f9a369677b78161f37192254f53edddc68e7b3d0f41e8953e8fe0ac39b5cdc64008bb22a4340ffd985a64921c7c9def821b16db797801e3cc9ff6393cd + checksum: 10c0/9c64ce7e915e96a6d33def9855f716fc3b5d64e9136c734997cf5dfb64c9794a9e370dc2bb324fae3f01654ec06bbdb9396fdacc21dfd7acca70900e079a6cb4 languageName: node linkType: hard -"@ui5/webcomponents@npm:2.9.0": - version: 2.9.0 - resolution: "@ui5/webcomponents@npm:2.9.0" +"@ui5/webcomponents@npm:2.10.0": + version: 2.10.0 + resolution: "@ui5/webcomponents@npm:2.10.0" dependencies: - "@ui5/webcomponents-base": "npm:2.9.0" - "@ui5/webcomponents-icons": "npm:2.9.0" - "@ui5/webcomponents-icons-business-suite": "npm:2.9.0" - "@ui5/webcomponents-icons-tnt": "npm:2.9.0" - "@ui5/webcomponents-localization": "npm:2.9.0" - "@ui5/webcomponents-theming": "npm:2.9.0" - checksum: 10c0/dd4e1f14fdf7bd3b4870fe6ad0a562987ed6dcb9ab5fcd2c9e71493678c9562a4db4c803ddfda863762214fcd31740e80844a1145e31712af98d9c1c4c92e732 + "@ui5/webcomponents-base": "npm:2.10.0" + "@ui5/webcomponents-icons": "npm:2.10.0" + "@ui5/webcomponents-icons-business-suite": "npm:2.10.0" + "@ui5/webcomponents-icons-tnt": "npm:2.10.0" + "@ui5/webcomponents-localization": "npm:2.10.0" + "@ui5/webcomponents-theming": "npm:2.10.0" + checksum: 10c0/107ab1f0195427cb4bd858579fcac1b34bdd0e414f38a4084ea75ca3e06fe0c104603ef1749934b822181bdc97107ec6b2c7d0449b064898b40c61195901c467 languageName: node linkType: hard @@ -24060,12 +24060,12 @@ __metadata: "@types/node": "npm:^22.0.0" "@types/react": "npm:^19.0.1" "@types/react-dom": "npm:^19.0.1" - "@ui5/webcomponents": "npm:2.9.0" - "@ui5/webcomponents-ai": "npm:2.9.0" - "@ui5/webcomponents-compat": "npm:2.9.0" - "@ui5/webcomponents-fiori": "npm:2.9.0" - "@ui5/webcomponents-icons": "npm:2.9.0" - "@ui5/webcomponents-tools": "npm:2.9.0" + "@ui5/webcomponents": "npm:2.10.0" + "@ui5/webcomponents-ai": "npm:2.10.0" + "@ui5/webcomponents-compat": "npm:2.10.0" + "@ui5/webcomponents-fiori": "npm:2.10.0" + "@ui5/webcomponents-icons": "npm:2.10.0" + "@ui5/webcomponents-tools": "npm:2.10.0" "@vitejs/plugin-react": "npm:^4.2.0" chromatic: "npm:^11.0.0" cssnano: "npm:^7.0.0" From c7b619cbcb0fb9efe8bd0a2f60361d15f751c365 Mon Sep 17 00:00:00 2001 From: Lukas Harbarth Date: Wed, 7 May 2025 11:21:25 +0200 Subject: [PATCH 02/17] run "main" wrapper script --- .../custom-element-manifests/fiori.json | 651 ++++++++++++++++-- .storybook/custom-element-manifests/main.json | 399 +++++++++-- .../main/src/webComponents/Button/index.tsx | 20 +- .../main/src/webComponents/CheckBox/index.tsx | 3 + .../main/src/webComponents/Form/index.tsx | 20 +- .../src/webComponents/FormGroup/index.tsx | 12 +- .../IllustratedMessage/index.tsx | 12 +- .../webComponents/ListItemStandard/index.tsx | 37 +- .../main/src/webComponents/Menu/index.tsx | 13 +- .../main/src/webComponents/Search/index.tsx | 20 +- .../main/src/webComponents/ShellBar/index.tsx | 45 +- .../src/webComponents/ShellBarItem/index.tsx | 2 +- .../webComponents/ShellBarSearch/index.tsx | 194 ++++++ .../SideNavigationGroup/index.tsx | 3 +- .../SideNavigationItem/index.tsx | 3 +- .../SideNavigationSubItem/index.tsx | 3 +- .../webComponents/TableHeaderCell/index.tsx | 30 +- .../src/webComponents/ToggleButton/index.tsx | 20 +- .../Tokenizer/Tokenizer.stories.tsx | 1 + .../src/webComponents/Tokenizer/index.tsx | 7 +- .../main/src/webComponents/TreeItem/index.tsx | 21 +- .../webComponents/TreeItemCustom/index.tsx | 24 +- 22 files changed, 1355 insertions(+), 185 deletions(-) create mode 100644 packages/main/src/webComponents/ShellBarSearch/index.tsx diff --git a/.storybook/custom-element-manifests/fiori.json b/.storybook/custom-element-manifests/fiori.json index aa3d797baa4..1e3440bdb3c 100644 --- a/.storybook/custom-element-manifests/fiori.json +++ b/.storybook/custom-element-manifests/fiori.json @@ -3572,6 +3572,17 @@ "default": "undefined", "privacy": "public", "_ui5since": "1.7.0" + }, + { + "kind": "field", + "name": "decorative", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Defines whether the illustration is decorative.\n\nWhen set to `true`, the attributes `role=\"presentation\"` and `aria-hidden=\"true\"` are applied to the SVG element.", + "privacy": "public", + "_ui5since": "2.10.0" } ], "attributes": [ @@ -3619,6 +3630,15 @@ "type": { "text": "string | undefined" } + }, + { + "description": "Defines whether the illustration is decorative.\n\nWhen set to `true`, the attributes `role=\"presentation\"` and `aria-hidden=\"true\"` are applied to the SVG element.", + "name": "decorative", + "default": "false", + "fieldName": "decorative", + "type": { + "text": "boolean" + } } ], "superclass": { @@ -5268,7 +5288,7 @@ "declarations": [ { "kind": "class", - "description": "### Overview\n\nA `ui5-search` is an input with suggestions, used for user search.\n\nThe `ui5-search` consists of several elements parts:\n- Scope - displays a select in the beggining of the component, used for filtering results by their scope.\n- Input field - for user input value\n- Clear button - gives the possibility for deleting the entered value\n- Search button - a primary button for performing search, when the user has entered a search term\n- Suggestions - a list with available search suggestions\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/fiori/dist/Search.js\";`", + "description": "### Overview\n\nA `ui5-search` is an input with suggestions, used for user search.\n\nThe `ui5-search` consists of several elements parts:\n- Scope - displays a select in the beggining of the component, used for filtering results by their scope.\n- Input field - for user input value\n- Clear button - gives the possibility for deleting the entered value\n- Search button - a primary button for performing search, when the user has entered a search term\n- Suggestions - a list with available search suggestions\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-fiori/dist/Search.js\";`", "name": "Search", "slots": [ { @@ -5390,20 +5410,6 @@ "module": "dist/SearchField.js" } }, - { - "kind": "field", - "name": "collapsed", - "type": { - "text": "boolean" - }, - "default": "false", - "description": "Defines whether the component is collapsed.", - "privacy": "public", - "inheritedFrom": { - "name": "SearchField", - "module": "dist/SearchField.js" - } - }, { "kind": "field", "name": "value", @@ -5448,11 +5454,11 @@ }, { "kind": "field", - "name": "searchIconTooltip", + "name": "accessibleDescription", "type": { "text": "string | undefined" }, - "description": "Defines the tooltip of the search icon component.", + "description": "Defines the accessible ARIA description of the field.", "privacy": "public", "default": "undefined", "inheritedFrom": { @@ -5588,19 +5594,6 @@ "module": "dist/SearchField.js" } }, - { - "description": "Defines whether the component is collapsed.", - "name": "collapsed", - "default": "false", - "fieldName": "collapsed", - "type": { - "text": "boolean" - }, - "inheritedFrom": { - "name": "SearchField", - "module": "dist/SearchField.js" - } - }, { "description": "Defines the value of the component.\n\n**Note:** The property is updated upon typing.", "name": "value", @@ -5641,10 +5634,10 @@ } }, { - "description": "Defines the tooltip of the search icon component.", - "name": "search-icon-tooltip", + "description": "Defines the accessible ARIA description of the field.", + "name": "accessible-description", "default": "undefined", - "fieldName": "searchIconTooltip", + "fieldName": "accessibleDescription", "type": { "text": "string | undefined" }, @@ -5713,7 +5706,7 @@ "declarations": [ { "kind": "class", - "description": "### Overview\n\nA `ui5-search-item` is a list item, used for displaying search suggestions\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents/fiori/dist/SearchItem.js\";`", + "description": "### Overview\n\nA `ui5-search-item` is a list item, used for displaying search suggestions\n\n### ES6 Module Import\n\n`import \"@ui5/webcomponents-fiori/dist/SearchItem.js\";`", "name": "SearchItem", "members": [ { @@ -6314,6 +6307,26 @@ } ], "members": [ + { + "kind": "field", + "name": "hideSearchButton", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Defines the visibility state of the search button.\n\n**Note:** The `hideSearchButton` property is in an experimental state and is a subject to change.", + "privacy": "public" + }, + { + "kind": "field", + "name": "disableSearchCollapse", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Disables the automatic search field expansion/collapse when the available space is not enough.\n\n**Note:** The `disableSearchCollapse` property is in an experimental state and is a subject to change.", + "privacy": "public" + }, { "kind": "field", "name": "primaryTitle", @@ -6364,16 +6377,6 @@ "description": "Defines, if the product switch icon would be displayed.", "privacy": "public" }, - { - "kind": "field", - "name": "showSearchField", - "type": { - "text": "boolean" - }, - "default": "false", - "description": "Defines, if the Search Field would be displayed when there is a valid `searchField` slot.\n\n**Note:** By default the Search Field is not displayed.", - "privacy": "public" - }, { "kind": "field", "name": "accessibilityAttributes", @@ -6388,10 +6391,20 @@ ] }, "default": "{}", - "description": "Defines additional accessibility attributes on different areas of the component.\n\nThe accessibilityAttributes object has the following fields,\nwhere each field is an object supporting one or more accessibility attributes:\n\n- **logo** - `logo.role` and `logo.name`.\n- **notifications** - `notifications.expanded` and `notifications.hasPopup`.\n- **profile** - `profile.expanded`, `profile.hasPopup` and `profile.name`.\n- **product** - `product.expanded` and `product.hasPopup`.\n- **search** - `search.hasPopup`.\n- **overflow** - `overflow.expanded` and `overflow.hasPopup`.\n\nThe accessibility attributes support the following values:\n\n- **role**: Defines the accessible ARIA role of the logo area.\nAccepts the following string values: `button` or `link`.\n\n- **expanded**: Indicates whether the button, or another grouping element it controls,\nis currently expanded or collapsed.\nAccepts the following string values: `true` or `false`.\n\n- **hasPopup**: Indicates the availability and type of interactive popup element,\nsuch as menu or dialog, that can be triggered by the button.\n\nAccepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.\n- **name**: Defines the accessible ARIA name of the area.\nAccepts any string.", + "description": "Defines additional accessibility attributes on different areas of the component.\n\nThe accessibilityAttributes object has the following fields,\nwhere each field is an object supporting one or more accessibility attributes:\n\n- **logo** - `logo.role` and `logo.name`.\n- **notifications** - `notifications.expanded` and `notifications.hasPopup`.\n- **profile** - `profile.expanded`, `profile.hasPopup` and `profile.name`.\n- **product** - `product.expanded` and `product.hasPopup`.\n- **search** - `search.hasPopup`.\n- **overflow** - `overflow.expanded` and `overflow.hasPopup`.\n- **branding** - `branding.name`.\n\nThe accessibility attributes support the following values:\n\n- **role**: Defines the accessible ARIA role of the logo area.\nAccepts the following string values: `button` or `link`.\n\n- **expanded**: Indicates whether the button, or another grouping element it controls,\nis currently expanded or collapsed.\nAccepts the following string values: `true` or `false`.\n\n- **hasPopup**: Indicates the availability and type of interactive popup element,\nsuch as menu or dialog, that can be triggered by the button.\n\nAccepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.\n- **name**: Defines the accessible ARIA name of the area.\nAccepts any string.", "privacy": "public", "_ui5since": "1.10.0" }, + { + "kind": "field", + "name": "showSearchField", + "description": "Defines, if the Search Field would be displayed when there is a valid `searchField` slot.\n\n**Note:** By default the Search Field is not displayed.", + "default": "false", + "privacy": "public", + "type": { + "text": "boolean" + } + }, { "kind": "method", "name": "closeOverflow", @@ -6462,6 +6475,19 @@ "default": "null", "readonly": true, "_ui5since": "1.0.0-rc.16" + }, + { + "kind": "method", + "name": "getSearchButtonDomRef", + "return": { + "type": { + "text": "Promise" + }, + "description": "The search icon DOM ref" + }, + "description": "Returns the `search` icon DOM ref.", + "privacy": "public", + "_ui5since": "2.10.0" } ], "events": [ @@ -6643,6 +6669,35 @@ } ] }, + { + "name": "search-field-toggle", + "_ui5privacy": "public", + "type": { + "text": "CustomEvent", + "references": [ + { + "name": "ShellBarSearchFieldToggleEventDetail", + "package": "@ui5/webcomponents-fiori", + "module": "dist/ShellBar.js" + } + ] + }, + "description": "Fired, when the search field is expanded or collapsed.", + "_ui5Cancelable": false, + "_ui5allowPreventDefault": false, + "_ui5Bubbles": true, + "_ui5since": "2.10.0", + "_ui5parameters": [ + { + "type": { + "text": "Boolean" + }, + "name": "expanded", + "_ui5privacy": "public", + "description": "whether the search field is expanded" + } + ] + }, { "name": "content-item-visibility-change", "_ui5privacy": "public", @@ -6674,6 +6729,24 @@ } ], "attributes": [ + { + "description": "Defines the visibility state of the search button.\n\n**Note:** The `hideSearchButton` property is in an experimental state and is a subject to change.", + "name": "hide-search-button", + "default": "false", + "fieldName": "hideSearchButton", + "type": { + "text": "boolean" + } + }, + { + "description": "Disables the automatic search field expansion/collapse when the available space is not enough.\n\n**Note:** The `disableSearchCollapse` property is in an experimental state and is a subject to change.", + "name": "disable-search-collapse", + "default": "false", + "fieldName": "disableSearchCollapse", + "type": { + "text": "boolean" + } + }, { "description": "Defines the `primaryTitle`.\n\n**Note:** The `primaryTitle` would be hidden on S screen size (less than approx. 700px).", "name": "primary-title", @@ -6720,16 +6793,7 @@ } }, { - "description": "Defines, if the Search Field would be displayed when there is a valid `searchField` slot.\n\n**Note:** By default the Search Field is not displayed.", - "name": "show-search-field", - "default": "false", - "fieldName": "showSearchField", - "type": { - "text": "boolean" - } - }, - { - "description": "Defines additional accessibility attributes on different areas of the component.\n\nThe accessibilityAttributes object has the following fields,\nwhere each field is an object supporting one or more accessibility attributes:\n\n- **logo** - `logo.role` and `logo.name`.\n- **notifications** - `notifications.expanded` and `notifications.hasPopup`.\n- **profile** - `profile.expanded`, `profile.hasPopup` and `profile.name`.\n- **product** - `product.expanded` and `product.hasPopup`.\n- **search** - `search.hasPopup`.\n- **overflow** - `overflow.expanded` and `overflow.hasPopup`.\n\nThe accessibility attributes support the following values:\n\n- **role**: Defines the accessible ARIA role of the logo area.\nAccepts the following string values: `button` or `link`.\n\n- **expanded**: Indicates whether the button, or another grouping element it controls,\nis currently expanded or collapsed.\nAccepts the following string values: `true` or `false`.\n\n- **hasPopup**: Indicates the availability and type of interactive popup element,\nsuch as menu or dialog, that can be triggered by the button.\n\nAccepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.\n- **name**: Defines the accessible ARIA name of the area.\nAccepts any string.", + "description": "Defines additional accessibility attributes on different areas of the component.\n\nThe accessibilityAttributes object has the following fields,\nwhere each field is an object supporting one or more accessibility attributes:\n\n- **logo** - `logo.role` and `logo.name`.\n- **notifications** - `notifications.expanded` and `notifications.hasPopup`.\n- **profile** - `profile.expanded`, `profile.hasPopup` and `profile.name`.\n- **product** - `product.expanded` and `product.hasPopup`.\n- **search** - `search.hasPopup`.\n- **overflow** - `overflow.expanded` and `overflow.hasPopup`.\n- **branding** - `branding.name`.\n\nThe accessibility attributes support the following values:\n\n- **role**: Defines the accessible ARIA role of the logo area.\nAccepts the following string values: `button` or `link`.\n\n- **expanded**: Indicates whether the button, or another grouping element it controls,\nis currently expanded or collapsed.\nAccepts the following string values: `true` or `false`.\n\n- **hasPopup**: Indicates the availability and type of interactive popup element,\nsuch as menu or dialog, that can be triggered by the button.\n\nAccepts the following string values: `dialog`, `grid`, `listbox`, `menu` or `tree`.\n- **name**: Defines the accessible ARIA name of the area.\nAccepts any string.", "name": "accessibility-attributes", "default": "{}", "fieldName": "accessibilityAttributes", @@ -6737,6 +6801,15 @@ "text": "ShellBarAccessibilityAttributes" } }, + { + "description": "Defines, if the Search Field would be displayed when there is a valid `searchField` slot.\n\n**Note:** By default the Search Field is not displayed.", + "name": "show-search-field", + "default": "false", + "fieldName": "showSearchField", + "type": { + "text": "any" + } + }, { "description": "Returns the `logo` DOM ref.", "name": "logo-dom-ref", @@ -6838,7 +6911,7 @@ "type": { "text": "string | undefined" }, - "description": "Defines the item text.\n \n **Note:** The text is only displayed inside the overflow popover list view.", + "description": "Defines the item text.\n\n**Note:** The text is only displayed inside the overflow popover list view.", "default": "undefined", "privacy": "public" }, @@ -6913,7 +6986,7 @@ } }, { - "description": "Defines the item text.\n \n **Note:** The text is only displayed inside the overflow popover list view.", + "description": "Defines the item text.\n\n**Note:** The text is only displayed inside the overflow popover list view.", "name": "text", "default": "undefined", "fieldName": "text", @@ -6970,6 +7043,450 @@ } ] }, + { + "kind": "javascript-module", + "path": "dist/ShellBarSearch.js", + "declarations": [ + { + "kind": "class", + "description": "Search field for the ShellBar component.", + "name": "ShellBarSearch", + "members": [ + { + "kind": "field", + "name": "loading", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Indicates whether a loading indicator should be shown in the popup.", + "privacy": "public", + "inheritedFrom": { + "name": "Search", + "module": "dist/Search.js" + } + }, + { + "kind": "field", + "name": "noTypeahead", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Defines whether the value will be autcompleted to match an item.", + "privacy": "public", + "inheritedFrom": { + "name": "Search", + "module": "dist/Search.js" + } + }, + { + "kind": "field", + "name": "open", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Indicates whether the items picker is open.", + "privacy": "public", + "inheritedFrom": { + "name": "Search", + "module": "dist/Search.js" + } + }, + { + "kind": "field", + "name": "showClearIcon", + "type": { + "text": "boolean" + }, + "default": "false", + "description": "Defines whether the clear icon of the search will be shown.", + "privacy": "public", + "inheritedFrom": { + "name": "SearchField", + "module": "dist/SearchField.js" + } + }, + { + "kind": "field", + "name": "value", + "type": { + "text": "string" + }, + "default": "\"\"", + "description": "Defines the value of the component.\n\n**Note:** The property is updated upon typing.", + "privacy": "public", + "inheritedFrom": { + "name": "SearchField", + "module": "dist/SearchField.js" + } + }, + { + "kind": "field", + "name": "placeholder", + "type": { + "text": "string | undefined" + }, + "description": "Defines a short hint intended to aid the user with data entry when the\ncomponent has no value.", + "default": "undefined", + "privacy": "public", + "inheritedFrom": { + "name": "SearchField", + "module": "dist/SearchField.js" + } + }, + { + "kind": "field", + "name": "accessibleName", + "type": { + "text": "string | undefined" + }, + "description": "Defines the accessible ARIA name of the component.", + "privacy": "public", + "default": "undefined", + "inheritedFrom": { + "name": "SearchField", + "module": "dist/SearchField.js" + } + }, + { + "kind": "field", + "name": "accessibleDescription", + "type": { + "text": "string | undefined" + }, + "description": "Defines the accessible ARIA description of the field.", + "privacy": "public", + "default": "undefined", + "inheritedFrom": { + "name": "SearchField", + "module": "dist/SearchField.js" + } + } + ], + "superclass": { + "name": "Search", + "package": "@ui5/webcomponents-fiori", + "module": "dist/Search.js" + }, + "tagName": "ui5-shellbar-search", + "customElement": true, + "_ui5experimental": true, + "_ui5since": "2.10.0", + "_ui5privacy": "public", + "slots": [ + { + "name": "default", + "description": "Defines the Search suggestion items.", + "_ui5propertyName": "items", + "_ui5type": { + "text": "Array" + }, + "_ui5privacy": "public", + "inheritedFrom": { + "name": "Search", + "module": "dist/Search.js" + } + }, + { + "name": "action", + "description": "Defines the popup footer action button.", + "_ui5type": { + "text": "Array - - Product - + ); @@ -154,9 +152,8 @@ const MultiSelectDialog = () => { data-description={`${currentProduct.description}${index}`} key={`${currentProduct.text}${index}`} selected={selectedItems[description]} - > - {currentProduct.text} - + text={currentProduct.text} + /> ); }) .filter(Boolean)} diff --git a/packages/main/src/components/SelectDialog/SelectDialog.stories.tsx b/packages/main/src/components/SelectDialog/SelectDialog.stories.tsx index b6961c8541d..05f0a2ceca7 100644 --- a/packages/main/src/components/SelectDialog/SelectDialog.stories.tsx +++ b/packages/main/src/components/SelectDialog/SelectDialog.stories.tsx @@ -58,9 +58,8 @@ export const Default: Story = { image={Example Image} description={`${currentProduct.description}${index}`} key={`${currentProduct.text}${index}`} - > - {currentProduct.text} - + text={currentProduct.text} + /> ); })} @@ -161,9 +160,8 @@ export const MultiSelect: Story = { data-description={`${currentProduct.description}${index}`} key={`${currentProduct.text}${index}`} selected={selectedItems[description]} - > - {currentProduct.text} - + text={currentProduct.text} + /> ); }) .filter(Boolean)} diff --git a/packages/main/src/components/VariantManagement/VariantItem.tsx b/packages/main/src/components/VariantManagement/VariantItem.tsx index 9356cd59791..b41388a658e 100644 --- a/packages/main/src/components/VariantManagement/VariantItem.tsx +++ b/packages/main/src/components/VariantManagement/VariantItem.tsx @@ -102,12 +102,14 @@ const VariantItem = forwardRef((pr } }, [selected]); + // ToDo: rename `children` to `text` in next major release (check `ListItemStandard`) // inputProps are passed through to input components used in the configuration dialogs - const { manageViewsInputProps: _0, saveViewInputProps: _1, ...rest } = props; + const { manageViewsInputProps: _0, saveViewInputProps: _1, children: _2, ...rest } = props; return ( - Richard Wilson - Elena Petrova - John Miller + + + ); diff --git a/packages/main/src/webComponents/Dialog/Dialog.stories.tsx b/packages/main/src/webComponents/Dialog/Dialog.stories.tsx index 8fddda594d3..138386dcb94 100644 --- a/packages/main/src/webComponents/Dialog/Dialog.stories.tsx +++ b/packages/main/src/webComponents/Dialog/Dialog.stories.tsx @@ -15,9 +15,9 @@ const meta = { args: { children: ( - Apples - Bananas - Potato + + + ), headerText: 'Dialog Header', diff --git a/packages/main/src/webComponents/FlexibleColumnLayout/FlexibleColumnLayout.stories.tsx b/packages/main/src/webComponents/FlexibleColumnLayout/FlexibleColumnLayout.stories.tsx index ae05900c2f1..2eed1bbd325 100644 --- a/packages/main/src/webComponents/FlexibleColumnLayout/FlexibleColumnLayout.stories.tsx +++ b/packages/main/src/webComponents/FlexibleColumnLayout/FlexibleColumnLayout.stories.tsx @@ -44,23 +44,23 @@ export const Default: Story = { layout={args.layout} startColumn={ - List Item 1 - List Item 2 - List Item 3 + + + } midColumn={ - List Item 1 - List Item 2 - List Item 3 + + + } endColumn={ - List Item 1 - List Item 2 - List Item 3 + + + } /> @@ -95,9 +95,7 @@ export const WithDifferentColumns: Story = { /> {movieData.map((item) => ( - - {item.movie} - + ))} @@ -138,9 +136,7 @@ export const WithDifferentColumns: Story = { {castData.map((item) => ( - - {item.name} - + ))} diff --git a/packages/main/src/webComponents/List/List.stories.tsx b/packages/main/src/webComponents/List/List.stories.tsx index fcb7c4e581f..b46c04eea99 100644 --- a/packages/main/src/webComponents/List/List.stories.tsx +++ b/packages/main/src/webComponents/List/List.stories.tsx @@ -37,9 +37,9 @@ export const Default: Story = { render: (args) => { return ( - List Item 1 - List Item 2 - List Item 3 + + + ); } @@ -79,11 +79,11 @@ export const ListItemGroupStory: Story = { return ( - List Item - List Item + + - List Item + ); diff --git a/packages/main/src/webComponents/Panel/Panel.stories.tsx b/packages/main/src/webComponents/Panel/Panel.stories.tsx index 24d98cb068a..6fa265ffef7 100644 --- a/packages/main/src/webComponents/Panel/Panel.stories.tsx +++ b/packages/main/src/webComponents/Panel/Panel.stories.tsx @@ -60,13 +60,13 @@ export const WithCustomHeader: Story = { return ( - Argentina - Portugal - Mexico - Brazil - Germany - Australia - Austria + + + + + + + ); diff --git a/packages/main/src/webComponents/Popover/Popover.stories.tsx b/packages/main/src/webComponents/Popover/Popover.stories.tsx index 97e277e567c..77e07bf1c8a 100644 --- a/packages/main/src/webComponents/Popover/Popover.stories.tsx +++ b/packages/main/src/webComponents/Popover/Popover.stories.tsx @@ -21,9 +21,9 @@ const meta = { args: { children: ( - Apples - Bananas - Potato + + + ), headerText: 'Popover Header', diff --git a/packages/main/src/webComponents/ResponsivePopover/ResponsivePopover.stories.tsx b/packages/main/src/webComponents/ResponsivePopover/ResponsivePopover.stories.tsx index ad241d29763..73d857bf46d 100644 --- a/packages/main/src/webComponents/ResponsivePopover/ResponsivePopover.stories.tsx +++ b/packages/main/src/webComponents/ResponsivePopover/ResponsivePopover.stories.tsx @@ -21,9 +21,9 @@ const meta = { args: { children: ( - Apples - Bananas - Potato + + + ), headerText: 'ResponsivePopover Header', diff --git a/packages/main/src/webComponents/ShellBar/ShellBar.stories.tsx b/packages/main/src/webComponents/ShellBar/ShellBar.stories.tsx index ff4d594840f..88d3831ed5d 100644 --- a/packages/main/src/webComponents/ShellBar/ShellBar.stories.tsx +++ b/packages/main/src/webComponents/ShellBar/ShellBar.stories.tsx @@ -25,9 +25,9 @@ const meta = { ), menuItems: ( <> - Menu Item 1 - Menu Item 2 - Menu Item 3 + + + ), searchField: } />, diff --git a/packages/main/src/webComponents/UserSettingsDialog/UserSettingsDialog.stories.tsx b/packages/main/src/webComponents/UserSettingsDialog/UserSettingsDialog.stories.tsx index 550592261a9..f4c1d0edad4 100644 --- a/packages/main/src/webComponents/UserSettingsDialog/UserSettingsDialog.stories.tsx +++ b/packages/main/src/webComponents/UserSettingsDialog/UserSettingsDialog.stories.tsx @@ -142,10 +142,10 @@ export const Default: Story = { - SAP Morning Horizon - SAP Evening Horizon - SAP High Contrast Black (SAP Horizon) - SAP High Contrast White (SAP Horizon) + + + +