Skip to content

Vaadin Flow Components V25.2.0-alpha4

Pre-release
Pre-release

Choose a tag to compare

@vaadin-bot vaadin-bot released this 27 Apr 14:38
· 718 commits to main since this release
b88af58

Vaadin Flow Components 25.2.0-alpha4

This is a release of the Java integration for Vaadin Components to be used from the Java server side with Vaadin Flow.

Changes in Flow Components from 25.2.0-alpha3

Changes in All Components

  • Chore:
    • ⧉ Increase Web-Component version

Changes in vaadin-ai-components-flow

  • Fixes:
    • ⧉ Handle stream ends with no finish reasons. PR:9195

      ## Description In some cases, the response terminates without a finish_reason. One case it happens is a request going over the context limit, and the result is treated like an empty response rather than an error. This is reproducible using LM Studio with a local model and setting the context length less than 4k for a chart generation query. This PR reports any response without a finish_reason as an exception. This allows the developer to see the server logs for the details, and the user to see a generic error message that they can report. ## Type of change - [x] Bugfix - [ ] Feature ## Checklist - [x] I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview - [x] I have added a description following the guideline. - [ ] The issue is created in the corresponding repository and I have referenced it. - [x] I have added tests to ensure my change is effective and works as intended. - [x] New and existing tests are passing locally with my change. - [x] I have performed self-review and corrected misspellings.

    • ⧉ Surface controller render errors in chat. PR:9174

      ## Summary - Chart and grid controllers render synchronously; failures now propagate to the orchestrator instead of being swallowed inside a deferred lambda. - On controller failure, the orchestrator appends a new assistant message to the chat (e.g. "An error occurred. Please try again."). Fixes https://github.com/orgs/vaadin/projects/103/views/3?pane=issue&itemId=178096320 🤖 Generated with Claude Code

    • ⧉ Do not leak exception messages to the LLM. PR:9172

      ## Summary - Tool error responses in ChartAITools and GridAITools appended raw e.getMessage() to the string returned to the LLM, so any detail carried by an exception from a callback, JDBC driver, filesystem, or Jackson coercion could be repeated back to the end user via the model. - Introduced a private ValidationException in each class. Only our own curated messages (e.g. "chartId is required when multiple charts exist. Available chart IDs: [...]") pass through to the LLM; all other throwables are logged and replaced with a generic "Error ..." string. 🤖 Generated with Claude Code ---------

Changes in vaadin-button-flow

  • New Features:
    • ⧉ Add accessibleDisabledMenuItems feature flag. PR:9183

      ## Description Follow-up to vaadin/web-components#11541, which introduced the accessibleDisabledMenuItems feature flag making disabled context-menu and menu-bar sub-menu items focusable and hoverable while still preventing selection and sub-menu opening. This PR registers the flag on the Flow side so users can opt in by adding the following to src/main/resources/vaadin-featureflags.properties: com.vaadin.experimental.accessibleDisabledMenuItems = true The flag is registered via a new AccessibleDisabledMenuItemsFeatureFlagProvider in the vaadin-context-menu-flow module. vaadin-menu-bar-flow picks it up transitively via its existing dependency on context-menu-flow, so a single registration covers both components. Also refreshes the Button, MenuItem, and MenuBarItem setEnabled JSDocs to mirror the shorter wording used in the web-components PR. The MenuBarItem doc now covers both accessibleDisabledButtons (for root-level items) and accessibleDisabledMenuItems (for sub-menu items). ## Type of change - Feature ---------

Changes in vaadin-combo-box-flow

  • New Features:
    • ⧉ Add Aura filled variant to components supporting it. PR:9182

      ## Description Related to vaadin/web-components#11511 Added filled variant (changes the item :hover and :active appearance) to the following components: - ComboBox - MultiSelectComboBox - MenuBar - Select - TimePicker ## Type of change - Feature

Changes in vaadin-context-menu-flow

  • New Features:
    • ⧉ Add accessibleDisabledMenuItems feature flag. PR:9183

      ## Description Follow-up to vaadin/web-components#11541, which introduced the accessibleDisabledMenuItems feature flag making disabled context-menu and menu-bar sub-menu items focusable and hoverable while still preventing selection and sub-menu opening. This PR registers the flag on the Flow side so users can opt in by adding the following to src/main/resources/vaadin-featureflags.properties: com.vaadin.experimental.accessibleDisabledMenuItems = true The flag is registered via a new AccessibleDisabledMenuItemsFeatureFlagProvider in the vaadin-context-menu-flow module. vaadin-menu-bar-flow picks it up transitively via its existing dependency on context-menu-flow, so a single registration covers both components. Also refreshes the Button, MenuItem, and MenuBarItem setEnabled JSDocs to mirror the shorter wording used in the web-components PR. The MenuBarItem doc now covers both accessibleDisabledButtons (for root-level items) and accessibleDisabledMenuItems (for sub-menu items). ## Type of change - Feature ---------

Changes in vaadin-grid-flow

  • Fixes:
    • ⧉ Reset cell order according to order of columns in DOM. PR:9190. Ticket:9119

      ## Description As a follow-up to vaadin/web-components#11522, this makes the Flow component use the newly introduced _resetColumnOrder method, and updates a test with a previously incorrect test setup to serve as a proper regression test. ## Type of change - Bugfix ---------

    • ⧉ Change client selectAll update to use LinkedHashSet. PR:9169. Ticket:9170

      ---------

Changes in vaadin-menu-bar-flow

  • New Features:
    • ⧉ Add accessibleDisabledMenuItems feature flag. PR:9183

      ## Description Follow-up to vaadin/web-components#11541, which introduced the accessibleDisabledMenuItems feature flag making disabled context-menu and menu-bar sub-menu items focusable and hoverable while still preventing selection and sub-menu opening. This PR registers the flag on the Flow side so users can opt in by adding the following to src/main/resources/vaadin-featureflags.properties: com.vaadin.experimental.accessibleDisabledMenuItems = true The flag is registered via a new AccessibleDisabledMenuItemsFeatureFlagProvider in the vaadin-context-menu-flow module. vaadin-menu-bar-flow picks it up transitively via its existing dependency on context-menu-flow, so a single registration covers both components. Also refreshes the Button, MenuItem, and MenuBarItem setEnabled JSDocs to mirror the shorter wording used in the web-components PR. The MenuBarItem doc now covers both accessibleDisabledButtons (for root-level items) and accessibleDisabledMenuItems (for sub-menu items). ## Type of change - Feature ---------

    • ⧉ Add Aura filled variant to components supporting it. PR:9182

      ## Description Related to vaadin/web-components#11511 Added filled variant (changes the item :hover and :active appearance) to the following components: - ComboBox - MultiSelectComboBox - MenuBar - Select - TimePicker ## Type of change - Feature

Changes in vaadin-select-flow

  • New Features:
    • ⧉ Add Aura filled variant to components supporting it. PR:9182

      ## Description Related to vaadin/web-components#11511 Added filled variant (changes the item :hover and :active appearance) to the following components: - ComboBox - MultiSelectComboBox - MenuBar - Select - TimePicker ## Type of change - Feature

Changes in vaadin-slider-flow

  • Breaking Changes:
    • ⧉ Add "Decimal" prefix to decimal slider variants. PR:9171

      ## Description Rename decimal slider variants and related classes to use a "Decimal" prefix, similar to integer variants: - Slider -> DecimalSlider - RangeSlider -> DecimalRangeSlider - RangeSliderValue -> DecimalRangeSliderValue - SliderElement -> DecimalSliderElement - RangeSliderElement -> DecimalSliderElement Part of #8863 ## Type of change - Refactoring / Breaking change

Changes in vaadin-time-picker-flow

  • New Features:
    • ⧉ Add Aura filled variant to components supporting it. PR:9182

      ## Description Related to vaadin/web-components#11511 Added filled variant (changes the item :hover and :active appearance) to the following components: - ComboBox - MultiSelectComboBox - MenuBar - Select - TimePicker ## Type of change - Feature

Compatibility