From aed51745532f924dd4da4ff56475d545fd0fd935 Mon Sep 17 00:00:00 2001 From: "Yanchev Tihomir (IT ERP DXT / EE)" Date: Thu, 16 Jan 2025 15:32:03 +0100 Subject: [PATCH 1/2] extended search logic to children options --- .../components/select/multi-select/multiselect.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/select/multi-select/multiselect.tsx b/packages/components/src/components/select/multi-select/multiselect.tsx index e38b5eb13f..8d78aff5cb 100644 --- a/packages/components/src/components/select/multi-select/multiselect.tsx +++ b/packages/components/src/components/select/multi-select/multiselect.tsx @@ -199,7 +199,16 @@ export class Multiselect { if (searchTerm === '') { this.filteredOptions = this.loadedOptions; } else { - this.filteredOptions = this.loadedOptions.filter(option => option.label.toLowerCase().includes(searchTerm)) + this.filteredOptions = this.loadedOptions.filter(option => { + const matchesSearchTerm = option.label.toLowerCase().includes(searchTerm); + if (option.children) { + const childrenMatch = option.children.some(child => { + return child.label.toLowerCase().includes(searchTerm); + }); + return matchesSearchTerm || childrenMatch; + } + return matchesSearchTerm; + }); } }, 300); From 6f899d365a15c177afaa94447fab04bd53f5321b Mon Sep 17 00:00:00 2001 From: github-actions Date: Thu, 16 Jan 2025 14:35:58 +0000 Subject: [PATCH 2/2] Update Stencil library version to 30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0 --- .../react-vite-js/package.json | 2 +- .../vue-javascript/package.json | 2 +- lerna.json | 2 +- package-lock.json | 18 +++++++++--------- packages/components-angular/package.json | 4 ++-- .../projects/component-library/package.json | 4 ++-- packages/components-react/package.json | 4 ++-- packages/components-vue/package.json | 4 ++-- packages/components/package.json | 2 +- 9 files changed, 21 insertions(+), 21 deletions(-) diff --git a/examples/wrapper-components/react-vite-js/package.json b/examples/wrapper-components/react-vite-js/package.json index 7ea8ef80e0..c22fa012fc 100644 --- a/examples/wrapper-components/react-vite-js/package.json +++ b/examples/wrapper-components/react-vite-js/package.json @@ -18,7 +18,7 @@ "test:local": "run-p preview:link watch:library" }, "dependencies": { - "@infineon/infineon-design-system-react": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-react": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "path": "^0.12.7", "react": "^18.3.1", "react-dom": "^18.3.1" diff --git a/examples/wrapper-components/vue-javascript/package.json b/examples/wrapper-components/vue-javascript/package.json index 5958b6776a..399d7767de 100644 --- a/examples/wrapper-components/vue-javascript/package.json +++ b/examples/wrapper-components/vue-javascript/package.json @@ -15,7 +15,7 @@ "test:local": "run-p preview:link watch:library" }, "dependencies": { - "@infineon/infineon-design-system-vue": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-vue": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue-jsx": "^4.0.0", "vite": "^5.0.12", diff --git a/lerna.json b/lerna.json index 600344cea3..09b6f8c179 100644 --- a/lerna.json +++ b/lerna.json @@ -1,6 +1,6 @@ { "$schema": "node_modules/lerna/schemas/lerna-schema.json", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "command": { "publish": { "verifyAccess": false diff --git a/package-lock.json b/package-lock.json index 2631c1778c..f24b43b472 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32794,7 +32794,7 @@ }, "packages/components": { "name": "@infineon/infineon-design-system-stencil", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "license": "MIT", "dependencies": { "@infineon/design-system-tokens": "4.0.0", @@ -32856,7 +32856,7 @@ } }, "packages/components-angular": { - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "license": "MIT", "dependencies": { "@angular/animations": "^18.0.0", @@ -32867,7 +32867,7 @@ "@angular/platform-browser": "^18.0.0", "@angular/platform-browser-dynamic": "^18.0.0", "@angular/router": "^18.0.0", - "@infineon/infineon-design-system-angular": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-angular": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "typescript": "~5.4.4", @@ -32973,7 +32973,7 @@ }, "packages/components-angular/projects/component-library": { "name": "@infineon/infineon-design-system-angular", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "license": "MIT", "dependencies": { "tslib": "^2.3.0" @@ -32982,16 +32982,16 @@ "@angular/common": "^18.0.0", "@angular/core": "^18.0.0", "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0" + "@infineon/infineon-design-system-stencil": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0" } }, "packages/components-react": { "name": "@infineon/infineon-design-system-react", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "license": "MIT", "dependencies": { "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-stencil": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "@stencil/react-output-target": "^0.7.1" }, "devDependencies": { @@ -33091,11 +33091,11 @@ }, "packages/components-vue": { "name": "@infineon/infineon-design-system-vue", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "license": "MIT", "dependencies": { "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0" + "@infineon/infineon-design-system-stencil": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0" }, "devDependencies": { "@babel/types": "^7.22.5", diff --git a/packages/components-angular/package.json b/packages/components-angular/package.json index 9fbb14fb78..1b782fba4b 100644 --- a/packages/components-angular/package.json +++ b/packages/components-angular/package.json @@ -1,6 +1,6 @@ { "name": "components-angular", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "scripts": { "ng": "ng", "start": "ng serve", @@ -26,7 +26,7 @@ "@angular/platform-browser": "^18.0.0", "@angular/platform-browser-dynamic": "^18.0.0", "@angular/router": "^18.0.0", - "@infineon/infineon-design-system-angular": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-angular": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "typescript": "~5.4.4", diff --git a/packages/components-angular/projects/component-library/package.json b/packages/components-angular/projects/component-library/package.json index a55e0e9d6c..7606774d12 100644 --- a/packages/components-angular/projects/component-library/package.json +++ b/packages/components-angular/projects/component-library/package.json @@ -1,6 +1,6 @@ { "name": "@infineon/infineon-design-system-angular", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "description": "Infineon design system Stencil web components for Angular", "author": "Verena Lechner", "license": "MIT", @@ -11,7 +11,7 @@ "@angular/common": "^18.0.0", "@angular/core": "^18.0.0", "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0" + "@infineon/infineon-design-system-stencil": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0" }, "dependencies": { "tslib": "^2.3.0" diff --git a/packages/components-react/package.json b/packages/components-react/package.json index 9ac535bce3..78b0ad8bc5 100644 --- a/packages/components-react/package.json +++ b/packages/components-react/package.json @@ -1,6 +1,6 @@ { "name": "@infineon/infineon-design-system-react", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "description": "Infineon design system Stencil web components for React", "main": "./dist/index.js", "types": "./dist/types/index.d.ts", @@ -28,7 +28,7 @@ }, "dependencies": { "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "@infineon/infineon-design-system-stencil": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "@stencil/react-output-target": "^0.7.1" }, "auto": { diff --git a/packages/components-vue/package.json b/packages/components-vue/package.json index a8c6465f54..d2e1f6fe29 100644 --- a/packages/components-vue/package.json +++ b/packages/components-vue/package.json @@ -1,6 +1,6 @@ { "name": "@infineon/infineon-design-system-vue", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "description": "Infineon design system Stencil web components for Vue", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -30,7 +30,7 @@ }, "dependencies": { "@infineon/design-system-tokens": "3.3.4", - "@infineon/infineon-design-system-stencil": "^30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0" + "@infineon/infineon-design-system-stencil": "^30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0" }, "auto": { "plugins": [ diff --git a/packages/components/package.json b/packages/components/package.json index 2e1d1df2fc..ae6dfbb413 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@infineon/infineon-design-system-stencil", - "version": "30.9.2--canary.1673.aae465494350113a03d5687dfe66c3823dc98f42.0", + "version": "30.10.0--canary.1683.fe45f72105a11f62b600b213cc47953ca6da983c.0", "private": false, "description": "Infineon design system Stencil web components", "homepage": "https://infineon.github.io/infineon-design-system-stencil",